/* Central GS — identidade preta, azul e branca. Moderno e sóbrio. */
:root {
  --ink: #0a0d12; --ink-2: #131821; --ink-3: #1d2430;
  --blue: #1a6dff; --blue-d: #0d52d6; --blue-l: #e8f0ff; --blue-glow: rgba(26, 109, 255, .35);
  --bg: #f2f4f7; --card: #fff; --line: #e1e6ee; --line-2: #eef1f5;
  --text: #11161f; --muted: #5b6475; --ok: #13804a; --ok-l: #e5f5ec; --warn: #a75a00; --warn-l: #fff3e0; --danger: #c32424; --danger-l: #fdecec;
  --r: 10px; --sh: 0 1px 2px rgba(10, 13, 18, .06), 0 2px 8px rgba(10, 13, 18, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--font); color: var(--text); background: var(--bg); }
body.no-scroll { overflow: hidden; }
a { color: var(--blue-d); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; margin: 0 0 .6rem; font-weight: 750; }
h3 { font-size: .95rem; margin: 0 0 .5rem; font-weight: 700; }
.muted { color: var(--muted); } .small, small { font-size: .82rem; }
.pos { color: var(--ok); } .neg { color: var(--danger); }
.r { text-align: right; } .nowrap { white-space: nowrap; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff; min-height: 42px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); }
label { display: block; font-size: .85rem; font-weight: 600; color: #2b3342; }
label > input, label > select, label > textarea, label > .picker, label > .inline { margin-top: .3rem; font-weight: 400; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
label.inline, .inline { display: inline-flex; align-items: center; gap: .4rem; }
.inline input { width: 70px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; margin: 0; } legend { font-weight: 700; font-size: .85rem; padding: 0 .3rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .55rem 1rem; min-height: 42px; border-radius: 8px; border: 1px solid #cfd6e0; background: #fff; cursor: pointer; font-weight: 600; white-space: nowrap; text-decoration: none !important; color: var(--text); }
.btn:hover { border-color: #9aa6b8; } .btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; } .btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-ghost { color: var(--danger); border-color: #f0c4c4; }
.btn-wa { background: #fff; color: #128c4a; border-color: #b9e3cb; } .btn-wa:hover { background: #effaf3; }
.btn-ghost { background: transparent; color: #cfd6e0; border-color: #2d3644; } .btn-ghost-dark { background: transparent; }
.btn-sm { padding: .35rem .7rem; min-height: 34px; font-size: .85rem; } .btn-lg { min-height: 50px; font-size: 1rem; padding: .7rem 1.3rem; }
.btn.loading { position: relative; color: transparent !important; } .btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: #9aa6b8 transparent #9aa6b8 transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--muted); } .icon-btn:hover { background: var(--line-2); color: var(--text); }
.link { background: none; border: 0; padding: 0; color: var(--blue-d); cursor: pointer; font-weight: 600; } .link:hover { text-decoration: underline; }

/* Layout */
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; background: var(--ink); color: #9aa6b8; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--ink); color: #c9d1dd; display: flex; flex-direction: column; z-index: 40; border-right: 1px solid #000; }
.brand { display: block; padding: 14px 18px 0; } .brand img { width: 100%; display: block; }
.slogan { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #7f8ba0; text-align: center; margin: -4px 0 10px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 8px; color: #c9d1dd; font-weight: 550; text-decoration: none; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(26, 109, 255, .22), rgba(26, 109, 255, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.nav .ic { width: 20px; text-align: center; color: #6f9dff; }
.nav-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #66728a; padding: .9rem .75rem .3rem; }
.user { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 12px 14px; border-top: 1px solid var(--ink-3); }
.user strong { display: block; color: #fff; } .user small { color: #7f8ba0; }
.content { margin-left: 248px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; padding: .55rem 1.4rem; background: rgba(242, 244, 247, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-actions { margin-left: auto; display: flex; gap: .5rem; }
.top-logo { height: 30px; }
.page { padding: 1.3rem 1.4rem 5rem; max-width: 1280px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-head p { margin: .2rem 0 0; }
.actions, .row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-end { display: flex; gap: .5rem; align-items: flex-end; } .grow { flex: 1; }
.back { display: inline-block; margin-bottom: .5rem; font-size: .88rem; color: var(--muted); }
.section { margin-top: 1.6rem; } .section-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; } .section-head h2 { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: var(--sh); }
.stack > * + * { margin-top: .8rem; } .stack { display: block; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.grid-2.gap { gap: 1rem; }
.narrow { max-width: 760px; }
.note { background: #fffbea; border: 1px solid #f3e3a1; border-radius: 8px; padding: .6rem .8rem; white-space: pre-wrap; margin: .6rem 0; }
.aviso { background: var(--warn-l); border: 1px solid #f3c98b; color: #6b3a00; border-radius: 8px; padding: .6rem .8rem; margin: .5rem 0; }
.aviso-conflito { background: var(--danger-l); border-color: #f1b3b3; color: #7a1414; } .aviso-conflito ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.aviso-leve { background: #f3f6fb; border-color: var(--line); color: #3a4456; }
.empty { padding: 1.2rem; text-align: center; color: var(--muted); border: 1px dashed #cfd6e0; border-radius: var(--r); background: rgba(255, 255, 255, .6); } .empty p { margin: 0 0 .5rem; } .empty p:last-child { margin: 0; }
.list { list-style: none; padding: 0; margin: 0; } .list li { padding: .5rem 0; border-bottom: 1px solid var(--line-2); } .list li:last-child { border: 0; }
.list.pags li { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.demo-bar { background: var(--blue); color: #fff; text-align: center; font-size: .85rem; padding: .35rem .8rem; position: relative; z-index: 50; } .demo-bar .link { color: #fff; text-decoration: underline; }
body:has(.demo-bar) .sidebar { top: 30px; }

/* Chips de status: cor + texto */
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .14rem .5rem; border-radius: 999px; background: #eef1f5; color: #3a4456; white-space: nowrap; border: 1px solid transparent; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip-ag-agendado { background: #eef1f6; color: #45516a; } .chip-ag-confirmado { background: var(--blue-l); color: var(--blue-d); }
.chip-ag-cancelado { background: #f1f1f1; color: #777; text-decoration: line-through; } .chip-ag-nao_compareceu { background: var(--danger-l); color: var(--danger); } .chip-ag-concluido { background: var(--ok-l); color: var(--ok); }
.chip-os-aguardando_entrada { background: #eef1f6; color: #45516a; } .chip-os-recebido { background: #ece9ff; color: #4b3bbf; } .chip-os-em_execucao { background: var(--warn-l); color: var(--warn); }
.chip-os-pronto { background: var(--ok-l); color: var(--ok); } .chip-os-entregue { background: #e6ebf3; color: #26324a; } .chip-os-cancelado { background: #f1f1f1; color: #777; }
.chip-ok { background: var(--ok-l); color: var(--ok); } .chip-warn { background: var(--warn-l); color: var(--warn); } .chip-danger { background: var(--danger-l); color: var(--danger); } .chip-info { background: var(--blue-l); color: var(--blue-d); } .chip-muted { background: #f1f1f1; color: #777; }
.plate { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: .8rem; letter-spacing: .06em; background: #fff; border: 1.5px solid #20283a; border-top: 4px solid #1a3e9b; border-radius: 4px; padding: 0 .35rem; color: #111; }
.plate-lg { font-size: 1.1rem; vertical-align: middle; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin: .4rem 0 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; display: flex; flex-direction: column; gap: .15rem; box-shadow: var(--sh); color: inherit; text-decoration: none !important; }
.kpi span { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; } .kpi strong { font-size: 1.35rem; } .kpi small { color: var(--muted); }
a.kpi:hover { border-color: var(--blue); }
.kpi-hl { background: var(--ink); color: #fff; border-color: var(--ink); } .kpi-hl span, .kpi-hl small { color: #9fb0cc; }
.kpis-sm .kpi strong { font-size: 1.05rem; }

/* Tabelas */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; box-shadow: var(--sh); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .65rem .8rem; background: #f8f9fb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; } .table tfoot td { font-weight: 700; background: #f8f9fb; border-top: 1px solid var(--line); padding: .65rem .8rem; }
.table th.r, .table td.r { text-align: right; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #f6f9ff; }
.table tr.hl td { background: #fffbe6; } .table tr.pendente td { color: var(--muted); background: #fcfcfd; } .table tr.inativo td { opacity: .6; }
.table-tight td, .table-tight th { padding: .5rem .6rem; }

/* Tabs / toolbar */
.toolbar { display: flex; gap: .6rem; margin-bottom: .8rem; align-items: center; } .toolbar.wrap { flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 360px; } .toolbar select { width: auto; } .toolbar input[type=date], .toolbar input[type=month] { width: auto; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: none; padding: .6rem .8rem; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tab.active { color: var(--text); border-bottom-color: var(--blue); }
.seg { display: inline-flex; border: 1px solid #cfd6e0; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: .45rem .8rem; cursor: pointer; font-weight: 600; min-height: 38px; } .seg button + button { border-left: 1px solid #e3e7ee; } .seg button.on { background: var(--ink); color: #fff; }

/* Painel */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.shortcut, .quick { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: .9rem 1rem; cursor: pointer; box-shadow: var(--sh); display: flex; flex-direction: column; gap: .15rem; }
.shortcut b, .quick b { font-size: .98rem; } .shortcut small, .quick small { color: var(--muted); }
.shortcut:first-child { background: var(--ink); color: #fff; border-color: var(--ink); } .shortcut:first-child small { color: #9fb0cc; }
.shortcut:hover, .quick:hover { border-color: var(--blue); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.board .col { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; box-shadow: var(--sh); border-top: 3px solid #45516a; }
.board .col:nth-child(2) { border-top-color: var(--warn); } .board .col-ok { border-top-color: var(--ok); }
.count { display: inline-block; min-width: 22px; text-align: center; background: var(--line-2); border-radius: 999px; font-size: .78rem; padding: 0 .35rem; margin-left: .3rem; }
.rows { list-style: none; margin: 0; padding: 0; } .rows li + li { border-top: 1px solid var(--line-2); }
.row-btn { display: flex; align-items: center; gap: .7rem; width: 100%; background: none; border: 0; padding: .55rem .2rem; text-align: left; cursor: pointer; color: inherit; text-decoration: none !important; border-radius: 6px; }
.row-btn:hover { background: #f6f9ff; } .row-btn > span:nth-child(2) { flex: 1; min-width: 0; } .row-btn small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-btn .t { font-weight: 800; font-size: .85rem; min-width: 46px; color: var(--blue-d); }

/* Agenda */
.agenda-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.nav-date { display: flex; align-items: center; gap: .3rem; } .nav-date input { width: auto; }
.agenda-title { font-size: 1.05rem; } .agenda-title::first-letter { text-transform: uppercase; }
.day-grid { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.dg-head { display: grid; grid-template-columns: 56px repeat(var(--cols), 1fr); background: #f8f9fb; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.dg-head > div { padding: .55rem .6rem; border-left: 1px solid var(--line-2); }
.dg-body { display: grid; grid-template-columns: 56px repeat(var(--cols), 1fr); position: relative; }
.dg-hours div { font-size: .72rem; color: var(--muted); text-align: right; padding: 2px 6px 0 0; border-top: 1px solid var(--line-2); }
.dg-col { position: relative; border-left: 1px solid var(--line-2); }
.dg-slot { border-top: 1px solid var(--line-2); cursor: pointer; } .dg-slot:hover { background: #f6f9ff; }
.dg-ev { position: absolute; left: 3px; right: 3px; z-index: 2; } .dg-ev .ag-card { height: 100%; overflow: hidden; }
.now-line { position: absolute; left: 56px; right: 0; border-top: 2px solid var(--danger); z-index: 3; pointer-events: none; }
.ag-card { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; text-align: left; border: 1px solid #c9d6f2; border-left: 4px solid var(--blue); background: #f4f8ff; border-radius: 7px; padding: .35rem .5rem; cursor: pointer; font-size: .82rem; color: var(--text); }
.ag-card small { color: var(--muted); font-size: .75rem; } .ag-card b { font-size: .8rem; }
.ag-card .ag-serv { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-chips { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .15rem; }
.ag-agendado { border-left-color: #7a869c; background: #f6f7fa; border-color: #dde2ea; }
.ag-confirmado { border-left-color: var(--blue); }
.ag-card.os-em_execucao, .ag-card.os-recebido { border-left-color: var(--warn); background: #fffaf1; border-color: #f2dcb6; }
.ag-card.os-pronto { border-left-color: var(--ok); background: #f2fbf6; border-color: #bfe5cf; }
.ag-concluido, .ag-card.os-entregue { border-left-color: #26324a; background: #f2f4f8; border-color: #d8dee8; opacity: .85; }
.ag-nao_compareceu { border-left-color: var(--danger); background: #fff6f6; border-color: #f1c6c6; }
.ag-cancelado { opacity: .55; }
.ag-bloqueio { background: repeating-linear-gradient(135deg, #f2f3f6, #f2f3f6 6px, #e7e9ee 6px, #e7e9ee 12px); border-left-color: #59647a; border-color: #d9dde5; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.wk-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .5rem; min-height: 180px; display: flex; flex-direction: column; gap: .4rem; position: relative; }
.wk-day.today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-glow); }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; border: 0; background: none; cursor: pointer; padding: 0; font-weight: 700; } .wk-head span { color: var(--muted); font-size: .8rem; text-transform: uppercase; } .wk-head b { font-size: 1.2rem; }
.wk-list { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.wk-add { border: 1px dashed #cfd6e0; background: none; border-radius: 6px; cursor: pointer; color: var(--muted); min-height: 30px; }
.day-list { display: flex; flex-direction: column; gap: .5rem; } .day-list .ag-card { padding: .7rem .8rem; font-size: .92rem; }
.mobile-only { display: none; }

/* Formulários do agendamento / itens */
.picker { position: relative; }
.pk-res { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(10, 13, 18, .12); max-height: 280px; overflow-y: auto; }
.pk-res:empty { display: none; }
.pk-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .55rem .7rem; cursor: pointer; } .pk-item:hover { background: var(--blue-l); } .pk-item small { display: block; color: var(--muted); }
.pk-none { padding: .6rem .7rem; color: var(--muted); font-size: .85rem; }
.picked { display: flex; justify-content: space-between; align-items: center; background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; margin-bottom: .6rem; }
.item-row { display: grid; grid-template-columns: 1fr 70px 110px 80px 36px; gap: .4rem; align-items: end; padding: .4rem 0; border-bottom: 1px solid var(--line-2); }
.item-row label.mini { font-size: .7rem; color: var(--muted); } .item-row input { min-height: 38px; padding: .45rem .5rem; }
.total-line { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0 .2rem; font-size: 1rem; } .total-line strong { font-size: 1.2rem; }
#fim-box.disabled { opacity: .55; }
.status-line { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
details summary { cursor: pointer; font-weight: 600; color: var(--blue-d); }
.calc { align-self: end; padding: .7rem 0; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(8, 11, 16, .55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 580px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 14px 14px 0 0; z-index: 6; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 1rem 1.1rem 1.1rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .6rem; align-items: center; } .form-actions.wrap { flex-wrap: wrap; }
.left-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-right: auto; }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; z-index: 200; opacity: 0; transition: .25s; max-width: min(92vw, 520px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-left: 4px solid var(--blue); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast-erro { border-left-color: var(--danger); } .toast-info { border-left-color: #f0b44c; }

/* OS */
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: s; gap: .3rem; flex-wrap: wrap; }
.stepper li { flex: 1; min-width: 120px; padding: .5rem .7rem; background: #e9edf3; color: var(--muted); font-size: .8rem; font-weight: 700; border-radius: 6px; counter-increment: s; }
.stepper li::before { content: counter(s) " · "; } .stepper li.done { background: #dfe9fb; color: var(--blue-d); } .stepper li.cur { background: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--blue); }
.next-step { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.os-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 1rem; align-items: start; }
.totais { margin: 1rem 0 0; } .totais div { display: flex; justify-content: space-between; padding: .3rem 0; } .totais dt { color: var(--muted); } .totais dd { margin: 0; font-weight: 600; }
.totais .big { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .2rem; font-size: 1.1rem; } .totais .big dt { color: var(--text); font-weight: 700; } .totais .big dd { font-weight: 800; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; margin: 0 0 .6rem; } .kv dt { color: var(--muted); font-size: .85rem; } .kv dd { margin: 0; text-align: right; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.vcard { display: flex; flex-direction: column; gap: .3rem; color: inherit; text-decoration: none !important; } .vcard:hover { border-color: var(--blue); } .vcard small { color: var(--muted); }
.dup { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; } .dup-list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.porte-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; } .porte-row { display: grid; grid-template-columns: 70px 1fr 80px; gap: .4rem; align-items: center; font-size: .85rem; font-weight: 600; }
.exp-row { display: grid; grid-template-columns: 140px 120px auto 120px; gap: .6rem; align-items: center; }

/* Caixa */
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 180px; padding: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .4rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; gap: .3rem; } .bar-pair { flex: 1; display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; }
.bar { width: 40%; max-width: 22px; border-radius: 3px 3px 0 0; min-height: 2px; } .bar-in { background: var(--blue); } .bar-out { background: #2a3140; }
.legend { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; } .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; } .sw-in { background: var(--blue); } .sw-out { background: #2a3140; margin-left: .8rem; }
.criterio { margin-top: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; } .criterio ul { margin: .5rem 0 0; padding-left: 1.1rem; } .criterio li { margin-bottom: .3rem; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(ellipse at 50% 20%, #10213f 0%, var(--ink) 60%); }
.login-card { width: 100%; max-width: 400px; background: var(--ink-2); border: 1px solid #222a37; border-radius: 16px; padding: 1.4rem; color: #dfe5ee; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.login-logo { width: 100%; display: block; border-radius: 10px; }
.login .slogan { margin: 0 0 1.2rem; } .login label { color: #c9d1dd; } .login .btn:not(.btn-primary) { background: var(--ink-3); color: #fff; border-color: #2c3545; }
.login .muted { color: #8d99ad; } .login .link { color: #8fb4ff; } .erro { color: #ff8a8a; min-height: 1.2em; margin: .8rem 0 0; font-size: .9rem; }
.stack.login-card > * + * { margin-top: .8rem; }

/* Mobile */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--ink); display: none; justify-content: space-around; align-items: center; padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom)); border-top: 1px solid #000; }
.bottom-nav a, .bottom-nav > button:not(.fab) { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #9aa6b8; font-size: .7rem; background: none; border: 0; padding: .3rem .5rem; text-decoration: none !important; min-width: 56px; }
.bottom-nav a span, .bottom-nav button span { font-size: 1.15rem; } .bottom-nav a.active { color: #fff; } .bottom-nav a.active span { color: var(--blue); }
.fab { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1.8rem; line-height: 1; margin-top: -22px; box-shadow: 0 6px 18px var(--blue-glow); cursor: pointer; }
.scrim { display: none; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 270px; }
  body.nav-open .sidebar { transform: none; } body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 39; }
  .content { margin-left: 0; } .only-mobile { display: initial; } .bottom-nav.only-mobile { display: flex; }
  .topbar { background: var(--ink); border-color: #000; padding: .45rem .8rem; } .topbar .icon-btn { color: #fff; } .topbar #refresh { color: #c9d1dd; border-color: #2d3644; } .topbar #quick-btn { display: none; }
  .page { padding: 1rem .85rem 6.5rem; }
  .os-grid, .board { grid-template-columns: minmax(0, 1fr); }
  .week { grid-template-columns: 1fr; } .wk-day { min-height: 0; flex-direction: row; flex-wrap: wrap; } .wk-head { width: 100%; } .wk-list { width: 100%; } .wk-add { width: 100%; }
}
@media (min-width: 961px) { .only-mobile { display: none !important; } }
@media (max-width: 720px) {
  h1 { font-size: 1.3rem; }
  .desktop-only { display: none !important; } .mobile-only { display: flex; }
  .grid-2, .grid-3, .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar { flex-wrap: wrap; } .toolbar input[type=search] { max-width: none; } .toolbar select { flex: 1; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi strong { font-size: 1.1rem; }
  .item-row { grid-template-columns: 1fr 1fr 1fr 36px; } .item-row .it-desc { grid-column: 1 / -1; } .item-row label.mini:nth-of-type(3) { display: none; }
  .modal-wrap { padding: 0; } .modal { border-radius: 0; min-height: 100vh; max-width: none; } .modal-head { border-radius: 0; }
  .form-actions { flex-wrap: wrap; } .form-actions .btn-primary { flex: 1 1 100%; order: 9; } .left-actions { width: 100%; margin-bottom: .4rem; }
  /* tabelas viram cartões */
  .table-wrap { background: none; border: 0; box-shadow: none; overflow: visible; }
  .table thead { display: none; } .table, .table tbody, .table tr, .table td, .table tfoot { display: block; width: 100%; }
  .table tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .55rem; padding: .35rem .2rem; box-shadow: var(--sh); }
  .table td { border: 0; padding: .3rem .7rem; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .table td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .78rem; font-weight: 600; text-align: left; flex-shrink: 0; }
  .table td:not([data-l]) { justify-content: flex-end; }
  .table tfoot tr { background: var(--ink); color: #fff; } .table tfoot td { background: none; border: 0; }
  .exp-row { grid-template-columns: 1fr 1fr auto 1fr; } .exp-row label { grid-column: 1 / -1; }
  .stepper li { min-width: 45%; }
  .agenda-bar { gap: .5rem; } .agenda-title { width: 100%; order: -1; }
}

/* Impressão / PDF */
.print-actions { display: flex; gap: .5rem; padding: 1rem; }
.print-doc { background: #fff; max-width: 820px; margin: 0 auto 2rem; padding: 2rem; border: 1px solid var(--line); border-radius: 8px; color: #000; }
.print-head { display: flex; gap: 1.2rem; align-items: center; background: #0a0d12; color: #fff; padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-head img { width: 170px; } .print-doc h1 { font-size: 1.3rem; margin: .4rem 0 1rem; }
.print-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; font-size: .88rem; margin-bottom: 1rem; }
.ptable { width: 100%; border-collapse: collapse; margin: .6rem 0; font-size: .9rem; } .ptable th, .ptable td { border-bottom: 1px solid #ccc; padding: .45rem .3rem; text-align: left; } .ptable .r { text-align: right; }
.assin { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; } .assin div { border-top: 1px solid #000; padding-top: .3rem; font-size: .8rem; text-align: center; }
body.printing .sidebar, body.printing .topbar, body.printing .bottom-nav, body.printing .demo-bar { display: none !important; } body.printing .content { margin: 0; }
@media print {
  body { background: #fff; } .no-print, .sidebar, .topbar, .bottom-nav, .demo-bar, .toast { display: none !important; }
  .content { margin: 0; } .print-doc { border: 0; padding: 0; max-width: none; }
}
.board h3.sub { margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Calendário do mês (estilo Minha Agenda) ---------- */
.agenda-bar .nav-date { gap: .2rem; } .nav-arrow { font-size: 1.5rem; width: 40px; height: 40px; }
.agenda-bar .agenda-title { font-size: 1.15rem; min-width: 190px; text-align: center; }
.month-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1rem; align-items: start; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.mh { padding: .5rem; text-align: center; font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--muted); background: #f8f9fb; border-bottom: 1px solid var(--line); }
.mc { min-height: 104px; border: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #fff; text-align: left; padding: .35rem .35rem .4rem; cursor: pointer; display: flex; flex-direction: column; gap: .2rem; color: var(--text); font: inherit; }
.mc:nth-child(7n + 7) { border-right: 0; } .mc:hover { background: #f6f9ff; }
.mc.out { background: #fafbfc; } .mc.out .mc-n { color: #b3bac6; } .mc.closed:not(.out) { background: #fbfbfc; }
.mc-n { font-weight: 700; font-size: .88rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.mc.today .mc-n { background: var(--blue); color: #fff; }
.mc.sel { box-shadow: inset 0 0 0 2px var(--ink); } .mc.sel .mc-n { outline: 2px solid var(--ink); outline-offset: 1px; }
.mc-evs { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; }
.mc-ev { font-size: .72rem; line-height: 1.25; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; background: #f1f4f9; }
.mc-more { font-size: .7rem; color: var(--muted); font-weight: 700; padding-left: 4px; }
.mc-dots { display: none; gap: 3px; justify-content: center; } .mc-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ev-agendado { border-color: #7a869c; color: #45516a; } .ev-confirmado { border-color: var(--blue); color: var(--blue-d); background: var(--blue-l); }
.ev-os-em_execucao { border-color: var(--warn); color: var(--warn); background: var(--warn-l); } .ev-os-pronto { border-color: var(--ok); color: var(--ok); background: var(--ok-l); }
.ev-os-entregue, .ev-concluido { border-color: #26324a; color: #26324a; background: #e6ebf3; }
.ev-nao_compareceu { border-color: var(--danger); color: var(--danger); background: var(--danger-l); } .ev-cancelado { border-color: #aaa; color: #888; text-decoration: line-through; }
.ev-bloq { border-color: #59647a; color: #59647a; background: repeating-linear-gradient(135deg, #f2f3f6, #f2f3f6 4px, #e7e9ee 4px, #e7e9ee 8px); }
.day-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: var(--sh); position: sticky; top: 70px; }
.day-panel h2 { text-transform: none; } .day-panel h2::first-letter { text-transform: uppercase; }
.day-panel .day-list { margin-bottom: .8rem; } .day-panel .row { justify-content: space-between; }
@media (max-width: 1100px) { .month-wrap { grid-template-columns: minmax(0, 1fr); } .day-panel { position: static; } }
@media (max-width: 720px) {
  .agenda-bar { justify-content: space-between; } .agenda-bar .agenda-title { min-width: 0; font-size: 1.05rem; order: 0; width: auto; }
  .agenda-bar .seg { width: 100%; } .agenda-bar .seg button { flex: 1; }
  .mc { min-height: 54px; align-items: center; padding: .25rem 0; gap: .15rem; }
  .mc-evs { display: none; } .mc-dots { display: flex; } .mh { padding: .4rem 0; font-size: .68rem; }
  .day-panel .day-list { display: flex; }
}

/* =====================================================================
   VISUAL 2.0 — moderno e premium (preto, azul e branco da GS)
   ===================================================================== */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow", "Inter", system-ui, sans-serif;
  --bg: #f3f5f9; --line: #e5e9f0; --line-2: #eef1f6; --r: 16px;
  --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -14px rgba(15, 23, 42, .16);
  --sh-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 36px -16px rgba(26, 109, 255, .35);
  --grad: linear-gradient(135deg, #3b86ff 0%, #1a6dff 45%, #0b4fd8 100%);
  --dark: radial-gradient(120% 140% at 100% 0%, rgba(26, 109, 255, .38) 0%, rgba(26, 109, 255, 0) 55%), linear-gradient(135deg, #0b0f17 0%, #0e1a33 100%);
}
body { background: radial-gradient(1200px 400px at 70% -120px, #e6eeff 0%, rgba(230, 238, 255, 0) 70%), var(--bg); background-attachment: fixed; letter-spacing: -.005em; }
h1, h2, .agenda-title, .kpi strong, .meta-big, .hero h1 { font-family: var(--display); letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 800; } h2 { font-size: 1.15rem; font-weight: 700; }
input, select, textarea { border-radius: 10px; border-color: #d8dee8; background: #fbfcfe; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 109, 255, .14); background: #fff; }
.input-big { font-family: var(--display); font-size: 1.6rem; font-weight: 700; min-height: 56px; }

/* Botões */
.btn { border-radius: 10px; border-color: #dde3ec; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:hover { border-color: #b9c3d3; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .25); } .btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); border: 0; box-shadow: 0 8px 18px -8px rgba(26, 109, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); box-shadow: 0 12px 24px -10px rgba(26, 109, 255, .85); }

/* Menu lateral */
.sidebar { background: linear-gradient(180deg, #0a0e16 0%, #05070b 100%); border-right: 1px solid rgba(255, 255, 255, .04); }
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px 220px at 50% 0%, rgba(26, 109, 255, .22), transparent 70%); }
.brand, .nav, .user, .slogan { position: relative; z-index: 1; }
.brand img { border-radius: 12px; }
.nav a { border-radius: 10px; margin: 2px 0; color: #aeb8c8; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .05); }
.nav a.active { background: linear-gradient(90deg, rgba(26, 109, 255, .3), rgba(26, 109, 255, .08)); box-shadow: inset 0 0 0 1px rgba(79, 141, 255, .25); color: #fff; }
.nav a.active .ic { color: #fff; text-shadow: 0 0 12px rgba(79, 141, 255, .9); }
.nav-sec { color: #4f5b70; }
.user { border-top-color: rgba(255, 255, 255, .06); }
.topbar { background: rgba(243, 245, 249, .72); border-bottom-color: rgba(15, 23, 42, .06); }

/* Cartões, KPIs, tabelas */
.card, .kpi, .table-wrap, .board .col, .month, .day-panel, .shortcut, .quick, .criterio, .bars, .wk-day, .day-grid { border-radius: var(--r); border-color: var(--line); box-shadow: var(--sh); }
.kpi { padding: 1rem 1.1rem; gap: .25rem; position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); opacity: .9; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); border-color: #cfdcf7; }
.kpi span { font-size: .72rem; letter-spacing: .07em; } .kpi strong { font-size: 1.65rem; font-weight: 700; }
.kpi-hl { background: var(--dark); border: 0; } .kpi-hl::before { display: none; }
.table th { background: #f7f9fc; color: #6b7487; font-size: .7rem; letter-spacing: .08em; }
.table td { border-bottom-color: #f0f2f7; } .table tr.click:hover td { background: #f5f8ff; }
.table-wrap { overflow: hidden; } @media (min-width: 721px) { .table-wrap { overflow-x: auto; } }
.chip { padding: .2rem .55rem; font-weight: 650; letter-spacing: .01em; }
.tabs { border-bottom: 0; gap: .4rem; background: #e9edf4; padding: 4px; border-radius: 12px; display: inline-flex; max-width: 100%; }
.tab { border: 0; border-radius: 9px; padding: .45rem .9rem; } .tab.active { background: #fff; color: var(--text); box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .2); }
.seg { border-radius: 12px; border: 0; background: #e9edf4; padding: 4px; gap: 2px; } .seg button { border-radius: 9px; border: 0 !important; min-height: 34px; } .seg button.on { background: #fff; color: var(--text); box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .25); }
.empty { border-radius: 12px; border-color: #dfe5ee; background: #fafbfd; }
.modal { border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(2, 6, 23, .55); } .modal-head { border-radius: 20px 20px 0 0; border-bottom-color: var(--line-2); } .modal-head h2 { font-size: 1.3rem; }
.modal-wrap { background: rgba(5, 8, 14, .6); backdrop-filter: blur(4px); }
.toast { border-radius: 14px; border-left: 0; background: #0b0f17; box-shadow: 0 16px 40px -12px rgba(2, 6, 23, .6), inset 0 0 0 1px rgba(255, 255, 255, .06); padding: .8rem 1.2rem; }
.toast::before { content: "●"; color: #4f8dff; margin-right: .5rem; } .toast-erro::before { color: #ff6b6b; } .toast-info::before { color: #f5b74a; }

/* Atalhos */
.shortcut { padding: 1rem 1.1rem; transition: transform .15s, box-shadow .2s; } .shortcut b { font-family: var(--display); font-size: 1.15rem; }
.shortcut:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); }
.shortcut:first-child { background: var(--grad); border: 0; box-shadow: 0 14px 30px -14px rgba(26, 109, 255, .8); } .shortcut:first-child small { color: rgba(255, 255, 255, .8); }

/* Destaque do Início */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: var(--dark); color: #fff; border-radius: 22px; padding: 1.5rem 1.6rem; margin-bottom: 1.1rem; box-shadow: 0 24px 50px -24px rgba(2, 6, 23, .7); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 141, 255, .25), transparent 70%); pointer-events: none; }
.hero h1 { font-size: 2.1rem; margin: .15rem 0 .2rem; } .hero p { margin: 0; color: #b6c3da; }
.eyebrow { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: #8fb2ff; font-weight: 700; }
.hero-meta { display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: .6rem 1.2rem .6rem .6rem; color: #fff; text-decoration: none !important; backdrop-filter: blur(6px); position: relative; z-index: 1; transition: background .2s; cursor: pointer; font: inherit; text-align: left; }
.hero-meta:hover { background: rgba(255, 255, 255, .1); }
.hero-meta strong { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; } .hero-meta small { color: #b6c3da; }
.hero-meta-empty { padding: 1rem 1.3rem; border-style: dashed; }
.ring { color: #fff; display: block; } .ring-pct { font-family: var(--display); font-weight: 800; font-size: 34px; fill: currentColor; } .ring-sub { font-size: 13px; fill: currentColor; opacity: .65; }

/* Metas */
.meta-hero { display: flex; gap: 1.8rem; align-items: center; background: var(--dark); color: #fff; border-radius: 22px; padding: 1.6rem 1.8rem; box-shadow: 0 24px 50px -24px rgba(2, 6, 23, .7); flex-wrap: wrap; }
.meta-info { flex: 1; min-width: 260px; } .meta-big { font-size: 2.6rem; font-weight: 800; line-height: 1.05; margin: .2rem 0 .8rem; } .meta-big small { font-size: 1.1rem; color: #9fb0cc; font-weight: 600; }
.meta-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; } .meta-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f8dff, #1a6dff); box-shadow: 0 0 18px rgba(79, 141, 255, .8); transition: width .6s ease; }
.meta-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-top: 1rem; }
.meta-stats div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: .65rem .8rem; }
.meta-stats span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #9fb0cc; font-weight: 600; } .meta-stats strong { font-family: var(--display); font-size: 1.35rem; } .meta-stats small { display: block; color: #9fb0cc; }
.meta-empty p { color: #b6c3da; max-width: 520px; } .meta-empty { justify-content: space-between; }
.meta-chart { width: 100%; height: auto; display: block; }
.mc-axis { stroke: #e3e8f0; } .mc-goal { stroke: #13804a; stroke-width: 2; stroke-dasharray: 6 5; } .mc-ideal { stroke: #9aa6b8; stroke-dasharray: 2 5; stroke-width: 1.5; }
.mc-line { fill: none; stroke: #1a6dff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; } .mc-area { fill: rgba(26, 109, 255, .1); } .mc-dot { fill: #fff; stroke: #1a6dff; stroke-width: 3; }
.mc-lbl { font-size: 11px; fill: #7b8597; }
.sw-goal { background: #13804a; margin-left: .8rem; } .sw-ideal { background: #9aa6b8; margin-left: .8rem; }
.hist { display: flex; gap: .8rem; align-items: flex-end; height: 190px; padding-top: .5rem; }
.hist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; height: 100%; font-size: .8rem; } .hist-col small { color: var(--muted); }
.hist-col.cur strong { color: var(--blue-d); }
.hist-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.hb-meta, .hb-rec { width: 34%; max-width: 26px; border-radius: 6px 6px 2px 2px; min-height: 2px; } .hb-meta { background: #dfe6f1; } .hb-rec { background: var(--grad); } .hb-rec.ok { background: linear-gradient(180deg, #34d399, #13804a); }

/* Calendário mais limpo */
.mh { background: #f7f9fc; } .mc { transition: background .12s; } .mc-ev { border-radius: 6px; }
.mc.today .mc-n { background: var(--grad); box-shadow: 0 4px 10px -3px rgba(26, 109, 255, .7); }
.mc.sel { box-shadow: inset 0 0 0 2px var(--blue); background: #f5f8ff; } .mc.sel .mc-n { outline-color: var(--blue); }
.ag-card { border-radius: 10px; }
.stepper li { border-radius: 10px; } .stepper li.cur { background: var(--grad); box-shadow: 0 8px 18px -10px rgba(26, 109, 255, .8); }

/* Login */
.login { background: radial-gradient(800px 500px at 50% 0%, rgba(26, 109, 255, .35), transparent 70%), #05070b; }
.login-card { border-radius: 22px; background: rgba(17, 22, 32, .85); border-color: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); }

/* Celular */
.bottom-nav { background: rgba(8, 11, 17, .94); backdrop-filter: blur(10px); border-top-color: rgba(255, 255, 255, .06); }
.fab { background: var(--grad); }
@media (max-width: 960px) { .topbar { background: #07090e; } }
@media (max-width: 720px) {
  h1 { font-size: 1.55rem; } .hero { padding: 1.2rem; border-radius: 18px; } .hero h1 { font-size: 1.6rem; } .hero-meta { width: 100%; }
  .meta-hero { padding: 1.2rem; gap: 1rem; justify-content: center; } .meta-big { font-size: 2rem; } .meta-ring { margin: 0 auto; }
  .tabs { display: flex; } .kpi strong { font-size: 1.25rem; }
  .table tr { border-radius: 14px; }
}
.sw-meta { background: #dfe6f1; } .sw-ok { background: #13804a; margin-left: .8rem; } .legend .sw-in { margin-left: .8rem; } .legend .sw:first-child { margin-left: 0; }
/* App instalável */
.install-btn { position: relative; z-index: 1; margin: 0 14px 10px; padding: .65rem; border-radius: 12px; border: 1px solid rgba(79, 141, 255, .35); background: rgba(26, 109, 255, .14); color: #dbe7ff; font-weight: 600; cursor: pointer; }
.install-btn:hover { background: rgba(26, 109, 255, .24); }
.steps-list { padding-left: 1.2rem; line-height: 1.9; font-size: 1rem; }
@media (display-mode: standalone) {
  .topbar { padding-top: calc(.45rem + env(safe-area-inset-top)); }
  body:has(.demo-bar) .demo-bar { padding-top: calc(.35rem + env(safe-area-inset-top)); }
  .sidebar { padding-top: env(safe-area-inset-top); }
}
