.corporate-card {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #0e26ae;
    height: 380px;
}

.card-header-bar {
    height: 10px;
    background: #d4a017;
}

.brand-logo {
    width: 150px;
    margin: 10px auto 15px;
}

.qr-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    margin: 0 auto;
    width: fit-content;
    border: 2px solid #1f2756;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#qrcode img,
#qrcode canvas {
    display: block;
    margin: 0 auto;
    height: 150px;
}

.info-box {
    background: #1f2756;
    border-radius: 10px;
    margin-top: 18px;
    color: white;
    text-align: center;
}

.info-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.corporate-btn-close {
    width: 100%;
    padding: 7px;
    border-radius: 10px;
    border: #131a3b;
    font-weight: 600;
    transition: 0.2s;
}

.corporate-btn-close:hover {
    background: #131a3b;
}

@keyframes piscarSuave {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.textInfoQr {
    animation: piscarSuave 1.5s infinite ease-in-out;
}

.linkCadastro {
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

.linkAtestado {
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

/*Renderiza apartir do js*/
#modalModalidade {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

/*Renderiza apartir do js*/
#modalModalidade {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-info-user {
    font-size: 18px;
}

.value-info {
    font-size: 15px;
    margin-top: 4px;
}

.qr-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 85%;
}

.print-back {
    margin-top: 0.08rem;
}


@media print {

    @page {
        size: 6.5cm 8.4cm;
        margin: 0;

    }

    html,
    body {
        width: 6.5cm;
        height: 8.4cm;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    body * {
        visibility: hidden;
    }

    /* .brand-logo {
        width: 150px;
        margin: 20px auto 15px;
    } */

    .corporate-card {
        border-radius: 0px;
    }

    .print-page {
        page-break-after: always;
        break-after: page;
        width: 6.5cm;
        height: 8.4cm;
        display: block;
    }

    .print-page:last-child {
        page-break-after: auto;
    }

    .print-card,
    .print-card * {
        display: block;
    }

    .print-card {
        width: 6.5cm;
        height: 8.4cm;
        overflow: hidden;
        padding: 0;
    }

    .print-content {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 0.3cm;
    }

    .row,
    [class*="col-"] {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .mt-1,
    .mt-2,
    .mb-1,
    .mb-2,
    .mx-auto,
    .my-auto {
        margin: 0 !important;
    }

    .gap-1 {
        gap: 0 !important;
    }

    .modal-body {
        padding: 0 !important;
    }

    button,
    .no-print {
        display: none !important;
    }

    img {
        display: block;
        max-width: 100%;
        max-height: 100%;
    }

    p,
    h1,
    h2,
    h3,
    div {
        margin: 0;
        line-height: 1.1;
    }

    /* .imgModalHeader {
        width: 2.5cm;
        margin: 0 auto 0.3cm;
    } */

    .imgLogoCard {
        width: 4cm;
    }

    .qr-center {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 85%;
    }

    #qrcode img {
        width: 3.8cm;
        height: 3.8cm;
        margin: 0 auto 0.3cm;
    }

    .info-box {
        text-align: center;
        margin-top: 0.3cm;
    }

    .info-text {
        font-weight: 600;
    }

    #userName {
        font-size: 0.42cm;
        font-weight: 700;
    }

    .infoFunction {
        font-size: 0.36cm;
    }
}


.divCadastro {
    max-height: 15%;
    position: fixed !important;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border: 2px solid;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.50s ease;
}

.option-card i {
    font-size: 1.8rem;
}

.option-card:hover {
    background-color: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.589);
}

.signature-box {
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.signature-box:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.signature-box.signed {
    cursor: default;
    background-color: #e9f7ef;
}

.upload-box {
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: #f8f9fa;
}

.upload-box:hover {
    background: #e9ecef;
    border-color: #0d6efd;
}


.cardSpan {
    transition: transform .2s ease, box-shadow .2s ease;
}

.cardSpan:hover {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

/* Modal QR sempre acima */
#modalQrCodeOcorrencia {
    z-index: 1065;
}

/* Backdrop acima do modal pai */
/* .modal-backdrop.show {
	z-index: 1060;
} */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    /* começa escondido */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #fff;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.premium-modal .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #fdfdfd;
}

.premium-modal .modal-header {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-bottom: none;
    padding: 1.5rem 2rem;
    color: white;
}

.premium-modal .btn-close-custom {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.premium-modal .btn-close-custom:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.premium-section-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.premium-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6c757d;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.premium-section-title i {
    margin-right: 12px;
    font-size: 1rem;
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    padding: 8px;
    border-radius: 8px;
}

.premium-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #344767;
    margin-bottom: 0.5rem;
}

.premium-form-control,
.premium-form-select {
    border-radius: 12px;
    padding: 0.65rem 1rem;
    border: 1.5px solid #e9ecef;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.premium-form-control:focus,
.premium-form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
    background-color: #ffffff;
    outline: none;
}

.premium-alert-critical {
    background: #fff8f8;
    border: 2px solid rgba(220, 53, 69, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
}

.premium-signature-box {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 2.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.premium-signature-box:hover {
    border-color: #198754;
    background: #f1f5f9;
}

.premium-btn-save {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
    border-radius: 14px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.premium-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(25, 135, 84, 0.35);
}

.premium-upload-box {
    border: 2px dashed #0d6efd;
    background: rgba(13, 110, 253, 0.04);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-upload-box:hover {
    background: rgba(13, 110, 253, 0.08);
}

.premium-alert-info {
    background: #fff8eb;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
}

/* Specific overrides if needed */
#modalSugestUser .premium-modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

#addVacation .modal-content {
    background: #13151a !important;
    border: 1px solid rgba(212,175,55,0.25) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7) !important;
    color: #eaeaea !important;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}
#addVacation .modal-header {
    background: linear-gradient(135deg,#0d0f14,#1a1d24) !important;
    border-bottom: 1px solid rgba(212,175,55,0.15) !important;
    padding: 28px 35px !important;
}
#addVacation .modal-header h4 {
    background: linear-gradient(90deg,#d4af37,#f5d06b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    width: 100%; margin: 0;
}
#addVacation .modal-body {
    padding: 35px !important;
    background: #13151a !important;
}
/* Labels e Inputs */
#addVacation .premium-label {
    font-size: 0.72rem; font-weight: 600;
    color: #6b7a99; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 8px; display: block;
}
#addVacation .premium-input {
    background: #1a1d24 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 10px !important;
    color: #eaeaea !important;
    padding: 13px 16px !important;
    width: 100%; margin-bottom: 22px;
    transition: all 0.25s ease; font-size: 0.95rem;
}
#addVacation .premium-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12) !important;
    outline: none; background: #1f2330 !important;
}
/* ── SEÇÃO FÉRIAS ──────────────────────────────── */
#addVacation .vacation-section-header {
    display: flex; align-items: center; gap: 12px;
    margin-top: 32px; margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212,175,55,0.12);
}
#addVacation .vac-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg,#d4af37,#8e6d13);
    border-radius: 10px; display: flex;
    align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
#addVacation .vacation-section-header h3 {
    color: #c9c9c9; font-size: 1rem;
    font-weight: 600; margin: 0;
}
#addVacation .vac-count {
    margin-left: auto;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    color: #d4af37; font-size: 0.75rem;
    font-weight: 700; padding: 3px 10px;
    border-radius: 20px;
}
/* Grid de Cards */
#addVacation .vacation-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 14px; max-height: 320px;
    overflow-y: auto; padding-right: 4px;
}
#addVacation .vacation-cards-grid::-webkit-scrollbar { width: 4px; }
#addVacation .vacation-cards-grid::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.3); border-radius: 10px;
}
/* Card */
#addVacation .vac-card {
    background: #1a1d24;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; padding: 18px;
    transition: all 0.25s ease;
    position: relative; overflow: hidden;
}
#addVacation .vac-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,#d4af37,#8e6d13);
    opacity: 0; transition: opacity 0.25s ease;
}
#addVacation .vac-card:hover {
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
#addVacation .vac-card:hover::before { opacity: 1; }
/* Avatar */
#addVacation .vac-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg,#1f2d3d,#2c3e50);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; color: #d4af37;
    margin-bottom: 12px;
    border: 1px solid rgba(212,175,55,0.15);
    text-transform: uppercase;
}
#addVacation .vac-card-name {
    font-size: 0.9rem; font-weight: 600; color: #e8e8e8;
    margin-bottom: 8px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
#addVacation .vac-dates {
    font-size: 0.75rem; color: #6b7a99;
    display: flex; flex-direction: column;
    gap: 3px; margin-bottom: 12px;
}
#addVacation .vac-dates span {
    display: flex; align-items: center; gap: 5px;
}
#addVacation .vac-dates span::before {
    content: '▸'; color: #d4af37; font-size: 0.6rem;
}
/* Badge pulsante */
#addVacation .badge-vacation {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    color: #d4af37; padding: 4px 10px;
    border-radius: 20px; font-size: 0.7rem;
    font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase;
}
#addVacation .pulse-dot {
    width: 6px; height: 6px; background: #d4af37;
    border-radius: 50%; animation: vacPulse 2s infinite;
    flex-shrink: 0;
}
@keyframes vacPulse {
    0%,100%{ opacity:1; transform:scale(1); }
    50%{ opacity:0.4; transform:scale(0.7); }
}
/* Estado vazio */
#addVacation .vac-empty {
    text-align: center; padding: 30px;
    color: #4a5568; font-size: 0.9rem;
}
#addVacation .vac-empty-icon {
    font-size: 2.5rem; margin-bottom: 10px; opacity: 0.4;
}
/* Footer */
#addVacation .modal-footer {
    background: #0d0f14 !important;
    border-top: 1px solid rgba(212,175,55,0.1) !important;
    padding: 22px 35px !important;
}
#addVacation .btn-save-premium {
    background: linear-gradient(135deg,#d4af37,#a07c1a) !important;
    color: #000 !important; border: none !important;
    padding: 12px 32px !important; border-radius: 10px !important;
    font-weight: 700 !important; font-size: 0.85rem !important;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.25s ease !important;
}
#addVacation .btn-save-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(212,175,55,0.35) !important;
}
#addVacation .btn-exit-premium {
    background: transparent !important; color: #6b7a99 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    padding: 12px 32px !important; border-radius: 10px !important;
    font-weight: 600 !important; font-size: 0.85rem !important;
    transition: all 0.25s ease !important;
}
#addVacation .btn-exit-premium:hover {
    border-color: rgba(255,255,255,0.2) !important;
    color: #eaeaea !important;
}


/* =====================================================
   MODAL ESPELHO DE PONTO - TEMA AZUL MARINHO PREMIUM
   ===================================================== */

/* Ícone do header */
.espelho-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7eb8f7;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Subtítulo do header */
.espelho-subtitle {
    color: rgba(180, 205, 240, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Botão fechar no header */
.espelho-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.espelho-close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Barra de totalizadores */
.espelho-totais-bar {
    background: #0d2240;
    border-bottom: 1px solid #1a3a6e;
    align-items: center;
}

.espelho-total-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.espelho-total-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7eb8f7;
    font-weight: 600;
}

.espelho-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8f0fb;
    line-height: 1;
}

.espelho-total-divider {
    width: 1px;
    height: 36px;
    background: rgba(100, 150, 220, 0.3);
}

/* Tabela */
.espelho-table {
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
}

.espelho-table thead tr th {
    background: #102a52;
    color: #7eb8f7;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 12px 14px;
    border-bottom: 2px solid #1a3a6e;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.espelho-row-even {
    background: #f5f8ff;
}

.espelho-row-odd {
    background: #eef3fc;
}

.espelho-row-weekend {
    background: #e8edf8;
    color: #6b7fa0;
    font-style: italic;
}

.espelho-table tbody tr td {
    padding: 9px 14px;
    border-bottom: 1px solid #dce7f7;
    color: #1c2e4a;
    vertical-align: middle;
    white-space: nowrap;
}

.espelho-table tbody tr:hover td {
    background: #d0e3fb !important;
    color: #0a1a35;
    transition: background 0.15s;
}

/* Células de atraso e extra coloridas */
.espelho-atraso {
    color: #c0392b;
    font-weight: 700;
}

.espelho-extra {
    color: #1a7a45;
    font-weight: 700;
}

/* Badge de status */
.espelho-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.espelho-badge-valido {
    background: #d4f0e2;
    color: #1a7a45;
    border: 1px solid #a8dcc2;
}

.espelho-badge-invalido {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

/* Badge de tipo de serviço */
.espelho-type-badge {
    background: #e0eafa;
    color: #1a3a6e;
    border: 1px solid #b0c8ee;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer */
.espelho-footer {
    background: #0d2240;
    border-top: 1px solid #1a3a6e;
    padding: 12px 20px;
}

.espelho-btn-voltar {
    background: rgba(255, 255, 255, 0.08);
    color: #7eb8f7;
    border: 1px solid rgba(100, 150, 220, 0.35);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 7px 20px;
    transition: background 0.2s;
}

.espelho-btn-voltar:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
/* ============================
   Cards de Tipo de Ponto
   ============================ */
.tipo-ponto-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1rem 0.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    position: relative;
}

.tipo-ponto-card:hover {
    border-color: #198754;
    background: #f0faf5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(25,135,84,0.12);
}

.tipo-ponto-card.selected {
    border-color: #198754;
    background: #f0faf5;
    box-shadow: 0 4px 14px rgba(25,135,84,0.18);
}

.tipo-ponto-icon {
    width: 35px;
    height: 35px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem;
    flex-shrink: 0;
}

.tipo-ponto-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tipo-ponto-label strong {
    font-size: 0.95rem;
    color: #1a1a2e;
}

.tipo-ponto-label small {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 2px;
}

.tipo-ponto-check {
    font-size: 1.3rem;
    color: #198754;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(0.6);
}

.tipo-ponto-card.selected .tipo-ponto-check {
    opacity: 1;
    transform: scale(1);
}

#btnConfirmarTipoPonto:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#btnConfirmarTipoPonto:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25,135,84,0.3);
}

.atendimento-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0f1a 0%, #131629 60%, #0d1a2e 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.atendimento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem 1rem;
}

.atendimento-header-text h1 {
    color: #e8eaf6;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.atendimento-header-text p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin: 0.2rem 0 0;
}

.btn-gerencia {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    border: 1.5px solid rgba(100,140,255,0.6);
    border-radius: 50px;
    background: transparent;
    color: #a0b4ff;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-gerencia:hover {
    background: rgba(100,140,255,0.12);
    border-color: #a0b4ff;
    color: #fff;
}

.btn-gerencia i {
    font-size: 0.75rem;
}

.atendimento-cards-area {
    /*flex: 1;*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem 3rem;
}

/*.atendimento-cards-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
/*    gap: 1.2rem;*/
/*    width: 100%;*/
/*    max-width: 960px;*/
/*}*/

.atendimento-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 960px;
}

/*.mini-card-ponto {*/
/*    background: rgba(255,255,255,0.05);*/
/*    border: 1px solid rgba(255,255,255,0.08);*/
/*    border-radius: 18px;*/
/*    padding: 1.8rem 1.4rem;*/
/*    cursor: pointer;*/
/*    transition: all .25s ease;*/
/*    text-align: center;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    user-select: none;*/
/*}*/

.mini-card-ponto {
    flex: 1 1 200px;
    max-width: 225px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.8rem 1.4rem;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}


.mini-card-ponto::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    opacity: 0;
    transition: opacity .25s ease;
}

.mini-card-ponto:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.09);
}

.mini-card-ponto:hover::before { opacity: 1; }
.mini-card-ponto:active { transform: scale(0.97); }

.mini-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.mini-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.mini-card-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}

/* Variantes de cor */
.mc-green  .mini-card-icon { background: rgba(34,197,94,0.15);  color: #4ade80; }
.mc-green  .mini-card-title { color: #4ade80; }

.mc-blue   .mini-card-icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
.mc-blue   .mini-card-title { color: #60a5fa; }

.mc-purple .mini-card-icon { background: rgba(168,85,247,0.15); color: #c084fc; }
.mc-purple .mini-card-title { color: #c084fc; }

.mc-red    .mini-card-icon { background: rgba(239,68,68,0.15);  color: #f87171; }
.mc-red    .mini-card-title { color: #f87171; }

.mc-amber  .mini-card-icon { background: rgba(251,191,36,0.15); color: #fbbf24; }
.mc-amber  .mini-card-title { color: #fbbf24; }

.mc-slate  .mini-card-icon { background: rgba(148,163,184,0.15); color: #94a3b8; }
.mc-slate  .mini-card-title { color: #94a3b8; }

@media (max-width: 576px) {
    .atendimento-header { padding: 1.2rem 1.2rem 0.5rem; flex-wrap: wrap; gap: 0.8rem; }
    .atendimento-header-text h1 { font-size: 1.3rem; }
    .atendimento-cards-grid { gap: 0.8rem; }
    .mini-card-ponto {
        max-width: none;
        flex: 1 1 calc(50% - 0.8rem);
        padding: 1.2rem 0.8rem;
    }
}

/* ============================
   Painel Administrativo (Logado)
   ============================ */
.mgmt-page {
    min-height: 100vh;
    background: #eef1f6;
    display: flex;
    flex-direction: column;
}

.mgmt-topbar {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2e44 100%);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.mgmt-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mgmt-brand-text {
    display: flex;
    flex-direction: column;
}

.mgmt-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.mgmt-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 2px;
}

.mgmt-actions-area {
    padding: 2rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mgmt-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8a9ab5;
    margin-bottom: 1.2rem;
    align-self: flex-start;
}

.mgmt-actions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    /*max-width: 1100px;*/
}

/* Card branco do painel admin */
.mgmt-admin-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.4rem 1rem;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 3px solid;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    flex: 1 1 170px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.mgmt-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
    color: inherit;
    text-decoration: none;
}

.mgmt-admin-card:active {
    transform: scale(0.97);
}

.mac-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.mac-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1c2e4a;
    margin-bottom: 0.25rem;
}

.mac-desc {
    font-size: 0.72rem;
    color: #8a9ab5;
    line-height: 1.4;
}

/* Variantes de cor (border-top + icon) */
.mac-green  { border-top-color: #198754; }
.mac-green  .mac-icon { background: rgba(25, 135, 84, 0.1);  color: #198754; }

.mac-blue   { border-top-color: #0d6efd; }
.mac-blue   .mac-icon { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }

.mac-teal   { border-top-color: #20c997; }
.mac-teal   .mac-icon { background: rgba(32, 201, 151, 0.1); color: #20c997; }

.mac-amber  { border-top-color: #e67e22; }
.mac-amber  .mac-icon { background: rgba(230, 126, 34, 0.1);  color: #e67e22; }

.mac-purple { border-top-color: #6f42c1; }
.mac-purple .mac-icon { background: rgba(111, 66, 193, 0.1); color: #6f42c1; }

.mac-red    { border-top-color: #dc3545; }
.mac-red    .mac-icon { background: rgba(220, 53, 69, 0.1);  color: #dc3545; }

.mac-slate  { border-top-color: #6c757d; }
.mac-slate  .mac-icon { background: rgba(108, 117, 125, 0.1); color: #6c757d; }

.mac-gold   { border-top-color: #d4af37; }
.mac-gold   .mac-icon { background: rgba(212, 175, 55, 0.1); color: #d4af37; }

.mgmt-qr-section {
    padding: 0.5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 576px) {
    .mgmt-topbar { padding: 0.85rem 1.2rem; flex-wrap: wrap; gap: 0.75rem; }
    .mgmt-actions-area { padding: 1.25rem 1rem 0.5rem; }
    .mgmt-qr-section { padding: 0.5rem 1rem 2rem; }
    .mgmt-logo { height: 36px; }
    .mgmt-title { font-size: 1rem; }
    .mgmt-admin-card { flex: 1 1 calc(50% - 0.5rem); max-width: none; padding: 1.1rem 0.75rem; }
}

.fer-modal { border-radius: 16px; overflow: hidden; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.25); }

/* === Header === */
.fer-header { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: linear-gradient(135deg, #1a2e5a 0%, #2563eb 100%); }
.fer-header-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; }
.fer-header-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.fer-header-sub { color: rgba(255,255,255,.7); font-size: 0.78rem; }

/* === Formulário === */
.fer-form-wrap { padding: 18px 22px; background: #f8faff; border-bottom: 1px solid #e4e9f2; transition: border-left .2s; }
.fer-form-wrap.editing { border-left: 4px solid #f59e0b; background: #fffbeb; }
.fer-form-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin-bottom: 10px; }
.fer-form-wrap.editing .fer-form-label { color: #b45309; }
.fer-label { font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 4px; display: block; }
.fer-input { font-size: 0.9rem; border-radius: 8px; border-color: #d1d5db; }
.fer-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.fer-btn-save { background: #16a34a; color: #fff; border-radius: 8px; font-size: 0.88rem; font-weight: 600; border: none; white-space: nowrap; }
.fer-btn-save:hover { background: #15803d; color: #fff; }
.fer-btn-cancel { background: #e5e7eb; color: #374151; border-radius: 8px; border: none; }
.fer-btn-cancel:hover { background: #d1d5db; }

/* === Lista === */
.fer-list-wrap { max-height: 360px; overflow-y: auto; }
.fer-list-wrap::-webkit-scrollbar { width: 5px; }
.fer-list-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* === Tabela === */
.fer-table { margin: 0; font-size: 0.9rem; }
.fer-table thead th { background: #f1f5f9; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 700; border-bottom: 2px solid #e2e8f0; padding: 10px 14px; position: sticky; top: 0; z-index: 1; }
.fer-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.fer-table tbody tr:hover { background: #f0f7ff; }
.fer-table td { padding: 11px 14px; vertical-align: middle; }
.fer-date { font-weight: 700; color: #1e40af; font-size: 0.88rem; white-space: nowrap; }
.fer-name { color: #1f2937; font-weight: 500; }

/* === Badges de tipo === */
.fer-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fer-badge-national  { background: #dbeafe; color: #1d4ed8; }
.fer-badge-state     { background: #ffedd5; color: #c2410c; }
.fer-badge-municipal { background: #dcfce7; color: #15803d; }
.fer-badge-optional  { background: #f3e8ff; color: #7e22ce; }
.fer-badge-unknown   { background: #f1f5f9; color: #64748b; }

/* === Empty / Loading === */
.fer-loading, .fer-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1rem; color: #9ca3af; }
.fer-loading i, .fer-empty i { font-size: 2rem; margin-bottom: 8px; }

/* === Botões de ação na linha === */
.fer-action-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: none; font-size: 0.8rem; transition: all .15s; }
.fer-action-edit   { background: #eff6ff; color: #2563eb; }
.fer-action-edit:hover   { background: #2563eb; color: #fff; }
.fer-action-delete { background: #fff1f2; color: #dc2626; }
.fer-action-delete:hover { background: #dc2626; color: #fff; }
/* Gerenciar Usuario */
.gu-modal { border-radius: 12px; overflow: hidden; }
.gu-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1f2756, #0e26ae);
    padding: 16px 20px;
}
.gu-header-icon {
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}
.gu-header-text { flex: 1; }
.gu-header-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.gu-header-sub { font-size: 0.78rem; color: #c8d0f5; }
.gu-body { padding: 20px; max-height: 60vh; overflow-y: auto; }
.gu-user-photo { object-fit: cover; border: 2px solid #dee2e6; }
.gu-empty {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
}

#modalGerenciarUsuarios thead.table-dark,
#modalGerenciarUsuarios thead.table-dark tr th {
    background-color: #212529 !important;
    color: #fff !important;
    border-color: #373b3e !important;
}
/* ─── Modal Editar Usuário ─── */
.eu-modal { border-radius: 12px; overflow: hidden; }
.eu-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #0e26ae, #1a5276);
    padding: 16px 20px;
}
.eu-header-icon { font-size: 1.6rem; color: #fff; flex-shrink: 0; }
.eu-header-text { flex: 1; }
.eu-header-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.eu-header-sub { font-size: 0.78rem; color: #aed6f1; }
.eu-label { font-size: 0.82rem; font-weight: 600; color: #495057; margin-bottom: 4px; display: block; }
.eu-input { font-size: 0.9rem; }
.eu-foto-preview { object-fit: cover; border: 3px solid #dee2e6; background: #f8f9fa; }
        
/*FINISH */
