/* Sistema de O.S. — folha de estilo única, sem dependências externas */
:root {
  /* marca MJ DAU CONSIG — mesmos tokens do Painel de Sites */
  --navy: #0b2e72; --navy-600: #16409a; --navy-900: #08204f; --orange: #f47a1e; --orange-600: #e0680f;
  --bg: #eef2f8; --surface: #fff; --surface-2: #f6f8fc;
  --ink: #13254f; --ink-2: #2b3c63; --muted: #5a6a84;
  --line: #dbe2ee; --line-2: #c5d0e2;
  --pri: var(--orange-600); --pri-h: #c95a08; --pri-soft: #fff1e6;   /* interativo: laranja da marca */
  --link: var(--navy-600); --link-soft: #e8eefb;                     /* texto clicável: navy */
  --ok: #15803d; --ok-soft: #ecfdf3; --warn: #b45309; --warn-soft: #fffbeb;
  --bad: #b91c1c; --bad-soft: #fef2f2;
  --side-2: rgba(255, 255, 255, .06); --side-ink: rgba(255, 255, 255, .72);
  --r: 10px; --r-sm: 7px;
  --sh: 0 1px 2px rgba(11, 46, 114, .06), 0 1px 3px rgba(11, 46, 114, .05);
  --sh-lg: 0 18px 50px rgba(8, 32, 79, .28);
  --side-w: 252px;
  /* gráficos (paleta validada: azul da marca clareado / laranja) */
  --serie-1: #1f55c4; --serie-2: #e0680f; --grade: #e3e8f1; --eixo: #c0cadb;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font: 12px/1.4 ui-monospace, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pad { padding: 14px 16px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- layout */
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--side-ink); display: flex; flex-direction: column; z-index: 40; }
.marca { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.marca:hover { text-decoration: none; }
.marca-sub { font-size: 11.5px; letter-spacing: .03em; color: rgba(255, 255, 255, .55); }
/* wordmark MJ DAU CONSIG (igual aos demais painéis) */
.logo-wm { display: inline-flex; flex-direction: column; font-weight: 800; font-size: 25px; letter-spacing: -.02em; line-height: 1; color: var(--navy); user-select: none; }
.logo-wm.claro { color: #fff; }
.logo-wm .j, .logo-wm .dot { color: var(--orange); }
.logo-wm small { margin-top: 5px; font-size: 10px; font-weight: 700; letter-spacing: .35em; color: var(--orange); }
.marca-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--pri); color: #fff; flex: none; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-titulo { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .42); padding: 16px 10px 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--side-ink); font-weight: 500; }
.nav-item:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav-item.ativo { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.nav-item.ativo::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 99px; background: var(--orange); }
.nav-item span { flex: 1; }
.nav-cont { font-style: normal; font-size: 11px; font-weight: 700; background: var(--orange-600); color: #fff; border-radius: 99px; padding: 1px 7px; }
.sidebar-pe { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-600); color: #fff; font-weight: 700; flex: none; }
.sidebar-user { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-user b { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.backdrop { display: none; }

.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-titulo { flex: 1; min-width: 0; }
.topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voltar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); flex: none; }
.voltar:hover { background: var(--surface-2); }
.topbar-acoes { display: flex; align-items: center; gap: 10px; padding-right: 6px; }
.busca-topo { display: flex; align-items: center; gap: 8px; width: 300px; padding: 0 12px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.busca-topo:focus-within { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 3px var(--pri-soft); }
.busca-topo input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); }
.conteudo { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px 28px 56px; display: flex; flex-direction: column; gap: 18px; }
.so-mobile { display: none !important; }

/* ---------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { text-decoration: none; }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-h); }
.btn-sec { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn-sec:hover { background: var(--surface-2); border-color: #94a3b8; }
.btn-sucesso { background: var(--ok); color: #fff; }
.btn-sucesso:hover { background: #166534; }
.btn-perigo { background: var(--bad); color: #fff; }
.btn-perigo:hover { background: #991b1b; }
.btn-fantasma { background: none; color: var(--ink-2); }
.btn-fantasma.perigo { color: var(--bad); }
.btn-fantasma.perigo:hover { background: var(--bad-soft); }
.btn-sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-bloco { width: 100%; }
.btn[disabled], .btn.enviando { opacity: .6; pointer-events: none; }
.btn-icone { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; flex: none; }
.btn-icone:hover { background: #e9edf4; }
.btn-icone.claro { color: rgba(255, 255, 255, .6); }
.btn-icone.claro:hover { background: var(--side-2); color: #fff; }
.link { border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; font-size: 12.5px; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.card-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-topo h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-corpo { padding: 18px; }
.cont { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grade-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.alinhar-topo { align-items: start; }
.pilha { display: flex; flex-direction: column; gap: 18px; }

/* abertura de O.S. na tela inicial do usuário */
.card-abrir { border-color: #f3c9a5; box-shadow: 0 0 0 3px var(--pri-soft), var(--sh); }
.card-abrir .card-topo { background: var(--pri-soft); border-radius: var(--r) var(--r) 0 0; border-color: #f6dcc3; }
.card-abrir .card-topo h2 { color: #9a4508; font-size: 16px; }
.card-abrir form > .card-corpo:first-of-type { display: flex; flex-direction: column; gap: 16px; }
.abrir-acoes { align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 14px; }
/* KPIs */
.kpis { display: grid; gap: 14px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); color: inherit; min-width: 0; }
a.kpi:hover { text-decoration: none; border-color: var(--line-2); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.kpi > div { min-width: 0; display: flex; flex-direction: column; }
.kpi small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi b { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.kpi-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; flex: none; }
.kpi-ic.azul { background: #e8f0fe; color: #1d4ed8; } .kpi-ic.indigo { background: #eef0ff; color: #4338ca; }
.kpi-ic.ambar { background: #fef3c7; color: #b45309; } .kpi-ic.verde { background: #dcfce7; color: #15803d; }
.kpi-ic.vermelho { background: #fee2e2; color: #b91c1c; } .kpi-ic.cinza { background: #eef1f6; color: #475569; }
.kpi-alerta { border-color: #fca5a5; background: #fffafa; }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge .ponto { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-aberta { background: #e8f0fe; color: #1e40af; border-color: #c7d9fb; }
.st-em_analise { background: #f1ecfe; color: #5b21b6; border-color: #ddd0fb; }
.st-em_andamento { background: #e0f2fe; color: #075985; border-color: #bae0f7; }
.st-aguardando_usuario { background: #fef3c7; color: #92400e; border-color: #f7dc8b; }
.st-aguardando_terceiro { background: #ffedd5; color: #9a3412; border-color: #f9cfa5; }
.st-resolvida { background: #ccfbf1; color: #115e59; border-color: #9debdc; }
.st-finalizada { background: #dcfce7; color: #166534; border-color: #b5eec8; }
.st-cancelada { background: #eef1f6; color: #475569; border-color: #d8dee8; }
.form-tipo { display: inline-block; }
.select-tipo { width: auto; min-height: 30px; padding: 3px 30px 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; cursor: pointer; background-position: right 9px center; }
.select-tipo.tipo-admin { background-color: #f1ecfe; border-color: #ddd0fb; color: #5b21b6; }
.select-tipo.tipo-atendente { background-color: #e0f2fe; border-color: #bae0f7; color: #075985; }
.select-tipo.tipo-usuario { background-color: #eef1f6; border-color: #d8dee8; color: #475569; }
.select-tipo option { background: #fff; color: var(--ink); font-weight: 400; }
.perfil-admin { background: #f1ecfe; color: #5b21b6; } .perfil-atendente { background: #e0f2fe; color: #075985; } .perfil-usuario { background: #eef1f6; color: #475569; }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.prio .barras { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.prio .barras b { width: 3px; border-radius: 1px; background: #cbd5e1; }
.prio .barras b:nth-child(1) { height: 5px; } .prio .barras b:nth-child(2) { height: 8px; } .prio .barras b:nth-child(3) { height: 12px; }
.prio-baixa { color: #64748b; } .prio-baixa .barras b:nth-child(1) { background: #64748b; }
.prio-normal { color: #1d4ed8; } .prio-normal .barras b:nth-child(-n+2) { background: #2563eb; }
.prio-alta { color: #c2410c; } .prio-alta .barras b { background: #ea580c; }
.prio-urgente { color: #fff; background: #dc2626; border-radius: 99px; padding: 2px 9px; font-size: 12px; }
.prio-auto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.prio-auto-valor { font-weight: 700; font-size: 13px; padding: 2px 11px; border-radius: 99px; background: #e2e8f0; color: var(--ink-2); white-space: nowrap; }
.prio-auto-valor.prio-baixa { background: #eef1f6; color: #475569; } .prio-auto-valor.prio-normal { background: #e8f0fe; color: #1d4ed8; }
.prio-auto-valor.prio-alta { background: #ffedd5; color: #c2410c; } .prio-auto-valor.prio-urgente { background: #dc2626; color: #fff; }
.prio-auto-prazo { font-size: 12.5px; }
.sla { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sla-no_prazo, .sla-cumprido { color: var(--ok); } .sla-proximo { color: var(--warn); }
.sla-vencido, .sla-violado { color: var(--bad); } .sla-pausado { color: var(--muted); }
.sem-resp { color: var(--warn); font-style: normal; font-size: 12.5px; }

/* ---------------------------------------------------------------- tabelas */
.tabela-wrap { overflow-x: auto; position: relative; }
.col-dupla span, .col-dupla small { display: block; } .col-dupla small { color: var(--muted); font-size: 12px; }
.tabela-fila td, .tabela-fila th { padding-left: 11px; padding-right: 11px; }
.tabela-fila .col-assunto { width: 99%; max-width: 0; min-width: 180px; } .tabela-fila .col-assunto span, .tabela-fila .col-assunto small { overflow: hidden; text-overflow: ellipsis; }
.col-dupla .badge { display: inline-flex; } .col-dupla .badge + small { margin-top: 3px; }
.so-largo { display: none; }
@media (min-width: 1500px) { .so-largo { display: inline; } }
.tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabela th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tbody tr[data-href] { cursor: pointer; }
.tabela tbody tr:hover { background: #f8fafd; }
.tabela tfoot td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.th-sort .ic { opacity: .35; }
.th-sort.ativo { color: var(--ink); } .th-sort.ativo .ic { opacity: 1; color: var(--orange-600); }
.proto { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-assunto { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-acoes { text-align: right; white-space: nowrap; }
.col-acoes > * { display: inline-flex; vertical-align: middle; }
.col-mudanca { max-width: 320px; font-size: 12.5px; } .col-mudanca .de { color: var(--muted); text-decoration: line-through; }
.linha-inativa { opacity: .6; }
.tabela-fila tr.linha-prio-urgente td:first-child { box-shadow: inset 3px 0 0 #dc2626; }
.tabela-fila tr.linha-prio-alta td:first-child { box-shadow: inset 3px 0 0 #ea580c; }
.tabela-fila tr.linha-vencida { background: #fffafa; }
.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.paginacao nav { display: flex; gap: 8px; }
.vazio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; text-align: center; color: var(--muted); }
.vazio strong { color: var(--ink); font-size: 15px; } .vazio .btn { margin-top: 10px; }

/* ---------------------------------------------------------------- formulários */
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo label, .rotulo { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; transition: border-color .12s, box-shadow .12s; }
textarea { resize: vertical; line-height: 1.5; min-height: 80px; }
select { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
input:disabled, select:disabled, input[readonly] { background: var(--surface-2); color: var(--muted); }
input[readonly] { cursor: default; } input[readonly]:focus { border-color: var(--line-2); box-shadow: none; }
.busca-topo input, .busca-topo input:focus { border: 0; box-shadow: none; min-height: 0; padding: 0; background: none; }
.invalido input, .invalido select, .invalido textarea { border-color: var(--bad); }
.erro-campo { color: var(--bad); font-size: 12.5px; font-weight: 500; }
.dica { color: var(--muted); font-size: 12.5px; }
.form-v { display: flex; flex-direction: column; gap: 14px; }
.form-pagina { display: flex; flex-direction: column; gap: 18px; max-width: 1080px; }
.form-pagina .card-corpo { display: flex; flex-direction: column; gap: 16px; }
.form-pagina .card-corpo.grade-3, .form-pagina .card-corpo.grade-dados { display: grid; }
.form-acoes { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.form-acoes.centro { justify-content: center; }
.input-sufixo { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; }
.input-sufixo:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
.input-sufixo input, .input-sufixo input:focus { border: 0; box-shadow: none; }
.input-sufixo span { padding: 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; border-left: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; background: var(--surface-2); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--pri); flex: none; }
.check span { display: flex; flex-direction: column; } .check small { color: var(--muted); }
.segmento { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; background: var(--surface-2); width: fit-content; max-width: 100%; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: #fff; color: var(--link); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.seg input:focus-visible + span { outline: 2px solid var(--pri); }
.seg-alta input:checked + span { color: #c2410c; } .seg-urgente input:checked + span { background: #dc2626; color: #fff; }
.seg-interna input:checked + span { background: #fef3c7; color: #92400e; }
.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-cta { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px dashed var(--line-2); border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); background: #fff; }
.upload:hover .upload-cta, .upload input:focus-visible + .upload-cta { border-color: var(--pri); color: var(--pri); }
.upload-lista { font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; }
.carimbo { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }

/* filtros */
.filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px 14px; padding: 16px 18px; align-items: end; }
.filtros .campo-busca { grid-column: span 2; }
.filtros-acoes { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; flex-wrap: wrap; }
.filtros-acoes .espaco { flex: 1; }
.atalhos { display: flex; gap: 8px; flex-wrap: wrap; }
.atalhos.sem-margem { grid-column: 1 / -1; }
.chip { padding: 5px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chip:hover { text-decoration: none; border-color: #94a3b8; }
.chip.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-alerta { color: var(--bad); border-color: #fca5a5; } .chip-alerta.ativo { background: var(--bad); border-color: var(--bad); }
.abas { display: flex; gap: 4px; }
.aba { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.aba:hover { background: var(--surface-2); text-decoration: none; } .aba.ativa { background: var(--link-soft); color: var(--link); }

/* ---------------------------------------------------------------- avisos */
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid; font-weight: 500; }
.flash span { flex: 1; overflow-wrap: anywhere; } .flash .ic { margin-top: 2px; }
.flash .btn-icone { width: 24px; height: 24px; margin: -2px -4px 0 0; color: inherit; }
.flash-sucesso { background: var(--ok-soft); border-color: #b5eec8; color: #14532d; }
.flash-erro { background: var(--bad-soft); border-color: #fecaca; color: #7f1d1d; }
.flash-info { background: var(--link-soft); border-color: #c7d5f3; color: var(--navy); }
.flash-senha { background: var(--warn-soft); border-color: #f7dc8b; color: #78350f; font-size: 14.5px; }
.aviso-acao { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid #f7dc8b; color: #78350f; }
.aviso-acao a { color: #92400e; font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------------- dropdown / notificações */
.dropdown { position: relative; }
.dropdown-painel { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); overflow: hidden; z-index: 50; }
.sino-cont { position: absolute; top: -4px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--orange-600); color: #fff; font: 700 10px/16px system-ui; font-style: normal; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.notif-topo { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-lista { max-height: 380px; overflow-y: auto; }
.notif-lista a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px 11px 26px; border-bottom: 1px solid var(--line); color: var(--ink-2); position: relative; font-size: 13px; }
.notif-lista a:hover { background: var(--surface-2); text-decoration: none; }
.notif-lista a.nao-lida { color: var(--ink); font-weight: 600; background: #f7faff; }
.notif-lista a.nao-lida::before { content: ""; position: absolute; left: 11px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.notif-lista small { color: var(--muted); font-weight: 400; }
.notif-rodape { display: block; text-align: center; padding: 10px; font-weight: 600; font-size: 13px; background: var(--surface-2); }
.notif-central li { border-bottom: 1px solid var(--line); } .notif-central li:last-child { border: 0; }
.notif-central a { display: flex; align-items: center; gap: 13px; padding: 13px 18px; color: var(--ink-2); }
.notif-central a:hover { background: var(--surface-2); text-decoration: none; }
.notif-central .nao-lida a { background: #f7faff; color: var(--ink); }
.notif-central .nao-lida .notif-txt b { font-weight: 700; } .notif-central .notif-txt b { font-weight: 500; }
.notif-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8f0fe; color: #1d4ed8; flex: none; }
.notif-ic.tipo-finalizada { background: #dcfce7; color: #15803d; } .notif-ic.tipo-cancelada { background: #eef1f6; color: #475569; }
.notif-ic.tipo-resposta_usuario, .notif-ic.tipo-interna { background: #fef3c7; color: #b45309; }
.notif-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .notif-txt small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-central time { font-size: 12.5px; white-space: nowrap; }

/* ---------------------------------------------------------------- modal */
dialog.modal { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; box-shadow: var(--sh-lg); color: var(--ink); overflow: hidden; }
dialog.modal-g { width: min(680px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(8, 32, 79, .55); backdrop-filter: blur(2px); }
dialog.modal[open] { display: flex; animation: surgir .16s ease-out; }
dialog.modal form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
@keyframes surgir { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-topo h2 { font-size: 17px; } .modal-topo p { font-size: 13px; }
.modal-corpo { padding: 18px 20px; overflow-y: auto; }
.modal-pe { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* ---------------------------------------------------------------- detalhe da O.S. */
.os-topo { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 20px; align-items: flex-start; }
.os-topo-info { min-width: 0; flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.os-topo-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.os-numero { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.os-topo h2 { font-size: 20px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.os-topo-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.os-topo-acoes:not(:has(*)) { display: none; }
.os-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.os-principal, .os-lateral { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.texto-longo { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.info-lista > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.info-lista > div:last-child { border: 0; }
.info-lista dt { color: var(--muted); font-size: 13px; flex: none; } .info-lista dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.devolutiva { border-color: #86d9a3; box-shadow: 0 0 0 3px #ecfdf3; }
.devolutiva .card-topo { background: var(--ok-soft); border-color: #b5eec8; border-radius: var(--r) var(--r) 0 0; color: #14532d; }
.devolutiva .card-corpo, .solucao .card-corpo { display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; }
.devolutiva-meta { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.devolutiva-meta dt { color: var(--muted); font-size: 12.5px; } .devolutiva-meta dd { font-weight: 600; }
.solucao { border-color: #9debdc; } .solucao .card-topo { background: #f0fdfa; border-radius: var(--r) var(--r) 0 0; color: #115e59; }
.cancelada-box .card-topo { background: var(--surface-2); border-radius: var(--r) var(--r) 0 0; color: var(--ink-2); }
.bloco-interno { background: var(--warn-soft); border: 1px solid #f7dc8b; border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.bloco-interno > b { color: #92400e; font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.avaliar, .avaliacao-feita { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.avaliar input[type=text] { flex: 1 1 200px; width: auto; }
.estrelas { display: inline-flex; color: #d5dbe5; } .estrelas .on { color: #f59e0b; } .estrelas .on svg { fill: currentColor; }
.estrelas-input { display: inline-flex; flex-direction: row-reverse; }
.estrelas-input input { position: absolute; opacity: 0; width: 1px; }
.estrelas-input label { color: #d5dbe5; cursor: pointer; padding: 2px; }
.estrelas-input label:hover, .estrelas-input label:hover ~ label, .estrelas-input input:checked ~ label { color: #f59e0b; }
.estrelas-input input:checked ~ label svg, .estrelas-input label:hover svg, .estrelas-input label:hover ~ label svg { fill: currentColor; }
.estrelas-input input:focus-visible + label { outline: 2px solid var(--pri); border-radius: 4px; }

.anexos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.anexos li { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 4px 4px 0; background: #fff; min-width: 0; }
.anexo { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 5px 0 5px 10px; color: var(--ink); }
.anexo:hover { text-decoration: none; } .anexo:hover b { color: var(--link); }
.anexo-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--link-soft); color: var(--link); flex: none; }
.anexo-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.anexo-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .anexo-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anexar-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.chat { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: var(--ink-2); font-weight: 700; font-size: 13px; flex: none; }
.msg-balao { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 10px 14px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.msg-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.msg-cab time { color: var(--muted); }
.msg-tipo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 99px; background: #e2e8f0; color: var(--ink-2); }
.msg-atendimento { align-self: flex-end; flex-direction: row-reverse; }
.msg-atendimento .msg-balao { background: #eef4ff; border-color: #c7d9fb; border-radius: 12px 4px 12px 12px; }
.msg-atendimento .msg-avatar { background: var(--navy); color: #fff; } .msg-atendimento .msg-tipo { background: #dbe7fd; color: #1e40af; }
.msg-tipo.pedido { background: #fef3c7; color: #92400e; }
.msg-interna { align-self: stretch; max-width: 100%; }
.msg-interna .msg-balao { flex: 1; background: var(--warn-soft); border: 1px dashed #e5c558; border-radius: 10px; }
.msg-interna .msg-avatar { background: #fde68a; color: #92400e; } .msg-interna .msg-tipo { background: #fde68a; color: #78350f; }
.msg .anexos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 4px; }
.compositor { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.compositor.modo-interna textarea { background: var(--warn-soft); border-color: #e5c558; }
.compositor-pe { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.timeline { position: relative; display: flex; flex-direction: column; }
.tl-dia { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 4px 0 10px; }
.tl-dia:not(:first-child) { padding-top: 14px; }
.tl-item { position: relative; display: grid; grid-template-columns: 28px 46px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; align-items: start; }
.tl-item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child { padding-bottom: 0; } .tl-item:last-child::before { display: none; }
.tl-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8f0fe; color: #1d4ed8; z-index: 1; }
.tl-item time { font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 4px; font-size: 13px; }
.tl-txt { padding-top: 4px; overflow-wrap: anywhere; }
.tl-finalizacao .tl-ic, .tl-solucao .tl-ic, .tl-devolutiva .tl-ic { background: #dcfce7; color: #15803d; }
.tl-cancelamento .tl-ic { background: #fee2e2; color: #b91c1c; }
.tl-status .tl-ic { background: #f1ecfe; color: #5b21b6; }
.tl-interno .tl-ic { background: #fde68a; color: #92400e; } .tl-interno .tl-txt p { color: #78350f; }

.meter { height: 8px; border-radius: 99px; background: #dbe4f6; overflow: hidden; margin: 12px 0 8px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--serie-1); }
.sla-card-proximo .meter { background: #fdeebf; } .sla-card-proximo .meter i { background: #f59e0b; }
.sla-card-vencido .meter { background: #fbd5d5; } .sla-card-vencido .meter i { background: #dc2626; }
.sla-card-pausado .meter i { background: #94a3b8; } .sla-card-pausado .meter { background: #e2e8f0; }
.sla-detalhe { font-weight: 600; } .sla-card .muted { font-size: 12.5px; }
.lista-simples li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.lista-simples li:last-child { border: 0; }
.lista-simples a { display: flex; flex-direction: column; min-width: 0; color: var(--ink); } .lista-simples a span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-perfis { display: flex; flex-direction: column; gap: 14px; } .lista-perfis p { color: var(--ink-2); margin-top: 4px; font-size: 13px; }
.perfil-meta { border-top: 1px solid var(--line); font-size: 12.5px; }

/* confirmação */
.sucesso-os { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 760px; margin: 12px auto 0; width: 100%; }
.sucesso-ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #dcfce7; color: #15803d; margin-bottom: 6px; }
.sucesso-os h2 { font-size: 22px; }
.protocolo-grande { font-size: 34px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--navy); background: var(--link-soft); border: 1px dashed #a9bde8; border-radius: 12px; padding: 6px 22px; cursor: copy; margin-bottom: 8px; }
.resumo-criada { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; width: 100%; margin: 18px 0; padding: 16px; background: var(--surface-2); border-radius: var(--r); text-align: left; }
.resumo-criada dt { font-size: 12px; color: var(--muted); } .resumo-criada dd { font-weight: 600; overflow-wrap: anywhere; }

/* dashboards */
.grade-graficos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grade-graficos .card { grid-column: span 2; } .grade-graficos .span-2 { grid-column: span 2; }
.mini-fila li { border-bottom: 1px solid var(--line); } .mini-fila li:last-child { border: 0; }
.mini-fila a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 18px; color: var(--ink); }
.mini-fila a:hover { background: #f8fafd; text-decoration: none; }
.mf-1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .mf-2 { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-3 { grid-column: 1; font-size: 12.5px; } .mf-4 { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.barra-sla { display: flex; gap: 2px; height: 8px; min-width: 120px; } .barra-sla i { border-radius: 3px; min-width: 4px; }
.barra-sla .ok, .legenda-sla .ok { background: #0ca30c; } .barra-sla .fora, .legenda-sla .fora { background: #d03b3b; }
.legenda-sla { display: flex; gap: 18px; padding: 10px 18px 14px; font-size: 12.5px; color: var(--ink-2); }
.legenda-sla span { display: inline-flex; align-items: center; gap: 6px; } .legenda-sla i { width: 10px; height: 10px; border-radius: 3px; }

/* gráficos */
.grafico { position: relative; min-height: 120px; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico text { font: 11.5px system-ui, sans-serif; fill: var(--muted); }
.grafico .rot-cat { fill: var(--ink-2); font-size: 12.5px; } .grafico .rot-val { fill: var(--ink); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.g-legenda { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.g-legenda span { display: inline-flex; align-items: center; gap: 6px; } .g-legenda i { width: 14px; height: 3px; border-radius: 2px; }
.g-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--navy-900); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.45; box-shadow: var(--sh-lg); white-space: nowrap; transform: translate(-50%, -100%); }
.g-tip b { font-size: 13px; } .g-tip .k { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.g-tip small { color: #aab6cc; display: block; }
.g-dados { margin-top: 10px; font-size: 12.5px; } .g-dados summary { cursor: pointer; color: var(--muted); width: fit-content; }
.g-dados table { margin-top: 8px; border-collapse: collapse; } .g-dados td, .g-dados th { padding: 3px 14px 3px 0; text-align: left; font-variant-numeric: tabular-nums; } .g-dados th { color: var(--muted); font-weight: 600; }
.g-barra { cursor: default; } .g-barra:hover .b, .g-barra:focus .b { fill: var(--navy); } .g-barra:focus { outline: none; }
.g-vazio { display: grid; place-items: center; min-height: 140px; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- login */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 28px 16px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); }
.auth-pagina { width: 100%; display: flex; flex-direction: column; align-items: center; }
.auth-caixa { width: 100%; max-width: 430px; display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: 18px; padding: 34px 34px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-caixa.larga { max-width: 580px; }
.auth-logo { display: block; width: 210px; max-width: 70%; height: auto; margin: 0 auto 4px; }
.auth-sistema { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.auth-caixa h1 { font-size: 22px; letter-spacing: -.02em; margin-top: 4px; } .auth-caixa .form-v { margin-top: 6px; }
.auth-rodape { margin-top: 18px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .55); }
.auth-troca { text-align: center; margin-top: 6px; }
.erro-codigo { font-size: 64px; font-weight: 800; color: var(--line-2); line-height: 1; }
.auth-caixa > .btn { align-self: flex-start; margin-top: 8px; }

.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--pri); color: #fff; place-items: center; box-shadow: 0 8px 22px rgba(224, 104, 15, .45); z-index: 20; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--navy-900); color: #fff; padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; z-index: 99; box-shadow: var(--sh-lg); }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1240px) {
  .os-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .kpis-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .busca-topo { width: 220px; }
}
@media (max-width: 1020px) {
  .os-grid { grid-template-columns: minmax(0, 1fr); }
  .grade-graficos .card { grid-column: span 4; }
  .kpis-4, .kpis-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: min(290px, 84vw); box-shadow: var(--sh-lg); }
  body.menu-aberto .sidebar { transform: none; }
  body.menu-aberto .backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 35; }
  body.menu-aberto { overflow: hidden; }
  .main { margin-left: 0; }
  .so-mobile { display: inline-grid !important; } .btn.so-mobile { display: inline-flex !important; } .so-desktop { display: none !important; }
  .topbar { padding: 8px 14px; gap: 8px; min-height: 58px; }
  .topbar h1 { font-size: 17px; } .topbar .sub { display: none; }
  .busca-topo { display: none; }
  .conteudo { padding: 16px 14px 90px; gap: 14px; }
  .grade-2, .grade-4 { grid-template-columns: minmax(0, 1fr); }
  .form-pagina .grade-2, .modal .grade-2, .auth .grade-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-caixa { padding: 26px 20px 22px; border-radius: 16px; }
}
@media (max-width: 760px) {
  /* tabelas viram cartões empilhados */
  .tabela-cards thead { display: none; }
  .tabela-cards, .tabela-cards tbody, .tabela-cards tr, .tabela-cards td { display: block; width: 100%; }
  .tabela-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .tabela-cards tbody tr:last-child { border-bottom: 0; }
  .tabela-cards td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 4px 0; border: 0; text-align: right; max-width: none; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .tabela-cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; flex: none; text-align: left; }
  .tabela-cards td:first-child { font-size: 15px; padding-bottom: 6px; }
  .tabela-cards td.col-acoes { justify-content: flex-end; padding-top: 8px; } .tabela-cards td.col-acoes::before { display: none; }
  .tabela-cards td.col-assunto { overflow: visible; max-width: none; width: 100%; min-width: 0; }
  .tabela-cards td.col-dupla > *:not(small) { margin-left: auto; }
  .tabela-cards td.col-dupla { flex-wrap: wrap; } .tabela-cards td.col-dupla small { flex-basis: 100%; text-align: right; }
  .tabela-fila tr.linha-prio-urgente { box-shadow: inset 3px 0 0 #dc2626; } .tabela-fila tr.linha-prio-alta { box-shadow: inset 3px 0 0 #ea580c; }
  .tabela-fila tr td:first-child { box-shadow: none !important; }
  .filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .filtros[data-recolhivel]:not(.aberto) .campo:not(:first-of-type) { display: none; }
  .filtros[data-recolhivel] .campo:first-of-type { grid-column: 1 / -1; } .filtros .campo-busca { grid-column: 1 / -1; }
  .grade-3 { grid-template-columns: minmax(0, 1fr); }
  .msg { max-width: 100%; }
  .os-topo { padding: 16px; } .os-topo h2 { font-size: 18px; }
  .os-topo-acoes { width: 100%; } .os-topo-acoes .btn, .os-topo-acoes form { flex: 1 1 auto; } .os-topo-acoes form .btn { width: 100%; }
  .card-corpo { padding: 14px; } .card-topo { padding: 12px 14px; }
  .info-lista > div { padding: 9px 14px; }
  .protocolo-grande { font-size: 26px; }
  .tl-item { grid-template-columns: 28px minmax(0, 1fr); } .tl-item time { grid-column: 2; padding-top: 5px; } .tl-txt { grid-column: 2; padding-top: 0; }
  .modal-pe .btn { flex: 1; }
  .paginacao { flex-direction: column; align-items: stretch; text-align: center; } .paginacao nav { justify-content: center; }
  .mini-fila a { grid-template-columns: minmax(0, 1fr); } .mf-4 { grid-column: 1; grid-row: auto; }
  .atalhos { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -14px; padding-inline: 14px; scrollbar-width: none; } .chip { flex: none; }
  .atalhos.sem-margem { margin: 0; padding-inline: 0; }
  .form-acoes .btn { flex: 1; }
}
@media (max-width: 420px) {
  .kpis-4, .kpis-8, .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; } .kpi b { font-size: 22px; }
  .kpi-ic { width: 34px; height: 34px; }
  .segmento { width: 100%; } .seg { flex: 1 1 auto; } .seg span { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .sidebar, .topbar, .compositor, .os-topo-acoes, .anexar-form, .fab, .flashes { display: none !important; }
  .main { margin: 0; } body { background: #fff; } .card { box-shadow: none; break-inside: avoid; } .os-grid { grid-template-columns: 1fr; }
}
