@import url('modal-comentarios.css');  /* moldura, classes cmt- e hist- do modal de comentários */
/* =============================================================================
   SGC — folha única de estilo
   -----------------------------------------------------------------------------
   Implementa design_handoff_solicitacoes/ (README.md + PADROES.md).

   Regra do handoff, seção 1: nenhuma tela redefine cor, radius, sombra ou
   tamanho de fonte no próprio template. Tudo vem daqui, via classe.

   Sobre oklch: o handoff especifica as cores em oklch. Cada uma vem precedida
   do hex equivalente, calculado pelo próprio motor do Chromium a partir do
   valor do handoff. Navegador que entende oklch usa a segunda linha e ganha a
   cor exata; navegador antigo ignora essa linha e fica com o hex, visualmente
   idêntico. Sem isso, um Chrome anterior ao 111 renderizaria a variável vazia
   e o elemento sairia preto.
============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    /* superfícies */
    --bg: #f4f5f7;
    --surface: #fff;
    --surface-2: #f7f8fa;
    --row-hover: #f9fafb;

    /* linhas */
    --border: #e2e5ea;
    --border-field: #d7dbe1;
    --divider: #eef0f3;

    /* texto */
    --ink: #1c2126;
    --ink-2: #4a535e;
    --ink-3: #6b7480;
    --label: #8e969f;
    --placeholder: #99a1ab;

    /* navegação */
    --nav-bg: #1b2026;
    --nav-ink: #cfd6de;
    --nav-hover: #262d35;
    --nav-divider: #2a3138;

    /* ação */
    --primary: #2a75ba;
    --primary: oklch(0.55 0.13 250);
    --primary-hover: #0c60a3;
    --primary-hover: oklch(0.48 0.13 250);
    --primary-light: #418ad1;
    --primary-light: oklch(0.62 0.13 250);
    --primary-link: #1f6cb0;
    --primary-link: oklch(0.52 0.13 250);
    --primary-bright: #4c9deb;
    --primary-bright: oklch(0.68 0.14 250);

    /* conclusão da tarefa (Agendar, Autorizar, Confirmar) */
    --success: #14874e;
    --success: oklch(0.55 0.13 155);
    --success-hover: #00723b;
    --success-hover: oklch(0.48 0.13 155);

    /* estados */
    --warn-bg: #fbedd1;
    --warn-bg: oklch(0.95 0.04 85);
    --warn-ink: #7b4800;
    --warn-ink: oklch(0.45 0.11 70);
    --alert-bg: #ffe3db;
    --alert-bg: oklch(0.95 0.05 30);
    --alert-ink: #af2c1f;
    --alert-ink: oklch(0.5 0.17 30);
    --alert-strong: #c13e2e;
    --alert-strong: oklch(0.55 0.17 30);
    --info-bg: #e0f1ff;
    --info-bg: oklch(0.95 0.03 250);
    --info-ink: #004f8b;
    --info-ink: oklch(0.42 0.12 250);

    /* forma */
    --r-6: 6px; --r-7: 7px; --r-8: 8px; --r-10: 10px;
    --shadow-card: 0 2px 10px rgba(20, 28, 38, .07);
    --shadow-toggle: 0 1px 3px rgba(20, 28, 38, .12);
    --focus: 0 0 0 3px rgba(65, 138, 209, .14);
    --focus: 0 0 0 3px oklch(0.62 0.13 250 / .14);

    --font: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* =============================================================================
   BASE
============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus-visible {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: var(--focus);
}

.app { display: flex; min-height: 100vh; }

.main {
    flex: 1;
    min-width: 0;              /* handoff §4.11: sem isso a tabela estoura o flex */
    display: flex;
    flex-direction: column;
}

.content { padding: 18px 24px 40px; }

/* =============================================================================
   SIDEBAR
============================================================================= */
.sidebar {
    width: 214px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--nav-bg);
    color: var(--nav-ink);
    /* coluna: menu no topo (rola), usuário fixo no rodapé via margin-top:auto */
    display: flex;
    flex-direction: column;
}
.sidebar .nav-list { flex: 1 1 auto; overflow-y: auto; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--nav-divider);
}

.nav-brand-mark {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: var(--r-6);
    background: var(--primary-light);
    color: #fff;
    font-size: 13px; font-weight: 700;
}

.nav-brand-name {
    color: #fff;
    font-size: 15px; font-weight: 600;
    letter-spacing: 0.06em;
}

.nav-list { padding: 10px 8px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--r-7);
    font-size: 13.5px;
    color: var(--nav-ink);
    transition: background 120ms ease, color 120ms ease;
}
.nav-item:hover { background: var(--nav-hover); color: #fff; }

.nav-item.is-active {
    background: rgba(65, 138, 209, .16);
    background: oklch(0.62 0.13 250 / 0.16);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--primary-bright);
}

.nav-item i { width: 16px; font-size: 16px; text-align: center; }

.nav-divider {
    height: 1px;
    margin: 8px 11px;
    background: var(--nav-divider);
}

/* ---------- rodapé do usuário (avatar + nome + Sair) ----------
   Estava sem estilo no sgc.css (só existia no sga.css), e caía como texto
   solto no fim da sidebar. Fica preso ao rodapé pelo margin-top:auto. */
.sidebar__user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-top: 1px solid var(--nav-divider);
}
.sidebar__user .avatar {
    flex: 0 0 auto;
    width: 28px; height: 28px;
    border-radius: 999px;
    background: var(--primary-light);
    color: #fff;
    font-size: 10.5px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.sidebar__user .grow { flex: 1 1 auto; min-width: 0; }
.sidebar__user .truncate {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; color: var(--nav-ink);
}
.sidebar__user .btn {
    flex: 0 0 auto;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: var(--r-7);
    background: transparent;
    border: 1px solid var(--nav-divider);
    color: var(--nav-ink);
}
.sidebar__user .btn:hover { background: var(--nav-hover); color: #fff; }


/* =============================================================================
   HEADER — sticky, quatro faixas na ordem fixa do handoff §4.1
============================================================================= */
.page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 0;
}

.page-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* Contadores em texto, não em badge colorido (handoff §4.2). */
.counters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--ink-3);
    flex-wrap: wrap;
}
.counters b { color: var(--ink); font-weight: 600; }
.counter-sep { width: 1px; height: 11px; background: var(--border-field); }
.counter-alert { color: var(--alert-strong); font-weight: 600; }

.page-actions { display: flex; align-items: center; gap: 8px; }

/* Alternador Cards / Tabela densa */
.view-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: var(--r-8);
    background: #eef0f3;
}
.view-opt {
    padding: 6px 12px;
    border: 0;
    border-radius: var(--r-6);
    background: transparent;
    color: var(--ink-3);
    font-size: 12.5px;
    cursor: pointer;
}
.view-opt.is-active {
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow-toggle);
}

/* --- filtros: uma linha só (handoff §4.3) --- */
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
}
.filter-search { flex: 1 1 300px; min-width: 220px; }
.filter-sep { font-size: 12px; color: var(--placeholder); }

.field {
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border-field);
    border-radius: var(--r-8);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field::placeholder { color: var(--placeholder); }
.field:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: var(--focus);
}
select.field { cursor: pointer; }

/* "Limpar filtros" é link, não botão (handoff §4.3) */
.link-btn {
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--primary-link);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* --- abas de status (handoff §4.4) --- */
.tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
}
.tab {
    padding: 9px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--ink-3);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
    border-bottom-color: var(--primary);
    color: var(--info-ink);
    font-weight: 600;
}
.tab-count { color: var(--label); margin-left: 4px; }

/* =============================================================================
   BOTÕES — no máximo uma verde por card/linha (handoff §4.8)
============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: var(--r-8);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary  { background: var(--primary); border-color: var(--primary); color: #fff; padding: 9px 14px; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.btn-secondary { background: var(--surface); border-color: var(--border-field); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }

.btn-success { background: var(--success); border-color: var(--success); color: #fff; border-radius: var(--r-7); }
.btn-success:hover { background: var(--success-hover); border-color: var(--success-hover); color: #fff; }

.btn-sm { padding: 6px 10px; font-size: 11.5px; }

.icon-btn {
    width: 24px; height: 24px;
    display: inline-grid; place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-6);
    background: var(--surface);
    color: #7b838d;
    font-size: 11px;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}
.icon-btn:hover:not(:disabled) { background: #f2f4f6; color: var(--ink-2); }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }

/* =============================================================================
   CHIPS
============================================================================= */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.chip-info  { background: var(--info-bg); color: var(--info-ink); }
.chip-warn  { background: var(--warn-bg); color: var(--warn-ink); }
.chip-mute  { background: #f2f4f6; color: var(--ink-3); }
.chip-alert { background: var(--alert-bg); color: var(--alert-ink); }

/* =============================================================================
   CARDS (handoff §4.6)
============================================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
    gap: 12px;
}

.rec-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px 13px 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-10);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.rec-card:hover { border-color: #c4cad2; box-shadow: var(--shadow-card); }

.rec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rec-ident { min-width: 0; }

.rec-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-wrap: pretty;
    color: var(--ink);
}
.rec-codes {
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 11px;
    color: #7b838d;
}
.rec-actions-top { display: flex; gap: 4px; flex: none; }

.rec-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* bloco de destaque com bordas acima e abaixo */
.rec-highlight {
    padding: 8px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}
.rec-highlight-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--label);
}
.rec-highlight-value { margin-top: 2px; font-size: 12px; color: #384049; }

.rec-fields {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 10px;
    font-size: 12px;
}
.rec-fields dt { color: var(--label); }
.rec-fields dd { margin: 0; font-weight: 500; color: var(--ink-2); min-width: 0; }
.rec-fields dd.is-mono { font-family: var(--mono); font-size: 11.5px; font-weight: 400; }

/* Botões do card em grade de duas colunas, todos do mesmo tamanho. Com três
   (Agendar, Autorizar, Comentar), o que sobra na linha de baixo ocupa a
   largura dos dois de cima — em vez de ficar com a metade e um buraco ao lado. */
.rec-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
    padding-top: 2px;
    min-width: 0;
}
.rec-foot > * { min-width: 0; }
.rec-foot > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.rec-foot .btn { width: 100%; justify-content: center; padding-left: 10px; padding-right: 10px; }
/* O form do Autorizar envolve o botão; ele é o item da grade. */
.rec-foot form { display: flex; min-width: 0; margin: 0; }

/* =============================================================================
   TABELA DENSA (handoff §4.7)
============================================================================= */
.dense-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-10);
    overflow-x: auto;
}

.dense-head, .dense-row {
    display: grid;
    /* A coluna de Ações comporta "Agendar" + "Autorizar agora" + dois ícones.
       Com os 152px de antes os botões não cabiam e, como .dense-actions é
       overflow:visible, eles vazavam para a esquerda e passavam POR CIMA da
       coluna Espera — o tempo aparecia atrás dos botões.
       O column-gap também é novo: sem ele as células se encostavam e o texto
       de uma parecia continuar na outra. */
    grid-template-columns:
        minmax(150px, 1.4fr) minmax(170px, 1.6fr) 78px
        minmax(120px, 1.1fr) minmax(120px, 1.1fr) 96px 250px;
    column-gap: 12px;
    min-width: 1060px;
    align-items: center;
}

.dense-head {
    padding: 9px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7b838d;
}

.dense-row {
    padding: 8px 14px;
    border-bottom: 1px solid var(--divider);
    font-size: 12px;
}
.dense-row:last-child { border-bottom: 0; }
.dense-row:hover { background: var(--row-hover); }

/* O corte precisa valer também nas linhas internas da célula (nome + subtítulo),
   senão o texto longo vaza por cima da coluna vizinha em vez de virar "…". */
.dense-row > * { min-width: 0; }
.dense-row > *,
.dense-row > * > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* O chip do tempo precisa poder ser mais largo que o texto puro ("há 3 meses"),
   e a célula não pode cortá-lo pela metade. */
.dense-row > .dense-espera { overflow: visible; }
.dense-strong { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.dense-sub { font-size: 10.5px; color: var(--label); }
.dense-sub.is-mono { font-family: var(--mono); }

.dense-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    /* visible por causa do badge de comentários, que fica fora do botão. */
    overflow: visible;
    min-width: 0;
}
/* O formulário do "Autorizar agora" é um item do flex: sem isto ele encolhia
   a ponto de o botão virar duas linhas. */
.dense-actions .form-autorizar { display: flex; flex: 0 0 auto; }
.dense-actions .btn { white-space: nowrap; }

/* =============================================================================
   ESTADOS E RODAPÉ (handoff §4.9 e §4.10)
============================================================================= */
.empty-state {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-10);
}
.empty-state-title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.empty-state-hint { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.empty-state .link-btn { margin-top: 10px; }

/* Esqueleto de carregamento: mesmo grid, mesma moldura do card. */
.skeleton {
    height: 208px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-10);
    position: relative;
    overflow: hidden;
}
.skeleton::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(20,28,38,.04), transparent);
    animation: skeleton 1.1s infinite;
}
@keyframes skeleton { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

.list-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--ink-3);
    flex-wrap: wrap;
}
.list-foot-nav { display: flex; gap: 6px; }

/* =============================================================================
   RESPONSIVO — precisa funcionar em 1024px (handoff §4.11)
============================================================================= */
@media (max-width: 1024px) {
    .sidebar { width: 64px; }
    .sidebar .nav-brand-name, .sidebar .nav-item span { display: none; }
    .nav-item { justify-content: center; }
}

@media (max-width: 720px) {
    .content { padding: 14px 14px 32px; }
    .page-header { padding: 14px 14px 0; }
    .page-header-top { flex-direction: column; align-items: stretch; }
    .page-actions { flex-wrap: wrap; }
    .filter-search { flex-basis: 100%; }
}

/* =============================================================================
   DIÁLOGO DE CONFIRMAÇÃO
   Para ações que mudam o estado de uma solicitação e não têm desfazer óbvio.
   Mesma moldura dos cards: superfície branca, borda, radius 10.
============================================================================= */
.dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20, 28, 38, .45);
}
.dialog-backdrop[hidden] { display: none; }

.dialog {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-10);
    box-shadow: 0 16px 48px rgba(20, 28, 38, .22);
    padding: 18px;
}

.dialog-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.dialog-body {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-2);
}

/* Bloco com o que será alterado: quem, e para onde vai. */
.dialog-alvo {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--divider);
    border-radius: var(--r-8);
}
.dialog-alvo-nome { font-size: 13px; font-weight: 600; color: var(--ink); }
.dialog-alvo-cod {
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--label);
}
.dialog-alvo-destino {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--divider);
    font-size: 12px;
    color: var(--ink-3);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

@media (max-width: 480px) {
    .dialog-actions { flex-direction: column-reverse; }
    .dialog-actions .btn { width: 100%; }
}


.sync-line { font-size: 11.5px; color: #8a929c; margin: 3px 0 0; }

/* ===================================================================
   Devolvido pela agenda
   -------------------------------------------------------------------
   Paciente que não compareceu, ou agendamento que ninguém baixou depois
   do prazo (Configurações › Tempos e alertas). O card volta para a fila
   de entrada, no topo e em vermelho: ele está ali para ser tratado, não
   para esperar a vez.

   Vermelho na BORDA e numa faixa, não no fundo inteiro: fundo vermelho
   deixa o texto do card difícil de ler e transforma uma lista com
   várias devoluções num bloco só.
   =================================================================== */
.rec-card.is-retorno {
    border-color: #e6a79d;
    box-shadow: inset 3px 0 0 #c0392b;
}
.rec-card.is-retorno:hover { border-color: #d98878; }

.rec-retorno {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #fdeceb;
    color: #8c2a1d;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}
.rec-retorno i { font-size: 11px; opacity: .85; }

.dense-row.is-retorno {
    box-shadow: inset 3px 0 0 #c0392b;
    background: #fffaf9;
}
.dense-row.is-retorno:hover { background: #fdeceb; }
.dense-sub--retorno { color: #a52f21; font-weight: 600; }

/* Busca de paciente sem resultado: a linha vira a saída, não um beco. */
.ext-lista-vazia { cursor: pointer; color: #5b6570; }
.ext-lista-vazia b { color: #1d4f6b; }
.ext-lista-vazia:hover { background: #eef6fb; }

/* Card atrasado: a cor acompanha o tamanho do atraso (tempos.Alertas.faixa).
   1 vencido = amarelo · 2 = laranja · 3 = vermelho. Faixa na borda esquerda e
   fundo bem claro — o texto continua legível. */
.rec-card.rec-card--atraso-1 { border-color: #f1d27a; box-shadow: inset 4px 0 0 #e0a800; background: #fffcf0; }
.rec-card.rec-card--atraso-2 { border-color: #f3b27d; box-shadow: inset 4px 0 0 #e8710a; background: #fff7ef; }
.rec-card.rec-card--atraso-3 { border-color: #e6a79d; box-shadow: inset 4px 0 0 #c0392b; background: #fdf2f1; }
.dense-row.dense-row--atraso-1 { box-shadow: inset 4px 0 0 #e0a800; background: #fffcf0; }
.dense-row.dense-row--atraso-2 { box-shadow: inset 4px 0 0 #e8710a; background: #fff7ef; }
.dense-row.dense-row--atraso-3 { box-shadow: inset 4px 0 0 #c0392b; background: #fdf2f1; }

/* Celular: área de toque de 40px (a casca, com o menu em gaveta, mora em
   menu-modo.css). */
@media (max-width: 720px) {
    .btn { min-height: 40px; }
    .icon-btn { width: 36px; height: 36px; }
    .view-opt { min-height: 36px; }
    .filter-search, .page-header select, .page-header input { min-height: 40px; font-size: 16px; }
}
