/* =============================
   VÍDEO E BOTÕES DE CAPTURA
   ============================= */

video {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    background: black;
    margin: 0 auto;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

button {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#capture {
    background-color: #007bff;
    color: white;
    padding: 15px 25px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    display: block;
    margin: 20px auto !important;
    text-align: center;
}

#capture:hover {
    background-color: #0056b3;
}

/* button[type="submit"]:not(.btn-danger) {
    background-color: #28a745;
    color: white;
}

button[type="submit"]:not(.btn-danger):hover {
    background-color: #1e7e34;
} */

@media (max-width: 600px) {
    #capture {
        width: 80%;
        max-width: 300px;
        margin: 20px auto !important;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    button {
        width: 80%;
        margin-bottom: 10px;
    }
}


/* =============================
   IMAGENS DE CADASTRO (DEFAULT E UPLOAD)
   ============================= */

/* Estilo das imagens default (antes do upload) */
.default-preview {
    max-height: 180px;
    object-fit: contain;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    background-color: white;
    margin-bottom: 0.5rem;
    display: block;
}

/* Estilo aplicado após o upload da imagem */
.photo-preview {
    width: 100%;
    height: 270px;
    max-height: 270px;
    min-height: 270px;
    object-fit: cover;
    display: block;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    background-color: white;
    margin-bottom: 0.5rem;
    overflow: hidden;
}


/* =============================
   LAYOUT DOS CARDS DE IMAGEM
   ============================= */

/* Corpo do card fixo para alinhar botão e imagem */
.photo-card-body {
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Card externo com altura fixa para padronização */
.photo-card {
    height: 370px;
}

/* Tabelas da listagem */
/* Estilização da tabela zebra */
.zebra-table thead th {
    background-color: #96d8ff;
    color: #000;
    font-weight: bold;
    vertical-align: middle;
    text-align: center;
}

.zebra-table {
    border-radius: 10px;
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.zebra-table th,
.zebra-table td {
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.zebra-table tbody tr:nth-child(even) td {
    background-color: #f5f5f5;
}

.zebra-table tbody tr:nth-child(odd) td {
    background-color: #eeeeee;
}

.zebra-table tbody tr:hover td {
    background-color: #f4f9d8;
    cursor: pointer;
}

.zebra-table tbody tr.no-hover:hover>td {
    background-color: #ffffff !important;
    cursor: default !important;
}

.row-success td {
    background-color: #e9f9ee !important;
}

.row-error td {
    background-color: #ffecec !important;
}

.row-success:hover td {
    background-color: #d4f4e2 !important;
    /* verde um pouco mais forte */
}

.row-error:hover td {
    background-color: #ffd6d6 !important;
    /* vermelho um pouco mais forte */
}

.user-checkbox,
.car-checkbox {
    width: 16px;
    height: 16px;
    margin: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.user-checkall {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* Desabilitar hover quando a classe .no-hover for aplicada */
.no-hover tr:hover {
    background-color: inherit;
    cursor: default;
}


/* Lupa da listagem */
.btn-outline-secondary {
    background-color: white !important;
    color: #333;
    border-color: #ced4da;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd;
}

.btn_apagar:hover {
    background-color: #b02a37;
    /* vermelho mais escuro no hover */
}

.btn_centered {
    display: block;
    margin: 0 auto;
}

.btn_yellow {
    background-color: #f7c948;
    /* Amarelo dourado */
    color: #000;
    /* Texto preto pra contraste */
}

.btn_yellow:hover {
    background-color: #d4a017;
    /* Tom âmbar mais escuro */
    color: #fff;
    /* Texto branco no hover pra destaque */
}

.btn_royal {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
}

.btn_royal:hover {
    background-color: #0b5ed7;
}

.btn_brown {
    background-color: #8B4513;
    /* SaddleBrown */
    color: white;
}

.btn_brown:hover {
    background-color: #5C3317;
    /* Darker brown */
    color: white;
}

.btn_gray {
    background-color: #dfdfdf !important;
    color: #444 !important;
}

.btn_gray:hover {
    background-color: #c9c9c9 !important;
    color: #222 !important;
}

.btn-group-print {
    display: inline-flex;
    gap: 12px;
    justify-content: center;
}


.status-line {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-success {
    color: green;
}

.status-error {
    color: red;
}

.btn-wrapper {
    margin-top: 2rem;
    text-align: center;
    /* ← garante centralização */
}

.result-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 1rem auto;
}

.info-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 3rem auto 2rem auto;
    /* ← adiciona espaço no topo */
    max-width: 600px;
    background: #f9f9f9;
}

.btn-main {
    background-color: rgb(0, 132, 104) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 500;
    width: 160px;
    text-align: center;
    padding: 14px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin: 0 auto;
}

.btn-main:hover,
.btn-main:focus {
    background-color: #0f3d22 !important;
    color: #fff !important;
}

/* line divider bottom of title */
.section-divider {
    height: 2px;
    background-color: #e0e0e0;
    margin: 16px auto 12px auto;
    width: 100%;
    max-width: 1000px;
}

/* CABEÇALHO CINZA CLARO ESPECÍFICO */
.plan-car-table thead th {
    background-color: #f5f5f5;
}

/* REDUZ MARGEM ACIMA DA TABELA */
.plan-car-table {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .plan-car-table thead {
        display: none;
    }

    .plan-car-table tbody,
    .plan-car-table tr,
    .plan-car-table td {
        display: block;
        width: 100%;
    }

    .plan-car-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 0.5rem;
        padding: 0.5rem;
        background-color: #f9f9f9;
    }

    .plan-car-table td {
        text-align: left;
        padding: 0.4rem 0.6rem;
        position: relative;
    }

    .plan-car-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 0.2rem;
        color: #333;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 2rem !important;
    }

    .card h4 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .card .fw-bold {
        font-size: 1.1rem;
    }

    .card div {
        font-size: 0.95rem;
    }

    .form-check {
        background: rgb(237, 237, 237) !important;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .form-check-input {
        transform: scale(2);
        margin-top: 6px;
        flex-shrink: 0;
    }

    .form-check-label {
        font-size: 1.1rem;
        line-height: 1.6;
        font-weight: 500;
    }

    .text-primary {
        font-size: 1.1rem;
    }
}

.form-check.checked {
    background-color: #b0d1ff !important;
}

#qr-reader {
    width: 100%;
    max-width: 480px;
    max-height: 320px;
    aspect-ratio: 1 / 1;
    /* mantém quadrado */
    margin: auto;
    position: relative;
    overflow: hidden;
}

.html5-qrcode video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}



.html5-qrcode-shadow {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    /* sombra opaca */
    pointer-events: none;
    z-index: 2;
}

#qr-reader__dashboard_section_csr span,
#qr-reader__dashboard_section_csr svg {
    display: none !important;
}

.camera-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.video-frame {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transform: scaleX(-1);
}

/* Carro (normal) */
.video-frame-car {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transform: none;
}

.face-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    mask-image: radial-gradient(ellipse 90px 130px at center, transparent 90px, black 100px);
    -webkit-mask-image: radial-gradient(ellipse 90px 130px at center, transparent 90px, black 100px);
}

.oval-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 260px;
    transform: translate(-50%, -50%);
    border: 1px dashed white;
    border-radius: 50% / 70%;
    pointer-events: none;
    z-index: 10;
}

/*
.step-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0;
    gap: 6px; 
    flex-wrap: nowrap;
}

.step-wrapper {
    text-align: center;
    flex: 1;
    position: relative;
}

.step {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    line-height: 28px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    margin: 0 auto;
    position: relative;
    z-index: 1;

}

.step-label {
    font-size: 0.7rem !important;
    margin-top: 2px;
    color: #333;
    white-space: nowrap; 
}

.step-wrapper:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 4px;
    background-color: #ccc;
    z-index: 0;
}

.step.done {
    background-color: #198754;
}

.step.active {
    background-color: #dc3545;
}

.step-box {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    margin-top: 10px;
    margin-bottom: 15px;
}

*/

/* ===== FINAL VERSION OF CSS 27-08 ============================================== */
/* ===== Global CSS ===== */

/*****************************/
/* Global Header and Content */
/*****************************/
/* Global spacing below fixed navbar (responsive) */
.f-global-body {
    padding-top: clamp(56px, 6vw + 24px, 90px);
    margin-top: 0;
}

/* Title */
.f-global-title {
    font-size: clamp(1.5rem, 2.6vw + 0.2rem, 1.6rem);
    line-height: 1.3;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
    text-wrap: nowrap;
}

/* Content card width */
.f-global-content {
    max-width: clamp(680px, 92vw, 1000px);
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
    margin: 0 auto;
}

/* Header things */
.f-global-content>.card-header {
    padding: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

/* Green background title */
.f-global-card-header {
    background: #008468;
    color: #fff;
    padding: 1rem 1.25rem;
}

/* Green background text color */
.f-global-card-header .f-global-title {
    margin: 0;
    color: #fff;
}

/* ===== Body layout (no navbar global) ===== */
.f-global-no-navbar {
    padding-top: 0 !important;
}

/* ===== swal alerts small size ===== */
.swal-smaller {
    transform: scale(0.75);
    /* 85% do tamanho padrão */
}

.swal-center {
    text-align: center !important;
}


/******************************/
/* pending_registrations.html */
/******************************/
/* cards background */
.f-pending .pending-card {
    background-color: #f8f9fa;
    box-shadow: none;
}

/* photo cards */
.f-photo-face {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* spaces of photos */
.f-pending .pending-card .row.g-3 {
    --bs-gutter-x: .2rem;
    --bs-gutter-y: .2rem;
}

@media (min-width: 576px) {
    .f-pending .pending-card .row.g-3 {
        --bs-gutter-x: .5rem;
        --bs-gutter-y: .5rem;
    }
}

@media (min-width: 992px) {
    .f-pending .pending-card .row.g-3 {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .75rem;
    }
}

/* orange badge */
.f-badge-pending {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: #ffffff;
}

/* time */
.f-timestamp {
    font-size: .85em;
    color: #6c757d;
}

/* empty */
.f-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.f-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: .5;
}

/* custom modal footer */
.f-modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
}

.f-modal-footer .f-global-btn {
    width: 100%;
}

/* utility: stack vertically (full width) */
.f-modal-footer.stack {
    grid-template-columns: 1fr;
}

/* media */
@media (max-width: 576px) {
    .f-pending .pending-card {
        overflow: hidden;
    }

    .f-pending .pending-card .card-body {
        padding: 0;
        margin: -15px;
    }

    .f-global-actions {
        display: flex !important;
        flex-direction: column;
        gap: .5rem;
    }

    .f-global-actions .f-global-btn {
        width: 100%;
    }

    .f-modal-footer.stack-sm {
        grid-template-columns: 1fr;
    }
}

/*************************/
/* authorized_list.html  */
/* Consolidated & cleaned*/
/*************************/
.single-step .step-container::before {
    display: none !important;
}

/* ===== Section titles ===== */
.f-authorized-car-title {
    background: #495057;
    color: #fff;
}

/* ===== Search form (input + buttons) ===== */
.f-authorized-search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.f-authorized-search-input {
    flex-grow: 1;
    height: 38px;
}

.f-authorized-search-btn,
.f-authorized-search-reset {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.f-authorized-search-btn {
    width: 44px;
}

.f-authorized-search-reset {
    min-width: 70px;
    font-size: 0.85rem;
}

/* ===== Card container ===== */
.f-authorized-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 0.75rem;
    /* padding: .75rem; */
    padding: .5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.f-car-card {
    background-color: #eaf7ee;
}

/* Grid that distributes N steps evenly.
   Change --steps on a specific container if needed (e.g., vehicle flow). */
.f-authorized-card .step-container {
    --steps: 6;
    /* display: grid;
    grid-template-columns: repeat(var(--steps), 1fr); */
    display: flex;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: start;
    position: relative;
}

/* Full-width connecting line (behind circles).
   Works for both standard flow and vehicle flow (1st ↔ last column). */
.f-authorized-card .step-container::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #ccc;
    z-index: 0;
}

/* Each step cell */
.f-authorized-card .step-wrapper {
    min-width: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Circle visual (match legacy look) */
.f-authorized-card .step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    line-height: 1;
    background-color: #ccc;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    border: 0;
}

/* Labels under circles */
.f-authorized-card .step-label {
    margin-top: 5px;
    font-size: .8rem;
    color: #333;
    line-height: 1.1;
    white-space: nowrap;
}

/* States */
.f-authorized-card .step.done {
    background-color: #198754;
    color: #fff;
}

.f-authorized-card .step.active {
    background-color: #dc3545;
    color: #fff;
}

.f-authorized-tick {
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}

/* ===== Small screens: slightly smaller circles & labels ===== */
@media (max-width: 420px) {
    .f-authorized-card .step {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .f-authorized-card .step-label {
        font-size: .8rem;
    }

    .f-authorized-card .step-container.seven-steps .step {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .f-authorized-card .step-container.seven-steps .step-label {
        font-size: 0.65rem;
    }
}


/* ========== VEHICLE FLOW (step 1 on col 1, step 2 on last col) ====== */
/* Place 1st and 2nd circles at the extremes (1 and --steps) */
.f-authorized-card .step-container.f-vehicle-steps {
    --steps: 5;
}

.f-authorized-card .step-container.f-vehicle-steps .step-wrapper:first-child {
    grid-column: 1;
}

.f-authorized-card .step-container.f-vehicle-steps .step-wrapper:last-child {
    grid-column: var(--steps);
}

/* Prevent inner per-step connectors (we rely on the full container ::before line) */
.f-authorized-card .step-container.f-vehicle-steps .step-wrapper::after {
    content: none !important;
    display: none !important;
}


/**********************************/
/* checklist_part1 and part2.html */
/**********************************/

.f-check-name {
    font-size: 1.8rem;
    color: red;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

/*************************/
/* recognize_qrcode.html */
/*************************/

#qr-reader {
    width: 100%;
    height: 100%;
}

.qr-reader-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    /* quadrado perfeito */
    overflow: hidden;
    /* corta o que passar */
    background: black;
}

#qr-reader video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Overlay */
.f-qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    /* garante que fica por cima do vídeo */
}

.f-qr-overlay::before {
    content: "";
    width: 200px;
    /* tamanho do quadrado */
    height: 200px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    /* escurece fora do quadrado */
    border: 3px solid #fff;
    /* borda do quadrado */
    border-radius: 6px;
}


/***********************/
/* recognize_face.html */
/***********************/

.f-recognize-instruction-text {
    font-size: 0.9rem !important;
    width: 100% !important;     
}

/*************/
/* home.html */
/*************/

.menu-btn {
    font-size: 1.1rem;     
    padding: 0.6rem 1rem;  
    font-weight: 600;
    max-width: 280px;

    background-color: #e9ecef; /* cinza clarinho (Bootstrap usa esse tom em cards) */
    color: #212529;            /* preto/cinza escuro */
    border: 1px solid #ced4da; /* borda suave pra dar definição */
}

.menu-btn:hover {
    background-color: #dee2e6; /* um pouco mais escuro no hover */
    color: #000;
}

/***************/
/* navbar.html */
/***************/

.navbar-bg {
    background-color: #ebe8e2; 
}

/* Hide Bootstrap's default dropdown arrow */
.navbar .dropdown-toggle::after {
    display: none;
}

/* Default link style */
.navbar .nav-link {
    color: #2c2c2c;         
    font-weight: 600;       
    transition: color 0.2s ease;
}

/* Link hover effect */
.navbar .nav-link:hover {
    color: #28a745;         
}

/* Underline animation only on the label text (not icons) */
.navbar .nav-label {
    position: relative;
    display: inline-block;
}

.navbar .nav-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background-color: #28a745; 
    transition: width 0.3s ease;
}

.navbar .nav-link:hover .nav-label::after {
    width: 100%;
}

/* Icon styles */
.navbar .nav-link i {
    color: #b74a4a;          
    margin-right: 2px;       
    transition: color 0.3s ease;
}

.navbar .nav-link:hover i {
    color: #28a745;          
}

/* Dropdown menu background */
.dropdown-menu {
    background-color: #ebe8e2; 
}

/* Hover do item dentro do dropdown */
.dropdown-menu .dropdown-item:hover {
    background-color: #28a745;   /* fundo verde no hover */
    color: #fff;                 /* texto branco */
}

/* Ícones dentro do dropdown */
.dropdown-menu .dropdown-item i {
    color: #b74a4a;              /* cor padrão do ícone */
    margin-right: 2px;
    transition: color 0.3s ease;
}

/* Ícone no hover do item */
.dropdown-menu .dropdown-item:hover i {
    color: #fff;                 /* muda pro branco junto com o texto */
}

/* submenu dentro do dropdown */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/**********************/
/* plan_presence.html */
/**********************/
.f-plan-presence .accordion-button:not(.collapsed) {
    background-color: #d4edda;
    color: #155724;
}
.f-plan-presence .accordion-button::after {
    margin-left: auto;
}
.f-plan-presence-car-badge {
    margin-left: 10px;
    font-size: 0.9rem;
}
.f-plan-presence .accordion-collapse.show .accordion-body {
    background-color: #e7f2e9 !important;
}
.f-plan-presence .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

/* ===[ PLAN_SELECT_CARS.HTML ]=== */

/* remove blue border */
.plan-filter-input:focus,
.plan-dual-box select:focus {
    border-color: #ccc !important;
    box-shadow: none !important;
    outline: none !important;
}

/* remove glow do card inteiro */
.plan-dual-box:focus-within::after {
    content: none !important;
}

/* dual list box style */

.plan-dual-box {
    width: 320px;
    position: relative;
}

.plan-dual-box h4 {
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.2rem;
}

.plan-filter-input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #fff;
}

/* featured box */
.plan-dual-box select {
    width: 100%;
    height: 260px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    padding: 0;
}

/* itens list */
.plan-dual-box select option {
    padding: 10px 8px;
    border-bottom: 1px solid #efefef;
}

.plan-dual-box select option:last-child {
    border-bottom: none;
}

.plan-dual-box select option:checked {
    background: #008cff !important;
    color: white !important;
}

/* ===============================
SCROLLBAR PADRÃO COM SETAS
=============================== */

.plan-dual-box select::-webkit-scrollbar {
    width: 14px;
}

.plan-dual-box select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #dcdcdc;
    border-right: 1px solid #dcdcdc;
}

.plan-dual-box select::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 2px;
    border: 1px solid #a8a8a8;
}

.plan-dual-box select::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.plan-dual-box select::-webkit-scrollbar-button {
    background: #e5e5e5;
    border: 1px solid #cccccc;
    height: 16px;
}

.plan-dual-box select::-webkit-scrollbar-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 10,0 5,6' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.plan-dual-box select::-webkit-scrollbar-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,6 10,6 5,0' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ===============================
SETAS CENTRAIS
=============================== */

.plan-dual-arrows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
}

.plan-dual-arrows button {
    width: 65px;
    height: 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #c6c6c6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: all 0.15s ease-in-out;
    line-height: 30px;
    padding: 0;
}

/* Botão azul */
.plan-dual-arrows .plan-btn-add {
    background: #1754b1;
    color: #fff;
}

.plan-dual-arrows .plan-btn-add:hover {
    background: #2a7cf0;
}

/* Botão vermelho */
.plan-dual-arrows .plan-btn-remove {
    background:#a31e1e;
    color: #fff;
}

.plan-dual-arrows .plan-btn-remove:hover {
    background: #da4343;
    color: #fff;
}

/* ===============================
LAYOUT EXTERNO
=============================== */

.plan-lists-wrapper {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.plan-sub-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Glow Azul na right-box */
.plan-dual-box.plan-right-box:has(select:focus),
.plan-dual-box.plan-right-box:has(.plan-filter-input:focus) {
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25) !important;
    border-radius: 10px;
}

/* Glow Vermelho na left-box */
.plan-dual-box.plan-left-box:has(select:focus),
.plan-dual-box.plan-left-box:has(.plan-filter-input:focus) {
    box-shadow: 0 0 0 0.25rem rgba(255, 80, 80, 0.25) !important;
    border-radius: 10px;
}

/* Cores */
.plan-dual-box.plan-left-box {
    background: #ffecec !important;
}

.plan-dual-box.plan-right-box {
    background: #eaf3ff !important;
}

/* ===============================
PLAN DATE INPUT
=============================== */

.plan-date-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;   /* força centralização */
    gap: 8px;
    min-width: 260px;
    width: 100%;   
}

.plan-date-input {
    max-width: 180px;
    margin: 0 auto;     
}


/* ===============================
PLAN CAR CONTAINER
=============================== */

.plan-car-container {
    width: 100%;
}


/* ===============================
GENERAL CLEANING
=============================== */

.plan-btn-wrapper {
    text-align: center;
}

/****************************/
/* select_cars_confirm.html */
/****************************/

/* CONFIRMATION LIST BOX */
.plan-confirm-box {
    max-height: 260px;
    overflow-y: auto;
    width: 100%;
    background: #fff;
}

.plan-confirm-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.plan-confirm-item:last-child {
    border-bottom: none;
}

/* ============================================ */
/* SUPERVISOR DASHBOARDS - ALCOHOL CHECK */
/* ============================================ */

/* Accordion container */
.sup-accordion-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sup-accordion-item.sup-confirmed {
    background: #d4edda;
    /* border: 2px solid #28a745; */
    position: relative;
}

.sup-accordion-item.sup-confirmed .sup-accordion-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* gray transparent */
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

.sup-accordion-body {
    padding: 20px;
    position: relative; /* ADD THIS */
}

/* Accordion header (clickable) */
.sup-accordion-header {
    background: #495057;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.sup-accordion-item.sup-confirmed .sup-accordion-header {
    /* background: #28a745; */
    background: #d4edda;
}

.sup-accordion-icon {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.sup-accordion-icon.rotated {
    transform: rotate(180deg);
}

/* Accordion content (expandable) */
.sup-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.sup-accordion-content.expanded {
    max-height: 5000px;
}

.sup-accordion-body {
    padding: 20px;
}

/* Test item container */
.sup-test-item {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.sup-test-item:last-child {
    border-bottom: none;
}

/* Test columns (入場 / 退場 side by side) */
.sup-test-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sup-test-column {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

/* Test type badge */
.sup-test-type {
    background: #0d6efd;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    display: flex; /* ADD THIS */
    align-items: center; /* ADD THIS */
    justify-content: center; /* ADD THIS */
    gap: 8px; /* ADD THIS - space between text and time */
}

.sup-test-type.sup-test-exit {
    background: #dc3545;
}

/* User info */
.sup-user-info {
    text-align: center;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.sup-user-id {
    font-weight: bold;
    font-size: 13px;
    color: #6c757d;
}

.sup-user-name {
    font-size: 16px;
    color: #212529;
    margin-top: 4px;
}

/* Test time */
.sup-test-time {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 12px;
}

/* Photo preview */
.sup-photo-preview {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #dee2e6;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.sup-photo-preview:hover {
    transform: scale(1.02);
    border-color: #0d6efd;
}

/* Test details */
.sup-test-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sup-detail-item {
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sup-detail-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 4px;
}

.sup-detail-value {
    color: #212529;
    font-size: 15px;
}

/* ============================================ */
/* SUPERVISOR DASHBOARDS - HEALTH CHECK */
/* ============================================ */

.sup-health-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.sup-health-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.sup-symptoms-section {
    grid-column: 1 / -1;
}

.sup-section-title {
    font-weight: bold;
    font-size: 15px;
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dee2e6;
}

.sup-symptoms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sup-health-user-id {
    font-weight: bold;
    font-size: 16px;
    color: #6c757d;
}

.sup-health-user-name {
    font-size: 16px;
    color: #212529;
}

/* ============================================ */
/* SUPERVISOR DASHBOARDS - SAFETY CHECKOUT */
/* ============================================ */

.sup-status-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
}

.sup-status-safe {
    background: #d1fae5;
    color: #065f46;
}

.sup-status-injury {
    background: #fed7aa;
    color: #92400e;
}

.sup-status-accident {
    background: #fecaca;
    color: #991b1b;
}

/* ============================================ */
/* SUPERVISOR DASHBOARDS - SAFETY CHECKOUT */
/* ============================================ */

.sup-safety-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sup-safety-table thead {
    background: #f8f9fa;
}

.sup-safety-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.sup-safety-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.sup-safety-table tbody tr:last-child td {
    border-bottom: none;
}

.sup-safety-table tbody tr:hover {
    background: #f8f9fa;
}

.sup-row-confirmed {
    background: rgba(40, 167, 69, 0.1) !important;
}

.sup-cell-id {
    font-weight: bold;
    color: #6c757d;
}

.sup-cell-name {
    text-align: left;
    font-weight: 500;
}

.sup-cell-time {
    color: #6c757d;
    font-family: monospace;
}

.sup-status-badge-sm {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sup-status-safe {
    background: #d1fae5;
    color: #065f46;
}

.sup-status-injury {
    background: #fed7aa;
    color: #92400e;
}

.sup-status-accident {
    background: #fecaca;
    color: #991b1b;
}

.sup-cell-action button {
    min-width: 45px;
}

/* =============================
   JV MEDICAL HISTORY SECTION
   ============================= */

.jv-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.jv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.jv-header h5 {
    margin: 0;
    color: #495057;
}

.jv-week-range {
    font-weight: bold;
    color: #dc3545;
}

.jv-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.jv-table {
    margin: 0;
}

.jv-table thead {
    background: #495057;
    color: white;
}

.jv-table th, .jv-table td {
    text-align: center;
    vertical-align: middle;
}

.jv-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.jv-locked {
    opacity: 0.6;
    pointer-events: none;
}

.jv-locked::after {
    content: "この週は確認済みです";
    display: block;
    text-align: center;
    color: #6c757d;
    font-weight: bold;
    padding: 10px;
    background: #e9ecef;
    margin-top: 15px;
}

/* =============================
   ENVIRONMENTAL DATA SECTION
   ============================= */

.env-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #17a2b8;
}

.env-title {
    color: #17a2b8;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.env-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.env-period-title {
    color: #495057;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #17a2b8;
}

.env-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.env-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.env-input-group label {
    min-width: 80px;
    margin: 0;
    font-weight: bold;
    color: #495057;
}

.env-input {
    flex: 1;
    text-align: center;
}

.env-unit {
    min-width: 30px;
    font-weight: bold;
    color: #6c757d;
}

.env-locked {
    opacity: 0.6;
}

.env-locked input {
    background-color: #e9ecef;
}

/* =============================
   SYSTEM CONFIG STYLES
   ============================= */

.config-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.config-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.config-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.config-body {
    background: white;
    padding: 2rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.workflow-section {
    margin-bottom: 2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.section-body {
    padding: 1.5rem;
}

/* System Config Styles */
.step-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cor diferente para cards de veículos */
.vehicle-workflow .step-card {
    background: #f0f8f5;  /* Verde clarinho para carros */
}

/* Centralizar e aumentar todos os títulos de workflow */
.filter-section .filter-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.step-toggle {
    font-weight: bold;
    color: #2c3e50;
}

.sub-steps {
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    margin: 0;
}

.btn-save {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* =============================
   SYSTEM CONFIG CONFIRM STYLES
   ============================= */

/* bold titles */
.plan-confirm-item {
    font-weight: bold;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #b3b3b3;
}

/* sub titles not bold */
.plan-confirm-item + .ms-4 {
    font-weight: normal;
}

/* green background */
.vehicle-workflow .plan-confirm-box {
    background: #f0f8f5;
}

/* =============================
   REGISTER CAR 
   ============================= */

.form-control::placeholder {
    color: #d0d0d0;
}

/* ── Health Report ───────────────────── */
.health-filter-bar        { gap: 8px; }
.health-mode-group        { gap: 4px; }
.health-mode-btn          { padding: 5px 14px; border-radius: 6px; font-size: 0.8rem; border: 1px solid #ccc; background: #fff; cursor: pointer; transition: all 0.15s; }
.health-mode-btn.active   { background: #2a6496; color: #fff; border-color: #2a6496; }
.health-date-input        { width: 120px; text-align: center; color: red; font-weight: bold; }
.health-range-group       { gap: 6px; }

.health-search-input      { max-width: 140px; font-size: 0.85rem; }
.health-company-select    { max-width: 200px; font-size: 0.85rem; }
.f-report-health .btn_custom { font-size: 0.85rem; padding: 6px 16px; }

.health-spacer            { flex: 1; }
.health-env-bar           { background: #d9e2f3; border: 1px solid #b8cce4; border-radius: 4px; padding: 6px 12px; font-size: 0.8rem; margin-bottom: 8px; margin-top: 8px; }
.health-table thead th    { font-size: 0.8rem; text-align: center; vertical-align: middle; white-space: nowrap; background-color: #eeeeee !important; }
.health-table td          { vertical-align: middle; font-size: 0.8rem; padding: 3px 6px; }
.health-table .health-row-am td       { background-color: #fcfcfc !important; }
.health-table .health-row-pm td       { background-color: #fcfcfc !important; }
.health-table .health-row-symptoms td { background-color: #fcfcfc !important; }
.health-jv-cell           { background: #fce4d6 !important; }
.health-symptom-cell      { font-size: 0.8rem; padding: 4px 8px; }
.health-period-label      { font-size: 0.8rem; color: #888; }
.health-status-ok         { color: #28a745; font-weight: bold; }
.health-status-ng         { color: #dc3545; font-weight: bold; }
.f-report-health .sup-accordion-header { padding: 8px 12px; font-size: 0.85rem; }
.f-report-health .sup-accordion-item   { border-radius: 4px; }
.f-report-health .sup-accordion-icon { font-size: 0.85rem; }
.health-submit-btn        { width: 120px; }

/* ── Alcohol Report ──────────────────── */

.f-report-alcohol .sup-accordion-header { padding: 8px 12px; font-size: 0.85rem; }
.f-report-alcohol .sup-accordion-item   { border-radius: 4px; }
.f-report-alcohol .sup-accordion-icon { font-size: 0.85rem; }

.alcohol-row-entry td    { background-color: #fcfcfc !important; }
.alcohol-row-exit td     { background-color: #fcfcfc !important; }

.alcohol-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.alcohol-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.alcohol-modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.f-report-alcohol .btn_custom { font-size: 0.85rem; padding: 6px 16px; }

/* ══════════════════════════════════════════
   REPORTS — shared styles (rpt- prefix)
   Applies to: report_health, report_alcohol, report_final
   ══════════════════════════════════════════ */

.rpt-mode-group { display: flex; gap: 4px; }
.rpt-mode-btn   { padding: 5px 14px !important; font-size: 0.8rem !important; font-weight: normal !important; border-radius: 6px; border: 1px solid #ccc; background: #fff; color: #333; cursor: pointer; transition: all 0.15s; }
.rpt-mode-btn.active { background: #2a6496 !important; color: #fff !important; border-color: #2a6496 !important; }

.rpt-date-input  { width: 120px; text-align: center; color: red; font-weight: bold; }
.rpt-search-input { max-width: 140px; font-size: 0.85rem; }
.rpt-select      { max-width: 200px; font-size: 0.85rem; }

.rpt-btn {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    width: 120px !important;
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    font-weight: normal !important;
    color: white !important;
    background-color: rgb(0, 132, 104) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
}
.rpt-btn:hover { background-color: #0f3d22 !important; color: #fff !important; }
.rpt-accordion-item { background: white; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.rpt-accordion-header { background: #e9ecef; color: #212529; padding: 8px 12px !important; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem !important; font-weight: normal !important; }
.rpt-accordion-icon   { font-size: 0.85rem; transition: transform 0.3s ease; }
.rpt-accordion-icon.rotated { transform: rotate(180deg); }
.rpt-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.rpt-accordion-content.expanded { max-height: 5000px; }
.rpt-accordion-body   { padding: 20px; position: relative; }


/* ── Report - Tables ───────────────────── */
.rpt-date-header       { background-color: #4a8fb7; }
.rpt-thead             { background-color: #7a7a7a; color: #fff; }
.rpt-table thead th    { font-size: 0.8rem; text-align: center; vertical-align: middle; white-space: nowrap; background-color: #eeeeee !important; }
.rpt-table td          { vertical-align: middle; font-size: 0.8rem; padding: 3px 6px; }
.rpt-status-ok         { color: #198754 !important; font-weight: bold; }
.rpt-status-ng         { color: #dc3545 !important; font-weight: bold; }
.rpt-table tbody td    { background-color: #fcfcfc !important; }

.rpt-table tbody tr:hover td {
    background-color: #f4f9d8 !important;
    cursor: pointer;
}

/* =============================
   BOOTSTRAP DATEPICKER
   ============================= */
.datepicker thead tr th { text-align: center !important; vertical-align: middle !important; }
.datepicker .prev { text-align: left !important; }
.datepicker .next { text-align: right !important; }
.datepicker .datepicker-switch { text-align: center !important; }
.datepicker table tr td, .datepicker table tr th { text-align: right !important; padding-right: 8px !important; }
.datepicker-days { padding: 10px !important; }
.datepicker { border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 60px !important; }
.datepicker span { display: inline-block; width: 50px; height: 30px; line-height: 30px; text-align: center; border-radius: 6px; margin: 2px; font-size: 14px; border: 1px solid #dee2e6; background-color: #f8f9fa; color: #000000; cursor: pointer; }
.datepicker-months .month { height: 30px !important; line-height: 30px !important; }
.datepicker.dropdown-menu { padding: 5px !important; border-radius: 5px !important; }
.datepicker span.active { background-color: #007bff; color: #ffffff; border-color: #007bff; }
.datepicker span:hover { background-color: #e9ecef; border-color: #adb5bd; }
.datepicker span.today { background-color: #fff3cd; border-color: #ffc107; color: #856404; }
.form-control[readonly] { background-color: #f8f9fa; border-color: #ced4da; cursor: pointer; }
.form-control[readonly]:focus { border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25); }

.global-date-input {
    max-width: 120px;
    background-color: white !important;
    cursor: pointer;
}

.btn {
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
    letter-spacing: 2px;
}

.btn-outline-secondary {
    text-shadow: none;
    letter-spacing: 2px;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
    color: #333;
}

/* ============================================ */
/* SUPERVISOR DASHBOARD - CHECKLIST (mobile, sem accordion) */
/* ============================================ */

.chk-summary-banner {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.chk-summary-ok {
    background: #d4edda;
    color: #155724;
}

.chk-summary-pending {
    background: #fdecea;
    color: #b02a37;
}

.chk-section-label {
    font-weight: bold;
    font-size: 14px;
    color: #495057;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chk-card-pending {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chk-card-pending .chk-worker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.chk-missing-list {
    font-size: 13px;
    color: #b02a37;
    margin: 8px 0;
    background: #fdecea;
    border-radius: 8px;
    padding: 10px 12px;
}

.chk-missing-list div {
    margin-bottom: 3px;
}

.chk-reason-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    resize: vertical;
}

.chk-row-ok {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.chk-row-ok.chk-confirmed {
    opacity: 0.6;
}

.chk-row-ok .chk-worker-id {
    font-weight: bold;
    font-size: 13px;
    color: #6c757d;
    margin-right: 6px;
}

.chk-row-ok .chk-worker-name {
    font-size: 15px;
    font-weight: bold;
    color: #212529;
}

.chk-confirm-fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    z-index: 9999;
}