:root {
  --bg:#fff; --surface:#fff; --ink:#27343a; --muted:#596b76; --line:#dce3e8;
  --primary:#086e96; --primary-dark:#075a7b; --soft-blue:#eaf4f9; --soft-green:#edf7f0;
  --soft-orange:#fff3eb; --shadow:none; --nav-width:244px; --row-space:13px;
}
body {background:var(--bg);font-family:'Segoe UI',Arial,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea {font-family:inherit;letter-spacing:0}
button {transition:background .15s,border-color .15s}
button svg,a svg {width:17px;height:17px;flex:none;stroke-width:1.8}
button:focus-visible,a:focus-visible {outline:3px solid #8ec7e2;outline-offset:3px}
button:disabled {cursor:not-allowed}
.app-shell {grid-template-columns:var(--nav-width) minmax(0,1fr)}
.sidebar {height:100dvh;padding:20px 12px 16px;gap:18px;background:#fbfcfd;border-right:1px solid var(--line);scrollbar-width:thin;scrollbar-gutter:auto}
.brand {gap:12px;padding:0 10px 18px;border-bottom:1px solid var(--line)}
.brand-logo {width:54px;height:54px;object-fit:contain;border:1px solid #e4e9ed;border-radius:6px}
.brand strong {font-size:21px;font-weight:750;line-height:1.2}
.brand span {font-size:11px;margin-top:5px;color:var(--muted)}
.brand .workspace-logo {position:relative;display:block;flex:0 0 54px;width:54px;height:54px;overflow:hidden;margin:0;border:1px solid #e4e9ed;border-radius:6px;background:#fff}
.workspace-logo .brand-logo {position:absolute;width:108px;height:auto;max-width:none;left:-27px;top:-8px;object-fit:contain;border:0;border-radius:0}
.navigation-search {margin:0 6px;font-size:11px;font-weight:600;gap:7px}
.navigation-search input {min-height:36px!important;padding:8px 10px;font-size:13px;background:#fff;border-color:var(--line)}
.nav-list {gap:20px}.nav-group {gap:3px}
.nav-group-label {font-size:12px;font-weight:600;color:#667680;margin:0 12px 5px}
.nav-button {display:flex;align-items:center;gap:11px;min-height:40px;padding:9px 12px;font-size:14px;line-height:1.35;color:#4d5b65;border:0;border-radius:5px;text-align:left}
.nav-button svg {color:#7a8993;width:17px;height:17px}
.nav-button:hover {background:#eff3f6}.nav-button.active {background:#e7f2f8;color:#075f83;box-shadow:inset 3px 0 #087da5;font-weight:650}
.nav-button.active svg {color:#08739a}
.workspace {min-width:0;padding:0 32px 24px;background:#fff;position:relative;isolation:isolate}
.workspace::before {content:"";position:fixed;right:24px;bottom:24px;width:360px;max-width:65vw;height:360px;max-height:55dvh;background:url('assets/Netro%20Logo%20Centre.png') center/contain no-repeat;opacity:.035;pointer-events:none;z-index:-1}
.stock-health-tools {display:grid;gap:12px;margin-bottom:8px}
.stock-health-filters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:#f4f7f8;border-radius:6px}
.stock-health-filters button {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:44px;padding:7px 4px;border:1px solid transparent;border-radius:4px;background:transparent;font-size:12px;font-weight:600;color:#536874}
.stock-health-filters button[aria-pressed=true] {background:white;border-color:#c8dce5;color:#086e96;box-shadow:0 1px 3px #243f4c0d}
.stock-health-filters span {font-size:11px;font-variant-numeric:tabular-nums;padding:0 4px;background:#e8eef1;border-radius:3px;color:#4c6270}
.stock-health-tools input {width:100%;min-height:44px}
.stock-health-count {margin:0;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
#stockAlerts.stock-health-scroll {display:block;height:min(360px,50dvh);min-height:180px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b5c7d0 #f4f7f8;scrollbar-gutter:stable;border-block:1px solid var(--line);background:#fff}
#stockAlerts.stock-health-scroll:focus-visible {outline:2px solid #086e96;outline-offset:3px}
#stockAlerts::-webkit-scrollbar {width:8px}
#stockAlerts::-webkit-scrollbar-track {background:#f4f7f8}
#stockAlerts::-webkit-scrollbar-thumb {background:#b5c7d0;border:2px solid #f4f7f8;border-radius:4px}
#stockAlerts[data-empty=true] {height:auto;min-height:120px}
.stock-health-list {list-style:none;padding:0;margin:0}
.stock-health-row {padding:14px 10px 14px 0;border-bottom:1px solid #e9eef1;min-height:76px}
.stock-health-row:last-child {border-bottom:0}
.stock-health-name {display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.stock-health-name>strong {font-size:13px;font-weight:600;min-width:0;overflow-wrap:anywhere}
.stock-health-badge {flex-shrink:0;font-size:11px;padding:2px 7px;border-radius:4px}
.stock-health-badge.reorder {background:#fff0ed;color:#a44230}
.stock-health-badge.watch {background:#fff7df;color:#836116}
.stock-health-badge.healthy {background:#eaf6ef;color:#33714e}
.stock-health-numbers {display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin-top:7px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.stock-health-numbers strong {font-weight:600;color:var(--ink)}
.stock-health-empty {padding:24px 8px;font-size:13px;color:var(--muted)}
.stock-health-empty strong {color:var(--ink)}
.stock-health-empty p {margin:6px 0 0}
@media print {.workspace::before {display:none} #stockAlerts.stock-health-scroll {height:auto;overflow:visible}}
.topbar {position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;min-height:82px;margin:0 -32px;padding:14px 32px;background:#fff;border-bottom:1px solid var(--line)}
.topbar>div:first-of-type {min-width:0;margin-right:auto}.topbar h1 {font-size:23px;font-weight:650;line-height:1.25}
.topbar .eyebrow {color:#647680;font-size:10px;margin-bottom:5px}
.header-tools {display:flex;align-items:center;gap:8px}
.workspace-search-trigger {display:flex;align-items:center;gap:10px;width:190px;padding:8px 12px;border:1px solid var(--line);border-radius:5px;color:#687882;background:#f8fafb;font-size:12px;text-align:left}
.header-icon {display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;border:1px solid var(--line);border-radius:5px;background:#fff;color:#536772}
.header-icon:hover,.header-icon[aria-pressed=true] {background:#eaf4f9;color:#086e96;border-color:#b7d7e7}
.user-badge {gap:10px;padding:4px 0 4px 14px;border:0;border-left:1px solid var(--line);border-radius:0;max-width:250px}
.user-badge>span {width:36px;height:36px;flex:0 0 36px;color:#086b92;background:#e5f2f8;font-size:12px;font-weight:700}
.user-badge strong {font-size:13px;font-weight:600}.user-badge small {font-size:11px;color:var(--muted)}
.navigation-toggle {display:none}
.workspace-context {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;min-height:68px;padding:15px 0;margin-bottom:8px}
.workspace-context-path {display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}
.workspace-context-path strong {font-weight:600;color:#425560}.workspace-context-path svg {width:14px;height:14px;color:#8d9aa3}
.workspace-context-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.workspace-context time {font-size:12px;color:var(--muted)}
.workspace-context select {width:190px;min-height:34px;font-size:12px;padding:6px 10px}
.view {padding:0;min-width:0}.active-view {gap:28px}.view section {scroll-margin-top:105px}
.section-heading {gap:12px;align-items:center;margin-bottom:18px}
.section-heading h2,.ops-heading h2 {font-size:18px;line-height:1.4;font-weight:650}
.eyebrow {font-size:10px;font-weight:650;color:#7a6b5f;margin-bottom:5px}.section-heading .eyebrow {color:#7b8a94}
.view>.section-heading h2 {font-size:17px}
.split-layout {gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.view>section,.view>.split-layout>section {padding:0 0 24px;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent}
.record-layout {display:grid;gap:28px;min-width:0}.record-layout>section {padding:0;border:0;min-width:0}
.entry-layout {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;border-top:1px solid var(--line);padding-top:28px}
.entry-layout>section {min-width:0;padding:0;border:0}.entry-layout form+form {margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
label,.account-form label {color:#475c68;font-size:14px;font-weight:600}.form-grid {gap:20px}
input:not([type=checkbox]):not([type=radio]),select,textarea {border:1px solid #cfd9df;color:#293d49;background:white;font-size:14px;font-weight:400;border-radius:5px;max-width:100%}
input:not([type=checkbox]):not([type=radio]),select {min-height:40px}
input::placeholder,textarea::placeholder {color:#7d8b94;font-weight:400}input:focus,textarea:focus,select:focus {border-color:#4e9fc0}
input[readonly] {background:#f6f8fa!important;color:#637782}input[type=checkbox],input[type=radio] {accent-color:var(--primary);width:16px;height:16px;min-height:16px;padding:0;vertical-align:middle;cursor:pointer}
input[type=file] {padding:7px;font-size:12px}input[type=file]::file-selector-button {font:inherit;border:1px solid var(--line);border-radius:3px;padding:6px 10px;margin-right:10px;background:#f5f8fa;color:#48616e;cursor:pointer}
textarea {padding:10px 12px;min-height:100px}
.primary-button,.secondary-button,.ghost-button,.danger-button,.small-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 13px;min-height:36px;border-radius:5px;font-size:13px;line-height:1.4;font-weight:600}
.primary-button {background:var(--primary);color:#fff;border:1px solid var(--primary)}.primary-button:hover {background:var(--primary-dark)}
.secondary-button,.ghost-button,.small-button {background:#fff;border:1px solid #cfdbe2;color:#445f6e}
.secondary-button:hover,.ghost-button:hover,.small-button:hover {background:#f0f6f9;border-color:#a9c9d9}
.danger-button {background:#fff5f3;border:1px solid #f0d6cf;color:#ae4635}
.icon-button {width:34px;height:34px;min-height:34px;min-width:34px;padding:7px;flex-shrink:0}.button-icon {width:16px;height:16px;object-fit:contain}
.icon-button {border:1px solid #dce5ea;background:#fff;box-shadow:none}
.icon-button:hover:not(:disabled) {background:#f0f6f9;border-color:#a9c2d0}
.icon-button.danger-button {background:#fff;border-color:#e8dcdc}
.icon-button.danger-button:hover:not(:disabled) {background:#fff1ef;border-color:#dfb4ae}
.icon-button:disabled {opacity:.45;cursor:not-allowed}
.employee-invitation-feedback {padding:12px 14px;background:#f1f8fc;border:1px solid #d4e6ef;border-radius:5px;min-width:0;overflow-wrap:anywhere}
.employee-invitation-feedback p {margin:0 0 8px;font-size:13px;line-height:1.5;color:#365d70}
.employee-invitation-feedback p:last-child {margin-bottom:0}
.invitation-receipt {display:block;margin-top:5px;color:#617985;font-size:11px;white-space:normal}
.form-grid>button:not(.icon-button) {align-self:end;justify-self:start;min-height:40px}.form-grid>button.wide-field {width:auto;min-width:160px}
.helper-text {font-size:12px;color:#687c88;line-height:1.6}
.table-wrap {width:100%;max-width:100%;max-height:480px;overflow:auto;border:1px solid var(--line);border-radius:5px;background:#fff;scrollbar-width:thin}
table {width:100%;border-collapse:collapse;font-size:13px}
th {position:sticky;top:0;z-index:1;background:#f5f7f9;padding:11px 16px;font-size:11px;font-weight:650;color:#52646f;text-transform:none;white-space:nowrap}
td {padding:var(--row-space) 16px;border-bottom:1px solid #eaf0f3;vertical-align:middle;color:#425661;font-size:13px}
tbody tr:last-child td {border-bottom:0}tbody tr:hover {background:#f5fafe}td .small-button {font-size:12px;min-height:30px;padding:5px 9px}
.table-toolbar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 0}
.table-search {display:flex;align-items:center;position:relative;width:min(280px,100%)}
.table-search svg {position:absolute;left:10px;width:16px;height:16px;color:#8296a2;pointer-events:none}
.table-search input {width:100%;min-height:36px!important;padding:8px 12px 8px 34px;font-size:12px}
.table-record-count {color:#6a7c86;font-size:12px;font-variant-numeric:tabular-nums}
.table-sort {display:inline-flex;align-items:center;gap:8px;padding:0;background:none;border:0;font:inherit;color:inherit;text-align:left}
.table-sort svg {width:13px;height:13px;color:#8da1ac}th[aria-sort]:not([aria-sort=none]) {background:#eaf3f8;color:#086e96}
.table-no-results {padding:30px 16px;color:var(--muted);text-align:center;border:1px solid var(--line);border-top:0;font-size:13px}
.compact-rows {--row-space:8px}
.metric-grid {gap:16px}.metric-card {border:1px solid var(--line);border-radius:6px;padding:18px 20px;box-shadow:none;background:#fff}
.metric-card>span {display:flex;align-items:center;justify-content:space-between;gap:8px;text-transform:none;font-size:12px;font-weight:600;color:#5f737f}
.metric-card>span svg {width:18px;height:18px;color:#4e99b7}.metric-card:nth-child(2)>span svg {color:#62a081}.metric-card:nth-child(3)>span svg {color:#cc8d4f}.metric-card:nth-child(4)>span svg {color:#a182b2}
.metric-card>strong {font-size:30px;font-weight:650;line-height:1.25;margin:10px 0 5px}.metric-card p {font-size:11px;color:#768791;margin:0}
.dashboard-grid {grid-template-columns:1.2fr 1fr 1fr;gap:0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.dashboard-grid>section {padding:24px 22px;border:0}.dashboard-grid>section:first-child {padding-left:0}.dashboard-grid>section:last-child {padding-right:0}
.dashboard-grid>section+section {border-left:1px solid var(--line)}.dashboard-grid .section-heading {margin-bottom:20px}
.bar-chart {max-height:260px;overflow:auto}.bar-label {font-size:12px}.bar-value {font-size:13px}
.bar-track {height:8px;background:#edf2f5;border-radius:2px}.bar-fill {background:#85bcd3;border-radius:2px}
.mini-kpi {background:transparent;border:0;border-bottom:1px solid #e9eef1;border-radius:0;padding:12px 0}
.mini-kpi span {font-size:11px;text-transform:none}.mini-kpi strong {font-size:25px}#pipelineChart,#packingChart {gap:10px}
.status-card {padding:16px;border-radius:5px;box-shadow:none}.status-card h3 {font-size:13px;font-weight:600;line-height:1.45}.status-card p {font-size:12px;line-height:1.65}
.status-card.watch {background:#f7f9fb;border:1px solid #e6ecef}.status-card.good {background:#f1f8f4;border-color:#dcece2}
#revenueDashboard {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;padding:0 0 8px;margin:0;border-top:0}
#revenueDashboard[hidden] {display:none}#revenueDashboard>.ops-heading,#revenueDashboard>.ops-muted {grid-column:1/-1}
#revenueDashboard .ops-heading {margin-bottom:14px}#revenueDashboard .ops-heading p {margin:4px 0 0}
#revenueDashboard .currency-band {border-top:1px solid var(--line);padding:16px 0 0}
.currency-band h3 {display:inline-block;margin:0 0 14px;padding:3px 8px;border-radius:3px;background:#eaf4f9;color:#07688c;font-size:12px}
.currency-band:nth-of-type(2) h3 {background:#fef0e6;color:#9b542c}
.ops-metrics {gap:8px}.ops-metrics>div {padding:0 10px 0 0;border-left:0;border-right:1px solid #e5ebef}.ops-metrics>div:last-child {border-right:0}
.ops-metrics small {font-size:11px;line-height:1.4;min-height:30px;color:#637985}.ops-metrics strong {font-size:17px;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums}
.ops-muted {font-size:11px;color:#697d89}.revenue-chart {min-height:90px;max-height:240px;overflow:auto}
.revenue-chart>p {display:flex;align-items:center;justify-content:center;min-height:90px;margin:0;font-size:12px;color:#738893;background:repeating-linear-gradient(to bottom,#fff 0,#fff 29px,#f2f5f7 29px,#f2f5f7 30px)}
.revenue-row {grid-template-columns:65px minmax(0,1fr) 135px;gap:10px;margin:12px 0;font-size:11px}.revenue-row small {font-size:10px}
.ops-section {border-top:1px solid var(--line);margin-top:0;padding:24px 0}.ops-heading {margin-bottom:16px}.ops-table {margin:0 0 16px}
.cloud-save-status {justify-content:flex-end;padding:7px 0;min-height:30px;font-size:11px;color:#537661;border-bottom:0}.cloud-save-status[data-state=error] {justify-content:space-between}
.account-menu {width:360px;border-color:var(--line);border-radius:8px;box-shadow:0 12px 40px #253e5224}.account-menu-head {background:#f5f9fb;padding:20px}.account-form {padding:18px 20px}.account-form .primary-button {width:auto}
.goal-grid,.goal-tab-grid {gap:18px}.goal-summary-card {padding:20px;border:1px solid var(--line);border-radius:6px;background:white;box-shadow:none}
.goal-summary-card h3 {font-size:16px}.goal-summary-card p {font-size:13px}.goal-status-chip {font-size:11px;padding:3px 8px;font-weight:600}
.goal-assignment-section,.current-goals-section,.assigned-goals-section {background:transparent;border:0;padding:0}.goal-assignment-card {border:0;border-top:1px solid var(--line);background:transparent;border-radius:0}
.crm-tabs {margin:0;padding:0;gap:24px}.crm-tabs button {font-size:13px;padding:13px 0}.sales-workspace .topbar {margin-bottom:0}.crm-page-heading {padding:22px 0}.crm-page-heading h2 {font-size:22px}
.crm-summary {border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0}.crm-summary span,.crm-summary small {color:#657c89;font-size:12px}.crm-summary strong {font-size:26px}
.crm-toolbar>select,.crm-toolbar .crm-search-label input {font-size:12px;min-height:36px}
.crm-column {background:#f6f8fa;border:0;border-top:3px solid #b4d6e7;border-radius:4px;padding:14px 10px}.crm-column:nth-child(2) {border-top-color:#c7b9dc}.crm-column:nth-child(3) {border-top-color:#efd1a4}.crm-column:nth-child(4) {border-top-color:#a8d3c0}
.crm-column-head h3 {font-size:12px}.crm-deal {padding:16px;border-color:#e0e7eb;box-shadow:0 1px 2px #283b4806}.crm-deal button {font-size:13px}.crm-deal p {color:#657885}.crm-board {max-height:620px}
.community-layout {grid-template-columns:185px minmax(0,1fr);gap:24px}.community-channels {padding:12px 16px 12px 0;border-color:var(--line)}
.community-channels button {padding:10px 12px;margin-bottom:4px;font-size:13px;color:#526975}.community-channels button.active {color:#066c92;background:#eaf4f9;font-weight:600}
.community-channel-heading h2 {font-size:19px}.community-message {padding:18px 12px}.community-message>header strong {font-size:13px}.community-message p {font-size:14px;line-height:1.65}.community-message:hover {background:#fafcfd}
.community-feed {height:min(480px,55dvh);border-color:var(--line)}.community-compose {margin-top:14px}.community-compose textarea {min-height:85px}
.schedule-heading h2 {font-size:21px}.schedule-filters label {font-size:12px}.schedule-legend {font-size:11px}#scheduleGrid .fc-toolbar-title {font-size:19px}#scheduleGrid .fc-daygrid-day-number {font-size:13px}#scheduleGrid .fc-col-header-cell {font-size:12px}
#scheduleGrid tr:hover {background:transparent}
#scheduleGrid .fc-daygrid-day:hover {background:#f8fbfd}
.app-footer {display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:20px 0;border:0;border-top:1px solid var(--line);border-radius:0;margin-top:40px;background:transparent;box-shadow:none}
.app-footer h2 {font-size:13px}.app-footer .eyebrow {display:none}.footer-app-link {background:none;border:0;border-radius:0;padding:5px 8px;color:#657b89;font-size:12px;font-weight:400}.footer-app-link:hover {color:var(--primary);text-decoration:underline}
.workspace-command {width:min(540px,calc(100vw - 32px));max-height:75dvh;padding:0;border:1px solid #cfdce4;border-radius:8px;color:var(--ink);box-shadow:0 24px 80px #183d5326}
.workspace-command::backdrop {background:#263b4a40}.workspace-command header {display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--line)}
.workspace-command header input {flex:1;min-width:0;border:0;outline:none;padding:8px 0}.workspace-command header>svg {width:20px;color:#5d7e90}
.command-results {padding:8px;max-height:52dvh;overflow:auto}.command-results button {display:flex;width:100%;text-align:left;align-items:center;gap:12px;padding:12px;background:#fff;border:0;border-radius:4px;color:#375362;font-size:14px}
.command-results button:hover,.command-results button:focus-visible {background:#edf5fa}.command-results button span {margin-left:auto;font-size:11px;color:#728a98}.command-empty {padding:24px;color:var(--muted);text-align:center}
.inventory-page {max-width:none;padding:28px 32px;background:#fff;min-height:100dvh}.inventory-page h1 {font-size:26px}.inventory-page section {border:0;padding:0;box-shadow:none}.full-inventory-scroll {max-height:calc(100dvh - 150px)}
.toast {max-width:min(460px,calc(100vw - 32px));background:#f0f7fb;color:#244d62;border:1px solid #b9d4e3;border-left:4px solid #167da6;box-shadow:0 6px 22px #2844571a;font-size:13px;padding:14px 18px}
dialog {color:var(--ink)}dialog h2 {font-size:20px}dialog::backdrop {background:#263b4a40}
.view h2,.view form {scroll-margin-top:105px}
.workspace-form-dialog {width:min(740px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:24px}
.workspace-form-dialog>header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.workspace-form-dialog form {margin:0}
.workspace-form-dialog .inline-form-heading {display:none}
.inline-form-heading {padding-top:20px;border-top:1px solid var(--line);margin-bottom:0}
.people-directory table {min-width:900px}
.people-directory td:first-child {font-weight:600;color:#2b4554}
.people-directory td:nth-child(3),.people-directory th:nth-child(3),.people-directory td:nth-child(n+8):nth-child(-n+13),.people-directory th:nth-child(n+8):nth-child(-n+13) {display:none}
.people-directory input,.people-directory select {min-width:120px;max-width:170px;min-height:34px!important;font-size:12px!important;padding:6px 8px}
.people-directory td:last-child {white-space:nowrap}
.people-directory td:last-child button {margin-right:6px}
.people-edit-dialog .form-grid {margin-top:16px}
.people-edit-dialog footer {display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
@media(min-width:761px) {
 .topbar>.navigation-toggle {display:none}
 .navigation-collapsed {--nav-width:76px}.navigation-collapsed .sidebar {padding:20px 10px}.navigation-collapsed .brand {padding:0 0 18px;justify-content:center}.navigation-collapsed .brand-logo {width:46px;height:46px}
 .navigation-collapsed .brand>div,.navigation-collapsed .navigation-search,.navigation-collapsed .nav-group-label {display:none}
 .navigation-collapsed .nav-button {justify-content:center;height:40px;padding:10px;font-size:0;gap:0}.navigation-collapsed .nav-button svg {width:20px;height:20px}.navigation-collapsed .nav-list {gap:14px}
 .navigation-collapsed .workspace-logo {flex-basis:46px;width:46px;height:46px}.navigation-collapsed .workspace-logo .brand-logo {width:92px;height:auto;left:-23px;top:-7px}
}
@media(max-width:1200px) {
 :root {--nav-width:220px}.workspace {padding:0 24px 24px}.topbar {margin:0 -24px;padding:14px 24px}.workspace-search-trigger {width:36px;justify-content:center;padding:8px}.workspace-search-trigger span {display:none}
 .ops-metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ops-metrics small {min-height:0}.dashboard-grid {grid-template-columns:1fr 1fr}
 .dashboard-grid>section:last-child {grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding:20px 0}.entry-layout {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px) {
 .app-shell {display:block}.workspace {padding:0 16px 24px}.topbar {min-height:72px;margin:0 -16px;padding:12px 16px;gap:10px}.topbar h1 {font-size:18px}.topbar .eyebrow {font-size:9px}.topbar>div:first-of-type {flex:1}
 .navigation-toggle {display:inline-flex;width:34px;min-width:34px;min-height:34px;padding:7px}
 .navigation-open .sidebar {display:flex;position:fixed;top:72px;height:calc(100dvh - 72px);left:0;z-index:60;width:min(290px,88vw);padding:20px 14px;background:#fff;box-shadow:8px 0 30px #25495a26}
 .header-tools {gap:4px}#collapseNavigation,#rowDensity {display:none}.workspace-search-trigger {width:32px;padding:6px;min-height:32px}
 .user-badge {padding:0;border:0}.user-badge>span {width:32px;height:32px;flex-basis:32px;font-size:11px}.user-badge>div {display:none}
 .account-menu {position:fixed;right:12px;top:76px;width:calc(100vw - 24px);max-height:calc(100dvh - 90px)}
 .workspace-context {gap:10px;margin-bottom:6px;padding:14px 0}.workspace-context-path {font-size:11px}.workspace-context-actions {width:100%}.workspace-context-actions select {flex:1;width:auto;min-width:0}.workspace-context time {font-size:11px}.workspace-context-actions .primary-button {font-size:12px}
 .active-view {gap:24px}.split-layout,.entry-layout {grid-template-columns:minmax(0,1fr);gap:24px}.record-layout {gap:24px}
 .metric-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-card {padding:14px}.metric-card>span {font-size:11px}.metric-card>span svg {width:16px;height:16px}.metric-card>strong {font-size:27px}.metric-card p {font-size:10px}
 .dashboard-grid {grid-template-columns:minmax(0,1fr)}.dashboard-grid>section,.dashboard-grid>section:first-child {padding:20px 0}.dashboard-grid>section+section {border-left:0;border-top:1px solid var(--line)}
 #revenueDashboard {grid-template-columns:minmax(0,1fr);gap:20px}#revenueDashboard .ops-heading {margin:0}#revenueDashboard .currency-band {padding-top:14px}
 .ops-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}.ops-metrics strong {font-size:18px}.revenue-row {grid-template-columns:60px minmax(0,1fr)}.revenue-row>small {grid-column:2}
 .table-search {width:min(240px,100%)}.table-record-count {font-size:11px}.table-wrap {max-height:400px}.section-heading h2,.ops-heading h2 {font-size:16px}
 .form-grid {grid-template-columns:minmax(0,1fr)}.form-grid>button.wide-field {max-width:100%;width:100%}
 .crm-tabs {gap:20px}.crm-tabs button {font-size:12px}.crm-summary {grid-template-columns:repeat(2,minmax(0,1fr))}.crm-summary>* {padding:15px 12px}.crm-summary>:nth-child(3) {border-left:0}.crm-summary>:nth-child(n+3) {border-top:1px solid var(--line)}.crm-summary strong {font-size:23px}
 .community-layout {grid-template-columns:minmax(0,1fr);gap:12px}.community-channels {display:flex;overflow:auto;border-right:0;padding:0 0 8px}.community-channels button {flex-shrink:0;width:auto}.community-feed {height:420px}
 .inventory-page {padding:20px 16px}.app-footer {margin-top:24px;gap:12px}
}
@media print {.sidebar,.topbar,.workspace-context,.table-toolbar,.app-footer {display:none!important}.app-shell {display:block}.workspace {padding:0}.table-wrap {max-height:none;overflow:visible}}
:root { letter-spacing: 0; }
.department-hidden { display:none !important; }
.department-dashboard { padding-block:20px; }
.department-columns { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }
.department-item { display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;padding:14px 0;background:transparent;border:0;border-bottom:1px solid #dce6eb;border-radius:0; }
.department-item span { color:#58707d;font-size:13px; }
.employee-access-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid #dce6eb;padding:16px;margin-block:16px; }
.employee-access-fields label { display:flex;align-items:center;gap:9px; }
.employee-access-fields input { width:18px;min-height:18px; }
.cloud-save-status[data-state="saved"],.cloud-save-status[data-state="pending"] { padding:4px 0!important;margin:0!important;min-height:24px!important;border:0!important;background:transparent!important;font-size:12px!important;color:#58707d; }
@media(max-width:760px){.department-columns{grid-template-columns:1fr;gap:16px}.employee-access-fields{grid-template-columns:1fr}.department-item{min-height:48px}}
@media(max-width:760px){.metric-card>span{font-size:13px;line-height:1.4}.metric-card p{font-size:12px}.nav-button{min-height:46px}.department-item span{font-size:14px}.community-message p{font-size:15px;line-height:1.5}}

/* Record workspaces share one action strip and one focused table at a time. */
.record-tabs {display:flex;align-items:stretch;gap:24px;max-width:100%;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid var(--line);min-height:52px}
.record-tabs [role=tab] {display:inline-flex;align-items:center;gap:8px;flex:none;min-height:52px;padding:12px 0;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:#60717c;font:inherit;font-size:14px;font-weight:600;white-space:nowrap}
.record-tabs [role=tab]:hover {color:#075a7b;background:#f7fafb}
.record-tabs [aria-selected=true] {color:#075f83;border-bottom-color:#087da5}
.record-tab-count {display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 6px;border-radius:4px;background:#eef2f5;color:#596c78;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.record-tabs [aria-selected=true] .record-tab-count {background:#e2f1f8;color:#075f83}
.record-layout>[hidden] {display:none!important}
.record-actions {display:flex;gap:8px;flex-wrap:wrap;padding:0;margin-top:-12px}
.record-actions .secondary-button {min-height:38px;font-size:14px;box-shadow:none}
.record-layout {gap:0}
.record-layout .section-heading {margin-bottom:8px}
.record-layout .section-heading .eyebrow {display:none}
.record-layout .section-heading h2 {font-size:17px}
.workspace-entry-details {border-top:1px solid var(--line);padding-top:16px;color:#526570}
.workspace-entry-details>summary {cursor:pointer;font-size:14px;font-weight:600;min-height:44px;padding:10px 0}
.workspace-entry-details .entry-layout {border:0;padding-top:16px}
.workspace-entry-details:not([open])>.entry-layout {display:none}
.workspace-cost-details {border-top:1px solid var(--line);padding:12px 0}
.workspace-cost-details>summary {font-size:14px;font-weight:600;cursor:pointer;min-height:44px;padding:10px 0;color:#526570}
.workspace-cost-details #manufacturingCosts {border:0;padding-top:12px}
.table-toolbar {min-height:60px;padding:10px 0 14px}
.table-search input {font-size:14px;min-height:40px!important}
.table-record-count {font-size:13px}
.table-selection {display:flex;align-items:center;gap:12px;padding:6px 10px;border-radius:4px;background:#eaf4f9;color:#075f83;font-size:13px}
.table-selection[hidden] {display:none}
.table-selection button {border:0;background:transparent;color:#075f83;text-decoration:underline;font-size:13px}
tbody tr.record-selected,tbody tr.record-selected:hover {background:#edf7fc}
th {font-size:13px;font-weight:600;line-height:1.5;background:#f5f7f9}
td {font-size:14px;line-height:1.5}
.table-wrap {border-radius:6px;border-color:#dce3e8}
.table-no-results {padding:28px 16px;background:#fafcfd;border-radius:0 0 6px 6px;font-size:14px}
.table-no-results p {margin:0 0 12px}
.table-sort svg {opacity:0;transition:opacity .15s}
.table-sort:hover svg,.table-sort:focus-visible svg,th[aria-sort]:not([aria-sort=none]) svg {opacity:1}
.metric-card {border-top:3px solid #8dbed1;padding:16px 18px}
.metric-card:nth-child(2) {border-top-color:#83b59e}.metric-card:nth-child(3) {border-top-color:#e5b27e}.metric-card:nth-child(4) {border-top-color:#afa1c3}
.metric-card>span {font-size:14px;color:#536873}.metric-card p {font-size:13px;line-height:1.5}.metric-card>strong {margin:10px 0 8px;font-variant-numeric:tabular-nums}
.status-card h3 {font-size:15px}.status-card p {font-size:14px}
.mini-kpi span,.bar-label {font-size:14px}.bar-value {font-size:14px;font-variant-numeric:tabular-nums}
.ops-metrics small {font-size:13px;min-height:38px}.ops-muted {font-size:13px;line-height:1.6}.currency-band h3 {font-size:14px}.revenue-chart>p {font-size:14px}
.goal-summary-card h3 {font-size:17px;line-height:1.45}.goal-summary-card p {font-size:14px}.goal-status-chip {font-size:13px}
.community-message>header strong {font-size:14px}.community-message p {font-size:16px}.community-message {border-radius:0}
.workspace-form-dialog {padding:24px 28px}.workspace-form-dialog>header h2 {margin:0;font-size:21px}.workspace-form-dialog>header {position:sticky;top:-24px;z-index:5;background:white;padding:20px 0 16px;margin-top:-20px}
.workspace-form-dialog .form-grid {row-gap:22px}.workspace-form-dialog input,.workspace-form-dialog select,.workspace-form-dialog textarea {font-size:16px;min-height:44px}
.workspace-form-dialog .form-grid>button[type=submit] {margin-top:4px;min-height:44px}
.form-field-error {display:block;margin-top:6px;color:#a2362b;font-size:13px;font-weight:400}
[aria-invalid=true] {border-color:#c95346!important;background:#fffafa}
.workspace-form-feedback {padding:12px 14px;background:#f0f7fb;color:#28566c;border-left:3px solid #3189ae;border-radius:4px;font-size:14px;line-height:1.5}
.workspace-form-feedback:empty {display:none}
.helper-text {font-size:13px;line-height:1.6}
.navigation-search {font-size:12px}.navigation-search input {font-size:14px}.user-badge strong {font-size:14px}.user-badge small {font-size:12px}
.topbar .eyebrow,.section-heading .eyebrow {font-size:12px;font-weight:600;text-transform:none;color:#687a85}
.workspace-context-path {font-size:13px}.workspace-context time {font-size:13px}
.primary-button,.secondary-button,.ghost-button,.small-button {font-size:14px}
.cloud-save-status[data-state=saved] {opacity:.8}.cloud-save-status[data-state=error] {border:1px solid #e1a79f;background:#fff5f2;color:#943a2b;border-radius:6px;padding:12px 14px;gap:10px;flex-wrap:wrap}
@media(max-width:1000px){.record-tabs{gap:20px}.ops-metrics small{min-height:0}}
@media(max-width:760px){
 .record-tabs{gap:20px;min-height:48px;margin-top:-6px}.record-tabs [role=tab]{min-height:48px;font-size:14px}.record-tabs [role=tab]>span:first-child{max-width:180px;overflow:hidden;text-overflow:ellipsis}
 .record-actions{gap:8px;margin-top:-12px}.record-actions .secondary-button{flex:1 1 140px;min-height:44px;font-size:14px;padding:10px}
 .record-tab-count{font-size:12px}.record-layout .section-heading h2{font-size:16px}.table-selection{width:100%;justify-content:space-between}
 .table-search{width:100%}.table-selection button{min-height:40px}.metric-card{padding:14px}.metric-card>span{font-size:14px}.metric-card p{font-size:12px}
 .workspace-form-dialog{padding:20px 16px}.workspace-form-dialog>header{top:-20px;margin-top:-20px;padding:14px 16px}.ops-metrics small{min-height:0}
 .workspace-entry-details>summary{min-height:48px}.workspace-context-path strong{display:none}.workspace-context-path>svg{display:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
