:root {
  --ink: #263946;
  --muted: #6f808b;
  --line: #dbe4e9;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --sidebar: #304653;
  --sidebar-soft: #425d6c;
  --green: #527f99;
  --green-dark: #3e687f;
  --green-soft: #e8f0f4;
  --blue: #527f99;
  --blue-soft: #e8f0f4;
  --amber: #b86f07;
  --amber-soft: #fff3db;
  --violet: #6b7894;
  --violet-soft: #edf0f5;
  --red: #c84949;
  --red-soft: #fdecec;
  --slate: #687984;
  --slate-soft: #edf2f5;
  --shadow: 0 1px 2px rgba(38, 57, 70, .035), 0 12px 36px rgba(38, 57, 70, .07);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
h2 { margin-bottom: 5px; font-size: 19px; letter-spacing: -.02em; }
h3 { font-size: 17px; }
p { color: var(--muted); line-height: 1.55; }
small { color: var(--muted); }

.app-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 258px; padding: 18px 16px; overflow: auto; background: linear-gradient(180deg, #3e5665 0%, #2b3f4b 100%); color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.brand-official { position: relative; display: block; padding: 3px 17px 22px; }
.logo-crop { position: relative; overflow: hidden; flex: 0 0 auto; background: linear-gradient(145deg, #fff 0%, #eef3f6 100%); }
.logo-crop img { position: absolute; max-width: none; }
.logo-sidebar { width: 158px; height: 76px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; box-shadow: 0 9px 22px rgba(0,0,0,.14); }
.logo-sidebar img { top: -43px; left: -14px; width: 172px; height: 172px; }
.erp-badge { display: inline-grid; height: 23px; min-width: 40px; place-items: center; border-radius: 999px; background: #527f99; color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .16em; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.brand-official .erp-badge { position: absolute; right: 9px; bottom: 15px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #527f99; color: #fff; font-size: 22px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.brand > div:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand span { margin-top: 4px; color: #b8c7cf; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.main-nav { display: grid; gap: 9px; }
.main-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #c4d0d6; font-size: 11px; font-weight: 680; transition: .18s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.main-nav a.active { color: #fff; background: var(--sidebar-soft); box-shadow: inset 3px 0 #8fb0c2; }
.main-nav .nav-primary { padding: 11px 12px; font-size: 13px; }
.nav-group { display: grid; gap: 2px; padding: 8px 0 5px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-group-title { display: flex; align-items: center; padding: 0 12px 5px; color: #8fa5b1; text-transform: uppercase; }
.nav-group-title strong { color: #b7c6ce; font-size: 9px; letter-spacing: .11em; }
.nav-group-active .nav-group-title strong { color: #e7f0f4; }
.nav-icon { display: grid; width: 20px; height: 20px; place-items: center; font-size: 15px; }
.sidebar-footer { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 15px 7px 0; border-top: 1px solid rgba(255,255,255,.1); }
.user-chip { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; }
.user-chip > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.user-chip strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { margin-top: 2px; color: #aebfc8; font-size: 10px; }
.avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #536d7c; color: #d8e5eb; font-weight: 800; }
.logout-button { border: 0; background: transparent; color: #b3c2ca; cursor: pointer; font-size: 20px; }
.page-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 70px; align-items: center; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.91); backdrop-filter: blur(16px); }
.topbar-context { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.topbar-context span { color: var(--muted); }
.topbar-context strong { padding-left: 9px; border-left: 1px solid var(--line); }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 650; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #668fa6; box-shadow: 0 0 0 4px #e5eef3; }
.menu-button { display: none; margin-right: 12px; border: 0; background: transparent; font-size: 22px; }
.page-content { width: min(1500px, 100%); margin: 0 auto; padding: 38px 40px 64px; }
.page-heading { margin-bottom: 27px; }
.page-heading p { margin-bottom: 0; }
.heading-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #a9c4d2; }
.back-link { display: block; margin-bottom: 24px; color: var(--muted); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--green); }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 750; transition: .18s ease; }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(82,127,153,.2); }
.button-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.button-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-danger { border-color: #efc6c6; background: var(--red-soft); color: var(--red); }
.button-danger:hover { border-color: var(--red); background: #f9dddd; }
.button-secondary:hover, .button-ghost:hover { border-color: #b9c8d1; }
.button-ghost { border-color: var(--line); background: transparent; color: var(--muted); }
.button-large { width: 100%; min-height: 48px; justify-content: space-between; padding-inline: 18px; font-size: 13px; }
.button-full { width: 100%; margin-top: 9px; }
.text-button { padding: 8px; color: var(--green); font-size: 12px; font-weight: 700; }

.card, .workflow-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 23px 16px; }
.section-heading h2 { margin: 0; }
.section-heading a { color: var(--green); font-size: 11px; font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.kpi-card { display: flex; align-items: center; gap: 15px; min-height: 120px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: .18s ease; }
.kpi-card:hover { border-color: #c8d5dc; transform: translateY(-2px); }
.kpi-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 12px; font-size: 17px; font-weight: 800; }
.icon-dark { background: #e8eef2; color: var(--ink); }.icon-amber { background: var(--amber-soft); color: var(--amber); }.icon-blue { background: var(--blue-soft); color: var(--blue); }.icon-red { background: var(--red-soft); color: var(--red); }
.kpi-card > div { display: flex; min-width: 0; flex-direction: column; }
.kpi-card small:first-child { color: var(--ink); font-size: 11px; font-weight: 700; }
.kpi-card strong { margin: 2px 0; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.kpi-card span:last-child { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-card { margin-bottom: 17px; }
.workflow-lane { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; padding: 4px 23px 23px; }
.workflow-step { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 15px 16px; border-radius: 12px; background: var(--slate-soft); transition: .18s ease; }
.workflow-step:hover { transform: translateY(-2px); filter: saturate(1.15); }
.workflow-step strong { overflow: hidden; margin: 3px 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-step small { font-size: 9px; }
.workflow-step.step-amber { background: var(--amber-soft); }.workflow-step.step-blue { background: var(--blue-soft); }.workflow-step.step-violet { background: var(--violet-soft); }.workflow-step.step-green { background: var(--green-soft); }
.step-number { font-size: 23px; font-weight: 800; line-height: 1; }
.workflow-arrow { padding: 0 8px; color: #a9b7bf; font-size: 23px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .7fr); gap: 17px; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f9fa; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 13px 15px; border-bottom: 1px solid #edf1f3; color: #354955; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.clickable-row { cursor: pointer; transition: background .15s ease; }
.clickable-row:hover { background: #f5f8fa; }
td strong, td small { display: block; }
td small { margin-top: 3px; font-size: 9px; }
.warning-card { overflow: hidden; }
.warning-list { display: grid; padding: 0 18px 14px; }
.warning-list a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 12px 2px; border-top: 1px solid var(--line); }
.warning-list a > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.warning-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.warning-list small { font-size: 9px; }
.warning-mark { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-weight: 800; }
.warning-value { color: var(--red); font-size: 10px; font-weight: 800; }
.mini-empty { display: flex; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.mini-empty > span { display: grid; width: 38px; height: 38px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.mini-empty strong { font-size: 12px; }.mini-empty small { margin-top: 4px; font-size: 10px; }

.flash { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 15px; border: 1px solid #c7dbe5; border-radius: 11px; background: var(--green-soft); color: #345e75; font-size: 12px; font-weight: 650; }
.flash > span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.flash-error { border-color: #f1caca; background: var(--red-soft); color: #9b3939; }
.flash-error > span { background: var(--red); }
.filter-card { margin-bottom: 14px; padding: 14px; }
.filters { display: flex; align-items: center; gap: 9px; }
.filters select { min-width: 170px; }
.search-field { position: relative; flex: 1; }
.search-field span { position: absolute; top: 50%; left: 12px; color: var(--muted); transform: translateY(-50%); }
.search-field input { padding-left: 34px; }
input, select, textarea { width: 100%; border: 1px solid #d5dfe5; border-radius: 9px; outline: none; background: #fff; color: var(--ink); transition: .15s ease; }
input, select { height: 41px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #779eb3; box-shadow: 0 0 0 3px rgba(82,127,153,.11); }
input::placeholder, textarea::placeholder { color: #a4b0b7; }
label { color: #40535f; font-size: 11px; font-weight: 700; }
label input, label select, label textarea { margin-top: 7px; font-weight: 450; }
label > small { display: block; margin-top: 6px; font-size: 9px; font-weight: 500; }
.table-title { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; font-size: 11px; }
.table-title small { font-size: 9px; }
.orders-table th, .orders-table td { padding-right: 17px; padding-left: 17px; }
.row-arrow { color: var(--green); font-size: 17px; }

.status-badge { display: inline-flex; width: max-content; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: var(--slate-soft); color: var(--slate); font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-amber { background: var(--amber-soft); color: var(--amber); }.status-blue { background: var(--blue-soft); color: var(--blue); }.status-violet { background: var(--violet-soft); color: var(--violet); }.status-green { background: var(--green-soft); color: var(--green); }.status-red { background: var(--red-soft); color: var(--red); }
.empty-state { display: flex; min-height: 260px; align-items: center; justify-content: center; flex-direction: column; padding: 35px; text-align: center; }
.empty-state h3 { margin: 12px 0 4px; }.empty-state p { max-width: 390px; margin-bottom: 18px; font-size: 12px; }
.empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green); font-size: 22px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 18px; }
.form-main { display: grid; gap: 16px; }
.form-section { padding: 23px; }
.form-section-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.form-section-title > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.form-section-title h2 { margin-bottom: 3px; }.form-section-title p { margin: 0; font-size: 10px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.span-2 { grid-column: span 2; }
.sticky-card { position: sticky; top: 84px; padding: 22px; }
.sticky-card h3 { margin-bottom: 7px; }.sticky-card p { font-size: 11px; }
.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0; padding: 12px; border-radius: 10px; background: #f4f7f9; font-size: 9px; font-weight: 700; }
.mini-flow i { color: #9ba9b1; font-style: normal; }

.detail-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.detail-title .status-badge { margin-bottom: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 17px; }
.detail-main { display: grid; gap: 17px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; padding: 0 23px 22px; }
.data-grid > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.data-grid > div:nth-child(odd) { padding-right: 20px; }
.data-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.data-grid dd { margin: 0; font-size: 12px; font-weight: 650; }
.note-box { margin: 0 23px 23px; padding: 14px; border-radius: 10px; background: #f4f7f9; }
.note-box strong { font-size: 10px; }.note-box p { margin: 5px 0 0; font-size: 11px; white-space: pre-wrap; }
.timeline { padding: 3px 23px 23px; }
.timeline-item { position: relative; display: flex; min-height: 49px; align-items: flex-start; gap: 12px; padding-bottom: 14px; }
.timeline-item:not(:last-child)::before { position: absolute; top: 12px; bottom: -2px; left: 5px; width: 1px; background: var(--line); content: ""; }
.timeline-dot { z-index: 1; width: 11px; height: 11px; flex: 0 0 auto; margin-top: 3px; border: 3px solid #fff; border-radius: 50%; background: var(--slate); box-shadow: 0 0 0 2px var(--slate-soft); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 2px var(--amber-soft); }.dot-blue { background: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }.dot-violet { background: var(--violet); box-shadow: 0 0 0 2px var(--violet-soft); }.dot-green { background: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }.dot-red { background: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.timeline-item > div { display: flex; flex-direction: column; }.timeline-item strong { font-size: 11px; }.timeline-item small { margin-top: 2px; font-size: 9px; }
.timeline-from { margin-left: auto; color: var(--muted); font-size: 9px; }
.status-actions { display: grid; gap: 8px; margin-top: 16px; }
.status-action { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 11px 12px; border: 0; border-radius: 9px; background: var(--slate-soft); color: var(--slate); cursor: pointer; font-size: 11px; font-weight: 800; }
.status-action i { font-style: normal; }.action-amber { background: var(--amber-soft); color: var(--amber); }.action-blue { background: var(--blue-soft); color: var(--blue); }.action-violet { background: var(--violet-soft); color: var(--violet); }.action-green { background: var(--green-soft); color: var(--green); }.action-red { background: var(--red-soft); color: var(--red); }
.integration-note { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 12px; border: 1px solid #ddd4f5; border-radius: 10px; background: var(--violet-soft); color: var(--violet); }
.integration-note > span { font-size: 18px; }.integration-note > div { display: flex; flex-direction: column; }.integration-note strong { font-size: 10px; }.integration-note small { margin-top: 2px; font-size: 9px; }
.reference-form { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fa; }.reference-form > small { display: block; margin-top: 7px; font-size: 8px; }
.job-list { display: grid; gap: 7px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.job-list > strong { font-size: 9px; text-transform: uppercase; }.job-list > div { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; }
.delete-form { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }.delete-form > small { display: block; margin-top: 7px; font-size: 8px; line-height: 1.4; }.delete-pending { display: flex; gap: 9px; margin-top: 15px; padding: 11px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); }.delete-pending > span { font-weight: 900; }.delete-pending div { display: flex; flex-direction: column; }.delete-pending strong { font-size: 10px; }.delete-pending small { margin-top: 2px; font-size: 8px; }.external-link { color: var(--green); }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; padding: 0 23px 10px; }
.form-footnote { padding: 0 23px 18px; font-size: 9px; }
.success-label { padding: 5px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 800; }

.inventory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.inventory-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.inventory-warning { border-color: #efd19f; }
.inventory-head { display: flex; align-items: center; gap: 11px; padding: 20px 20px 12px; }
.tank-icon { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 18px; }
.inventory-warning .tank-icon { background: var(--amber-soft); color: var(--amber); }
.inventory-head > div { min-width: 0; }.inventory-head small { font-size: 9px; }.inventory-head h2 { overflow: hidden; margin: 2px 0 0; text-overflow: ellipsis; white-space: nowrap; }
.warning-pill { margin-left: auto; padding: 5px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 8px; font-weight: 800; }
.stock-value { display: flex; flex-direction: column; padding: 7px 20px 9px; }.stock-value strong { font-size: 25px; letter-spacing: -.04em; }.stock-value span { color: var(--muted); font-size: 9px; }
.stock-bar { height: 6px; margin: 0 20px 18px; overflow: hidden; border-radius: 999px; background: #eaf0f3; }.stock-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }.inventory-warning .stock-bar i { background: var(--amber); }
.inventory-data { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0 20px; }.inventory-data > div { padding: 10px 0; border-top: 1px solid var(--line); }.inventory-data dt { color: var(--muted); font-size: 8px; }.inventory-data dd { margin: 3px 0 0; font-size: 11px; font-weight: 750; }
.forecast-summary { display: flex; flex-direction: column; margin: 12px 20px 0; padding: 12px; border-radius: 9px; background: var(--green-soft); }.forecast-summary span { color: var(--green-dark); font-size: 8px; font-weight: 750; text-transform: uppercase; }.forecast-summary strong { margin: 3px 0; font-size: 15px; }.forecast-summary small { font-size: 8px; }
.inventory-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 11px 20px; background: #f7f9fa; color: var(--muted); font-size: 8px; }.inventory-card footer form { margin: 0; }.inventory-card footer button { padding: 0; border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 8px; font-weight: 700; }.inventory-actions { display: flex; align-items: center; gap: 9px; }.inventory-actions a { color: var(--green); font-weight: 700; }

.warehouse-baseline {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}
.warehouse-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}
.warehouse-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.warehouse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.warehouse-dot.receipt { background: var(--green); }
.warehouse-dot.issue { background: var(--red); }
.warehouse-warning-panel {
  margin-bottom: 16px;
  border-color: #e9c98c;
  overflow: hidden;
}
.warehouse-warning-panel summary {
  padding: 14px 18px;
  background: var(--amber-soft);
  color: #8d5d0c;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.warehouse-warning-panel > div {
  display: grid;
  gap: 0;
  padding: 5px 18px 12px;
}
.warehouse-warning-panel p {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
.warehouse-warning-panel p:last-child { border-bottom: 0; }
.warehouse-warning-panel p span { color: var(--muted); }
.warehouse-tank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.warehouse-tank-card {
  overflow: hidden;
}
.warehouse-tank-card.has-negative-stock {
  border-color: #e8b9b5;
}
.warehouse-tank-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px 12px;
}
.warehouse-tank-card > header > div {
  min-width: 0;
  flex: 1;
}
.warehouse-tank-card h2 {
  margin: 3px 0 0;
  font-size: 15px;
}
.warehouse-tank-symbol {
  position: relative;
  display: flex;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 8px 7px;
  border-radius: 11px;
  background: var(--blue-soft);
}
.warehouse-tank-symbol::before,
.warehouse-tank-symbol::after {
  position: absolute;
  right: 7px;
  left: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}
.warehouse-tank-symbol::before { top: 7px; }
.warehouse-tank-symbol::after { bottom: 7px; }
.warehouse-tank-symbol i {
  width: 4px;
  height: 17px;
  border-radius: 3px;
  background: var(--blue);
  opacity: .75;
}
.warehouse-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 20px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--slate-soft);
}
.warehouse-product small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}
.warehouse-product strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.warehouse-stock-value {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 12px;
}
.warehouse-stock-value strong {
  font-size: 30px;
  letter-spacing: -.045em;
  line-height: 1;
}
.warehouse-stock-value span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.has-negative-stock .warehouse-stock-value strong { color: var(--red); }
.warehouse-fill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 20px 14px;
}
.warehouse-fill > span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf1;
}
.warehouse-fill i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #78a7c0);
}
.warehouse-fill small {
  color: var(--muted);
  font-size: 8px;
}
.warehouse-capacity-missing {
  margin: 0 20px 14px;
  padding: 7px 9px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}
.warehouse-flow-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0 20px 14px;
}
.warehouse-flow-values > div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.warehouse-flow-values > div:first-child {
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.warehouse-flow-values > div:last-child { padding-left: 12px; }
.warehouse-flow-values dt {
  color: var(--muted);
  font-size: 8px;
}
.warehouse-flow-values dd {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 800;
}
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.warehouse-tank-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  background: #f7f9fa;
  color: var(--muted);
  font-size: 8px;
}
.warehouse-tank-card > footer > div {
  display: flex;
  gap: 10px;
}
.warehouse-tank-card > footer .text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 8px;
}
.warehouse-journal {
  overflow: hidden;
}
.warehouse-filter-form select {
  min-width: 165px;
  height: 36px;
  font-size: 9px;
}
.warehouse-table {
  width: 100%;
  border-collapse: collapse;
}
.warehouse-table th,
.warehouse-table td {
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.warehouse-table th {
  background: #f6f8fa;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.warehouse-table td {
  font-size: 9px;
}
.warehouse-table td strong,
.warehouse-table td small {
  display: block;
}
.warehouse-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.warehouse-movement-type {
  display: inline-flex;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--slate-soft);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}
.warehouse-movement-type.receipt { background: var(--green-soft); color: var(--green); }
.warehouse-movement-type.issue { background: var(--red-soft); color: var(--red); }
.warehouse-quantity {
  font-size: 10px !important;
  font-weight: 850;
  white-space: nowrap;
}
.warehouse-order-link {
  color: var(--blue);
  font-weight: 800;
}

.modal { width: min(660px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(31,48,59,.28); }
.modal::backdrop { background: rgba(31,48,59,.56); backdrop-filter: blur(3px); }
.modal form { padding: 25px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }.modal-head h2 { font-size: 23px; }.modal-head button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 27px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }

.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.system-card { padding: 22px; }.system-icon { display: grid; width: 39px; height: 39px; margin-bottom: 17px; place-items: center; border-radius: 11px; font-weight: 800; }.system-ok { background: var(--green-soft); color: var(--green); }.system-wait { background: var(--amber-soft); color: var(--amber); }.system-error { background: var(--red-soft); color: var(--red); }
.system-card p { margin-bottom: 18px; font-size: 11px; }.system-card dl { margin: 0; }.system-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }.system-card dt { color: var(--muted); }.system-card dd { margin: 0; font-weight: 700; }.system-card a { color: var(--green); }
.system-card-integration dd { max-width: 62%; text-align: right; }
.system-card-integration form { margin-top: 17px; padding-top: 8px; border-top: 1px solid var(--line); }
.system-card-integration form small { display: block; margin-top: 8px; font-size: 8px; line-height: 1.45; text-align: center; }
.security-box { display: flex; align-items: flex-start; gap: 16px; margin-top: 17px; padding: 21px; }.security-box h2 { margin-bottom: 4px; }.security-box p { margin: 0; font-size: 11px; }.security-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 20px; }
.error-page { max-width: 600px; margin: 70px auto; padding: 48px; text-align: center; }.error-page > span { display: grid; width: 55px; height: 55px; margin: 0 auto 18px; place-items: center; border-radius: 16px; background: var(--red-soft); color: var(--red); font-size: 25px; font-weight: 800; }.standalone-error { padding: 30px; }

.login-body { background: #fff; }
.login-layout { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(480px, 1.1fr); min-height: 100vh; }
.login-story { position: relative; display: flex; overflow: hidden; flex-direction: column; padding: 34px 48px 42px; background: radial-gradient(circle at 82% 92%, #587588 0%, #3b5361 44%, #293e4a 100%); color: #fff; }
.login-story::before { position: absolute; right: -140px; bottom: -150px; width: 430px; height: 430px; border: 1px solid rgba(161,194,211,.23); border-radius: 50%; box-shadow: 0 0 0 70px rgba(161,194,211,.045), 0 0 0 140px rgba(161,194,211,.03); content: ""; }
.login-brand { position: relative; display: flex; width: max-content; align-items: flex-end; gap: 10px; }.logo-login { width: 190px; height: 94px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }.logo-login img { top: -53px; left: -20px; width: 211px; height: 211px; }.login-brand .erp-badge { margin: 0 0 4px -22px; }
.story-copy { position: relative; z-index: 1; max-width: 540px; margin: auto 0; }.story-copy h1 { max-width: 520px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; }.story-copy p { max-width: 470px; color: #d0dce2; font-size: 15px; }
.story-flow { display: flex; align-items: center; gap: 10px; margin-top: 35px; }.story-flow span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.05); color: #d8e3e8; font-size: 9px; font-weight: 700; }.story-flow i { width: 17px; height: 1px; background: #7894a4; }
.story-footer { position: relative; z-index: 1; margin: 0; color: #b3c4cd; font-size: 10px; }
.login-panel { display: grid; padding: 45px; place-items: center; background: linear-gradient(145deg, #fcfdfe 0%, #f0f4f6 100%); }
.login-card { width: min(390px, 100%); }.login-card h2 { margin-bottom: 7px; font-size: 34px; letter-spacing: -.04em; }.login-card > p { margin-bottom: 29px; font-size: 12px; }.login-card label { display: block; margin-bottom: 15px; }.login-card .button { margin-top: 6px; }.login-hint { display: block; margin-top: 16px; text-align: center; font-size: 9px; }
.form-error { display: grid; gap: 3px; margin-bottom: 17px; padding: 12px; border: 1px solid #f1caca; border-radius: 9px; background: var(--red-soft); color: #9d3737; font-size: 10px; }.form-error strong { font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1150px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .system-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); box-shadow: 20px 0 50px rgba(0,0,0,.2); transition: transform .2s ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open::after { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.34); content: ""; }
  .page-area { width: 100%; }
  .menu-button { display: block; }
  .topbar { padding: 0 20px; }
  .page-content { padding: 27px 20px 50px; }
  .dashboard-columns, .form-layout, .detail-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: 330px; padding: 30px; }.story-copy { margin: 50px 0; }.story-copy h1 { font-size: 37px; }.story-footer { display: none; }
  .login-panel { padding: 50px 25px; }
}

@media (max-width: 620px) {
  .heading-actions { align-items: stretch; flex-direction: column; }.heading-actions .button { align-self: flex-start; }
  .kpi-grid, .inventory-grid, .system-grid, .warehouse-tank-grid { grid-template-columns: 1fr; }
  .warehouse-legend { align-self: flex-start; }
  .warehouse-warning-panel p { grid-template-columns: 1fr; gap: 3px; }
  .warehouse-tank-card > footer { align-items: flex-start; flex-direction: column; }
  .warehouse-filter-form, .warehouse-filter-form select { width: 100%; }
  .workflow-lane { display: flex; overflow-x: auto; align-items: center; }.workflow-step { min-width: 140px; }.workflow-arrow { flex: 0 0 auto; }
  .field-grid, .data-grid { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.data-grid > div:nth-child(odd) { padding-right: 0; }
  .filters { align-items: stretch; flex-direction: column; }.filters select { min-width: 0; }.filters .button { width: 100%; }
  .inline-form { grid-template-columns: 1fr; }
  .detail-title { align-items: flex-start; flex-direction: column; }.detail-title .status-badge { margin: 0; }
  .story-flow { flex-wrap: wrap; }.story-flow i { display: none; }
}

/* ERP – Impargo tour cargo and custom-field overview */
.heading-button-group { display: flex; align-items: center; gap: 9px; }
.heading-button-group form { margin: 0; }
.topbar-search { position: relative; width: min(390px, 38vw); margin-left: 35px; }
.topbar-search span { position: absolute; top: 50%; left: 12px; z-index: 1; color: var(--muted); transform: translateY(-50%); }
.topbar-search input { height: 36px; padding-left: 34px; border-color: transparent; background: #f1f5f7; font-size: 11px; }
.theme-toggle { display: grid; width: 31px; height: 31px; margin-right: 7px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-violet { background: var(--violet-soft); color: var(--violet); }
.section-spacer, .dashboard-notifications { margin-top: 17px; }

.series-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 17px; padding: 15px 18px; border: 1px solid #cbdce5; border-radius: 14px; background: linear-gradient(105deg, #edf4f7, #fff); }
.series-summary p { margin: 0; font-size: 11px; }
.summary-chip { display: flex; flex: 0 0 auto; align-items: baseline; gap: 7px; padding-right: 18px; border-right: 1px solid var(--line); }
.summary-chip strong { color: var(--blue); font-size: 24px; }
.summary-chip span { color: var(--muted); font-size: 10px; font-weight: 700; }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.series-card { overflow: hidden; padding: 0; }
.series-card > header { display: flex; justify-content: space-between; gap: 15px; padding: 21px 21px 12px; }
.series-card h2 { margin-top: 7px; }.series-card header p { margin: 0; font-size: 10px; }
.series-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 22px; }
.series-state { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.state-active { background: var(--green-soft); color: var(--green-dark); }.state-paused { background: var(--slate-soft); color: var(--slate); }
.series-paused { opacity: .78; }
.series-rule { display: flex; flex-direction: column; margin: 5px 21px 13px; padding: 12px; border-radius: 10px; background: #f4f7f9; }
.series-rule strong { font-size: 12px; }.series-rule span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.series-data { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0 21px; }
.series-data > div { padding: 10px 0; border-top: 1px solid var(--line); }
.series-data dt { color: var(--muted); font-size: 8px; }.series-data dd { margin: 3px 0 0; font-size: 10px; font-weight: 700; }
.series-preview { margin: 9px 21px 15px; }.series-preview > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.series-preview > div { display: flex; gap: 6px; }.series-preview time { padding: 6px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 800; }
.series-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 12px 21px; border-top: 1px solid var(--line); background: #f8fafb; }
.series-actions form { margin: 0; }.series-actions button { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 9px; font-weight: 700; }
.danger-link { padding: 0; border: 0; background: none; color: var(--red) !important; cursor: pointer; font-size: 9px; font-weight: 700; }
.recurrence-options { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.field-label { display: block; margin-bottom: 9px; color: #40535f; font-size: 11px; font-weight: 700; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.weekday-picker label input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-picker label span { display: grid; width: 42px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 10px; }
.weekday-picker label input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
[hidden] { display: none !important; }

.master-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.master-wide { grid-column: 1 / -1; }
.master-card { overflow: hidden; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--blue); cursor: pointer; font-size: 17px; }
.compact-list { display: grid; padding: 0 18px 16px; }
.compact-list > div, .compact-list > a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 3px; border-top: 1px solid var(--line); }
.compact-list span { display: flex; min-width: 0; flex-direction: column; }.compact-list strong { font-size: 11px; }.compact-list small { margin-top: 2px; font-size: 9px; }.compact-list i { color: var(--blue); font-style: normal; }
.workflow-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 18px 18px; }
.workflow-list article { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfc; }
.workflow-list article > div { display: flex; flex-direction: column; }.workflow-list article > div strong { font-size: 13px; }.workflow-list article > div small { margin-top: 3px; font-size: 9px; }
.workflow-list ol { display: grid; gap: 7px; margin: 14px 0; padding: 0; list-style: none; }
.workflow-list li { display: flex; align-items: center; gap: 9px; }.workflow-list li > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 850; }.workflow-list li > div { display: flex; flex-direction: column; }.workflow-list li strong { font-size: 10px; }.workflow-list li small { font-size: 8px; }
.modal-wide { width: min(980px, calc(100vw - 30px)); }
.workflow-editor { display: grid; gap: 8px; margin: 18px 0; }
.workflow-step-editor { display: grid; grid-template-columns: 1fr 1.15fr 1fr 1fr auto auto auto auto; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fa; }
.workflow-step-editor label { display: flex; align-items: center; gap: 4px; font-size: 8px; white-space: nowrap; }.workflow-step-editor label input { width: 14px; height: 14px; margin: 0; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }.checkbox-label input { width: 16px; height: 16px; margin: 0; }

.module-tabs { display: flex; gap: 5px; margin: -8px 0 20px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #eaf0f3; }
.module-tabs a { padding: 9px 14px; border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.module-tabs a:hover { color: var(--ink); }
.module-tabs a.active { background: var(--surface); color: var(--blue); box-shadow: 0 3px 10px rgba(38,57,70,.08); }
.crm-health { display: flex; flex-wrap: wrap; gap: 7px; }
.crm-health span { display: flex; align-items: baseline; gap: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 8px; }
.crm-health strong { color: var(--ink); font-size: 12px; }
.sync-caption { display: block; margin-top: 8px; font-size: 9px; }
.customer-master {
  display: grid;
  grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.customer-list-panel {
  position: sticky;
  top: 16px;
  overflow: hidden;
}
.customer-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 18px 15px;
}
.customer-list-head h2 {
  margin: 3px 0 2px;
  font-size: 19px;
  letter-spacing: -.02em;
}
.customer-list-head small {
  color: var(--muted);
  font-size: 10px;
}
.customer-create-button {
  width: 36px;
  height: 36px;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 18px;
}
.customer-create-button:hover {
  background: #3f6d87;
  color: #fff;
}
.customer-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f8fa;
  color: var(--muted);
}
.customer-filter:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 122, 151, .1);
}
.customer-filter input {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}
.customer-list {
  display: grid;
  max-height: calc(100vh - 302px);
  padding: 0 7px 9px;
  overflow-y: auto;
}
.customer-list-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink);
}
.customer-list-item:hover {
  background: #f2f6f8;
}
.customer-list-item.active {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}
.customer-list-monogram {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #e7edf1;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}
.customer-list-item.active .customer-list-monogram {
  background: #fff;
}
.customer-list-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.customer-list-copy strong,
.customer-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-list-copy strong {
  font-size: 11px;
}
.customer-list-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.customer-source-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bdc8cf;
}
.customer-source-dot.is-linked {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 122, 151, .12);
}
.customer-list-empty {
  margin: 4px 12px 12px;
  padding: 14px;
  border-radius: 9px;
  background: var(--slate-soft);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.customer-sync-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.customer-sync-row .button {
  width: 100%;
  min-height: 36px;
}
.customer-sync-row small {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}
.customer-detail-panel {
  overflow: hidden;
}
.customer-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
}
.customer-detail-monogram {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(63, 105, 132, .18);
}
.customer-detail-identity {
  min-width: 0;
  flex: 1;
}
.customer-detail-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.customer-detail-title h2 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-detail-identity p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.customer-edit-button {
  flex: 0 0 auto;
}
.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.customer-detail-section {
  min-width: 0;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.customer-detail-section:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.customer-detail-lines {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
}
.customer-detail-lines > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(214, 224, 230, .7);
}
.customer-detail-lines > div:last-child {
  border-bottom: 0;
}
.customer-detail-lines dt {
  color: var(--muted);
  font-size: 9px;
}
.customer-detail-lines dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}
.customer-detail-lines a {
  color: var(--blue);
}
.technical-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px !important;
}
.customer-address {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
}
.customer-address span {
  color: var(--muted);
  font-size: 10px;
}
.customer-notes {
  min-height: 50px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-line;
}
.customer-detail-wide {
  padding: 20px 23px 23px;
  border-bottom: 1px solid var(--line);
}
.customer-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.customer-section-head h3 {
  margin: 4px 0 0;
  font-size: 14px;
}
.customer-section-head > a {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}
.customer-detail-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.customer-detail-address {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafb;
  color: var(--ink);
}
.customer-detail-address:hover {
  border-color: rgba(74, 122, 151, .45);
  background: #fff;
  box-shadow: 0 4px 12px rgba(36, 57, 71, .06);
}
.customer-detail-address > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.customer-detail-address strong,
.customer-detail-address small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-detail-address strong {
  font-size: 10px;
}
.customer-detail-address small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.location-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}
.customer-address-arrow {
  color: var(--blue);
  font-size: 13px;
}
.customer-detail-empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.customer-extra-details {
  padding: 17px 23px 20px;
}
.customer-extra-details summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.customer-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.customer-extra-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px;
  border-radius: 9px;
  background: var(--slate-soft);
}
.customer-extra-grid small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}
.customer-extra-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 10px;
}
.crm-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.crm-record, .product-record { border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; }
.crm-record { padding: 15px; }
.crm-record > header, .product-record > header { display: flex; align-items: center; gap: 10px; }
.crm-record > header > div:nth-child(2), .product-record > header > div { min-width: 0; flex: 1; }
.crm-record h3, .product-record h3 { margin: 0; font-size: 13px; }
.record-monogram { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 850; }
.crm-record dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 14px 0; }
.crm-record dl div { min-width: 0; padding-top: 7px; border-top: 1px solid var(--line); }
.crm-record dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.crm-record dd { overflow: hidden; margin: 2px 0 0; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.record-relations { display: grid; gap: 5px; }
.record-relations a { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 8px; background: var(--blue-soft); }
.record-relations strong { font-size: 9px; }.record-relations small { margin-top: 2px; font-size: 7px; }
.crm-table td { vertical-align: middle; }
.crm-table td strong, .crm-table td small { display: block; }
.crm-table td small { margin-top: 3px; font-size: 8px; }
.integration-chip, .muted-chip { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 7px; font-weight: 850; }
.integration-chip { background: var(--blue-soft); color: var(--blue); }.muted-chip { background: var(--slate-soft); color: var(--muted); }
.crm-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .65fr); gap: 16px; align-items: start; }
.sync-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sync-summary article { display: flex; min-height: 104px; flex-direction: column; justify-content: center; }
.sync-summary span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.sync-summary strong { margin: 5px 0 2px; font-size: 27px; letter-spacing: -.04em; }
.sync-summary small { font-size: 8px; }
.product-stack { display: grid; gap: 10px; padding: 0 18px 18px; }
.product-record { padding: 14px; }
.product-facts { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }

@media (max-width: 1080px) {
  .crm-card-grid, .sync-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-master { grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); }
  .customer-detail-grid { grid-template-columns: 1fr; }
  .customer-detail-section:nth-child(odd) { border-right: 0; }
  .customer-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .crm-split { grid-template-columns: 1fr; }
  .customer-master { grid-template-columns: 1fr; }
  .customer-list-panel { position: static; }
  .customer-list { max-height: 310px; }
}
@media (max-width: 560px) {
  .crm-card-grid, .sync-summary { grid-template-columns: 1fr; }
  .customer-detail-head { align-items: flex-start; padding: 18px; }
  .customer-detail-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .customer-detail-monogram { width: 42px; height: 42px; border-radius: 12px; }
  .customer-edit-button { padding: 7px 9px; font-size: 8px; }
  .customer-detail-section, .customer-detail-wide, .customer-extra-details { padding-right: 18px; padding-left: 18px; }
  .customer-detail-lines > div { grid-template-columns: 96px minmax(0, 1fr); }
  .customer-detail-addresses, .customer-extra-grid { grid-template-columns: 1fr; }
}
.product-facts span { padding: 5px 7px; border-radius: 7px; background: var(--slate-soft); color: var(--muted); font-size: 8px; font-weight: 750; }
.loading-option-list { display: grid; gap: 5px; }
.loading-option-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.loading-option-list span { display: flex; flex-direction: column; }.loading-option-list strong { font-size: 9px; }.loading-option-list small { font-size: 7px; }
.inline-assignment { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; margin-top: 8px; }
.inline-assignment select { height: 34px; font-size: 9px; }
.inline-assignment label { display: flex; align-items: center; gap: 4px; font-size: 8px; white-space: nowrap; }
.inline-assignment .button { min-height: 34px; padding: 6px 9px; font-size: 8px; }

.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.route-card { padding: 20px; }.route-card > header { display: flex; justify-content: space-between; gap: 15px; }.route-card header p { margin: 0; font-size: 10px; }
.route-status { height: max-content; padding: 5px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 800; }
.route-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 15px 0; }.route-card dl div { padding: 10px 7px; border-top: 1px solid var(--line); }.route-card dt { color: var(--muted); font-size: 8px; }.route-card dd { margin: 3px 0 0; font-size: 9px; font-weight: 700; }
.route-orders { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: #f4f7f9; }.route-orders > strong { margin-bottom: 3px; font-size: 9px; text-transform: uppercase; }.route-orders a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 9px; }
.route-stop-list a > span, .route-stop-unmatched > span { display: flex; min-width: 0; flex-direction: column; }
.route-stop-list b { font-size: 9px; }.route-stop-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.route-stop-unmatched { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--line); }
.route-order-links { display: grid; gap: 6px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-soft); }
.route-order-links > strong, .route-reference-note > strong { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.route-order-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); }
.route-order-links a > span { display: flex; min-width: 0; flex-direction: column; }
.route-order-links b { font-size: 9px; }.route-order-links small { margin-top: 2px; color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.route-reference-note { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 8px; }
.route-stop-matched { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
.route-stop-matched > a { border-top: 0; padding-top: 0; }
.route-link-form { display: flex; align-items: center; gap: 6px; min-width: min(100%, 310px); }
.route-link-form label { flex: 1; }.route-link-form select { width: 100%; min-height: 34px; padding: 6px 8px; font-size: 8px; }
.route-link-form .button { min-height: 34px; padding: 6px 10px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.system-link-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-soft); }
.system-link-chain > span { display: flex; min-width: 0; flex-direction: column; }.system-link-chain b { font-size: 8px; text-transform: uppercase; }.system-link-chain small { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 8px; }
.system-link-chain > i { color: var(--blue); font-style: normal; font-weight: 900; }
.technical-reference { margin: 7px 2px 0; color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.integration-direction { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-soft); color: var(--blue); }.integration-direction span { padding: 5px 9px; border-radius: 8px; background: var(--surface); font-size: 9px; font-weight: 850; }.integration-direction i { font-style: normal; font-weight: 900; }.integration-direction small { margin-left: auto; color: var(--muted); font-size: 9px; }
.tour-overview-card { margin-bottom: 17px; }
.tour-overview-table { min-width: 1460px; }
.tour-overview-table td { vertical-align: top; }
.tour-overview-table th:nth-child(1) { width: 185px; }
.tour-overview-table th:nth-child(2) { width: 175px; }
.tour-overview-table th:nth-child(3) { width: 185px; }
.tour-overview-table th:nth-child(4) { width: 220px; }
.tour-overview-table th:nth-child(5) { width: 135px; }
.tour-overview-table th:nth-child(6) { width: 110px; }
.tour-overview-table th:nth-child(7) { width: 260px; }
.tour-overview-table th:nth-child(8) { width: 145px; }
.tour-route-cell small, .tour-order-link small { overflow-wrap: anywhere; }
.tour-order-link { color: var(--blue); }
.tour-path { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.tour-path span { font-size: 11px; font-weight: 750; }
.tour-path i { color: var(--blue); font-size: 11px; font-style: normal; font-weight: 900; }
.tour-unit-stack { display: grid; gap: 9px; }
.tour-unit-stack > div { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tour-unit-stack > div:last-child { padding-bottom: 0; border-bottom: 0; }
.tour-unit-stack strong { font-size: 10px; line-height: 1.35; }
.tour-unit-stack small { line-height: 1.35; }
.tour-total { padding-top: 2px; color: var(--blue); }
.tour-custom-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 0; }
.tour-custom-fields div { min-width: 0; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.tour-custom-fields dt { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.tour-custom-fields dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }
.tour-data-missing { color: var(--muted); font-size: 9px; }

.movement-form { display: grid; grid-template-columns: 1.1fr .7fr 1fr auto; gap: 6px; margin: 12px 20px 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; }.movement-form input, .movement-form select, .movement-form .button { height: 34px; font-size: 9px; }
.zero-stock-note { display: flex; flex-direction: column; padding: 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }.zero-stock-note strong { font-size: 10px; }.zero-stock-note span { margin-top: 3px; font-size: 9px; }
.readonly-value { display: flex; height: 41px; align-items: center; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #f2f5f7; font-size: 12px; }

.delivery-actions { display: grid; gap: 14px; }.delivery-actions > form:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 23px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }.delivery-actions > form:first-child small { font-size: 8px; }
.document-list { display: grid; padding: 0 23px 14px; }.document-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }.document-list a > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }.document-list strong { font-size: 10px; }.document-list small { margin-top: 2px; font-size: 8px; }.document-list i { color: var(--blue); font-style: normal; }.document-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.document-upload { display: grid; grid-template-columns: .8fr 1.3fr auto; gap: 8px; padding: 0 23px 22px; }.document-upload input, .document-upload select { height: 37px; font-size: 9px; }
.event-timeline { display: grid; padding: 0 23px 20px; }.event-timeline > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }.event-source { width: max-content; height: max-content; padding: 4px 6px; border-radius: 6px; background: var(--slate-soft); color: var(--slate); font-size: 8px; font-weight: 800; }.event-timeline > div > div { display: flex; flex-direction: column; }.event-timeline strong { font-size: 10px; }.event-timeline small { margin-top: 3px; font-size: 8px; }
.workflow-progress-list { display: grid; padding: 0 23px 16px; }
.workflow-progress-list article { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.workflow-position { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 850; }
.workflow-progress-list article > div { display: flex; min-width: 0; flex-direction: column; }.workflow-progress-list strong { font-size: 10px; }.workflow-progress-list small { margin-top: 2px; font-size: 8px; }
.workflow-state { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.state-missing, .state-incomplete { background: var(--red-soft); color: var(--red); }.state-assigned { background: var(--blue-soft); color: var(--blue); }.state-in_progress { background: var(--amber-soft); color: var(--amber); }.state-completed { background: var(--green-soft); color: var(--green); }
.workflow-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }.workflow-evidence span { padding: 3px 6px; border-radius: 6px; background: var(--slate-soft); color: var(--slate); font-size: 7px; font-weight: 750; }.workflow-evidence .evidence-ok { background: var(--green-soft); color: var(--green); }.workflow-evidence .evidence-missing { background: var(--red-soft); color: var(--red); }
.samsara-document-list { display: grid; gap: 6px; margin: 4px 23px 16px; padding: 12px; border-radius: 10px; background: #f4f7f9; }.samsara-document-list > strong { font-size: 9px; text-transform: uppercase; }.samsara-document-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--line); }.samsara-document-list > div > span { display: flex; flex-direction: column; font-size: 9px; }.samsara-document-list small { margin-top: 2px; font-size: 8px; }

.global-search-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-bottom: 16px; padding: 14px; }.global-search-form input { height: 46px; }
.search-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notification-list { display: grid; gap: 10px; }.notification-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 16px; }.notification-item > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-weight: 900; }.notification-item > div p { margin: 3px 0 0; font-size: 10px; }.notification-item > i { color: var(--blue); font-style: normal; }.notification-critical { border-color: #efc4c4; }.notification-critical > span { background: var(--red-soft); color: var(--red); }

html[data-theme="dark"] {
  --ink: #e2ebf0;
  --muted: #93a6b1;
  --line: #344b58;
  --surface: #203540;
  --canvas: #172a34;
  --sidebar: #162934;
  --green-soft: #294653;
  --blue-soft: #294653;
  --amber-soft: #4b3a22;
  --violet-soft: #363d50;
  --red-soft: #4b2d31;
  --slate-soft: #30434e;
}
html[data-theme="dark"] body, html[data-theme="dark"] .page-area { background: var(--canvas); color: var(--ink); }
html[data-theme="dark"] .card, html[data-theme="dark"] .inventory-card, html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea, html[data-theme="dark"] .topbar { border-color: var(--line); background-color: var(--surface); color: var(--ink); }
html[data-theme="dark"] .topbar { background: rgba(32,53,64,.94); }
html[data-theme="dark"] th, html[data-theme="dark"] .series-actions, html[data-theme="dark"] .inventory-card footer, html[data-theme="dark"] .workflow-list article, html[data-theme="dark"] .workflow-step-editor, html[data-theme="dark"] .movement-form { background: #263d49; }
html[data-theme="dark"] td { border-color: var(--line); color: #c8d5dc; }
html[data-theme="dark"] .clickable-row:hover, html[data-theme="dark"] .series-rule, html[data-theme="dark"] .route-orders, html[data-theme="dark"] .samsara-document-list, html[data-theme="dark"] .mini-flow, html[data-theme="dark"] .note-box, html[data-theme="dark"] .reference-form, html[data-theme="dark"] .readonly-value, html[data-theme="dark"] .topbar-search input { background: #29404c; }
html[data-theme="dark"] .series-summary { border-color: var(--line); background: linear-gradient(105deg, #294653, #203540); }
html[data-theme="dark"] .warehouse-product,
html[data-theme="dark"] .warehouse-tank-card > footer,
html[data-theme="dark"] .warehouse-table th { background: #263d49; }
html[data-theme="dark"] .warehouse-fill > span { background: #344b58; }

@media (max-width: 1150px) {
  .workflow-step-editor { grid-template-columns: 1fr 1fr 1fr; }
  .topbar-search { width: min(300px, 30vw); }
}
@media (max-width: 860px) {
  .topbar-search { display: none; }
  .series-grid, .route-grid, .master-grid, .search-results { grid-template-columns: 1fr; }
  .integration-direction { align-items: flex-start; flex-wrap: wrap; }.integration-direction small { width: 100%; margin-left: 0; }
  .master-wide { grid-column: auto; }
  .movement-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .heading-button-group { align-items: stretch; flex-direction: column; }
  .series-summary { align-items: flex-start; flex-direction: column; }.summary-chip { padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); }
  .route-stop-unmatched { align-items: stretch; flex-direction: column; }
  .route-stop-matched { align-items: stretch; grid-template-columns: 1fr; }
  .route-link-form { width: 100%; min-width: 0; flex-direction: column; align-items: stretch; }
  .system-link-chain { grid-template-columns: 1fr; }.system-link-chain > i { transform: rotate(90deg); justify-self: start; }
  .series-data, .route-card dl, .workflow-list, .search-results { grid-template-columns: 1fr; }
  .workflow-step-editor, .movement-form, .document-upload { grid-template-columns: 1fr; }
  .delivery-actions > form:first-child { align-items: stretch; flex-direction: column; }
}

/* Fahrerprozesse */
.process-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.process-kpis article { position: relative; display: flex; min-height: 112px; flex-direction: column; justify-content: center; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.process-kpis article::after { position: absolute; right: -14px; bottom: -25px; width: 82px; height: 82px; border-radius: 50%; background: var(--blue-soft); content: ""; }
.process-kpis article.has-attention::after { background: var(--red-soft); }
.process-kpis span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.process-kpis strong { margin: 5px 0 2px; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.process-kpis small { font-size: 9px; }
.process-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(115deg, var(--surface), var(--blue-soft)); box-shadow: var(--shadow); }
.process-flow > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 0 9px; min-width: 0; }
.process-flow > div > span { grid-row: 1 / 3; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: var(--blue); color: #fff; font-size: 9px; font-weight: 850; }
.process-flow b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.process-flow small { overflow: hidden; margin-top: 2px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.process-flow > i { color: var(--blue); font-style: normal; font-weight: 900; }
.process-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.process-template-card { overflow: hidden; }
.process-template-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 20px 12px; }
.process-template-card > header > div { min-width: 0; }
.process-template-card h2 { font-size: 17px; }
.process-template-card header p { margin: 4px 0 0; font-size: 9px; }
.process-template-card footer { display: flex; justify-content: flex-end; padding: 11px 18px; border-top: 1px solid var(--line); background: #f8fafb; }
.process-template-actions { flex-wrap: wrap; align-items: center; gap: 8px; }
.process-template-actions form:last-child { margin-left: auto; }
.process-template-actions .button { min-height: 34px; padding: 7px 10px; font-size: 8px; }
.template-missing { display: block; margin-top: 3px; color: var(--red); font-size: 7px; font-weight: 850; }
.process-template-warning { margin: 0 18px 14px; padding: 10px 12px; border: 1px solid #efc6c6; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 8px; font-weight: 750; line-height: 1.45; }
.process-rule-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 15px; }
.process-rule-chips span { padding: 5px 8px; border-radius: 7px; background: var(--slate-soft); color: var(--slate); font-size: 8px; font-weight: 750; }
.process-rule-chips .activity-chip { background: var(--blue-soft); color: var(--blue); }
.process-step-table { border-top: 1px solid var(--line); }
.process-step-head, .process-step-table > div { display: grid; grid-template-columns: 38px minmax(150px, 1.5fr) minmax(82px, .7fr) 62px minmax(100px, 1fr); align-items: center; gap: 8px; padding: 9px 18px; }
.process-step-head { background: #f6f9fa; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.process-step-table > div:not(.process-step-head) { border-top: 1px solid #edf1f3; color: #40535f; font-size: 9px; }
.process-step-table > div > span:nth-child(1) { color: var(--blue); font-weight: 850; }
.process-step-table b, .process-step-table small { display: block; }
.process-step-table small { margin-top: 2px; overflow-wrap: anywhere; font-size: 7px; }
.process-instance-table { min-width: 1040px; }
.process-evidence-details { min-width: 130px; }
.process-evidence-details summary { color: var(--blue); cursor: pointer; font-size: 8px; font-weight: 800; }
.process-evidence-details > span, .process-evidence-details > a { display: flex; flex-direction: column; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 8px; }
.process-evidence-details > a { color: var(--blue); font-weight: 750; }
.process-evidence-details b { font-size: 7px; }
.process-evidence-details small { overflow-wrap: anywhere; font-size: 7px; }
.modal-process { width: min(1180px, calc(100vw - 30px)); max-height: calc(100vh - 32px); }
.process-form-section { padding: 17px 0; border-bottom: 1px solid var(--line); }
.process-form-section h3 { margin-bottom: 13px; }
.process-activity-picker { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; padding: 0; border: 0; }
.process-activity-picker legend { width: 100%; margin-bottom: 7px; color: #40535f; font-size: 11px; font-weight: 700; }
.process-activity-picker input { position: absolute; opacity: 0; pointer-events: none; }
.process-activity-picker span { display: grid; min-height: 34px; place-items: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 750; }
.process-activity-picker input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 5px 14px rgba(82,127,153,.18); }
.process-selectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-selectors label { grid-column: auto; }
.process-selectors select[multiple] { min-height: 118px; padding: 6px; }
.process-selectors option { padding: 6px 7px; border-radius: 6px; font-size: 9px; }
.process-form-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.process-form-title p { margin: 3px 0 0; font-size: 9px; }
.process-workflow-editor { margin-bottom: 0; }
.process-step-editor { position: relative; grid-template-columns: 30px minmax(110px, .6fr) minmax(150px, 1fr) minmax(170px, 1.2fr) minmax(110px, .7fr) minmax(130px, .8fr); align-items: end; padding: 13px; }
.process-step-editor .step-order { align-self: center; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--blue); color: #fff; font-size: 9px; font-weight: 850; }
.process-step-editor > label { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 750; white-space: normal; }
.process-step-editor > label input, .process-step-editor > label select { width: 100%; min-width: 0; }
.process-step-editor label.wide { grid-column: span 2; }
.process-step-editor .step-flags { grid-column: 2 / -2; display: flex; flex-wrap: wrap; gap: 13px; align-self: center; }
.process-step-editor .step-flags label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 700; }
.process-step-editor > .danger-link { justify-self: end; align-self: center; }
.tour-process-stack { display: grid; gap: 6px; }
.tour-process-stack > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.route-external-order { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); }
.route-external-order > span { display: flex; min-width: 0; flex-direction: column; }
.route-external-order b { font-size: 9px; }
.route-external-order small { margin-top: 2px; font-size: 8px; }
.stop-process-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); border-radius: 9px; background: var(--blue-soft); }
.stop-process-summary > span { display: flex; min-width: 0; flex-direction: column; }
.stop-process-summary > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.process-chip { display: flex; flex-direction: column; align-items: flex-start; padding: 5px 7px; border-radius: 7px; font-size: 8px; font-weight: 800; }
.process-chip small { margin-top: 2px; color: inherit; font-size: 7px; font-weight: 650; opacity: .78; }
.stop-process-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 9px 0 4px; border-top: 1px dashed var(--line); }
.stop-process-actions form { display: flex; align-items: flex-end; gap: 6px; }
.stop-process-actions label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 7px; font-weight: 750; }
.stop-process-actions select { min-width: 190px; height: 34px; padding: 5px 7px; font-size: 8px; }
.stop-process-actions .button { min-height: 34px; padding: 6px 10px; font-size: 8px; }
html[data-theme="dark"] .process-template-card footer, html[data-theme="dark"] .process-step-head { background: #263d49; }

@media (max-width: 1150px) {
  .process-template-grid { grid-template-columns: 1fr; }
  .process-step-editor { grid-template-columns: 30px repeat(3, minmax(0, 1fr)); }
  .process-step-editor label.wide { grid-column: span 1; }
  .process-step-editor .step-flags { grid-column: 2 / -1; }
}
@media (max-width: 860px) {
  .process-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-flow { grid-template-columns: 1fr; }
  .process-flow > i { transform: rotate(90deg); justify-self: center; }
  .process-selectors { grid-template-columns: 1fr; }
  .process-step-editor { grid-template-columns: 30px minmax(0, 1fr); }
  .process-step-editor > label, .process-step-editor label.wide, .process-step-editor .step-flags { grid-column: 2; }
}
@media (max-width: 620px) {
  .process-kpis { grid-template-columns: 1fr; }
  .process-step-head, .process-step-table > div { grid-template-columns: 28px 1fr; }
  .process-step-head span:nth-child(n+3), .process-step-table > div > span:nth-child(n+3) { display: none; }
  .stop-process-summary, .stop-process-actions, .stop-process-actions form { align-items: stretch; flex-direction: column; }
  .stop-process-summary > div { justify-content: flex-start; }
  .stop-process-actions select { width: 100%; min-width: 0; }
}

/* Dokumentenkontrolle */
.main-nav .nav-count { display: inline-grid; min-width: 21px; height: 21px; margin-left: auto; place-items: center; padding: 0 6px; border-radius: 999px; background: #d98934; color: #fff; font-size: 8px; }
.document-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.document-kpis article { display: flex; min-height: 105px; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.document-kpis span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.document-kpis strong { margin: 5px 0; font-size: 28px; letter-spacing: -.04em; }
.document-kpis small { font-size: 9px; }
.document-kpis .has-attention { border-color: #efd3aa; background: linear-gradient(145deg, #fff 35%, var(--amber-soft)); }
.review-badge { display: inline-flex; width: max-content; align-items: center; padding: 6px 9px; border-radius: 999px; background: var(--slate-soft); color: var(--slate); font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.review-pending_mapping, .review-sync_error { background: var(--amber-soft); color: var(--amber); }
.review-pending_review { background: var(--blue-soft); color: var(--blue); }
.review-approved { background: var(--violet-soft); color: var(--violet); }
.review-synced { background: #e8f1ef; color: #40746c; }
.review-rejected { background: var(--red-soft); color: var(--red); }
.control-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 17px; }
.control-main { display: grid; gap: 17px; }
.control-side { display: grid; gap: 17px; }
.mapping-table select { min-width: 155px; height: 36px; font-size: 10px; }
.mapping-table .button { min-height: 36px; padding: 7px 10px; font-size: 9px; }
.mapping-table option:disabled { color: #91a0ad; }
.mapping-review-table { min-width: 1180px; }
.mapping-review-table th:nth-child(1) { width: 15%; }
.mapping-review-table th:nth-child(2) { width: 13%; }
.mapping-review-table th:nth-child(3) { width: 23%; }
.mapping-review-table th:nth-child(4) { width: 19%; }
.mapping-review-table th:nth-child(5) { width: 12%; }
.mapping-review-table td { vertical-align: top; }
.mapping-review-table tr.answer-overridden td { background: #f6f9fc; }
.review-value-editor { display: grid; min-width: 210px; gap: 6px; }
.review-value-editor textarea,
.review-value-editor input { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 9px; }
.review-value-editor textarea { min-height: 54px; resize: vertical; }
.review-value-editor span { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.review-value-editor .text-button { border: 0; background: transparent; color: var(--blue); font-size: 8px; font-weight: 800; cursor: pointer; }
.override-badge { display: inline-flex; width: max-content; margin-top: 5px; padding: 3px 6px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 7px; font-style: normal; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.override-meta { color: var(--muted); font-size: 8px; line-height: 1.45; }
.source-original { color: var(--muted); text-decoration-color: #b4bec6; }
.mapping-catalog-note { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 10px; }
.mapping-catalog-note strong { color: var(--ink); }
.impargo-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0 23px 23px; }
.impargo-field-grid > div { min-width: 0; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); }
.impargo-field-grid dt { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.impargo-field-grid dd { min-height: 17px; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 700; }
.impargo-field-grid .field-is-empty dd { color: #9aa8b4; font-weight: 600; }
.field-id-pending { display: inline-flex; align-items: center; min-height: 17px; padding: 2px 5px; border: 1px solid #d8e1e8; border-radius: 999px; color: #7b8c99; font-size: 7px; letter-spacing: .02em; white-space: nowrap; }
.source-value { display: block; min-width: 110px; max-width: 280px; overflow-wrap: anywhere; font-weight: 650; }
.mapping-preview { display: grid; gap: 8px; padding: 0 23px 23px; }
.mapping-preview > div { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fa; }
.mapping-preview span { display: flex; min-width: 0; flex-direction: column; }
.mapping-preview b { font-size: 10px; }.mapping-preview small { margin-top: 3px; font-size: 9px; overflow-wrap: anywhere; }
.mapping-preview i { color: var(--blue); text-align: center; font-style: normal; font-weight: 900; }
.mapping-preview .mapping-error { border-color: #efc6c6; background: var(--red-soft); }
.control-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 18px; padding: 0; }
.control-meta div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.control-meta div:nth-child(odd) { padding-right: 10px; }
.control-meta dt { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.control-meta dd { margin: 4px 0 0; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.reject-form { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.safe-mode-note, .sync-error-note { display: flex; flex-direction: column; gap: 3px; margin-top: 17px; padding: 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); }
.safe-mode-note b { font-size: 9px; }.safe-mode-note small { color: inherit; font-size: 8px; line-height: 1.45; }
.sync-error-note { background: var(--red-soft); color: var(--red); font-size: 9px; }
.review-audit { margin: 15px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 9px; }
.evidence-card { overflow: hidden; }
.evidence-list { display: grid; padding: 0 20px 20px; }
.evidence-list a { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid var(--line); color: var(--blue); font-size: 10px; font-weight: 750; }
.evidence-list a small { margin-top: 3px; font-size: 8px; overflow-wrap: anywhere; }
.evidence-list p { margin: 0; font-size: 10px; }
.evidence-preview-card { overflow: hidden; }
.evidence-count { display: grid; min-width: 35px; height: 35px; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; }
.evidence-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 15px; padding: 0 23px 23px; }
.evidence-preview-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f1f5f7; }
.evidence-visual { display: flex; height: 440px; align-items: center; justify-content: center; padding: 10px; background: #e8eef2; }
.evidence-visual img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.evidence-pdf { display: block; width: 100%; height: 520px; border: 0; background: #fff; }
.evidence-file-placeholder { display: flex; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 25px; color: var(--blue); text-align: center; }
.evidence-file-placeholder span { padding: 9px 12px; border: 1px solid currentColor; border-radius: 8px; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.evidence-file-placeholder strong { overflow-wrap: anywhere; }
.evidence-preview-item footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.evidence-preview-item footer > div { display: flex; min-width: 0; flex-direction: column; }
.evidence-preview-item footer strong { font-size: 10px; }
.evidence-preview-item footer small { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 8px; }
.evidence-preview-item footer > span { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.evidence-preview-item footer a { color: var(--blue); font-size: 8px; font-weight: 800; }
.evidence-empty,
.evidence-warning { display: flex; flex-direction: column; gap: 4px; margin: 0 23px 20px; padding: 17px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.evidence-empty strong,
.evidence-warning strong { color: var(--ink); font-size: 10px; }
.evidence-empty span,
.evidence-warning span { font-size: 9px; line-height: 1.5; }
.evidence-warning { border-style: solid; border-color: #efd3aa; background: var(--amber-soft); color: var(--amber); }
.evidence-warning strong { color: inherit; }
.evidence-refresh-form { padding: 0 23px 23px; }
@media (max-width: 1050px) {
  .control-detail-grid { grid-template-columns: 1fr; }
  .control-side .sticky-card { position: static; }
  .impargo-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .document-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .document-kpis { grid-template-columns: 1fr; }
  .mapping-preview > div { grid-template-columns: 1fr; }
  .mapping-preview i { transform: rotate(90deg); }
  .impargo-field-grid { grid-template-columns: 1fr; }
  .evidence-preview-grid { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .evidence-visual { height: 300px; }
  .evidence-pdf { height: 420px; }
  .evidence-preview-item footer { align-items: flex-start; flex-direction: column; }
  .evidence-preview-item footer > span { align-items: flex-start; }
}

/* Zentrale Feldverwaltung */
.field-admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.field-admin-heading p { max-width: 720px; }
.field-admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.field-admin-kpis article { position: relative; display: flex; min-height: 108px; flex-direction: column; justify-content: center; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.field-admin-kpis article::after { position: absolute; right: -20px; bottom: -32px; width: 92px; height: 92px; border-radius: 50%; background: var(--blue-soft); content: ""; }
.field-admin-kpis article.has-attention::after { background: var(--amber-soft); }
.field-admin-kpis span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.field-admin-kpis strong { margin: 6px 0 2px; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.field-admin-kpis small { color: var(--muted); font-size: 9px; }
.field-admin-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 16px 18px; }
.field-module-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.field-module-tabs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 9px; font-weight: 800; }
.field-module-tabs a:hover, .field-module-tabs a.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.field-admin-search { display: flex; width: min(330px, 100%); flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.field-admin-search input { height: 38px; }
.field-admin-note { margin-bottom: 22px; }
.field-admin-sections { display: grid; gap: 25px; }
.field-admin-module > .section-heading { margin-bottom: 11px; }
.field-count { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 850; }
.field-admin-card { margin-bottom: 12px; overflow: hidden; }
.field-admin-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, var(--blue-soft)); }
.field-admin-card > header h3 { margin: 2px 0 0; font-size: 15px; }
.field-admin-card > header > span { color: var(--muted); font-size: 8px; font-weight: 750; }
.field-admin-list { display: grid; }
.field-admin-columns, .field-admin-row { display: grid; grid-template-columns: minmax(165px, .85fr) minmax(240px, 1.4fr) 88px 88px minmax(130px, .7fr); align-items: center; gap: 16px; }
.field-admin-columns { padding: 9px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2, #f7f9fa); color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.field-admin-row { min-height: 82px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface); scroll-margin-top: 90px; }
.field-admin-row:last-child { border-bottom: 0; }
.field-admin-row:hover, .field-admin-row.is-customized { background: color-mix(in srgb, var(--surface) 96%, var(--blue-soft)); }
.field-admin-identity { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.field-admin-identity strong { font-size: 10px; overflow-wrap: anywhere; }
.field-admin-identity small { color: var(--muted); font-size: 7px; overflow-wrap: anywhere; }
.field-admin-identity em { display: inline-flex; margin-top: 2px; padding: 3px 6px; border-radius: 999px; background: var(--slate-soft); color: var(--slate); font-size: 6px; font-style: normal; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.field-admin-identity em.customized { background: var(--blue-soft); color: var(--blue); }
.field-admin-label { display: flex; min-width: 0; flex-direction: column; gap: 4px; color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.field-admin-label input { width: 100%; min-width: 0; height: 37px; text-transform: none; }
.field-admin-label small { font-size: 7px; font-weight: 650; text-transform: none; }
.field-switch { display: flex; align-items: center; justify-content: flex-start; cursor: pointer; }
.field-switch input { position: absolute; opacity: 0; pointer-events: none; }
.field-switch > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 800; }
.field-switch i { position: relative; display: block; width: 33px; height: 19px; border-radius: 999px; background: #c7d0d6; transition: .18s ease; }
.field-switch i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(20, 42, 55, .25); content: ""; transition: .18s ease; }
.field-switch input:checked + span i { background: var(--blue); }
.field-switch input:checked + span i::after { transform: translateX(14px); }
.field-switch input:focus-visible + span i { outline: 2px solid var(--blue); outline-offset: 2px; }
.field-switch.is-locked { cursor: not-allowed; opacity: .62; }
.field-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.field-admin-actions .button { min-height: 35px; padding: 7px 10px; font-size: 8px; }
.field-admin-actions .text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 7px; font-weight: 800; }
.field-admin-actions .text-button:hover { color: var(--blue); }
.field-admin-empty { padding: 34px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
html[data-theme="dark"] .field-admin-columns { background: #213641; }
html[data-theme="dark"] .field-admin-card > header { background: #263d49; }

@media (max-width: 1050px) {
  .field-admin-columns { display: none; }
  .field-admin-row { grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.4fr) 80px 80px; }
  .field-admin-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 7px; border-top: 1px dashed var(--line); }
}
@media (max-width: 760px) {
  .field-admin-heading, .field-admin-toolbar { align-items: stretch; flex-direction: column; }
  .field-admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-admin-search { width: 100%; }
  .field-admin-row { grid-template-columns: 1fr 1fr; }
  .field-admin-identity, .field-admin-label { grid-column: 1 / -1; }
  .field-admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .field-admin-kpis { grid-template-columns: 1fr; }
  .field-admin-row { padding: 14px; }
}
