:root {
  --ink: #11150f;
  --panel: #172017;
  --panel-2: #20281f;
  --green: #005a35;
  --green-2: #0c7a48;
  --gold: #d5a83a;
  --gold-2: #f2d27a;
  --cream: #f7f3e7;
  --muted: #aeb7a7;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: #0d120d;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.empty-pie { background: #edf0f2; box-shadow: none; display: grid; place-items: center; color: #66705f; }
.metric-link { position: relative; padding-bottom: 44px !important; }
.metric-action { position: static; background: transparent !important; color: #005a35 !important; font-size: 12px; padding: 0 !important; min-height: 28px !important; text-align: left; text-decoration: underline; }
.metric-action::after { content: ''; position: absolute; inset: 0; }
.metric-link:focus-within { outline: 2px solid #147d64; outline-offset: 2px; }
#command .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.workspace button { min-height: 44px; padding: 8px 12px; border-radius: 5px; background: #005a35; color: white; }
.workspace button:disabled { opacity: .5; }
.workspace .table-panel button { margin: 3px; white-space: normal; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0; }
.filter-bar label { flex: 1 1 180px; display: grid; gap: 8px; font-size: 13px; }
.workspace input, .workspace select, .workspace textarea { min-height: 44px; max-width: 100%; padding: 10px; border: 1px solid #bac4bc; border-radius: 4px; background: white; color: #172017; font: inherit; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 16px; }
.warning { color: #a13820; font-size: 12px; }
.legend-value { display: block; margin-top: 4px; }
.legend li { overflow-wrap: anywhere; }
.report-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; margin: 24px 0 32px; }
.report-charts section { min-width: 0; }
.full-field { grid-column: 1 / -1; min-width: 0; }
.checkbox-label { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 8px; }
.checkbox-label input { width: 20px; min-height: 20px; }
.workflow-line { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; padding: 12px 0; align-items: end; border-bottom: 1px solid #ddd; }
.warehouse-locations { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-bottom: 24px; }
.warehouse-locations > div { border-bottom: 1px solid #cad3cc; padding: 12px; }
.print-label { display: inline-block; padding: 16px; margin: 8px; border: 1px solid #bbb; break-inside: avoid; }
#deliverySignature { width: 100%; max-width: 600px; height: 180px; border: 1px solid #aebcaf; background: #fff; touch-action: none; }
.global-search { position: relative; width: 180px; }
.global-search input { width: 100%; }
#globalResults { position: absolute; z-index: 20; top: 48px; right: 0; width: min(340px,calc(100vw - 36px)); padding: 12px; background: white; border: 1px solid #bac4bc; box-shadow: 0 8px 24px #0002; }
#globalResults button { display: block; width: 100%; text-align: left; margin-bottom: 6px; }
#globalResults small { display: block; color: #d9efe2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width:760px) { .global-search { width: 100%; } .topbar .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .global-search { grid-column: 1 / -1; } .topbar .actions > * { min-width: 0; } }
.account-tools { display: grid; gap: 8px; }
.account-tools button { min-height: 44px; background: #263828; color: white; border-radius: 4px; padding: 8px; }
#mobileMenu { display: none; }
.selected { background: #172017 !important; }
@media(max-width:1100px){ .report-charts { grid-template-columns: 1fr; } }
@media(max-width:760px){
  #mobileMenu { display: block; position: absolute; right: 18px; top: 16px; min-height: 44px; background: #263828; color: white; padding: 8px 16px; border-radius: 5px; }
  .sidebar { position: relative; padding: 14px 18px; }
  .side-brand { padding-right: 72px; }
  #primaryNav, .side-note, .account-tools { display: none; }
  .menu-open #primaryNav, .menu-open .account-tools { display: grid; }
  .sidebar.menu-open { gap: 16px; }
  #command .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace .topbar h2 { font-size: 24px; }
  .workspace .topbar { gap: 12px; }
  .workspace input, .workspace select, dialog input, dialog select { font-size: 16px; }
  .workflow-line { grid-template-columns: 1fr 1fr; }
  .workflow-line > label:first-child { grid-column: 1 / -1; }
  .warehouse-locations { grid-template-columns: 1fr; }
  .filter-bar label { flex-basis: 100%; }
  .pie-wrap { grid-template-columns: 1fr !important; justify-items: center; }
  .legend { width: 100%; }
  .metric-grid strong { font-size: 22px; }
}
.panel-head { flex-wrap: wrap; }
.pie-wrap { grid-template-columns: minmax(0, 168px) minmax(0, 1fr); }
.table-panel { overflow-x: auto; }
.panel, .metric-grid article { overflow-wrap: anywhere; min-width: 0; }
.scanner-layout, .qr-layout, .admin-grid { background: transparent !important; border: 0 !important; box-shadow: none !important; }
button:disabled { opacity: .55; cursor: default; }
#setupPasskey { margin-top: 16px; }
.upload-list span { display: block; overflow-wrap: anywhere; }

dialog { width: min(920px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #d8ddd2; border-radius: 8px; color: #172017; }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog button, #finance button { min-height: 40px; padding: 8px 14px; border-radius: 6px; background: var(--green); color: white; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
dialog label { display: grid; gap: 8px; font-size: 14px; }
dialog input, dialog select, dialog textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #bac4bc; border-radius: 4px; background: #fff !important; color: #172017 !important; font: inherit; }
dialog [type=hidden] { display: none; }
.form-error, #financeStatus { color: #b3261e; }
.finance-tabs [aria-selected=true] { background: #172017 !important; }
.finance-existing-title { margin-top: 32px; }
.invoice-lines { padding: 0; margin: 16px 0; }
.invoice-lines table { min-width: 580px; }
#finance table { min-width: 620px; }
#finance td { overflow-wrap: anywhere; max-width: 260px; }
#invoicePaper { background: white; padding: 24px; color: #172017; }
#invoicePaper p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:760px) { .form-grid { grid-template-columns: 1fr; } dialog { padding: 16px; } }
@media print { body > * { display: none !important; } #invoicePreview { display: block !important; position: static; max-height: none; width: 100%; border: 0; padding: 0; overflow: visible; } #invoicePreview > .panel-head { display: none; } #invoicePreview::backdrop { background: none; } }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(140deg, rgba(0, 90, 53, 0.78), rgba(13, 18, 13, 0.94) 52%),
    radial-gradient(circle at 74% 18%, rgba(213, 168, 58, 0.18), transparent 34%),
    #0d120d;
}

.access-card {
  width: min(100%, 448px);
  padding: 34px;
  border: 1px solid rgba(242, 210, 122, 0.34);
  background: rgba(17, 21, 15, 0.9);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup img {
  width: 92px;
  aspect-ratio: 1.25;
  object-fit: contain;
}

.brand-lockup p,
.topbar p {
  margin: 0 0 6px;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.05;
}

.login-form {
  display: grid;
  gap: 15px;
  padding: 24px 0;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #d9dfd3;
  font-size: 14px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 13px;
  outline: none;
}

input:focus {
  border-color: var(--gold);
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}

.remember {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

a {
  color: var(--gold-2);
}

.primary,
.secondary,
.actions button,
.upload-button,
.panel button,
.tool-band button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 800;
}

.primary {
  color: #091006;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.hint,
.login-footer {
  color: var(--muted);
  font-size: 13px;
}

.login-footer {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #eef0e9;
  color: #172017;
}

.sidebar {
  min-height: 100vh;
  padding: 22px 18px;
  background: #10170f;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-brand img {
  width: 64px;
  height: 50px;
  object-fit: contain;
}

.side-brand strong {
  display: block;
}

.side-brand span,
.side-note span {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: grid;
  gap: 6px;
}

nav button {
  min-height: 42px;
  border-radius: 6px;
  text-align: left;
  padding: 0 12px;
  color: #dfe5da;
  background: transparent;
}

nav button.active,
nav button:hover {
  background: rgba(213, 168, 58, 0.16);
  color: var(--gold-2);
}

.side-note {
  margin-top: auto;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
  color: #11150f;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions button,
.upload-button,
.panel button,
.tool-band button {
  color: #fff;
  background: var(--green);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-button input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.metric-grid,
.panel-grid,
.catalog-grid,
.document-grid,
.growth-grid {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric-grid article,
.panel,
.table-panel,
.warehouse-map,
.customer-layout,
.scanner-layout,
.qr-layout,
.admin-grid,
.growth,
.document-grid article,
.catalog-card {
  background: #ffffff;
  border: 1px solid #d8ddd2;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 32, 22, 0.08);
}

.metric-grid article {
  padding: 18px;
  min-height: 128px;
}

.metric-grid span,
.catalog-card span {
  color: #66705f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 30px;
}

small {
  color: #66705f;
}

.panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.table-panel,
.warehouse-map,
.customer-layout,
.growth {
  padding: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3,
.panel h3 {
  margin: 0;
}

.panel-head button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pipeline li,
.stock-item,
.route-item,
.customer-layout li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  background: #f4f6f0;
}

.pipeline li {
  display: grid;
  min-height: 104px;
}

.stock-list,
.route-list,
.customer-layout ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  color: #0f3b25;
  background: #dff3e5;
  font-size: 12px;
  font-weight: 800;
}

.chart-panel {
  min-height: 310px;
}

.pie-wrap {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  align-items: center;
}

.pie {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.72);
}

.stock-pie {
  background: #edf0f2;
}

.sales-pie {
  background: #edf0f2;
}

.legend,
.upload-list,
.function-grid {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li,
.upload-list span {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #3c4638;
  font-size: 13px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.upload-panel p {
  color: #66705f;
  line-height: 1.5;
}

.function-suite {
  grid-column: span 2;
}

.function-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.function-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  color: #172017;
  background: #f4f6f0;
  font-size: 13px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid #e2e6dc;
}

th {
  color: #66705f;
  font-size: 12px;
  text-transform: uppercase;
}

.tool-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
  padding: 16px;
}

.catalog-card strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 20px;
}

.catalog-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-meta div {
  padding: 10px;
  background: #f4f6f0;
  border-radius: 6px;
}

.warehouse-map {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.bay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bay {
  min-height: 120px;
  padding: 12px;
  border-radius: 8px;
  background: #172017;
  color: var(--cream);
}

.bay span {
  display: block;
  color: var(--gold-2);
  font-size: 12px;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: #e1e5dc;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green-2);
}

.big {
  display: block;
  margin-top: 16px;
  font-size: 42px;
}

.customer-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scanner-layout,
.qr-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.3fr);
  gap: 16px;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scanner-console {
  display: grid;
  gap: 14px;
}

.scanner-console label,
.qr-layout label {
  display: grid;
  gap: 8px;
  color: #66705f;
  font-weight: 800;
}

.scanner-window {
  min-height: 260px;
  border: 1px solid #263625;
  border-radius: 8px;
  background:
    linear-gradient(rgba(12, 122, 72, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 122, 72, 0.16) 1px, transparent 1px),
    #10170f;
  background-size: 28px 28px;
  color: var(--cream);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 42%;
  height: 3px;
  background: var(--gold-2);
  box-shadow: 0 0 18px var(--gold);
}

.scanner-window span {
  width: min(82%, 360px);
  color: var(--muted);
  line-height: 1.4;
}

.scan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scan-actions button {
  min-height: 42px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.qr-preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.qr-preview img {
  width: 220px;
  height: 220px;
  border: 1px solid #d8ddd2;
  border-radius: 8px;
  background: #fff;
}

.qr-preview span {
  color: #66705f;
  line-height: 1.5;
}

.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.health-grid div,
.user-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  background: #f4f6f0;
}

.health-grid span {
  color: #66705f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.document-grid span,
.growth p {
  color: #66705f;
}

.growth {
  max-width: 920px;
}

.growth h3 {
  font-size: 36px;
  margin-bottom: 10px;
}

.growth-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.growth-grid span {
  padding: 14px;
  border-radius: 6px;
  background: #172017;
  color: var(--gold-2);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #11150f;
  color: var(--cream);
  border: 1px solid rgba(242, 210, 122, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  transition: 0.2s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.upload-list > span { display: block; overflow-wrap: anywhere; }
.more-actions { position: relative; }
.more-actions summary { min-height: 44px; padding: 12px; background: #263828; color: white; border-radius: 5px; cursor: pointer; }
.more-actions > div { position: absolute; top: 48px; right: 0; z-index: 10; width: 220px; display: grid; gap: 8px; padding: 12px; background: white; border: 1px solid #cad3cc; box-shadow: 0 8px 24px #0002; }
.workspace .legend li { grid-template-columns: 12px minmax(0,1fr) auto; }
@media(max-width:760px){
  .sidebar .side-note { display: none; }
  .sidebar.menu-open .side-note { display: grid; }
  .table-panel table { min-width: 0 !important; }
  .table-panel thead { display: none; }
  .table-panel tbody tr { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding: 8px 0; border-bottom: 1px solid #cbd4cc; }
  .table-panel td { display: block; width: 100%; max-width: none !important; border: 0; padding: 8px 0; overflow-wrap: anywhere; }
  .table-panel td[data-label]::before { content: attr(data-label); display: block; color: #66705f; font-size: 12px; margin-bottom: 4px; font-weight: 600; }
  .invoice-lines td:nth-child(2), .invoice-lines td:nth-child(3) { display: inline-block; }
  .metric-link { padding-bottom: 12px !important; }
}

@media (max-width: 1100px) {
  .metric-grid,
  .panel-grid,
  .catalog-grid,
  .document-grid,
  .function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide,
  .function-suite {
    grid-column: 1 / -1;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .warehouse-map,
  .customer-layout,
  .scanner-layout,
  .qr-layout,
  .admin-grid,
  .qr-preview {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .panel-grid,
  .catalog-grid,
  .document-grid,
  .function-grid,
  .growth-grid,
  .bay-grid,
  .pipeline,
  .pie-wrap {
    grid-template-columns: 1fr;
  }

  .scan-actions,
  .compact,
  .health-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 18px;
  }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid article { padding: 12px; }
  .metric-grid strong { font-size: 22px; }
}
.dashboard-exceptions { padding: 18px 0; border-bottom: 1px solid #dce3e6; margin-bottom: 20px; }
#exceptionRows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; }
#exceptionRows button { text-align: left; display: grid; gap: 4px; white-space: normal; min-height: 52px; }
#exceptionRows small { color: #59646a; }
@media (max-width: 700px) { #exceptionRows { grid-template-columns: minmax(0, 1fr); } }
.workspace .legend li:not(:has(i)) { display: block; width: 100%; overflow-wrap: normal; }
#command .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.health-grid div { display: grid; gap: 6px; align-content: start; }
.health-grid span { overflow-wrap: normal; }
@media (max-width: 760px) { #command .panel-grid { grid-template-columns: minmax(0, 1fr); } }
.document-brand { display: flex; align-items: center; gap: 20px; border-bottom: 2px solid #147d64; padding-bottom: 16px; }
.document-brand img { width: 88px; height: 64px; object-fit: contain; }
.document-brand h2 { font-size: 20px; }
.document-brand p { font-size: 12px; }
@media (min-width: 761px) and (max-width: 1100px) {
  #command .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #command .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .pie-wrap { grid-template-columns: minmax(0, 168px) minmax(0, 1fr); }
}
.finance-shortcuts { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid #d4ded6; padding: 20px 0; }
.finance-shortcuts section { flex: 1 1 200px; }
.finance-shortcuts h3 { font-size: 16px; }
