/* ==========================================
   Variáveis e Reset
   ========================================== */
:root {
    --primary-color:        #0d6efd;
    --primary-operacional:  #1a237e;
    --accent:               #d32f2f;
    --dark-bg:              #1e293b;
    --light-bg:             #f4f6f9;
    --diurno:               #ff9800;
    --noturno:              #1a237e;
    --transition-speed:     0.2s;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ==========================================
   Navbar
   ========================================== */
.navbar                     { background-color: var(--dark-bg) !important; }
.navbar-operacional         { background: var(--primary-operacional) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.navbar-brand               { font-weight: 800; letter-spacing: 0.5px; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #ffc107 !important; }

/* ==========================================
   Escala — Grade e Turnos
   ========================================== */
.sticky-header  { position: sticky; top: 0; z-index: 1020; }
.dia-fds        { background-color: #fff5f5; color: #dc3545; font-weight: bold; }
.bg-diurno      { background-color: var(--diurno)  !important; }
.bg-noturno     { background-color: var(--noturno) !important; }

/* ==========================================
   Cards e Componentes
   ========================================== */
.agente-badge {
    margin: 4px;
    display: inline-flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    min-width: 160px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), filter var(--transition-speed);
    cursor: pointer;
}
.agente-badge:hover      { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important; filter: brightness(1.1); }

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card, .card-os {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-os:hover  { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.status-ativa   { color: #2e7d32; font-weight: bold; }
.btn-os         { border-radius: 20px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

/* ==========================================
   Gerador de PDF
   ========================================== */
#pdf-content {
    padding: 10px 15px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #000;
    background: #fff;
}
.pdf-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* ==========================================
   Login
   ========================================== */
.body-login     { height: 100vh; display: flex; align-items: center; justify-content: center; background-color: #f4f6f9; margin: 0; }
.login-card     { width: 100%; max-width: 400px; background: #fff; border-radius: 8px; border: none; }
.login-header   { background-color: #2c3e50; color: #fff; padding: 25px 15px; border-radius: 8px 8px 0 0; }
.login-header img { margin-bottom: 10px; filter: drop-shadow(0px 4px 4px rgba(0,0,0,0.25)); }
.btn-login      { background-color: #18bc9c; color: white; font-weight: bold; transition: all 0.3s; }
.btn-login:hover { background-color: #128f76; color: white; }

/* ==========================================
   Tabela de Escala Compacta
   ========================================== */
.tabela-escala-compacta { width: 100%; table-layout: fixed; margin-bottom: 0; }
.tabela-escala-compacta th,
.tabela-escala-compacta td { padding: 0.2rem !important; font-size: 0.75rem; text-align: center; vertical-align: middle; border: 1px solid #dee2e6; }
.tabela-escala-compacta .col-agente  { width: 160px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tabela-escala-compacta .col-dia     { width: 30px; }

.turno-mini         { display: block; width: 100%; padding: 2px 0; border-radius: 3px; font-weight: bold; color: white; font-size: 0.70rem; }
.turno-mini.d12     { background-color: #ff9800; }
.turno-mini.n12     { background-color: #1a237e; }
.turno-mini.f       { background-color: #28a745; color: white; }

/* ==========================================
   Badges Compactos de Agente
   ========================================== */
.celula-turnos-container    { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; padding: 5px; }
.agente-badge-compacto {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agente-badge-compacto:hover    { background-color: #e2e6ea; transform: scale(1.02); }
.agente-badge-compacto.editado  { border-color: #dc3545; }
.badge-equipe                   { font-weight: 800; margin-right: 4px; font-size: 0.70rem; }
.diurno-texto                   { color: #d35400; }
.noturno-texto                  { color: #2c3e50; }

/* ==========================================
   Impressão — Ordem de Serviço (imprimir-os.html)
   ========================================== */
.container-print {
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 40px;
}

.header-oficial {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.titulo-faixa {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.secao-titulo {
    font-weight: bold;
    background-color: #343a40 !important;
    color: #fff !important;
    padding: 4px 8px;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.container-print .table-bordered,
.container-print .table-bordered th,
.container-print .table-bordered td { border-color: #000 !important; }

.grid-equipe-oficial    { display: flex; width: 100%; border: 1px solid #000; }
.col-equipe             { flex: 1; padding: 8px; border-right: 1px solid #000; font-size: 12px; }
.col-equipe:last-child  { border-right: none; }

.row-agentes            { display: flex; flex-wrap: wrap; gap: 4px; }
.row-agentes .item-agente { width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.diligencia-box { border: 1px solid #000; padding: 8px; background: #f8f9fa; line-height: 1.6; }

/* ==========================================
   @media print — ÚNICO BLOCO CONSOLIDADO
   ========================================== */
@media print {

    body {
        background: white !important;
        margin: 0;
        padding: 0;
        visibility: visible !important;
    }

    .no-print,
    .btn,
    .navbar,
    .modal,
    #btnLogOut,
    #btnAtualizar,
    #btnGerarEscala,
    #btnTravarEscala,
    #btnGerarPDF,
    .btn-group,
    .form-label,
    #inputCompetencia,
    .badge-equipe {
        display: none !important;
    }

    .container-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        max-width: 100%;
        margin: 0 !important;
        padding: 10mm 12mm !important;
        box-shadow: none !important;
        visibility: visible !important;
    }

    section,
    .grid-equipe-oficial,
    table { page-break-inside: avoid; }

    .secao-titulo,
    .titulo-faixa {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .container-fluid {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card { border: none !important; box-shadow: none !important; }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed;
        font-size: 9pt !important;
    }

    th, td {
        border: 1px solid #000 !important;
        padding: 4px !important;
        text-align: center !important;
        font-size: 9pt !important;
        color: #000 !important;
    }

    th {
        background-color: #eee !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page { size: A4 portrait; margin: 10mm 12mm; }
}

/* ==========================================
   Escala — Grade Visual (gestao-escalas.html)
   ========================================== */

.escala-row {
    border-bottom: 2px solid #b0b8c4 !important;
    transition: background .15s;
}
.escala-row:hover        { background: #f0f4ff !important; }
.escala-row:last-child   { border-bottom: none !important; }
.escala-row.fds          { background-color: #fff5f5; }

.escala-col-data {
    min-width: 110px;
    background: #f1f4f8;
    border-right: 3px solid #b0b8c4 !important;
}
.escala-col-data .dia-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a2340;
    line-height: 1;
}
.escala-col-data .dia-sem {
    font-size: 0.6rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
}
.escala-col-data .dia-grp {
    font-size: 0.58rem;
    letter-spacing: .5px;
    font-weight: 700;
    background: #1a2340;
    color: #fff;
    border-radius: 3px;
    padding: 1px 5px;
    margin-top: 3px;
    display: inline-block;
}
.fds .escala-col-data    { background: #fff0f0; }
.fds .dia-num            { color: #c0392b; }
.fds .dia-sem            { color: #c0392b !important; }

.escala-col-turno        { border-right: 2px solid #e2e8f0; }
.escala-col-turno:last-child { border-right: none; }

.escala-ag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 0.72rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: filter .15s, transform .1s;
    white-space: nowrap;
    font-weight: 500;
}
.escala-ag:hover         { filter: brightness(.9); transform: scale(1.03); }

.escala-ag-normal        { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.escala-ag-ferias        { background: #fef9c3; border-color: #facc15; color: #78350f; }
.escala-ag-atestado      { background: #fce7f3; border-color: #f9a8d4; color: #9d174d; }
.escala-ag-licenca       { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.escala-ag-folga         { background: #f0fdf4; border-color: #86efac; color: #166534; }
.escala-ag-permuta       { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }

.escala-pill {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: .4px;
    border-radius: 3px;
    padding: 1px 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.pill-ferias             { background: #fde047; color: #713f12; }
.pill-atestado           { background: #f9a8d4; color: #831843; }
.pill-licenca            { background: #7dd3fc; color: #0c4a6e; }
.pill-folga              { background: #86efac; color: #14532d; }
.pill-permuta            { background: #6ee7b7; color: #064e3b; }

.escala-ag-permuta .nome-riscado { text-decoration: line-through; opacity: .6; }
.escala-subst { font-size: 0.65rem; opacity: .8; font-style: italic; }

#btnToggleSenha {
    border-left: none;
    background-color: transparent;
    color: #6c757d;
}
#senha {
    border-right: none;
}

/* ==========================================
   Destaque de Solicitações e Conflitos
   ========================================== */

.escala-ag-solicitado {
    background: #f3e8ff !important;
    border: 1px dashed #7c3aed !important;
    color: #5b21b6 !important;
}

.pill-solicitado {
    background: #7c3aed !important;
    color: #ffffff !important;
}

.escala-ag-conflito {
    background: #fee2e2 !important;
    border: 2px solid #ef4444 !important;
    color: #b91c1c !important;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================
   Bottom Nav — Mobile (≤991px)
   ========================================== */

@media (max-width: 991.98px) {
    #menuPrincipal,
    #menuPrincipal.show,
    #menuPrincipal.collapsing {
        display: none !important;
    }
}

.gott-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #111827;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: stretch;
    box-shadow: 0 -4px 16px rgba(0,0,0,.35);
}

.gott-bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 2px;
    transition: color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.gott-bn-item i {
    font-size: 1.35rem;
    line-height: 1;
}
.gott-bn-item:hover,
.gott-bn-item:focus {
    color: #fff;
    background: rgba(255,255,255,.07);
    outline: none;
}
.gott-bn-item.active,
.gott-bn-item[aria-current="page"] {
    color: #3b82f6;
}
.gott-bn-item.active i {
    filter: drop-shadow(0 0 6px rgba(59,130,246,.6));
}

/* Painel "Mais" — sheet que sobe acima do bottom nav */
.gott-bn-mais-panel {
    position: fixed;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 1039;
    background: #1f2937;
    border-top: 1px solid rgba(255,255,255,.12);
    border-radius: 16px 16px 0 0;
    padding: 8px 0 4px;
    box-shadow: 0 -8px 24px rgba(0,0,0,.4);
    animation: gott-slide-up .2s ease-out;
}
@keyframes gott-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.gott-bn-mais-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: background .12s, color .12s;
    min-height: 52px;
}
.gott-bn-mais-item:hover,
.gott-bn-mais-item:focus {
    background: rgba(255,255,255,.07);
    color: #fff;
    outline: none;
}
.gott-bn-mais-item + .gott-bn-mais-item {
    border-top: 1px solid rgba(255,255,255,.06);
}

/* Touch targets mínimos (WCAG 2.5.5) — desktop */
.gott-nav-link  { padding: .75rem 1rem  !important; min-height: 44px; display: flex !important; align-items: center; }
.gott-drop-item { padding: .65rem 1.2rem !important; min-height: 44px; display: flex !important; align-items: center; }

/* Mobile: dropdowns inline (sem position absolute) */
@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-menu {
        position: static  !important;
        background: rgba(255,255,255,.06) !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: .5rem;
    }
    .navbar-collapse .dropdown-item { padding-left: 2rem !important; }
}

/* Highlight da página atual no navbar desktop */
#menuPrincipalContainer .nav-link.active,
#menuPrincipalContainer .dropdown-item.active {
    color: #60a5fa !important;
    font-weight: 700 !important;
}

/* Oculta bottom nav na impressão */
@media print {
    .gott-bottom-nav,
    .gott-bn-mais-panel { display: none !important; }
}


.nps-btn {
    width: 40px; height: 40px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    background: #fff;
    font-weight: bold;
    font-size: .9rem;
    cursor: pointer;
    transition: transform .1s, border-color .15s;
}
.nps-btn:hover { transform: scale(1.12); }
.nps-btn[data-valor="0"],.nps-btn[data-valor="1"],.nps-btn[data-valor="2"],.nps-btn[data-valor="3"] { color: #c0392b; }
.nps-btn[data-valor="4"],.nps-btn[data-valor="5"],.nps-btn[data-valor="6"] { color: #e67e22; }
.nps-btn[data-valor="7"],.nps-btn[data-valor="8"] { color: #f1c40f; }
.nps-btn[data-valor="9"],.nps-btn[data-valor="10"] { color: #27ae60; }
.nps-btn.selecionado { border-color: currentColor; background: currentColor; color: #fff !important; }

/* ===== Extrato de banco de horas — estilos da tela ===== */
:root{
    --ink:        #14201f;
    --ink-soft:   #4a5b59;
    --line:       #d8e0de;
    --surface:    #ffffff;
    --surface-2:  #f3f6f5;
    --rail:       #0a3d3a;   /* petróleo institucional (trânsito/transporte) */
    --rail-soft:  #e3efed;
    --credito:    #1b6b3a;   /* entrada (+) */
    --credito-bg: #e7f3eb;
    --debito:     #9c2a2a;   /* saída (−) */
    --debito-bg:  #f7e9e8;
    --radius:     12px;
    --mono: ui-monospace, "SF Mono", "Roboto Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
    font-family:var(--sans);
    color:var(--ink);
    background:var(--surface-2);
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
}
.wrap{max-width:880px;margin:0 auto;padding:24px 16px 64px;}

/* cabeçalho */
.topo{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;}
.topo h1{font-size:20px;letter-spacing:-.01em;margin:0 0 2px;}
.topo .sub{color:var(--ink-soft);font-size:13px;margin:0;}
.seletor{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-soft);}
.seletor select{
    font-family:var(--sans);font-size:13px;color:var(--ink);
    padding:7px 28px 7px 10px;border:1px solid var(--line);border-radius:8px;
    background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%234a5b59' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 9px center;
    -webkit-appearance:none;appearance:none;cursor:pointer;
}

/* card de saldo */
.saldo-card{
    background:var(--rail);color:#eef6f5;border-radius:var(--radius);
    padding:22px 24px;display:flex;align-items:center;justify-content:space-between;
    gap:20px;flex-wrap:wrap;margin-bottom:22px;
}
.saldo-card .rotulo{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#9cc4bf;margin:0 0 4px;}
.saldo-card .valor{font-family:var(--mono);font-size:40px;font-weight:600;letter-spacing:-.02em;line-height:1;}
.saldo-card .valor.neg{color:#ffb4ab;}
.saldo-card .meta{font-size:12px;color:#9cc4bf;margin-top:6px;}
.saldo-card .lado{text-align:right;font-size:13px;color:#cfe4e1;}
.saldo-card .lado b{display:block;font-family:var(--mono);font-size:16px;color:#eef6f5;font-weight:600;}

/* bloco de competência */
.mes{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:18px;}
.mes-cab{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);}
.mes-cab .titulo{font-size:15px;font-weight:600;letter-spacing:-.01em;text-transform:capitalize;}
.mes-cab .abertura{font-size:12px;color:var(--ink-soft);}
.mes-cab .abertura b{font-family:var(--mono);color:var(--ink);}

/* tabela de movimentos */
table{width:100%;border-collapse:collapse;font-size:13.5px;}
thead th{
    text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;
    color:var(--ink-soft);font-weight:600;padding:9px 18px;background:var(--surface-2);
    border-bottom:1px solid var(--line);
}
thead th.num{text-align:right;}
tbody td{padding:11px 18px;border-bottom:1px solid var(--line);vertical-align:top;}
tbody tr:last-child td{border-bottom:none;}
.data{font-family:var(--mono);font-size:12.5px;color:var(--ink-soft);white-space:nowrap;}
.desc .tipo{font-weight:600;}
.desc .obs{display:block;color:var(--ink-soft);font-size:12.5px;margin-top:2px;}
.tag{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 7px;border-radius:5px;margin-left:6px;vertical-align:1px;}
.tag.c{background:var(--credito-bg);color:var(--credito);}
.tag.d{background:var(--debito-bg);color:var(--debito);}
.num{font-family:var(--mono);text-align:right;white-space:nowrap;}
.num.mov.c{color:var(--credito);}
.num.mov.d{color:var(--debito);}
.num.saldo{color:var(--ink);}

/* rodapé do mês */
.mes-rod{display:flex;justify-content:flex-end;gap:28px;padding:13px 18px;background:var(--rail-soft);border-top:1px solid var(--line);font-size:13px;}
.mes-rod .item{text-align:right;}
.mes-rod .item .rot{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-soft);}
.mes-rod .item .v{font-family:var(--mono);font-size:15px;font-weight:600;}
.mes-rod .item .v.c{color:var(--credito);}
.mes-rod .item .v.d{color:var(--debito);}

.vazio{padding:40px 18px;text-align:center;color:var(--ink-soft);font-size:14px;}
.legenda{font-size:12px;color:var(--ink-soft);margin-top:6px;}
.erro{background:var(--debito-bg);color:var(--debito);border:1px solid #e6c9c6;border-radius:10px;padding:14px 16px;font-size:14px;}

@media (max-width:560px){
    .saldo-card .valor{font-size:32px;}
    thead th.col-obs,tbody td.col-obs{display:none;}
    .desc .obs{display:block;}
    .mes-rod{flex-wrap:wrap;gap:18px;}
}

/* aviso de conciliação do saldo inicial */
.conferir{
    display:flex;gap:10px;align-items:flex-start;
    background:#fbf2da;color:#8a5a00;border:1px solid #ecdcae;
    border-radius:10px;padding:12px 14px;font-size:13px;margin-bottom:22px;
}
.conferir.ok{background:var(--credito-bg);color:var(--credito);border-color:#bfe0c9;}
.conferir svg{flex:0 0 auto;margin-top:1px;}

/* ==========================================
   Plantão — reforma mobile (relatorio-plantao.html)
   ========================================== */

/* Respiro p/ o bottom nav fixo (60px+safe-area) não cobrir os botões. */
@media (max-width: 991.98px) {
    .gott-pb-mobile {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Celular: tabelas de lançamento viram cartões empilhados. */
@media (max-width: 575.98px) {

    /* tira a moldura do wrapper quando ele tem um cartão-tabela dentro */
    .table-responsive:has(.gott-card-table) {
        border: none; box-shadow: none; overflow: visible; border-radius: 0;
    }

    .gott-card-table thead { display: none; }
    .gott-card-table,
    .gott-card-table tbody,
    .gott-card-table tr,
    .gott-card-table td { display: block; width: 100%; }

    .gott-card-table tr {
        border: 1px solid #dee2e6; border-radius: 10px; margin-bottom: 12px;
        padding: 10px 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06);
    }

    .gott-card-table td {
        border: none; padding: 7px 0; text-align: left;
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
    }

    /* rótulo da coluna, lido do data-label do <td> (injetado pelo JS) */
    .gott-card-table td::before {
        content: attr(data-label); flex: 0 0 auto;
        font-weight: 600; font-size: .72rem; text-transform: uppercase;
        letter-spacing: .03em; color: #64748b;
    }

    /* 1ª célula = cabeçalho do cartão (nome do agente / item / viatura) */
    .gott-card-table td:first-child {
        display: block; border-bottom: 1px solid #eef1f4;
        margin-bottom: 6px; padding-bottom: 8px;
    }
    .gott-card-table td:first-child::before { content: ""; display: none; }

    /* controles à direita do par rótulo/valor, sem estourar */
    .gott-card-table td > .form-control,
    .gott-card-table td > .form-select {
        flex: 0 1 62%; max-width: 62%; min-height: 40px; font-size: .95rem;
    }
    .gott-card-table td > input[type="time"] { flex: 0 0 auto; max-width: 130px; }

    /* saída por viatura: nome do agente também em bloco (sem rótulo) */
    .gott-card-table--saida td:nth-child(2) {
        display: block; margin-bottom: 4px; padding-bottom: 4px;
    }
    .gott-card-table--saida td:nth-child(2)::before { content: ""; display: none; }

    /* tripulação: listbox mais alta e linhas tocáveis */
    select.sel-tripulacao { min-height: 150px; font-size: 1rem; }
    select.sel-tripulacao option { padding: 9px 6px; }

    /* botões de ação em largura total */
    #btn-encerrar-plantao,
    #btn-iniciar-plantao,
    #btn-salvar-livro { width: 100%; }
}