/* Foglalkoztatói portál – belépés nyelvválasztó */

.portal-locale-selector {
    display: flex;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    gap: 0;
    padding: 0.2rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(249 250 251);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.04);
}

.portal-locale-selector-option-wrap {
    flex: 1;
    min-width: 0;
}

.portal-locale-selector-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.portal-locale-selector-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 4.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
    color: rgb(75 85 99);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.portal-locale-selector-flag {
    display: block;
    width: 2.75rem;
    height: 1.85rem;
    border-radius: 0.25rem;
    border: 1px solid rgb(0 0 0 / 0.1);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.14);
    object-fit: cover;
}

.portal-locale-selector-input:checked + .portal-locale-selector-option {
    background: rgb(255 255 255);
    color: rgb(31 41 55);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08), 0 0 0 2px rgb(217 119 6 / 0.35);
}

.portal-locale-selector-input:focus-visible + .portal-locale-selector-option {
    outline: 2px solid rgb(217 119 6);
    outline-offset: 2px;
}

.portal-locale-selector-option:hover {
    background: rgb(255 255 255 / 0.7);
    color: rgb(31 41 55);
}

.portal-topbar-locale {
    display: flex;
    align-items: center;
    margin-inline-end: 0.25rem;
}

.portal-locale-selector--topbar {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0.15rem;
}

.portal-locale-selector--topbar .portal-locale-selector-option {
    flex-direction: row;
    min-height: 2rem;
    padding: 0.2rem 0.35rem;
    gap: 0;
}

.portal-locale-selector--topbar .portal-locale-selector-flag {
    width: 1.75rem;
    height: 1.15rem;
}

.portal-locale-selector--topbar .portal-locale-selector-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portal-topbar-company {
    display: flex;
    align-items: center;
    margin-inline-end: 0.5rem;
    max-width: 14rem;
}

.portal-company-selector-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.portal-company-selector-wrap--hidden {
    max-width: 10rem;
}

.portal-company-selector-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(107 114 128);
    white-space: nowrap;
}

.portal-company-selector {
    min-width: 0;
    max-width: 100%;
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
    color: rgb(31 41 55);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.portal-company-selector:focus-visible {
    outline: 2px solid rgb(217 119 6);
    outline-offset: 1px;
}

.portal-company-selector-single {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(55 65 81);
}

/* Foglalkoztatói portál – értékelő felület */

.employer-scale-legend .fi-section-content {
    padding-top: 0.5rem;
}

.employer-scale-legend .fi-sc-grid {
    gap: 0.5rem;
}

.employer-scale-score {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-600, #d97706);
}

.employer-scale-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    line-height: 1.2;
    color: rgb(107 114 128);
    text-align: center;
}

.employer-eval-criteria .fi-sc-section-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.employer-criterion.fi-fieldset {
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
    margin-inline: 0;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    padding: 1rem 1.25rem 1.1rem;
}

.employer-criterion .fi-fieldset-label {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 0 0.65rem;
    float: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(31 41 55);
}

.employer-criterion .fi-fo-field-wrp-helper-text {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgb(107 114 128);
}

/* 1–5 választó: 5 egyenlő oszlop, külön gombok (nem grouped) */
.employer-score-toggle .fi-fo-toggle-buttons {
    width: 100%;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: transparent;
    box-sizing: border-box;
}

.employer-score-toggle .fi-fo-toggle-buttons-btn-ctn {
    min-width: 0;
}

.employer-score-toggle .fi-fo-toggle-buttons-btn-ctn .fi-btn {
    display: flex;
    width: 100%;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    border-radius: 0.5rem !important;
    background: #eee;
    color: rgb(55 65 81);
    box-shadow: none;
}

.employer-score-toggle .fi-fo-toggle-buttons-btn-ctn .fi-btn:hover {
    background: #e5e5e5;
}

/* Kiválasztott: primary (borostyán) – inset árnyék, ne ugorjon a layout */
.employer-score-toggle .fi-fo-toggle-buttons-input:checked + .fi-btn {
    background: rgb(217 119 6) !important;
    color: rgb(255 255 255) !important;
    box-shadow: inset 0 0 0 2px rgb(255 255 255), 0 1px 2px rgb(180 83 9 / 0.35) !important;
    ring: none;
}

.employer-score-toggle .fi-fo-toggle-buttons-input:checked + .fi-btn:hover {
    background: rgb(180 83 9) !important;
    color: rgb(255 255 255) !important;
}

.employer-score-toggle .fi-fo-toggle-buttons-input:focus-visible + .fi-btn {
    z-index: 1;
}

/* Validáció: visszafogott – piros „Kötelező” + enyhe háttér a gomboknál */
.employer-criterion:has([data-validation-error]) {
    border-color: rgb(229 231 235);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
}

.employer-score-toggle:has([data-validation-error]) .fi-fo-toggle-buttons {
    background: rgb(254 242 242);
}

/* „Kötelező” sor: enyhe alsó térköz (hibaüzenet abszolút pozícióban) */
.employer-score-toggle .fi-fo-field-content-col {
    position: relative;
    padding-bottom: 0.5rem;
}

.employer-score-toggle .fi-fo-field-wrp-error-message {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    min-height: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.25rem;
    color: rgb(185 28 28);
}

/* Sticky mentés sáv */
.fi-employer-eval-page .fi-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255 / 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 0.06);
}

@media (min-width: 1024px) {
    .employer-eval-criteria {
        max-width: 52rem;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .employer-score-toggle .fi-fo-toggle-buttons {
        gap: 0.35rem;
    }

    .employer-score-toggle .fi-fo-toggle-buttons-btn-ctn .fi-btn {
        min-height: 2.85rem;
        font-size: 0.75rem;
        padding-inline: 0.2rem;
    }
}

/* Sötét mód – értékelő felület */

.dark .employer-criterion.fi-fieldset {
    border-color: rgb(63 63 70);
    background: rgb(39 39 42);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.25);
}

.dark .employer-criterion .fi-fieldset-label {
    color: rgb(244 244 245);
}

.dark .employer-criterion .fi-fo-field-wrp-helper-text {
    color: rgb(161 161 170);
}

.dark .employer-scale-label {
    color: rgb(161 161 170);
}

.dark .employer-score-toggle .fi-fo-toggle-buttons-btn-ctn .fi-btn {
    background: rgb(63 63 70);
    color: rgb(228 228 231);
    font-size: 0.8rem;
}

.dark .employer-score-toggle .fi-fo-toggle-buttons-btn-ctn .fi-btn:hover {
    background: rgb(82 82 91);
}

.dark .employer-score-toggle .fi-fo-toggle-buttons-input:checked + .fi-btn {
    box-shadow: inset 0 0 0 2px rgb(39 39 42), 0 1px 2px rgb(180 83 9 / 0.45) !important;
}

.dark .employer-score-toggle:has([data-validation-error]) .fi-fo-toggle-buttons {
    background: rgb(69 10 10);
}

.dark .employer-criterion:has([data-validation-error]) {
    border-color: rgb(127 29 29);
}

.dark .employer-score-toggle .fi-fo-field-wrp-error-message {
    color: rgb(252 165 165);
}

.dark .fi-employer-eval-page .fi-form-actions {
    border-color: rgb(63 63 70);
    background: rgb(39 39 42 / 0.95);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 0.3);
}

.fi-topbar {
    position: relative;
}

.dev-topbar-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.dev-virtual-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(229 231 235);
    background: rgb(255 255 255 / 0.92);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.dev-virtual-clock--active {
    border-color: rgb(245 158 11);
    background: rgb(255 251 235);
}

.dev-virtual-clock-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgb(107 114 128);
    white-space: nowrap;
}

.dev-virtual-clock-input {
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 0.15rem 0.35rem;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.35rem;
    color: rgb(31 41 55);
    background: rgb(255 255 255);
}

.dev-virtual-clock-reset {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    border: 1px solid rgb(209 213 219);
    background: rgb(249 250 251);
    color: rgb(55 65 81);
    cursor: pointer;
}

.dev-virtual-clock-reset:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dev-virtual-clock-reset:not(:disabled):hover {
    background: rgb(243 244 246);
}

@media (max-width: 900px) {
    .dev-virtual-clock-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}
