/* Comércio Fácil PRO — interface */
:root {
  --primary: #1d7a3e; --primary-600: #17663a; --primary-700: #0f4f2c; --primary-50: #eaf6ee; --primary-100: #d3edd9;
  --accent: #d9921a; --accent-50: #fdf3e2;
  --bg: #f3f5f4; --surface: #ffffff; --surface-2: #f7f9f8; --surface-3: #eef2f0;
  --border: #dde4e0; --border-strong: #c5d0ca;
  --text: #17231c; --text-2: #3d4b43; --muted: #6b7a72;
  --danger: #c0352b; --danger-50: #fdecea; --warn: #b7700b; --warn-50: #fff4e0; --ok: #1d7a3e; --ok-50: #e7f5ec; --info: #2563a8; --info-50: #e8f0fb;
  --side-bg: #0d2a1b; --side-text: #cfe3d6; --side-muted: #84a592; --side-active: #1d5b38;
  --radius: 10px; --radius-sm: 7px; --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 25, .06); --shadow: 0 4px 16px rgba(15, 40, 25, .08); --shadow-lg: 0 18px 50px rgba(10, 30, 20, .22);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --primary: #3fae67; --primary-600: #4cbd74; --primary-700: #7fd6a0; --primary-50: #15291e; --primary-100: #1c3a28;
  --accent: #e9a93a; --accent-50: #2e2312;
  --bg: #0f1512; --surface: #161e1a; --surface-2: #1b2520; --surface-3: #223029;
  --border: #2a3832; --border-strong: #3a4b43;
  --text: #e6eee9; --text-2: #c2cfc8; --muted: #8b9c93;
  --danger: #ef6b5f; --danger-50: #2f1816; --warn: #e5a640; --warn-50: #2c2210; --ok: #4cbd74; --ok-50: #14281c; --info: #6ea8ea; --info-50: #142235;
  --side-bg: #0a110d; --side-text: #c9dbd0; --side-muted: #6f8a7b; --side-active: #1b3a29;
  --shadow: 0 4px 16px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
a { color: var(--primary); }
small { color: var(--muted); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.svg-ic { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Controles ---------- */
button, .btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 36px; padding: .45rem .9rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none; }
button:hover { background: var(--primary-600); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary, .btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
button.secondary:hover { background: var(--surface-3); }
button.ghost { background: transparent; color: var(--text-2); }
button.ghost:hover { background: var(--surface-3); }
button.danger { background: var(--danger); }
button.danger:hover { filter: brightness(.95); background: var(--danger); }
button.danger-soft { background: var(--danger-50); color: var(--danger); }
button.warn { background: var(--accent); }
button.sm { min-height: 30px; padding: .25rem .6rem; font-size: 13px; }
button.lg { min-height: 46px; padding: .6rem 1.2rem; font-size: 15px; }
button.icon { padding: 0; width: 34px; min-height: 34px; }
button.sm.icon { width: 28px; min-height: 28px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

input, select, textarea { font: inherit; width: 100%; min-height: 36px; padding: .45rem .65rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
input[type=checkbox], input[type=radio] { width: 17px; min-height: 17px; height: 17px; accent-color: var(--primary); margin: 0; }
input:disabled, select:disabled { background: var(--surface-3); color: var(--muted); }
input.num, td input { text-align: right; }
label { display: grid; gap: .3rem; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
label.check { display: flex; align-items: center; gap: .55rem; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.field-hint { font-size: 12px; color: var(--muted); font-weight: 400; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem 1rem; margin: 0; display: grid; gap: .8rem; }
legend { padding: 0 .4rem; font-weight: 700; font-size: 13px; color: var(--text-2); }

.grid { display: grid; gap: .8rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .spanall { grid-column: 1 / -1; }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.stack { display: grid; gap: 1rem; }
.between { justify-content: space-between; }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.app.collapsed { grid-template-columns: 64px 1fr; }
.side { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: .7rem; padding: 1rem .9rem .9rem; min-height: 68px; }
.side-brand img, .logo-ph { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: #fff; flex: 0 0 auto; }
.logo-ph { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; }
.side-brand b { display: block; color: #fff; font-size: 15px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-brand span { font-size: 11.5px; color: var(--side-muted); }
.side nav { flex: 1; overflow-y: auto; padding: .3rem .55rem 1rem; scrollbar-width: thin; scrollbar-color: #2b4a39 transparent; }
.nav-group { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: .9rem .6rem .35rem; font-weight: 700; }
.side nav a { display: flex; align-items: center; gap: .7rem; padding: .52rem .65rem; border-radius: 8px; color: var(--side-text); text-decoration: none; font-weight: 500; margin-bottom: 1px; position: relative; }
.side nav a:hover { background: #ffffff10; color: #fff; }
.side nav a.active { background: var(--side-active); color: #fff; }
.side nav a.active::before { content: ""; position: absolute; left: -.55rem; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side nav a .kbd { margin-left: auto; font-size: 10.5px; color: var(--side-muted); font-family: var(--mono); }
.side-foot { padding: .7rem .9rem; font-size: 11px; color: var(--side-muted); border-top: 1px solid #ffffff12; }
.app.collapsed .side-brand div, .app.collapsed .nav-group, .app.collapsed nav a span, .app.collapsed nav a .kbd, .app.collapsed .side-foot { display: none; }
.app.collapsed nav a { justify-content: center; }
.app.collapsed .side-brand { justify-content: center; padding-inline: 0; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar { display: flex; align-items: center; gap: .7rem; height: 58px; padding: 0 1.1rem; background: var(--surface); border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.topbar h1 { font-size: 17px; font-weight: 700; }
.topbar .crumb { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-50); color: var(--ok); } .pill.warn { background: var(--warn-50); color: var(--warn); } .pill.danger { background: var(--danger-50); color: var(--danger); } .pill.info { background: var(--info-50); color: var(--info); }
button.pill { min-height: 0; border: 0; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: .55rem; padding: .25rem .5rem .25rem .3rem; border-radius: 99px; background: transparent; color: var(--text); border: 1px solid var(--border); min-height: 0; font-weight: 500; }
.user-chip:hover { background: var(--surface-3); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-700); font-weight: 700; font-size: 12px; }
.content { flex: 1; overflow: auto; padding: 1.2rem 1.3rem 2rem; }
.content.flush { padding: 0; overflow: hidden; }
.page { max-width: 1500px; margin: 0 auto; display: grid; gap: 1rem; }

/* ---------- Cartões e painéis ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-h { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.card-h { flex-wrap: wrap; }
.card-h h2 { font-size: 15px; font-weight: 700; white-space: nowrap; }
.card-h .actions { margin-left: auto; display: flex; gap: .4rem; }
.card-b { padding: 1rem; }
.card-b.flush { padding: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .85rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .9rem 1rem; display: grid; gap: .2rem; box-shadow: var(--shadow-sm); text-align: left; color: var(--text); font-weight: 400; min-height: 0; }
button.kpi:hover { background: var(--surface-2); border-color: var(--border-strong); }
.kpi .lbl { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.kpi .val { font-size: 25px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.delta-up { color: var(--ok); font-weight: 600; } .delta-down { color: var(--danger); font-weight: 600; }

.toolbar { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.toolbar .search { position: relative; flex: 1 1 260px; max-width: 460px; }
.toolbar .search input { padding-left: 2.1rem; }
.toolbar .search .svg-ic { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar select, .toolbar input[type=date] { width: auto; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { background: transparent; color: var(--muted); border-radius: 0; border-bottom: 2px solid transparent; padding: .55rem .9rem; min-height: 40px; font-weight: 600; }
.tabs button:hover { color: var(--text); background: transparent; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border-radius: 0; background: var(--surface); color: var(--text-2); min-height: 32px; padding: .3rem .75rem; font-weight: 600; font-size: 13px; }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.active { background: var(--primary); color: #fff; }

/* ---------- Tabelas ---------- */
.tw { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover td { background: var(--surface-2); }
tr.clickable { cursor: pointer; }
tr.muted td { color: var(--muted); }
tr.strike td { text-decoration: line-through; color: var(--muted); }
tfoot td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border-strong); position: sticky; bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.actions { white-space: nowrap; text-align: right; width: 1%; }
td.actions button + button { margin-left: .25rem; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.empty .svg-ic { width: 34px; height: 34px; opacity: .5; margin-bottom: .4rem; }
.tag { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.tag.ok { background: var(--ok-50); color: var(--ok); } .tag.warn { background: var(--warn-50); color: var(--warn); } .tag.danger { background: var(--danger-50); color: var(--danger); } .tag.info { background: var(--info-50); color: var(--info); } .tag.accent { background: var(--accent-50); color: var(--accent); }
.pos { color: var(--ok); } .neg { color: var(--danger); }

/* ---------- Modal, toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 20, 14, .5); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 50; padding: 1rem; animation: fade .12s ease; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; animation: pop .14s ease; }
.modal.wide { width: min(860px, 100%); } .modal.xl { width: min(1150px, 100%); } .modal.sm { width: min(420px, 100%); }
.modal-h { display: flex; align-items: center; gap: .6rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--border); }
.modal-h h3 { font-size: 16px; font-weight: 700; flex: 1; }
.modal-b { padding: 1.1rem; overflow: auto; display: grid; gap: .9rem; }
.modal-f { display: flex; justify-content: flex-end; gap: .5rem; padding: .8rem 1.1rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@keyframes fade { from { opacity: 0 } } @keyframes pop { from { transform: scale(.97); opacity: 0 } }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 90; }
.toast { display: flex; align-items: center; gap: .6rem; min-width: 260px; max-width: 420px; padding: .7rem .9rem; border-radius: var(--radius); background: #17231c; color: #fff; box-shadow: var(--shadow-lg); animation: pop .15s ease; font-weight: 500; white-space: pre-line; }
.toast.error { background: var(--danger); } .toast.ok { background: #1d7a3e; }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .85rem; border-radius: var(--radius); background: var(--info-50); color: var(--info); font-weight: 500; }
.alert.warn { background: var(--warn-50); color: var(--warn); } .alert.danger { background: var(--danger-50); color: var(--danger); } .alert.ok { background: var(--ok-50); color: var(--ok); }
.menu { position: fixed; z-index: 60; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .3rem; }
.menu button { width: 100%; justify-content: flex-start; background: transparent; color: var(--text); font-weight: 500; }
.menu button:hover { background: var(--surface-3); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: .3rem 0; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: linear-gradient(150deg, #0b2416, #145a33 60%, #1d7a3e); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid #ffffff1c; right: -200px; bottom: -180px; box-shadow: 0 0 0 60px #ffffff06, 0 0 0 130px #ffffff05; }
.login-art h2 { font-size: 34px; letter-spacing: -.02em; max-width: 420px; }
.login-art p { color: #cfe7d8; max-width: 420px; font-size: 15px; }
.login-art ul { padding: 0; list-style: none; display: grid; gap: .5rem; color: #e1f1e7; }
.login-art li::before { content: "✓"; color: var(--accent); margin-right: .55rem; font-weight: 800; }
.login-form { display: grid; place-items: center; padding: 2rem; background: var(--surface); }
.login-form form { width: min(360px, 100%); display: grid; gap: 1rem; }
.login-form img { width: 74px; height: 74px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow); }
.login-form h1 { font-size: 24px; }

/* ---------- PDV ---------- */
.pdv { display: grid; grid-template-columns: minmax(0, 1fr) 390px; height: 100%; }
.pdv-left { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); background: var(--surface); }
.pdv-search { padding: .9rem 1rem; border-bottom: 1px solid var(--border); display: flex; gap: .6rem; align-items: center; position: relative; }
.pdv-search .qty-box { width: 92px; flex: 0 0 auto; }
.pdv-search .qty-box input { font-size: 18px; font-weight: 700; text-align: center; min-height: 48px; }
.pdv-search .main-input { flex: 1; position: relative; }
.pdv-search .main-input input { min-height: 48px; font-size: 17px; padding-left: 2.6rem; }
.pdv-search .main-input .svg-ic { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.pdv-results { position: absolute; left: 1rem; right: 1rem; top: calc(100% - .4rem); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 20; max-height: 430px; overflow: auto; }
.pdv-results .res { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .6rem .85rem; cursor: pointer; border-bottom: 1px solid var(--border); }
.pdv-results .res:last-child { border-bottom: 0; }
.pdv-results .res.sel, .pdv-results .res:hover { background: var(--primary-50); }
.pdv-results .res b { font-weight: 650; }
.pdv-results .price { font-weight: 750; font-size: 15px; }
.pdv-cart { flex: 1; overflow: auto; }
.pdv-cart table td { padding: .5rem .7rem; font-size: 14.5px; }
.pdv-cart tr.sel td { background: var(--primary-50); }
.pdv-cart .item-name { font-weight: 650; }
.pdv-cart input { width: 90px; min-height: 32px; padding: .25rem .4rem; }
.pdv-keys { display: flex; gap: .35rem; flex-wrap: wrap; padding: .55rem .8rem; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.pdv-keys kbd, kbd { font-family: var(--mono); font-size: 11px; padding: .08rem .38rem; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); color: var(--text-2); }
.pdv-keys span { display: inline-flex; gap: .3rem; align-items: center; padding-right: .5rem; }
.pdv-right { display: flex; flex-direction: column; background: var(--surface-2); min-height: 0; }
.pdv-right .sec { padding: .85rem 1rem; border-bottom: 1px solid var(--border); display: grid; gap: .55rem; }
.pdv-total { background: var(--primary-700); color: #fff; padding: 1rem 1.1rem; display: grid; gap: .25rem; }
:root[data-theme="dark"] .pdv-total { background: #123d26; }
.pdv-total .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pdv-total .line { display: flex; justify-content: space-between; font-size: 13px; color: #cfe7d8; }
.pdv-customer { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.pdv-customer:hover { border-color: var(--primary); }
.pdv-actions { margin-top: auto; padding: .85rem 1rem; display: grid; gap: .5rem; }
.pdv-actions .finish { min-height: 58px; font-size: 18px; }
.pdv-weight { display: flex; align-items: baseline; gap: .4rem; font-size: 13px; color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.pay-btn { flex-direction: column; gap: .15rem; min-height: 62px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); font-size: 13px; }
.pay-btn:hover { background: var(--primary-50); border-color: var(--primary); }
.pay-btn kbd { font-size: 10px; }
.pay-lines { display: grid; gap: .35rem; }
.pay-line { display: flex; justify-content: space-between; align-items: center; padding: .45rem .6rem; background: var(--surface-2); border-radius: var(--radius-sm); font-weight: 600; }
.change-box { padding: .8rem 1rem; border-radius: var(--radius); background: var(--ok-50); color: var(--ok); display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; }
.change-box b { font-size: 26px; }
.big-input { font-size: 24px !important; font-weight: 700; min-height: 54px !important; text-align: right; }

/* ---------- Gráfico ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--primary); }
.chart .bar.dim { fill: var(--primary-100); }
.chart .hit:hover + .bar, .chart .bar:hover { fill: var(--primary-600); }
.chart .grid-l { stroke: var(--border); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font-size: 11px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--surface); padding: .35rem .55rem; border-radius: 6px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow); z-index: 5; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: center; }
.hbar .track { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hbar .fill { height: 100%; background: var(--primary); border-radius: 4px; }
.list-rows { display: grid; gap: .8rem; }
.alert-list { display: grid; }
.alert-item { display: flex; align-items: center; gap: .7rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; background: transparent; border-radius: 0; font-weight: 500; justify-content: flex-start; min-height: 0; }
.alert-item:last-child { border-bottom: 0; }
.alert-item:hover { background: var(--surface-2); }
.alert-item .n { margin-left: auto; font-weight: 750; }
.ic-circle { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-3); color: var(--text-2); }
.ic-circle.ok { background: var(--ok-50); color: var(--ok); } .ic-circle.warn { background: var(--warn-50); color: var(--warn); } .ic-circle.danger { background: var(--danger-50); color: var(--danger); } .ic-circle.info { background: var(--info-50); color: var(--info); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem 1rem; }
.detail-grid div span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid div b { font-weight: 600; }
.help-grid { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; align-items: center; }
.drop { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 1.3rem; text-align: center; color: var(--muted); }

@media (max-width: 1100px) { .pdv { grid-template-columns: minmax(0, 1fr) 340px; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .app { grid-template-columns: 64px 1fr; } .side-brand div, .nav-group, nav a span, nav a .kbd, .side-foot { display: none; } .pdv { grid-template-columns: 1fr; height: auto; } .login { grid-template-columns: 1fr; } .login-art { display: none; } .g3, .g2 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; } }

@media print {
  body { background: #fff; }
  .side, .topbar, .toolbar, .no-print, .toasts { display: none !important; }
  .app { display: block; height: auto; } .main, .content { height: auto; overflow: visible; padding: 0; }
  .card { box-shadow: none; border: 0; }
  th { position: static; }
}

/* ---------- Licença e mensalidade ---------- */
.btn.sm { min-height: 30px; padding: .25rem .6rem; font-size: 13px; }
.svg-ic.big { width: 40px; height: 40px; }
.lic-code { display: grid; gap: .45rem; padding: 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
.lic-code > span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lic-code > b { font-size: 26px; letter-spacing: .06em; color: var(--primary); }
.contract { font-size: 13.5px; line-height: 1.55; } .contract h1 { font-size: 18px; } .contract h2 { font-size: 14.5px; margin: 1rem 0 .3rem; } .contract p, .contract li { margin: .3rem 0; }
.contract ul { padding-left: 1.2rem; }
.blocked { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 2rem; background: var(--bg); }
.blocked > .card { width: min(720px, 100%); } .blocked h1 { font-size: 22px; } .blocked .row > .svg-ic.big { color: var(--danger); }
.lic-banner { display: flex; flex: 0 0 auto; align-items: center; gap: .6rem; margin: .6rem 1.1rem 0; padding: .6rem .9rem; border-radius: var(--radius); background: var(--warn-50); color: var(--warn); font-weight: 600; }
.lic-banner span { flex: 1; }
.pix { display: grid; grid-template-columns: 240px 1fr; gap: 1.2rem; align-items: start; }
.pix img { width: 240px; height: 240px; image-rendering: pixelated; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
@media (max-width: 640px) { .pix { grid-template-columns: 1fr; } .pix img { margin: 0 auto; } }