:root {
  --bg: #f3f4f7; --card: #fff; --ink: #1b2330; --muted: #667085; --line: #e3e6ec;
  --side: #17213a; --side-ink: #c9d1e3; --accent: #f5b301; --accent-ink: #2b2100;
  --green: #12925a; --green-bg: #e6f6ee; --red: #d1362b; --red-bg: #fdecea;
  --blue: #2559d8; --blue-bg: #e8effd; --amber: #b7791f; --amber-bg: #fdf3dc;
  --r: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h3 { font-size: 15px; margin-bottom: 12px; }
.h2 { font-size: 21px; margin-bottom: 4px; }
.muted { color: var(--muted); } .pos { color: var(--green); } .neg { color: var(--red); }
.err { color: var(--red); font-size: 13px; } .okmsg { color: var(--green); font-size: 13px; }
small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

/* estrutura */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; color: #fff; }
.brand small { color: #93a0bd; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; flex: none; }
.logo.big { width: 60px; height: 60px; font-size: 22px; margin: 0 auto 8px; }
#nav a { display: block; padding: 10px 12px; margin: 2px 0; border-radius: 9px; color: var(--side-ink); font-weight: 500; }
#nav a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
#nav a.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255, 255, 255, .1); }
.side-foot b { display: block; color: #fff; font-size: 19px; margin: 2px 0 8px; } .side-foot b.neg { color: #ff9b91; }
.side-foot small { color: #93a0bd; } .side-foot .cnpj { font-size: 11px; }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: rgba(243, 244, 247, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 21px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; gap: 8px; }
.view { padding: 20px 24px 60px; max-width: 1240px; }
.only-mobile { display: none !important; } .scrim { display: none; }

/* botões */
.btn { font: inherit; font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: #f7f8fa; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--side); border-color: var(--side); color: #fff; } .btn.primary:hover { background: #22305a; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; } .btn.green:hover { background: #0e7d4c; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; } .btn.red:hover { background: #b62c22; }
.btn.danger { color: var(--red); border-color: #f1c4bf; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.lnk { font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 6px; color: var(--blue); cursor: pointer; } .lnk:hover { text-decoration: underline; } .lnk.danger { color: var(--red); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* cartões */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card.welcome { text-align: center; padding: 40px 24px; max-width: 640px; margin: 30px auto; }
.card.welcome h2 { font-size: 24px; margin-bottom: 10px; } .card.welcome .row { justify-content: center; margin: 18px 0 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; align-items: flex-start; }
.toolbar { margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; } .cols > .card { margin-bottom: 16px; }
.pad { padding: 0 16px 12px; }
.grouphead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .grouphead h3 { margin: 0; } .grouphead.late { background: var(--red-bg); }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; } .kpis.small { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); border-left: 4px solid var(--line); }
.kpi span { color: var(--muted); font-size: 13px; } .kpi b { display: block; font-size: 22px; margin: 3px 0 2px; letter-spacing: -.3px; }
.kpi.good { border-left-color: var(--green); } .kpi.bad { border-left-color: var(--red); } .kpi.main { border-left-color: var(--accent); }
.kpi.bad b { color: var(--red); } .kpi.good b { color: var(--green); }
.alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.alert.danger { background: var(--red-bg); border-color: #f4c3be; color: #7a1b14; } .alert.warn { background: var(--amber-bg); border-color: #f0d9a0; color: #6b4708; } .alert.info { background: var(--blue-bg); border-color: #c5d5f7; color: #163b8f; }
.monthnav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .monthnav b { min-width: 150px; text-align: center; font-size: 16px; }

/* tabelas */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.t td { padding: 10px 14px; border-bottom: 1px solid #eef0f4; vertical-align: top; }
.t tr:last-child td { border-bottom: 0; } .t tbody tr:hover { background: #fafbfd; }
.t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t td small { margin-top: 1px; } .t .acts { white-space: nowrap; text-align: right; }
.t td.empty { text-align: center; color: var(--muted); padding: 26px; }
.t tr.click { cursor: pointer; } .t tr.strong td { font-weight: 700; background: #f7f8fa; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.pago { background: var(--green-bg); color: var(--green); } .chip.atrasado { background: var(--red-bg); color: var(--red); }
.chip.hoje { background: var(--amber-bg); color: var(--amber); } .chip.previsto { background: var(--blue-bg); color: var(--blue); }
.chip.o-andamento { background: var(--blue-bg); color: var(--blue); } .chip.o-concluida { background: var(--green-bg); color: var(--green); } .chip.o-orcamento { background: #eef0f4; color: var(--muted); } .chip.o-pausada { background: var(--amber-bg); color: var(--amber); }
.bar { height: 8px; border-radius: 6px; background: #e9ecf1; overflow: hidden; min-width: 90px; } .bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.bar i.out { background: #7a8aa8; } .bar i.warn { background: #e0a100; } .bar i.over { background: var(--red); }
.hbar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; } .hbar b { font-variant-numeric: tabular-nums; font-size: 13px; }

/* gráficos */
.chart-wrap { width: 100%; } svg.chart { width: 100%; height: auto; display: block; }
svg .grid { stroke: #e9ecf1; } svg .zero { stroke: #98a2b3; } svg .axis { fill: var(--muted); font-size: 11px; }
svg rect.c-in { fill: var(--green); } svg rect.c-out { fill: var(--red); opacity: .85; }
svg polyline.c-line { stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; } svg circle.c-line-dot { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; } .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.c-in { background: var(--green); } .sw.c-out { background: var(--red); } .sw.c-line { background: var(--blue); }

/* filtros e abas */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; }
.filters .fbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; } .filters .chk { flex-direction: row; align-items: center; grid-column: span 2; } .chk input { width: auto; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { font: inherit; font-weight: 600; font-size: 14px; background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; } .tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.catgroup { padding: 8px 0; border-top: 1px solid #eef0f4; } .catgroup:first-of-type { border-top: 0; } .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { background: #eef0f4; border-radius: 8px; padding: 3px 4px 3px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }

/* formulários */
.grid { display: grid; gap: 10px 14px; margin-bottom: 10px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .span2 { grid-column: span 2; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .fld > span { font-size: 13px; font-weight: 600; color: #3b4658; }
input, select, textarea { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid #cfd5df; border-radius: 9px; background: #fff; color: var(--ink); min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.sect { margin: 16px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.retgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 14px; }
.retrow { display: grid; grid-template-columns: 96px 66px 14px 1fr; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; } .retrow small { display: inline; }
.sumbox { background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; display: grid; gap: 4px; }
.sumbox div { display: flex; justify-content: space-between; font-size: 14px; } .sumbox .total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 17px; font-weight: 700; }
dialog { border: 0; border-radius: 16px; padding: 0; width: min(680px, 94vw); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); color: var(--ink); }
dialog.wide { width: min(940px, 96vw); } dialog::backdrop { background: rgba(15, 23, 42, .55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; } .modal-head h2 { font-size: 18px; }
#modalBody { padding: 16px 20px 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 16px; position: sticky; bottom: 0; background: #fff; padding: 12px 0 2px; border-top: 1px solid var(--line); } .modal-foot .err { margin-right: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #1b2330; color: #fff; padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 92vw; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.ok { background: #0e7d4c; } .toast.err { background: #b62c22; }
.lock { position: fixed; inset: 0; background: var(--side); display: grid; place-items: center; z-index: 100; padding: 20px; }
.lock-box { background: #fff; border-radius: 16px; padding: 28px; width: min(340px, 100%); text-align: center; display: grid; gap: 10px; } .lock-box p { margin: 0; color: var(--muted); }
#lockContent, #lockContent form { display: grid; gap: 10px; }

/* celular e tablet */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.menu-open .side { transform: none; } body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 20; }
  .only-mobile { display: inline-flex !important; } .top { padding: 10px 14px; } .top h1 { font-size: 18px; } .view { padding: 14px 14px 60px; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .span2 { grid-column: span 2; }
  .btn.green, .btn.red { padding: 8px 11px; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .filters .chk { grid-column: auto; }
  .hbar { grid-template-columns: 1fr auto; } .hbar .bar { grid-column: 1 / -1; order: 3; }
  .top { gap: 6px; } .top-actions { gap: 6px; flex: none; } .top-actions .btn { font-size: 13px; padding: 7px 9px; } .top .only-mobile { padding: 7px 8px; } .kpi b { font-size: 19px; }
}
@media print {
  body { background: #fff; } .side, .top, .filters, .tabs, .toolbar, .scrim, .toast, .hint, .acts { display: none !important; }
  .app { display: block; } .view { padding: 0; max-width: none; } .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* ---------- agenda ---------- */
.grow { flex: 1; } a.tab { text-decoration: none; display: inline-block; }
.cal { overflow: hidden; }
.calhead { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fafbfc; border-bottom: 1px solid var(--line); }
.calhead span { padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; } .calhead span.we { color: #a3251b; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { font: inherit; text-align: left; background: #fff; border: 0; border-right: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; min-height: 108px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--ink); }
.day:hover { background: #f4f7ff; } .day.out { background: #f8f9fb; color: #a3aab8; } .day.hol { background: #fdecea; } .day.fac { background: #fdf6e3; }
.dn { font-weight: 700; font-size: 13px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; } .day.today .dn { background: var(--side); color: #fff; }
.hl { font-size: 10.5px; color: #a3251b; font-weight: 600; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .day.fac .hl { color: #8a5a00; }
.chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch { font-size: 10.5px; padding: 1px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ch.ev { background: var(--blue-bg); color: var(--blue); } .ch.feito { text-decoration: line-through; opacity: .6; } .ch.ob { background: #eee7fb; color: #5b3aa8; } .ch.pg { background: var(--red-bg); color: var(--red); } .ch.rc { background: var(--green-bg); color: var(--green); } .ch.late { font-weight: 700; outline: 1px solid currentColor; }
.more { font-size: 10px; color: var(--muted); }
.dots { display: none; gap: 3px; flex-wrap: wrap; }
.dt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.dt.hol, .dt.pg { background: var(--red); } .dt.fac { background: #e0a100; } .dt.ev { background: var(--blue); } .dt.ob { background: #7a4fd1; } .dt.rc { background: var(--green); }
.cal-leg { margin: 10px 0 16px; }
.li { padding: 7px 0; border-top: 1px solid #eef0f4; font-size: 14px; } .li:first-of-type { border-top: 0; }
.dayitem { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #eef0f4; flex-wrap: wrap; } .dayitem .acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: right; }
.qtdin { width: 76px; } .chk2 { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; } .chk2 input { width: auto; }

/* ---------- orçamentos ---------- */
.orc-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chip.s-rascunho { background: #eef0f4; color: var(--muted); } .chip.s-enviado { background: var(--blue-bg); color: var(--blue); } .chip.s-aprovado { background: var(--green-bg); color: var(--green); } .chip.s-recusado { background: var(--red-bg); color: var(--red); }
.irow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fcfcfd; }
.ihead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .inum { background: #c8942f; color: #fff; border-radius: 6px; padding: 2px 8px; }
.igrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 10px; } .igrid .idesc { grid-column: span 7; } .igrid .idet { grid-column: span 5; }
.igrid > .fld:not(.idesc):not(.idet), .igrid .itot { grid-column: span 3; }
.itot { display: flex; flex-direction: column; justify-content: flex-end; } .itot span { font-size: 13px; font-weight: 600; color: #3b4658; } .itot b { font-size: 16px; padding: 8px 0; }
.calcres { margin-top: 12px; } .coefgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 16px; }
.tabedit td { padding: 6px 8px; } .tabedit input, .tabedit select { padding: 6px 8px; min-width: 90px; }
.logoprev { background: #0c0c0c; border-radius: 10px; padding: 8px; width: 170px; height: 100px; display: grid; place-items: center; } .logoprev img { max-width: 100%; max-height: 100%; }

/* ---------- documento do orçamento (preto e dourado) ---------- */
#dpwrap { --s: 1; }
.dpbox { width: calc(794px * var(--s)); height: calc(1123px * var(--s)); margin: 0 auto 16px; box-shadow: 0 2px 14px rgba(0, 0, 0, .25); overflow: hidden; background: #fff; }
.dpbox .dp { transform: scale(var(--s)); transform-origin: 0 0; }
#dpOff { position: fixed; left: -10000px; top: 0; width: 794px; }
.dp { width: 794px; height: 1123px; position: relative; background: #fff; color: #1a1a1a; font: 14px/1.35 Arial, Helvetica, sans-serif; overflow: hidden; }
.dp *, .dp *::before, .dp *::after { box-sizing: border-box; }
.dp-head { height: 170px; background: #0c0c0c; position: relative; border-bottom: 4px solid #c8942f; overflow: hidden; }
.dp-logo { position: absolute; left: 34px; top: 12px; width: 250px; height: 142px; display: flex; align-items: center; } .dp-logo img { max-width: 100%; max-height: 100%; }
.dp-chev { position: absolute; left: 226px; top: 11px; width: 128px; height: 128px; border-top: 4px solid #c8942f; border-right: 4px solid #c8942f; transform: rotate(45deg); }
.dp-title { position: absolute; left: 350px; right: 28px; top: 24px; text-align: center; }
.dp-t1 { color: #c8942f; font-weight: 800; font-size: 40px; letter-spacing: 1px; line-height: 1.05; } .dp-t2 { color: #fff; font-size: 20px; margin-top: 8px; letter-spacing: 2px; }
.dp-line { height: 2px; background: #c8942f; margin: 14px 10px 12px; } .dp-num { color: #fff; font-size: 20px; letter-spacing: 2px; } .dp-num span { color: #c8942f; font-weight: 800; margin-right: 10px; } .dp-num em { font-size: 12px; font-style: normal; color: #bbb; letter-spacing: 0; }
.dp-head.mini { height: 84px; } .dp-head.mini .dp-logo { width: 130px; height: 70px; top: 6px; left: 30px; } .dp-head.mini .dp-title { top: 12px; text-align: right; left: 200px; } .dp-head.mini .dp-t1 { font-size: 26px; } .dp-head.mini .dp-num { font-size: 15px; margin-top: 4px; }
.dp-body { padding: 18px 40px 0; }
.dp-two { display: flex; gap: 0; margin-top: 16px; } .dp-two > div { flex: 1; padding: 0 16px; } .dp-two > div:first-child { padding-left: 0; } .dp-two > div + div { border-left: 1px solid #c8942f; }
.dp-dados { margin-top: 0; } .dp-dados p { margin: 5px 0 0 44px; font-size: 13px; } .dp-dados p span { color: #444; display: inline-block; min-width: 76px; } .dp-dados p b { color: #111; }
.dp h4 { color: #b8842a; font-size: 15px; margin: 0; display: flex; align-items: center; gap: 10px; letter-spacing: .2px; }
.dp .ic { width: 34px; height: 34px; border-radius: 50%; background: #c8942f; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dp-intro { margin: 14px 0 0; padding: 10px 0; border-top: 1px solid #c8942f; font-size: 12.5px; color: #222; }
.dp-sec { margin-top: 10px; } .dp-sec i { flex: 1; height: 1px; background: #c8942f; margin-left: 12px; }
.dp-tab { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; table-layout: fixed; }
.dp-tab th { background: #0c0c0c; color: #fff; font-size: 10.5px; padding: 9px 4px; text-align: center; border: 1px solid #0c0c0c; }
.dp-tab td { border: 1px solid #cfcfcf; padding: 8px 8px; vertical-align: middle; } .dp-tab .c-n { width: 52px; text-align: center; } .dp-tab td.c-n { background: #d4a537; } .dp-tab td.c-n b { font-size: 20px; color: #111; }
.dp-tab .c-u { width: 76px; text-align: center; } .dp-tab .c-q { width: 84px; text-align: center; } .dp-tab .c-v { width: 104px; text-align: center; } .dp-tab .c-t { width: 118px; text-align: center; }
.dp-tab .c-d b { display: block; text-transform: uppercase; font-size: 12.5px; line-height: 1.2; } .dp-tab .c-d small { display: block; color: #444; font-size: 10.5px; margin-top: 3px; max-height: 42px; overflow: hidden; }
.dp-tab td.c-v { font-weight: 700; } .dp-tab td.c-t b { font-size: 15px; display: block; } .dp-tab td.c-t small { display: block; font-size: 8px; color: #444; margin-top: 2px; }
.dp-total { margin-top: 16px; background: #0c0c0c; border: 2px solid #c8942f; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; color: #fff; }
.dp-total .l b { display: block; font-size: 15px; letter-spacing: .3px; } .dp-total .l small { color: #ddd; font-size: 10.5px; margin-top: 3px; }
.dp-total .r { text-align: right; } .dp-total .r small { color: #fff; font-size: 10px; } .dp-total .r b { display: block; color: #e0a83a; font-size: 34px; line-height: 1.05; } .dp-total .r b span { font-size: 20px; }
.dp-two ul { margin: 8px 0 0 44px; padding: 0; font-size: 11px; color: #222; } .dp-two ul li { margin: 3px 0; }
.dp-sign { display: flex; margin-top: 22px; } .dp-sign > div { flex: 1; text-align: center; padding: 0 22px; } .dp-sign > div + div { border-left: 1px solid #c8942f; }
.dp-sign span { color: #b8842a; font-size: 12px; font-weight: 700; } .dp-sign i { display: block; height: 1px; background: #111; margin: 34px 10px 6px; } .dp-sign b { display: block; font-size: 13px; } .dp-sign small { color: #222; font-size: 12px; }
.dp-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 78px; background: #0c0c0c; border-top: 3px solid #c8942f; display: flex; align-items: center; }
.dp-fc { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #fff; } .dp-fc + .dp-fc { border-left: 1px solid #3a3a3a; }
.dp-fc .ic { width: 36px; height: 36px; background: none; border-radius: 0; } .dp-fc small { display: block; color: #e0a83a; font-size: 9.5px; font-weight: 700; letter-spacing: .3px; } .dp-fc b { display: block; font-size: 15px; } .dp-fc .fx { display: block; font-size: 9.5px; color: #cfcfcf; line-height: 1.25; }
@media (max-width: 760px) {
  .day { min-height: 62px; padding: 4px; } .hl, .chips { display: none; } .dots { display: flex; } .day.hol .dn { color: #a3251b; }
  .igrid .idesc, .igrid .idet { grid-column: span 12; } .igrid > .fld:not(.idesc):not(.idet), .igrid .itot { grid-column: span 6; }
}
@media print { .orc-bar, .alert { display: none !important; } .dpbox { box-shadow: none; margin: 0; page-break-after: always; } }

/* ---------- tour guiado ---------- */
#nav a.navhelp { margin-top: 10px; color: #f5c451; border: 1px dashed rgba(245, 196, 81, .5); text-align: center; font-size: 14px; }
#tourBack { position: fixed; inset: 0; z-index: 200; background: transparent; } #tourBack.dim { background: rgba(15, 23, 42, .66); }
#tourSpot { position: fixed; z-index: 201; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .66); outline: 3px solid var(--accent); pointer-events: none; transition: top .2s, left .2s, width .2s, height .2s; }
#tourCard { position: fixed; z-index: 202; width: min(380px, calc(100vw - 24px)); background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); left: 50%; top: 50%; }
.tour-step { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
#tourCard h3 { margin: 4px 0 6px; font-size: 17px; } #tourCard p { margin: 0 0 10px; font-size: 14px; }
.tour-tip { background: var(--amber-bg); color: #6b4708; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.tour-dots { display: flex; gap: 5px; margin: 12px 0 8px; } .tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d5d9e2; } .tour-dots i.on { background: var(--accent); width: 18px; border-radius: 6px; }
.tour-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { #tourCard { left: 12px !important; right: 12px !important; top: auto !important; bottom: 12px !important; width: auto; transform: none !important; } }
@media (prefers-reduced-motion: reduce) { #tourSpot { transition: none; } }
@media print { #tourBack, #tourSpot, #tourCard { display: none !important; } }

/* ---------- responsivo: tablet, celular, telas grandes ---------- */
.mico { display: none; font-size: 20px; line-height: 1; }
@media (min-width: 1500px) { .view { max-width: 1500px; margin: 0 auto; } .kpis { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
@media (min-width: 901px) and (max-width: 1100px) { .app { grid-template-columns: 200px minmax(0, 1fr); } .view { padding: 16px 16px 50px; } .top { padding: 10px 16px; } }
@media (max-width: 1000px) {
  .t.cards thead { display: none; } .t.cards, .t.cards tbody { display: block; width: 100%; }
  .t.cards tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .t.cards tr:last-child { border-bottom: 0; }
  .t.cards td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .t.cards td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; margin-bottom: 1px; }
  .t.cards td.full, .t.cards td.full2 { grid-column: 1 / -1; } .t.cards td.full { order: -2; font-size: 15px; } .t.cards td.full2 { order: -1; }
  .t.cards td.num { text-align: left; white-space: normal; }
  .t.cards td.acts { grid-column: 1 / -1; order: 9; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; white-space: normal; text-align: left; padding-top: 2px; }
  .t.cards td.empty { grid-column: 1 / -1; }
  .t.cards tbody tr:hover, .t.cards tbody tr.click:hover { background: #fafbfd; }
}
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
  .top h1 { font-size: 17px; } .modal-head h2 { font-size: 17px; }
  .filters { grid-template-columns: 1fr 1fr; } .filters > .fld:first-child { grid-column: 1 / -1; } .filters .fbtns { grid-column: 1 / -1; }
  .kpis, .kpis.small { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 12px; } .kpi b { font-size: 18px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
  .cols { grid-template-columns: 1fr; } .card { padding: 14px; }
  .modal-foot { flex-wrap: wrap; } .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
  dialog, dialog.wide { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); } #modalBody { padding: 12px 14px 16px; }
}
@media (max-width: 560px) {
  .mico { display: inline; } .mtxt { display: none; } .top .only-mobile { padding: 6px 10px; font-size: 20px; }
  .top-actions .btn { padding: 8px 10px; }
  .igrid .idesc, .igrid .idet { grid-column: span 12; }
}
@media (pointer: coarse) {
  .lnk { padding: 9px 10px; } .btn.sm { padding: 9px 13px; } .btn { min-height: 40px; } #nav a { padding: 12px; }
  input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; } .tab { padding: 12px 14px; }
}
@media (max-width: 380px) { .kpis, .kpis.small { grid-template-columns: 1fr; } }
