:root {
  --g900: #0f2f1d; --g800: #14532d; --g700: #1a6b3a; --g600: #1f7a3e; --g100: #e3f3e9; --g50: #f1f9f4;
  --or: #f28c1c; --or100: #fdebd2; --red: #d92d3a; --red100: #fde4e6; --blue: #2563eb; --blue100: #e1ebff;
  --amber: #b45309; --amber100: #fff0d0; --pur: #7c3aed; --pur100: #ece5ff; --teal: #0f766e; --teal100: #d7f3ef;
  --ink: #16241c; --mut: #6b7a71; --line: #e2e8e4; --bg: #f3f6f4; --card: #fff; --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 47, 29, .06), 0 4px 14px rgba(15, 47, 29, .05);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); font-size: 14.5px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
small { font-size: 12px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #eef2ef; padding: 1px 5px; border-radius: 4px; }
.hidden { display: none !important; }
.mut { color: var(--mut); } .sm { font-size: 12.5px; } .block { display: block; } .center { text-align: center; }
.neg { color: var(--red); } .ok-t { color: var(--g600); } .warnc { color: var(--amber); }
.big { font-size: 22px; } .link { color: var(--g700); font-weight: 600; text-decoration: none; font-size: 13px; }
.row { display: flex; align-items: center; } .row.between { justify-content: space-between; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; row-gap: 8px; } .row.end { justify-content: flex-end; } .grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; } .stack.sm { gap: 10px; }
.ico { display: inline-flex; align-items: center; flex: none; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; flex: none; }

/* shell */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--g900); color: #cfe3d6; padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; }
.brand b { font-size: 19px; letter-spacing: -.3px; display: block; } .brand small { color: #86b298; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #cfe3d6; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255, 255, 255, .07); }
.side nav a.on { background: var(--g600); color: #fff; }
.side nav em { margin-left: auto; background: var(--or); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.side-foot { margin-top: auto; padding: 0 8px; display: flex; flex-direction: column; gap: 4px; } .side-foot small { color: #a9c7b5; } .side-foot .mut { color: #6f9580; font-size: 11px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.tb-title h1 { font-size: 21px; letter-spacing: -.3px; } .tb-title p { color: var(--mut); font-size: 13px; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.content { padding: 22px 26px 60px; max-width: 1400px; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 6px 11px; border-radius: 20px; font-weight: 600; font-size: 12.5px; }
.pill.ok { color: var(--g700); border-color: #bfe0cb; background: var(--g50); } .pill.off { color: var(--amber); border-color: #f3d38b; background: var(--amber100); }
.pill b { background: var(--or); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; }
.icon-btn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.icon-btn:hover { background: #eef3ef; } .bell i { position: absolute; top: 1px; right: 0; background: var(--red); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 9px; }
.usermenu { position: relative; } .userchip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #fff; padding: 4px 12px 4px 4px; border-radius: 30px; text-align: left; }
.uc-t { display: flex; flex-direction: column; line-height: 1.15; } .uc-t small { color: var(--mut); font-size: 11px; }
.menu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; z-index: 40; }
.menu-h { padding: 8px 10px; display: flex; flex-direction: column; } .menu-h small { color: var(--mut); }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; text-align: left; } .menu button:hover { background: #f1f5f2; }

/* cards, kpis, grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card.attn { border-color: #f3c98a; box-shadow: 0 0 0 3px rgba(242, 140, 28, .10); }
.card-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 0; gap: 10px; flex-wrap: wrap; } .card-h h3 { font-size: 15px; }
.card-b { padding: 14px 18px 18px; } .card-b.flush { padding: 8px 0 0; } .card-b.flush .tbl-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.card.nopad .card-b { padding: 14px 12px; }
.kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; } .kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { border-radius: 14px; padding: 13px 14px; border: 1px solid transparent; min-width: 0; }
.kpi-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; opacity: .85; } .kpi-val { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kpi-sub { font-size: 12px; opacity: .75; margin-top: 2px; }
.k-green { background: #d9f0e0; color: #0d5b2b; } .k-green2 { background: #e2f5e8; color: #14622f; } .k-blue { background: var(--blue100); color: #1740a6; } .k-orange { background: var(--or100); color: #9a5200; }
.k-purple { background: var(--pur100); color: #5b21b6; } .k-teal { background: var(--teal100); color: #0b5c56; } .k-red { background: var(--red100); color: #a3141f; }
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; } .grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.repgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.repcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.prog { height: 7px; background: #e6eee9; border-radius: 6px; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--g600); border-radius: 6px; transition: width .3s; }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; } .mini-kpis.pad { padding: 8px 18px; }
.mini-kpis div { background: #f5f8f6; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; } .mini-kpis small { color: var(--mut); } .mini-kpis b { font-size: 15px; }

/* tables */
.tbl-wrap { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--mut); font-weight: 700; padding: 9px 16px; border-bottom: 1px solid var(--line); background: #fafcfb; white-space: nowrap; }
.tbl td { padding: 11px 16px; border-bottom: 1px solid #eef2ef; vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; } .tbl .right { text-align: right; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #f6faf7; } .tbl tfoot td { font-weight: 700; background: #fafcfb; border-top: 2px solid var(--line); }
.empty { padding: 26px; text-align: center; color: var(--mut); } .empty.big { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 50px 20px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: #edf1ee; color: #46564d; white-space: nowrap; }
.badge.ok { background: #dff3e6; color: #14622f; } .badge.warn { background: var(--amber100); color: var(--amber); } .badge.bad { background: var(--red100); color: #a3141f; } .badge.info { background: var(--blue100); color: #1740a6; }

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; } .lbl { font-size: 12.5px; font-weight: 600; color: #3b4b42; } .hint { font-size: 11.5px; color: var(--mut); }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; border: 1px solid #cfd9d3; border-radius: 9px; padding: 9px 11px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 122, 62, .35); border-color: var(--g600); }
select.sel, input.sel { width: auto; min-width: 150px; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #cfd9d3; background: #fff; border-radius: 9px; padding: 0 10px; min-width: 230px; } .search input { border: 0 !important; outline: 0 !important; padding: 9px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #cfd9d3; background: #fff; padding: 8px 14px; border-radius: 9px; font-weight: 600; } .btn:hover { background: #f3f7f4; }
.btn.primary { background: var(--g700); border-color: var(--g700); color: #fff; } .btn.primary:hover { background: var(--g800); }
.btn.bad { background: #fff; color: var(--red); border-color: #f1b5ba; } .btn.bad:hover { background: var(--red100); } .btn.warn { color: var(--amber); border-color: #f0cf8c; background: #fffaf0; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; } .btn[disabled] { opacity: .5; pointer-events: none; }
.tabs { display: inline-flex; background: #e9efeb; border-radius: 10px; padding: 3px; flex-wrap: wrap; } .tab { border: 0; background: none; padding: 6px 13px; border-radius: 8px; font-weight: 600; color: #4c5c53; } .tab.on { background: #fff; color: var(--g800); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cfd9d3; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.stepper button { border: 0; background: #f1f5f2; width: 32px; height: 34px; font-size: 18px; font-weight: 700; } .stepper button:active { background: #dfe8e2; }
.stepper input.qty { width: 54px !important; text-align: center; border: 0 !important; padding: 6px 0 !important; border-radius: 0 !important; -moz-appearance: textfield; } .qty::-webkit-inner-spin-button { display: none; }
.lines { display: flex; flex-direction: column; } .line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2ef; flex-wrap: wrap; } .line:last-child { border-bottom: 0; }
.ln { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ln small { color: var(--mut); } .batch { display: flex; gap: 6px; } .batch input { width: 120px !important; padding: 6px 8px !important; }
.total-row { padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: 16px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; }
.check { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; } .check small { display: block; color: var(--mut); } .check.dis { opacity: .5; } .check input { margin-top: 4px; }
.modlist { display: flex; flex-direction: column; gap: 4px; } .mod { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid #eef2ef; } .mod:last-child { border: 0; } .mod small { display: block; color: var(--mut); } .mod input { margin-top: 4px; transform: scale(1.25); }

/* modal & toast */
.backdrop { position: fixed; inset: 0; background: rgba(10, 25, 16, .5); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 100; }
.phone-screen .backdrop { position: absolute; border-radius: inherit; align-items: flex-end; padding: 0; }
.modal { background: #fff; border-radius: 16px; width: min(480px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); } .modal.wide { width: min(780px, 100%); }
.phone-screen .modal { width: 100%; border-radius: 18px 18px 0 0; max-height: 88%; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); } .modal-head h3 { font-size: 16px; }
.modal-body { padding: 16px 18px; overflow: auto; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 300; align-items: center; width: min(92vw, 520px); }
.toast { background: #1b2b22; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: opacity .4s; text-align: center; } .toast.ok { background: var(--g700); } .toast.bad { background: #b3202c; } .toast.warn { background: #b45309; } .toast.out { opacity: 0; }

/* charts */
.chart svg { width: 100%; height: auto; display: block; } .gridl { stroke: #e7eee9; stroke-width: 1; } .axis { fill: #7b8a81; font-size: 10.5px; } .donut-big { font-size: 22px; font-weight: 800; fill: var(--ink); }
.donut-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; } .donut { width: 150px; } .legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 120px; flex: 1; }
.legend li { display: flex; align-items: center; gap: 8px; } .legend i { width: 10px; height: 10px; border-radius: 3px; } .legend b { margin-left: auto; }
.map { border-radius: 12px; overflow: hidden; background: #eaf1ec; border: 1px solid var(--line); } .map svg { display: block; width: 100%; height: 250px; } .road { fill: none; stroke: #fff; stroke-width: 5; opacity: .9; } .cdot { fill: #9db3a5; }
.pin path { fill: var(--g600); stroke: #fff; stroke-width: 1.5; } .pin.at path { fill: var(--blue); } .pin.route path { fill: var(--or); } .pin.idle path { fill: #7c8b83; } .pin-l { font-size: 10px; font-weight: 700; fill: #23372b; paint-order: stroke; stroke: #fff; stroke-width: 3; }
.map-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--mut); } .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; } .dot.at { background: var(--blue); } .dot.route { background: var(--or); } .dot.idle { background: #7c8b83; }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; } .rank li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef2ef; } .rank li:last-child { border: 0; } .rank .n { color: var(--mut); font-weight: 700; width: 14px; } .rank .nm { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .rank small { color: var(--mut); }
.exlist { list-style: none; margin: 0; padding: 0; } .exlist li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #eef2ef; cursor: pointer; } .exlist li:last-child { border: 0; } .exlist div { flex: 1; min-width: 0; } .exlist small { display: block; color: var(--mut); } .exlist time { color: var(--mut); font-size: 12px; }
.sev { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: #94a3b8; } .sev.high { background: var(--red); } .sev.medium { background: var(--or); } .sev.low { background: var(--blue); }
.excards { display: flex; flex-direction: column; gap: 10px; } .excard { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-left: 4px solid #cbd5d0; border-radius: 12px; padding: 13px 16px; }
.excard.sev-high { border-left-color: var(--red); } .excard.sev-medium { border-left-color: var(--or); } .excard.sev-low { border-left-color: var(--blue); } .excard.done { opacity: .65; }
.excard p { margin: 4px 0 3px; } .ex-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.eqrow { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 4px 2px; } .eq { flex: 1 0 118px; border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; background: #f3f6f4; } .eq small { color: #4c5c53; font-weight: 600; } .eq b { font-size: 17px; margin: 2px 0; } .eq em { font-style: normal; font-size: 11px; opacity: .75; }
.eq-op { display: flex; align-items: center; font-size: 19px; font-weight: 700; color: var(--mut); padding: 0 1px; }
.e-red { background: var(--red100); } .e-green { background: #dff3e6; } .e-blue { background: var(--blue100); } .e-orange { background: var(--or100); } .e-ok { background: #cdeed8; } .e-bad { background: #fbc9ce; }
.sub { margin: 4px 0 -6px; font-size: 13px; color: var(--mut); text-transform: uppercase; letter-spacing: .5px; }
.sig { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .sigpad { width: 100%; max-width: 340px; height: 110px; border: 1.5px dashed #b8c7be; border-radius: 10px; background: #fcfdfc; touch-action: none; } .sigimg { display: block; max-width: 260px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 22px; background: radial-gradient(1000px 500px at 80% -10%, #d6efdd, transparent), var(--bg); }
.login-card { background: #fff; border-radius: 20px; padding: 30px; width: min(980px, 100%); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.login-brand { display: flex; align-items: center; gap: 14px; } .login-brand h1 { font-size: 30px; letter-spacing: -1px; color: var(--g800); } .login-brand p { color: var(--mut); } .lead { color: #40514700; color: #3c4d43; max-width: 700px; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; } .role-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; } .role-card h4 { font-size: 15px; color: var(--g800); } .role-card p { color: var(--mut); font-size: 13px; margin-bottom: 4px; }
.user-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fafcfb; border-radius: 10px; padding: 8px 10px; text-align: left; } .user-btn span:nth-child(2) { flex: 1; font-weight: 600; } .user-btn:hover { background: var(--g50); border-color: #a9d3b7; }
.login-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; } .login-foot p { color: var(--mut); font-size: 13px; }

/* rep phone app */
.phone-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 44px; padding: 20px; background: radial-gradient(900px 420px at 15% 0, #d3ebda, transparent), var(--bg); }
.phone { width: 392px; height: min(830px, calc(100vh - 40px)); background: #0b1a12; border-radius: 44px; padding: 11px; box-shadow: 0 30px 70px rgba(10, 40, 20, .3); flex: none; }
.phone-screen { position: relative; height: 100%; background: #f6f9f7; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; }
.ph-head { background: var(--g800); color: #fff; padding: 14px 16px; } .ph-head.home { padding-bottom: 18px; } .ph-head .pill { padding: 3px 9px; font-size: 11.5px; }
.greet { margin-top: 12px; } .greet h2 { font-size: 24px; line-height: 1.15; } .greet p { opacity: .8; font-size: 12.5px; margin-top: 4px; }
.ph-title { font-size: 17px; } .ph-back { border: 0; background: none; color: #fff; display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 16px; padding: 0; max-width: 72%; } .ph-back .ico { transform: rotate(180deg); } .ph-back span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-body { flex: 1; overflow-y: auto; } .ph-pad { padding: 14px 14px 26px; display: flex; flex-direction: column; gap: 12px; }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px 10px; } .ph-tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--mut); padding: 4px; } .ph-tabs button.on { color: var(--g700); font-weight: 700; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; width: 100%; } .banner div { flex: 1; } .banner small { display: block; color: var(--mut); font-weight: 400; }
.banner.warn { background: var(--amber100); border-color: #f3d38b; } .banner.go { background: var(--g700); color: #fff; border: 0; } .banner.go small { color: #cfe8d8; } .banner.ok { background: #e2f5e8; border-color: #bfe0cb; }
.vlist { display: flex; flex-direction: column; gap: 8px; } .vrow { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; width: 100%; }
.vn { width: 30px; height: 30px; border-radius: 50%; background: #e7eee9; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; } .vrow.done .vn { background: var(--g600); color: #fff; } .vrow.inprogress .vn { background: var(--blue); color: #fff; } .vrow.missed .vn { background: var(--red); color: #fff; }
.vt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .vt small { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .act3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mbtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; text-decoration: none; text-align: center; width: 100%; color: var(--ink); }
.mbtn.primary { background: var(--g700); border-color: var(--g700); color: #fff; } .mbtn.dark { background: #1f2d3d; border-color: #1f2d3d; color: #fff; } .mbtn.soft { background: #edf3ef; } .mbtn.bad { background: var(--red); color: #fff; } .mbtn[disabled] { opacity: .45; pointer-events: none; }
.act3 .mbtn { flex-direction: column; gap: 3px; font-size: 12px; padding: 10px 4px; }
.todaybar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .todaybar div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; } .todaybar small { color: var(--mut); } .todaybar b { font-size: 13.5px; }
.custcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; } .custcard small { color: var(--mut); }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; text-align: left; } .crow.flat { border-radius: 10px; } .crow span { display: flex; flex-direction: column; min-width: 0; } .crow small { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clist { display: flex; flex-direction: column; gap: 8px; }
.totalbar { display: flex; justify-content: space-between; align-items: center; background: #e2f5e8; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.warnline { background: var(--amber100); color: var(--amber); padding: 9px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chip { border: 1px solid #cfd9d3; background: #fff; border-radius: 20px; padding: 7px 14px; font-weight: 600; } .chip.on { background: var(--g700); border-color: var(--g700); color: #fff; }
.okmark { width: 68px; height: 68px; border-radius: 50%; background: var(--g600); color: #fff; display: flex; align-items: center; justify-content: center; margin: 8px auto 0; }
.receipt { background: #fff; border: 1px dashed #b8c7be; border-radius: 12px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; } hr { border: 0; border-top: 1px dashed #c8d4cc; width: 100%; }
.remit { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.line.two { flex-direction: column; align-items: stretch; } .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .cols2 label { display: flex; flex-direction: column; gap: 3px; } .cols2 small { color: var(--mut); } .cols2 .stepper { width: 100%; } .cols2 .stepper input.qty { flex: 1; width: auto !important; }
input.price { width: 84px !important; padding: 4px 7px !important; font-size: 13px; }
.outbox { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 3px; } .outbox li { display: flex; justify-content: space-between; }
.phone-side { max-width: 320px; display: flex; flex-direction: column; gap: 14px; } .phone-side h3 { font-size: 22px; color: var(--g800); } .phone-side p { color: var(--mut); } .phone-side ul { margin: 0; padding-left: 18px; color: #35463d; display: flex; flex-direction: column; gap: 4px; }
.demo-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }

@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; overflow-x: auto; }
  .side .brand small, .side-foot { display: none; } .side nav { flex-direction: row; } .side nav a { white-space: nowrap; padding: 8px 10px; } .side nav a span:not(.ico) { font-size: 13px; }
  .content { padding: 16px 14px 50px; } .topbar { padding: 10px 14px; position: static; flex-wrap: wrap; } .uc-t { display: none; } .userchip { padding: 3px; }
  .grid2, .grid3, .form2, .form3 { grid-template-columns: 1fr; } .kpis, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .excard { grid-template-columns: 1fr; gap: 8px; } .ex-a { justify-content: flex-start; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .phone-side { display: none; }
}
@media (max-width: 520px) {
  .phone-wrap { padding: 0; } .phone { width: 100%; height: 100vh; border-radius: 0; padding: 0; background: none; box-shadow: none; } .phone-screen { border-radius: 0; }
  .login-card { padding: 20px 16px; }
}
@media print {
  .side, .topbar, .btn, .tabs, .sel, .icon-btn, #toasts { display: none !important; } .app { display: block; } .content { padding: 0; } .card { box-shadow: none; }
  body { background: #fff; }
}
