:root {
  --primary: #218285;
  --primary-dark: #17666a;
  --primary-soft: rgba(33, 130, 133, .08);
  --accent: #dda448;
  --accent-soft: rgba(221, 164, 72, .14);
  --title: #124348;
  --title-soft: #28666b;
  --copy: #263f46;
  --label: #31535b;
  --field-value: #007f68;
  --field-filled: rgba(218, 255, 242, .80);
  --field-filled-border: rgba(0, 184, 139, .50);
  --navy: #101820;
  --surface: rgba(255, 255, 255, .82);
  --ink: #1f2933;
  --muted: #64748b;
  --line: #dbe5e7;
  --bg: #f4f8f8;
  --card: #ffffff;
  --danger: #b42318;
  --success: #157347;
  --shadow: 0 18px 48px rgba(16, 24, 32, .08);
  --shadow-hover: 0 24px 62px rgba(16, 24, 32, .13);
  --font-sans: "Aptos", "Aptos Display", "Segoe UI Variable", "Inter", "SF Pro Text", "Segoe UI", "Roboto", Arial, sans-serif;
  --font-display: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI Variable", "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 1.45; color: var(--copy); background: #eef4f2; font-feature-settings: "cv02", "cv03", "cv04", "kern"; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 15px; line-height: 1.25; letter-spacing: 0; font-weight: 720; color: var(--title); }
.auth-body { min-height: 100vh; display: grid; place-items: center; background: #fff; }
.auth-card { width: min(420px, calc(100vw - 32px)); padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 20px 70px rgba(25, 88, 90, .12); }
.auth-logo { width: 220px; max-width: 100%; margin-bottom: 24px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 282px 1fr; }
.sidebar { isolation: isolate; background: linear-gradient(180deg, #101820 0%, #17251f 42%, #12393c 100%); color: #fff; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; box-shadow: 12px 0 34px rgba(16, 24, 32, .20); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.sidebar::before { content: ''; position: fixed; z-index: -2; inset: 0 auto 0 0; width: 282px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 28%), repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, rgba(255,255,255,0) 1px 10px); opacity: .58; }
.sidebar::after { content: ''; position: fixed; z-index: -1; inset: 0 auto 0 0; width: 282px; pointer-events: none; background: linear-gradient(90deg, rgba(221,164,72,.16), rgba(33,130,133,0) 42%), linear-gradient(180deg, rgba(33,130,133,.18), rgba(33,130,133,0) 34%, rgba(221,164,72,.10)); mix-blend-mode: screen; opacity: .78; }
.sidebar-brand { display: grid; gap: 12px; margin-bottom: 14px; padding: 0 2px 14px; border-bottom: 1px solid rgba(255, 255, 255, .10); }
.brand-mark { display: flex; align-items: center; min-height: 70px; padding: 4px 8px; border-radius: 0; background: transparent; border: 0; box-shadow: none; }
.brand-logo { width: 210px; max-width: 100%; display: block; filter: drop-shadow(0 12px 18px rgba(0,0,0,.22)); opacity: 1; box-shadow: none; }
.sidebar-user { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; min-height: 64px; padding: 10px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 8px; background: rgba(255, 255, 255, .075); box-shadow: 0 12px 24px rgba(0,0,0,.10); backdrop-filter: blur(14px); }
.sidebar-user-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, #e9f7f6 0%, #bfe7e4 100%); color: #103d3f; font-size: 16px; font-weight: 760; line-height: 0; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.sidebar-user-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sidebar-user-copy { min-width: 0; display: grid; gap: 1px; }
.sidebar-user-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0; color: rgba(255, 255, 255, .60); font-weight: 760; }
.sidebar-user-name { font-size: 14px; font-weight: 780; color: #fff; line-height: 1.22; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { font-size: 11px; color: #bfe7e4; font-weight: 680; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: grid; gap: 10px; padding-bottom: 12px; }
.nav a { position: relative; color: rgba(255, 255, 255, .78); font-weight: 720; transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nav a:hover { color: #fff; }
.nav .primary-action { display: grid; gap: 3px; min-height: 58px; padding: 12px 14px 12px 44px; border-radius: 8px; background: linear-gradient(180deg, #f8fffe 0%, #dcefeb 100%); color: #103d3f; margin: 3px 2px 5px; box-shadow: 0 14px 26px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.70); overflow: hidden; }
.nav .primary-action::before { content: '+'; position: absolute; left: 13px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 7px; background: var(--primary); color: #fff; font-size: 17px; line-height: 1; font-weight: 780; }
.nav .primary-action::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.55) 42%, transparent 68%); transition: transform .55s ease; }
.nav .primary-action:hover { transform: translateY(-1px); box-shadow: 0 18px 30px rgba(0, 0, 0, .24); }
.nav .primary-action:hover::after { transform: translateX(120%); }
.nav .primary-action span { font-size: 14px; font-weight: 820; line-height: 1.2; }
.nav .primary-action small { font-size: 11px; color: #4f6f70; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.nav-section { display: grid; gap: 2px; padding: 5px 2px 7px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-section:last-of-type { border-bottom: 0; }
.nav-section-rh .nav-section-title span { color: #d7e9e2; }
.nav-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin: 0 8px 4px; color: rgba(255, 255, 255, .52); font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: 0; }
.nav-section-title em { font-style: normal; padding: 2px 7px; border-radius: 999px; background: rgba(221, 164, 72, .18); color: #ffd99c; font-size: 10px; letter-spacing: 0; font-weight: 760; border: 1px solid rgba(221, 164, 72, .26); }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; }
.nav-link::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 999px; background: transparent; }
.nav-link span:last-child { font-size: 13px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.nav-link:hover { background: rgba(255, 255, 255, .082); border-color: rgba(255, 255, 255, .10); transform: translateX(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.nav-link.active { background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(236, 246, 243, .97) 100%); color: #102b31; border-color: rgba(255, 255, 255, .78); box-shadow: 0 10px 22px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255,255,255,.88); }
.nav-link.active::before { background: #dda448; }
.nav-icon { --icon-color: rgba(255,255,255,.88); --icon-muted: rgba(255,255,255,.28); flex: 0 0 30px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.09); color: var(--icon-color); border: 1px solid rgba(255,255,255,.08); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.nav-link.active .nav-icon { --icon-color: var(--primary-dark); --icon-muted: rgba(33, 130, 133, .24); background: rgba(33, 130, 133, .10); color: var(--primary-dark); border-color: rgba(33, 130, 133, .16); }
.nav-icon::before, .nav-icon::after { content: ''; position: absolute; box-sizing: border-box; }
.i-dashboard::before { width: 13px; height: 13px; border: 2px solid var(--icon-color); border-radius: 4px; box-shadow: 5px -5px 0 -3px var(--icon-color), -5px 5px 0 -3px var(--icon-color); }
.i-clients::before { width: 8px; height: 8px; top: 7px; border: 2px solid var(--icon-color); border-radius: 50%; }
.i-clients::after { width: 16px; height: 8px; bottom: 6px; border: 2px solid var(--icon-color); border-top: 0; border-radius: 0 0 9px 9px; }
.i-products::before { width: 15px; height: 13px; border: 2px solid var(--icon-color); border-radius: 4px; transform: translateY(2px); }
.i-products::after { width: 9px; height: 5px; top: 7px; border: 2px solid var(--icon-color); border-bottom: 0; border-radius: 5px 5px 0 0; }
.i-services::before { width: 16px; height: 2px; background: var(--icon-color); border-radius: 999px; transform: rotate(-38deg); }
.i-services::after { width: 7px; height: 7px; right: 8px; top: 7px; border: 2px solid var(--icon-color); border-left: 0; border-bottom: 0; border-radius: 2px; transform: rotate(-38deg); }
.i-quotes::before, .i-docs::before { width: 13px; height: 16px; border: 2px solid var(--icon-color); border-radius: 3px; }
.i-quotes::after, .i-docs::after { width: 7px; height: 2px; background: var(--icon-color); top: 10px; box-shadow: 0 5px 0 var(--icon-color); border-radius: 999px; }
.i-sales::before { width: 16px; height: 12px; border: 2px solid var(--icon-color); border-radius: 4px; transform: translateY(2px); }
.i-sales::after { width: 5px; height: 5px; left: 9px; bottom: 6px; border-radius: 50%; background: var(--icon-color); box-shadow: 9px 0 0 var(--icon-color); }
.i-reports::before { width: 3px; height: 13px; bottom: 7px; background: var(--icon-color); border-radius: 999px; box-shadow: -5px 4px 0 var(--icon-color), 5px -3px 0 var(--icon-color); }
.i-settings::before { width: 15px; height: 15px; border: 2px solid var(--icon-color); border-radius: 50%; }
.i-settings::after { width: 5px; height: 5px; border-radius: 50%; background: var(--icon-color); }
.i-clock::before { width: 15px; height: 15px; border: 2px solid var(--icon-color); border-radius: 50%; }
.i-clock::after { width: 6px; height: 6px; border-left: 2px solid var(--icon-color); border-bottom: 2px solid var(--icon-color); transform: translate(2px, -1px); }
.i-route::before { width: 16px; height: 11px; border: 2px solid var(--icon-color); border-left: 0; border-radius: 0 8px 8px 0; }
.i-route::after { width: 5px; height: 5px; border-radius: 50%; background: var(--icon-color); left: 7px; top: 7px; box-shadow: 11px 9px 0 var(--icon-color); }
.i-timer::before { width: 15px; height: 15px; border: 2px solid var(--icon-color); border-radius: 50%; transform: translateY(2px); }
.i-timer::after { width: 7px; height: 3px; top: 5px; border: 2px solid var(--icon-color); border-bottom: 0; border-radius: 4px 4px 0 0; }
.i-alert::before { width: 16px; height: 14px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 15px solid var(--icon-color); transform: translateY(-1px); }
.i-alert::after { width: 2px; height: 7px; background: #102b31; top: 9px; box-shadow: 0 9px 0 #102b31; }
.i-calendar::before { width: 16px; height: 14px; border: 2px solid var(--icon-color); border-radius: 4px; transform: translateY(1px); }
.i-calendar::after { width: 12px; height: 2px; top: 10px; background: var(--icon-color); box-shadow: -4px -3px 0 -1px var(--icon-color), 4px -3px 0 -1px var(--icon-color); }
.i-wallet::before { width: 17px; height: 13px; border: 2px solid var(--icon-color); border-radius: 4px; }
.i-wallet::after { width: 7px; height: 6px; right: 6px; border: 2px solid var(--icon-color); border-right: 0; border-radius: 4px 0 0 4px; }
.i-lock::before { width: 14px; height: 10px; bottom: 6px; border: 2px solid var(--icon-color); border-radius: 3px; }
.i-lock::after { width: 10px; height: 9px; top: 6px; border: 2px solid var(--icon-color); border-bottom: 0; border-radius: 8px 8px 0 0; }
.i-award::before { width: 13px; height: 13px; top: 6px; border: 2px solid var(--icon-color); border-radius: 50%; }
.i-award::after { width: 9px; height: 8px; bottom: 5px; border-left: 3px solid var(--icon-color); border-right: 3px solid var(--icon-color); transform: skew(-12deg); }
.i-shield::before { width: 15px; height: 17px; border: 2px solid var(--icon-color); border-radius: 9px 9px 12px 12px; clip-path: polygon(50% 0, 100% 16%, 90% 72%, 50% 100%, 10% 72%, 0 16%); }
.i-admin::before { width: 14px; height: 14px; border: 2px solid var(--icon-color); border-radius: 50%; }
.i-admin::after { width: 4px; height: 4px; border-radius: 50%; background: var(--icon-color); box-shadow: 8px 0 0 var(--icon-color), -8px 0 0 var(--icon-color); }
.i-external::before { width: 14px; height: 14px; border: 2px solid var(--icon-color); border-radius: 4px; }
.i-external::after { width: 8px; height: 8px; top: 7px; right: 7px; border-top: 2px solid var(--icon-color); border-right: 2px solid var(--icon-color); }
.nav .site-return-action { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; margin: 3px 2px 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(255, 255, 255, .055); color: rgba(255,255,255,.82); }
.nav .site-return-action:hover { background: rgba(255, 255, 255, .10); color: #fff; transform: translateX(1px); }
.nav-group-title { margin: 12px 9px 4px; font-size: 11px; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 680; letter-spacing: 0; }
.main { padding: 18px; min-width: 0; background: radial-gradient(circle at 18% 0%, rgba(33, 130, 133, .065) 0%, rgba(33, 130, 133, 0) 34%), radial-gradient(circle at 92% 12%, rgba(23, 102, 106, .055) 0%, rgba(23, 102, 106, 0) 30%), linear-gradient(135deg, rgba(252, 254, 254, .92) 0%, rgba(243, 250, 249, .94) 48%, rgba(238, 247, 248, .98) 100%); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid rgba(219, 229, 231, .82); border-radius: 12px; background: rgba(255, 255, 255, .78); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.workspace-meta { display: grid; gap: 2px; }
.workspace-title { font-size: 15px; font-weight: 760; color: var(--ink); line-height: 1.2; }
.workspace-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0; font-weight: 650; }
.session-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(33, 130, 133, .18); background: #fff; color: var(--primary-dark); font-weight: 680; font-size: 12px; }
.page-title { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: 0; color: #172b33; font-weight: 780; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(33, 130, 133, .08); color: var(--primary-dark); font-size: 11px; text-transform: uppercase; letter-spacing: 0; font-weight: 760; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { position: relative; overflow: hidden; background: rgba(255, 255, 255, .88); border: 1px solid rgba(219, 229, 231, .86); border-radius: 8px; padding: 12px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.card::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, #34b5b2 100%); }
.card:hover { box-shadow: var(--shadow-hover); }
.quote-items-card { overflow: visible; z-index: 5; }
.kpi { min-height: 84px; display: grid; align-content: center; gap: 5px; }
.kpi span { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border-radius: 999px; background: rgba(33, 130, 133, .08); color: var(--primary-dark); font-size: 11px; text-transform: uppercase; letter-spacing: 0; font-weight: 760; }
.kpi strong { font-size: 20px; line-height: 1.12; color: var(--primary-dark); font-weight: 780; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.topbar .toolbar { margin-bottom: 0; }
.toolbar input[type="search"] { flex: 1 1 280px; max-width: 520px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 6px 12px; border: 1px solid rgba(33, 130, 133, .22); border-radius: 7px; background: linear-gradient(180deg, #f7fbfb 0%, #eef7f7 100%); color: var(--primary-dark); font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease; box-shadow: 0 1px 0 rgba(255,255,255,.65) inset; }
.btn:hover { background: #fff; border-color: rgba(33, 130, 133, .45); color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(23, 102, 106, .08); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(33, 130, 133, .22); outline-offset: 1px; border-color: var(--primary); }
.btn-primary { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-color: var(--primary-dark); box-shadow: 0 8px 18px rgba(33, 130, 133, .16); }
.btn-primary:hover { color: #fff; border-color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { color: #fff; border-color: #8c1f17; }
.btn-small { min-height: 28px; padding: 5px 9px; font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: linear-gradient(180deg, #f8fbfb 0%, #eef7f7 100%); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0; font-weight: 760; }
td { font-size: 13px; line-height: 1.42; }
tbody tr:nth-child(even) td { background: #fcfefe; }
tbody tr:hover td { background: #f8fbfb; }
tr:last-child td { border-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; } .span-12 { grid-column: span 12; }
label { font-size: 12px; font-weight: 700; color: #334155; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; background: #fff; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 16px; flex: 0 0 16px; padding: 0; border-radius: 4px; accent-color: var(--primary); box-shadow: none; cursor: pointer; }
input[type="file"] { min-height: 44px; padding: 7px; color: #536970; font-weight: 480; overflow: hidden; }
input[type="file"]::file-selector-button { min-height: 28px; margin-right: 9px; padding: 4px 10px; border: 1px solid rgba(16,24,32,.12); border-radius: 7px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(238,247,245,.92)); color: #163d42; font: inherit; font-weight: 650; cursor: pointer; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 24px; color: var(--label); font-weight: 620; line-height: 1.25; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33, 130, 133, .10); }
textarea { min-height: 100px; resize: vertical; }
.flash { padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; background: #e8f4f4; color: var(--primary-dark); border: 1px solid #b9dddd; }
.flash.error { background: #fff1f0; color: var(--danger); border-color: #ffc9c4; }
.flash.success { background: #edf8f2; color: var(--success); border-color: #bfe5ce; }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #e8f4f4; color: var(--primary-dark); font-size: 12px; font-weight: 700; border: 1px solid rgba(33, 130, 133, .12); }
.quote-total { font-size: 21px; font-weight: 780; color: var(--primary-dark); }
.item-row { display: grid; grid-template-columns: 92px minmax(260px, 1.2fr) 70px 82px 82px 82px 108px 96px 96px 156px 40px; gap: 8px; align-items: start; margin-bottom: 8px; }
.catalog-picker { position: relative; min-width: 0; }
.catalog-results { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; display: grid; max-height: 260px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 14px 30px rgba(23, 102, 106, .14); }
.catalog-result { width: 100%; min-height: 28px; padding: 6px 8px; border: 0; border-radius: 4px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.catalog-result:hover, .catalog-result:focus { background: var(--primary-soft); color: var(--primary-dark); outline: 0; }
.product-form-row { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(420px, 4fr) minmax(86px, 0.55fr) minmax(130px, 0.95fr); gap: 14px; }
.product-form-row .field { min-width: 0; }
.product-form-row input { width: 100%; min-width: 0; }
.client-preview { border: 1px solid var(--line); border-radius: 8px; background: #f9fbfb; padding: 12px; line-height: 1.55; }
.client-results { display: grid; gap: 6px; margin-top: 8px; max-height: 220px; overflow: auto; }
.client-result { width: 100%; justify-content: flex-start; text-align: left; background: #fff; }
.client-result strong { display: block; }
.client-select-field select { min-height: 44px; }
.freight-disabled { opacity: .65; }
.pdf-body { background: #fff; color: #111827; }
.pdf-page { max-width: 920px; margin: 0 auto; padding: 32px; }
.pdf-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--primary); padding-bottom: 18px; }
.pdf-logo { width: 230px; }
.pdf-section { margin-top: 22px; }
.pdf-section h2 { font-size: 16px; color: var(--primary-dark); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.page-title + .muted { margin-top: 2px; }
.hero-band { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-bottom: 18px; }
.hero-panel { padding: 18px; border-radius: 12px; border: 1px solid rgba(219, 229, 231, .86); background: linear-gradient(135deg, rgba(255, 255, 255, .92) 0%, rgba(239, 248, 247, .84) 100%); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.hero-panel .page-title { margin-top: 8px; }
.hero-panel p { margin: 7px 0 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-stat { padding: 14px; border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(244,250,249,.86) 100%); border: 1px solid rgba(219, 229, 231, .86); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.hero-stat span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0; color: var(--muted); font-weight: 760; }
.hero-stat strong { display: block; margin-top: 6px; font-size: 22px; line-height: 1.1; color: var(--primary-dark); font-weight: 780; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-title h2 { margin: 0; }
.pre-line { white-space: pre-line; }

/* Premium system layer */
.main { position: relative; padding: 22px; background: linear-gradient(135deg, rgba(250,252,251,.96) 0%, rgba(239,246,243,.98) 48%, rgba(231,240,239,.98) 100%); }
.main::before { content: ''; position: fixed; inset: 0 0 0 282px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,0) 24%), repeating-linear-gradient(135deg, rgba(16,24,32,.025) 0 1px, transparent 1px 13px); mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 78%); }
.main > * { position: relative; z-index: 1; }
.topbar { min-height: 68px; padding: 16px 18px; border-color: rgba(255,255,255,.82); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(247,251,249,.78) 100%); box-shadow: 0 18px 42px rgba(16,24,32,.08), inset 0 1px 0 rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.topbar::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 999px; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.workspace-title { font-size: 16px; color: #12252b; font-weight: 820; }
.workspace-sub { color: #6d7e83; font-weight: 760; }
.session-chip { min-height: 34px; border-color: rgba(33,130,133,.18); background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(241,248,246,.88)); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 20px rgba(16,24,32,.06); }
.page-title { font-size: 26px; color: #12252b; font-weight: 840; }
.page-title::after { content: ''; display: block; width: 42px; height: 3px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.topbar .page-title::after, .hero-panel .page-title::after { margin-top: 9px; }
h2 { color: #142b31; font-size: 16px; font-weight: 820; }
.card { border-color: rgba(255,255,255,.86); background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(249,252,251,.86) 100%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter: blur(16px); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card::before { height: 2px; background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 48%, rgba(33,130,133,0) 100%); opacity: .95; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,0) 34%); }
.card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.98); }
.card > * { position: relative; z-index: 1; }
.kpi { min-height: 104px; padding: 15px; align-content: space-between; }
.kpi span { border-radius: 7px; background: rgba(16,24,32,.045); color: #536970; border: 1px solid rgba(16,24,32,.045); }
.kpi strong { font-size: 24px; color: #12393c; letter-spacing: 0; }
a.card.kpi { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card.kpi:hover { transform: translateY(-2px); border-color: rgba(221,164,72,.32); }
.hero-band { gap: 18px; margin-bottom: 20px; }
.hero-panel { position: relative; overflow: hidden; border-radius: 8px; border-color: rgba(255,255,255,.88); background: linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(237,248,245,.86) 58%, rgba(246,239,223,.66) 100%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.92); }
.hero-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(16,24,32,.035) 0 1px, transparent 1px 12px); opacity: .62; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-stat { min-height: 96px; border-radius: 8px; border-color: rgba(255,255,255,.86); background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,250,249,.82)); box-shadow: 0 16px 36px rgba(16,24,32,.07), inset 0 1px 0 rgba(255,255,255,.86); }
.hero-stat strong { font-size: 24px; color: #12393c; }
.eyebrow { border-radius: 7px; color: #173f40; background: linear-gradient(180deg, rgba(221,164,72,.20), rgba(33,130,133,.10)); border: 1px solid rgba(221,164,72,.18); }
.toolbar { gap: 9px; }
.btn { position: relative; overflow: hidden; min-height: 36px; border-radius: 8px; border-color: rgba(16,24,32,.10); background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(238,247,245,.92) 100%); color: #163d42; font-weight: 760; box-shadow: 0 8px 18px rgba(16,24,32,.055), inset 0 1px 0 rgba(255,255,255,.88); }
.btn::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.52) 44%, transparent 70%); transition: transform .45s ease; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 14px 24px rgba(16,24,32,.09), inset 0 1px 0 rgba(255,255,255,.92); }
.btn-primary { border-color: rgba(16,24,32,.16); background: linear-gradient(180deg, #2f9998 0%, #17666a 100%); box-shadow: 0 14px 28px rgba(33,130,133,.20), inset 0 1px 0 rgba(255,255,255,.20); }
.btn-danger { background: linear-gradient(180deg, #c84439 0%, #9d261e 100%); border-color: rgba(140,31,23,.42); }
.btn-small { min-height: 30px; }
.table-wrap { border-color: rgba(255,255,255,.82); border-radius: 8px; background: rgba(255,255,255,.86); box-shadow: 0 18px 44px rgba(16,24,32,.075), inset 0 1px 0 rgba(255,255,255,.90); backdrop-filter: blur(14px); }
table { border-collapse: separate; border-spacing: 0; }
th, td { border-bottom-color: rgba(16,24,32,.07); }
th { position: sticky; top: 0; z-index: 1; padding: 11px 10px; background: linear-gradient(180deg, #15272d 0%, #1c3f42 100%); color: rgba(255,255,255,.78); border-bottom: 0; }
td { padding: 11px 10px; color: #26363b; }
td strong { color: #142b31; font-weight: 820; }
tbody tr:nth-child(even) td { background: rgba(246,250,249,.66); }
tbody tr:hover td { background: rgba(232,244,240,.86); }
.form-grid { gap: 16px; }
.field { gap: 7px; }
label { color: #20343a; font-weight: 760; }
input, select, textarea { min-height: 38px; border-color: rgba(16,24,32,.11); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(252,254,253,.92)); color: #172b33; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 0 rgba(16,24,32,.02); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 16px; background: #fff; box-shadow: none; }
input[type="file"] { min-height: 44px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(252,254,253,.92)); }
textarea { min-height: 112px; }
input:hover, select:hover, textarea:hover { border-color: rgba(33,130,133,.26); }
input:focus, select:focus, textarea:focus { border-color: rgba(33,130,133,.62); box-shadow: 0 0 0 4px rgba(33,130,133,.11), inset 0 1px 0 rgba(255,255,255,.9); }
input[readonly], input:disabled, select:disabled, textarea:disabled, button:disabled { opacity: .66; cursor: not-allowed; }
.badge { align-items: center; min-height: 24px; border-radius: 7px; background: linear-gradient(180deg, rgba(232,244,240,.92), rgba(218,237,233,.86)); color: #164c4f; border-color: rgba(33,130,133,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.flash { border-radius: 8px; border-color: rgba(33,130,133,.16); background: linear-gradient(180deg, rgba(232,244,240,.96), rgba(215,235,231,.90)); box-shadow: 0 12px 28px rgba(16,24,32,.06); }
.quote-total { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 8px; color: #12393c; background: linear-gradient(180deg, rgba(221,164,72,.18), rgba(33,130,133,.10)); border: 1px solid rgba(221,164,72,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.70); }
.client-preview { border-color: rgba(33,130,133,.16); background: linear-gradient(180deg, rgba(246,251,250,.96), rgba(232,244,240,.86)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.catalog-results, .client-results:not([hidden]) { border-radius: 8px; border-color: rgba(16,24,32,.12); box-shadow: 0 22px 44px rgba(16,24,32,.16); }
.catalog-result { border-radius: 6px; }
.section-title { min-height: 32px; padding-bottom: 8px; border-bottom: 1px solid rgba(16,24,32,.07); }
.auth-body { position: relative; overflow: hidden; background: linear-gradient(135deg, #101820 0%, #173133 52%, #eef4f2 52%, #f8fbfa 100%); }
.auth-body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 12px), linear-gradient(115deg, rgba(221,164,72,.22), transparent 35%); }
.auth-card { position: relative; width: min(440px, calc(100vw - 32px)); padding: 34px; border-radius: 8px; border-color: rgba(255,255,255,.86); background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,250,249,.88)); box-shadow: 0 28px 80px rgba(16,24,32,.22), inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter: blur(18px); }
.auth-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 8px 8px 0 0; }
.auth-logo { width: 240px; display: block; margin: 0 0 28px; }
.auth-card .page-title { font-size: 28px; }
.pdf-body .card, .pdf-body .table-wrap, .pdf-body .topbar { box-shadow: none; backdrop-filter: none; }
.card .topbar { min-height: 52px; margin: -2px 0 12px; padding: 10px 12px; background: rgba(246,250,249,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.76); }
.card .topbar::before { top: 10px; bottom: 10px; }
.card .table-wrap { box-shadow: none; border-color: rgba(16,24,32,.08); background: rgba(255,255,255,.72); }
.card .section-title + .table-wrap { margin-top: 8px; }
.grid > .page-title:first-child, main > .page-title:first-child { margin-bottom: 16px; }
.grid[style*="margin-top"] { align-items: start; }
.item-row { padding: 8px; border-radius: 8px; background: rgba(255,255,255,.56); border: 1px solid rgba(16,24,32,.06); }
.item-row.muted { background: rgba(16,24,32,.045); color: #50666c; }
.product-form-row { padding: 4px; border-radius: 8px; background: rgba(255,255,255,.42); }

/* Executive typography and filled-field states */
.workspace-title,
.page-title,
h1,
h2,
h3,
.kpi strong,
.hero-stat strong,
.quote-total,
td strong {
  font-family: var(--font-display);
}
.workspace-title,
.page-title,
h1 {
  color: var(--title);
  font-weight: 760;
}
.page-title {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}
.topbar .page-title,
.hero-panel .page-title {
  color: var(--title);
}
h2,
.section-title h2,
.card h2,
.topbar h2 {
  color: var(--title-soft);
  font-weight: 720;
}
.muted,
.workspace-sub,
.hero-panel p,
.page-title + .muted {
  color: #71868c;
  font-weight: 520;
}
label {
  color: var(--label);
  font-weight: 700;
}
.field:focus-within label,
.field:has(.is-filled) label {
  color: var(--primary-dark);
}
input,
select,
textarea {
  color: #28454d;
  font-weight: 470;
}
input::placeholder,
textarea::placeholder {
  color: #93a2a7;
  font-weight: 440;
}
input[readonly],
input.is-filled,
select.is-filled,
textarea.is-filled {
  background: linear-gradient(180deg, rgba(246,255,252,.98), var(--field-filled));
  border-color: var(--field-filled-border);
  color: var(--field-value);
  font-weight: 480;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 0 0 1px rgba(0,184,139,.07), 0 10px 22px rgba(0,184,139,.065);
}
input[type="file"].is-filled,
input[type="checkbox"].is-filled,
input[type="radio"].is-filled {
  background: #fff;
  color: inherit;
  font-weight: inherit;
  box-shadow: none;
}
input[readonly] {
  color: var(--field-value);
  font-weight: 480;
}
input.is-filled:hover,
select.is-filled:hover,
textarea.is-filled:hover {
  border-color: rgba(0,168,126,.62);
}
input.is-filled:focus,
select.is-filled:focus,
textarea.is-filled:focus {
  background: linear-gradient(180deg, rgba(247,255,252,.98), rgba(219,250,241,.92));
}
.filled-value,
.client-preview strong,
.client-preview [data-client-cnpj],
.client-preview [data-client-phone],
.client-preview [data-client-email],
.client-preview [data-client-address],
.quote-total span {
  color: var(--field-value);
  font-weight: 480;
}
.field:has(.is-filled)::after {
  content: '';
  width: 26px;
  height: 2px;
  margin-top: -3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: .68;
}
.auth-card .page-title,
.hero-panel .page-title {
  color: var(--title);
}
.badge {
  color: #15585c;
  font-weight: 720;
}
.client-preview strong,
.client-preview .muted,
td,
.quote-total span,
.session-chip {
  font-weight: 500;
}
.user-avatar-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(16,24,32,.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(246,255,252,.86), rgba(232,247,243,.72));
}
.user-avatar-preview-thumb {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #103d3f;
  background: linear-gradient(180deg, #e9f7f6, #bfe7e4);
  box-shadow: 0 8px 18px rgba(16,24,32,.10);
}
.user-avatar-preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.user-avatar-preview-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .pdf-page { padding: 0; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; overflow: visible; }
  .sidebar::before, .sidebar::after { position: absolute; width: 100%; height: auto; }
  .main { padding: 16px; }
  .main::before { inset: 0; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar .toolbar { width: 100%; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr !important; }
  .hero-band, .hero-stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .product-form-row { grid-template-columns: 1fr; }
  .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: span 1; }
  .item-row { grid-template-columns: 1fr 1fr; }
}
