/* --- ESTILOS GERAIS --- */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
    
}

#loginSection {
    background: #f8fafc !important;
}
:root {
    --laranja: #ff5e00;
    --cor-secundaria: #f8fafc;
    --cor-texto: #334155;
    --laranja-claro: #ff9e67;
}

.logo-principal {
    width: 500px;
    height: auto;
    margin: 1rem auto;
}

/* --- ACESSO ADMINISTRATIVO --- */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 94, 0, 0.08), transparent 28%),
        radial-gradient(circle at 92% 86%, rgba(15, 23, 42, 0.055), transparent 27%),
        #f8fafc;
}

.login-shell {
    width: min(100%, 980px);
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 48px 38px;
    overflow: hidden;
    color: #fff;
    background: #292728;
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.login-brand-panel::before {
    width: 310px;
    height: 310px;
    right: -180px;
    top: -120px;
    border: 72px solid rgba(255, 94, 0, 0.92);
}

.login-brand-panel::after {
    width: 180px;
    height: 180px;
    left: -108px;
    bottom: 54px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.login-brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 86px;
    color: #ffb082;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-brand-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: #ff5e00;
}

.login-brand-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.login-brand-content p {
    max-width: 310px;
    margin: 22px 0 0;
    color: #bdb9bb;
    font-size: 0.93rem;
    line-height: 1.7;
}

.login-brand-footer {
    color: #8f8a8d;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    padding: 38px 58px 30px;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.login-logo-link {
    display: inline-flex;
    width: 190px;
}

.login-logo {
    display: block;
    width: 100%;
    height: auto;
}

.login-area-label {
    padding: 7px 10px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-content {
    width: 100%;
    max-width: 390px;
    margin: auto;
    padding: 44px 0 34px;
}

.login-heading {
    margin-bottom: 32px;
}

.login-heading h2,
.login-modal-copy h2 {
    margin: 0;
    color: #1f1d1e;
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.login-heading p,
.login-modal-copy p {
    margin: 9px 0 0;
    color: #7b8493;
    font-size: 0.9rem;
    line-height: 1.55;
}

.login-form,
.login-recovery-form {
    display: grid;
    gap: 20px;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-label {
    display: block;
    margin: 0 0 8px;
    color: #3f4652;
    font-size: 0.76rem;
    font-weight: 650;
}

.login-label-row .login-label {
    margin-bottom: 8px;
}

.login-forgot-link {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: #db5200;
    background: transparent;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 650;
    cursor: pointer;
}

.login-forgot-link:hover {
    color: #a93f00;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a8b4;
    font-size: 0.86rem;
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 42px;
    color: #24272d;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 0.86rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-input::placeholder {
    color: #aab1bc;
}

.login-input:hover {
    border-color: #c7ccd3;
}

.login-input:focus {
    border-color: #ff5e00;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.11);
}

.login-input-wrap:focus-within > i:first-child {
    color: #ff5e00;
}

.login-password-toggle {
    position: absolute;
    inset: 0 4px 0 auto;
    width: 42px;
    padding: 0;
    color: #89919e;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.login-password-toggle:hover {
    color: #3f4652;
}

.login-message {
    min-height: 0;
    color: #6b7280;
    font-size: 0.76rem;
    line-height: 1.45;
}

.login-message:empty {
    display: none;
}

.login-message-error {
    color: #c2413b;
}

.login-message-success {
    padding: 10px 12px;
    color: #167052;
    background: #edf9f3;
    border: 1px solid #ccebdd;
    border-radius: 8px;
}

.login-message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.login-submit,
.login-modal-submit {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    color: #fff;
    background: #ff5e00;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(255, 94, 0, 0.18);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-submit:hover,
.login-modal-submit:hover {
    background: #e95500;
    box-shadow: 0 10px 24px rgba(255, 94, 0, 0.25);
    transform: translateY(-1px);
}

.login-submit:disabled,
.login-modal-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.login-submit i,
.login-modal-submit i {
    font-size: 0.72rem;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #a0a7b2;
    font-size: 0.68rem;
}

.login-footer i {
    color: #ff5e00;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-modal.hidden {
    display: none;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(24, 22, 23, 0.56);
    border: 0;
    cursor: default;
    backdrop-filter: blur(4px);
}

.login-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
    animation: login-modal-enter 0.2s ease-out;
}

.login-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.login-modal-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #e75500;
    background: #fff1e8;
    border-radius: 11px;
}

.login-modal-close {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #89919e;
    background: #f8fafc;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.login-modal-close:hover {
    color: #34383f;
    background: #eef1f4;
}

.login-modal-copy {
    margin-bottom: 24px;
}

.login-modal-copy h2 {
    font-size: 1.45rem;
}

.login-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.login-modal-cancel {
    min-height: 44px;
    padding: 0 17px;
    color: #535b67;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}

.login-modal-cancel:hover {
    background: #f8fafc;
}

.login-modal-submit {
    min-height: 44px;
    box-shadow: none;
}

body.login-modal-open {
    overflow: hidden;
}

@keyframes login-modal-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 780px) {
    .login-page {
        padding: 18px;
    }

    .login-shell {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: calc(100dvh - 36px);
        padding: 30px 28px 24px;
    }

    .login-content {
        padding: 42px 0 30px;
    }
}

@media (max-width: 430px) {
    .login-page {
        padding: 0;
        background: #fff;
    }

    .login-shell {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-panel {
        min-height: 100dvh;
        padding: 26px 22px 22px;
    }

    .login-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .login-logo-link {
        width: 174px;
    }

    .login-content {
        padding: 42px 0 28px;
    }

    .login-heading h2 {
        font-size: 1.65rem;
    }

    .login-modal-card {
        padding: 24px 20px;
    }

    .login-modal-actions {
        flex-direction: column-reverse;
    }

    .login-modal-cancel,
    .login-modal-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-modal-card {
        animation: none;
    }
}

.input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.input-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
}

.c1 {
    color: #9a3412 !important;
}

.hidden {
    display: none;
}

.search-container {
    position: relative;
    display: flex;
    flex-grow: 1;
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-search-btn:hover {
    color: #475569;
}


/* --- COMPONENTES PADRÃO --- */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.3);
}

.btn-primary {
    background-color: #ff5e00 !important;
    color: white;
}

.btn-primary:not(:disabled):hover {
    background-color: #e65600;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.2);
}

.btn-secondary {
    background-color: white;
    color: #475569;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.form-input, .form-checkbox {
    width: 100%;
    padding: 0.4rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.875rem !important;
}

.form-checkbox {
    width: auto;
    padding: 0;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.25rem;
}


.form-input:focus, .form-checkbox:focus {
    outline: none;
    border-color: #ff5e00;
    box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.2);
}

/* --- LAYOUT E MENU LATERAL --- */
#sidebar {
    transition: transform 0.3s ease-in-out;
    border-right-width: 1px;
    border-color: #e2e8f0;
}

.sidebar-mobile-closed {
    transform: translateX(-100%);
}

@media (min-width: 768px) {
    .sidebar-mobile-closed {
        transform: translateX(0);
    }
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
    color: #475569;
}

.sidebar-link.active {
    background-color: #ff5e00;
    color: white;
    font-weight: 600;
}

.sidebar-link:hover:not(.active) {
    background-color: #f1f5f9;
    color: #ff5e00;
}

.fundo-laranja {
    background-color: #ff5e00 !important;
}

.fundo-laranja-claro {
    background-color: #e46f00 !important;
}

.fundo-laranja-bem-claro {
    background-color: #fff7ed !important;
}

.txt-laranja {
    color: #ff5e00 !important;
}

.to-orange-600 {
    background-color: #ff5e00 !important;
}

.fundo-laranja-op {
    background-color: #ff55000f !important;
}

/* --- TABELA E MODAL --- */
.table-header {
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-cell {
    padding: 0.6rem 1rem;
    white-space: nowrap;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* Em seuestagio/css/style.css, SUBSTITUA esta classe */

.table-container {
    overflow: auto; /* Lida com o scroll horizontal E vertical automaticamente */
    max-height: 65vh; /* Limita a altura da 'caixa' da tabela a 65% da altura do ecrã */
    -webkit-overflow-scrolling: touch; /* Melhora a experiência de scroll em telemóveis */
}

.modal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

/* --- FORMULÁRIO MULTI-STEP --- */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}

#multiStepProgressBar {
    position: relative;
    display: flex;
    justify-content: space-between;
    counter-reset: step;
}
#multiStepProgressBar::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background-color: #e2e8f0;
    z-index: 1;
}
.step-indicator {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.3s ease;
}
.step-indicator::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    margin: 0 auto 0.5rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    border-radius: 50%;
    background-color: #e2e8f0;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}
.step-indicator.active {
    color: #ff5e00;
    font-weight: 600;
}
.step-indicator.active::before {
    background-color: #fff;
    border-color: #ff5e00;
    color: #ff5e00;
}
.step-indicator.completed {
    color: #16a34a;
}
.step-indicator.completed::before {
    background-color: #16a34a;
    border-color: #16a34a;
    color: white;
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}


/* --- FILTROS MULTI-SELECT --- */
.multiselect-filter {
    position: relative;
}

.multiselect-btn {
    width: 100%;
    text-align: left;
    background-color: white;
    padding: 0.4rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.multiselect-btn:focus {
    outline: none;
    border-color: #ff5e00;
    box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.2);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 0.25rem;
    z-index: 20;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.multiselect-item {
    display: block;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.multiselect-item:hover {
    background-color: #f1f5f9;
}

.multiselect-item input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* --- TAGS --- */
.tag-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-btn:hover {
    background-color: #cbd5e1;
}

.tag-btn.selected {
    background-color: #2563eb;
    color: white;
    border-color: #1d4ed8;
}

.tag-btn.selected .remove-tag-icon {
    margin-left: 0.5rem;
    font-weight: 900;
}

.text-uppercase {
    text-transform: uppercase;
}

/* --- NOVOS ESTILOS PARA O LAYOUT do menu lateral --- */

/* Ajusta o container principal para usar todo o espaço da tela */
#app-container {
    height: 100vh;
}

/* Nova Barra Lateral Escura */
#sidebar {
    background-color: #ffffff; /* Cor escura (cinza quase preto) */
    border-right-width: 0; /* Remove a borda branca antiga */
    color: #9ca3af; /* Cor do texto padrão (cinza claro) */
}

/* Links da Barra Lateral */
.sidebar-link {
    color: #6b6b6b; /* Cor do texto dos links (cinza mais claro) */
    font-weight: 500;
}

.sidebar-link i {
    color: #9ca3af; /* Cor dos ícones (cinza médio) */
    transition: color 0.2s;
}

/* Link Ativo */
.sidebar-link.active {
    background-color: #ff5521; /* Fundo do item ativo (cinza escuro) */
    color: #ffffff; /* Cor do texto do item ativo (branco) */
    font-weight: 600;
}

.sidebar-link.active i {
    color: #ffffff; /* Cor do ícone do item ativo (branco) */
}

/* Efeito Hover */
.sidebar-link:hover:not(.active) {
    background-color: #ff5521; /* Fundo do hover (cinza um pouco mais claro) */
    color: #ffffff; /* Cor do texto no hover (branco) */
}

.sidebar-link:hover:not(.active) i {
    color: #ffffff; /* Cor do ícone no hover (branco) */
}

/* Perfil do Usuário no Rodapé da Sidebar */
.sidebar-footer-profile {
    background-color: #e2e2e23b; /* Fundo da caixa de perfil */
}

.sidebar-footer-profile .font-bold {
    color: #000000; /* Cor do nome do usuário (branco) */
}

.sidebar-footer-profile .text-xs {
    color: #9ca3af; /* Cor do cargo do usuário (cinza) */
}

/* Botão de Sair */
#logoutBtn {
    color: #9ca3af; /* Cor do texto e ícone de sair */
}
#logoutBtn:hover {
    background-color: #ef4444;
    color: white; /* Cor vermelha no hover */
}

#confirmBtn {
    background-color: #ef4444; /* Fundo vermelho */
    color: white; /* Texto branco */
}

.vic {
    width: 100% !important;
    background-color: #f9fafc !important;
    box-shadow: none !important;
    
}
/* Nova Barra Superior (Topbar) */
#topbar {
    background-color: #f9fafc;
    border-bottom: 1px solid #e5e7eb;
}

/* .topbar-cor {
    background-color: #161616 !important;
    border-bottom: 1px solid #e5e7eb;
} */


#topbar-title {
    color: #000000;
}

#topbar-date {
    color: #000000;
}

/* --- ESTILOS PARA AS ABAS (TABS) --- */
.tab-btn {
    padding: 0.75rem 0.25rem;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b; /* cinza */
    transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
    color: #334155; /* cinza mais escuro */
    border-bottom-color: #cbd5e1; /* borda cinza claro */
}

.tab-btn.active {
    color: #ff5e00; /* laranja */
    border-bottom-color: #ff5e00; /* borda laranja */
}

.tab-count {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: #e2e8f0; /* fundo cinza claro */
    color: #475569;
}

.tab-btn.active .tab-count {
    background-color: #ffedd5; /* fundo laranja claro */
    color: #9a3412; /* cor do texto laranja escuro */
}

/* Adicione ao final de css/style.css */

/* --- NOVOS ESTILOS PARA ABAS (TABS) DA PÁGINA DE CLIENTES --- */
.tab-btn-new {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569; /* cinza escuro */
    transition: all 0.2s ease-in-out;
}

.tab-btn-new.active {
    background-color: white;
    color: #ff5e00; /* laranja */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.tab-count-new {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #475569;
}

.tab-btn-new.active .tab-count-new {
    background-color: #ffedd5; /* fundo laranja claro */
    color: #9a3412; /* cor do texto laranja escuro */
}

/* Ícones de ação da lista de clientes */
.action-icon {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
}
.action-icon:hover {
    background-color: #f1f5f9;
    color: #ff5e00;
}

/* Adicione ao final de css/style.css */

/* --- NOVOS ESTILOS PARA ABAS (TABS) DA PÁGINA DE CLIENTES --- */
.tab-btn-new {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569; /* cinza escuro */
    transition: all 0.2s ease-in-out;
}

.tab-btn-new.active {
    background-color: white;
    color: #ff5e00; /* laranja */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.tab-count-new {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #475569;
}

.tab-btn-new.active .tab-count-new {
    background-color: #ffedd5; /* fundo laranja claro */
    color: #9a3412; /* cor do texto laranja escuro */
}

/* Ícones de ação da lista de clientes */
.action-icon {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
}
.action-icon:hover {
    background-color: #f1f5f9;
    color: #ff5e00;
}

/* Adicione ao final de css/style.css */

/* --- ESTILOS PARA O MODAL DE CRIAÇÃO DE VAGA MELHORADO --- */

/* Botões de Rádio customizados (Presencial/Remoto) */
.btn-toggle {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid #cbd5e1; /* border-slate-300 */
    background-color: white;
    font-weight: 500;
    color: #475569; /* text-slate-600 */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-toggle.active {
    background-color: #f97316; /* bg-orange-500 */
    color: white;
    border-color: #f97316; /* border-orange-500 */
}

/* Card para as perguntas do questionário */
.questao-card {
    background-color: #f8fafc; /* bg-slate-50 */
    border: 1px solid #e2e8f0; /* border-slate-200 */
    padding: 1.25rem;
    border-radius: 0.5rem; /* rounded-lg */
    position: relative;
}

.remove-questao-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    color: #94a3b8; /* text-slate-400 */
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}
.remove-questao-btn:hover {
    color: #ef4444; /* text-red-500 */
}
/* --- REGRAS DE VISIBILIDADE PARA O MENU DO PORTAL --- */

/* Por padrão, em telas pequenas: */
/* 1. Escondemos o menu de desktop. */
.menu-desktop {
    display: none;
}
/* 2. Mostramos o botão do menu hambúrguer. */
.menu-mobile-botao {
    display: block;
}


/* Quando a tela tiver 768px de largura ou mais (desktop): */
@media (min-width: 768px) {
    /* 1. Mostramos o menu de desktop como um container flex. */
    .menu-desktop {
        display: flex;
    }
    /* 2. Escondemos o botão do menu hambúrguer. */
    .menu-mobile-botao {
        display: none;
    }
}


/* --- ESTILOS PARA A NOVA INTERFACE DO PORTAL --- */

/* --- ESTILOS PARA A NOVA INTERFACE DO PORTAL --- */

/* Estilo do link de navegação do portal */
.portal-nav-link {
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

/* Efeito hover para os links */
.portal-nav-link:hover {
    
    border-bottom-color: #F28C02;
}

/* Estilo do link ativo */
.portal-nav-link.active {
    font-weight: 700;
    border-bottom-color: #F28C02;
}

.title-vagas {
    color: #0F3250; /* Azul escuro do título "Vagas Disponíveis" */
    border-left: 4px solid #F28C02; /* Borda laranja à esquerda */
    padding-left: 1rem;
}

.vaga-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0; /* Borda cinza clara */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
}

.vaga-card:hover {
    border-color: #F28C02; /* Borda laranja no hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Ajuste no botão primário para corresponder ao protótipo */
.btn-primary {
    background-color: #F28C02; /* Tom de laranja do protótipo */
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    background-color: #d97d02; /* Laranja um pouco mais escuro no hover */
}

/* fixar footer no fundo */
.container-1 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.conteudo-1 {
  flex: 1;
}



/* --- ESTILOS DE VISIBILIDADE DO LOGIN --- */






/* Por padrão, esconde os elementos de usuário logado */
/* --- Lógica de Visibilidade do Menu --- */

/* Por padrão, esconde os links de usuário e mostra os de login/cadastro */
.view-logged-in {
    display: none;
}
.view-logged-out {
    display: block; /* ou flex, dependendo do layout */
}

/* Quando o body tem a classe .user-logged-in, inverte a visibilidade */
body.user-logged-in .view-logged-in {
    display: block; /* ou flex */
}
body.user-logged-in .view-logged-out {
    display: none;
}




/* Ajuste para o menu mobile, que usa 'block' em vez de 'inline-flex' */
.md\:hidden .view-logged-in {
    display: none; /* Mantém escondido por padrão */
}

body.user-logged-in .md\:hidden .view-logged-in {
    display: block; /* Mostra como bloco quando logado */
}

/* --- ESTILOS PARA STATUS DO PERFIL --- */
.progress-bar-container {
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 9999px; /* rounded-full */
    height: 10px;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: #22c55e; /* bg-green-500 */
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* --- CORREÇÃO E MELHORIA DO HEADER --- */
header {
    width: 100%; /* Garante que o header ocupe toda a largura */
    background-color: white; /* Garante o fundo branco */
}

/* --- ESTILOS PARA BOTÕES DE COMPARTILHAMENTO --- */
.share-buttons-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espaçamento entre os botões */
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0; /* Divisor (cinza claro) */
}

.share-buttons-container span {
    font-size: 0.875rem; /* Tamanho da fonte do texto "Compartilhar" */
    font-weight: 600;
    color: #475569; /* cinza-600 */
}

.share-button {
    color: #64748b; /* cinza-500 */
    transition: color 0.2s ease-in-out;
    font-size: 0.875rem !important; /* Tamanho dos ícones */
}

.share-button:hover {
    color: #0f172a; /* cinza-900 */
}


/* --- ESTILOS PARA A PÁGINA DE CONFIGURAÇÕES COM ABAS --- */

.settings-container {
    width: 100%;
    padding: 1.5rem; /* p-6 */
}

.settings-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0; /* cinza-200 */
    margin-bottom: 1.5rem; /* mb-6 */
}

.tab-link {
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    font-weight: 600; /* font-semibold */
    color: #64748b; /* text-slate-500 */
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; /* Alinha com a borda principal */
    cursor: pointer;
    background-color: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: all 0.2s ease-in-out;
}

.tab-link:hover {
    color: #0f172a; /* text-slate-900 */
}

.tab-link.active {
    color: #F28C02; /* Laranja principal */
    border-bottom-color: #F28C02;
}

.tab-content {
    display: none; /* Esconde todas as abas por padrão */
}

.tab-content.active {
    display: block; /* Mostra apenas a aba ativa */
}

/* Classe customizada para esconder elementos do menu dinâmico */
.menu-hidden {
    display: none !important;
}

/* Em seuestagio/css/style.css */

/* ==========================================================================
   Estilos para o Componente de Filtro Dropdown com Checkbox
   ========================================================================== */

#advancedFilters .grid > div,
#vagas-filters .grid > div,
#filters .grid > div {
    position: relative;
}

.multiselect-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: left;
    font-size: 0.875rem;
    height: 38px;
}

.multiselect-btn:hover {
    border-color: #fb923c;
}

.multiselect-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiselect-dropdown {
    position: absolute;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    margin-top: 0.25rem;
    
    /* Mecanismo de visibilidade padrão */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Classe para MOSTRAR o dropdown quando ativa */
.multiselect-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.multiselect-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.multiselect-item:hover {
    background-color: #f9fafb;
}

.multiselect-item input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #f97316;
}

.multiselect-item label {
    cursor: pointer;
    width: 100%;
}


/* Em seuestagio/css/style.css */

/* --- INÍCIO DA CORREÇÃO PARA FORMATAÇÃO DO PORTAL --- */

/* Garante que os parágrafos tenham espaçamento, resolvendo o problema da quebra de linha */
.prose p {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Garante que as listas tenham a margem e o estilo corretos */
.prose ul,
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.75em; /* Adiciona o recuo para os marcadores */
}

/* Define o estilo de marcador para listas não ordenadas (bolinhas) */
.prose ul {
    list-style-type: disc;
}

/* Define o estilo de marcador para listas ordenadas (números) */
.prose ol {
    list-style-type: decimal;
}

/* Garante que cada item da lista tenha um espaçamento adequado */
.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


/* --- ESTILOS PARA A BARRA DE AÇÕES EM MASSA --- */

.bulk-action-bar {
    position: fixed;
    bottom: 1.5rem; /* 24px */
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;

    display: flex;
    align-items: center;
    gap: 1rem; /* 16px */

    background-color: var(--laranja); /* Cinza escuro, como o menu */
    color: white;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border-radius: 8px;

    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Animação de entrada e saída */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.bulk-action-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#bulk-action-count {
    font-weight: 600;
    font-size: 0.875rem; /* text-sm */
}

.bulk-action-bar .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}


.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* Espaçamento entre o texto e o número */
}

.step-indicator .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e2e8f0; /* bg-slate-200 */
    color: #64748b; /* text-slate-500 */
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number,
.step-indicator.completed .step-number {
    background-color: #fb923c; /* bg-orange-500 */
    color: white;
}

/* Adicione esta classe no final do seu arquivo style.css */
.btn-hidden {
    display: none !important;
}

.bt {
    margin-top: 10px !important;
}


/* Adicione este bloco de código inteiro ao final de css/style.css */

/* --- CORREÇÃO 1: INPUTS DE ARQUIVO (UPLOAD) --- */
/* Wrapper para o input de arquivo */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    cursor: pointer;
}

/* Input de arquivo original, escondido mas funcional */
.form-input-public-file {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Pseudo-elemento que cria o novo "botão" visível */
.file-input-wrapper::before {
    content: 'Escolher arquivo';
    display: inline-block;
    background: rgba(234, 88, 12, 0.1);
    border-right: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: e46f00c;
}

/* Pseudo-elemento que mostra o nome do arquivo (ou o texto padrão) */
.file-input-wrapper::after {
    content: 'Nenhum ficheiro selecionado';
    display: inline-block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 150px);
    vertical-align: middle;
}

.file-input-wrapper.file-selected::after {
    content: var(--filename);
    color: #1e293b;
}

/* --- CORREÇÃO 2: QUEBRA DE LINHA NA DESCRIÇÃO DA VAGA --- */
.vaga-descricao-publica {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* --- CORREÇÃO 3: NOVO LAYOUT DO QUESTIONÁRIO --- */
.question-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.question-title {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.question-title p {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background-color: #fdba74;
    color: #8D4B0E;
    font-size: 0.875rem;
    font-weight: 700;
}

.question-answer {
    padding: 1.25rem;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.option-item:hover {
    border-color: #fdba74;
    background-color: #fff7ed;
}

.option-item input {
    margin-right: 0.75rem;
    height: 1.125rem;
    width: 1.125rem;
}

.flex-grow {
  flex-grow: 1;
}

/* Substitua o bloco .portal-teleservicos inteiro no final de css/style.css */

/* --- Estilos para o Portal Tele Serviços --- */

/* Cor primária para botões principais */
body.portal-teleservicos .btn-primary { 
    background-color: #408DCC !important; 
    border-color: #408DCC !important;
}
body.portal-teleservicos .btn-primary:hover {
    background-color: #7B7C7C !important; 
    border-color: #7B7C7C !important;
}

/* Cor primária para textos e links */
body.portal-teleservicos .text-primary {
    color: #408DCC !important;
}
body.portal-teleservicos .hover\:text-primary:hover {
     color: #408DCC !important;
}
body.portal-teleservicos .text-primary-dark { 
    color: #7B7C7C !important;
}
body.portal-teleservicos .hover\:text-primary-dark:hover {
    color: #7B7C7C !important;
}

/* Cor para anéis de foco (inputs, selects) */
body.portal-teleservicos .focus\:ring-primary:focus {
    --tw-ring-color: #408DCC !important;
}
body.portal-teleservicos .focus\:border-primary:focus {
    border-color: #408DCC !important;
}

/* Cor para bordas primárias */
body.portal-teleservicos .border-primary {
    border-color: #408DCC !important;
}

/* --- INÍCIO DA CORREÇÃO ESPECÍFICA --- */
/* Cor para a borda do modal de candidatura (que usa /20 de opacidade) */
body.portal-teleservicos .border-primary\/20 {
    /* Cor #408DCC com 20% de opacidade */
    border-color: rgba(49, 49, 127, 0.2) !important; 
}
/* --- FIM DA CORREÇÃO ESPECÍFICA --- */

/* Cor para os botões de filtro de modalidade QUANDO SELECIONADOS */
body.portal-teleservicos #modalidade-filter input[type="radio"]:checked + label {
     background-color: #408DCC !important;
     border-color: #408DCC !important;
     color: white !important;
}

/* Cor para inputs de rádio e checkbox padrão QUANDO SELECIONADOS */
body.portal-teleservicos .form-radio:checked,
body.portal-teleservicos .form-checkbox:checked {
    background-color: #408DCC !important;
    border-color: #408DCC !important;
    --tw-ring-color: transparent !important;
}
/* Cor do anel de foco para radios/checkboxes */
body.portal-teleservicos .form-radio:focus,
body.portal-teleservicos .form-checkbox:focus {
    --tw-ring-color-focus: rgba(49, 49, 127, 0.5) !important;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--tw-ring-color-focus) !important;
    border-color: #408DCC !important; 
}

/* Gradiente de texto, se usado */
body.portal-teleservicos .text-gradient {
    background: linear-gradient(135deg, #408DCC, #4a4a9a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Cor para ícones que usam text-primary */
body.portal-teleservicos .fa-spinner.text-primary,
body.portal-teleservicos i.text-primary {
     color: #408DCC !important;
}

/* Cor da borda/sombra de foco para o card do questionário */
body.portal-teleservicos .question-card:focus-within {
    border-color: #408DCC !important; 
    box-shadow: 0 0 0 3px rgba(49, 49, 127, 0.3) !important; 
}

/* --- INÍCIO DA CORREÇÃO ESPECÍFICA --- */
/* Cor do botão "Escolher arquivo" (pseudo-elemento ::before) */
body.portal-teleservicos .file-input-wrapper::before {
    background-color: #e0e7ff !important; /* Azul MUITO claro (indigo-100) */
    color: #408DCC !important; /* Azul principal */
    border-color: #c7d2fe !important; /* Azul um pouco mais escuro (indigo-200) */
}
/* Cor do botão "Escolher arquivo" no INPUT PADRÃO (caso ::before não se aplique) */
body.portal-teleservicos .form-input-file::file-selector-button {
    background-color: #e0e7ff !important; /* Azul MUITO claro (indigo-100) */
    color: #408DCC !important; /* Azul principal */
    border-color: #c7d2fe !important; /* Azul um pouco mais escuro (indigo-200) */
}
body.portal-teleservicos .form-input-file::file-selector-button:hover {
     background-color: #c7d2fe !important; /* Azul um pouco mais escuro no hover */
}
/* --- FIM DA CORREÇÃO ESPECÍFICA --- */

/* Adicione mais regras com 'body.portal-teleservicos' e '!important' se necessário */

body.portal-teleservicos #file-upload-button {
    background-color: #408DCC !important; /* Azul Tele Serviços */
    color: white !important;
    border-color: #408DCC !important;
}
/* --- FIM DA CORREÇÃO ESPECÍFICA --- */

.button-hidden {
    display: none !important; /* !important garante que sobrescreva outras regras de display */
}

/* ===================================================================== */
/* === INÍCIO: Bloco de Correção da Planilha (Substitua o anterior) === */
/* ===================================================================== */

/* ===================================================================== */
/* === CORREÇÃO VISUAL: PLANILHA DE ENTREVISTAS (Fix Layout Quebrado) === */
/* ===================================================================== */

.table-view-sheet {
    table-layout: fixed;    /* Respeita a largura definida das colunas */
    width: auto !important; /* Permite que a tabela cresça além da largura da tela */
    min-width: 1800px;      /* <--- O SEGREDO: Força largura mínima grande para ativar scroll */
    border-collapse: separate;
    border-spacing: 0;
}

/* Estilo das células para alinhar no topo e permitir quebra de linha */
.table-view-sheet td,
.table-view-sheet th {
    padding: 10px;
    vertical-align: top;    /* Alinha tudo ao topo para organização */
    border-bottom: 1px solid #f1f5f9;
    white-space: normal !important; /* Permite quebra de texto longo (wrap) */
    word-wrap: break-word;
}

/* Estilo dos Inputs dentro da planilha */
.table-view-sheet .sheet-input {
    width: 100%;
    font-size: 0.85rem;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    margin-bottom: 4px; /* Espaço entre inputs empilhados */
}

/* Remove aparência nativa de select para evitar bugs visuais */
.table-view-sheet select.sheet-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.25em;
    padding-right: 2rem;
}

.table-view-sheet textarea.sheet-input {
    resize: vertical;
    min-height: 38px;
}

/* --- DEFINIÇÃO DE LARGURA DAS COLUNAS (Isso impede que fiquem espremidas) --- */

/* 1. Checkbox */
.table-view-sheet th:nth-child(1), 
.table-view-sheet td:nth-child(1) { width: 50px; text-align: center; }

/* 2. Candidato */
.table-view-sheet th:nth-child(2), 
.table-view-sheet td:nth-child(2) { width: 220px; }

/* 3. Contato */
.table-view-sheet th:nth-child(3), 
.table-view-sheet td:nth-child(3) { width: 150px; }

/* 4. CV (Ícone) */
.table-view-sheet th:nth-child(4), 
.table-view-sheet td:nth-child(4) { width: 60px; text-align: center; }

/* 5. Formação */
.table-view-sheet th:nth-child(5), 
.table-view-sheet td:nth-child(5) { width: 250px; font-size: 0.8rem; color: #64748b; }

/* 6. Vaga / Cliente */
.table-view-sheet th:nth-child(6), 
.table-view-sheet td:nth-child(6) { width: 250px; font-size: 0.8rem; }

/* 7. Data / Hora */
.table-view-sheet th:nth-child(7), 
.table-view-sheet td:nth-child(7) { width: 160px; }

/* 8. Status */
.table-view-sheet th:nth-child(8), 
.table-view-sheet td:nth-child(8) { width: 170px; }

/* 9. Feedback */
.table-view-sheet th:nth-child(9), 
.table-view-sheet td:nth-child(9) { width: 170px; }

/* 10. Resumo (Área maior) */
.table-view-sheet th:nth-child(10), 
.table-view-sheet td:nth-child(10) { width: 300px; }

/* 11. Ações */
.table-view-sheet th:nth-child(11), 
.table-view-sheet td:nth-child(11) { width: 80px; text-align: center; }


/* --- ESTILOS DOS BOTÕES AUXILIARES --- */
.btn-view-mode {
    padding: 6px 12px;
    border: none;
    background-color: transparent;
    color: #475569;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}
.btn-view-mode.active {
    background-color: white;
    color: e46f00c;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn-success {
    background-color: #16a34a !important;
    color: white !important;
}
.btn-success:hover {
    background-color: #15803d !important;
}

/* Botão Salvar */
.btn-salvar-linha {
    background-color: #f97316; 
    color: white;
    opacity: 1.0;
    transition: background-color 0.2s, opacity 0.2s;
}
.btn-salvar-linha:disabled {
    background-color: #f97316; 
    opacity: 0.6;
    cursor: not-allowed;
}
/* ===================================================================== */
/* === FIM: Bloco de Correção da Planilha === */
/* ===================================================================== */

/* Força o conteúdo dentro de tags <pre> (usadas pelo "Preformatted") 
  a quebrar a linha e a respeitar os limites do container.
*/
.prose pre,
.vaga-descricao-publica pre {
    white-space: pre-wrap !important;  /* Mantém a formatação, mas quebra a linha */
    word-wrap: break-word !important; /* Quebra palavras longas se necessário */
}

/* --- INÍCIO: Correção TinyMCE (Tamanho da Fonte no Portal) --- */

/* Força a classe .prose (usada na descrição da vaga) a respeitar 
  os <span> com estilos de fonte que o TinyMCE cria.
*/
.prose [style*="font-size"] {
    font-size: inherit !important; /* Reseta a regra do .prose */
}

/* Aplica o tamanho da fonte definido no style="" do span.
  Isso faz com que o tamanho da fonte escolhido no editor
  seja realmente aplicado no portal público.
*/
.vaga-descricao-publica span[style*="font-size"] {
    font-size: var(--tw-prose-font-size, 1em); /* Fallback */
    font-size: -webkit-style-available; /* Tenta usar o valor inline */
    font-size: -moz-style-available;
    font-size: style-available;
    font-size: inherit; /* Fallback final se nada funcionar */
}

/* --- FIM: Correção TinyMCE --- */

/* --- INÍCIO: Correção TinyMCE (Estilos de Heading) --- */

/* Esta regra corrige o problema dos "Headings" (h1, h2, etc.)
  que pareciam parágrafos normais no portal. Ela restaura os
  tamanhos de fonte e o negrito padrão, mas APENAS 
  dentro da área de descrição da vaga.
*/
.vaga-descricao-publica h1,
.prose h1 {
    font-size: 2.25rem; /* 36px */
    font-weight: 800; /* extra-bold */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.vaga-descricao-publica h2,
.prose h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700; /* bold */
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.vaga-descricao-publica h3,
.prose h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    margin-top: 1em;
    margin-bottom: 0.25em;
    line-height: 1.3;
}

.vaga-descricao-publica h4,
.prose h4 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    margin-top: 1em;
    margin-bottom: 0.25em;
    line-height: 1.3;
}

.vaga-descricao-publica h5,
.prose h5 {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
}

.vaga-descricao-publica h6,
.prose h6 {
    font-weight: 700;
}
/* --- FIM: Correção TinyMCE --- */
/* Adicione ao final de style.css */
.vaga-status-select {
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.status-badge-saving {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    cursor: wait !important;
}

/* --- INÍCIO: Componente Dropdown com Busca (CORRIGIDO) --- */

.searchable-dropdown {
    /* CORREÇÃO CRÍTICA 1: Diz ao menu onde "grudar" */
    position: relative;
    width: 100%;
}

.searchable-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0.7rem;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    height: 38px;
    cursor: pointer;
    text-align: left;
}
.searchable-dropdown-btn:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}
.searchable-dropdown-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334155;
}
.searchable-dropdown-btn.placeholder span {
    color: #94a3b8;
}

.searchable-dropdown-menu {
    /* O menu em si */
    position: absolute;
    /* "Gruda" 100% abaixo do pai (que agora é o .searchable-dropdown) */
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    /* Garante que fique ACIMA de outros elementos no modal */
    z-index: 999; 
    margin-top: 0.25rem;
    padding: 0.5rem;
    /* CORREÇÃO CRÍTICA 2: Esconde por padrão */
    display: none;
}

/* CORREÇÃO CRÍTICA 3: Mostra quando o JS adiciona a classe */
.searchable-dropdown-menu.is-open {
    display: block;
}

.searchable-dropdown-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.searchable-dropdown-search:focus {
    outline: none;
    border-color: #ff5e00;
    box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.2);
}

.portal-teleservicos .searchable-dropdown-btn,
.portal-padrao .searchable-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.searchable-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-padrao {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}


.searchable-dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 0.25rem;
}

.searchable-dropdown-item:hover,
.searchable-dropdown-item.highlighted {
    background-color: #f1f5f9; /* bg-slate-100 */
}
/* --- FIM: Componente Dropdown com Busca --- */

/* --- INÍCIO: CORREÇÃO MODAL CLIPPING --- */
/* * Impede o modal de "cortar" os menus flutuantes 
 * (como o dropdown de Cidade e Recrutador) 
*/

div.modal-body {
    overflow: visible !important;
}

div.modal-content {
   overflow-y: auto !important;
}
/* --- FIM: CORREÇÃO MODAL CLIPPING --- */
/* --- INÍCIO: FIXES GERAIS --- */
html, body {
    /* Impede que o navegador "volte a página" ao arrastar horizontalmente */
    overscroll-behavior-x: none;
}

/* --- INÍCIO: ESTILOS DO PIPELINE DE VAGAS --- */

/* 1. Container Principal: Ocupa 100% da altura menos o cabeçalho */
#pipeline-view-container {
    display: flex;
    flex-direction: column;
    /* Ajuste o 80px se o seu cabeçalho for maior/menor */
    height: calc(100vh - 80px); 
    width: 100%;
    overflow: hidden; /* Impede rolagem na página inteira */
    position: relative;
}

/* 2. Área de Conteúdo (Fundo Cinza) */
#pipeline-scroll-area {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Quem rola são os filhos */
    position: relative;
}

/* 3. Container do Kanban (Board) */
.pipeline-board-container {
    display: flex;
    gap: 1.5rem; /* 24px */
    height: 100%;
    padding: 1.5rem;
    padding-bottom: 1rem; /* Espaço para a barra de rolagem */
    
    /* A MÁGICA DA BARRA DE ROLAGEM FIXA: */
    overflow-x: auto; /* Rolagem horizontal aqui */
    overflow-y: hidden; /* Sem rolagem vertical no container */
}

/* 4. Cada Coluna */
.pipeline-column {
    flex: 0 0 320px; /* Largura fixa */
    width: 320px;
    height: 100%; /* Ocupa a altura total do container */
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
}

/* 5. Corpo da Coluna (onde estão os cards) */
.pipeline-column-body {
    flex: 1;
    overflow-y: auto; /* Rolagem vertical DENTRO da coluna */
    padding: 0.75rem;
    gap: 0.75rem;
    min-height: 0; /* Fix para Firefox */
}

/* 6. Container da Lista (Modo Lista) */
#pipeline-list-view {
    height: 100%;
    width: 100%;
    overflow-y: auto; /* Rolagem vertical na lista */
    padding: 1.5rem;
}

/* Custom Scrollbar */
.pipeline-board-container::-webkit-scrollbar,
.pipeline-column-body::-webkit-scrollbar,
#pipeline-list-view::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.pipeline-board-container::-webkit-scrollbar-thumb,
.pipeline-column-body::-webkit-scrollbar-thumb,
#pipeline-list-view::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}
.pipeline-board-container::-webkit-scrollbar-track {
    background-color: #e2e8f0;
}

/* --- Estilos dos Cards e Painel (Mantidos) --- */
.pipeline-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: all 0.2s ease-in-out;
}
.pipeline-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border-color: #fb923c;
    transform: translateY(-2px);
}
.pipeline-card:active {
    cursor: grabbing;
}
.pipeline-card-title { font-weight: 600; color: #1e293b; font-size: 0.9375rem; display: flex; align-items: center; }
.pipeline-card-subtitle { font-size: 0.8125rem; color: #64748b; margin-top: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-card-empty { padding: 1rem; text-align: center; font-size: 0.875rem; color: #94a3b8; border: 2px dashed #e2e8f0; border-radius: 0.5rem; }

.pipeline-panel-closed {
    position: fixed; top: 0; right: 0; width: 480px; height: 100%;
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    z-index: 45; background-color: #ffffff;
    box-shadow: -4px 0 10px rgba(0,0,0,0.1); border-left: 1px solid #e2e8f0;
}
.pipeline-panel-open { transform: translateX(0); }

/* --- FIM: ESTILOS DO PIPELINE --- */

/* --- ESTILOS DO MENU MOBILE --- */

/* Em telas grandes (Desktop) */
@media (min-width: 768px) {
    #sidebar {
        transform: none !important; /* Sempre visível */
        position: relative !important;
    }
    #sidebar-overlay {
        display: none !important; /* Nunca mostra overlay no desktop */
    }
    #menuToggleBtn {
        display: none !important; /* Esconde o botão no desktop */
    }
}

/* Em telas pequenas (Mobile) */
@media (max-width: 767px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 50;
        transition: transform 0.3s ease-in-out;
        width: 250px; /* Largura do menu */
        background-color: white; /* Garante fundo branco */
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    /* Estado FECHADO (Padrão) */
    #sidebar.sidebar-mobile-closed {
        transform: translateX(-100%);
    }
    
    /* Estado FECHADO (se não tiver classe, assume fechado) */
    #sidebar:not(.sidebar-mobile-open) {
        transform: translateX(-100%);
    }

    /* Estado ABERTO */
    #sidebar.sidebar-mobile-open {
        transform: translateX(0);
    }
}


/* CORREÇÃO DO Z-INDEX DOS DROPDOWNS */
.multiselect-dropdown, 
.searchable-dropdown-menu {
    z-index: 9999 !important; /* Garante que fique acima de tudo */
    position: absolute !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
}

/* Garante que containers de tabela não cortem o dropdown */
/* .table-container, 
.overflow-x-auto,
.overflow-y-auto {
    overflow: visible !important; /* Permite que o dropdown saia da caixa 
} */

/* ==========================================================================
   CORREÇÕES DE RESPONSIVIDADE E ROLAGEM (Adicione ao final do style.css)
   ========================================================================== */

/* --- 1. TABELAS: Barra de Rolagem Fixa e Horizontal --- */
.table-container {
width: 100%;
    overflow-x: auto !important;      
    overflow-y: auto !important;      
    
    /* CORREÇÃO: Garante espaço para o footer */
    /* 100vh (tela) - 300px (Topo + Filtros + Paginação) */
    max-height: calc(100vh - 300px) !important;       
    
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    
    /* ... mantenha o restante das propriedades de scrollbar ... */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Estilização da Barra (Chrome/Edge/Safari) */
.table-container::-webkit-scrollbar {
    height: 12px; /* Barra horizontal mais alta para facilitar clique */
    width: 12px;  /* Barra vertical */
}
.table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* Cor cinza visível */
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}
.table-container::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8; /* Mais escuro ao passar o mouse */
}

/* Impede que o texto quebre linha, forçando a tabela a crescer para a direita */
.table-header, 
.table-cell, 
td, th {
    white-space: nowrap !important; 
    vertical-align: middle;
}

/* Exceção: Classes para permitir quebra de linha onde necessário (ex: Resumo) */
.whitespace-normal {
    white-space: normal !important;
    min-width: 250px; /* Garante largura mínima para leitura */
}


/* --- 2. MODAIS: Responsividade e Rolagem Interna --- */

#modal-wrapper {
    display: flex !important;
    align-items: center !important;     /* Centraliza verticalmente */
    justify-content: center !important; /* Centraliza horizontalmente */
    padding: 2rem 1rem !important;      /* Espaço nas bordas para não colar */
    
    /* Permite rolar a tela se o modal for muito alto */
    overflow-y: auto !important; 
    height: 100% !important;
    pointer-events: auto !important; /* Garante clique e scroll */
}

/* 2. Card do Modal: Removemos travas de altura */
.modal-content {
    display: block !important; /* Remove o Flex que travava o layout */
    width: 100%;
    
    /* Remove altura máxima fixa no Desktop para deixar crescer */
    max-height: none !important; 
    height: auto !important;
    
    margin: auto !important; /* Centraliza no flex container */
    position: relative !important;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content-vagas {
    display: flex !important; /* Remove o Flex que travava o layout */
    width: 100%;
    
    /* Remove altura máxima fixa no Desktop para deixar crescer */
    max-height: none !important; 
    height: auto !important;
    
    margin: auto !important; /* Centraliza no flex container */
    position: relative !important;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 3. Corpo do Modal: Removemos a rolagem interna */
div.modal-body {
    overflow: visible !important; /* Conteúdo expande livremente */
    height: auto !important;
    flex: none !important;
    padding: 1.5rem;
}

/* 4. Header e Footer: Voltam ao fluxo normal (não ficam mais fixos) */
.modal-header {
    position: relative; 
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-footer {
    position: relative;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    
    /* Garante que fique no final */
    margin-top: auto; 
}

/* --- AJUSTES PARA MOBILE (CELULAR) --- */
@media (max-width: 640px) {
    #modal-wrapper {
        align-items: flex-end !important; /* Cola no fundo no celular */
        padding: 0 !important;
    }
    
    .modal-content {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 1rem !important;
        border-top-right-radius: 1rem !important;
        
        /* No mobile, limitamos a altura para não perder o topo da tela */
        max-height: 85vh !important; 
        display: flex !important; /* Volta para flex no mobile para ter scroll interno */
        flex-direction: column !important;
    }
    
    /* No mobile, reativamos o scroll interno para caber na tela pequena */
    div.modal-body {
        overflow-y: auto !important;
        flex: 1 !important;
    }
    
    .modal-footer {
        padding-bottom: 2rem; /* Espaço extra para iPhone/Android gestures */
    }
}


/* --- 3. AJUSTES DE FORMULÁRIO NO MOBILE --- */

@media (max-width: 640px) {
    /* Força todos os grids a virarem 1 coluna no celular */
    .modal-body .grid {
        grid-template-columns: 1fr;
        gap: 1rem !important;
    }
    
    /* Botões do rodapé ficam um em cima do outro e largos */
    .modal-footer .flex {
        flex-direction: column-reverse; /* Botão principal em cima */
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    .modal-footer .template-modal-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.75rem;
        width: 100%;
    }

    /* Ajuste de padding interno */
    div.modal-body {
        padding: 1rem !important;
    }
}

.modal-footer .template-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    width: 100%;
}

.modal-footer .convenio-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    width: 100%;
}

.modal-footer .cliente-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    width: 100%;
}

@media (max-width: 640px) {
    .modal-footer .template-modal-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .modal-footer .convenio-modal-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .modal-footer .cliente-modal-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
/* ==========================================================================
   CORREÇÃO FINAL DE LAYOUT E PIPELINE (Adicione ao final do style.css)
   ========================================================================== */

/* 1. CORREÇÃO DO HEADER ESMAGADO */
/* Removemos o padding do container pai para o header encostar nas bordas */
/* EM css/style.css - Substitua o bloco #main-panel existente */

/* Mantem o rodape do modal de entrevistas estavel em todas as etapas. */
#modalContainer .interview-modal-content {
    display: flex !important;
    flex-direction: column !important;
    max-height: 90vh !important;
    height: min(90vh, 760px) !important;
}

#modalContainer .interview-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

#modalContainer .interview-modal-body .form-step {
    min-height: 100%;
}

#modalContainer .interview-modal-footer {
    flex-shrink: 0 !important;
    position: sticky;
    bottom: 0;
    z-index: 30;
}

#modalContainer .interview-modal-actions {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

#modalContainer .interview-modal-actions-left,
#modalContainer .interview-modal-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#modalContainer .interview-modal-actions-right {
    justify-content: flex-end;
}

@media (max-width: 640px) {
    #modalContainer .interview-modal-content {
        height: auto !important;
        min-height: 0 !important;
    }

    #modalContainer .interview-modal-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #modalContainer .interview-modal-actions-left,
    #modalContainer .interview-modal-actions-right {
        width: 100%;
    }

    #modalContainer .interview-modal-actions-right {
        justify-content: flex-end;
    }

    #modalContainer .interview-modal-actions .btn {
        width: auto;
        min-width: 0;
        padding: 0.65rem 0.7rem;
        white-space: nowrap;
    }
}

/* Mantem o modal de detalhes do talento mais limpo e alinhado ao novo visual. */
#candidate-details-shell.candidate-details-shell {
    background: #ffffff;
    border-radius: 28px;
}

#candidate-details-shell .candidate-details-hero {
    background: #ffffff;
    gap: 1.25rem;
    align-items: flex-start;
}

#candidate-details-shell .candidate-contact-row {
    margin-left: auto;
    align-items: center;
}

#candidate-details-shell .candidate-contact-row button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 999px;
    background: #ffffff !important;
    border: 1px solid #dbe3ef !important;
    color: #475569 !important;
    box-shadow: none !important;
}

#candidate-details-shell .candidate-contact-row button span {
    display: none !important;
}

#candidate-details-shell .candidate-action-row {
    width: 100%;
    margin-top: 0.75rem;
    gap: 0.625rem;
}

#candidate-details-shell .candidate-action-row button {
    height: 2.75rem;
    border-radius: 12px;
    border-color: #dbe3ef !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    padding-inline: 0.95rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
}

#candidate-details-shell .candidate-action-row #modalDeleteBtn {
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

#candidate-details-shell .candidate-modal-tabs {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: #ffffff;
}

#candidate-details-shell .modal-tab-btn {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

#candidate-details-shell .candidate-overview-title {
    letter-spacing: 0.02em;
}

#candidate-details-shell .candidate-overview-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 1rem;
    flex: none;
}

#candidate-details-shell .candidate-overview-highlight {
    background: #f8fafc;
    border-color: #e2e8f0;
}

@media (min-width: 768px) {
    #candidate-details-shell .candidate-contact-row {
        width: auto !important;
        grid-template-columns: unset !important;
        display: flex !important;
        gap: 0.625rem;
        padding-top: 0.1rem;
    }

    #candidate-details-shell .candidate-action-row {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
    }

    #candidate-details-shell .candidate-action-row button span {
        display: inline !important;
    }
}

#main-panel {
    display: flex;
    flex-direction: column;
    flex: 1;          /* Ocupa o espaço restante automaticamente */
    height: auto;     /* Remove a altura fixa de 100vh que estava quebrando */
    min-height: 0;    /* Permite que o container encolha se necessário */
    overflow: hidden; /* Quem rola são os filhos (main) */
    position: relative;
    /* padding: 1rem !important; */
}

/* Adicionamos o padding de volta APENAS no conteúdo das páginas (exceto Pipeline) */
/* O seletor :not(#pipeline-view-container) impede que o pipeline tenha padding duplo */
#main-panel > main:not(#pipeline-view-container) {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

#main-panel.empresa-main-panel {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 2. CORREÇÃO DA BARRA HORIZONTAL DO PIPELINE */

/* Container que segura o pipeline */
#pipeline-view-container {
    display: flex;
    flex-direction: column;
    flex: 1; /* Ocupa todo o espaço restante abaixo do header */
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
}

/* Área cinza de fundo */
#pipeline-scroll-area {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* O Quadro Kanban (Board) - AQUI ESTÁ A BARRA HORIZONTAL */
.pipeline-board-container {
    display: inline-flex;
    flex: 1;
    gap: 1.5rem;
    padding: 1.5rem;
    padding-bottom: 1rem;
    
    /* Força a barra de rolagem horizontal */
    overflow-x: visible !important; 
    overflow-y: hidden;          
    
    /* Garante que as colunas fiquem lado a lado e não quebrem linha */
    white-space: nowrap;
    min-width: 100%;
    
    /* Estilização da barra para ficar visível */
    scrollbar-width: auto;
    width: max-content;
    scrollbar-color: #cbd5e1 #e2e8f0;
}

/* Estilo da barra no Chrome/Edge */
.pipeline-board-container::-webkit-scrollbar {
    height: 14px !important; 
}
.pipeline-board-container::-webkit-scrollbar-track {
    background: #cbd5e1;
}
.pipeline-board-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; 
    border-radius: 6px;
    border: 3px solid #cbd5e1;
}

/* Colunas do Pipeline */
.pipeline-column {
    /* Flex-shrink 0 impede que elas encolham */
    flex: 0 0 320px !important; 
    width: 320px !important;
    
    /* Altura total menos o espaço da barra de rolagem */
    height: calc(100% - 20px); 
    
    display: inline-flex;
    flex-direction: column;
    background: #f1f5f9;
    border-radius: 0.75rem;
    max-height: 100%;
    white-space: normal; /* Reseta o texto dentro da coluna */
    vertical-align: top;
}

/* Corpo da Coluna (Scroll Vertical dos Cards) */
.pipeline-column-body {
    flex: 1;
    overflow-y: auto !important; 
    overflow-x: hidden;
    padding: 0.75rem;
    gap: 0.75rem;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Fix para Firefox */
}

/* =========================================
   FIX: Barra de Rolagem em Opções Gerais (Atualizado)
   ========================================= */

.options-scroll-container {
    max-height: 250px; /* Reduzi para sobrar espaço para o input */
    overflow-y: auto;  /* Rolagem vertical */
    display: block;    /* Garante que o bloco respeite a altura */
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 15px; /* Empurra o formulário um pouco para baixo */
    background-color: #fff;
    position: relative; /* Ajuda na renderização */
}

/* Garante que o formulário de adicionar tenha destaque */
.add-option-form {
    padding-top: 10px;
    background-color: #fff; /* Fundo branco para não misturar */
    position: sticky; /* Tenta manter visível se o pai permitir */
    bottom: 0;
    z-index: 10;
}

/* Estilização da barra (Mantida) */
.options-scroll-container::-webkit-scrollbar {
    width: 8px; /* Um pouco mais larga para facilitar o clique */
}

.options-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.options-scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.tam-fix   {
    height: 80px !important;
}

.modal-content {
  min-height: 0 !important;
}

.modal-body {
  min-height: 0 !important;
}

.fundo-azul-op { 
    background-color: #002c794f !important;
}

/* CONTROLE DE VISIBILIDADE DO HEADER */

.auth-hidden {
  display: none !important;
}

.auth-flex {
  display: flex !important;
}

.auth-block {
  display: block !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #334155;
  transition: 0.2s;
}

.dropdown-item:hover {
  background: #f8fafc;
}

.nav-link {
  position: relative;
  padding-bottom: 6px;
  color: #475569;
  transition: 0.2s;
}

.nav-link:hover {
  color: var(--portal-color);
}

.nav-link.active {
  color: var(--portal-color);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--portal-color);
  border-radius: 2px;
}


/* Mantém o hero controlado horizontalmente, mas libera dropdowns para baixo */
.hero-section-popover-safe {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Garante que o decorativo não crie vazamento visual inesperado */
.hero-section-popover-safe .hero-section-decor {
    z-index: 0;
}

/* Mantém o conteúdo principal acima do decorativo */
.hero-section-popover-safe .z-10 {
    position: relative;
    z-index: 10;
}

/* Wrapper do botão + dropdown */
.modalidade-popover-wrap {
    position: relative;
    overflow: visible;
    z-index: 130;
}

/* Dropdown acima dos demais elementos da seção */
#modalidade-popover {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    z-index: 999;
}
