:root {
  color-scheme: dark;
  --ink: #f2f4f3;
  --muted: #959d99;
  --line: #282e2b;
  --canvas: #090b0a;
  --paper: #101311;
  --white: #151917;
  --green: #c7ff45;
  --green-strong: #d9ff85;
  --green-soft: #242f13;
  --purple: #ad95ff;
  --purple-soft: #2a2340;
  --blue: #72c8ff;
  --blue-soft: #1b2c37;
  --amber: #f1bd61;
  --amber-soft: #342918;
  --red: #ff7777;
  --red-soft: #3a2022;
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
  --shadow-small: 0 7px 22px rgba(0, 0, 0, .17);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.5 "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.brand-dot, .heading-period { color: var(--green); }

/* Acesso */
.auth-screen { display: flex; min-height: 100vh; flex-direction: column; padding: 27px clamp(18px, 5vw, 76px) 32px; background: radial-gradient(ellipse at 9% 92%, rgba(199, 255, 69, .08), transparent 31%), radial-gradient(ellipse at 93% 8%, rgba(173, 149, 255, .07), transparent 28%), var(--canvas); }
.auth-brand, .sidebar-brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; color: var(--ink); font: 800 20px/1 "Manrope", sans-serif; letter-spacing: -.9px; text-decoration: none; }
.brand-mark { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(199, 255, 69, .22); border-radius: 13px; background: linear-gradient(145deg, #d8ff75, #9acb27); color: #11150b; font: 800 20px/1 "Manrope", sans-serif; letter-spacing: -2px; box-shadow: 0 8px 27px rgba(183, 231, 61, .15); }
.brand-mark span { color: #506a19; }
.auth-layout { display: grid; width: min(100%, 1180px); min-height: min(690px, calc(100vh - 132px)); flex: 1; grid-template-columns: minmax(385px, .9fr) minmax(420px, 1.1fr); margin: 28px auto 0; overflow: hidden; border: 1px solid #282d2a; border-radius: 26px; background: linear-gradient(140deg, #121513, #0e100f); box-shadow: var(--shadow); }
.auth-card { align-self: center; padding: 60px clamp(34px, 6vw, 82px); }
.eyebrow { color: var(--green); font: 700 9px/1.4 "Manrope", sans-serif; letter-spacing: 1.55px; }
.auth-card h1 { margin: 14px 0 8px; color: var(--ink); font: 800 clamp(31px, 3vw, 40px)/1.16 "Manrope", sans-serif; letter-spacing: -1.8px; }
.auth-intro { margin: 0 0 29px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-stack { display: grid; gap: 16px; }
.field { display: grid; min-width: 0; gap: 8px; color: #d8ddda; font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #303633; border-radius: 10px; padding: 12px 13px; background: #0c0f0d; color: var(--ink); font-size: 12px; font-weight: 500; transition: border-color .16s, box-shadow .16s, background .16s; }
.field input::placeholder, .field textarea::placeholder { color: #626b66; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(199, 255, 69, .75); outline: none; box-shadow: 0 0 0 4px rgba(199, 255, 69, .09); }
.field textarea { resize: vertical; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 0 16px; font-size: 11px; font-weight: 800; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button span { font-size: 16px; font-weight: 600; }
.button-primary { background: var(--green); color: #11150a; box-shadow: 0 5px 19px rgba(199, 255, 69, .14); }
.button-primary:hover { background: var(--green-strong); box-shadow: 0 8px 24px rgba(199, 255, 69, .2); }
.button-secondary { border-color: #343a36; background: #1a1e1b; color: var(--ink); }
.button-secondary:hover, .button-quiet:hover { border-color: #4a514c; background: #222723; }
.button-quiet { background: transparent; color: var(--green); }
.button-wide { width: 100%; min-height: 47px; }
.form-stack .button { margin-top: 3px; }
.auth-switch { margin: 19px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 800; }
.text-button:hover { color: var(--green-strong); text-decoration: underline; }
.auth-aside { position: relative; display: flex; min-height: 100%; flex-direction: column; justify-content: center; overflow: hidden; padding: 55px clamp(35px, 6vw, 82px); background: radial-gradient(circle at 78% 17%, rgba(199, 255, 69, .12), transparent 25%), radial-gradient(circle at 103% 102%, rgba(173, 149, 255, .1), transparent 28%), linear-gradient(145deg, #171b18, #0c0f0d 78%); color: #fff; }
.auth-aside::before, .auth-aside::after { position: absolute; width: 390px; height: 390px; border: 1px solid rgba(218, 255, 146, .1); border-radius: 50%; content: ""; pointer-events: none; }
.auth-aside::before { top: -235px; right: -125px; }
.auth-aside::after { top: -155px; right: -45px; }
.aside-content { position: relative; z-index: 1; max-width: 460px; }
.aside-icon { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 30px; border: 1px solid rgba(199, 255, 69, .2); border-radius: 17px; background: rgba(199, 255, 69, .08); color: var(--green); box-shadow: 0 0 28px rgba(199, 255, 69, .07); }
.aside-icon svg { width: 29px; height: 29px; }
.aside-kicker { margin: 0 0 14px; color: var(--green); font: 800 9px/1.4 "Manrope", sans-serif; letter-spacing: 1.45px; }
.aside-content h2 { margin: 0; color: #f7f9f7; font: 800 clamp(37px, 4.3vw, 58px)/1.02 "Manrope", sans-serif; letter-spacing: -2.5px; }
.aside-content h2 span { color: var(--green); }
.aside-content > p:not(.aside-kicker) { max-width: 350px; margin: 20px 0 25px; color: #aab2ad; font-size: 12px; line-height: 1.75; }
.aside-points { display: grid; gap: 13px; color: #e0e5e1; font-size: 11px; }
.aside-points span { display: flex; align-items: center; gap: 10px; }
.aside-points i { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: rgba(199, 255, 69, .12); color: var(--green); font-size: 10px; font-style: normal; }
.aside-footer { position: absolute; bottom: 24px; left: clamp(35px, 6vw, 82px); display: flex; align-items: center; gap: 10px; color: #737d76; font-size: 9px; }
.aside-line { width: 24px; height: 1px; background: var(--green); }
.auth-divider, #demo-login, .demo-note { display: none !important; }
.form-message { border: 1px solid #573234; border-radius: 9px; padding: 10px 12px; background: var(--red-soft); color: var(--red); font-size: 10px; line-height: 1.5; }

/* Estrutura */
.app-shell:not(.hidden) { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 15; inset: 0 auto 0 0; display: flex; width: 250px; flex-direction: column; border-right: 1px solid #212522; padding: 25px 17px 17px; background: #060807; color: #d6dcd8; }
.sidebar-brand { gap: 10px; margin: 0 8px 43px; color: #f5f7f5; font-size: 18px; }
.sidebar-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.sidebar-brand .brand-dot { color: var(--green); }
.sidebar-label { margin: 0 11px 10px; color: #626b65; font: 800 8px/1.4 "Manrope", sans-serif; letter-spacing: 1.35px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; width: 100%; min-height: 45px; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 10px; padding: 0 12px; background: transparent; color: #929b95; font-size: 11px; font-weight: 700; text-align: left; transition: color .15s, background .15s, border-color .15s; }
.nav-item:hover { background: #111512; color: #f3f5f3; }
.nav-item.active { border-color: rgba(199, 255, 69, .12); background: linear-gradient(100deg, #202916, #141812); color: #f4f8ea; }
.nav-item.active::before { position: absolute; top: 9px; bottom: 9px; left: -18px; width: 3px; border-radius: 0 4px 4px 0; background: var(--green); box-shadow: 0 0 12px rgba(199, 255, 69, .45); content: ""; }
.nav-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border: 1px solid #272d29; border-radius: 7px; background: #111512; color: #bec6c0; font-size: 12px; font-weight: 800; }
.nav-item.active .nav-icon { border-color: rgba(199, 255, 69, .19); background: #2a3518; color: var(--green); }
.nav-count { display: grid; min-width: 21px; height: 21px; place-items: center; margin-left: auto; border: 1px solid #443720; border-radius: 7px; background: #2a2114; color: var(--amber); font-size: 9px; }
.sidebar-spacer { flex: 1; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid #222724; padding: 15px 4px 2px; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(199, 255, 69, .2); border-radius: 11px; background: #202817; color: var(--green); font: 800 11px "Manrope", sans-serif; }
.profile-meta { display: grid; min-width: 0; flex: 1; gap: 4px; }
.profile-meta strong { overflow: hidden; color: #e9eeea; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta span { overflow: hidden; color: #79837c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 15px; transition: background .15s, color .15s, border-color .15s; }
.icon-button:hover { border-color: #343b36; background: #1b201c; color: var(--ink); }
.logout-button { color: #929d95; }
.logout-button:hover { border-color: #303631; background: #151a16; color: var(--green); }
.main-area { width: calc(100% - 250px); min-width: 0; min-height: 100vh; margin-left: 250px; padding: 0 clamp(22px, 4vw, 54px); background: radial-gradient(ellipse at 82% 0%, rgba(199, 255, 69, .025), transparent 32%), var(--canvas); }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; margin: 0 calc(clamp(22px, 4vw, 54px) * -1); border-bottom: 1px solid var(--line); padding: 0 clamp(22px, 4vw, 54px); background: rgba(9, 11, 10, .9); backdrop-filter: blur(17px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #77817b; font-size: 10px; white-space: nowrap; }
.breadcrumbs strong { color: #e7ebe8; font-weight: 700; }
.crumb-slash { color: #414943; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.search-box { display: flex; width: min(280px, 26vw); height: 37px; align-items: center; gap: 8px; border: 1px solid #2b322d; border-radius: 10px; padding: 0 10px; background: #101311; color: #88928b; transition: border-color .15s, background .15s; }
.search-box:focus-within { border-color: rgba(199, 255, 69, .55); background: #131713; }
.search-box > span { font-size: 18px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #737d76; }
.search-box kbd { border: 1px solid #343b36; border-radius: 5px; padding: 2px 5px; color: #7f8982; font: 8px "DM Sans", sans-serif; white-space: nowrap; }
.theme-toggle { border-color: #2a312c; background: #111512; color: var(--green); }
.top-new { min-height: 38px; white-space: nowrap; }
.mobile-menu { display: none; }
.demo-banner { display: flex; align-items: center; gap: 10px; margin: 16px 0 -16px; border: 1px solid #3b4725; border-radius: 10px; padding: 10px 13px; background: #1b2312; color: #d8f2a4; font-size: 10px; }
.demo-banner button { margin-left: auto; border: 0; background: transparent; color: var(--green); font-size: 9px; font-weight: 800; }
.view-section { width: min(100%, 1400px); margin: 0 auto; padding: 38px 0 28px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { margin: 0; color: var(--ink); font: 800 clamp(27px, 3vw, 36px)/1.1 "Manrope", sans-serif; letter-spacing: -1.5px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.page-heading .button { flex: 0 0 auto; }

/* Painel */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.stat-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #282e2b; border-radius: 14px; padding: 16px 17px 14px; background: linear-gradient(145deg, #151917, #101311); box-shadow: var(--shadow-small); transition: transform .18s, border-color .18s; }
.stat-card:hover { transform: translateY(-2px); border-color: #434b44; }
.stat-card::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--green); content: ""; opacity: .9; }
.stat-card:nth-child(2)::before { background: #77dba0; }
.stat-card:nth-child(3)::before { background: var(--amber); }
.stat-card:nth-child(4)::before { background: var(--blue); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 700; }
.stat-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid #303730; border-radius: 9px; background: #1a201b; color: var(--green); font-size: 12px; font-weight: 800; }
.icon-violet { border-color: #42375f; background: var(--purple-soft); color: var(--purple); }
.icon-green { border-color: #304937; background: #1b2a20; color: #83e2a6; }
.icon-amber { border-color: #4b3a20; background: var(--amber-soft); color: var(--amber); }
.icon-blue { border-color: #2c4555; background: var(--blue-soft); color: var(--blue); }
.stat-value { margin: 12px 0 8px; color: #f4f7f5; font: 800 27px/1 "Manrope", sans-serif; letter-spacing: -1px; }
.stat-currency { color: var(--green); font-size: clamp(19px, 2vw, 24px); }
.stat-foot { display: flex; align-items: center; gap: 7px; color: #7e8982; font-size: 8px; line-height: 1.45; }
.stat-indicator { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(199, 255, 69, .35); }
.dot-violet { background: var(--purple); box-shadow: 0 0 8px rgba(173,149,255,.25); }
.dot-green { background: #77dba0; }
.dot-amber { background: var(--amber); }
.dot-blue { background: var(--blue); }
.content-card { min-width: 0; overflow: hidden; border: 1px solid #282e2b; border-radius: 15px; background: linear-gradient(155deg, #151917, #111412 68%); box-shadow: var(--shadow-small); }
.card-heading, .sales-report-heading, .sales-list-heading, .client-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.card-heading { border-bottom: 1px solid var(--line); }
.card-heading h2, .sales-report-heading h2, .sales-list-heading h2, .client-summary h2 { margin: 0; color: var(--ink); font: 700 13px/1.3 "Manrope", sans-serif; }
.card-heading p, .sales-report-heading p, .sales-list-heading p, .client-summary p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.finance-card { margin-bottom: 15px; }
.finance-period { flex: 0 0 auto; border: 1px solid #303732; border-radius: 7px; padding: 6px 9px; background: #101411; color: var(--muted); font-size: 8px; }
.finance-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 15px 20px 3px; }
.finance-summary article { display: grid; gap: 6px; }
.finance-summary article span { color: var(--muted); font-size: 9px; }
.finance-summary article strong { color: var(--ink); font: 700 17px/1.2 "Manrope", sans-serif; letter-spacing: -.4px; }
.finance-summary article:last-child strong { color: var(--green); }
.negative-value { color: var(--red) !important; }
.finance-chart { width: 100%; height: 218px; padding: 13px 14px 0; }
.finance-chart svg, .sales-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #2b322e; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis-label, .chart-month-label { fill: #87918a; font: 8px "DM Sans", sans-serif; }
.chart-point { stroke: #171b18; stroke-width: 2; }
.finance-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 17px; padding: 7px 16px 12px; color: var(--muted); font-size: 8px; }
.finance-legend span { display: inline-flex; align-items: center; gap: 6px; }
.finance-legend i { width: 8px; height: 8px; border-radius: 3px; background: #8060df; }
.finance-legend .legend-total { background: #8060df; }
.finance-legend .legend-cost { background: #d4a344; }
.finance-legend .legend-profit { background: #36aa7b; }
.finance-foot { margin: 0; border-top: 1px solid var(--line); padding: 10px 18px; color: var(--muted); font-size: 8px; line-height: 1.5; text-align: center; }
.recent-card { margin-bottom: 15px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px; }
.bottom-grid .content-card { min-height: 183px; }
.attention-mark { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #4b3a20; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-weight: 800; }
.attention-list { padding: 4px 14px 12px; }
.attention-row { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-radius: 9px; padding: 9px; background: transparent; text-align: left; }
.attention-row:hover { background: #1a1f1b; }
.attention-symbol { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border: 1px solid #493a22; border-radius: 9px; background: var(--amber-soft); color: var(--amber); }
.attention-meta { display: grid; min-width: 0; flex: 1; gap: 4px; }
.attention-meta strong { overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.attention-meta span, .attention-date { color: var(--muted); font-size: 8px; }
.attention-date { white-space: nowrap; }
.small-empty { padding: 23px 16px; color: var(--muted); font-size: 10px; }
.small-empty span { color: var(--green); font-weight: 800; }
.shortcut-card { display: grid; grid-template-columns: minmax(90px, .55fr) minmax(0, 1fr); align-items: center; gap: 13px; padding: 21px; background: radial-gradient(circle at 15% 50%, rgba(199,255,69,.08), transparent 38%), linear-gradient(130deg, #171b18, #111412); }
.shortcut-card h2 { margin: 7px 0; color: var(--ink); font: 800 16px/1.25 "Manrope", sans-serif; letter-spacing: -.45px; }
.shortcut-card p { max-width: 270px; margin: 0 0 13px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.shortcut-card .button { min-height: 35px; font-size: 9px; }
.shortcut-art { position: relative; display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid #39442a; border-radius: 26px; background: #1a2112; color: var(--green); font-size: 31px; }
.art-ring { position: absolute; inset: 12px; border: 1px solid rgba(199, 255, 69, .19); border-radius: 22px; transform: rotate(12deg); }

/* Tabelas e listas */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #101311; }
th { border-bottom: 1px solid var(--line); padding: 11px 13px; color: #7f8982; font: 800 7px/1.3 "Manrope", sans-serif; letter-spacing: .85px; white-space: nowrap; }
td { border-bottom: 1px solid #242a26; padding: 11px 13px; color: #b3bbb6; font-size: 9px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.025); }
.align-right { text-align: right !important; white-space: nowrap; }
.repair-person, .client-name { display: flex; min-width: 140px; align-items: center; gap: 9px; }
.repair-person > span:last-child, .client-name > span:last-child { display: grid; min-width: 0; gap: 4px; }
.repair-person strong, .client-name strong, .device-cell strong { overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.repair-person small, .client-name small, .device-cell small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mini-avatar, .client-initial { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid #343c35; border-radius: 10px; background: #1a201b; color: var(--green); font: 800 8px "Manrope", sans-serif; }
.device-cell { display: grid; min-width: 125px; gap: 4px; }
.issue-cell { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; min-height: 25px; align-items: center; border: 1px solid transparent; border-radius: 20px; padding: 4px 9px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.status-waiting { border-color: #594422; background: var(--amber-soft); color: var(--amber); }
.status-delivered { border-color: #3a4c1e; background: var(--green-soft); color: var(--green); }
select.status-pill { max-width: 156px; padding-right: 7px; cursor: pointer; }
.price-cell { color: var(--ink); font-weight: 700; white-space: nowrap; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.icon-button.row-action { width: 27px; height: 27px; flex-basis: 27px; border-color: #2c332e; background: #131714; color: #a3aca5; font-size: 13px; }
.icon-button.row-action:hover { border-color: #566149; background: #20271a; color: var(--green); }
.icon-button.delete-action { border-color: #392a2b; background: #1c1516; color: #d07a7a; }
.icon-button.delete-action svg { width: 14px; height: 14px; }
.icon-button.delete-action:hover { border-color: #873f43; background: #391e20; color: #ff8585; }
.listing-card { margin-bottom: 20px; }
.listing-toolbar { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 16px; }
.filter-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.filter-tab { border: 1px solid transparent; border-radius: 8px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.filter-tab:hover { background: #1a1f1b; color: var(--ink); }
.filter-tab.active { border-color: rgba(199,255,69,.14); background: #202817; color: var(--green); }
.list-count { color: var(--muted); font-size: 8px; white-space: nowrap; }
.empty-state { padding: 38px 17px; color: var(--muted); text-align: center; }
.empty-illustration { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 12px; border: 1px solid #39442a; border-radius: 15px; background: #1a2112; color: var(--green); font-size: 19px; }
.empty-state strong { display: block; color: var(--ink); font: 700 11px "Manrope", sans-serif; }
.empty-state p { margin: 7px 0 14px; font-size: 9px; line-height: 1.5; }
.empty-state .button { min-height: 34px; font-size: 9px; }
.client-summary { padding-bottom: 14px; }
.client-search { width: min(245px, 42vw); }
.client-summary + .table-wrap { border-top: 1px solid var(--line); }
.client-contact { color: #b2bab4; font-size: 9px; }
.client-contact small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.count-badge { display: inline-grid; min-width: 25px; height: 24px; place-items: center; border: 1px solid #303732; border-radius: 8px; background: #101411; color: var(--ink); font-size: 8px; font-weight: 800; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0 19px; color: #717b74; font-size: 8px; }
.footer-heart { color: #d96c70; }

/* Vendas */
.sales-summary-card { margin-bottom: 16px; }
.sales-report-heading { align-items: flex-start; padding-bottom: 15px; }
.sales-report-heading > div { max-width: 570px; }
.year-select-label { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 700; }
.year-select-label select { min-width: 138px; border: 1px solid #303732; border-radius: 9px; padding: 9px 11px; background: #101411; color: var(--ink); font-size: 9px; font-weight: 700; }
.sales-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; padding: 0 20px 19px; }
.sales-kpis article { display: grid; min-width: 0; min-height: 95px; align-content: start; gap: 7px; border: 1px solid #2c332e; border-radius: 11px; padding: 12px 13px; background: #101311; }
.sales-kpis article span { color: var(--muted); font-size: 8px; font-weight: 700; }
.sales-kpis article strong { overflow-wrap: anywhere; color: var(--ink); font: 800 17px/1.2 "Manrope", sans-serif; letter-spacing: -.4px; }
.sales-kpis article:nth-child(4) strong { color: var(--green); }
.sales-kpis article strong.negative-value { color: var(--red) !important; }
.sales-kpis article small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.sales-chart-heading { padding: 0 20px 8px; }
.sales-chart-heading h3, .sales-analysis-heading h3 { margin: 0; color: var(--ink); font: 700 11px/1.4 "Manrope", sans-serif; }
.sales-chart-heading p, .sales-analysis-heading p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.sales-chart-wrap { overflow-x: auto; padding: 0 17px; scrollbar-color: #434b43 transparent; scrollbar-width: thin; }
.sales-chart { width: 100%; min-width: 760px; height: 295px; }
.sales-chart-bar { transition: opacity .15s ease; }
.sales-chart-bar:hover { opacity: .72; }
.sales-zero-line { stroke: #313833; stroke-width: 1.4; }
.sales-legend { padding-top: 5px; }
.sales-chart-note { margin: 0; border-bottom: 1px solid var(--line); padding: 0 20px 14px; color: var(--muted); font-size: 8px; text-align: center; }
.sales-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 12px; padding: 16px 19px 19px; }
.sales-analysis-block { min-width: 0; overflow: hidden; border: 1px solid #2b322d; border-radius: 11px; background: #101311; }
.sales-analysis-heading { min-height: 68px; padding: 12px 13px 9px; }
.sales-monthly-wrap, .sales-top-table-wrap { max-height: 360px; overflow: auto; border-top: 1px solid var(--line); }
.sales-monthly-table { min-width: 750px !important; }
.sales-top-table { min-width: 390px !important; }
.sales-monthly-table th, .sales-monthly-table td { padding: 10px 11px; }
.sales-monthly-table .month-name { color: var(--ink); text-transform: capitalize; white-space: nowrap; }
.sales-year-total td { border-top: 2px solid #343c35; background: #191e1a; color: var(--ink); font-weight: 800; }
.sales-top-products .table-wrap td { padding-top: 11px; padding-bottom: 11px; }
.sales-top-table td:first-child strong { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales-chart-empty { margin: 30px 0; color: var(--muted); font-size: 10px; text-align: center; }
.profit-cell { color: var(--green) !important; font-weight: 800; white-space: nowrap; }
.negative-cell { color: var(--red) !important; font-weight: 800; white-space: nowrap; }
.sales-list-card { margin-bottom: 20px; }
.sales-search { width: min(260px, 40vw); }
.sales-table { min-width: 750px !important; }
.sale-product { color: var(--ink) !important; font-weight: 700; }
.sales-add { min-height: 40px; }

/* Formulários */
.modal-dialog { width: min(660px, calc(100% - 28px)); max-height: min(90vh, 850px); border: 1px solid #343b36; border-radius: 18px; padding: 0; background: #111513; color: var(--ink); box-shadow: 0 26px 90px rgba(0,0,0,.55); }
.modal-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); }
.modal-form { max-height: min(90vh, 850px); overflow-y: auto; padding: 23px 26px 22px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 19px; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.modal-heading h2 { margin: 5px 0 0; color: var(--ink); font: 800 19px/1.25 "Manrope", sans-serif; letter-spacing: -.6px; }
.modal-heading .eyebrow { font-size: 8px; }
.modal-close { border-color: #303732; background: #1b201c; color: var(--ink); font-size: 20px; }
.form-section-title { display: flex; align-items: center; gap: 9px; margin: 17px 0 12px; color: var(--ink); font: 700 10px "Manrope", sans-serif; }
.form-section-title span { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #3d4829; border-radius: 8px; background: #202817; color: var(--green); font-size: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .field { gap: 6px; color: #d3d9d4; font-size: 9px; }
.form-grid .field input, .form-grid .field select, .form-grid .field textarea { border-radius: 8px; padding: 10px 11px; font-size: 10px; }
.form-span-2 { grid-column: span 2; }
.optional-details { margin-top: 15px; border: 1px solid #2d342f; border-radius: 10px; padding: 0 12px 12px; }
.optional-details summary { padding: 12px 0; color: var(--green); font-size: 9px; font-weight: 800; cursor: pointer; }
.optional-details[open] summary { margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.profit-preview { margin: 14px 0 0; border: 1px solid #3b4827; border-radius: 9px; padding: 10px 12px; background: #202817; color: var(--green); font-size: 9px; line-height: 1.45; }
.profit-preview.profit-negative { border-color: #593437; background: var(--red-soft); color: var(--red); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.modal-actions .button { min-height: 37px; font-size: 9px; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 21px; max-width: min(370px, calc(100% - 40px)); border: 1px solid #39432d; border-radius: 11px; padding: 12px 16px; background: #202817; color: #f0ffd0; box-shadow: var(--shadow); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #6b3d40; background: #3b2023; color: #ffd6d5; }

/* Tema claro opcional */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #1c2420;
  --muted: #748079;
  --line: #e1e7e3;
  --canvas: #f1f4f2;
  --paper: #f8faf9;
  --white: #fff;
  --green: #6d9e18;
  --green-strong: #587f11;
  --green-soft: #eef6de;
  --purple: #7055dc;
  --purple-soft: #f0edff;
  --blue: #3679b7;
  --blue-soft: #e8f1fb;
  --amber: #9a6812;
  --amber-soft: #fff2d9;
  --red: #bc4f54;
  --red-soft: #fff0ef;
  --shadow: 0 18px 50px rgba(26, 53, 41, .08);
  --shadow-small: 0 4px 15px rgba(23, 45, 35, .045);
}
html[data-theme="light"] .main-area { background: radial-gradient(ellipse at 82% 0%, rgba(109,158,24,.035), transparent 32%), var(--canvas); }
html[data-theme="light"] .topbar { background: rgba(241,244,242,.92); }
html[data-theme="light"] .stat-card, html[data-theme="light"] .content-card { background: var(--white); }
html[data-theme="light"] .sidebar { background: #101512; }
html[data-theme="light"] .sales-kpis article, html[data-theme="light"] .sales-analysis-block { background: #f8faf9; }
html[data-theme="light"] .sales-year-total td, html[data-theme="light"] thead { background: #f0f3f1; }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea { border-color: var(--line); background: #fff; color: var(--ink); }
html[data-theme="light"] .modal-dialog { border-color: var(--line); background: #fff; color: var(--ink); }
html[data-theme="light"] .modal-close { border-color: var(--line); background: #f3f5f4; }

@media (max-width: 1120px) {
  .sidebar { width: 220px; }
  .main-area { width: calc(100% - 220px); margin-left: 220px; }
  .stats-grid { gap: 10px; }
  .sales-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sales-analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .auth-screen { padding: 19px 14px 24px; }
  .auth-brand { font-size: 18px; }
  .auth-layout { display: block; min-height: auto; flex: 0 0 auto; margin-top: 22px; }
  .auth-card { padding: 38px clamp(22px, 8vw, 42px); }
  .auth-aside { display: none; }
  .sidebar { width: 245px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 35px rgba(0,0,0,.4); }
  .main-area { width: 100%; margin-left: 0; padding: 0 16px; }
  .topbar { min-height: 62px; gap: 7px; margin: 0 -16px; padding: 0 12px; }
  .mobile-menu { display: inline-grid; width: 31px; height: 31px; flex: 0 0 31px; border-color: #2d342f; background: #131714; color: var(--ink); font-size: 13px; }
  .breadcrumbs { gap: 5px; margin-right: auto; font-size: 8px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .search-box { width: 30px; justify-content: center; border-color: transparent; padding: 0; background: transparent; }
  .topbar-actions .search-box input, .topbar-actions .search-box kbd { display: none; }
  .topbar-actions .search-box > span { font-size: 20px; }
  .topbar-actions .theme-toggle { width: 31px; height: 31px; flex-basis: 31px; }
  .top-new { min-height: 33px; gap: 5px; padding: 0 8px; font-size: 8px; }
  .top-new span { font-size: 13px; }
  .view-section { padding: 26px 0 21px; }
  .page-heading { align-items: center; margin-bottom: 16px; }
  .page-heading .eyebrow { margin-bottom: 6px; font-size: 7px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { max-width: 350px; font-size: 9px; }
  .page-heading .heading-new { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 11px; }
  .stat-card { padding: 11px 10px; }
  .stat-top { font-size: 8px; }
  .stat-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .stat-value { margin: 10px 0 7px; font-size: 23px; }
  .stat-currency { font-size: 16px; }
  .stat-foot { font-size: 7px; }
  .card-heading, .sales-report-heading, .sales-list-heading, .client-summary { padding: 14px; }
  .card-heading h2, .sales-report-heading h2, .sales-list-heading h2, .client-summary h2 { font-size: 11px; }
  .card-heading p, .sales-report-heading p, .sales-list-heading p, .client-summary p { font-size: 8px; }
  .finance-summary { gap: 7px; padding: 12px 13px 3px; }
  .finance-summary article span { font-size: 7px; }
  .finance-summary article strong { font-size: 12px; }
  .finance-chart { height: 185px; padding: 9px 6px 0; }
  .finance-legend { gap: 11px; font-size: 7px; }
  .finance-foot { padding: 9px 12px; font-size: 7px; }
  .bottom-grid { grid-template-columns: 1fr; gap: 10px; }
  .shortcut-card { grid-template-columns: 70px 1fr; min-height: 142px; padding: 13px; }
  .shortcut-art { width: 65px; height: 65px; border-radius: 20px; font-size: 23px; }
  .shortcut-card h2 { font-size: 14px; }
  .shortcut-card p { font-size: 8px; }
  .repair-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: -2px 0 11px; }
  .repair-stats article { align-items: flex-start; gap: 6px; padding: 9px 7px; border-color: #2d342f; background: #141815; }
  .repair-stats article span { color: var(--muted); font-size: 7px; line-height: 1.35; }
  .repair-stats article strong { color: var(--ink); font: 800 18px "Manrope", sans-serif; }
  .listing-toolbar { min-height: 47px; padding: 0 8px; }
  .filter-tab { padding: 7px; font-size: 7px; }
  .list-count { margin-left: 5px; font-size: 7px; }
  .table-wrap table { min-width: 680px; }
  .bottom-grid .content-card { min-height: 0; }
  .sales-report-heading { align-items: flex-start; gap: 9px; }
  .year-select-label { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 7px; }
  .year-select-label select { min-width: 115px; padding: 8px; font-size: 8px; }
  .sales-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 13px 14px; }
  .sales-kpis article { min-height: 77px; gap: 6px; padding: 9px; }
  .sales-kpis article span, .sales-kpis article small { font-size: 7px; }
  .sales-kpis article strong { font-size: 15px; }
  .sales-chart-heading { padding: 0 14px 7px; }
  .sales-chart-wrap { padding: 0 7px; }
  .sales-chart { height: 250px; min-width: 730px; }
  .sales-chart-note { padding: 0 12px 11px; font-size: 7px; line-height: 1.5; }
  .sales-analysis-grid { gap: 9px; padding: 12px 11px 13px; }
  .sales-analysis-heading { min-height: auto; padding: 11px; }
  .sales-monthly-wrap, .sales-top-table-wrap { max-height: 300px; }
  .sales-search { width: 130px; height: 33px; }
  .sales-add { min-height: 35px; padding: 0 9px; font-size: 8px; }
  .app-footer { font-size: 7px; }
}
@media (max-width: 390px) {
  .main-area { padding: 0 11px; }
  .topbar { margin-right: -11px; margin-left: -11px; padding-right: 9px; }
  .breadcrumbs { gap: 4px; font-size: 7px; }
  .top-new { padding: 0 6px; font-size: 7px; }
  .topbar-actions { gap: 3px; }
  .page-heading h1 { font-size: 21px; }
  .stat-card { padding: 9px 7px; }
  .stat-top { font-size: 7px; }
  .stat-value { font-size: 20px; }
  .stat-currency { font-size: 14px; }
  .stat-foot { font-size: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .modal-form { padding: 18px 15px; }
  .client-summary { align-items: flex-start; gap: 8px; }
  .client-search { width: 115px; }
  .app-footer > span:last-child { display: none; }
}

/* Redesign preto: contraste limpo, superfícies planas e ações claras. */
:root {
  color-scheme: dark;
  --ink: #f1f1f2;
  --muted: #929398;
  --line: #28292d;
  --canvas: #080809;
  --paper: #101113;
  --white: #141518;
  --green: #e2e2e5;
  --green-strong: #ffffff;
  --green-soft: #25262a;
  --purple: #b5b6bd;
  --purple-soft: #222327;
  --blue: #aab5c1;
  --blue-soft: #1c2025;
  --amber: #d8c08c;
  --amber-soft: #2c271e;
  --red: #f08083;
  --red-soft: #321e20;
  --shadow: 0 20px 60px rgba(0, 0, 0, .38);
  --shadow-small: 0 5px 18px rgba(0, 0, 0, .22);
  --radius: 12px;
}
html, body { background: #080809; }
body { font-family: "DM Sans", sans-serif; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #f2f2f3; }
.auth-screen { background: #080809; }
.auth-brand, .sidebar-brand { letter-spacing: -.5px; }
.brand-mark { border: 0; border-radius: 10px; background: #ededee; color: #09090a; box-shadow: none; }
.brand-mark span { color: #77787d; }
.brand-dot, .heading-period { color: #c5c6ca; }
.auth-layout { border: 1px solid #28292d; border-radius: 18px; background: #101113; box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.auth-card { padding-top: clamp(38px, 6vw, 66px); padding-bottom: clamp(38px, 6vw, 66px); }
.eyebrow, .aside-kicker { color: #a5a6ab; }
.auth-card h1, .page-heading h1, .aside-content h2, .shortcut-card h2 { letter-spacing: -.8px; }
.field { color: #d5d5d8; }
.field input, .field select, .field textarea { border-color: #303136; border-radius: 8px; background: #0a0a0b; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8b8c92; box-shadow: 0 0 0 3px rgba(230,230,235,.08); }
.button { border-radius: 8px; }
.button-primary { background: #ededee; color: #0b0b0c; box-shadow: none; }
.button-primary:hover { background: #fff; box-shadow: 0 5px 18px rgba(255,255,255,.08); }
.button-secondary { border-color: #333439; background: #191a1d; }
.button-secondary:hover, .button-quiet:hover { border-color: #494a50; background: #222327; }
.button-quiet, .text-button { color: #dbdbe0; }
.text-button:hover { color: #fff; }
.auth-aside { background: #0c0c0e; }
.auth-aside::before, .auth-aside::after { border-color: rgba(220,220,225,.07); }
.aside-icon { border-color: #333439; background: #17181b; color: #e1e1e4; box-shadow: none; }
.aside-content h2 span { color: #d0d0d4; }
.aside-line { background: #88898e; }
.sidebar { border-right-color: #222327; background: #070708; }
.nav-item:hover { background: #121316; }
.nav-item.active { border-color: #292a2e; background: #17181b; color: #f5f5f6; }
.nav-item.active::before { background: #e6e6e8; box-shadow: none; }
.nav-icon, .nav-item.active .nav-icon { border-color: #2b2c30; background: #131417; color: #dedee1; }
.avatar { border-color: #35363b; background: #18191c; color: #e2e2e5; }
.main-area { background: #09090a; }
.topbar { border-bottom-color: #25262a; background: rgba(8,8,9,.94); }
.theme-toggle { border-color: #303136; background: #131417; color: #e5e5e7; }
.demo-banner { border-color: #333439; background: #16171a; color: #dedee1; }
.demo-banner button { color: #f1f1f2; }
.stat-card, .content-card { border-color: #28292d; border-radius: 12px; background: #101113; box-shadow: none; }
.stat-card:hover { transform: translateY(-1px); border-color: #414247; }
.stat-card::before, .stat-card:nth-child(n)::before { width: 2px; background: #d8d8dc; opacity: .8; }
.stat-icon, .icon-violet, .icon-green, .icon-amber, .icon-blue { border-color: #303136; background: #191a1d; color: #d5d5d9; }
.stat-value { color: #f4f4f5; }
.stat-currency, .finance-summary article:last-child strong, .sales-kpis article:nth-child(4) strong { color: #ededee; }
.stat-indicator, .dot-violet, .dot-green, .dot-amber, .dot-blue { background: #b9b9be; box-shadow: none; }
.finance-period, .year-select-label select { border-color: #303136; background: #141518; }
.chart-grid { stroke: #303136; stroke-dasharray: 0; }
.chart-axis-label, .chart-month-label { fill: #96979d; }
.chart-point { stroke: #101113; }
.attention-mark, .attention-symbol { border-color: #393734; background: #1b1a18; color: #d8c08c; }
.attention-row:hover { background: #191a1d; }
.shortcut-card { border-color: #28292d; border-radius: 12px; background: #101113; }
.shortcut-art, .empty-illustration { border-color: #323337; border-radius: 15px; background: #18191c; color: #dedee1; }
.art-ring { border-color: rgba(230,230,235,.13); }
thead, .sales-year-total td { background: #151619; }
th { color: #9a9ba1; }
td { border-bottom-color: #25262a; color: #c1c1c5; }
tbody tr:hover td { background: rgba(255,255,255,.035); }
.mini-avatar, .client-initial, .count-badge { border-color: #34353a; background: #18191c; color: #e2e2e5; }
.status-waiting { border-color: #4a4030; background: #211e19; color: #d8c08c; }
.status-delivered { border-color: #39413e; background: #191e1c; color: #b7d4c7; }
.icon-button.row-action { border-color: #34353a; background: #151619; color: #d1d1d5; }
.icon-button.row-action:hover { border-color: #66676d; background: #222327; color: #fff; }
.icon-button.delete-action { border-color: #493033; background: #201719; color: #e89598; }
.icon-button.delete-action:hover { border-color: #8a4a4e; background: #382023; color: #ff9b9d; }
.filter-tab:hover { background: #1b1c1f; }
.filter-tab.active { border-color: #3b3c42; background: #212226; color: #f0f0f1; }
.sales-kpis article, .sales-analysis-block { border-color: #2d2e32; border-radius: 10px; background: #0c0c0e; }
.sales-year-total td { border-top-color: #45464b; }
.profit-cell { color: #c5ded1 !important; }
.modal-dialog { border-color: #36373c; border-radius: 14px; background: #111214; }
.form-section-title span { border-color: #3a3b40; background: #1d1e22; color: #e4e4e6; }
.optional-details { border-color: #303136; }
.optional-details summary { color: #e0e0e3; }
.profit-preview { border-color: #35363a; background: #191a1d; color: #d8d8dc; }
.toast { border-color: #44454a; background: #202124; color: #f4f4f5; }

/* O tema claro permanece disponível, também com acabamento neutro. */
html[data-theme="light"] {
  --green: #292a2e;
  --green-strong: #111214;
  --green-soft: #e9e9eb;
  --purple: #686970;
  --purple-soft: #ededee;
  --blue: #626d78;
  --blue-soft: #e9ecef;
  --amber: #856b38;
  --amber-soft: #f2eee5;
}
html[data-theme="light"] .button-primary { background: #151619; color: #fff; }
html[data-theme="light"] .eyebrow, html[data-theme="light"] .text-button, html[data-theme="light"] .button-quiet { color: #292a2e; }
html[data-theme="light"] .auth-aside { background: #191a1d; }
html[data-theme="light"] .brand-mark { background: #151619; color: #fff; }
html[data-theme="light"] .nav-item.active::before { background: #e6e6e8; }
@media (max-width: 760px) {
  .auth-screen { padding: 22px 16px max(24px, env(safe-area-inset-bottom)); }
  .auth-layout { margin-top: 24px; border-radius: 14px; }
  .auth-card { padding: 34px 24px 38px; }
  .sidebar.open { box-shadow: 12px 0 35px rgba(0,0,0,.55); }
  .stat-card, .content-card { border-radius: 10px; }
}

/* Tipografia ampliada para facilitar a leitura em telas menores e maiores. */
:root { --muted: #b1b8b3; }
body { font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
.auth-intro, .page-heading p { font-size: 15px; }
.eyebrow, .page-heading .eyebrow, .modal-heading .eyebrow { font-size: 12px; letter-spacing: 1px; }
.field, .form-grid .field { font-size: 14px; }
.field input, .field select, .field textarea,
.form-grid .field input, .form-grid .field select, .form-grid .field textarea { min-height: 46px; font-size: 15px; }
.button, .button-primary, .button-secondary, .button-quiet, .text-button,
.auth-switch, .modal-actions .button { font-size: 14px; }
.form-message, .demo-banner, .demo-banner button { font-size: 13px; }
.aside-content > p:not(.aside-kicker) { font-size: 15px; }
.aside-points { font-size: 14px; }
.aside-kicker { font-size: 11px; }
.aside-footer { font-size: 12px; }
.sidebar-label { font-size: 11px; }
.nav-item { font-size: 14px; }
.nav-count { font-size: 12px; }
.profile-meta strong { font-size: 13px; }
.profile-meta span { font-size: 11px; }
.breadcrumbs { font-size: 13px; }
.search-box input { font-size: 13px; }
.search-box kbd { font-size: 10px; }
.top-new { font-size: 13px; }
.stat-top { font-size: 13px; }
.stat-foot { font-size: 11px; }
.card-heading h2, .sales-report-heading h2, .sales-list-heading h2, .client-summary h2 { font-size: 18px; }
.card-heading p, .sales-report-heading p, .sales-list-heading p, .client-summary p { font-size: 14px; }
.finance-period { font-size: 12px; }
.finance-summary article span { font-size: 13px; }
.finance-legend, .finance-foot { font-size: 12px; }
.attention-meta strong { font-size: 14px; }
.attention-meta span, .attention-date { font-size: 12px; }
.small-empty, .shortcut-card p { font-size: 13px; }
.shortcut-card h2 { font-size: 19px; }
.shortcut-card .button { min-height: 42px; font-size: 13px; }
th { font-size: 12px; letter-spacing: .55px; }
td { font-size: 14px; }
.repair-person strong, .client-name strong, .device-cell strong { font-size: 14px; }
.repair-person small, .client-name small, .device-cell small { font-size: 12px; }
.status-pill { min-height: 30px; font-size: 12px; }
.filter-tab { font-size: 13px; }
.list-count { font-size: 12px; }
.empty-state strong { font-size: 16px; }
.empty-state p, .empty-state .button { font-size: 13px; }
.client-contact { font-size: 13px; }
.client-contact small { font-size: 12px; }
.count-badge { font-size: 12px; }
.app-footer { font-size: 11px; }
.year-select-label { font-size: 13px; }
.year-select-label select { min-height: 44px; font-size: 14px; }
.sales-kpis article span, .sales-kpis article small { font-size: 13px; }
.sales-kpis article strong { font-size: 23px; }
.sales-chart-heading h3, .sales-analysis-heading h3 { font-size: 17px; }
.sales-chart-heading p, .sales-analysis-heading p, .sales-chart-note { font-size: 13px; }
.sales-chart svg .chart-axis-label { font-size: 13px; }
.sales-chart svg .chart-month-label { font-size: 14px; }
.sales-monthly-table th, .sales-monthly-table td,
.sales-top-table th, .sales-top-table td,
.sales-table th, .sales-table td { font-size: 13px; }
.sale-product strong { font-size: 14px; }
.linked-repair-label { font-size: 12px; }
.form-section-title { font-size: 15px; }
.form-section-title span { font-size: 12px; }
.optional-details summary { font-size: 13px; }
.profit-preview, .toast { font-size: 13px; }
.finance-chart { min-height: 250px; }
@media (max-width: 760px) {
  .auth-card h1 { font-size: clamp(30px, 8vw, 38px); }
  .auth-switch, .text-button { font-size: 13px; }
  .breadcrumbs { font-size: 11px; }
  .top-new { font-size: 12px; }
  .page-heading p { font-size: 14px; }
  .stat-top { font-size: 12px; }
  .stat-foot { font-size: 10px; }
  .card-heading h2, .sales-report-heading h2, .sales-list-heading h2, .client-summary h2 { font-size: 16px; }
  .card-heading p, .sales-report-heading p, .sales-list-heading p, .client-summary p { font-size: 12px; }
  .finance-summary article span, .finance-legend, .finance-foot { font-size: 11px; }
  .finance-summary article strong { font-size: 15px; }
  .finance-chart { min-height: 220px; }
  .shortcut-card p { font-size: 12px; }
  .filter-tab { padding: 8px; font-size: 12px; }
  .list-count { font-size: 11px; }
  .year-select-label { font-size: 12px; }
  .sales-kpis article span, .sales-kpis article small { font-size: 11px; }
  .sales-kpis article strong { font-size: 18px; }
  .sales-chart-note { font-size: 11px; }
  .sales-monthly-table th, .sales-monthly-table td,
  .sales-top-table th, .sales-top-table td,
  .sales-table th, .sales-table td { font-size: 12px; }
  .app-footer { font-size: 10px; }
}

/* Vendas: leitura ampliada e comparação anual mais clara. */
.sales-report-heading { align-items: center; }
.sales-report-heading h2, .sales-list-heading h2 { font-size: 16px; }
.sales-report-heading p, .sales-list-heading p { font-size: 12px; }
.year-select-label { font-size: 12px; }
.year-select-label select { min-height: 42px; font-size: 13px; }
.sales-kpis article { min-height: 118px; gap: 9px; padding: 16px; }
.sales-kpis article span, .sales-kpis article small { font-size: 11px; }
.sales-kpis article strong { font-size: 21px; }
.sales-chart-heading h3, .sales-analysis-heading h3 { font-size: 15px; }
.sales-chart-heading p, .sales-analysis-heading p { font-size: 11px; }
.sales-chart { min-width: 1080px; height: 380px; }
.sales-chart svg .chart-axis-label { font: 12px "DM Sans", sans-serif; }
.sales-chart svg .chart-month-label { font: 13px "DM Sans", sans-serif; }
.sales-legend { gap: 24px; padding: 12px 16px 15px; font-size: 12px; }
.sales-legend i { width: 11px; height: 11px; }
.sales-legend .legend-total { background: #a78bfa; }
.sales-legend .legend-cost { background: #f0b45f; }
.sales-legend .legend-profit { background: #62c998; }
.sales-chart-note { font-size: 11px; }
.sales-monthly-table th { padding: 13px; font-size: 10px; }
.sales-monthly-table td { padding: 13px; font-size: 11px; }
.sales-top-table th { font-size: 10px; }
.sales-top-table td { font-size: 11px; }
.sales-table th { font-size: 10px; }
.sales-table td { font-size: 11px; }
.sale-product strong { font-size: 12px; }
.linked-repair-label { display: block; margin-top: 4px; color: #a6a7ad; font-size: 10px; font-weight: 500; }
@media (max-width: 760px) {
  .sales-report-heading h2, .sales-list-heading h2 { font-size: 14px; }
  .sales-report-heading p, .sales-list-heading p { font-size: 10px; }
  .sales-kpis article { min-height: 92px; gap: 7px; padding: 11px; }
  .sales-kpis article span, .sales-kpis article small { font-size: 9px; }
  .sales-kpis article strong { font-size: 17px; }
  .sales-chart { min-width: 1080px; height: 340px; }
  .sales-chart svg .chart-axis-label { font-size: 12px; }
  .sales-chart svg .chart-month-label { font-size: 13px; }
  .sales-legend { justify-content: flex-start; gap: 15px; font-size: 10px; }
  .sales-chart-note { font-size: 9px; }
  .sales-monthly-table th, .sales-monthly-table td { font-size: 10px; }
  .sales-table th, .sales-table td { font-size: 10px; }
}

/* Os ajustes anteriores de vendas incluem media queries menores; estes valores
   ficam por último para manter gráficos e tabelas legíveis em qualquer tela. */
body { font-family: "Inter", "DM Sans", Arial, sans-serif; }
.sales-report-heading h2, .sales-list-heading h2 { font-size: 18px; }
.sales-report-heading p, .sales-list-heading p { font-size: 14px; }
.sales-kpis article span, .sales-kpis article small { font-size: 13px; }
.sales-kpis article strong { font-size: 23px; }
.sales-chart-heading h3, .sales-analysis-heading h3 { font-size: 17px; }
.sales-chart-heading p, .sales-analysis-heading p, .sales-chart-note { font-size: 13px; }
.sales-chart svg .chart-axis-label { font: 13px "Inter", sans-serif; }
.sales-chart svg .chart-month-label { font: 14px "Inter", sans-serif; }
.sales-monthly-table th, .sales-monthly-table td,
.sales-top-table th, .sales-top-table td,
.sales-table th, .sales-table td { font-size: 13px; }
.sale-product strong { font-size: 14px; }
.linked-repair-label { font-size: 12px; }
.repair-person strong, .client-name strong { white-space: normal; }
@media (max-width: 760px) {
  .sales-report-heading h2, .sales-list-heading h2 { font-size: 16px; }
  .sales-report-heading p, .sales-list-heading p { font-size: 12px; }
  .sales-kpis article span, .sales-kpis article small { font-size: 11px; }
  .sales-kpis article strong { font-size: 18px; }
  .sales-chart svg .chart-axis-label { font-size: 12px; }
  .sales-chart svg .chart-month-label { font-size: 13px; }
  .sales-chart-note { font-size: 11px; }
  .sales-monthly-table th, .sales-monthly-table td,
  .sales-top-table th, .sales-top-table td,
  .sales-table th, .sales-table td { font-size: 12px; }
}

/* Nova identidade visual para Vendas e Consertos. */
.sales-page-heading, .repairs-page-heading { margin-bottom: 28px; }
.sales-page-actions { display: flex; align-items: center; gap: 12px; }
.sales-year-control, .repair-year-control { display: flex; align-items: center; gap: 10px; color: #aeb5b2; font-size: 14px; font-weight: 700; }
.sales-year-control select, .repair-year-control select { min-width: 148px; min-height: 48px; border: 1px solid #33383d; border-radius: 12px; padding: 0 14px; background: #141619; color: #f5f6f7; font: 700 15px "Inter", sans-serif; }
.sales-dashboard-panel { display: grid; gap: 24px; border: 1px solid #2a2d32; border-radius: 22px; padding: 27px; background: linear-gradient(150deg, #111316 0%, #0b0d10 75%); box-shadow: 0 20px 55px rgba(0,0,0,.24); }
.sales-overview-heading, .sales-chart-heading, .sales-analysis-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sales-overview-heading h2 { margin: 6px 0 4px; color: #f6f7f8; font: 700 24px/1.25 "Inter", sans-serif; letter-spacing: -.6px; }
.sales-overview-heading p, .sales-chart-heading p, .sales-analysis-heading p { margin: 4px 0 0; color: #a4aab1; font-size: 14px; line-height: 1.55; }
.workspace-kicker { color: #9ba3ac; font-size: 11px; font-weight: 800; letter-spacing: 1.1px; }
.currency-tag, .chart-unit-tag { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; border: 1px solid #30343a; border-radius: 999px; padding: 0 12px; background: #17191d; color: #c9cdd3; font-size: 12px; font-weight: 700; }
.currency-tag i { color: #fff; font-size: 13px; font-style: normal; }
.sales-kpis-redesigned { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0; }
.sales-kpis-redesigned article { min-height: 132px; align-content: center; gap: 8px; border: 1px solid #30343a; border-radius: 16px; padding: 19px; background: #15171a; }
.sales-kpis-redesigned article span { color: #aeb4bb; font-size: 13px; font-weight: 700; }
.sales-kpis-redesigned article strong { color: #f7f8f9; font: 700 clamp(19px, 2vw, 27px)/1.15 "Inter", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.6px; overflow-wrap: anywhere; }
.sales-kpis-redesigned article small { color: #939aa2; font-size: 12px; }
.sales-kpis-redesigned .sales-kpi-revenue { border-color: #315248; background: linear-gradient(145deg, #15211f, #121715); }
.sales-kpis-redesigned .sales-kpi-revenue strong { color: #7be0bf; }
.sales-kpis-redesigned .sales-kpi-profit { border-color: #413a62; background: linear-gradient(145deg, #1b1925, #14141a); }
.sales-kpis-redesigned .sales-kpi-profit strong { color: #b5a6ff; }
.sales-chart-panel { overflow: hidden; border: 1px solid #2c3036; border-radius: 17px; background: #101216; }
.sales-chart-heading { align-items: center; padding: 22px 24px 15px; }
.sales-chart-heading h3, .sales-analysis-heading h3 { margin: 6px 0 0; color: #f5f6f8; font: 700 19px/1.3 "Inter", sans-serif; letter-spacing: -.3px; }
.sales-chart-wrap { overflow-x: auto; padding: 8px 20px 6px; scrollbar-color: #555b62 #17191d; scrollbar-width: thin; }
.sales-chart { min-width: 1220px; height: 420px; }
.sales-chart svg { overflow: visible; }
.sales-chart .chart-grid { stroke: #30343a; stroke-dasharray: 4 6; }
.sales-chart .chart-axis-label { fill: #b7bdc4; font: 13px "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.sales-chart .chart-month-label { fill: #d0d4da; font: 14px "Inter", sans-serif; font-weight: 600; }
.sales-chart .sales-zero-line { stroke: #747982; stroke-width: 1.2; }
.sales-chart-bar { opacity: .93; transition: opacity .16s, filter .16s; }
.sales-chart-bar:hover { filter: brightness(1.18); opacity: 1; }
.sales-legend { justify-content: center; gap: 28px; border-top: 1px solid #292d32; padding: 16px 20px 19px; color: #d2d6dc; font-size: 14px; }
.sales-legend i { width: 12px; height: 12px; border-radius: 4px; }
.sales-legend .legend-total { background: #63d6b5; }
.sales-legend .legend-cost { background: #f4bd62; }
.sales-legend .legend-profit { background: #9d8cff; }
.sales-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 16px; }
.sales-analysis-block { min-width: 0; overflow: hidden; border: 1px solid #2c3036; border-radius: 16px; background: #101216; }
.sales-analysis-heading { min-height: 104px; padding: 19px 20px 15px; }
.sales-analysis-heading h3 { font-size: 18px; }
.sales-analysis-heading p { font-size: 13px; }
.sales-monthly-table, .sales-top-table { min-width: 650px; }
.sales-monthly-table th, .sales-top-table th { color: #b3bac2; font-size: 12px; }
.sales-monthly-table td, .sales-top-table td { color: #e0e3e7; font-size: 13px; font-variant-numeric: tabular-nums; }
.sales-monthly-table .month-name { color: #f3f4f6; font-weight: 700; text-transform: capitalize; }
.sales-monthly-table .sales-year-total td { border-top: 1px solid #535962; background: #191b20; color: #fff; font-weight: 800; }
.sales-products-block .sales-top-table { min-width: 520px; }
.sales-list-card { margin-top: 20px; overflow: hidden; border: 1px solid #2a2d32; border-radius: 20px; background: #101216; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.sales-list-heading { padding: 23px 25px; border-bottom: 1px solid #2b2f34; }
.sales-list-heading h2 { margin: 5px 0 2px; color: #f4f5f7; font: 700 22px/1.25 "Inter", sans-serif; }
.sales-list-heading p { color: #aeb4bb; font-size: 13px; }
.sales-search { width: min(340px, 38vw); height: 46px; border-color: #343940; border-radius: 12px; background: #17191d; }
.sales-search input { font-size: 14px; }
.sales-table { min-width: 860px; }
.sales-table th { padding: 14px 16px; color: #aeb4bb; font-size: 12px; }
.sales-table td { padding: 16px; color: #e0e3e7; font-size: 14px; font-variant-numeric: tabular-nums; }
.sales-table tbody tr:hover td { background: #191c20; }
.sales-table .sale-product strong { color: #f4f5f7; font-size: 14px; }
.sales-table .linked-repair-label { color: #8ddbc1; font-size: 12px; }
.sales-table .profit-cell { color: #8de0bd !important; }
.sales-table .negative-cell { color: #ff9999 !important; }
.sales-count-pill { display: inline-flex; align-items: center; }

.repair-page-heading { margin-bottom: 28px; }
.repair-stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.repair-stat-cards article { display: flex; min-height: 114px; align-items: center; gap: 16px; border: 1px solid #2c3036; border-radius: 17px; padding: 18px 22px; background: linear-gradient(145deg, #15171a, #101216); }
.repair-stat-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid #403a2d; border-radius: 15px; background: #211d17; color: #f3c36d; font-size: 21px; font-weight: 700; }
.repair-stat-icon.delivered-icon { border-color: #315248; background: #15211f; color: #78d9b7; }
.repair-stat-icon.total-icon { border-color: #403a5c; background: #1b1925; color: #b3a3ff; }
.repair-stat-cards article div { display: grid; gap: 7px; }
.repair-stat-cards article small { color: #a8afb7; font-size: 14px; font-weight: 600; }
.repair-stat-cards article strong { color: #f4f5f7; font: 700 28px/1 "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.repair-workspace { overflow: hidden; border: 1px solid #2a2d32; border-radius: 20px; background: #101216; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.repair-workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 25px 18px; }
.repair-workspace-heading h2 { margin: 6px 0 3px; color: #f4f5f7; font: 700 22px/1.25 "Inter", sans-serif; }
.repair-workspace-heading p { margin: 0; color: #a7adb4; font-size: 14px; }
.repair-workspace-count { display: grid; justify-items: end; gap: 2px; color: #a9afb7; font-size: 12px; }
.repair-workspace-count strong { color: #fff; font: 700 22px "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.repair-toolbar { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #292d32; border-bottom: 1px solid #292d32; padding: 10px 22px; background: #131519; }
.repair-year-control { white-space: nowrap; }
.repair-year-control select { min-width: 124px; min-height: 40px; font-size: 13px; }
.filter-tabs { gap: 6px; }
.filter-tab { border-color: #32363b; border-radius: 999px; padding: 9px 15px; color: #c5c9cf; font-size: 13px; }
.filter-tab.active { border-color: #525865; background: #282b31; color: #fff; }
.repairs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.repair-card { min-width: 0; border: 1px solid #30343a; border-radius: 16px; background: linear-gradient(145deg, #17191d, #121417); transition: border-color .16s, transform .16s; }
.repair-card:hover { transform: translateY(-2px); border-color: #50555e; }
.repair-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 47px; border-bottom: 1px solid #2a2e33; padding: 0 17px; }
.repair-card-status { display: inline-flex; align-items: center; gap: 8px; color: #f1c875; font-size: 12px; font-weight: 700; }
.repair-card-status i { width: 8px; height: 8px; border-radius: 50%; background: #f1c875; box-shadow: 0 0 10px rgba(241,200,117,.35); }
.repair-card.is-delivered .repair-card-status { color: #82d8bb; }
.repair-card.is-delivered .repair-card-status i { background: #82d8bb; box-shadow: 0 0 10px rgba(130,216,187,.35); }
.repair-card-year { border: 1px solid #353940; border-radius: 999px; padding: 4px 9px; color: #c4c8ce; font-size: 12px; font-weight: 700; }
.repair-card-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px 12px; padding: 18px; }
.repair-card-section { display: grid; min-width: 0; align-content: start; gap: 7px; }
.repair-card-section > small { color: #8f969e; font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.repair-card-name { display: flex; min-width: 0; align-items: center; gap: 10px; }
.repair-card-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #39404a; border-radius: 12px; background: #22252a; color: #e1e4e8; font-size: 13px; font-weight: 800; }
.repair-card-name div { display: grid; min-width: 0; gap: 3px; }
.repair-card-name strong, .repair-card-device strong { overflow-wrap: anywhere; color: #f2f4f6; font-size: 14px; font-weight: 700; }
.repair-card-name span:not(.repair-card-avatar), .repair-card-device span { color: #a7adb5; font-size: 12px; }
.repair-card-money { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid #2b2f34; padding-top: 14px; }
.repair-card-money > small { grid-column: 1; }
.repair-card-money > strong { grid-column: 2; grid-row: 1 / span 2; color: #f2f4f6; font: 700 21px "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.repair-card-money > span { grid-column: 1; color: #b4bbc2; font-size: 12px; font-variant-numeric: tabular-nums; }
.repair-card-money > span b { padding: 0 4px; color: #727982; }
.repair-card-bottom { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #2a2e33; padding: 8px 14px 8px 18px; }
.repair-card-date { color: #a7adb5; font-size: 12px; }
.repair-card-actions { display: flex; align-items: center; gap: 7px; }
.repair-card-actions .status-select { min-height: 34px; max-width: 175px; border-color: #3c424a; background: #1c2025; font-size: 11px; }
.repair-action { min-height: 34px; border: 1px solid #383d44; border-radius: 9px; padding: 0 11px; background: #202328; color: #e6e8eb; font-size: 12px; font-weight: 700; }
.repair-action:hover { border-color: #5e646e; background: #292c32; }
.repair-workspace .empty-state { padding: 56px 20px; }
.repair-workspace .empty-state:not(.hidden) { display: block; }

@media (max-width: 1050px) {
  .sales-kpis-redesigned { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sales-analysis-grid { grid-template-columns: 1fr; }
  .repairs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sales-page-heading, .repairs-page-heading { align-items: flex-start; }
  .sales-page-actions { flex-wrap: wrap; justify-content: flex-end; }
  .sales-year-control { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 12px; }
  .sales-year-control select { min-width: 132px; min-height: 42px; font-size: 13px; }
  .sales-dashboard-panel { gap: 16px; border-radius: 16px; padding: 17px 12px; }
  .sales-overview-heading { padding: 0 5px; }
  .sales-overview-heading h2 { font-size: 20px; }
  .sales-overview-heading p, .sales-chart-heading p, .sales-analysis-heading p { font-size: 12px; }
  .sales-kpis-redesigned { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .sales-kpis-redesigned article { min-height: 106px; padding: 13px; }
  .sales-kpis-redesigned article strong { font-size: clamp(17px, 4.5vw, 22px); }
  .sales-kpis-redesigned article span { font-size: 11px; }
  .sales-kpis-redesigned article small { font-size: 10px; }
  .sales-chart-heading { align-items: flex-start; padding: 18px 14px 10px; }
  .sales-chart-heading h3 { font-size: 16px; }
  .chart-unit-tag { min-height: 28px; padding: 0 8px; font-size: 10px; }
  .sales-chart-wrap { padding: 4px 10px 4px; }
  .sales-chart { height: 360px; }
  .sales-chart .chart-axis-label { font-size: 12px; }
  .sales-chart .chart-month-label { font-size: 12px; }
  .sales-legend { justify-content: flex-start; gap: 14px; padding: 13px 15px; font-size: 12px; }
  .sales-analysis-heading { min-height: auto; padding: 17px 15px; }
  .sales-analysis-heading h3 { font-size: 16px; }
  .sales-monthly-table, .sales-top-table { min-width: 650px; }
  .sales-monthly-table th, .sales-top-table th { font-size: 11px; }
  .sales-monthly-table td, .sales-top-table td { font-size: 12px; }
  .sales-list-card { border-radius: 16px; }
  .sales-list-heading { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
  .sales-list-heading h2 { font-size: 19px; }
  .sales-search { width: 100%; }
  .sales-table { min-width: 840px; }
  .sales-table th { font-size: 11px; }
  .sales-table td { padding: 13px 12px; font-size: 12px; }
  .repair-stat-cards { grid-template-columns: 1fr; gap: 9px; }
  .repair-stat-cards article { min-height: 82px; padding: 13px 16px; }
  .repair-stat-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .repair-stat-cards article strong { font-size: 24px; }
  .repair-workspace { border-radius: 16px; }
  .repair-workspace-heading { padding: 18px 16px 14px; }
  .repair-workspace-heading h2 { font-size: 19px; }
  .repair-workspace-heading p { max-width: 280px; font-size: 12px; }
  .repair-toolbar { align-items: flex-start; flex-direction: column; padding: 12px; }
  .repair-toolbar .filter-tabs { width: 100%; }
  .repair-year-control { align-items: center; flex-direction: row; font-size: 12px; }
  .repair-year-control select { min-width: 140px; min-height: 38px; font-size: 12px; }
  .repairs-grid { gap: 10px; padding: 11px; }
  .repair-card-body { gap: 14px 9px; padding: 14px; }
  .repair-card-bottom { align-items: flex-start; flex-direction: column; padding: 12px 13px; }
  .repair-card-actions { width: 100%; justify-content: space-between; }
  .repair-card-actions .status-select { max-width: min(175px, 47vw); }
  .repair-card-money > strong { font-size: 18px; }
}

/* Clearer overview and sales report: no nested horizontal scroll in monthly details. */
#view-dashboard .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
#view-dashboard .stat-card { min-height: 112px; padding: 19px 20px 16px; }
#view-dashboard .stat-top { font-size: 13px; }
#view-dashboard .stat-value { margin: 12px 0 9px; font-size: 29px; }
#view-dashboard .stat-foot { font-size: 11px; }
#view-dashboard .finance-card { margin-bottom: 20px; padding-bottom: 4px; }
#view-dashboard .finance-card > .card-heading { align-items: center; padding: 22px 22px 7px; }
#view-dashboard .finance-card > .card-heading h2 { margin: 5px 0 3px; font-size: 22px; }
#view-dashboard .finance-card > .card-heading p { font-size: 13px; }
#view-dashboard .finance-summary { gap: 12px; padding: 16px 22px 12px; }
#view-dashboard .finance-summary article { min-height: 78px; align-content: center; gap: 8px; border: 1px solid #2d3035; border-radius: 12px; padding: 13px 15px; background: #151619; }
#view-dashboard .finance-summary article span { font-size: 12px; }
#view-dashboard .finance-summary article strong { font-size: 20px; }
#view-dashboard .finance-chart { height: 230px; padding: 10px 18px 0; }
#view-dashboard .finance-legend { gap: 20px; padding: 12px 16px; font-size: 12px; }
#view-dashboard .finance-legend i { width: 10px; height: 10px; }
#view-dashboard .finance-foot { padding: 11px 18px; font-size: 11px; }
#view-dashboard .dashboard-open-card { margin-bottom: 22px; }
#view-dashboard .dashboard-open-card > .card-heading { align-items: center; padding: 20px 22px; }
#view-dashboard .dashboard-open-card .card-heading h2 { margin: 5px 0 3px; font-size: 21px; }
#view-dashboard .dashboard-open-card .card-heading p { font-size: 13px; }
#view-dashboard .dashboard-open-card .table-wrap { max-height: none; }
#view-dashboard .dashboard-open-card th { font-size: 11px; }
#view-dashboard .dashboard-open-card td { font-size: 13px; }

.sales-analysis-grid { grid-template-columns: minmax(0, 1fr); }
.sales-monthly-wrap { max-height: none; overflow: visible; }
.sales-monthly-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.sales-monthly-table th, .sales-monthly-table td { padding: 13px 12px; }
.sales-monthly-table th { white-space: nowrap; }
.sales-monthly-table .month-name { width: 19%; white-space: normal; }
.sales-monthly-table th:nth-child(2), .sales-monthly-table td:nth-child(2) { width: 10%; text-align: center; }
.sales-monthly-table th:nth-child(3), .sales-monthly-table td:nth-child(3) { width: 13%; }
.sales-monthly-table th:nth-child(n+4), .sales-monthly-table td:nth-child(n+4) { width: 19.3%; }
.sales-monthly-table td:not(.month-name) { white-space: nowrap; }

@media (max-width: 760px) {
  #view-dashboard .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #view-dashboard .stat-card { min-height: 96px; padding: 13px; }
  #view-dashboard .stat-top { align-items: flex-start; font-size: 11px; }
  #view-dashboard .stat-value { margin: 9px 0 6px; font-size: 25px; }
  #view-dashboard .stat-foot { font-size: 9px; }
  #view-dashboard .finance-card > .card-heading { align-items: flex-start; flex-direction: column; gap: 9px; padding: 17px 15px 5px; }
  #view-dashboard .finance-card > .card-heading h2 { font-size: 19px; }
  #view-dashboard .finance-summary { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; }
  #view-dashboard .finance-summary article { min-height: 66px; }
  #view-dashboard .finance-chart { height: 185px; padding: 8px 6px 0; }
  #view-dashboard .finance-legend { justify-content: flex-start; gap: 13px; font-size: 10px; }
  #view-dashboard .dashboard-open-card > .card-heading { align-items: flex-start; padding: 17px 15px; }
  #view-dashboard .dashboard-open-card .card-heading h2 { font-size: 18px; }
  .sales-monthly-wrap { overflow: visible; }
  .sales-monthly-table, .sales-monthly-table tbody { display: block; width: 100%; }
  .sales-monthly-table thead { display: none; }
  .sales-monthly-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-bottom: 10px; overflow: hidden; border: 1px solid #30343a; border-radius: 11px; background: #111316; }
  .sales-monthly-table td { display: flex; width: auto !important; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-bottom: 1px solid #25282d; padding: 10px; text-align: right; white-space: normal !important; font-size: 12px; }
  .sales-monthly-table td::before { content: attr(data-label); color: #aeb4bb; font-size: 10px; font-weight: 700; text-align: left; }
  .sales-monthly-table td.month-name { grid-column: 1 / -1; width: auto; justify-content: flex-start; background: #191b20; color: #fff; font-size: 13px; }
  .sales-monthly-table td.month-name::before { margin-right: 7px; color: #aeb4bb; }
  .sales-monthly-table td:nth-child(5), .sales-monthly-table td:nth-child(6) { border-bottom: 0; }
  .sales-monthly-table .sales-year-total { border-color: #565b64; background: #1a1c21; }
  .sales-monthly-table .sales-year-total td { background: transparent; }
}
@media (max-width: 430px) {
  #view-dashboard .stats-grid { grid-template-columns: 1fr; }
  #view-dashboard .stat-card { min-height: 86px; }
}

/* Annual financial summary, compact repair rows, and readable light theme. */
.finance-year-control { display: inline-flex; align-items: center; gap: 9px; color: #aeb5b2; font-size: 13px; font-weight: 700; white-space: nowrap; }
.finance-year-control select { min-width: 100px; min-height: 40px; border: 1px solid #353a40; border-radius: 10px; padding: 0 12px; background: #15171a; color: #f4f5f7; font: 700 14px "Inter", sans-serif; }
#view-dashboard .finance-chart { height: 270px; padding: 12px 18px 0; }
#view-dashboard .finance-chart .chart-axis-label { fill: #b8bec6; font: 11px "Inter", sans-serif; font-variant-numeric: tabular-nums; }
#view-dashboard .finance-chart .chart-month-label { fill: #d2d6dc; font: 11px "Inter", sans-serif; font-weight: 700; }
#view-dashboard .finance-chart .chart-point { stroke: #101216; stroke-width: 2.3; }
#view-dashboard .finance-chart .finance-line { stroke-width: 3.5; }
.sales-kpis-redesigned article strong { overflow-wrap: normal; white-space: nowrap; font-size: clamp(15px, 1.55vw, 21px); letter-spacing: -.7px; }
.sales-dashboard-panel .sales-movements-card { margin: 0; box-shadow: none; }
#view-dashboard .finance-summary article strong { white-space: nowrap; }
.repair-list-wrap { max-height: none; overflow-x: auto; overflow-y: visible; }
.repair-list-table { width: 100%; min-width: 0; table-layout: fixed; }
.repair-list-table th, .repair-list-table td { padding: 13px 12px; }
.repair-list-table th { color: #aeb4bb; font-size: 11px; white-space: nowrap; }
.repair-list-table td { border-bottom: 1px solid #272b30; color: #e0e3e7; font-size: 13px; vertical-align: middle; }
.repair-list-table tbody tr:last-child td { border-bottom: 0; }
.repair-list-table th:nth-child(1), .repair-list-table td:nth-child(1) { width: 17%; }
.repair-list-table th:nth-child(2), .repair-list-table td:nth-child(2) { width: 22%; }
.repair-list-table th:nth-child(3), .repair-list-table td:nth-child(3) { width: 10%; white-space: nowrap; }
.repair-list-table th:nth-child(4), .repair-list-table td:nth-child(4) { width: 17%; }
.repair-list-table th:nth-child(5), .repair-list-table td:nth-child(5) { width: 12%; white-space: nowrap; }
.repair-list-table th:nth-child(6), .repair-list-table td:nth-child(6) { width: 14%; }
.repair-list-table th:nth-child(7), .repair-list-table td:nth-child(7) { width: 8%; }
.repair-list-table .repair-money-cell { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.repair-cost-profit { display: grid; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.repair-cost-profit strong { color: #c4cad1; font-size: 12px; }
.repair-cost-profit small { font-size: 12px; }
.repair-list-table .device-cell strong { color: #f2f4f6; }
.repair-list-table .device-cell small { display: block; margin-top: 4px; color: #a7adb5; }
html[data-theme="light"] #view-dashboard .finance-card { border-color: #d4d9e0; background: #fff; box-shadow: 0 8px 26px rgba(24, 35, 48, .06); }
html[data-theme="light"] #view-dashboard .finance-card > .card-heading { border-color: #e0e4e9; }
html[data-theme="light"] #view-dashboard .finance-card .workspace-kicker { color: #4b5563; }
html[data-theme="light"] #view-dashboard .finance-card .card-heading h2 { color: #111827; }
html[data-theme="light"] #view-dashboard .finance-card .card-heading p { color: #4b5563; }
html[data-theme="light"] #view-dashboard .finance-summary article { border-color: #d6dce3; background: #f8fafc; }
html[data-theme="light"] #view-dashboard .finance-summary article span { color: #4b5563; }
html[data-theme="light"] #view-dashboard .finance-summary article strong { color: #111827; }
html[data-theme="light"] #view-dashboard .finance-summary article:last-child strong { color: #126b45; }
html[data-theme="light"] #view-dashboard .finance-year-control { color: #374151; }
html[data-theme="light"] #view-dashboard .finance-year-control select { border-color: #b9c2cc; background: #fff; color: #111827; }
html[data-theme="light"] #view-dashboard .finance-chart .chart-grid { stroke: #cbd3dc; stroke-dasharray: 3 4; }
html[data-theme="light"] #view-dashboard .finance-chart .chart-axis-label,
html[data-theme="light"] #view-dashboard .finance-chart .chart-month-label { fill: #27313d; font-weight: 700; }
html[data-theme="light"] #view-dashboard .finance-chart path.finance-line.revenue { stroke: #5635b5 !important; }
html[data-theme="light"] #view-dashboard .finance-chart circle.finance-point.revenue { fill: #5635b5 !important; stroke: #fff; }
html[data-theme="light"] #view-dashboard .finance-chart path.finance-line.cost { stroke: #8b5900 !important; }
html[data-theme="light"] #view-dashboard .finance-chart circle.finance-point.cost { fill: #8b5900 !important; stroke: #fff; }
html[data-theme="light"] #view-dashboard .finance-chart path.finance-line.profit { stroke: #126b45 !important; }
html[data-theme="light"] #view-dashboard .finance-chart circle.finance-point.profit { fill: #126b45 !important; stroke: #fff; }
html[data-theme="light"] #view-dashboard .finance-legend { color: #344054; }
html[data-theme="light"] #view-dashboard .finance-legend .legend-total { background: #5635b5; }
html[data-theme="light"] #view-dashboard .finance-legend .legend-cost { background: #8b5900; }
html[data-theme="light"] #view-dashboard .finance-legend .legend-profit { background: #126b45; }
html[data-theme="light"] #view-dashboard .finance-foot { color: #4b5563; border-color: #e0e4e9; }
html[data-theme="light"] .repair-workspace { border-color: #d4d9e0; background: #fff; box-shadow: 0 8px 26px rgba(24, 35, 48, .05); }
html[data-theme="light"] .repair-workspace-heading { border-color: #e0e4e9; }
html[data-theme="light"] .repair-workspace-heading h2 { color: #111827; }
html[data-theme="light"] .repair-workspace-heading p, html[data-theme="light"] .repair-workspace-count { color: #4b5563; }
html[data-theme="light"] .repair-workspace-count strong { color: #111827; }
html[data-theme="light"] .repair-toolbar { border-color: #e0e4e9; background: #f8fafc; }
html[data-theme="light"] .filter-tab { border-color: #cbd3dc; color: #344054; }
html[data-theme="light"] .filter-tab.active { border-color: #64748b; background: #e8edf2; color: #111827; }
html[data-theme="light"] .repair-list-table th { color: #4b5563; background: #f2f5f8; }
html[data-theme="light"] .repair-list-table td { border-color: #e3e7ec; color: #344054; }
html[data-theme="light"] .repair-list-table .repair-person strong,
html[data-theme="light"] .repair-list-table .device-cell strong { color: #111827; }
html[data-theme="light"] .repair-list-table .repair-person small,
html[data-theme="light"] .repair-list-table .device-cell small,
html[data-theme="light"] .repair-cost-profit strong { color: #596579; }
html[data-theme="light"] .repair-list-table .status-select { border-color: #c7d0da; background: #fff; color: #263242; }
html[data-theme="light"] .repair-list-table .profit-cell { color: #126b45 !important; }
html[data-theme="light"] .repair-list-table .negative-cell { color: #b42318 !important; }
html[data-theme="light"] .repair-stat-cards article { border-color: #d5dbe2; background: #fff; }
html[data-theme="light"] .repair-stat-cards article small { color: #4b5563; }
html[data-theme="light"] .repair-stat-cards article strong { color: #111827; }
@media (max-width: 980px) {
  .repair-list-wrap { overflow: visible; }
  .repair-list-table, .repair-list-table tbody { display: block; width: 100%; }
  .repair-list-table thead { display: none; }
  .repair-list-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-bottom: 10px; overflow: hidden; border: 1px solid #30343a; border-radius: 12px; background: #15171a; }
  .repair-list-table td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid #292d32; padding: 11px; text-align: right; }
  .repair-list-table td::before { content: attr(data-label); color: #aeb4bb; font-size: 10px; font-weight: 800; text-align: left; }
  .repair-list-table td:nth-child(1), .repair-list-table td:nth-child(2), .repair-list-table td:nth-child(7) { grid-column: 1 / -1; }
  .repair-list-table td:nth-child(1), .repair-list-table td:nth-child(2) { align-items: flex-start; text-align: left; }
  .repair-list-table td:nth-child(7) { justify-content: flex-end; border-bottom: 0; }
  .repair-list-table .status-select { width: min(190px, 57vw); }
  html[data-theme="light"] .repair-list-table tr { border-color: #d5dbe2; background: #fff; }
  html[data-theme="light"] .repair-list-table td { border-color: #e3e7ec; }
  html[data-theme="light"] .repair-list-table td::before { color: #596579; }
  .sales-kpis-redesigned article strong { font-size: clamp(14px, 3.7vw, 18px); }
}

/* Custom workshop name and settings, without the old logo. */
.sidebar-brand {
  display: block;
  width: calc(100% - 16px);
  overflow: hidden;
  margin: 0 8px 32px;
  padding: 2px 0;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-color: #292e34;
  background: #111316;
  color: #aeb4bb;
  font-size: 15px;
}
.settings-button:hover { border-color: #48503d; background: #1b2019; color: var(--green); }
.office-settings-dialog { width: min(460px, calc(100% - 28px)); }
.office-settings-copy { margin: -4px 0 18px; color: var(--muted); font-size: 13px; }
.office-name-field { margin-top: 8px; font-size: 13px; }
.office-name-field input { min-height: 44px; font-size: 14px; }
html[data-theme="light"] .settings-button { border-color: #dfe3e8; background: #f3f4f6; color: #555b63; }
html[data-theme="light"] .settings-button:hover { border-color: #aeb8a0; background: #edf2e7; color: #4d6c1b; }

@media (max-width: 760px) {
  .sidebar-brand { margin-bottom: 24px; }
  .sidebar-profile { gap: 7px; }
  .settings-button, .logout-button { flex-basis: 29px; width: 29px; height: 29px; }
}
@media (max-width: 760px) {
  #view-dashboard .finance-chart .chart-axis-label { font-size: 18px; }
  #view-dashboard .finance-chart .chart-month-label { font-size: 17px; }
}

/* Light theme: keep every workspace surface, control, and report readable. */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #17212b;
  --muted: #526174;
  --line: #d7dee7;
  --canvas: #f3f6fa;
  --paper: #f8fafc;
  --white: #ffffff;
  --green: #247044;
  --green-strong: #1b5a36;
  --green-soft: #e8f4ec;
  --purple: #6544bf;
  --purple-soft: #f0edfa;
  --blue: #17649b;
  --blue-soft: #e8f2f9;
  --amber: #805500;
  --amber-soft: #fff4d9;
  --red: #ad3030;
  --red-soft: #fff0ef;
  --shadow: 0 18px 45px rgba(27, 39, 54, .09);
  --shadow-small: 0 5px 17px rgba(27, 39, 54, .06);
}
html[data-theme="light"],
html[data-theme="light"] body { background: var(--canvas); color: var(--ink); }
html[data-theme="light"] .auth-screen { background: radial-gradient(ellipse at 10% 90%, rgba(36,112,68,.06), transparent 32%), var(--canvas); }
html[data-theme="light"] .auth-layout,
html[data-theme="light"] .auth-card { border-color: var(--line); background: #fff; color: var(--ink); }
html[data-theme="light"] .auth-card h1,
html[data-theme="light"] .auth-aside .aside-content h2 { color: #17212b; }
html[data-theme="light"] .auth-aside { border-left: 1px solid var(--line); background: linear-gradient(145deg, #f8fafc, #edf2f7); color: var(--ink); }
html[data-theme="light"] .auth-aside::before,
html[data-theme="light"] .auth-aside::after { border-color: rgba(36,112,68,.12); }
html[data-theme="light"] .aside-content > p:not(.aside-kicker),
html[data-theme="light"] .aside-points,
html[data-theme="light"] .aside-footer { color: #526174; }
html[data-theme="light"] .aside-icon { border-color: #d6e6da; background: #edf6ef; color: #247044; box-shadow: none; }
html[data-theme="light"] .aside-points i { background: #e5f2e9; color: #247044; }
html[data-theme="light"] .sidebar { border-color: #dce2e9; background: #fff; color: #17212b; }
html[data-theme="light"] .sidebar-brand,
html[data-theme="light"] .profile-meta strong { color: #17212b; }
html[data-theme="light"] .sidebar-label,
html[data-theme="light"] .profile-meta span { color: #59687a; }
html[data-theme="light"] .sidebar-profile { border-color: #e0e5eb; }
html[data-theme="light"] .nav-item { color: #435164; }
html[data-theme="light"] .nav-item:hover { background: #f3f6f8; color: #17212b; }
html[data-theme="light"] .nav-item.active { border-color: #d4e6d9; background: #edf6ef; color: #174e2e; }
html[data-theme="light"] .nav-item.active::before { background: #247044; box-shadow: none; }
html[data-theme="light"] .nav-icon,
html[data-theme="light"] .avatar { border-color: #d9e1e8; background: #f1f5f8; color: #247044; }
html[data-theme="light"] .nav-item.active .nav-icon { border-color: #d1e4d6; background: #e4f1e7; color: #1d633b; }
html[data-theme="light"] .nav-count { border-color: #ead9ae; background: #fff6df; color: #765000; }
html[data-theme="light"] .main-area { background: var(--canvas); }
html[data-theme="light"] .topbar { border-color: var(--line); background: rgba(255,255,255,.94); }
html[data-theme="light"] .breadcrumbs { color: #59687a; }
html[data-theme="light"] .breadcrumbs strong { color: #17212b; }
html[data-theme="light"] .crumb-slash { color: #8995a3; }
html[data-theme="light"] .search-box,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .mobile-menu,
html[data-theme="light"] .sales-search { border-color: #cbd5df; background: #fff; color: #455468; }
html[data-theme="light"] .search-box:focus-within { border-color: #247044; background: #fff; }
html[data-theme="light"] .search-box input,
html[data-theme="light"] .sales-search input { color: #17212b; }
html[data-theme="light"] .search-box input::placeholder,
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder { color: #69788a; opacity: 1; }
html[data-theme="light"] .search-box kbd { border-color: #d5dde5; color: #59687a; }
html[data-theme="light"] .theme-toggle { color: #6041b5; }
html[data-theme="light"] .mobile-menu { color: #344255; }
html[data-theme="light"] .page-heading h1,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .card-heading h2,
html[data-theme="light"] .sales-report-heading h2,
html[data-theme="light"] .sales-list-heading h2,
html[data-theme="light"] .client-summary h2,
html[data-theme="light"] .sales-chart-heading h3,
html[data-theme="light"] .sales-analysis-heading h3,
html[data-theme="light"] .repair-workspace-heading h2 { color: #17212b; }
html[data-theme="light"] .page-heading p,
html[data-theme="light"] .card-heading p,
html[data-theme="light"] .sales-report-heading p,
html[data-theme="light"] .sales-list-heading p,
html[data-theme="light"] .client-summary p,
html[data-theme="light"] .sales-chart-heading p,
html[data-theme="light"] .sales-analysis-heading p,
html[data-theme="light"] .repair-workspace-heading p { color: #526174; }
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .page-heading .eyebrow,
html[data-theme="light"] .workspace-kicker,
html[data-theme="light"] .sales-overview-heading .workspace-kicker { color: #42526a; }
html[data-theme="light"] .stat-card,
html[data-theme="light"] .content-card,
html[data-theme="light"] .finance-card,
html[data-theme="light"] .sales-dashboard-panel,
html[data-theme="light"] .sales-chart-panel,
html[data-theme="light"] .sales-analysis-block,
html[data-theme="light"] .sales-list-card,
html[data-theme="light"] .repair-workspace,
html[data-theme="light"] .repair-card,
html[data-theme="light"] .repair-stat-cards article { border-color: #d7dee7; background: #fff; box-shadow: 0 6px 22px rgba(27,39,54,.055); }
html[data-theme="light"] .stat-card { background: linear-gradient(145deg, #fff, #f9fbfd); }
html[data-theme="light"] .stat-top,
html[data-theme="light"] .stat-foot,
html[data-theme="light"] .repair-stat-cards article small { color: #526174; }
html[data-theme="light"] .stat-icon { border-color: #dce4dc; background: #edf5ee; color: #247044; }
html[data-theme="light"] .icon-violet { border-color: #ddd5f2; background: #f0edfa; color: #6544bf; }
html[data-theme="light"] .icon-green { border-color: #d2e7d7; background: #e8f4ec; color: #247044; }
html[data-theme="light"] .icon-amber { border-color: #ead9ae; background: #fff4d9; color: #805500; }
html[data-theme="light"] .icon-blue { border-color: #d1e2f0; background: #e8f2f9; color: #17649b; }
html[data-theme="light"] .stat-value { color: #17212b; }
html[data-theme="light"] .stat-currency { color: #247044; }
html[data-theme="light"] .card-heading,
html[data-theme="light"] .sales-list-heading,
html[data-theme="light"] .sales-report-heading,
html[data-theme="light"] .repair-workspace-heading,
html[data-theme="light"] .repair-card-top,
html[data-theme="light"] .repair-card-bottom { border-color: #dfe5ec; }
html[data-theme="light"] .finance-period,
html[data-theme="light"] .year-select-label,
html[data-theme="light"] .finance-year-control,
html[data-theme="light"] .repair-year-control { color: #526174; }
html[data-theme="light"] .year-select-label select,
html[data-theme="light"] .finance-year-control select,
html[data-theme="light"] .repair-year-control select,
html[data-theme="light"] .status-select,
html[data-theme="light"] .repair-card-actions .status-select { border-color: #cbd5df; background: #fff; color: #26364a; }
html[data-theme="light"] select option { background: #fff; color: #17212b; }
html[data-theme="light"] .finance-summary article,
html[data-theme="light"] .sales-kpis article,
html[data-theme="light"] .sales-kpis-redesigned article { border-color: #d8e0e8; background: #f8fafc; }
html[data-theme="light"] .finance-summary article span,
html[data-theme="light"] .sales-kpis article span,
html[data-theme="light"] .sales-kpis article small,
html[data-theme="light"] .sales-kpis-redesigned article span,
html[data-theme="light"] .sales-kpis-redesigned article small { color: #526174; }
html[data-theme="light"] .finance-summary article strong,
html[data-theme="light"] .sales-kpis article strong,
html[data-theme="light"] .sales-kpis-redesigned article strong { color: #17212b; }
html[data-theme="light"] .sales-kpis article:nth-child(4) strong,
html[data-theme="light"] .sales-kpis-redesigned article:nth-child(4) strong,
html[data-theme="light"] .sales-kpis-redesigned .sales-kpi-revenue strong { color: #176c50; }
html[data-theme="light"] .sales-kpis-redesigned .sales-kpi-revenue { border-color: #b8d9c4; background: #edf7f0; }
html[data-theme="light"] .sales-kpis-redesigned .sales-kpi-profit { border-color: #d4c9ed; background: #f3effb; }
html[data-theme="light"] .sales-kpis-redesigned .sales-kpi-profit strong { color: #583a9e; }
html[data-theme="light"] .sales-analysis-heading { color: #17212b; }
html[data-theme="light"] .sales-monthly-table th,
html[data-theme="light"] .sales-top-table th,
html[data-theme="light"] .sales-table th,
html[data-theme="light"] .repair-list-table th { border-color: #dfe5ec; background: #f0f4f8; color: #435164; }
html[data-theme="light"] .table-wrap td,
html[data-theme="light"] .sales-monthly-table td,
html[data-theme="light"] .sales-top-table td,
html[data-theme="light"] .sales-table td,
html[data-theme="light"] .repair-list-table td { border-color: #e2e7ed; color: #344255; }
html[data-theme="light"] .table-wrap tbody tr:hover td,
html[data-theme="light"] .sales-table tbody tr:hover td { background: #f4f7fa; }
html[data-theme="light"] .sales-monthly-table .month-name,
html[data-theme="light"] .sale-product,
html[data-theme="light"] .sales-table .sale-product strong,
html[data-theme="light"] .repair-list-table .repair-person strong,
html[data-theme="light"] .repair-list-table .device-cell strong,
html[data-theme="light"] .repair-card-name strong,
html[data-theme="light"] .repair-card-device strong { color: #17212b !important; }
html[data-theme="light"] .sales-year-total,
html[data-theme="light"] .sales-year-total td,
html[data-theme="light"] .sales-monthly-table .sales-year-total td { border-color: #cbd5df; background: #edf2f7; color: #17212b; }
html[data-theme="light"] .sales-table .linked-repair-label,
html[data-theme="light"] .repair-card.is-delivered .repair-card-status { color: #176c50; }
html[data-theme="light"] .profit-cell { color: #176c50 !important; }
html[data-theme="light"] .negative-cell,
html[data-theme="light"] .sales-kpis article strong.negative-value { color: #b42318 !important; }
html[data-theme="light"] .client-contact,
html[data-theme="light"] .repair-cost-profit strong,
html[data-theme="light"] .repair-card-section > small,
html[data-theme="light"] .repair-card-money > small,
html[data-theme="light"] .repair-card-date,
html[data-theme="light"] .repair-card-name span:not(.repair-card-avatar),
html[data-theme="light"] .repair-card-device span,
html[data-theme="light"] .repair-card-money > span { color: #526174; }
html[data-theme="light"] .repair-cost-profit small { color: #176c50; }
html[data-theme="light"] .repair-list-table .repair-person small,
html[data-theme="light"] .repair-list-table .device-cell small { color: #59687a; }
html[data-theme="light"] .repair-list-table .profit-cell { color: #176c50 !important; }
html[data-theme="light"] .repair-list-table .negative-cell { color: #b42318 !important; }
html[data-theme="light"] .repair-stat-cards article strong,
html[data-theme="light"] .repair-workspace-count strong,
html[data-theme="light"] .repair-card-money > strong { color: #17212b; }
html[data-theme="light"] .repair-stat-icon { border-color: #ead9ae; background: #fff4d9; color: #805500; }
html[data-theme="light"] .repair-stat-icon.delivered-icon { border-color: #b8d9c4; background: #edf7f0; color: #176c50; }
html[data-theme="light"] .repair-stat-icon.total-icon { border-color: #d4c9ed; background: #f3effb; color: #583a9e; }
html[data-theme="light"] .repair-toolbar { border-color: #dfe5ec; background: #f8fafc; }
html[data-theme="light"] .filter-tab { border-color: #d0d8e1; color: #435164; }
html[data-theme="light"] .filter-tab:hover { background: #eef2f6; color: #17212b; }
html[data-theme="light"] .filter-tab.active { border-color: #b7c5d3; background: #e7edf3; color: #17212b; }
html[data-theme="light"] .repair-card-top,
html[data-theme="light"] .repair-card-bottom { background: #fbfcfd; }
html[data-theme="light"] .repair-card-status { color: #805500; }
html[data-theme="light"] .repair-card-status i { background: #c38a16; box-shadow: none; }
html[data-theme="light"] .repair-card.is-delivered .repair-card-status i { background: #26845a; box-shadow: none; }
html[data-theme="light"] .repair-card-year { border-color: #d2dbe4; background: #f3f6f9; color: #435164; }
html[data-theme="light"] .repair-card-avatar,
html[data-theme="light"] .mini-avatar,
html[data-theme="light"] .client-initial { border-color: #d9e1e8; background: #f1f5f8; color: #247044; }
html[data-theme="light"] .repair-card-money { border-color: #dfe5ec; }
html[data-theme="light"] .repair-card-money > span b { color: #8995a3; }
html[data-theme="light"] .repair-action,
html[data-theme="light"] .icon-button.row-action { border-color: #cbd5df; background: #fff; color: #344255; }
html[data-theme="light"] .repair-action:hover,
html[data-theme="light"] .icon-button.row-action:hover { border-color: #9aa9b8; background: #f1f5f8; color: #17212b; }
html[data-theme="light"] .icon-button.delete-action { border-color: #efc5c3; background: #fff5f4; color: #a52a2a; }
html[data-theme="light"] .status-waiting { border-color: #ead9ae; background: #fff4d9; color: #805500; }
html[data-theme="light"] .status-delivered { border-color: #b8d9c4; background: #e8f4ec; color: #176c50; }
html[data-theme="light"] .empty-illustration,
html[data-theme="light"] .form-section-title span { border-color: #d4e6d9; background: #edf6ef; color: #247044; }
html[data-theme="light"] .empty-state strong,
html[data-theme="light"] .form-section-title { color: #17212b; }
html[data-theme="light"] .empty-state,
html[data-theme="light"] .empty-state p,
html[data-theme="light"] .list-count,
html[data-theme="light"] .client-contact { color: #526174; }
html[data-theme="light"] .app-footer { color: #59687a; }
html[data-theme="light"] .table-wrap thead { background: #f0f4f8; }
html[data-theme="light"] .table-wrap th { color: #435164; }
html[data-theme="light"] .table-wrap td { color: #344255; }
html[data-theme="light"] .modal-dialog { border-color: #cbd5df; background: #fff; color: #17212b; box-shadow: 0 26px 90px rgba(20,32,48,.22); }
html[data-theme="light"] .modal-dialog::backdrop { background: rgba(23,33,43,.42); }
html[data-theme="light"] .modal-heading,
html[data-theme="light"] .modal-actions { border-color: #dfe5ec; }
html[data-theme="light"] .modal-heading h2 { color: #17212b; }
html[data-theme="light"] .field,
html[data-theme="light"] .form-grid .field { color: #344255; }
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .form-grid .field input,
html[data-theme="light"] .form-grid .field select,
html[data-theme="light"] .form-grid .field textarea { border-color: #cbd5df; background: #fff; color: #17212b; }
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus { border-color: #247044; box-shadow: 0 0 0 3px rgba(36,112,68,.13); }
html[data-theme="light"] .button-primary { border-color: #17212b; background: #17212b; color: #fff; box-shadow: 0 5px 14px rgba(23,33,43,.13); }
html[data-theme="light"] .button-primary:hover { background: #293b4e; }
html[data-theme="light"] .button-secondary,
html[data-theme="light"] .button-secondary:hover { border-color: #cbd5df; background: #f1f5f8; color: #26364a; }
html[data-theme="light"] .button-quiet,
html[data-theme="light"] .text-button { color: #285b3c; }
html[data-theme="light"] .button-quiet:hover,
html[data-theme="light"] .text-button:hover { color: #17452b; }
html[data-theme="light"] .optional-details { border-color: #d7dee7; }
html[data-theme="light"] .optional-details[open] summary { border-color: #d7dee7; }
html[data-theme="light"] .optional-details summary { color: #285b3c; }
html[data-theme="light"] .profit-preview { border-color: #cfe2d3; background: #edf7f0; color: #185b37; }
html[data-theme="light"] .profit-preview.profit-negative { border-color: #efc5c3; background: #fff0ef; color: #a52a2a; }
html[data-theme="light"] .form-message { border-color: #efc5c3; background: #fff0ef; color: #a52a2a; }
html[data-theme="light"] .demo-banner { border-color: #cfe2d3; background: #edf7f0; color: #185b37; }
html[data-theme="light"] .demo-banner button { color: #185b37; }
html[data-theme="light"] .toast { border-color: #b8d9c4; background: #edf7f0; color: #174e2e; box-shadow: var(--shadow); }
html[data-theme="light"] .toast.error { border-color: #efc5c3; background: #fff0ef; color: #a52a2a; }
html[data-theme="light"] .finance-chart .chart-grid,
html[data-theme="light"] .sales-chart .chart-grid { stroke: #d5dde6 !important; }
html[data-theme="light"] .finance-chart .chart-axis-label,
html[data-theme="light"] .finance-chart .chart-month-label,
html[data-theme="light"] .sales-chart .chart-axis-label,
html[data-theme="light"] .sales-chart .chart-month-label { fill: #344255 !important; font-weight: 700; }
html[data-theme="light"] .finance-chart .finance-line.revenue { stroke: #6544bf !important; }
html[data-theme="light"] .finance-chart .finance-point.revenue { fill: #6544bf !important; stroke: #fff !important; }
html[data-theme="light"] .finance-chart .finance-line.cost { stroke: #9a6200 !important; }
html[data-theme="light"] .finance-chart .finance-point.cost { fill: #9a6200 !important; stroke: #fff !important; }
html[data-theme="light"] .finance-chart .finance-line.profit { stroke: #176c50 !important; }
html[data-theme="light"] .finance-chart .finance-point.profit { fill: #176c50 !important; stroke: #fff !important; }
html[data-theme="light"] .sales-chart .sales-zero-line { stroke: #8995a3 !important; }
html[data-theme="light"] .sales-chart-bar.revenue { fill: #16866c !important; }
html[data-theme="light"] .sales-chart-bar.cost { fill: #b57600 !important; }
html[data-theme="light"] .sales-chart-bar.profit { fill: #7051c7 !important; }
html[data-theme="light"] .sales-legend { border-color: #dfe5ec; color: #344255; }
html[data-theme="light"] .sales-legend .legend-total { background: #16866c; }
html[data-theme="light"] .sales-legend .legend-cost { background: #b57600; }
html[data-theme="light"] .sales-legend .legend-profit { background: #7051c7; }
html[data-theme="light"] .finance-foot,
html[data-theme="light"] .sales-chart-note { border-color: #dfe5ec; color: #526174; }
html[data-theme="light"] .settings-button { border-color: #cbd5df; background: #f1f5f8; color: #435164; }
html[data-theme="light"] .settings-button:hover { border-color: #a8cbb2; background: #edf7f0; color: #185b37; }
@media (max-width: 980px) {
  html[data-theme="light"] .repair-list-table tr { border-color: #d7dee7; background: #fff; }
  html[data-theme="light"] .repair-list-table td { border-color: #e2e7ed; }
  html[data-theme="light"] .repair-list-table td::before { color: #59687a; }
}
@media (max-width: 760px) {
  html[data-theme="light"] .sidebar.open { box-shadow: 12px 0 35px rgba(20,32,48,.2); }
  html[data-theme="light"] .sales-monthly-table tr { border-color: #d7dee7; background: #fff; }
  html[data-theme="light"] .sales-monthly-table td { border-color: #e2e7ed; color: #344255; }
  html[data-theme="light"] .sales-monthly-table td::before,
  html[data-theme="light"] .sales-monthly-table td.month-name::before { color: #59687a; }
  html[data-theme="light"] .sales-monthly-table td.month-name { background: #edf2f7; color: #17212b; }
  html[data-theme="light"] .sales-monthly-table .sales-year-total { border-color: #cbd5df; background: #edf2f7; }
}

/* Readability pass: larger labels and calmer spacing across both themes. */
html[data-theme] body { font-size: 16px; line-height: 1.6; }
html[data-theme] .sidebar-label { font-size: 12px; }
html[data-theme] .nav-item { min-height: 48px; font-size: 15px; }
html[data-theme] .nav-icon { width: 26px; height: 26px; flex-basis: 26px; font-size: 13px; }
html[data-theme] .profile-meta strong { font-size: 13px; }
html[data-theme] .profile-meta span { font-size: 11px; }
html[data-theme] .breadcrumbs { font-size: 13px; }
html[data-theme] .search-box input { font-size: 14px; }
html[data-theme] .search-box kbd { font-size: 10px; }
html[data-theme] .top-new { min-height: 42px; font-size: 14px; }
html[data-theme] .page-heading p { font-size: 16px; }
html[data-theme] .card-heading,
html[data-theme] .sales-report-heading,
html[data-theme] .sales-list-heading,
html[data-theme] .client-summary { padding: 21px 23px; }
html[data-theme] .card-heading h2,
html[data-theme] .sales-report-heading h2,
html[data-theme] .sales-list-heading h2,
html[data-theme] .client-summary h2 { font-size: 20px; }
html[data-theme] .card-heading p,
html[data-theme] .sales-report-heading p,
html[data-theme] .sales-list-heading p,
html[data-theme] .client-summary p { font-size: 14px; }
html[data-theme] #view-dashboard .stats-grid { gap: 17px; }
html[data-theme] #view-dashboard .stat-top { font-size: 14px; }
html[data-theme] #view-dashboard .stat-value { font-size: 32px; }
html[data-theme] #view-dashboard .stat-foot { font-size: 13px; }
html[data-theme] .sales-overview-heading h2 { font-size: 26px; }
html[data-theme] .sales-kpis-redesigned { gap: 14px; }
html[data-theme] .sales-kpis-redesigned article { min-height: 142px; padding: 20px; }
html[data-theme] .sales-kpis-redesigned article span { font-size: 14px; }
html[data-theme] .sales-kpis-redesigned article strong { font-size: clamp(20px, 1.8vw, 26px); }
html[data-theme] .sales-kpis-redesigned article small { font-size: 13px; }
html[data-theme] .sales-chart-heading h3,
html[data-theme] .sales-analysis-heading h3 { font-size: 21px; }
html[data-theme] .sales-chart-heading p,
html[data-theme] .sales-analysis-heading p { font-size: 14px; }
html[data-theme] .sales-monthly-table th,
html[data-theme] .sales-top-table th,
html[data-theme] .sales-table th,
html[data-theme] .repair-list-table th,
html[data-theme] .table-wrap th { font-size: 13px; }
html[data-theme] .sales-monthly-table td,
html[data-theme] .sales-top-table td,
html[data-theme] .sales-table td,
html[data-theme] .repair-list-table td,
html[data-theme] .table-wrap td { font-size: 14px; }
html[data-theme] .sales-monthly-table th,
html[data-theme] .sales-monthly-table td,
html[data-theme] .sales-top-table th,
html[data-theme] .sales-top-table td { padding-top: 15px; padding-bottom: 15px; }
html[data-theme] .repair-stat-cards article small { font-size: 15px; }
html[data-theme] .repair-stat-cards article strong { font-size: 31px; }
html[data-theme] .repair-workspace-heading h2 { font-size: 25px; }
html[data-theme] .repair-workspace-heading p { font-size: 15px; }
html[data-theme] .repair-workspace-count { font-size: 13px; }
html[data-theme] .repair-workspace-count strong { font-size: 26px; }
html[data-theme] .repair-toolbar { min-height: 72px; }
html[data-theme] .filter-tab { padding: 10px 15px; font-size: 14px; }
html[data-theme] .repair-card-section > small,
html[data-theme] .repair-card-money > small { font-size: 12px; }
html[data-theme] .repair-card-name strong,
html[data-theme] .repair-card-device strong { font-size: 16px; }
html[data-theme] .repair-card-name span:not(.repair-card-avatar),
html[data-theme] .repair-card-device span,
html[data-theme] .repair-card-date { font-size: 14px; }
html[data-theme] .repair-card-money > strong { font-size: 23px; }
html[data-theme] .repair-card-money > span { font-size: 14px; }
html[data-theme] .repair-card-actions .status-select,
html[data-theme] .repair-action { min-height: 40px; font-size: 13px; }
html[data-theme] .sales-list-heading p,
html[data-theme] .client-contact { font-size: 14px; }
html[data-theme] .sales-table .linked-repair-label,
html[data-theme] .client-contact small { font-size: 12px; }
html[data-theme] .empty-state strong { font-size: 16px; }
html[data-theme] .empty-state p,
html[data-theme] .list-count,
html[data-theme] .app-footer { font-size: 13px; }
html[data-theme] .status-pill { min-height: 29px; padding: 5px 10px; font-size: 12px; }
html[data-theme] .finance-legend,
html[data-theme] .sales-legend { font-size: 14px; }
html[data-theme] .finance-chart .chart-axis-label,
html[data-theme] .finance-chart .chart-month-label,
html[data-theme] .sales-chart .chart-axis-label,
html[data-theme] .sales-chart .chart-month-label { font-size: 13px !important; }
html[data-theme] .finance-chart { height: 275px; }
html[data-theme] .repair-cost-profit strong,
html[data-theme] .repair-cost-profit small { font-size: 13px; }
@media (max-width: 1050px) {
  html[data-theme] .sales-kpis-redesigned { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme] .sales-kpis-redesigned article { min-height: 120px; padding: 16px; }
}
@media (max-width: 760px) {
  html[data-theme] .nav-item { min-height: 45px; font-size: 14px; }
  html[data-theme] .breadcrumbs { font-size: 11px; }
  html[data-theme] .top-new { min-height: 36px; font-size: 12px; }
  html[data-theme] .card-heading,
  html[data-theme] .sales-report-heading,
  html[data-theme] .sales-list-heading,
  html[data-theme] .client-summary { padding: 17px 15px; }
  html[data-theme] .card-heading h2,
  html[data-theme] .sales-report-heading h2,
  html[data-theme] .sales-list-heading h2,
  html[data-theme] .client-summary h2 { font-size: 18px; }
  html[data-theme] .card-heading p,
  html[data-theme] .sales-report-heading p,
  html[data-theme] .sales-list-heading p,
  html[data-theme] .client-summary p { font-size: 13px; }
  html[data-theme] #view-dashboard .stat-top { font-size: 12px; }
  html[data-theme] #view-dashboard .stat-value { font-size: 27px; }
  html[data-theme] #view-dashboard .stat-foot { font-size: 10px; }
  html[data-theme] .sales-overview-heading h2 { font-size: 21px; }
  html[data-theme] .sales-kpis-redesigned { gap: 9px; }
  html[data-theme] .sales-kpis-redesigned article { min-height: 112px; padding: 13px; }
  html[data-theme] .sales-kpis-redesigned article span { font-size: 12px; }
  html[data-theme] .sales-kpis-redesigned article strong { font-size: clamp(16px, 4.4vw, 21px); }
  html[data-theme] .sales-kpis-redesigned article small { font-size: 11px; }
  html[data-theme] .sales-chart-heading h3,
  html[data-theme] .sales-analysis-heading h3 { font-size: 17px; }
  html[data-theme] .sales-monthly-table td,
  html[data-theme] .sales-top-table td,
  html[data-theme] .sales-table td,
  html[data-theme] .repair-list-table td,
  html[data-theme] .table-wrap td { font-size: 12px; }
  html[data-theme] .sales-monthly-table th,
  html[data-theme] .sales-top-table th,
  html[data-theme] .sales-table th,
  html[data-theme] .repair-list-table th,
  html[data-theme] .table-wrap th { font-size: 11px; }
  html[data-theme] #view-dashboard .finance-chart { height: 210px; }
  html[data-theme] .finance-chart .chart-axis-label,
  html[data-theme] .finance-chart .chart-month-label,
  html[data-theme] .sales-chart .chart-axis-label,
  html[data-theme] .sales-chart .chart-month-label { font-size: 11px !important; }
  html[data-theme] .repair-workspace-heading h2 { font-size: 20px; }
  html[data-theme] .repair-workspace-heading p { font-size: 13px; }
  html[data-theme] .repair-stat-cards article small { font-size: 13px; }
  html[data-theme] .repair-stat-cards article strong { font-size: 26px; }
  html[data-theme] .repair-card-name strong,
  html[data-theme] .repair-card-device strong { font-size: 14px; }
  html[data-theme] .repair-card-name span:not(.repair-card-avatar),
  html[data-theme] .repair-card-device span,
  html[data-theme] .repair-card-date { font-size: 12px; }
  html[data-theme] .repair-card-money > strong { font-size: 19px; }
  html[data-theme] .sales-monthly-table th,
  html[data-theme] .sales-monthly-table td,
  html[data-theme] .sales-top-table th,
  html[data-theme] .sales-top-table td { padding-top: 11px; padding-bottom: 11px; }
  html[data-theme] .repair-card-actions .status-select,
  html[data-theme] .repair-action { min-height: 36px; font-size: 12px; }
}

/* Redesigned, responsive charts with gentle entrance animations. */
.finance-chart { position: relative; border-radius: 14px; background: linear-gradient(180deg, rgba(148,117,255,.045), transparent 76%); }
.finance-chart svg,
.sales-chart svg { overflow: visible; }
.finance-chart .finance-bar { opacity: .92; cursor: crosshair; transform-box: fill-box; transform-origin: center bottom; animation: finance-bar-rise .68s cubic-bezier(.2,.72,.25,1) var(--bar-delay, 0ms) both; transition: filter .18s ease, opacity .18s ease; }
.finance-chart .finance-bar.negative { transform-origin: center top; }
.finance-chart .finance-bar:hover { filter: brightness(1.14) drop-shadow(0 3px 4px rgba(0,0,0,.18)); opacity: 1; }
.finance-chart .finance-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: finance-line-draw 1.1s cubic-bezier(.22,.7,.25,1) var(--line-delay, 0ms) forwards; transition: filter .2s ease, stroke-width .2s ease; }
.finance-chart .finance-line:hover { filter: drop-shadow(0 0 5px currentColor); stroke-width: 4.5; }
.finance-chart .finance-point { cursor: crosshair; opacity: 0; transform-box: fill-box; transform-origin: center; animation: finance-point-pop .38s cubic-bezier(.18,.85,.35,1.35) var(--point-delay, 0ms) both; transition: r .16s ease; }
.finance-chart .finance-point:hover { r: 7px; }
.finance-chart .finance-zero-line { stroke: #56616e; stroke-width: 1.15; stroke-dasharray: 4 5; opacity: .8; }
.sales-chart-wrap { overflow-x: auto; scroll-behavior: smooth; }
.sales-chart { width: 100%; min-width: 0; height: 390px; }
.sales-chart-area { fill: url(#sales-revenue-area); opacity: 0; animation: finance-area-reveal .9s ease-out .08s forwards; }
.sales-chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: finance-line-draw 1.08s cubic-bezier(.22,.7,.25,1) var(--line-delay, 0ms) forwards; transition: filter .2s ease, stroke-width .2s ease; }
.sales-chart-line:hover { filter: drop-shadow(0 0 5px currentColor); stroke-width: 4.5; }
.sales-chart-point { cursor: crosshair; opacity: 0; transform-box: fill-box; transform-origin: center; animation: finance-point-pop .38s cubic-bezier(.18,.85,.35,1.35) var(--point-delay, 0ms) both; transition: r .16s ease; }
.sales-chart-point:hover { r: 7px; }
.sales-chart .chart-month-label { fill: #d7dce4; }
.sales-chart .sales-zero-line { stroke-width: 1.6; }
.sales-legend { flex-wrap: wrap; }
@keyframes finance-line-draw { to { stroke-dashoffset: 0; } }
@keyframes finance-area-reveal { to { opacity: 1; } }
@keyframes finance-point-pop { 0% { opacity: 0; transform: scale(.35); } 78% { opacity: 1; transform: scale(1.13); } 100% { opacity: 1; transform: scale(1); } }
@keyframes finance-bar-rise { 0% { opacity: .25; transform: scaleY(.03); } 100% { opacity: .92; transform: scaleY(1); } }
html[data-theme="light"] .finance-chart { background: linear-gradient(180deg, rgba(101,68,191,.05), transparent 76%); }
html[data-theme="light"] .finance-chart .finance-zero-line { stroke: #718096; }
html[data-theme="light"] .finance-chart .finance-bar.revenue { fill: #6544bf !important; }
html[data-theme="light"] .finance-chart .finance-bar.cost { fill: #9a6200 !important; }
html[data-theme="light"] .sales-chart-line.revenue { stroke: #16866c !important; }
html[data-theme="light"] .sales-chart-point.revenue { fill: #16866c !important; stroke: #fff !important; }
html[data-theme="light"] .sales-chart-line.cost { stroke: #b57600 !important; }
html[data-theme="light"] .sales-chart-point.cost { fill: #b57600 !important; stroke: #fff !important; }
html[data-theme="light"] .sales-chart-line.profit { stroke: #7051c7 !important; }
html[data-theme="light"] .sales-chart-point.profit { fill: #7051c7 !important; stroke: #fff !important; }
html[data-theme="light"] .sales-chart .chart-month-label { fill: #344255 !important; }
@media (max-width: 760px) {
  .sales-chart { min-width: 0; height: 315px; }
  .sales-chart-wrap { padding-right: 12px; padding-left: 12px; }
  #view-dashboard .finance-chart { height: 225px; }
}
@media (prefers-reduced-motion: reduce) {
  .finance-chart .finance-bar,
  .finance-chart .finance-line,
  .finance-chart .finance-point,
  .sales-chart-area,
  .sales-chart-line,
  .sales-chart-point { animation: none !important; transition: none !important; }
  .finance-chart .finance-bar { opacity: .92; transform: none; }
  .finance-chart .finance-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .finance-chart .finance-point { opacity: 1; transform: none; }
  .sales-chart-area { opacity: .15; }
  .sales-chart-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .sales-chart-point { opacity: 1; transform: none; }
}

/* Stable compact layout after the chart experiments. */
html[data-theme] body { font-size: 14px; line-height: 1.5; }
html[data-theme] .sidebar-label { font-size: 9px; }
html[data-theme] .nav-item { min-height: 45px; font-size: 13px; }
html[data-theme] .nav-icon { width: 23px; height: 23px; flex-basis: 23px; font-size: 12px; }
html[data-theme] .profile-meta strong { font-size: 11px; }
html[data-theme] .profile-meta span { font-size: 9px; }
html[data-theme] .breadcrumbs { font-size: 11px; }
html[data-theme] .search-box input { font-size: 12px; }
html[data-theme] .top-new { min-height: 38px; font-size: 12px; }
html[data-theme] .page-heading p { font-size: 14px; }
html[data-theme] .card-heading,
html[data-theme] .sales-report-heading,
html[data-theme] .sales-list-heading,
html[data-theme] .client-summary { padding: 18px 20px; }
html[data-theme] .card-heading h2,
html[data-theme] .sales-report-heading h2,
html[data-theme] .sales-list-heading h2,
html[data-theme] .client-summary h2 { font-size: 17px; }
html[data-theme] .card-heading p,
html[data-theme] .sales-report-heading p,
html[data-theme] .sales-list-heading p,
html[data-theme] .client-summary p { font-size: 12px; }
html[data-theme] #view-dashboard .stats-grid { gap: 14px; }
html[data-theme] #view-dashboard .stat-top { font-size: 12px; }
html[data-theme] #view-dashboard .stat-value { font-size: 28px; }
html[data-theme] #view-dashboard .stat-foot { font-size: 10px; }
html[data-theme] .sales-overview-heading h2 { font-size: 22px; }
html[data-theme] .sales-kpis-redesigned { gap: 12px; }
html[data-theme] .sales-kpis-redesigned article { min-height: 118px; padding: 16px; }
html[data-theme] .sales-kpis-redesigned article span { font-size: 12px; }
html[data-theme] .sales-kpis-redesigned article strong { font-size: clamp(17px, 1.55vw, 22px); }
html[data-theme] .sales-kpis-redesigned article small { font-size: 11px; }
html[data-theme] .sales-chart-heading h3,
html[data-theme] .sales-analysis-heading h3 { font-size: 18px; }
html[data-theme] .sales-chart-heading p,
html[data-theme] .sales-analysis-heading p { font-size: 12px; }
html[data-theme] .sales-monthly-table th,
html[data-theme] .sales-top-table th,
html[data-theme] .sales-table th,
html[data-theme] .repair-list-table th,
html[data-theme] .table-wrap th { font-size: 11px; }
html[data-theme] .sales-monthly-table td,
html[data-theme] .sales-top-table td,
html[data-theme] .sales-table td,
html[data-theme] .repair-list-table td,
html[data-theme] .table-wrap td { font-size: 13px; }
html[data-theme] .repair-stat-cards article small { font-size: 13px; }
html[data-theme] .repair-stat-cards article strong { font-size: 27px; }
html[data-theme] .repair-workspace-heading h2 { font-size: 21px; }
html[data-theme] .repair-workspace-heading p { font-size: 13px; }
html[data-theme] .repair-workspace-count strong { font-size: 22px; }
html[data-theme] .repair-toolbar { min-height: 64px; }
html[data-theme] .filter-tab { padding: 8px 13px; font-size: 12px; }
html[data-theme] .repair-card-name strong,
html[data-theme] .repair-card-device strong { font-size: 14px; }
html[data-theme] .repair-card-name span:not(.repair-card-avatar),
html[data-theme] .repair-card-device span,
html[data-theme] .repair-card-date { font-size: 12px; }
html[data-theme] .repair-card-money > strong { font-size: 20px; }
html[data-theme] .repair-card-money > span { font-size: 12px; }
html[data-theme] .repair-card-actions .status-select,
html[data-theme] .repair-action { min-height: 35px; font-size: 12px; }
html[data-theme] .finance-chart { height: 235px; border-radius: 0; background: transparent; }
html[data-theme] .sales-chart { height: 350px; }
html[data-theme] .finance-chart .finance-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
html[data-theme] .finance-chart .finance-point { opacity: 1; transform: none; animation: none; }
html[data-theme] .finance-chart .finance-area,
html[data-theme] .finance-chart .finance-bar,
html[data-theme] .sales-chart-area,
html[data-theme] .sales-chart-line,
html[data-theme] .sales-chart-point { display: none; }
html[data-theme] .sales-chart-bar { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: chart-bar-appear .34s ease-out forwards; }
html[data-theme] .sales-chart-bar:nth-of-type(3n + 1) { animation-delay: 20ms; }
html[data-theme] .sales-chart-bar:nth-of-type(3n + 2) { animation-delay: 70ms; }
html[data-theme] .sales-chart-bar:nth-of-type(3n) { animation-delay: 120ms; }
html[data-theme] .sales-chart-bar:hover { opacity: 1; filter: brightness(1.08); }
@keyframes chart-bar-appear { from { opacity: 0; transform: scaleY(.7); } to { opacity: .94; transform: scaleY(1); } }
@media (max-width: 760px) {
  html[data-theme] .nav-item { min-height: 43px; font-size: 12px; }
  html[data-theme] .card-heading,
  html[data-theme] .sales-report-heading,
  html[data-theme] .sales-list-heading,
  html[data-theme] .client-summary { padding: 16px 14px; }
  html[data-theme] #view-dashboard .stat-value { font-size: 24px; }
  html[data-theme] .sales-kpis-redesigned article { min-height: 106px; padding: 12px; }
  html[data-theme] .sales-kpis-redesigned article strong { font-size: clamp(15px, 4.2vw, 19px); }
  html[data-theme] #view-dashboard .finance-chart { height: 190px; }
  html[data-theme] .sales-chart { height: 290px; }
  html[data-theme] .finance-chart .chart-axis-label,
  html[data-theme] .finance-chart .chart-month-label,
  html[data-theme] .sales-chart .chart-axis-label,
  html[data-theme] .sales-chart .chart-month-label { font-size: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] .sales-chart-bar { opacity: .94; transform: none; animation: none; }
}
