/* MARZERO shared design system v20261102.2. Source: approved corporate portal. */
:root{--mz-ink:#203238;--mz-muted:#65767d;--mz-primary:#008c9e;--mz-line:#dce6e7;--mz-paper:#f5f8f8;--mz-radius:15px;--mz-control-radius:7px;--mz-shadow:0 7px 22px #1a4b5010;--mz-font:Inter,'Segoe UI',Arial,sans-serif}
body[data-marzero-theme]{font-family:var(--mz-font);color:var(--mz-ink);background:var(--mz-paper);font-synthesis:none}
body[data-marzero-theme] :is(button,input,select,textarea){font:inherit;touch-action:manipulation}
body[data-marzero-theme] :is(input,select,textarea){border:1px solid #ccd8da;border-radius:var(--mz-control-radius);background:#fff;color:var(--mz-ink);padding:10px 12px;max-width:100%;font-size:14px}
body[data-marzero-theme] :is(input[type=checkbox],input[type=radio]){accent-color:var(--mz-primary);width:auto}
body[data-marzero-theme] :is(input,select,textarea):disabled{background:#f0f4f4;color:#65767d;opacity:1}
body[data-marzero-theme] :is(button,.btn,.button,.mz-button){border-radius:var(--mz-control-radius);transition:background .15s,border-color .15s;min-height:36px;font-size:13px;font-weight:600}
body[data-marzero-theme] :is(button.primary,.button.primary,.mz-button.primary,.btn.primary){background:var(--mz-primary);border-color:var(--mz-primary);color:#fff}
body[data-marzero-theme] :is(button.secondary,.button.secondary,.btn.secondary){background:#fff;border:1px solid #abc5c9;color:#007485}
body[data-marzero-theme] :is(.link,.text-btn){color:#007485}
body[data-marzero-theme] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #007a8a;outline-offset:3px}
body[data-marzero-theme] :is(.card,.panel,.crm-record,.rutero-group){border:1px solid var(--mz-line);border-radius:var(--mz-radius);box-shadow:var(--mz-shadow);background:#fff}
body[data-marzero-theme] :is(.muted,.sub,.note,.state-note){color:var(--mz-muted);line-height:1.55}
body[data-marzero-theme] :is(h1,h2,h3){color:var(--mz-ink);letter-spacing:-.025em}
body[data-marzero-theme] :is(header,#topbar,.topbar){border-color:var(--mz-line)}
body[data-marzero-theme] nav :is(button,a).active{background:#e4f5f5;color:#007485;border-color:#9fc9cb}
body[data-marzero-theme] :is(.tablewrap,.table-scroll,.table-wrap){max-width:100%;overflow:auto;overscroll-behavior-x:contain;border-radius:10px;border:1px solid var(--mz-line)}
body[data-marzero-theme] table{border-collapse:collapse;font-size:13px;line-height:1.45}
body[data-marzero-theme] th{background:#edf6f6;color:var(--mz-ink);font-weight:600;padding:12px 10px;border-bottom:1px solid #abc5c9;vertical-align:top}
body[data-marzero-theme] td{padding:10px;border-bottom:1px solid var(--mz-line);vertical-align:top}
body[data-marzero-theme] .num{font-variant-numeric:tabular-nums;text-align:right}
body[data-marzero-theme] :is(dialog,.modal){border-radius:17px;border-color:var(--mz-line);box-shadow:0 25px 100px #17363a40;max-width:calc(100vw - 24px);color:var(--mz-ink)}
body[data-marzero-theme] dialog::backdrop{background:#142a3a70}
body[data-marzero-theme] :is(.loading,.empty){padding:24px;color:var(--mz-muted);border-radius:12px;background:#f5f8f8;line-height:1.6}
body[data-marzero-theme] :is(.toolbar,.filter-row){gap:12px;align-items:end;flex-wrap:wrap}
body[data-marzero-theme] :is(.crm-chip,.rutero-days button){border-radius:7px}
body[data-marzero-theme] :is(.crm-chip.selected,.rutero-days button.active){background:#e4f5f5;color:#007485;border-color:#9fc9cb}
/* Existing semantic colors, debt highlights, route statuses and warnings remain authoritative. */
@media(max-width:760px){body[data-marzero-theme] :is(button,.btn,.button,.mz-button){min-height:42px}body[data-marzero-theme] :is(input,select,textarea){font-size:16px}body[data-marzero-theme] :is(.toolbar,.filter-row)>*{max-width:100%}body[data-marzero-theme] :is(.card,.panel,.crm-record){border-radius:12px}body[data-marzero-theme] main{min-width:0}body[data-marzero-theme] .tablewrap{width:100%}}
@media(prefers-reduced-motion:reduce){body[data-marzero-theme] *{transition:none!important;scroll-behavior:auto!important}}

body[data-marzero-theme]{--mz-green:#008c9e;--mz-mint:#65b9ba;--mz-ink:#203238;--mz-muted:#65767d;--mz-line:#dce6e7;--mz-bg:#f5f8f8;--ink:#203238;--navy:#203238;--teal:#008c9e;--green:#008c9e;--bg:#f5f8f8;--muted:#65767d;--line:#dce6e7}
body[data-marzero-theme] :is(#refresh,.mz-button.primary){background:#008c9e;color:white;border-color:#007485;box-shadow:0 4px 14px #1a4b5018}
body[data-marzero-theme] :is(.mz-bottom-nav,.mz-filter-toggle,.sidebar,aside){border-color:#dce6e7}
body[data-marzero-theme] :is(.mz-bottom-nav .active,aside nav button.active){background:#e4f5f5;color:#007485}
