/* ==========================================================================
   STYLY PRO PLUGIN PSP VERZE 3
   ========================================================================== */
.psp-plugin-wrapper *, .psp-plugin-wrapper *::before, .psp-plugin-wrapper *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   STYLY PRO TABULKY (Můj účet, Přijaté nabídky) - SJEDNOCENO
   -------------------------------------------------------------------------- */
.widefat, .psp-muj-ucet-poptavky {
    width: 100% !important;
    margin-top: 20px !important;
    border-collapse: collapse !important;
    font-size: 17px !important;
    border: 2px solid #ccc !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}
.widefat th, .widefat td, .psp-muj-ucet-poptavky th, .psp-muj-ucet-poptavky td {
    padding: 10px 12px !important;
    text-align: left !important;
    border: 1px solid #e5e5e5 !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    color: #111111 !important;
    line-height: 1.5 !important;
}
.widefat th, .psp-muj-ucet-poptavky th {
    font-weight: normal;
    background-color: #f9f9f9;
}
.widefat tbody tr:hover, .psp-muj-ucet-poptavky tbody tr:hover {
    background-color: #f9f9f9;
}

/* --------------------------------------------------------------------------
   STYLY PRO OBSAH BUNĚK TABULKY (VČETNĚ FLEXBOXU PRO PRVNÍ SLOUPEC)
   -------------------------------------------------------------------------- */
/* Flexbox pro první sloupec */
.psp-poptavka-details-cell {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Název poptávky */
.widefat td a, .psp-muj-ucet-poptavky td a {
    text-decoration: none;
    margin-right: 8px;
}
.widefat td a:hover, .psp-muj-ucet-poptavky td a:hover {
    text-decoration: underline;
}
.widefat td a strong, .psp-muj-ucet-poptavky td a strong {
    font-size: 16px !important;
    font-weight: normal !important;
    color: #2271b1 !important;
}
.widefat td a:hover strong, .psp-muj-ucet-poptavky td a:hover strong {
    color: #333333 !important;
}

/* Styly pro meta řádky */
.widefat td .psp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Styly pro meta položky (text a ikonky) */
.widefat td .psp-meta-item,
.widefat td .psp-offer-summary-line .psp-offer-meta {
    font-size: 0.95em !important;
    color: #111111 !important;
    line-height: 1.7 !important;
    display: inline-flex !important;
    align-items: center;
    margin: 0;
    padding: 0;
}
.widefat td .dashicons {
    font-size: 17px !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
    color: #919191 !important;
}
.widefat td .psp-my-price, .widefat td .psp-accepted-price, .widefat td .psp-nejnizsi-nabidka-tabulka {
    color: #4b44ff !important;
    font-weight: normal !important;
}
.widefat td .psp-accepted-price {
    color: #28a745 !important;
    font-weight: normal !important;
}
.widefat td .psp-nejnizsi-nabidka-tabulka {
    color: #28a745 !important;
}
.widefat td .psp-prices-offers .dashicons-star-filled {
    color: #f9a602 !important;
}
.widefat td .psp-prices-offers .dashicons-testimonial {
    color: #919191 !important;
    margin-right: 3px !important;
}
.widefat td .psp-status-info {
    font-weight: normal !important;
    color: #111111 !important;
}
.widefat td .psp-worker-contact-details {
    font-size: 1.1 !important;
    line-height: 1.6 !important;
    color: #111111 !important;
}
.widefat td .psp-worker-contact-details strong {
    color: #111 !important;
}
.widefat td .psp-worker-contact-details a {
    color: #2271b1 !important;
    text-decoration: none !important;
}
.widefat td .psp-worker-contact-details a:hover {
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   STYLY PRO TLAČÍTKA - SJEDNOCENO
   -------------------------------------------------------------------------- */
.widefat td .psp-actions-column-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.widefat td .button, .widefat td a.button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
    padding: 8px 12px !important;
    min-height: 38px;
    line-height: 1.5 !important;
    margin-bottom: 0px !important;
    border-radius: 4px;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}
.widefat td .button-primary {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}
.widefat td .button-primary:hover {
    background-color: #1a5e92 !important;
    border-color: #1a5e92 !important;
}
.widefat td .button-secondary, .widefat td .psp-button-activate {
    background-color: #f6f6f6 !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
}
.widefat td .button-secondary:hover, .widefat td .psp-button-activate:hover {
    background-color: #e6e6e6 !important;
    border-color: #7f8691 !important;
}
.widefat td .psp-rated-info {
    display: block;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    padding: 8px 12px !important;
    min-height: 38px;
    line-height: 1.5 !important;
    margin-bottom: 0px !important;
    border-radius: 4px;
    background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    font-size: 14px !important;
}
.widefat td .psp-rated-info .dashicons {
    color: #f9a602 !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
}

/* Smazat tlačítko v prvním sloupci (jen pro Přijaté nabídky) */
.widefat td .psp-delete-button-in-details {
    display: inline-block !important;
    align-self: flex-start !important; /* Zarovná tlačítko na začátek (vlevo) */
    margin-top: 15px !important;
    padding: 5px 10px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    border-radius: 3px !important;
    background-color: #d63638 !important;
    color: #fff !important; /* Barva textu v normálním stavu */
    border: 1px solid #d63638 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    min-width: 80px;
}

.widefat td .psp-delete-button-in-details:hover {
    background-color: #a02122 !important;
    border-color: #000000 !important;
    color: #fff !important; /* Barva textu při najetí myší */
}

/* --------------------------------------------------------------------------
   GENERICKÉ STYLY PLUGINU - ZKONTROLOVÁNO A OPTIMALIZOVÁNO
   -------------------------------------------------------------------------- */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.woocommerce button,
.woocommerce input[type="submit"],
.woocommerce a.button,
.woocommerce #respond input#submit,
.wp-block-button__link {
    /* Základní styly tlačítek, které se nepřepisují v tabulkách */
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    margin: 5px;
    font-family: inherit;
    appearance: none;
}
button.button-primary, input[type="submit"].button-primary, .button.button-primary, .psp-action-button.button-primary, .woocommerce .button.alt, .woocommerce button.button.alt, .wp-block-button__link.is-style-fill {
    background-color: #2271b1;
    color: #ffffff;
    border: 1px solid #000000;
}
button.button-primary:hover, input[type="submit"].button-primary:hover, .button.button-primary:hover, .psp-action-button.button-primary:hover, .woocommerce .button.alt:hover, .woocommerce button.button.alt:hover, .wp-block-button__link.is-style-fill:hover {
    background-color: #666666;
    border-color: #0056b3;
    color: #ffffff;
}
.button.button-secondary, .button.button-small, .psp-action-button.button-small, #psp-edit-poptavka-form a.psp-button-cancel {
    background-color: #FDFDFD;
    color: #111111;
    border: 1px solid #2271b1;
}
.button.button-secondary:hover, .button.button-small:hover, .psp-action-button.button-small:hover, #psp-edit-poptavka-form a.psp-button-cancel:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: #212529;
}
.psp-button-delete, .button.delete, .button.remove {
    background-color: #888888;
    color: #ffffff;
    border: 1px solid #2271b1;
}
.psp-button-delete:hover, .button.delete:hover, .button.remove:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #ffffff;
}
.button:disabled, input[type="submit"]:disabled, .button.disabled, .woocommerce .button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #919191;
    border-color: #111;
    color: #fff;
}

/* Styly pro detail poptávky */
.psp-detail-poptavky-wrapper {
    background-color: #ffffff;
    border: 1px solid #2271b1;
    padding: 13px;
    margin-bottom: 20px;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.psp-detail-poptavky-wrapper h2 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 5px solid #2271b1;
    padding-bottom: 10px;
    color: #333333;
    text-align: left;
}
.psp-details-flex-container, .poptavka-meta-row, .psp-inquiry-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
    margin-bottom: 8px;
    align-items: flex-start;
    font-size: 17px;
    color: #111;
    line-height: 1.6;
}
.psp-detail-poptavky-wrapper .psp-inquiry-meta-row:last-of-type {
    margin-bottom: 0;
}
.psp-details-flex-container .psp-detail-item, .poptavka-meta-row .psp-meta-item, .psp-inquiry-meta-row .psp-meta-item {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    flex-basis: auto;
    margin: 0;
    line-height: inherit;
    font-size: inherit;
    color: inherit;
}
.psp-details-flex-container .psp-detail-item span, .poptavka-meta-row .psp-meta-item span, .psp-inquiry-meta-row .psp-meta-item span {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.psp-details-flex-container .psp-detail-item .dashicons, .poptavka-meta-row .psp-meta-item .dashicons, .psp-inquiry-meta-row .psp-meta-item .dashicons {
    vertical-align: middle;
    margin-right: 2px;
    margin-left: 4px !important;
    font-size: 24px;
    flex-shrink: 0;
    align-self: flex-start;
    color: #000;
}
.psp-detail-poptavky-wrapper .psp-meta-item a, .poptavka-meta-row .psp-meta-item a {
    color: #999999;
    text-decoration: none;
}
.psp-detail-poptavky-wrapper .psp-meta-item a:hover, .poptavka-meta-row .psp-meta-item a:hover {
    text-decoration: none;
    border-bottom-style: solid;
}
.psp-detail-poptavky-wrapper .psp-meta-item, .poptavka-meta-row .psp-meta-item {
    color: #111;
    font-weight: normal;
}
.psp-detail-poptavky-wrapper .psp-nejlevnejsi-nabidka, .poptavka-meta-row .psp-nejlevnejsi-nabidka {
    color: #f9a602;
    font-weight: bold;
}
.psp-detail-poptavky-wrapper .psp-nejlevnejsi-nabidka .dashicons-star-filled, .poptavka-meta-row .psp-nejlevnejsi-nabidka .dashicons-star-filled {
    color: #eeee22;
}
.psp-detail-poptavky-wrapper .psp-rozpocet, .poptavka-meta-row .psp-rozpocet {
    color: #888888;
    font-weight: normal;
}
.psp-detail-poptavky-wrapper .psp-rozpocet .dashicons-money-alt, .poptavka-meta-row .psp-rozpocet .dashicons-money-alt {
    color: #eeee22;
}
.psp-poptavky-list-wrapper .psp-poptavky-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.psp-poptavky-list-wrapper .poptavka-item {
    margin-bottom: 20px;
    border: 1px solid #333333;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}
.psp-poptavky-list-wrapper .poptavka-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}
.psp-poptavky-list .poptavka-title-small {
    font-size: 1.2em;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0.8em;
    line-height: 1.3;
    color: #111111;
}
.psp-poptavky-list .poptavka-title-small a {
    text-decoration: none;
    color: inherit;
}
.psp-poptavky-list .poptavka-title-small a:hover {
    text-decoration: underline;
}
.psp-poptavky-list-wrapper .poptavka-item .entry-summary,
.psp-poptavky-list-wrapper .poptavka-item .poptavka-excerpt {
    font-size: 10px;
    line-height: 1.1;
}

/* Paginace */
.psp-poptavky-pagination {
    margin-top: 30px;
    text-align: center;
}
.psp-poptavky-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 2px solid #514ba0;
    text-decoration: none;
    border-radius: 3px;
}
.psp-poptavky-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.psp-poptavky-pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}
.psp-archived-inquiry-content .psp-action-links {
    list-style: disc;
    padding-left: 20px;
}
.psp-archived-inquiry-content .psp-action-links li {
    margin-bottom: 8px;
}

/* Formuláře */
#psp-edit-poptavka-form, .psp-form {
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}
.psp-form p, .psp-registration-form p {
    margin-bottom: 18px;
}
.psp-form label, .psp-registration-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 17px;
    color: #111;
}
.psp-form input[type="text"], .psp-form input[type="email"], .psp-form input[type="tel"], .psp-form input[type="password"], .psp-form input[type="date"], .psp-form input[type="number"], .psp-form textarea, .psp-form select, .psp-registration-form input[type="text"], .psp-registration-form input[type="email"], .psp-registration-form input[type="password"] {
    width: 100%;
    max-width: 450px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.4;
}
.psp-form textarea {
    min-height: 120px;
    line-height: 1.5;
}
.psp-form .psp-wp-editor {
    width: 100%;
    max-width: 600px;
}
.psp-form .wp-editor-area {
    border: 1px solid #ccc;
    min-height: 150px;
}
.psp-form .required, .psp-registration-form .required {
    color: red;
    font-weight: normal;
    margin-left: 3px;
}
.psp-form small, .psp-registration-form small {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
    line-height: 1.4;
}
.psp-form input[type="checkbox"], .psp-form input[type="radio"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}
.psp-form label.inline-label {
    display: inline-block;
    font-weight: normal;
    margin-bottom: 0;
}
.psp-form-fieldset {
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 3px;
}
.psp-form-fieldset legend {
    font-weight: bold;
    padding: 0 10px;
    font-size: 1.0em;
    color: #333;
    margin-bottom: 10px;
}
.psp-checkbox-list-wrapper {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px 15px;
    background-color: #ffffff;
    border-radius: 3px;
}
.psp-checkbox-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.psp-checkbox-list li {
    padding: 4px 0;
}
.psp-checkbox-list li label {
    font-weight: normal;
    display: flex;
    align-items: center;
}
.psp-checkbox-list li input[type="checkbox"] {
    margin-right: 10px;
}

/* Systémové zprávy */
.psp-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
}
.psp-message-error, .psp-registration-errors, .psp-form-errors, .psp-profile-errors {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
.psp-message-success, .psp-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}
.psp-message-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}
.psp-message-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

/* Speciální komponenty */
.customer-rating-summary {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}
.psp-stars-display .dashicons,
.psp-offer-item .psp-offer-summary-line .psp-offer-meta .dashicons {
    color: #f9a602 !important; /* Sjednocená barva hvězd a ikonek nabídek */
    font-size: 22px;
}
.psp-offer-item .psp-offer-summary-line .psp-offer-meta .dashicons {
    margin-right: 1px;
    vertical-align: middle;
}
.psp-rotating-icon {
    display: inline-block;
    animation: psp-spin 6s linear infinite;
}
@keyframes psp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* STYLY PEO VÝPIS NABÍDEK */
.psp-offers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
li.psp-offer-item {
    border: 2px solid #000;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 2px;
    background-color: #ededed
    transition: all 0.3s ease;
}
li.psp-offer-item:hover {
    background-color: #ecefe1;
}
.psp-offer-item .psp-offer-summary-line {
    border-bottom: none;
    background-color: transparent;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px 1px;
}
.psp-offer-full-details {
    padding: 15px;
    border: 3px solid #00f0f0;
    border-top: 2px dashed #ccc;
    background-color: #0afafa;
    margin-top: 15px;
}
.psp-offer-full-details.is-hidden {
    display: none;
}

/* Styly pro detail poptávky (hlavní stránka) */
.psp-single-poptavka-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.psp-single-poptavka-main .entry-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #919191;
    border-bottom: 1px solid #2271b1;
    padding-bottom: 3px;
}
.psp-single-poptavka-main .entry-content {
    line-height: 1.5;
    font-size: 17px;
    color: #111;
}
.psp-single-poptavka-main .poptavka-field {
    margin-bottom: 15px;
}
.psp-single-poptavka-main .poptavka-field label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #111111;
}
.psp-single-poptavka-main .poptavka-field span {
    display: block;
    background-color: #000000;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 14px;
}
.psp-single-poptavka-article {
    border: 1px solid #111111;
    padding: 25px;
    margin-bottom: 250px;
    background-color: #ffffff;
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Formulář komentářů */
#comment {
    height: 70px;
    font-size: 18px;
}
.comment-form-author input, .comment-form-email input, .comment-form-url input {
    width: 70%;
    padding: 8px;
    font-size: 14px;
}
.comment-form-author label, .comment-form-email label, .comment-form-url label, .comment-form-comment label {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.comment-form .comment-form-author, .comment-form .comment-form-email, .comment-form .comment-form-url, .comment-form .comment-form-comment, .comment-form .comment-form-cookies-consent, .comment-form .form-submit {
    margin-bottom: 15px;
}
#reply-title {
    font-size: 16px;
    margin-bottom: 20px;
}
.comment-notes {
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Diskuze v uživatelském účtu */
.psp-diskuze-pro-poptavku h3 {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 15px;
}
.psp-seznam-komentaru-konverzace li {
    font-size: 14px;
}
#diskuze-zakaznicky-ucet {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responzivní úpravy */
@media screen and (max-width: 768px) {
    .psp-details-flex-container, .poptavka-meta-row, .psp-inquiry-meta-row {
        gap: 8px 10px;
    }
    .psp-details-flex-container .psp-detail-item, .poptavka-meta-row .psp-meta-item, .psp-inquiry-meta-row .psp-meta-item {
        flex-basis: 100%;
        margin-bottom: 8px;
    }
    .psp-poptavky-list .poptavka-title-small {
        font-size: 18px;
    }
    .psp-poptavky-list .entry-meta {
        font-size: 13px;
    }
    .psp-muj-ucet-poptavky thead {
        display: none;
    }
    .psp-muj-ucet-poptavky tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 3px;
    }
    .psp-muj-ucet-poptavky td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px dotted #eee;
    }
    .psp-muj-ucet-poptavky td:last-child {
        border-bottom: none;
    }
    .psp-muj-ucet-poptavky td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
    }
    .comment-form-author input, .comment-form-email input, .comment-form-url input {
        width: 100%;
    }
    .psp-single-poptavka-article {
        padding: 15px;
    }
/*
 * Styly pro Akce v tabulce "Moje podané nabídky"
 * Tento kód se snaží aplikovat vzhled tlačítek na odkazy v tabulce.
 */
.psp-muj-ucet-poptavky td a.psp-action-link,
.widefat td a.psp-action-link {
    /* Základní styly tlačítek, jak jsou definovány ve vašem kódu */
    display: inline-block;
    padding: 8px 12px !important;
    min-height: 38px;
    line-height: 1.5 !important;
    margin: 5px 0 !important; /* Přidáno pro mezery mezi odkazy */
    border-radius: 4px;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* Modrá tlačítka - např. pro 'Detail poptávky' nebo 'Změnit cenu nabídky' */
.psp-muj-ucet-poptavky td a.psp-action-link.primary {
    background-color: #2271b1 !important;
    border: 1px solid #2271b1 !important;
    color: #fff !important;
}

.psp-muj-ucet-poptavky td a.psp-action-link.primary:hover {
    background-color: #1a5e92 !important;
    border-color: #1a5e92 !important;
}

/* Tlačítko pro 'Smazat' - červené */
.psp-muj-ucet-poptavky td a.psp-action-link.delete {
    background-color: #d63638 !important;
    border: 1px solid #d63638 !important;
    color: #fff !important;
}

.psp-muj-ucet-poptavky td a.psp-action-link.delete:hover {
    background-color: #a02122 !important;
    border-color: #a02122 !important;
}
/* Styly pro tlačítka v tabulkách Firemního účtu s !important */

/* Základní vzhled pro všechny tlačítka v tabulce */
.psp-dashboard-table .button {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.42857143 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    user-select: none !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    color: #fff !important;
    background-color: #0073aa !important;
    border-color: #0073aa !important;
}

/* Sekundární tlačítka (šedá) */
.psp-dashboard-table .button-secondary {
    color: #333 !important;
    background-color: #fff !important;
    border-color: #ccc !important;
}

/* Červená tlačítka pro smazání */
.psp-dashboard-table .button.delete {
    color: #fff !important;
    background-color: #fff !important;
    border-color: #a00 !important;
}

/* Efekt při najetí myší */
.psp-dashboard-table .button:hover {
    background-color: #005177 !important;
    border-color: #005177 !important;
    color: #fff !important;
}

/* Neaktivní tlačítka (disabled) */
.psp-dashboard-table .button.disabled {
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    background-color: #ddd !important;
    border-color: #ccc !important;
    color: #555 !important;
}

/* Ikonky v tlačítkách (např. koš) */
.psp-dashboard-table .button .dashicons {
    font-size: 1.1em !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

/* Styly pro sloupce v tabulce, pokud je to potřeba */
.psp-dashboard-table th.psp-col-poptavka { width: 50% !important; }
.psp-dashboard-table th.psp-col-kontakt { width: 30% !important; }
.psp-dashboard-table th.psp-col-akce { width: 20% !important; }
}
/* Styling pro box, ve kterém je Detail poptávky */
.psp-detail-poptavky-wrapper {
    border: 1px solid #111 !important;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 5px;
}

/* Nadpis "Detail poptávky" */
.psp-detail-poptavky-wrapper h2 {
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* Obecný styl pro řádky s meta daty */
.psp-inquiry-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #111;
}

/* Styling pro jednotlivé položky (Status, Od, Do atd.) */
.psp-meta-item {
    display: inline-flex;
    align-items: center;
}

.psp-meta-item .dashicons {
    color: #999;
    margin-right: 5px;
}

/* Speciální styly pro zvýraznění */
.psp-meta-item.psp-nejlevnejsi-nabidka {
    font-weight: bold;
    color: #d9534f; /* Červená barva pro Akční cenu */
}

/* Styling pro oddělení sekcí v přehledu poptávky */
.poptavka-item-meta {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Styly pro text poptávky a tlačítko */
.poptavka-item-excerpt {
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.button.button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    display: inline-block;
}

.button.button-primary:hover {
    background-color: #0085ba;
    border-color: #0085ba;
}
/* --------------------------------------------------------------------------
   STYLY PRO SEKCI 'NOVÉ POPTÁVKY PRO VÁS'
   Tyto styly se zaměřují pouze na třídy, které generuje funkce
   'psp_display_worker_new_demands_feed'.
   -------------------------------------------------------------------------- */

/* Styly pro kontejner s poptávkami */
.psp-new-demands-feed {
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 16px;
}

/* Styl pro jeden záznam poptávky */
.psp-new-demands-feed .poptavka-item {
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Styl pro nadpis poptávky */
.psp-new-demands-feed .poptavka-item-header {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

/* Styl pro odkaz v nadpisu poptávky */
.psp-new-demands-feed .poptavka-item-header a {
    font-size: 16px;
    font-weight: normal;
    color: #2271b1;
    text-decoration: none;
}

.psp-new-demands-feed .poptavka-item-header a:hover {
    color: #111;
    text-decoration: underline;
}

/* Styly pro meta řádky v nové sekci */
.psp-new-demands-feed .psp-inquiry-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.99em;
    color: #111;
}

/* Styly pro tlačítko v nové sekci */
.psp-new-demands-feed .button.button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    display: inline-block;
}

.psp-new-demands-feed .button.button-primary:hover {
    background-color: #0085ba;
    border-color: #0085ba;
}

/* Styly pro stránkování v nové sekci */
.psp-new-demands-feed .psp-pagination {
    margin-top: 20px;
    text-align: center;
}

.psp-new-demands-feed .psp-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #555;
}

.psp-new-demands-feed .psp-pagination .page-numbers.current,
.psp-new-demands-feed .psp-pagination .page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
/* --- Styly pro Vizuální Katalogový Rozcestník (verze s !important) --- */

.stranka-rozcestnik .psp-catalog-hub {
    border: 1px solid #e0e0e0 !important;
    padding: 25px !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    margin: 2em 0 !important;
}
.stranka-rozcestnik .psp-hub-tabs ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
    display: flex !important;
    border-bottom: 1px solid #e0e0e0 !important;
}
.stranka-rozcestnik .psp-hub-tabs li a {
    padding: 12px 22px !important;
    display: block !important;
    text-decoration: none !important;
    color: #555 !important;
    font-weight: bold !important;
    border-bottom: 3px solid transparent !important;
}
.stranka-rozcestnik .psp-hub-tabs li.active a,
.stranka-rozcestnik .psp-hub-tabs li a:hover {
    color: #0073aa !important;
    border-bottom-color: #0073aa !important;
}
.stranka-rozcestnik .psp-hub-tab-content {
    display: none !important;
}
.stranka-rozcestnik .psp-hub-tab-content.active {
    display: block !important;
}
.stranka-rozcestnik .psp-hub-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
}
.stranka-rozcestnik .psp-hub-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 25px !important;
    background-color: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    text-decoration: none !important;
}
.stranka-rozcestnik .psp-hub-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    border-color: #0073aa !important;
}
.stranka-rozcestnik .psp-hub-icon {
    font-size: 42px !important;
    color: #0073aa !important;
    margin-bottom: 12px !important;
}
.stranka-rozcestnik .psp-hub-title {
    font-size: 1.1em !important;
    font-weight: bold !important;
    color: #222 !important;
}
.stranka-rozcestnik .psp-hub-count {
    font-size: 0.9em !important;
    color: #777 !important;
    margin-top: 8px !important;
}
/* Styly pro zamčenou sekci na detailu profilu */
.psp-contact-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}
.psp-contact-info.locked-promo {
    background-color: #f0f5fa;
    border: 1px solid #0073aa;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}
.psp-contact-info.locked-promo h3 {
    margin-top: 0;
}
.psp-contact-info.locked-promo .psp-worker-card-button {
    margin-top: 15px;
}
/* Styly pro rozklikávací hodnocení */
.psp-reviews-list-wrapper {
    display: none; /* Skryjeme recenze ve výchozím stavu */
}
.psp-toggle-reviews-button {
    cursor: pointer;
    color: #0073aa;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    border: 1px solid #0073aa;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.psp-toggle-reviews-button:hover {
    background-color: #0073aa;
    color: #fff;
}
/* =================================================== */
/* Vzhled pro widget Skóre serióznosti v účtu pracovníka */
/* =================================================== */

.psp-dashboard-score-widget {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left-width: 5px;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.psp-dashboard-score-widget .psp-score-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.psp-dashboard-score-widget .psp-score-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3338;
}

.psp-dashboard-score-widget .psp-score-value {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.psp-dashboard-score-widget .psp-score-bar-container {
    background-color: #e9eaec;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    overflow: hidden;
}

.psp-dashboard-score-widget .psp-score-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* Barevné odlišení podle skóre */
.psp-dashboard-score-widget.is-high {
    border-left-color: #4CAF50; /* Zelená */
}
.psp-dashboard-score-widget.is-high .psp-score-value {
    color: #4CAF50;
}
.psp-dashboard-score-widget.is-high .psp-score-bar {
    background-color: #4CAF50;
}

.psp-dashboard-score-widget.is-medium {
    border-left-color: #FFC107; /* Oranžová */
}
.psp-dashboard-score-widget.is-medium .psp-score-value {
    color: #FFC107;
}
.psp-dashboard-score-widget.is-medium .psp-score-bar {
    background-color: #FFC107;
}

.psp-dashboard-score-widget.is-low {
    border-left-color: #F44336; /* Červená */
}
.psp-dashboard-score-widget.is-low .psp-score-value {
    color: #F44336;
}
.psp-dashboard-score-widget.is-low .psp-score-bar {
    background-color: #F44336;
}
/* Styly pro přehled hodnocení na profilu pracovníka */
.psp-ratings-overview-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px; /* Mezera mezi bloky */
    margin-bottom: 20px;
}

.psp-star-rating-block .psp-worker-rating-summary {
    margin: 0; /* Odstraní případný horní margin z původního bloku */
}

.psp-seriousness-score-block {
    border-left: 3px solid #0073aa;
    padding-left: 15px;
}

.psp-seriousness-score-block .psp-score-label {
    display: block;
    font-weight: bold;
    color: #333;
}

.psp-seriousness-score-block .psp-score-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #0073aa;
}/* =================================================== */
/* Styly pro sekci souvisejícího obsahu na profilu     */
/* =================================================== */

.psp-related-content-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Mezera mezi sloupci */
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.psp-related-column {
    flex: 1;
    min-width: 280px; /* Minimální šířka sloupce pro responzivitu */
}

.psp-related-column h3 {
    font-size: 1.2em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.psp-related-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.psp-related-column ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.psp-related-column ul li::before {
    content: '\f138'; /* WordPress Dashicon šipka */
    font-family: 'dashicons';
    position: absolute;
    left: 0;
    top: 2px;
    color: #0073aa;
}

.psp-related-column ul li a {
    text-decoration: none;
    font-weight: bold;
}

.psp-related-column ul li a:hover {
    text-decoration: underline;
}/* =================================================== */
/* Styly pro galerii příloh na profilu pracovníka      */
/* =================================================== */

.psp-profile-attachments h3 {
    margin-top: 0;
}

.psp-attachment-gallery {
    display: grid;
    /* Vytvoří responzivní mřížku - sloupce o min. šířce 120px */
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px; /* Mezery mezi položkami */
}

.psp-attachment-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: box-shadow 0.2s ease-in-out;
}

.psp-attachment-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.psp-attachment-item a {
    display: block;
    text-decoration: none;
    color: #444;
    text-align: center;
    padding: 10px;
}

.psp-attachment-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; /* Pevná výška pro náhled */
    margin-bottom: 8px;
}

.psp-attachment-preview img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

.psp-attachment-preview .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #555d66;
}

.psp-attachment-filename {
    font-size: 12px;
    word-break: break-all; /* Zalomí dlouhé názvy souborů */
    line-height: 1.3;
}
/* =================================================== */
/* Styly pro sekci souvisejících poptávek (verze 2.0)  */
/* =================================================== */

.psp-related-demands-section {
    padding: 30px 0;
    margin: 30px 0;
    border-top: 1px solid #eee;
}

.psp-related-demands-section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
}

/* Toto pravidlo nahrazuje <ul> za responzivní mřížku */
.psp-related-demands-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Toto pravidlo styluje každou poptávku jako "kartičku" */
.psp-related-demand-item {
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.psp-related-demand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.psp-related-demand-item a {
    font-weight: bold;
    text-decoration: none;
    font-size: 1em;
    color: #0073aa;
    display: block;
    margin-bottom: 10px;
}

.psp-related-demand-item a:hover {
    text-decoration: underline;
}

.psp-related-demand-meta {
    font-size: 1em;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.psp-related-demand-meta .psp-demand-location a {
    font-size: 1em;
    font-weight: normal;
    display: inline;
    color: inherit;
}
.psp-related-demand-meta .psp-demand-location a:hover {
    color: #0073aa;
}

/* Styly pro stránkování */
.psp-pagination {
    margin-top: 30px;
    text-align: center;
}
.psp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    background-color: #fff;
}
.psp-pagination .page-numbers:hover {
    background-color: #f1f1f1;
}
.psp-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}
/* =================================================== */
/* Styly pro stránkování souvisejících poptávek        */
/* =================================================== */

.psp-pagination {
    margin-top: 30px;
    text-align: center;
}

.psp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    background-color: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.psp-pagination .page-numbers:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.psp-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}

.psp-pagination .page-numbers.dots {
    border: none;
    background: none;
}
/* Základní styly pro kartu - můžete je přesunout do hlavního style.css souboru */
.profile-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.profile-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.profile-card-inner {
    display: flex;
    align-items: center;
}
.profile-card-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}
.profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-card-content {
    padding: 20px;
}
.profile-card-title {
    margin-top: 0;
    margin-bottom: 10px;
}
.profile-card-title a {
    text-decoration: none;
    color: #333;
}
.profile-card-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}
.profile-card-meta span {
    display: block;
    margin-bottom: 5px;
}
.profile-card-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}
/*
 * Vylepšené styly pro horizontální formulář (verze 2)
 */

#katalog-vyber-form {
    display: flex !important; /* !important vynutí použití flexboxu */
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 15px !important;
    
    background-color: #f7f7f7;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Cílíme na všechny přímé potomky formuláře */
#katalog-vyber-form > div.form-group {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important; /* Vynulujeme spodní okraj, použijeme gap */
}

#katalog-vyber-form label {
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Skryjeme prázdný popisek u tlačítka, slouží jen pro zarovnání */
#katalog-vyber-form .button-group label {
    visibility: hidden;
}

#katalog-vyber-form select,
#katalog-vyber-form button {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 45px;
    width: auto; /* Zajistí, aby se šířka přizpůsobila obsahu */
}

#katalog-vyber-form button {
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    border: none;
    font-weight: bold;
}
/*
 * Vynucení 4 sloupců pro mřížku v rozcestníku katalogu
 * (Přepisuje pravidla z rodičovské šablony)
 */

/* Cílíme velmi specificky, aby naše pravidlo mělo přednost */
body.stranka-rozcestnik .psp-catalog-hub .psp-hub-grid.cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* !important dává nejvyšší prioritu */
    gap: 20px; /* Mezery mezi sloupci */
}

/* Pojistka pro případ, že by tam byla z nějakého důvodu třída cols-3 */
body.stranka-rozcestnik .psp-catalog-hub .psp-hub-grid.cols-3 {
    grid-template-columns: repeat(4, 1fr) !important;
}
/*
 * Finální oprava pro 4-sloupcový vzhled rozcestníku
 * Tento kód má vysokou prioritu a měl by přepsat vše ostatní.
 */

/* Cílíme na hlavní obalovač, abychom zajistili plnou šířku */
.stranka-rozcestnik .psp-catalog-hub {
    max-width: 100% !important; /* DŮLEŽITÉ: Odstraní případné omezení šířky */
    width: 100% !important;
}

/* Cílíme na samotnou mřížku s položkami */
.stranka-rozcestnik .psp-catalog-hub .psp-hub-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Vynutíme 4 sloupce */
    gap: 20px !important; /* Mezery mezi položkami */
    width: 100% !important;
}
}