:root {
  color-scheme: light;
  --sidebar: #17202b;
  --sidebar-muted: #93a0b0;
  --ink: #17212f;
  --muted: #687386;
  --line: #dfe3e8;
  --soft: #f4f6f8;
  --surface: #ffffff;
  --accent: #315bd6;
  --accent-soft: #edf2ff;
  --success: #16805b;
  --topbar-height: 48px;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

/* Accounting workflow ----------------------------------------------------- */
.accounting-page {
  overflow: hidden;
}

.accounting-page .main-area {
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
}

.accounting-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100dvh - 48px);
  min-height: 0;
  padding: 6px 8px 8px;
  background: var(--surface-subtle, #f5f7f9);
}

.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-workspace {
  --accounting-top: 43%;
  grid-template-rows: minmax(120px, var(--accounting-top)) 8px minmax(140px, 1fr);
}

.accounting-grid-panel,
.accounting-allocation-panel,
.accounting-statement-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line, #d8dee5);
  border-radius: 0;
  background: var(--surface, #fff);
}

.accounting-grid-panel {
  display: grid;
  grid-template-rows: 35px minmax(0, 1fr) 26px;
}

.accounting-toolbar,
.accounting-allocation-heading,
.accounting-statement-heading,
.accounting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border-bottom: 1px solid var(--line, #d8dee5);
  padding: 3px 7px;
  background: #fff;
}

body[data-accounting-page="cash-vouchers"] .accounting-workspace {
  grid-template-rows: minmax(0, 1fr) auto auto;
}
.accounting-date-range { display:flex; align-items:center; gap:5px; }
.accounting-date-range input { min-width:0; width:132px; height:32px; border:1px solid var(--line); border-radius:4px; padding:0 6px; font:inherit; background:var(--surface); color:var(--ink); }
.accounting-payment-summary { min-width:0; border:1px solid var(--line); background:var(--surface); margin-top:6px; }
.accounting-payment-summary-scroll { max-height:160px; overflow:auto; }
.accounting-payment-summary table { width:100%; min-width:760px; border-collapse:separate; border-spacing:0; table-layout:fixed; font-size:12px; font-variant-numeric:tabular-nums; }
.accounting-payment-summary th,.accounting-payment-summary td { height:25px; padding:3px 8px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.accounting-payment-summary thead th { position:sticky; top:0; z-index:1; background:var(--soft); color:var(--muted); font-weight:600; }
.accounting-payment-summary th:first-child { width:140px; }
.accounting-payment-summary tbody th { text-align:left; font-weight:500; }
.accounting-payment-summary td { text-align:right; }
.accounting-payment-summary tr:last-child>* { border-bottom:0; }
.accounting-payment-summary tr>*:last-child { border-right:0; }
.accounting-payment-summary tbody tr:nth-child(3)>* { border-top:1px solid #bbc4d1; }

.accounting-toolbar .table-search {
  width: min(360px, 55vw);
  height: 27px;
}

.accounting-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #647180;
  font-size: 11px;
  white-space: nowrap;
}

.accounting-mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7b0ba;
}

.accounting-mode.active {
  color: #1260a8;
  font-weight: 700;
}

.accounting-mode.active .accounting-mode-dot {
  background: #1681d4;
  box-shadow: 0 0 0 3px rgb(22 129 212 / 12%);
}

.accounting-table-region,
.accounting-table-region .data-table-shell,
.accounting-table-region .data-table-scroll {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.accounting-table-region .data-table-shell {
  border: 0;
  border-radius: 0;
}

.accounting-table-region .data-table-filter-button {
  top: 4px;
  right: 5px;
}

.accounting-table-scroll {
  overflow: auto;
  scrollbar-width: thin;
}

.accounting-table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}

.accounting-table th,
.accounting-table td {
  box-sizing: border-box;
  height: 27px;
  min-height: 27px;
  padding: 2px 6px;
  border-right: 1px solid #dfe4e9;
  border-bottom: 1px solid #e5e9ed;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accounting-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 29px;
  background: #eef2f5;
  color: #34404c;
  font-weight: 700;
}

.accounting-table th:first-child,
.accounting-table td:first-child { width: 64px; min-width: 64px; }
.accounting-table th:nth-child(2),
.accounting-table td:nth-child(2),
.accounting-table th:nth-child(3),
.accounting-table td:nth-child(3) { width: 96px; min-width: 96px; }
.accounting-table th:nth-child(4),
.accounting-table td:nth-child(4) { width: 142px; min-width: 142px; }
.accounting-table th:nth-child(5),
.accounting-table td:nth-child(5) { width: 145px; min-width: 145px; }
.accounting-table th:nth-child(6),
.accounting-table td:nth-child(6) { width: 150px; min-width: 150px; }
.accounting-table th:nth-child(n+7),
.accounting-table td:nth-child(n+7) { width: 108px; min-width: 108px; }
.accounting-table th:nth-last-child(-n+4),
.accounting-table td:nth-last-child(-n+4) { width: 88px; min-width: 88px; }

.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(1),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(1) { width: 100px; min-width: 100px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(2),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(2) { width: 120px; min-width: 120px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(3),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(3) { width: 160px; min-width: 160px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(4),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(4),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(5),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(5) { width: 120px; min-width: 120px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(6),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(6),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(7),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(7),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(8),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(8),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(9),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(9) { width: 100px; min-width: 100px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(10),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(10),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(11),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(11) { width: 105px; min-width: 105px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(12),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(12) { width: 240px; min-width: 240px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(13),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(13) { width: 130px; min-width: 130px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(14),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(14) { width: 110px; min-width: 110px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(15),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(15) { width: 145px; min-width: 145px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(16),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(16) { width: 110px; min-width: 110px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(17),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(17) { width: 150px; min-width: 150px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(18),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(18) { width: 120px; min-width: 120px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(19),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(19),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(20),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(20) { width: 100px; min-width: 100px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(21),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(21) { width: 125px; min-width: 125px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(22),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(22) { width: 100px; min-width: 100px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(23),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(23) { width: 80px; min-width: 80px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(24),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(24),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(25),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(25) { width: 62px; min-width: 62px; text-align: center; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(26),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(26) { width: 64px; min-width: 64px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(27),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(27),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(29),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(29) { width: 90px; min-width: 90px; }
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(28),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(28),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th:nth-child(30),
.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table td:nth-child(30) { width: 150px; min-width: 150px; }

.accounting-table td.accounting-check-cell input[type="checkbox"] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  box-shadow: none;
  accent-color: var(--accent);
  vertical-align: middle;
}

.accounting-table td.accounting-check-cell input[type="checkbox"]:disabled {
  opacity: 1;
}

.accounting-table tbody tr[data-accounting-row] {
  cursor: default;
}

.accounting-table tbody tr[data-accounting-partner-row],
.accounting-table tbody tr[data-accounting-statement-row] {
  cursor: default;
}

.accounting-table tbody tr[data-accounting-row]:hover td,
.accounting-table tbody tr[data-accounting-partner-row]:hover td,
.accounting-table tbody tr[data-accounting-statement-row]:hover td {
  background: #f4f8fb;
}

.accounting-table tbody tr.is-selected td {
  background: #eaf4fc;
}

.accounting-table td.accounting-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.accounting-table td input,
.accounting-table td select,
.accounting-allocation-panel td input {
  width: calc(100% + 12px);
  height: 26px;
  margin: -2px -6px;
  padding: 2px 6px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: inherit;
  font: inherit;
}

.accounting-table td input:focus,
.accounting-table td select:focus,
.accounting-allocation-panel td input:focus {
  border: 0;
  outline: 0;
  box-shadow: inset 0 0 0 2px #1681d4;
}

.accounting-table td.is-invalid {
  background: #fff0f0 !important;
  box-shadow: inset 0 0 0 1px #dc3f45;
}

.accounting-table td.is-invalid input,
.accounting-table td.is-invalid select {
  background: #fff0f0;
}

.accounting-combobox {
  position: relative;
  width: 100%;
}


.accounting-footer {
  border-top: 1px solid var(--line, #d8dee5);
  border-bottom: 0;
  color: #687482;
  font-size: 11px;
}
.accounting-page-navigation { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.accounting-page-navigation button { border:1px solid var(--line, #d8dee5); border-radius:4px; padding:2px 7px; background:var(--surface, #fff); color:var(--ink); cursor:pointer; font:inherit; }
.accounting-page-navigation button:disabled { opacity:.45; cursor:default; }
body[data-accounting-page="cash-vouchers"] .accounting-grid-panel { grid-template-rows:35px minmax(0,1fr) auto; }
body[data-accounting-page="cash-vouchers"] .accounting-footer { min-height:26px; flex-wrap:wrap; gap:3px 9px; }

.accounting-toolbar [data-accounting-entry-filter] {
  height: 32px;
  min-width: 110px;
  padding: 0 8px;
  border: 1px solid var(--line, #d8dee5);
  border-radius: 4px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}

.accounting-filter-check { display:inline-flex; align-items:center; gap:6px; min-height:32px; white-space:nowrap; font-size:12px; cursor:pointer; }
.accounting-filter-check input { width:14px; height:14px; margin:0; accent-color:var(--accent); }

.accounting-table tr[data-status="VOIDED"] td {
  color: #7a8493;
  background: #f7f8fa;
}

body[data-accounting-page="cash-vouchers"] .accounting-table tr > :is(th,td):is(:nth-child(7),:nth-child(9)) { background:#eff8df; }
body[data-accounting-page="cash-vouchers"] .accounting-table thead tr > th:is(:nth-child(7),:nth-child(9)) { background:#e3efcc; }
body[data-accounting-page="cash-vouchers"] .accounting-table tr[data-status="VOIDED"] > td:is(:nth-child(7),:nth-child(9)) { background:#f3f6ec; }
body[data-accounting-page="cash-vouchers"] .accounting-table tr.is-selected > td:is(:nth-child(7),:nth-child(9)) { background:#dceebc; }

body[data-accounting-page="cash-vouchers"] .accounting-grid-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body[data-accounting-page="cash-vouchers"] .accounting-footer {
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 26px;
}

.accounting-allocation-panel {
  display: grid;
  grid-template-rows: 31px minmax(100px, 24vh);
  margin-top: 6px;
}

.accounting-statement-panel {
  display: grid;
  grid-template-rows: 31px minmax(0, 1fr);
}

.accounting-statement-heading {
  justify-content: flex-start;
  gap: 12px;
  min-height: 31px;
  font-size: 11px;
}

.accounting-statement-heading span {
  color: #667482;
  font-variant-numeric: tabular-nums;
}
.accounting-ledger-actions { margin-left: auto; max-width: 100%; min-width: 0; }
.accounting-ledger-actions .shipment-document-kind select { width: 88px; }
.accounting-ledger-actions .accounting-ledger-orientation { border-left: 1px solid var(--line); }
.accounting-ledger-actions .accounting-ledger-orientation select { width: 60px; }
.receivable-ledger-print-dialog .shipment-print-header { flex-wrap: wrap; }
.receivable-ledger-fax-dialog .confirm-dialog-copy { min-width: 0; }
.receivable-ledger-fax-dialog .shipment-fax-fields { margin-top: 12px; }
.receivable-ledger-fax-dialog .shipment-fax-fields :is(select,input) { min-width: 0; }
[data-receivable-ledger-fax-status] { min-height: 18px; margin-top: 9px !important; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .accounting-statement-panel { grid-template-rows: auto minmax(0, 1fr); }
  .accounting-statement-heading { flex-wrap: wrap; gap: 4px; }
  .accounting-statement-heading > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .accounting-statement-heading > span { display: none; }
  .accounting-ledger-actions { flex: 0 1 auto; margin-left: 0; overflow-x: auto; }
  .accounting-ledger-actions .shipment-document-executions button { padding-inline: 5px; }
  .receivable-ledger-print-dialog .shipment-print-header { align-items: stretch; padding: 6px; }
  .receivable-ledger-fax-dialog { width: min(430px, calc(100vw - 16px)); }
  .receivable-ledger-fax-dialog form { padding: 14px; gap: 8px; }
  .receivable-ledger-fax-dialog .confirm-dialog-actions { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .accounting-ledger-actions { height: auto; flex-wrap: wrap; gap: 4px; border: 0; overflow: visible; }
  .accounting-ledger-actions .shipment-document-kind,
  .accounting-ledger-actions .shipment-document-executions { border: 1px solid #cfd5dd; background: #fff; }
  .accounting-ledger-actions .shipment-document-executions { max-width: 100%; flex-wrap: wrap; }
}

.accounting-statement-region {
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.accounting-statement-table {
  min-width: 2050px;
}

.accounting-statement-table th:first-child,
.accounting-statement-table td:first-child { width: 64px; min-width: 64px; }
.accounting-statement-table th:nth-child(2),
.accounting-statement-table td:nth-child(2),
.accounting-statement-table th:nth-child(3),
.accounting-statement-table td:nth-child(3) { width: 94px; min-width: 94px; }
.accounting-statement-table th:nth-child(4),
.accounting-statement-table td:nth-child(4) { width: 82px; min-width: 82px; }
.accounting-statement-table th:nth-child(5),
.accounting-statement-table td:nth-child(5),
.accounting-statement-table th:nth-child(6),
.accounting-statement-table td:nth-child(6) { width: 126px; min-width: 126px; }
.accounting-statement-table th:nth-child(7),
.accounting-statement-table td:nth-child(7) { width: 180px; min-width: 180px; }
.accounting-statement-table th:nth-child(n+8):nth-child(-n+12),
.accounting-statement-table td:nth-child(n+8):nth-child(-n+12) { width: 104px; min-width: 104px; }

.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table th:first-child,
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table td:first-child { width: 180px; min-width: 180px; }
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table th:nth-child(2),
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table td:nth-child(2) { width: 132px; min-width: 132px; }
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table th:nth-child(3),
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table td:nth-child(3),
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table th:nth-child(4),
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table td:nth-child(4) { width: 112px; min-width: 112px; }
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table th:nth-child(n+5),
.accounting-page:not([data-accounting-page="cash-vouchers"]) .accounting-grid-panel .accounting-table td:nth-child(n+5) { width: 108px; min-width: 108px; }

.accounting-splitter {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  outline: 0;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
}

.accounting-splitter::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: #cfd5dd;
}

.accounting-splitter span {
  position: relative;
  width: 42px;
  height: 6px;
  border: 1px solid #bfc7d2;
  background: #f8f9fb;
}

.accounting-splitter:hover span,
.accounting-splitter:focus span,
body.accounting-resizing .accounting-splitter span {
  border-color: #7890c9;
  background: var(--accent-soft);
}

.accounting-allocation-panel[hidden] {
  display: none;
}

.accounting-allocation-heading {
  justify-content: flex-start;
  gap: 12px;
  min-height: 31px;
  font-size: 11px;
}

.accounting-allocation-heading span {
  color: #667482;
}

.accounting-allocation-scroll {
  min-height: 0;
  overflow: auto;
}

.accounting-allocation-panel table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 11px;
}

.accounting-allocation-panel th,
.accounting-allocation-panel td {
  height: 27px;
  padding: 2px 6px;
  border-right: 1px solid #dfe4e9;
  border-bottom: 1px solid #e5e9ed;
  white-space: nowrap;
}

.accounting-allocation-panel th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef2f5;
}

.accounting-allocation-panel th:first-child,
.accounting-allocation-panel td:first-child {
  width: 50px;
  text-align: center;
}

.accounting-allocation-panel td input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  box-shadow: none;
}

.accounting-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 126px;
}

@media (max-width: 760px) {
  .accounting-workspace { padding: 4px; }
  .accounting-toolbar .table-search { width: calc(100vw - 155px); }
  .accounting-mode kbd,
  [data-accounting-help] { display: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 90ms ease-out both weberp-page-out; }
::view-transition-new(root) { animation: 130ms ease-out both weberp-page-in; }
@keyframes weberp-page-out { to { opacity: .96; } }
@keyframes weberp-page-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.weberp-date-input { cursor: pointer; font-variant-numeric: tabular-nums; }
.weberp-date-picker { position: fixed; z-index: 130; padding: 8px; color: var(--ink); border: 1px solid #bcc5d0; background: #fff; box-shadow: 0 12px 30px rgba(17, 27, 40, .2); font-size: 11px; }
.weberp-date-picker[hidden] { display: none; }
.weberp-date-picker[popover] { margin: 0; right: auto; bottom: auto; }
.weberp-date-picker-header { height: 32px; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; }
.weberp-date-picker-header strong { text-align: center; font-size: 12px; }
.weberp-date-picker-header button, .weberp-date-picker-footer button { height: 28px; padding: 0 8px; color: var(--ink); border: 0; background: transparent; cursor: pointer; }
.weberp-date-picker-header button { display: grid; place-items: center; }
.weberp-date-picker-header button .ui-icon { --ui-icon-size: 16px; }
.weberp-date-picker-header button:hover, .weberp-date-picker-footer button:hover { color: var(--accent); background: var(--accent-soft); }
.weberp-date-picker-weekdays, .weberp-date-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.weberp-date-picker-weekdays span { height: 25px; display: grid; place-items: center; color: var(--muted); font-size: 9px; }
.weberp-date-picker-days button { aspect-ratio: 1; min-width: 0; padding: 0; color: var(--ink); border: 0; background: transparent; cursor: pointer; font-size: 10px; }
.weberp-date-picker-days button:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.weberp-date-picker-days button.today { box-shadow: inset 0 0 0 1px #9caed8; }
.weberp-date-picker-days button.selected { color: #fff; background: var(--accent); font-weight: 700; }
.weberp-date-picker-days button:disabled { cursor: default; }
.weberp-date-picker-footer { display: flex; justify-content: flex-end; gap: 4px; margin-top: 5px; padding-top: 6px; border-top: 1px solid var(--line); }

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.ui-icon {
  width: var(--ui-icon-size, 16px);
  height: var(--ui-icon-size, 16px);
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button > .ui-icon, button > .ui-icon { pointer-events: none; }
.icon-button > .ui-icon { --ui-icon-size: 18px; }
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; display: flex; flex-direction: column;
  color: #eef2f7; background: var(--sidebar); border-right: 1px solid #263241; transition: width .2s ease, transform .2s ease;
}
.brand-row { height: 68px; position: relative; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid #2b3643; }
.brand { min-width: 0; display: flex; flex: 1; align-items: center; gap: 11px; }
.brand-lockup { display: inline-flex; align-items: center; }
.brand-wordmark { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand-wordmark > span { color: #909cab; font-size: 11px; font-weight: 520; letter-spacing: .12em; }
.brand-wordmark strong { padding-left: 8px; color: #f2f5f8; border-left: 1px solid #596574; font-size: 11px; font-weight: 720; letter-spacing: .12em; }
.brand-copy, .workspace-copy { min-width: 0; display: flex; flex-direction: column; }
.brand-copy strong { letter-spacing: .05em; }
.brand-copy small, .workspace-copy small { margin-top: 2px; color: var(--sidebar-muted); font-size: 11px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.sidebar .icon-button { color: #bac3ce; border-color: #3a4655; }
.sidebar-collapse { position: absolute; top: 17px; right: -15px; z-index: 2; width: 30px; background: var(--sidebar); box-shadow: 0 2px 6px rgba(10, 16, 24, .2); }
.sidebar-collapse .ui-icon { --ui-icon-size: 18px; }
.mobile-sidebar-close { display: none; }
.nav-scroll { flex: 1; overflow: auto; padding: 14px 10px; }
.nav-label { margin: 16px 10px 6px; color: #718092; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { min-height: 40px; display: flex; align-items: center; gap: 11px; margin-bottom: 3px; padding: 0 10px; color: #c5ced9; border-radius: 7px; }
.nav-item:hover { color: #fff; background: #222f3e; }
.nav-item.active { color: #fff; background: #2d3b4d; box-shadow: inset 3px 0 var(--accent); }
.nav-icon { width: 20px; display: grid; flex: 0 0 auto; place-items: center; }
.nav-icon .ui-icon { --ui-icon-size: 18px; stroke-width: 1.8; }
.nav-text { flex: 1; white-space: nowrap; }
.nav-key, .nav-count { color: #8794a5; font-size: 10px; }
.nav-count { min-width: 20px; padding: 2px 6px; color: #dbe5ff; background: #365897; border-radius: 10px; text-align: center; }
.nav-count.muted { color: #bec8d4; background: #354252; }
.sidebar-footer { position: relative; display: flex; align-items: center; gap: 3px; padding: 12px; border-top: 1px solid #2b3643; }
.workspace-card { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px; color: #fff; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.workspace-card:hover { background: #222f3e; }
.avatar { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #dbe5ff; background: #304d85; font-size: 11px; font-weight: 700; }
.workspace-copy { flex: 1; overflow: hidden; }
.workspace-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-more { color: #7f8b9a; }
.workspace-more .ui-icon { --ui-icon-size: 16px; }
.workspace-logout-form { flex: 0 0 auto; }
.workspace-logout { width: 30px; height: 34px; display: grid; place-items: center; padding: 0; color: #94a0af; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 15px; }
.workspace-logout .ui-icon { --ui-icon-size: 17px; }
.workspace-logout:hover, .workspace-logout:focus-visible { color: #fff; outline: 0; background: #2b3746; }

.main-area { min-height: 100vh; margin-left: 248px; transition: margin-left .2s ease; }
.topbar { height: var(--topbar-height); position: sticky; top: 0; z-index: 20; display: flex; align-items: stretch; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid #cfd6df; background: #eef1f5; }
.topbar-leading { min-width: 0; display: flex; flex: 1 1 auto; align-items: stretch; gap: 8px; }
.taskbar-preloading .topbar-leading > div:not(.topbar-task-tabs) { visibility: hidden; }
.data-table-preloading [data-data-table] { visibility: hidden; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding-left: 10px; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: 10px; }
.topbar-title { font-size: 14px; }
.topbar-task-tabs { min-width: 0; display: flex; flex: 1 1 auto; align-items: flex-end; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.topbar-task-tabs::-webkit-scrollbar { width: 0; height: 0; display: none; }
.topbar-task-tab { min-width: 112px; max-width: 190px; height: 36px; position: relative; display: flex; flex: 0 0 auto; align-items: center; border: 1px solid #d2d8e0; border-bottom: 0; background: #e3e7ec; cursor: grab; transition: border-color .12s ease, background-color .12s ease; }
.topbar-task-tab::before { width: 7px; height: 15px; flex: 0 0 auto; margin-left: 5px; content: ""; opacity: 0; background: radial-gradient(circle, #66758a 1px, transparent 1.5px) 0 0 / 4px 5px; transition: opacity .12s ease; }
.topbar-task-tab:hover:not(.dragging) { border-color: #9baed9; background: #edf2ff; }
.topbar-task-tab:hover::before, .topbar-task-tab.dragging::before { opacity: .8; }
.topbar-task-tab.active { border-color: #bfc8d4; background: #fff; box-shadow: inset 0 2px 0 var(--accent); }
.topbar-task-tab.active:hover:not(.dragging) { border-color: #8499d3; background: #f7f9ff; }
.topbar-task-tab.dragging { opacity: .22; border-color: #8499d3; cursor: grabbing; box-shadow: inset 0 2px 0 var(--accent); }
.topbar-task-drag-preview { position: fixed; z-index: 100; margin: 0; opacity: .96; border-color: #6f88c6; background: #fff; pointer-events: none; cursor: grabbing; box-shadow: 0 8px 20px rgba(30, 45, 68, .22), inset 0 2px 0 var(--accent); transition: none; }
.topbar-task-drag-preview::before { opacity: .8; }
.topbar-task-tab a { min-width: 0; display: block; flex: 1 1 auto; overflow: hidden; padding: 0 6px; cursor: grab; font-size: 10px; font-weight: 600; line-height: 35px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-task-tabs.is-dragging .topbar-task-tab a { pointer-events: none; cursor: grabbing; }
body.taskbar-reordering, body.taskbar-reordering * { cursor: grabbing !important; user-select: none !important; }
.topbar-task-tab button { width: 25px; height: 100%; flex: 0 0 auto; display: grid; place-items: center; padding: 0; color: #7a8594; border: 0; background: transparent; cursor: pointer; font-size: 15px; }
.topbar-task-tab button .ui-icon { --ui-icon-size: 14px; display: block; }
.topbar-task-tab button:hover, .topbar-task-tab button:focus-visible { color: #9a403a; outline: 0; background: #f4dedd; }
.topbar-task-context-menu { min-width: 174px; position: fixed; z-index: 120; overflow: hidden; padding: 3px; border: 1px solid #c7cfd9; border-radius: 5px; background: #fff; box-shadow: 0 7px 20px rgba(30, 42, 59, .18); }
.topbar-task-context-menu[hidden] { display: none; }
.topbar-task-context-menu button { width: 100%; height: 28px; display: block; padding: 0 9px; color: #263244; border: 0; border-radius: 3px; background: transparent; cursor: pointer; font-family: inherit; font-size: 11px; text-align: left; }
.topbar-task-context-menu button:hover, .topbar-task-context-menu button:focus-visible { outline: 0; background: #edf2ff; }
.topbar-task-context-menu button:disabled { color: #a1a9b4; background: transparent; cursor: default; }
.search-trigger { width: 250px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; cursor: pointer; text-align: left; }
.search-trigger > .ui-icon, .table-search > .ui-icon { --ui-icon-size: 16px; }
.search-trigger span:nth-child(2) { flex: 1; }
kbd { min-width: 22px; display: inline-grid; place-items: center; padding: 2px 5px; color: #647084; border: 1px solid #d5dae1; border-bottom-width: 2px; border-radius: 5px; background: #fff; font-family: inherit; font-size: 10px; white-space: nowrap; }
.mobile-menu { display: none; }

.content { width: 100%; max-width: none; margin: 0; padding: 14px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.breadcrumb { margin: 0 0 10px; color: #8390a1; font-size: 11px; }
.page-heading h1 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.03em; }
.page-heading p:last-child { margin: 0; color: var(--muted); }
.primary-button, .secondary-button { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid #274ebf; border-radius: 7px; color: #fff; background: var(--accent); cursor: pointer; font-weight: 600; }
.primary-button > .ui-icon, .secondary-button > .ui-icon { --ui-icon-size: 16px; }
.secondary-button { width: 100%; color: var(--ink); border-color: var(--line); background: #fff; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(20, 30, 45, .03); }
.metric-card { min-height: 144px; padding: 18px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-weight: 600; }
.metric-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--accent); border: 1px solid #cad6f7; border-radius: 7px; background: var(--accent-soft); }
.metric-icon.warning { color: #9a6417; border-color: #ebd5b0; background: #fff8e8; }
.metric-card > strong { display: block; margin: 15px 0 7px; font-size: 26px; letter-spacing: -.03em; }
.metric-card > strong small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.metric-card p { margin: 0; color: #8791a0; font-size: 11px; }
.trend { color: var(--success); font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: 14px; margin-top: 14px; }
.panel { padding: 18px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-header h2 { margin: 0 0 4px; font-size: 15px; }
.panel-header p { margin: 0; color: var(--muted); font-size: 11px; }
.text-button { padding: 3px; color: var(--accent); border: 0; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.quick-grid a { min-height: 64px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.quick-grid a:hover { border-color: #aebee9; background: #f9faff; }
.quick-grid a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.quick-grid small { margin-top: 3px; color: var(--muted); }
.quick-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); border-radius: 7px; background: var(--accent-soft); font-weight: 700; }
.status-list > div { display: flex; justify-content: space-between; margin: 11px 0 5px; font-size: 11px; }
progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 4px; appearance: none; }
progress::-webkit-progress-bar { background: #edf0f3; }
progress::-webkit-progress-value { background: #748bbd; border-radius: 4px; }
.system-state { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 12px; border: 1px dashed #b9c5be; border-radius: 8px; background: #f7fbf8; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #d9eee6; }
.system-state > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 11px; }
.system-state small { margin-top: 2px; color: var(--muted); }
.system-state a { color: var(--success); font-size: 10px; font-weight: 700; }
.activity-panel { min-width: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 9px 10px; color: #7b8796; border-right: 1px solid #d5dbe3; border-bottom: 1px solid #cfd6df; background: #f8f9fa; font-size: 10px; text-align: left; }
td { padding: 12px 10px; border-right: 1px solid #e0e5eb; border-bottom: 1px solid #dde3e9; font-size: 11px; }
th:last-child, td:last-child { border-right: 0; }
td:first-child { display: table-cell; }
td:first-child small { display: block; margin-top: 3px; color: var(--muted); }
.status-chip { display: inline-flex; padding: 4px 7px; border-radius: 10px; font-size: 10px; }
.status-chip.draft { color: #76571c; background: #fff5d9; }
.status-chip.ready { color: #31549f; background: #eaf0ff; }
.status-chip.done { color: #176a4d; background: #e3f4ec; }
.shortcut-panel ul { margin: 0 0 16px; padding: 0; list-style: none; }
.shortcut-panel li { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f2; color: var(--muted); font-size: 11px; }

.module-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.module-metric { min-height: 102px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.module-metric > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.module-metric > strong { margin: 9px 0 5px; font-size: 22px; letter-spacing: -.02em; }
.module-metric > small { color: #8791a0; }
.module-list-panel { padding: 0; overflow: hidden; }
.list-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 4px; }
.filter-tabs button { height: 32px; padding: 0 11px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 11px; }
.filter-tabs button.active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.list-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.table-search { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.table-search input { width: 150px; border: 0; outline: 0; }
.table-search kbd { flex: 0 0 auto; }
.secondary-compact { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; font-size: 11px; }
.secondary-compact .ui-icon { --ui-icon-size: 14px; }
.module-table th:first-child, .module-table td:first-child { padding-left: 18px; }
.module-table .module-row-action-column { width: 42px; padding-right: 14px; }
.module-table td:first-child { display: table-cell; }
.module-table th, .module-table td { vertical-align: middle; }
.data-table-shell { position: relative; min-height: 0; }
.data-table-fill { display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; }
.data-table-fill > .data-table-scroll { flex:1; min-height:0; overflow:auto; }
.mcp-table-scroll > table { width:100%; text-align:left; }
.data-table-scroll { overflow-x: auto; padding-bottom: 18px; }
/* Inactive master records remain readable and selectable, but recede visually. */
.data-table tbody tr[data-active-rank="2"]:not(.selected):not([aria-selected="true"]) > td:not([data-active-cell]) {
  color: #667080;
  background-color: #f4f5f7;
}
.data-table tbody tr[data-active-rank="2"] :is(strong, a) { color: inherit; }
.data-table tbody tr[data-active-rank="2"] .status-chip {
  color: #596273;
  background: #e5e8ed;
  border-color: #d0d5de;
}
.data-table tbody tr[data-active-rank="0"]:is([data-employee-row], [data-partner-row], [data-storage-row]) .status-chip {
  color: #17634b;
  background: #e7f3ed;
}
.data-table td[data-active-cell="true"] { background-color: #edf7f1; }
.data-table td[data-active-cell="false"] { background-color: #e5e8ed; color: #596273; }
.data-table td[data-active-cell="false"] input { accent-color: #788393; }
.platform-table tr[data-inactive="true"] > td,
.mcp-page tr[data-inactive="true"] > td { color: #667080; background: #f4f5f7; }
.mcp-page tr[data-inactive="false"] > td[data-active-cell] { color: #17634b; background: #edf7f1; }
/* Stick the whole header group: resize handles may position individual th cells,
   and multi-row headers must move together. Keep column controls above it. */
table > thead { position: sticky; top: 0; z-index: 3; background: #f8f9fa; box-shadow: 0 1px 0 #cfd6df; }
/* Content-height tables need a bounded scrollport too; overflow-x alone traps
   sticky positioning in an ancestor that never scrolls vertically. */
.data-table-scroll:has(> .settings-table),
.permission-table-wrap,
.platform-table-wrap,
.mcp-table-scroll,
.markdown-table-wrap { max-height: 60dvh; overflow: auto; }
@media print {
  table > thead { position: static; box-shadow: none; }
  .data-table-scroll, .permission-table-wrap, .platform-table-wrap,
  .mcp-table-scroll, .markdown-table-wrap { max-height: none; overflow: visible; }
}
.data-table-edit-mode { position: absolute; right: 34px; bottom: 7px; z-index: 5; padding: 3px 6px; color: #596579; border: 1px solid rgba(112, 126, 148, .28); background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(23, 35, 53, .08); pointer-events: none; font-size: 8px; font-weight: 700; line-height: 1; }
.data-table-edit-mode[hidden] { display: none; }
.data-table-edit-mode.active { color: #174ea6; border-color: #8eade0; background: #edf4ff; }
.data-table tbody td.data-table-active-cell { position: relative; }
.data-table-grid-editing tbody tr[data-data-table-readonly="true"] td { cursor: default; }
.data-table tbody td:focus { outline: none; }
.data-table tbody tr > td.data-table-focused-cell {
  outline: 2px solid #2563c7; outline-offset: -2px;
  box-shadow: inset 0 0 0 9999px rgba(37, 99, 199, .09);
}
@media (forced-colors: active) {
  .data-table tbody tr > td.data-table-focused-cell { outline-color: Highlight; }
}
@media print {
  .data-table tbody tr > td.data-table-focused-cell { outline: none; box-shadow: none; }
}
.data-table tbody tr.data-table-focused-row { outline:1px solid #9cb6ea; outline-offset:-1px; }
.data-table tbody tr.data-table-focused-row > td { background-image:linear-gradient(rgba(49,85,216,.12),rgba(49,85,216,.12)); }
.data-table tbody tr.selected > td { background-image:linear-gradient(rgba(49,85,216,.12),rgba(49,85,216,.12)); }
@media print {
  .data-table tbody tr.data-table-focused-row { outline: none; }
  .data-table tbody tr.data-table-focused-row > td { background-image: none; }
}
.data-table tbody td:focus-visible { z-index: 1; }
.data-table-filter-button { position: absolute; top: 1px; right: 8px; z-index: 4; width: 22px; height: 26px; padding: 0; color: #687486; border: 0; outline: 0; background: transparent; cursor: pointer; }
.data-table-filter-button { display: grid; place-items: center; }
.data-table-filter-button .ui-icon { --ui-icon-size: 14px; }
.data-table-filter-button:hover, .data-table-filter-button[aria-expanded="true"] { color: var(--accent); }
.data-table-filter-button:focus-visible { outline: 2px solid #9dadd1; outline-offset: 1px; }
.data-table-filter-popover { position: fixed; z-index: 85; width: 210px; padding: 7px; border: 1px solid #cbd1d9; border-radius: 8px; background: #fff; box-shadow: 0 10px 26px rgba(17, 27, 40, .18); }
.data-table-filter-popover[hidden] { display: none; }
.data-table-filter-heading { min-height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 5px 6px; border-bottom: 1px solid var(--line); }
.data-table-filter-heading > div { display: flex; flex-direction: column; gap: 2px; }
.data-table-filter-heading strong { font-size: 10px; }
.data-table-filter-heading small { color: var(--muted); font-size: 8px; }
.data-table-filter-heading button { padding: 3px 4px; color: var(--accent); border: 0; background: transparent; cursor: pointer; font-size: 9px; }
.data-table-filter-options { max-height: 286px; overflow-y: auto; padding-top: 4px; }
.data-table-filter-options label { min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 6px; border-radius: 5px; cursor: pointer; font-size: 10px; }
.data-table-filter-options label:hover { background: var(--soft); }
.data-table-filter-options input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.data-table-filter-options input:disabled { cursor: not-allowed; opacity: .55; }
.data-table tbody tr.data-table-search-excluded { display: none !important; }
.data-table-search-window { position: fixed; z-index: 90; width: min(310px, calc(100vw - 16px)); padding: 12px; border: 1px solid #bac5d6; border-radius: 9px; background: #fff; box-shadow: 0 10px 30px rgba(17, 27, 40, .2); color: var(--ink); }
.data-table-search-window[hidden] { display: none; }
.data-table-search-title { display: flex; align-items: center; justify-content: space-between; margin: -12px -12px 10px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--line); cursor: move; touch-action: none; user-select: none; font-size: 13px; }
.data-table-search-title button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 21px; line-height: 1; }
.data-table-search-field { display: grid; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.data-table-search-field :is(select,input) { width: 100%; min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.data-table-search-window small { display: block; min-height: 17px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.data-table-column-hidden { display: none !important; }
.accounting-table tr.receivable-day-total td { background:#fff7ed; color:#b45309; font-weight:600; border-top-color:#fed7aa; }
.accounting-table tr.receivable-month-total td { background:#eef2ff; color:#244ac6; font-weight:700; border-top-color:#c7d2fe; }
.accounting-table tbody tr.receivable-month-total:last-child > td { position:sticky; bottom:0; z-index:2; box-shadow:0 -1px 0 #c7d2fe; }
dialog.inventory-search-picker.inventory-stock-picker { width: min(840px, calc(100vw - 28px)); }
dialog.inventory-search-picker.inventory-shipment-item-picker { width: min(1280px, calc(100vw - 24px)); max-height: min(690px, calc(100dvh - 24px)); }
dialog.inventory-shipment-item-picker.inventory-picker-peeking { visibility: hidden !important; pointer-events: none !important; }
.shipment-picker-peek { margin-left: auto; width: auto; min-width: 86px; padding: 6px 10px; border: 1px solid #c7ced8; border-radius: 5px; background: #fff; color: #334155; font-size: 12px; cursor: pointer; }
.shipment-picker-peek:is(:hover,:focus-visible) { background: #eef3ff; color: #244ac6; }
.shipment-picker-stock-filter { align-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; white-space: nowrap; font-size: 12px; }
.shipment-picker-stock-filter input { width: 16px; height: 16px; margin: 0; accent-color: #3155d8; }
.inventory-search-picker .inventory-shipment-item-results { max-height: none; overflow: visible; border: 0; }
.inventory-shipment-item-results .data-table-scroll { max-height: min(48dvh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.inventory-shipment-item-results .data-table { min-width: 1120px; width: 100%; }
dialog.inventory-shipment-return-item-picker { width: min(1500px, calc(100vw - 20px)); }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table { min-width: 0; width: 100%; table-layout: fixed; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td) { padding: 6px 5px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(1) { width: 8%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(2) { width: 13%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(3) { width: 6%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(4) { width: 4%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(5) { width: 6%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(6) { width: 17%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(7) { width: 10%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(8) { width: 8%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(9) { width: 6%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(10) { width: 5%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(11) { width: 8%; }
.inventory-shipment-return-item-picker .inventory-shipment-item-results .data-table :is(th,td):nth-child(12) { width: 9%; }
.inventory-shipment-item-results .data-table th { position: sticky; top: 0; z-index: 1; background: #f4f6f9; }
.inventory-shipment-item-results .data-table :is(th,td) { padding: 7px 8px; font-size: 12px; white-space: nowrap; }
.inventory-shipment-item-results .data-table td { text-align: left; }
.inventory-shipment-item-results .data-table td select { width: 100%; min-width: 72px; padding: 3px 6px; border: 1px solid #c7ced8; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.shipment-quantity-editor { display: grid; gap: 3px; }
.shipment-quantity-editor small { color: #244ac6; font-size: 10px; white-space: nowrap; }
.inventory-shipment-item-results .data-table tbody tr { cursor: pointer; }
.inventory-shipment-item-results .data-table tbody tr:is(:hover,:focus-visible,.active) { background: #e8efff; outline: 0; }
.inventory-shipment-item-results .data-table td.inventory-picker-reserved { color: #b42318; font-weight: 600; }
.inventory-shipment-item-results .data-table td.inventory-picker-available { color: #244ac6; font-weight: 600; }
dialog.inventory-search-picker.inventory-shipment-history-picker { position: fixed; z-index: 3200; isolation: isolate; width: min(820px, calc(100vw - 24px)); max-height: min(570px, calc(100dvh - 24px)); }
.inventory-search-picker .inventory-shipment-history-results { max-height: none; overflow: visible; border: 0; }
.inventory-shipment-history-results .data-table-scroll { max-height: min(40dvh, 340px); overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.inventory-shipment-history-results .data-table { width: 100%; min-width: 610px; }
.inventory-shipment-history-results .data-table th { position: sticky; top: 0; z-index: 1; background: #f4f6f9; }
.inventory-shipment-history-results .data-table :is(th,td) { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.inventory-shipment-history-results .data-table td { text-align: left; }
.inventory-shipment-history-results .data-table tbody tr { cursor: pointer; }
.inventory-shipment-history-results .data-table tbody tr:is(:hover,:focus-visible,.active) { background: #e8efff; outline: 0; }
.shipment-price-history-tabs { margin: 0 0 8px; }
.shipment-grade-price-note { margin: 0 0 8px; color: #526174; font-size: 12px; line-height: 1.45; }
dialog.inventory-search-picker.inventory-tabular-lot-picker { width: min(860px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 24px)); }
.inventory-tabular-lot-picker .form-dialog-header { min-height: 46px; }
.inventory-tabular-lot-picker .form-dialog-footer { min-height: 44px; padding-block: 6px; }
.inventory-tabular-lot-picker .inventory-search-picker-body { padding: 10px 12px; }
.inventory-tabular-lot-picker .inventory-search-picker-context { margin-bottom: 6px; }
.inventory-tabular-lot-picker .inventory-search-picker-body > input { height: 30px; padding-block: 5px; }
.inventory-tabular-lot-picker .inventory-item-picker-results { margin-top: 8px; }
.inventory-tabular-lot-results .data-table { width: 100%; min-width: 760px; table-layout: fixed; }
.inventory-search-picker .inventory-tabular-lot-results { max-height: none; overflow: visible; border: 0; }
.inventory-tabular-lot-results .data-table-scroll { max-height: min(32dvh, 280px); overflow: auto; padding-bottom: 0; border: 1px solid var(--line); border-radius: 6px; }
.inventory-tabular-lot-results .data-table th { position: sticky; top: 0; z-index: 1; background: #f4f6f9; }
.inventory-tabular-lot-results .data-table :is(th,td) { padding: 7px 8px; font-size: 12px; }
.inventory-tabular-lot-results .data-table th { text-align: center; font-size: 11px; }
.inventory-tabular-lot-results .data-table td { text-align: left; }
.inventory-tabular-lot-results .data-table :is(th,td):nth-child(1) { width: 14%; }
.inventory-tabular-lot-results .data-table :is(th,td):nth-child(2) { width: 22%; }
.inventory-tabular-lot-results .data-table :is(th,td):nth-child(3) { width: 17%; }
.inventory-tabular-lot-results .data-table :is(th,td):nth-child(4) { width: 12%; }
.inventory-tabular-lot-results .data-table :is(th,td):nth-child(5) { width: 10%; }
.inventory-tabular-lot-results .data-table :is(th,td):nth-child(6) { width: 8%; }
.inventory-tabular-lot-results .data-table :is(th,td):nth-child(7) { width: 17%; }
.inventory-tabular-lot-results .data-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-tabular-lot-results .data-table tbody tr { cursor: pointer; }
.inventory-tabular-lot-results .data-table tbody tr:is(:hover,:focus-visible) { background: #eef3ff; outline: 0; }
.inventory-tabular-lot-results .data-table tbody tr.active { background: #e8efff; }
.inventory-tabular-lot-results .inventory-shipment-lot-table tbody tr.lot-previously-shipped { color: #9f1239; background: #fff1f2; }
.inventory-tabular-lot-results .inventory-shipment-lot-table tbody tr.lot-previously-shipped:is(:hover,:focus-visible,.active) { background: #ffe4e6; }
.inventory-tabular-lot-results .data-table td:nth-child(4),.inventory-tabular-lot-results .data-table td:nth-child(5),.inventory-tabular-lot-results .data-table td:nth-child(7) { font-variant-numeric: tabular-nums; font-weight: 600; }
.inventory-tabular-lot-results .inventory-shipment-lot-table :is(th,td):nth-child(1) { width: 24%; }
.inventory-tabular-lot-results .inventory-shipment-lot-table :is(th,td):nth-child(2) { width: 10%; }
.inventory-tabular-lot-results .inventory-shipment-lot-table :is(th,td):nth-child(3) { width: 17%; }
.inventory-tabular-lot-results .inventory-shipment-lot-table :is(th,td):nth-child(4),.inventory-tabular-lot-results .inventory-shipment-lot-table :is(th,td):nth-child(5),.inventory-tabular-lot-results .inventory-shipment-lot-table :is(th,td):nth-child(6) { width: 13%; }
.inventory-tabular-lot-results .inventory-shipment-lot-table :is(th,td):nth-child(7) { width: 10%; }
.inventory-tabular-lot-results .inventory-shipment-lot-table td:nth-child(n+4):nth-child(-n+6) { font-variant-numeric: tabular-nums; font-weight: 600; }
@media(max-width:640px){
 dialog.inventory-search-picker.inventory-tabular-lot-picker { width: calc(100vw - 16px); }
 .inventory-tabular-lot-picker .inventory-search-picker-body { padding: 8px; }
 .inventory-tabular-lot-results .data-table-scroll { max-height: min(30dvh, 230px); }
}
.inventory-search-picker .inventory-item-picker-results button.inventory-stock-picker-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(340px,1.35fr); gap: 8px; padding: 6px 10px; min-height: 38px; }
.inventory-stock-picker .stock-picker-metrics { display: grid; grid-template-columns: repeat(var(--stock-picker-metric-count,4),minmax(0,1fr)); gap: 8px; }
.stock-picker-metrics > span { display: grid; gap: 1px; line-height: 1.3; text-align: right; font-variant-numeric: tabular-nums; }
.stock-picker-metrics small,.stock-picker-history-badge { font-size: 10px; color: var(--muted); }
.stock-picker-metrics strong { font-size: 12px; font-weight: 600; }
@media(max-width:640px){
 .inventory-search-picker .inventory-item-picker-results button.inventory-stock-picker-row { grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; }
 .inventory-stock-picker .stock-picker-metrics { grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px 12px; }
 .stock-picker-metrics > span { display:flex; justify-content:space-between; gap:4px; }
}
.shipment-item-stock-available strong { color: var(--accent); }
.inventory-search-picker .inventory-item-picker-results button.lot-previously-shipped,
.receipt-item-suggestions button.lot-previously-shipped { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.receipt-item-suggestions button.lot-previously-shipped small { color: #9f1239; }
.inventory-search-picker .inventory-item-picker-results button.lot-previously-shipped:is(:hover,.active,:focus-visible),
.receipt-item-suggestions button.lot-previously-shipped:is(:hover,.active) { background: #ffe4e6; color: #9f1239; }
.data-table-compact th { height: 28px; padding-top: 5px; padding-bottom: 5px; font-size: 9px; }
.data-table-compact td { height: 31px; padding-top: 3px; padding-bottom: 3px; font-size: 10px; line-height: 1.15; }
.data-table-compact .status-chip { padding: 3px 6px; font-size: 8px; }
.data-table-compact .row-action { width: 24px; height: 24px; }
.row-action { width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.row-action .ui-icon { --ui-icon-size: 16px; }
.row-action:hover { background: var(--soft); }
.status-chip.warning { color: #a03932; background: #fdebea; }
.module-table[data-employee-table] { min-width: 1660px; table-layout: fixed; }
.module-table[data-employee-table] th:nth-child(1) { width: 86px; }
.module-table[data-employee-table] th:nth-child(2) { width: 100px; }
.module-table[data-employee-table] th:nth-child(3) { width: 170px; }
.module-table[data-employee-table] th:nth-child(4) { width: 112px; }
.module-table[data-employee-table] th:nth-child(5) { width: 240px; }
.module-table[data-employee-table] th:nth-child(6) { width: 90px; }
.module-table[data-employee-table] th:nth-child(7) { width: 78px; }
.module-table[data-employee-table] th:nth-child(8) { width: 90px; }
.module-table[data-employee-table] th:nth-child(9), .module-table[data-employee-table] th:nth-child(10) { width: 96px; }
.module-table[data-employee-table] th:nth-child(11), .module-table[data-employee-table] th:nth-child(13) { width: 62px; }
.module-table[data-employee-table] th:nth-child(12), .module-table[data-employee-table] th:nth-child(14) { width: 72px; }
.module-table[data-employee-table] th:nth-child(15) { width: 86px; }
.module-table[data-employee-table] th:nth-child(16) { width: 54px; }
.employee-edit-row { background: #f7f9ff; }
.employee-edit-row td { padding-top: 8px; padding-bottom: 8px; vertical-align: middle; }
.employee-edit-row input, .employee-edit-row select { width: 100%; min-width: 100px; height: 33px; padding: 0 8px; color: var(--ink); border: 1px solid #cfd5dd; border-radius: 6px; outline: 0; background: #fff; font-size: 10px; }
.module-table[data-employee-table] .employee-edit-row input, .module-table[data-employee-table] .employee-edit-row select { min-width: 0; }
.module-table[data-partner-table] .employee-edit-row input, .module-table[data-partner-table] .employee-edit-row select { min-width: 0; }
.module-table[data-partner-table] { min-width: 2600px; table-layout: fixed; }
.module-table[data-partner-table] td { overflow: hidden; text-overflow: ellipsis; }
.module-table[data-partner-table] th:nth-child(1) { width: 135px; }
.module-table[data-partner-table] th:nth-child(2) { width: 112px; }
.module-table[data-partner-table] th:nth-child(5) { width: 230px; }
.module-table[data-partner-table] th:nth-child(6), .module-table[data-partner-table] th:nth-child(8), .module-table[data-partner-table] th:nth-child(9), .module-table[data-partner-table] th:nth-child(10) { width: 90px; }
.module-table[data-partner-table] th:nth-child(7), .module-table[data-partner-table] th:nth-child(18), .module-table[data-partner-table] th:nth-child(21) { width: 110px; }
.module-table[data-partner-table] th:nth-child(3), .module-table[data-partner-table] th:nth-child(4) { width: 110px; }
.module-table[data-partner-table] th:nth-child(11) { width: 105px; }
.module-table[data-partner-table] th:nth-child(12) { width: 80px; }
.module-table[data-partner-table] th:nth-child(13), .module-table[data-partner-table] th:nth-child(16), .module-table[data-partner-table] th:nth-child(17), .module-table[data-partner-table] th:nth-child(19), .module-table[data-partner-table] th:nth-child(20) { width: 100px; }
.module-table[data-partner-table] th:nth-child(14) { width: 185px; }
.module-table[data-partner-table] th:nth-child(15) { width: 135px; }
.module-table[data-partner-table] th:nth-child(22) { width: 160px; }
.module-table[data-partner-table] th:nth-child(23) { width: 82px; }
body.module-page.partner-page .content { max-width: none; margin: 0; padding: 0; }
.partner-page .module-list-panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
.partner-page .list-toolbar { min-height: 48px; padding: 6px 12px; }
.partner-page .partner-name-filter { flex: 0 0 auto; }
.partner-page .partner-name-filter input { width: 190px; }
.partner-page .table-search { border-radius: 0; }
.partner-page .employee-table-summary { min-height: 34px; }
.partner-page .data-table-scroll { padding-inline: 8px; }
.partner-page .module-table th:first-child, .partner-page .module-table td:first-child { padding-left: 10px; }
body.employee-page .main-area > .content { max-width: none; margin: 0; padding: 0; }
.employee-page .module-list-panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
.employee-page .list-toolbar { min-height: 48px; padding: 6px 12px; }
.employee-page .employee-name-filter { flex: 0 0 auto; border-radius: 0; }
.employee-page .employee-name-filter input { width: 190px; }
.employee-page .employee-table-summary { min-height: 34px; }
.employee-page .data-table-scroll { padding-inline: 8px; }
.employee-page .module-table th:first-child, .employee-page .module-table td:first-child { padding-left: 10px; }
body.storage-page .main-area > .content { max-width: none; margin: 0; padding: 0; }
.storage-page .module-list-panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
.storage-page .list-toolbar { min-height: 48px; padding: 6px 12px; }
.storage-page .storage-name-filter { flex: 0 0 auto; }
.storage-page .storage-name-filter input { width: 190px; }
.storage-page .list-actions { gap: 8px; }
.storage-page .storage-toolbar-primary-button { height: 34px; padding: 0 11px; border-radius: 0; font-size: 10px; }
.storage-page .table-search { border-radius: 0; }
.storage-page .employee-table-summary { min-height: 34px; }
.storage-page .data-table-scroll { padding-inline: 8px; }
.storage-page .module-table th:first-child, .storage-page .module-table td:first-child { padding-left: 10px; }
body.account-page .main-area > .content { max-width: none; margin: 0; padding: 0; }
.account-page .module-list-panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
.account-page .list-toolbar { min-height: 48px; padding: 6px 12px; }
.account-page .account-name-filter { flex: 0 0 auto; border-radius: 0; }
.account-page .account-name-filter input { width: 230px; }
.account-page .employee-table-summary { min-height: 34px; }
.account-page .data-table-scroll { padding-inline: 8px; }
.account-page .module-table th:first-child, .account-page .module-table td:first-child { padding-left: 10px; }
.module-table[data-item-table] { min-width: 2440px; table-layout: fixed; }
.module-table[data-item-table] th[data-storage-column="번호"] { width: 52px; min-width: 46px; }
.module-table[data-item-table] td { overflow: hidden; text-overflow: ellipsis; }
.module-table[data-item-table] th:nth-child(1) { width: 170px; }
.module-table[data-item-table] th:nth-child(2) { width: 130px; }
.module-table[data-item-table] th:nth-child(3), .module-table[data-item-table] th:nth-child(4), .module-table[data-item-table] th:nth-child(5), .module-table[data-item-table] th:nth-child(6), .module-table[data-item-table] th:nth-child(7), .module-table[data-item-table] th:nth-child(12) { width: 78px; }
.module-table[data-item-table] th:nth-child(8), .module-table[data-item-table] th:nth-child(9), .module-table[data-item-table] th:nth-child(10) { width: 120px; }
.module-table[data-item-table] th:nth-child(11) { width: 92px; }
.module-table[data-item-table] th:nth-child(13), .module-table[data-item-table] th:nth-child(14), .module-table[data-item-table] th:nth-child(15) { width: 56px; text-align: center; }
.module-table[data-item-table] th:nth-child(16) { width: 210px; }
.module-table[data-item-table] th:nth-child(17), .module-table[data-item-table] th:nth-child(19) { width: 62px; }
.module-table[data-item-table] th:nth-child(18), .module-table[data-item-table] th:nth-child(20) { width: 72px; }
.module-table[data-item-table] th:nth-child(21) { width: 82px; }
.module-table[data-item-table] .item-boolean-cell { padding-right: 4px; padding-left: 4px; text-align: center; }
.module-table[data-item-table] .item-boolean-cell input[type="checkbox"] { width: 14px; min-width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--accent); vertical-align: middle; }
.module-table[data-item-table] .item-boolean-cell input[type="checkbox"]:disabled { opacity: 1; }
.item-photo-cell { padding-top: 2px !important; padding-bottom: 2px !important; text-align: center; }
.item-photo-cell img { width: 26px; height: 26px; display: inline-block; border: 1px solid #dce1e8; border-radius: 6px; object-fit: cover; vertical-align: middle; }
.module-table[data-item-table] .employee-edit-row input, .module-table[data-item-table] .employee-edit-row select { min-width: 0; }
.item-photo-editor { min-width: 44px; display: grid; justify-items: center; gap: 3px; }
.item-photo-editor img { width: 26px; height: 26px; border: 1px solid #dce1e8; border-radius: 6px; object-fit: cover; }
.item-photo-editor label { position: relative; color: var(--accent); cursor: pointer; font-size: 8px; font-weight: 700; }
.item-photo-editor input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.module-table[data-item-table] .employee-edit-row input[readonly] { color: var(--muted); background: #f3f5f7; }
.item-soft-deleted { display: none !important; }
.employee-edit-row input:focus, .employee-edit-row select:focus { border-color: #7f96d3; box-shadow: 0 0 0 3px #e8edfb; }
.employee-edit-row input.invalid, .employee-edit-row select.invalid { border-color: #c85d56; background: #fff8f7; box-shadow: 0 0 0 3px #fbe8e6; }
.module-table[data-employee-table] .inline-status-fields { min-width: 0; }
.inline-row-status { min-width: 76px; color: #526176; font-size: 10px; font-weight: 700; }
.inline-row-status.error { color: #b34740; }
.inline-status-fields { min-width: 100px; display: grid; gap: 5px; }
.inline-status-fields small { min-height: 12px; font-size: 8px; }
.module-table th[data-employee-column="등록자"], .module-table th[data-employee-column="변경자"] { width: 62px; min-width: 62px; }
.module-table th[data-employee-column="등록일시"], .module-table th[data-employee-column="변경일시"] { width: 72px; min-width: 72px; }
.data-table-sort-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 0; color: inherit; border: 0; outline: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 600; text-align: left; }
.data-table-sort-button > span:first-child { flex: 1 1 auto; min-width: 0; }
.data-table-sort-indicator:empty { display: none; }
.data-table-column-resizable { table-layout: fixed; }
.data-table-column-resizable td { min-width: 0 !important; overflow: hidden; text-overflow: ellipsis; }
.data-table-resizable-header { position: relative; overflow: visible; }
.data-table-resizable-header .data-table-sort-button { min-width: 0; padding-right: 7px; }
.data-table-resizable-header .data-table-sort-button > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table-resize-handle { position: absolute; top: 0; right: 0; z-index: 4; width: 9px; height: 100%; display: block; outline: 0; cursor: col-resize; touch-action: none; user-select: none; }
.data-table-resize-handle::after { position: absolute; top: 20%; right: 0; width: 1px; height: 60%; background: transparent; content: ""; transition: background-color .12s ease; }
.data-table-resize-handle:hover::after, .data-table-resize-handle:focus-visible::after { background: var(--accent); }
.data-table-resize-handle:focus-visible { box-shadow: inset -2px 0 0 var(--accent); }
body.data-table-column-resizing, body.data-table-column-resizing * { cursor: col-resize !important; user-select: none !important; }
.data-table-sort-button:hover, .data-table-sort-button:focus-visible { color: var(--accent); }
.data-table-sort-indicator { flex: 0 0 14px; display: inline-grid; place-items: center; color: var(--accent); text-align: right; }
.data-table-sort-indicator .ui-icon { --ui-icon-size: 13px; }
.module-table th[aria-sort="ascending"], .module-table th[aria-sort="descending"] { color: var(--accent); background: #f0f4ff; }
.employee-audit-person { width: 62px; max-width: 62px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.employee-audit-datetime { width: 72px; min-width: 72px; color: var(--muted); font-size: 9px; line-height: 1.2; }
.employee-audit-datetime span, .employee-audit-datetime small { display: block; }
.employee-audit-datetime small { margin-top: 3px; color: #9099a6; font-size: 8px; }
.module-table td.inline-row-actions { width: 74px; padding-right: 14px; }
.module-table[data-item-table] .item-edit-row td.inline-row-actions, .module-table[data-partner-table] .partner-edit-row td.inline-row-actions { position: sticky; right: 0; z-index: 3; min-width: 74px; padding: 5px 8px; background: #f7f9ff; box-shadow: -5px 0 9px rgba(30, 42, 59, .08); }
.module-table[data-employee-table] td.inline-row-actions { width: 54px; padding-right: 8px; padding-left: 5px; }
.module-table[data-employee-table] .inline-row-actions button { padding: 0 4px; }
.inline-row-actions { display: grid; gap: 5px; }
.inline-row-actions button { height: 28px; padding: 0 8px; border-radius: 6px; cursor: pointer; font-size: 9px; font-weight: 700; }
.inline-save { color: #fff; border: 1px solid #274ebf; background: var(--accent); }
.inline-cancel { color: #596576; border: 1px solid var(--line); background: #fff; }
.employee-context-menu, .data-table-context-menu { position: fixed; z-index: 80; min-width: 144px; padding: 4px; border: 1px solid #cbd1d9; border-radius: 7px; background: #fff; box-shadow: 0 10px 26px rgba(17, 27, 40, .18); }
.employee-context-menu[hidden], .data-table-context-menu[hidden] { display: none; }
.employee-context-menu button, .data-table-context-menu button { width: 100%; min-height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 8px; color: var(--ink); border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 10px; text-align: left; }
.employee-context-menu button:hover, .employee-context-menu button:focus-visible, .data-table-context-menu button:hover, .data-table-context-menu button:focus-visible { outline: 0; color: var(--accent); background: var(--accent-soft); }
.employee-context-menu button span:first-child, .data-table-context-menu button span:first-child { width: 15px; color: var(--accent); font-size: 13px; text-align: center; }
.employee-context-menu button > .ui-icon, .data-table-context-menu button > .ui-icon { --ui-icon-size: 16px; color: var(--accent); }
.employee-context-menu button.context-danger > .ui-icon, .data-table-context-menu button.context-danger > .ui-icon { color: inherit; }
.employee-context-menu button[hidden], .data-table-context-menu button[hidden] { display: none; }
.employee-context-menu button.context-danger, .data-table-context-menu button.context-danger { color: #9a403a; }
.employee-context-menu button.context-danger:hover, .employee-context-menu button.context-danger:focus-visible, .data-table-context-menu button.context-danger:hover, .data-table-context-menu button.context-danger:focus-visible { color: #a13f39; background: #fff0ef; }
.employee-soft-deleted { display: none !important; }
.employee-column-hidden { display: none !important; }
.employee-column-context-menu button { color: #9a403a; }
.employee-column-context-menu button:hover, .employee-column-context-menu button:focus-visible { color: #a13f39; background: #fff0ef; }
.employee-table-summary { min-height: 45px; display: flex; align-items: center; justify-content: flex-end; padding: 0 17px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.employee-table-summary strong { margin: 0 2px 0 5px; color: var(--ink); font-size: 11px; }
body:is(.employee-page, .storage-page, .module-page) { height: 100vh; height: 100dvh; overflow: hidden; }
body:is(.employee-page, .storage-page, .module-page) .app-shell, body:is(.employee-page, .storage-page, .module-page) .main-area { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body:is(.employee-page, .storage-page, .module-page) .main-area { display: flex; flex-direction: column; }
body:is(.employee-page, .storage-page, .module-page) .topbar { flex: 0 0 var(--topbar-height); }
body:is(.employee-page, .storage-page, .module-page) .content { width: 100%; height: calc(100vh - var(--topbar-height)); height: calc(100dvh - var(--topbar-height)); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body:is(.employee-page, .storage-page, .module-page) .page-heading, body.module-page .module-metric-grid { flex: 0 0 auto; }
body:is(.employee-page, .storage-page, .module-page) .module-list-panel { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
body:is(.employee-page, .storage-page, .module-page) .module-list-panel > .list-toolbar, body:is(.employee-page, .storage-page, .module-page) .employee-table-summary, body.module-page .pagination { flex: 0 0 auto; }
body:is(.employee-page, .storage-page, .module-page) .module-list-panel > .data-table-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
body:is(.employee-page, .storage-page, .module-page) .module-list-panel > .data-table-shell > .table-wrap { min-height: 0; flex: 1 1 auto; overflow: auto; scrollbar-gutter: stable; }
body:is(.employee-page, .storage-page, .module-page) .module-table thead th { position: sticky; top: 0; z-index: 2; }
.module-table[data-storage-table] { min-width: 1550px; table-layout: fixed; }
.module-table[data-storage-table] th:nth-child(1) { width: 150px; }
.module-table[data-storage-table] th:nth-child(2) { width: 105px; }
.module-table[data-storage-table] th:nth-child(3) { width: 250px; }
.module-table[data-storage-table] th:nth-child(4), .module-table[data-storage-table] th:nth-child(5), .module-table[data-storage-table] th:nth-child(7) { width: 120px; }
.module-table[data-storage-table] th:nth-child(6) { width: 92px; }
.module-table[data-storage-table] th:nth-child(8) { width: 180px; }
.module-table[data-storage-table] th:nth-child(9), .module-table[data-storage-table] th:nth-child(11) { width: 62px; }
.module-table[data-storage-table] th:nth-child(10), .module-table[data-storage-table] th:nth-child(12) { width: 72px; }
.module-table[data-storage-table] th:nth-child(13) { width: 86px; }
.module-table[data-storage-table] th:nth-child(14) { width: 54px; }
.module-table[data-storage-table] .employee-edit-row input, .module-table[data-storage-table] .employee-edit-row select { min-width: 0; }
.module-table[data-account-table] { min-width: 1900px; table-layout: fixed; }
.module-table[data-account-table] td { overflow: hidden; text-overflow: ellipsis; }
.module-table[data-account-table] th:nth-child(1) { width: 105px; }
.module-table[data-account-table] th:nth-child(2) { width: 145px; }
.module-table[data-account-table] th:nth-child(3), .module-table[data-account-table] th:nth-child(11), .module-table[data-account-table] th:nth-child(14) { width: 100px; }
.module-table[data-account-table] th:nth-child(4), .module-table[data-account-table] th:nth-child(5) { width: 90px; }
.module-table[data-account-table] th:nth-child(6), .module-table[data-account-table] th:nth-child(7), .module-table[data-account-table] th:nth-child(8) { width: 70px; }
.module-table[data-account-table] th:nth-child(9) { width: 145px; }
.module-table[data-account-table] th:nth-child(10) { width: 190px; }
.module-table[data-account-table] th:nth-child(12), .module-table[data-account-table] th:nth-child(13) { width: 110px; }
.module-table[data-account-table] th:nth-child(15), .module-table[data-account-table] th:nth-child(17) { width: 62px; }
.module-table[data-account-table] th:nth-child(16), .module-table[data-account-table] th:nth-child(18) { width: 72px; }
.module-table[data-account-table] th:nth-child(19) { width: 54px; }
.module-table[data-account-table] .employee-edit-row input, .module-table[data-account-table] .employee-edit-row select { min-width: 0; }
.module-table[data-account-table] .item-boolean-cell { padding-right: 4px; padding-left: 4px; text-align: center; }
.module-table[data-account-table] .item-boolean-cell input[type="checkbox"] { width: 14px; min-width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--accent); }
.module-table[data-account-table] .account-edit-row td.inline-row-actions { position: sticky; right: 0; z-index: 3; min-width: 54px; padding: 5px; background: #f7f9ff; box-shadow: -5px 0 9px rgba(30, 42, 59, .08); }
.storage-soft-deleted { display: none !important; }
.storage-default-badge { display: inline-flex; align-items: center; height: 16px; margin-left: 7px; padding: 0 6px; color: #31549f; border-radius: 8px; background: #eaf0ff; font-size: 8px; font-weight: 700; vertical-align: middle; }
.pagination { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.pagination div { display: flex; gap: 4px; }
.pagination button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pagination button .ui-icon { --ui-icon-size: 14px; }
.pagination button.active { color: #fff; border-color: var(--accent); background: var(--accent); }
.wireframe-note { margin: 12px 2px 0; color: #8993a1; font-size: 10px; text-align: right; }

body.receipt-page { height: 100vh; height: 100dvh; overflow: hidden; }
body.receipt-page .app-shell, body.receipt-page .main-area { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.receipt-page .main-area { display: flex; flex-direction: column; }
body.receipt-page .topbar { flex: 0 0 var(--topbar-height); }
.receipt-content { width: 100%; height: calc(100vh - var(--topbar-height)); height: calc(100dvh - var(--topbar-height)); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.receipt-page .receipt-content { max-width: none; margin: 0; padding: 0; }
.receipt-page .main-area :is(.panel, .table-search, input, select, button, .status-chip) { border-radius: 0; }
.receipt-page .main-area .panel { border-right: 0; border-left: 0; box-shadow: none; }
.receipt-content .page-heading { flex: 0 0 auto; margin-bottom: 14px; }
.receipt-split-view { min-height: 0; display: grid; flex: 1 1 auto; grid-template-rows: minmax(0, var(--receipt-top-ratio, 39%)) 12px minmax(0, 1fr); gap: 0; }
.receipt-voucher-panel, .receipt-detail-panel { min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.receipt-voucher-panel > .data-table-shell, .receipt-detail-panel > .data-table-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.receipt-splitter { position: relative; z-index: 3; display: grid; place-items: center; outline: 0; cursor: row-resize; touch-action: none; user-select: none; }
.receipt-splitter::before { position: absolute; right: 0; left: 0; height: 1px; content: ""; background: #cfd5dd; }
.receipt-splitter span { position: relative; width: 42px; height: 6px; border: 1px solid #bfc7d2; border-radius: 0; background: #f8f9fb; }
.receipt-splitter span::before { position: absolute; top: 2px; left: 11px; width: 18px; height: 1px; content: ""; background: #8f9aaa; }
.receipt-splitter:hover span, .receipt-splitter:focus span, body.receipt-resizing .receipt-splitter span { border-color: #7890c9; background: var(--accent-soft); }
body.receipt-resizing, body.receipt-resizing * { cursor: row-resize !important; user-select: none !important; }

body.stock-page { height: 100vh; height: 100dvh; overflow: hidden; }
body.stock-page .app-shell, body.stock-page .main-area { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.stock-page .main-area { display: flex; flex-direction: column; }
body.stock-page .topbar { flex: 0 0 var(--topbar-height); }
.stock-content { width: 100%; max-width: none; height: calc(100vh - var(--topbar-height)); height: calc(100dvh - var(--topbar-height)); min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; }
.stock-page-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.stock-page-actions .secondary-button { width: auto; }
.stock-page-actions :is(.primary-button, .secondary-button) { height: 34px; padding: 0 10px; border-radius: 0; white-space: nowrap; font-size: 9px; }
.stock-page-actions .ui-icon { --ui-icon-size: 14px; }
.stock-split-view { min-height: 0; display: grid; flex: 1 1 auto; grid-template-rows: minmax(210px, var(--stock-top-size, 55fr)) 12px minmax(190px, 1fr); }
/* Short desktop windows need the same scroll fallback as narrow screens:
   filters must not consume the stock table's entire split-pane height. */
@media (max-height: 650px) {
 body.stock-page .stock-content { overflow: auto; }
 body.stock-page .stock-split-view { display: flex; flex: 0 0 auto; flex-direction: column; gap: 8px; }
 body.stock-page .stock-split-view > .stock-balance-panel { flex: 0 0 auto; height: auto; min-height: 0; }
 body.stock-page .stock-main-pane:not([hidden]) { flex: 0 0 260px; min-height: 260px; }
 body.stock-page .stock-main-pane > .data-table-shell { min-height: 220px; }
 body.stock-page .stock-split-view > .stock-adjustment-panel { flex: 0 0 auto; height: 300px; min-height: 300px; }
 body.stock-page .stock-splitter { display: none; }
}
.stock-balance-panel, .stock-adjustment-panel { min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.stock-balance-panel, .stock-adjustment-panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
.stock-main-pane { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.stock-main-pane[hidden] { display: none; }
.stock-main-pane > .data-table-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.stock-panel-heading { min-height: 52px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 15px; border-bottom: 1px solid var(--line); }
.stock-panel-heading > div:first-child { min-width: 0; }
.stock-panel-heading h2 { margin: 0 0 2px; font-size: 13px; }
.stock-panel-heading p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stock-balance-controls, .stock-detail-controls { display: flex; align-items: flex-end; gap: 7px; min-width: 0; }
.stock-balance-controls { overflow: visible; }
.stock-warehouse-filter { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 8px; }
.stock-warehouse-filter select { width: 154px; height: 34px; padding: 0 28px 0 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; font-size: 10px; }
.stock-warehouse-filter select:focus { border-color: #8499d3; box-shadow: 0 0 0 3px #edf1fc; }
.stock-detail-heading { min-height: 56px; }
.stock-detail-tabs { display: flex; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #f5f6f8; }
.stock-detail-tabs button { padding: 0 10px; color: var(--muted); border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 9px; }
.stock-detail-tabs button.active { color: var(--accent-strong); background: #fff; box-shadow: 0 1px 3px rgba(25, 36, 52, .12); font-weight: 700; }
@media (max-width: 1180px) {
	.stock-balance-panel > .stock-panel-heading > div:first-child { display: none; }
	.stock-balance-panel .stock-panel-heading { min-height: 91px; align-items: stretch; }
	.stock-balance-controls { width: 100%; display: grid; grid-template-columns: 154px minmax(160px, 1fr); align-items: end; overflow: visible; }
	.stock-balance-controls .table-search { min-width: 0; }
	.stock-balance-controls .table-search input { width: 100%; }
	.stock-balance-controls .stock-page-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 900px) {
	.stock-balance-controls .stock-page-actions { width: 100%; display: grid; grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
	.stock-page-actions .master-transfer { display: contents; }
	.stock-page-actions .master-transfer > .secondary-button,
	.stock-page-actions .master-transfer-menu > summary,
	.stock-page-actions > :is(.secondary-button, .primary-button) { width: 100%; }
}
@media (max-width: 480px) {
	.stock-balance-panel .stock-panel-heading { min-height: 0; }
	.stock-balance-controls { grid-template-columns: minmax(0, 1fr); }
	.stock-balance-controls .stock-warehouse-filter,
	.stock-balance-controls .stock-warehouse-filter select { width: 100%; }
	.stock-balance-controls .stock-page-actions { grid-column: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stock-page-actions .master-transfer > .secondary-button,
	.stock-page-actions .master-transfer-menu > summary { width: 100%; padding-inline: 4px; gap: 3px; font-size: 9px; }
}
.stock-balance-panel > .data-table-shell, .stock-adjustment-panel > .data-table-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.stock-detail-pane { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.stock-detail-pane[hidden] { display: none; }
.stock-detail-pane > .data-table-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.stock-balance-panel .stock-table-scroll, .stock-adjustment-panel .stock-table-scroll { min-height: 0; flex: 1 1 auto; padding-inline: 8px; overflow: auto; scrollbar-gutter: stable; }
.stock-balance-table { min-width: 1120px; table-layout: fixed; }
.stock-balance-table th:nth-child(1) { width: 180px; }
.stock-balance-table th:nth-child(2) { width: 140px; }
.stock-balance-table th:nth-child(3) { width: 70px; }
.stock-balance-table th:nth-child(4) { width: 140px; }
.stock-balance-table th:nth-child(5), .stock-balance-table th:nth-child(6), .stock-balance-table th:nth-child(7), .stock-balance-table th:nth-child(8) { width: 82px; text-align: right; }
.stock-balance-table th:nth-child(9) { width: 105px; }
.stock-balance-table th:nth-child(10) { width: 44px; }
.stock-balance-table td:nth-child(5), .stock-balance-table td:nth-child(6), .stock-balance-table td:nth-child(7), .stock-balance-table td:nth-child(8) { text-align: right; font-variant-numeric: tabular-nums; }
.stock-lot-table { min-width: 1850px; table-layout: fixed; }
.stock-lot-table th:nth-child(1) { width: 180px; }
.stock-lot-table th:nth-child(2),
.stock-lot-table th:nth-child(3) { width: 150px; }
.stock-lot-table th:nth-child(4),
.stock-lot-table th:nth-child(5) { width: 110px; }
.stock-lot-table th:nth-child(6) { width: 150px; }
.stock-lot-table th:nth-child(7) { width: 130px; }
.stock-lot-table th:nth-child(8),
.stock-lot-table th:nth-child(9),
.stock-lot-table th:nth-child(10),
.stock-lot-table th:nth-child(11),
.stock-lot-table th:nth-child(12),
.stock-lot-table th:nth-child(13) { width: 90px; text-align: right; }
.stock-lot-table th:nth-child(14) { width: 110px; text-align: right; }
.stock-lot-table th:nth-child(15) { width: 190px; }
.stock-lot-table td:nth-child(7),
.stock-lot-table td:nth-child(8),
.stock-lot-table td:nth-child(9),
.stock-lot-table td:nth-child(10),
.stock-lot-table td:nth-child(11),
.stock-lot-table td:nth-child(12),
.stock-lot-table td:nth-child(13),
.stock-lot-table td:nth-child(14) { text-align: right; font-variant-numeric: tabular-nums; }
.stock-reservation-table { min-width: 1180px; table-layout: fixed; }
.stock-reservation-table th:nth-child(1) { width: 92px; }
.stock-reservation-table th:nth-child(2) { width: 170px; }
.stock-reservation-table th:nth-child(3) { width: 145px; }
.stock-reservation-table th:nth-child(4) { width: 120px; }
.stock-reservation-table th:nth-child(5) { width: 90px; text-align: right; }
.stock-reservation-table th:nth-child(6) { width: 240px; }
.stock-reservation-table th:nth-child(7) { width: 100px; }
.stock-reservation-table th:nth-child(8) { width: 170px; }
.stock-reservation-table th:nth-child(9) { width: 58px; }
.stock-reservation-table td:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.stock-adjustment-table { min-width: 1220px; table-layout: fixed; }
.stock-adjustment-table th:nth-child(1) { width: 132px; }
.stock-adjustment-table th:nth-child(2) { width: 90px; }
.stock-adjustment-table th:nth-child(3) { width: 180px; }
.stock-adjustment-table th:nth-child(4) { width: 190px; }
.stock-adjustment-table th:nth-child(5), .stock-adjustment-table th:nth-child(6), .stock-adjustment-table th:nth-child(7) { width: 82px; text-align: right; }
.stock-adjustment-table th:nth-child(8) { width: 220px; }
.stock-adjustment-table th:nth-child(9) { width: 90px; }
.stock-adjustment-table th:nth-child(10) { width: 78px; }
.stock-adjustment-table td:nth-child(5), .stock-adjustment-table td:nth-child(6), .stock-adjustment-table td:nth-child(7) { text-align: right; font-variant-numeric: tabular-nums; }
.stock-table-summary { min-height: 31px; display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; padding: 0 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.stock-table-summary strong { margin: 0 3px; color: var(--ink); }
.stock-splitter { display: grid; position: relative; z-index: 4; place-items: center; cursor: row-resize; touch-action: none; }
.stock-splitter::before { position: absolute; inset: 5px 0; content: ""; background: #dfe3e8; }
.stock-splitter span { width: 42px; height: 5px; z-index: 1; border: 1px solid #c6ccd5; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(25, 36, 52, .08); }
.stock-splitter:hover::before, .stock-splitter:focus-visible::before { background: #aebce2; }
body.stock-resizing, body.stock-resizing * { cursor: row-resize !important; user-select: none !important; }
.stock-balance-table tr.selected td { background: #f0f4ff; }
.stock-loading-row td, .stock-empty-row td { height: 72px; color: #8a94a2; text-align: center !important; }
.stock-adjustment-edit-row, .stock-reservation-edit-row { background: #f7f9ff; }
.stock-adjustment-edit-row td, .stock-reservation-edit-row td { padding: 3px 5px; vertical-align: middle; }
.stock-adjustment-edit-row input, .stock-reservation-edit-row input { width: 100%; min-width: 80px; height: 27px; padding: 0 7px; color: var(--ink); border: 1px solid #cbd1d9; border-radius: 5px; outline: 0; background: #fff; font-size: 9px; }
.stock-adjustment-edit-row input:focus, .stock-reservation-edit-row input:focus { border-color: #7f96d3; box-shadow: 0 0 0 2px #e8edfb; }
.stock-adjustment-edit-row input.invalid, .stock-reservation-edit-row input.invalid { border-color: #c85d56; background: #fff8f7; }
.stock-adjustment-actions { min-width: 68px; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px 5px !important; }
.stock-reservation-actions { min-width: 58px; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px !important; }
.stock-adjustment-actions button, .stock-reservation-actions button { height: 25px; padding: 0 5px; }
.stock-release-button { min-height: 23px; padding: 0 7px; font-size: 8px; }
.receipt-panel-heading { min-height: 58px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.receipt-voucher-toolbar { min-height: 48px; justify-content: flex-start; padding: 6px 12px; }
.receipt-panel-heading > div:first-child { min-width: 0; }
.receipt-panel-heading h2 { margin: 0 0 3px; font-size: 13px; }
.receipt-panel-heading p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-filter-controls { display: flex; align-items: flex-end; gap: 6px; }
.receipt-filter-controls > [data-shipment-report-link] { grid-column:span 2; justify-self:start; width:auto; white-space:nowrap; font-size:11px; }
.receipt-filter-controls .table-search input { width: 230px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-filter-controls { width: 100%; display: grid; grid-template-columns: 112px auto 112px minmax(150px, 1fr) repeat(4, minmax(90px,112px)); align-items: end; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-filter-controls .table-search input { width: 100%; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-filter-controls { width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; }
.receipt-filter-row { display: flex; align-items: flex-end; gap: 8px; }
.receipt-filter-field { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 8px; }
.receipt-filter-field > select { width: 112px; height: 34px; padding: 0 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: #fff; font-size: 10px; }
.receipt-filter-field > select:focus { border-color: #8499d3; box-shadow: 0 0 0 3px #edf1fc; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-filter-field .table-search input { width: 190px; }
.shipment-filter-statistics { display: flex; flex: 0 0 auto; align-items: stretch; overflow-x: auto; border-top: 1px solid #d6dce5; background: #fff; scrollbar-width: thin; }
.shipment-statistics-group { display: flex; flex: 0 0 auto; flex-direction: column; min-width: 0; border-right: 1px solid #d6dce5; }
.shipment-statistics-group:last-child { flex-grow: 1; border-right: 0; }
.shipment-statistics-group > .shipment-statistics-heading { box-sizing: border-box; width: 100%; height: 26px; flex: 0 0 26px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid #e5e9ef; background: #f5f7fa; }
.shipment-statistics-heading strong { flex-shrink: 0; color: #344258; font-size: 11px; font-weight: 600; }
.shipment-statistics-heading span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #778193; font-size: 10px; }
.shipment-statistics-grid { display: grid; grid-template-rows: repeat(2, 24px); grid-auto-columns: minmax(124px, auto); grid-auto-flow: column; column-gap: 14px; margin: 0; padding: 4px 10px; }
.shipment-statistics-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shipment-statistics-grid dt { color: #687386; font-size: 11px; white-space: nowrap; }
.shipment-statistics-grid dd { margin: 0; color: #202b3d; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shipment-statistics-grid .shipment-statistics-emphasis dd { color: #16725f; }
.receipt-date-filter { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 8px; }
.receipt-date-filter input { width: 126px; height: 34px; padding: 0 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; font-size: 10px; }
.receipt-date-filter input:focus { border-color: #8499d3; box-shadow: 0 0 0 3px #edf1fc; }
.receipt-date-separator { height: 34px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.receipt-table-scroll { min-height: 0; flex: 1 1 auto; overflow: auto; scrollbar-gutter: stable; }
.receipt-page .receipt-table-scroll { padding-inline: 8px; }
.receipt-table-scroll thead th { position: sticky; top: 0; z-index: 2; }
.receipt-voucher-table { min-width: 1120px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table { min-width: 2380px; table-layout: fixed; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th,
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table td { padding-right: 6px; padding-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(1) { width: 88px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(2) { width: 120px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(3) { width: 120px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(4) { width: 70px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(5) { width: 80px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(6) { width: 88px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(7) { width: 130px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(8) { width: 52px; text-align: center; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(9) { width: 110px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(10) { width: 90px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(11),
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(12) { width: 130px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(13) { width: 68px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(14) { width: 90px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(15) { width: 100px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(16) { width: 115px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(17),
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(18) { width: 90px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(19) { width: 112px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(20),
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(22) { width: 78px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(21),
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(23) { width: 112px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-voucher-table th:nth-child(24) { width: 38px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-document-edit-row input:not([type="checkbox"]),
.receipt-page[data-inventory-document-key="receipts"] .receipt-document-edit-row select { min-width: 0; padding-right: 4px; padding-left: 4px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table { min-width: 2300px; table-layout: fixed; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th,
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table td { padding-right: 4px; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(1),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(25) { width: 82px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(2) { width: 115px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(3) { width: 125px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(4) { width: 110px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(5),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(6),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(8) { width: 78px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(7) { width: 135px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(9) { width: 95px; text-align: right; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(20) { width: 70px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(21) { width: 80px; text-align: right; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(22) { width: 92px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(23),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(24) { width: 120px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(10),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(15) { width: 64px; text-align: center; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(11),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(12) { width: 52px; text-align: center; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(13),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(17),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(19) { width: 104px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(14) { width: 116px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(16),
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(18) { width: 72px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-table th:nth-child(26) { width: 34px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-document-edit-row input:not([type="checkbox"]),
.receipt-page[data-inventory-document-key="shipments"] .receipt-document-edit-row select { min-width: 0; padding-right: 3px; padding-left: 3px; }
.receipt-line-table { min-width: 980px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table { min-width: 2710px; table-layout: fixed; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th,
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table td { padding-right: 4px; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(1) { width: 44px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(2),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(3),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(21),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(25),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(27),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(28),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(29),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(30) { width: 48px; text-align: center; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(4) { width: 190px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(5) { width: 95px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(6),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(13),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(14) { width: 85px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(7),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(8),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(9),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(11),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(12),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(22),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(23),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(24) { width: 75px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(10) { width: 70px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(15) { width: 62px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(16),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(17),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(18) { width: 90px; text-align: right; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(19),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(20) { width: 120px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(26) { width: 110px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(31),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(33) { width: 70px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(32),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(34) { width: 105px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(35) { width: 34px; }
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-edit-row input:not([type="checkbox"]),
.receipt-page[data-inventory-document-key="shipments"] .receipt-line-edit-row select { min-width: 0; padding-right: 3px; padding-left: 3px; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table { min-width: 1380px; table-layout: fixed; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th,
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table td { padding-right: 7px; padding-left: 7px; overflow: hidden; text-overflow: ellipsis; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(1) { width: 54px; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(2) { width: 220px; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(3) { width: 90px; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(4),
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(5),
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(6) { width: 115px; text-align: right; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(7),
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(8) { width: 180px; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(9) { width: 260px; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table th:nth-child(10) { width: 42px; }
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table :is(th, td):nth-child(4),
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table :is(th, td):nth-child(5),
.receipt-page[data-inventory-document-key="transfers"] .receipt-line-table :is(th, td):nth-child(6) { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table { min-width: 2640px; table-layout: fixed; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th,
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table td { padding-right: 6px; padding-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(1) { width: 42px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(2),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(20) { width: 48px; text-align: center; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(3) { width: 180px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(4) { width: 130px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(5) { width: 105px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(6),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(7),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(9),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(19) { width: 86px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(8) { width: 105px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(10) { width: 90px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(11),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(13),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(14) { width: 112px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(12) { width: 78px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(15) { width: 138px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(16) { width: 155px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(17),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(18) { width: 88px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(21),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(23) { width: 80px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(22),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(24) { width: 118px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table th:nth-child(25) { width: 40px; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(6),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(7),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(9),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(11),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(13),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(14),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(15),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(17),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-table :is(th, td):nth-child(19) { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-edit-row input:not([type="checkbox"]),
.receipt-page[data-inventory-document-key="receipts"] .receipt-line-edit-row select { min-width: 0; padding-right: 4px; padding-left: 4px; }
.receipt-detail-actions { display: flex; align-items: center; gap: 8px; overflow: visible; }
.shipment-document-actions { height: 30px; display: flex; flex: 0 0 auto; align-items: stretch; border: 1px solid #cfd5dd; background: #fff; }
.shipment-document-actions[hidden] { display: none; }
.shipment-document-kind { display: flex; align-items: center; }
.shipment-document-kind select { width: 92px; height: 28px; padding: 0 6px; color: var(--ink); border: 0; outline: 0; background: transparent; cursor: pointer; font-size: 10px; font-weight: 600; }
.shipment-document-kind select:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.shipment-document-executions { display: flex; border-left: 1px solid var(--line); }
.shipment-document-executions button { height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; color: #475569; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
.shipment-document-executions .ui-icon { --ui-icon-size: 14px; }
.shipment-document-executions button:last-child { border-right: 0; }
.shipment-document-executions button:hover { color: var(--ink); background: var(--soft); }
.shipment-document-executions button:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -2px; }
.shipment-print-dialog { width: min(1120px, calc(100vw - 28px)); max-width: none; height: calc(100vh - 28px); max-height: none; padding: 0; overflow: hidden; color: var(--ink); border: 1px solid #aeb7c3; background: #e9edf2; box-shadow: 0 22px 60px rgba(15, 23, 42, .3); }
.shipment-print-dialog::backdrop { background: rgba(15, 23, 42, .48); }
.shipment-print-shell { position: relative; height: 100%; display: flex; flex-direction: column; }
.shipment-print-header { min-height: 48px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 10px 7px 14px; border-bottom: 1px solid #cfd5dd; background: #fff; }
.shipment-print-header h2 { margin: 0; font-size: 12px; }
.shipment-print-header p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.shipment-print-header > div:last-child { display: flex; align-items: center; gap: 6px; }
.shipment-print-close, .shipment-print-execute { width: auto; height: 30px; min-height: 30px; padding: 0 11px; border-radius: 0; font-size: 10px; }
.shipment-print-close { color: #475569; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.shipment-print-close:hover { color: var(--ink); background: var(--soft); }
.shipment-print-execute:disabled { cursor: wait; opacity: .45; }
.shipment-print-frame { width: 100%; min-height: 0; flex: 1 1 auto; border: 0; background: #e9edf2; }
.shipment-print-loading { position: absolute; inset: 49% auto auto 50%; z-index: 1; transform: translate(-50%, -50%); color: var(--muted); font-size: 11px; }
.shipment-print-loading[hidden] { display: none; }
.shipment-fax-fields { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; text-align: left; }
.shipment-fax-fields label { display: grid; gap: 5px; color: #475569; font-size: 12px; font-weight: 700; }
.shipment-fax-fields input, .shipment-fax-fields select { width: 100%; min-height: 34px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 6px 8px; background: #fff; color: #0f172a; }
@media (max-width: 980px) { .shipment-document-kind select { width: 82px; } .shipment-document-executions button { padding-inline: 6px; } .shipment-print-dialog { width: 100vw; height: 100vh; } }
.receipt-confirm-button { min-height: 30px; padding: 0 11px; font-size: 10px; }
.receipt-confirm-button[hidden] { display: none; }
.receipt-unconfirm-button { min-height: 30px; padding: 0 11px; font-size: 10px; }
.receipt-unconfirm-button[hidden] { display: none; }
.receipt-purchased-cell { text-align: center !important; }
.receipt-purchased-cell input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.receipt-purchased-cell input:disabled { cursor: not-allowed; opacity: .48; }
.receipt-line-table tbody tr:not(.receipt-line-edit-row) .receipt-purchased-cell input:disabled { opacity: 1; }
.receipt-line-edit-row td, .receipt-document-edit-row td { padding-top: 3px !important; padding-bottom: 3px !important; }
.receipt-line-edit-row input:not([type="checkbox"]), .receipt-line-edit-row select,
.receipt-document-edit-row input:not([type="checkbox"]), .receipt-document-edit-row select { width: 100%; min-width: 76px; height: 27px; padding: 0 7px; border: 1px solid #cbd1d9; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
.receipt-line-edit-row input.invalid, .receipt-line-edit-row select.invalid,
.receipt-document-edit-row input.invalid, .receipt-document-edit-row select.invalid { border-color: #d34d47; background: #fff4f3; box-shadow: 0 0 0 1px rgba(211, 77, 71, .12); }
.receipt-date-filter input.invalid { border-color: #d34d47; background: #fff4f3; box-shadow: inset 0 0 0 1px rgba(211, 77, 71, .14); }
.receipt-item-search-cell, .receipt-reference-search-cell { position: relative; overflow: visible; }
.receipt-item-combobox { position: relative; min-width: 190px; }
.receipt-reference-combobox { position: relative; width: 100%; min-width: 0; }
.receipt-reference-combobox > input { width: 100%; }
:is(.receipt-item-suggestions, .receipt-reference-suggestions) { max-height: 220px; padding: 4px; overflow-y: auto; border: 1px solid #c7ced8; border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgba(17, 27, 40, .2); }
.receipt-item-suggestions { position: fixed; z-index: 140; }
.receipt-reference-suggestions { position: fixed; z-index: 140; }
:is(.receipt-item-suggestions, .receipt-reference-suggestions)[hidden] { display: none; }
:is(.receipt-item-suggestions, .receipt-reference-suggestions) button { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; color: var(--ink); border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 10px; text-align: left; }
:is(.receipt-item-suggestions, .receipt-reference-suggestions) button:hover, :is(.receipt-item-suggestions, .receipt-reference-suggestions) button.active { color: var(--accent); background: var(--accent-soft); }
:is(.receipt-item-suggestions, .receipt-reference-suggestions) button strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.receipt-item-suggestions, .receipt-reference-suggestions) button small { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.receipt-line-amount { white-space: nowrap; }
.receipt-line-storage-edit { display: flex; align-items: center; gap: 4px; }
.receipt-line-cancel { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; color: #7a8493; background: transparent; cursor: pointer; font-size: 16px; }
.receipt-line-cancel:hover, .receipt-line-cancel:focus-visible { color: #9a403a; background: #fff0ef; outline: 0; }
.receipt-voucher-table tbody tr { cursor: pointer; }
.receipt-voucher-table tbody tr:hover { background: #f7f9fc; }
.receipt-voucher-table tbody tr.filter-pinned { background: #fff9e9; }
.receipt-number-button { padding: 2px 0; color: #254fae; border: 0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.receipt-number-button:hover, .receipt-number-button:focus { color: var(--accent); outline: 0; text-decoration: underline; }
.data-table td.inventory-voucher-posted { color: #b42318; font-weight: 700; }
.data-table td.inventory-voucher-unposted { color: #1d4ed8; font-weight: 700; }
.data-table td.inventory-shipment-return-kind { color: #b42318; font-weight: 700; }
.receipt-detail-heading > div { min-width: 0; }
.receipt-detail-heading > div > p { margin-bottom: 2px; }
.receipt-detail-heading h2 { display: inline; margin-right: 8px; }
.receipt-detail-heading small { color: var(--muted); font-size: 9px; }
.receipt-detail-status { flex: 0 0 auto; padding: 4px 8px; color: #31549f; border-radius: 10px; background: #eaf0ff; font-size: 9px; font-weight: 650; }
.receipt-detail-status:empty { display: none; }
.receipt-panel-summary { min-height: 34px; display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; padding: 0 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.receipt-panel-summary strong { margin: 0 3px 0 5px; color: var(--ink); font-size: 10px; }
body[data-inventory-document-key="shipments"] .receipt-line-table td:nth-child(4), body[data-inventory-document-key="shipments"] .receipt-line-table td:nth-child(5), body[data-inventory-document-key="shipments"] .receipt-line-table td:nth-child(6),
body[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(4), body[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(5), body[data-inventory-document-key="shipments"] .receipt-line-table th:nth-child(6) { text-align: right; }

body.item-page { height: 100vh; height: 100dvh; overflow: hidden; }
body.item-page .app-shell, body.item-page .main-area { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.item-page .main-area { display: flex; flex-direction: column; }
body.item-page .topbar { flex: 0 0 var(--topbar-height); }
.item-content { width: 100%; height: calc(100vh - var(--topbar-height)); height: calc(100dvh - var(--topbar-height)); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body.item-page .main-area > .item-content { max-width: none; margin: 0; padding: 0; }
.item-split-view { min-height: 0; display: grid; flex: 1 1 auto; grid-template-rows: minmax(180px, var(--item-top-size, 1fr)) 12px minmax(210px, 1fr); gap: 0; }
.item-list-panel, .item-detail-panel { min-height: 0; padding: 0; overflow: hidden; }
.item-list-panel, .item-detail-panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
.item-list-panel { display: flex; flex-direction: column; }
.item-list-panel .list-toolbar { min-height: 48px; padding: 6px 12px; }
.item-name-filter { flex: 0 0 auto; border-radius: 0; }
.item-name-filter input { width: 190px; }
.item-list-panel > .data-table-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.item-list-panel > .data-table-shell > .table-wrap { min-height: 0; flex: 1 1 auto; overflow: auto; scrollbar-gutter: stable; }
.item-list-panel .data-table-scroll { padding-inline: 8px; }
.item-list-panel .module-table thead th { position: sticky; top: 0; z-index: 2; }
.item-list-heading { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-list-heading strong { font-size: 12px; }
.item-list-heading span { color: var(--muted); font-size: 9px; }
.item-table-summary { min-height: 32px; display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; padding: 0 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.item-table-summary strong { margin: 0 3px 0 5px; color: var(--ink); font-size: 10px; }
.item-splitter { position: relative; z-index: 3; display: grid; place-items: center; outline: 0; cursor: row-resize; touch-action: none; user-select: none; }
.item-splitter::before { position: absolute; right: 0; left: 0; height: 1px; content: ""; background: #cfd5dd; }
.item-splitter span { position: relative; width: 42px; height: 6px; border: 1px solid #bfc7d2; border-radius: 4px; background: #f8f9fb; box-shadow: 0 1px 2px rgba(20, 30, 45, .08); }
.item-splitter span::before { position: absolute; top: 2px; left: 11px; width: 18px; height: 1px; content: ""; background: #8f9aaa; }
.item-splitter:hover span, .item-splitter:focus span, body.item-resizing .item-splitter span { border-color: #7890c9; background: var(--accent-soft); }
body.item-resizing, body.item-resizing * { cursor: row-resize !important; user-select: none !important; }
.module-table[data-item-table] tbody tr[data-item-row] { cursor: pointer; }
.module-table[data-item-table] tbody tr[data-item-row]:hover { background: #f7f9fc; }
.module-table[data-item-table] tbody tr[data-item-row].selected,
.module-table[data-item-table] tbody tr.item-edit-row.selected { background: #f4f7ff; }
.item-detail-panel { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.item-detail-panel.image-collapsed { grid-template-columns: minmax(0, 1fr) 36px; }
.item-image-precollapsed .item-detail-panel { grid-template-columns: minmax(0, 1fr) 36px; }
.item-detail-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.item-detail-heading { min-height: 38px; display: flex; flex: 0 0 auto; align-items: center; padding: 4px 12px; }
.item-detail-heading p { display: none; }
.item-detail-heading h2 { display: inline; margin: 0 8px 0 0; font-size: 13px; }
.item-detail-heading small { color: var(--muted); font-size: 9px; }
.item-detail-tabs { min-height: 30px; display: flex; flex: 0 0 auto; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.item-detail-tabs button { position: relative; min-width: 90px; padding: 0 12px; color: var(--muted); border: 0; outline: 0; background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; }
.item-detail-tabs button::after { position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; content: ""; background: transparent; }
.item-detail-tabs button:hover, .item-detail-tabs button:focus-visible, .item-detail-tabs button.active { color: var(--accent); }
.item-detail-tabs button.active::after { background: var(--accent); }
.item-tab-panel { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.item-tab-panel[hidden] { display: none; }
.item-tab-panel > .data-table-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
.item-detail-table-scroll { min-height: 0; flex: 1 1 auto; overflow: auto; scrollbar-gutter: stable; }
.item-detail-table { min-width: 680px; table-layout: fixed; }
.item-detail-table th:nth-child(1) { width: 20%; }
.item-detail-table th:nth-child(2) { width: 27%; }
.item-detail-table th:nth-child(3) { width: 11%; }
.item-detail-table th:nth-child(4) { width: 15%; }
.item-detail-table th:nth-child(5) { width: 19%; }
.item-detail-table th:nth-child(6) { width: 48px; }
#item-price-panel .item-detail-table { min-width: 500px; }
#item-price-panel .item-detail-table th:nth-child(1) { width: 70px; }
#item-price-panel .item-detail-table th:nth-child(2) { width: 50px; }
#item-price-panel .item-detail-table th:nth-child(3) { width: 90px; }
#item-price-panel .item-detail-table th:nth-child(4) { width: 110px; }
#item-price-panel .item-detail-table th:nth-child(5) { width: 100px; }
#item-price-panel .item-detail-table th:nth-child(6) { width: 65px; }
#item-price-panel .item-detail-table :is(th, td):is(:nth-child(3), :nth-child(4)) { text-align: right; font-variant-numeric: tabular-nums; }
#item-price-panel .item-detail-table .item-detail-edit-row :is(input, select) { min-width: 0; }
#item-price-panel .item-detail-table tbody tr.item-price-current td:nth-child(3) { color: #176a4d; font-weight: 750; }
#item-price-panel .item-detail-table tbody tr.item-price-current td:nth-child(4) { color: inherit; font-weight: inherit; }
.item-detail-table thead th { position: sticky; top: 0; z-index: 2; vertical-align: middle; }
.item-detail-table thead .data-table-sort-button { min-height: 18px; align-items: center; }
.item-detail-table tbody td { vertical-align: middle; }
.item-detail-table tbody td:first-child strong { display: inline-flex; min-height: 18px; align-items: center; line-height: 1.15; }
.item-detail-table tbody tr.item-price-current { background: #edf8f3; }
.item-detail-table tbody tr.item-price-current:hover { background: #e5f4ed; }
.item-detail-table tbody tr.item-price-current td:nth-child(4) { color: #176a4d; font-weight: 750; }
.item-price-kind-content { min-width: 0; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.item-price-kind-content strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.current-price-badge { min-height: 14px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 5px; color: #176a4d; border: 1px solid #b7ddcf; border-radius: 8px; background: #fff; font-size: 7px; font-weight: 750; line-height: 1; white-space: nowrap; }
.item-detail-table th:nth-child(4), .item-detail-table td:nth-child(4) { text-align: right; }
.item-detail-table .module-row-action-column { width: 42px; padding-right: 12px; }
.item-detail-table .item-detail-edit-row { background: #f7f9ff; }
.item-detail-table .item-detail-edit-row td { padding: 3px 5px; }
.item-detail-table .item-detail-edit-row input, .item-detail-table .item-detail-edit-row select { width: 100%; min-width: 76px; height: 25px; padding: 0 6px; color: var(--ink); border: 1px solid #cbd1d9; border-radius: 5px; outline: 0; background: #fff; font-size: 9px; }
.item-detail-table .item-detail-edit-row input:focus, .item-detail-table .item-detail-edit-row select:focus { border-color: #7f96d3; box-shadow: 0 0 0 2px #e8edfb; }
.item-detail-table .item-detail-edit-row input.invalid, .item-detail-table .item-detail-edit-row select.invalid { border-color: #c85d56; background: #fff8f7; }
.item-detail-table .item-detail-edit-row .inline-row-actions { min-width: 64px; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px 5px; }
.item-detail-table .item-detail-edit-row .inline-row-actions button { height: 25px; padding: 0 5px; }
.item-component-search-cell { position: relative; overflow: visible !important; }
.item-component-combobox { position: relative; min-width: 190px; }
.item-component-suggestions { position: absolute; top: calc(100% + 3px); left: 0; z-index: 30; width: min(340px, 46vw); max-height: 190px; padding: 4px; overflow-y: auto; border: 1px solid #c7ced8; border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgba(17, 27, 40, .2); }
.item-component-suggestions[hidden] { display: none; }
.item-component-suggestions button { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; color: var(--ink); border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 9px; text-align: left; }
.item-component-suggestions button:hover, .item-component-suggestions button.active { color: var(--accent); background: var(--accent-soft); }
.item-component-suggestions button small { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.item-detail-empty td { height: 74px; color: #8a94a2; text-align: center !important; }
.table-wrap { container-type: inline-size; }
.data-table-empty-cell { padding: 0 !important; text-align: left !important; overflow: visible !important; }
.data-table-empty-message { position: sticky; left: 0; width: 100cqi; max-width: 100cqi; min-height: 72px; display: flex; align-items: center; justify-content: center; padding: 16px; white-space: normal; overflow-wrap: anywhere; color: #8a94a2; text-align: center; }
.item-image-view { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 12px; overflow: hidden; background: #fbfcfd; }
.item-image-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.item-image-heading strong { font-size: 11px; }
.item-image-actions { display: flex; align-items: center; gap: 8px; }
.item-image-change { position: relative; color: var(--accent); cursor: pointer; font-size: 9px; font-weight: 700; }
.item-image-change input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.item-image-toggle { width: 24px; height: 24px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; color: var(--muted); border: 0; border-radius: 5px; outline: 0; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; }
.item-image-toggle .ui-icon { --ui-icon-size: 16px; }
.item-image-toggle:hover, .item-image-toggle:focus-visible { color: var(--accent); background: var(--accent-soft); }
.item-image-canvas { min-height: 82px; display: grid; flex: 1 1 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.item-image-canvas img { width: 100%; height: 100%; max-height: 180px; padding: 10px; object-fit: contain; }
.item-image-thumbnails { min-height: 46px; display: flex; flex: 0 0 auto; gap: 5px; margin-top: 7px; overflow-x: auto; padding: 1px; scrollbar-width: thin; }
.item-image-thumbnails:empty { display: none; }
.item-image-thumbnail { position: relative; width: 44px; height: 44px; flex: 0 0 44px; padding: 2px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #fff; cursor: pointer; }
.item-image-thumbnail:hover, .item-image-thumbnail:focus-visible { border-color: #94a6d4; }
.item-image-thumbnail.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.item-image-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.item-image-thumbnail .primary-mark { position: absolute; right: 1px; bottom: 1px; min-width: 13px; height: 13px; display: grid; place-items: center; color: #fff; border-radius: 4px; background: var(--accent); font-size: 8px; }
.item-image-thumbnail .primary-mark .ui-icon { --ui-icon-size: 9px; fill: currentColor; }
.item-image-view > span { margin-top: 8px; overflow: hidden; font-size: 10px; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.item-image-controls { display: flex; flex: 0 0 auto; justify-content: center; gap: 5px; margin-top: 6px; }
.item-image-controls button { min-height: 25px; padding: 0 8px; color: #526176; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; font-size: 8px; font-weight: 650; }
.item-image-controls button:hover:not(:disabled), .item-image-controls button:focus-visible:not(:disabled) { color: var(--accent); border-color: #aebee9; outline: 0; background: var(--accent-soft); }
.item-image-controls button.danger { color: #9a403a; }
.item-image-controls button.danger:hover:not(:disabled), .item-image-controls button.danger:focus-visible:not(:disabled) { color: #a13f39; border-color: #e3b9b5; background: #fff0ef; }
.item-image-controls button:disabled { cursor: default; opacity: .45; }
.item-image-view > small { margin-top: 3px; color: var(--muted); font-size: 8px; text-align: center; }
.item-detail-panel.image-collapsed .item-image-view { align-items: center; padding: 8px 5px; }
.item-image-precollapsed .item-image-view { align-items: center; padding: 8px 5px; }
.item-detail-panel.image-collapsed .item-image-heading { width: 100%; justify-content: center; margin: 0; }
.item-image-precollapsed .item-image-heading { width: 100%; justify-content: center; margin: 0; }
.item-detail-panel.image-collapsed .item-image-heading strong,
.item-detail-panel.image-collapsed .item-image-change,
.item-detail-panel.image-collapsed .item-image-canvas,
.item-detail-panel.image-collapsed .item-image-thumbnails,
.item-detail-panel.image-collapsed .item-image-controls,
.item-detail-panel.image-collapsed .item-image-view > span,
.item-detail-panel.image-collapsed .item-image-view > small { display: none; }
.item-image-precollapsed .item-image-heading strong,
.item-image-precollapsed .item-image-change,
.item-image-precollapsed .item-image-canvas,
.item-image-precollapsed .item-image-thumbnails,
.item-image-precollapsed .item-image-controls,
.item-image-precollapsed .item-image-view > span,
.item-image-precollapsed .item-image-view > small { display: none; }
.item-detail-panel.image-collapsed .item-image-actions { gap: 0; }
.item-image-precollapsed .item-image-actions { gap: 0; }

.security-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 15px; color: #29416c; border: 1px solid #cdd9ee; border-radius: 9px; background: #f4f7fd; }
.security-notice > span { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #8ca4cf; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.security-notice p { display: flex; flex-direction: column; margin: 0; }
.security-notice small { margin-top: 3px; color: #657693; }
.access-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.member-panel { padding: 0; overflow: hidden; }
.member-panel-header { min-height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.member-panel h2 { margin: 0 0 3px; font-size: 14px; }
.member-panel p { margin: 0; color: var(--muted); font-size: 10px; }
.member-search { height: 35px; display: flex; align-items: center; gap: 7px; margin: 12px; padding: 0 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; }
.member-search .ui-icon { --ui-icon-size: 16px; }
.member-search input { width: 100%; border: 0; outline: 0; font-size: 11px; }
.member-list { padding: 0 8px 10px; }
.member-item { width: 100%; min-height: 57px; display: flex; align-items: center; gap: 9px; margin: 2px 0; padding: 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.member-item[hidden] { display: none !important; }
.member-item:hover { background: #f7f8fa; }
.member-item.active { border-color: #c7d3f2; background: var(--accent-soft); }
.member-avatar { color: #30466c; background: #dce4f1; }
.member-item > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.member-item > span:nth-child(2) strong { font-size: 11px; }
.member-item > span:nth-child(2) small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.role-chip { padding: 3px 6px; color: #46566d; border-radius: 9px; background: #e9edf2; font-size: 9px; }
.role-chip.admin { color: #31549f; background: #dfe8ff; }
.role-chip.readonly { color: #6d6175; background: #eee9f1; }
.permission-panel { padding: 0; overflow: hidden; }
.permission-heading { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.permission-heading p, .permission-role > span { margin: 0 0 3px; color: var(--muted); font-size: 9px; }
.permission-heading h2 { margin: 0 0 3px; font-size: 16px; }
.permission-heading [data-selected-login-id] { color: var(--muted); font-size: 10px; }
.workspace-empty { max-width: 520px; margin: 60px auto; padding: 32px; text-align: center; }
.workspace-empty h1 { margin: 0 0 8px; font-size: 20px; }
.workspace-empty p { margin: 0; color: var(--muted); }
.permission-role { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; text-align: right; }
.permission-role > span { grid-column: 1 / -1; }
.permission-role strong { font-size: 11px; }
.permission-presets { min-height: 50px; display: flex; align-items: center; gap: 6px; padding: 9px 18px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.permission-presets > span { margin-right: 4px; color: var(--muted); font-size: 10px; }
.permission-presets button { height: 28px; padding: 0 9px; color: #4f5d70; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 10px; }
.permission-table th:not(:first-child), .permission-table td:not(:first-child) { width: 66px; text-align: center; }
.permission-table th:first-child, .permission-table td:first-child { padding-left: 18px; }
.permission-table td:first-child { display: table-cell; }
.permission-menu { display: flex; flex-direction: column; }
.permission-menu small { margin-bottom: 3px; color: #9099a6; font-size: 8px; }
.permission-menu strong { font-size: 11px; }
.permission-check { display: inline-grid; width: 18px; height: 18px; place-items: center; cursor: pointer; }
.permission-check input { position: absolute; opacity: 0; pointer-events: none; }
.permission-check span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #c4cad2; border-radius: 4px; background: #fff; }
.permission-check input:checked + span { border-color: var(--accent); background: var(--accent); }
.permission-check input:checked + span::after { content: "✓"; color: #fff; font-size: 10px; font-weight: 800; }
.permission-check input:disabled + span { border-color: #edf0f2; background: #f1f3f5; cursor: not-allowed; }
.permission-check input[data-permission]:disabled + span { opacity: .5; }
.permission-table tr.permission-changed { background: #fffdf3; }
.permission-legend { min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 10px 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.permission-legend > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.permission-legend p { flex: 1; margin: 0; text-align: right; }
.legend { width: 8px; height: 8px; display: inline-block; border-radius: 2px; background: #d7e1f8; }
.legend.changed { background: #f0d983; }

.ai-dashboard-content { max-width: none; padding-top: 14px; }
.ai-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.ai-page-heading h1 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.035em; }
.ai-page-heading p:last-child { margin: 0; color: var(--muted); }
.ai-scope-badge { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: #526176; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 10px; }
.ai-scope-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #dff1ea; }
.ai-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; align-items: stretch; }
.ai-chat-panel { min-height: calc(100vh - 158px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ai-chat-header { min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.ai-avatar, .message-avatar { display: grid; place-items: center; color: #fff; background: #293b54; font-weight: 800; letter-spacing: -.04em; }
.ai-avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }
.ai-chat-header > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.ai-chat-header strong { font-size: 12px; }
.ai-chat-header > div:nth-child(2) span { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font-size: 9px; }
.ai-chat-header i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.ai-messages { min-height: 290px; flex: 1; overflow-y: auto; padding: 22px 22px 12px; scroll-behavior: smooth; }
.ai-message { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.ai-message.user { justify-content: flex-end; }
.message-avatar { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px; font-size: 9px; }
.message-content { max-width: min(680px, 82%); padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px 11px 11px 11px; background: #f8f9fb; line-height: 1.55; }
.ai-message.user .message-content { color: #fff; border-color: #334e83; border-radius: 11px 4px 11px 11px; background: #3c5d9d; }
.message-content p { margin: 0 0 5px; }
.message-content p:last-of-type { margin-bottom: 0; }
.message-content small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.ai-message.user .message-content small { color: #dce5f8; }
.sample-response-badge { display: inline-flex; margin-bottom: 7px; padding: 2px 6px; color: #74602e; border-radius: 8px; background: #fff1c9; font-size: 8px; font-weight: 700; }
.message-markdown { min-width: 0; overflow-wrap: anywhere; color: inherit; font-size: 11px; }
.message-markdown > :first-child { margin-top: 0; }
.message-markdown > :last-child { margin-bottom: 0; }
.message-markdown :is(h1, h2, h3, h4, h5, h6) { margin: 13px 0 6px; color: #24334a; line-height: 1.3; }
.message-markdown h1 { font-size: 16px; }
.message-markdown h2 { font-size: 14px; }
.message-markdown h3 { font-size: 12px; }
.message-markdown :is(h4, h5, h6) { font-size: 11px; }
.message-markdown p { margin: 0 0 8px; white-space: normal; }
.message-markdown :is(ul, ol) { margin: 6px 0 9px; padding-left: 20px; }
.message-markdown li { margin: 3px 0; }
.message-markdown blockquote { margin: 8px 0; padding: 7px 10px; color: #5d6b7e; border-left: 3px solid #91a7d9; background: #eef2fa; }
.message-markdown hr { margin: 12px 0; border: 0; border-top: 1px solid #dce2ea; }
.message-markdown code { padding: 1px 4px; color: #8a3541; border-radius: 4px; background: #eceff4; font: 10px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.message-markdown pre { max-width: 100%; margin: 8px 0; padding: 10px; overflow: auto; color: #e8edf7; border-radius: 7px; background: #1f2937; }
.message-markdown pre code { padding: 0; color: inherit; background: transparent; white-space: pre; }
.message-markdown a { color: #2857bd; text-decoration: underline; text-underline-offset: 2px; }
.markdown-table-wrap { max-width: 100%; margin: 9px 0; overflow-x: auto; border: 1px solid #dce2ea; border-radius: 7px; background: #fff; }
.message-markdown table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 10px; }
.message-markdown th, .message-markdown td { padding: 7px 9px; border-right: 1px solid #e3e7ed; border-bottom: 1px solid #e3e7ed; text-align: left; vertical-align: top; }
.message-markdown th { color: #46546a; background: #eef2f7; font-weight: 700; white-space: nowrap; }
.message-markdown tr:last-child td { border-bottom: 0; }
.message-markdown :is(th, td):last-child { border-right: 0; }
.message-markdown .align-center { text-align: center; }
.message-markdown .align-right { text-align: right; }
.ai-stream-typing { display: inline-flex; gap: 4px; padding: 7px 1px 3px; }
.ai-stream-typing i { width: 5px; height: 5px; border-radius: 50%; background: #77859a; animation: typing-dot 1s infinite alternate; }
.ai-stream-typing i:nth-child(2) { animation-delay: .18s; }
.ai-stream-typing i:nth-child(3) { animation-delay: .36s; }
.ai-message.streaming .message-markdown:not(:empty)::after { content: ""; width: 2px; height: 1em; display: inline-block; margin-left: 2px; background: #315bd6; vertical-align: -.15em; animation: ai-stream-caret .8s step-end infinite; }
.ai-message.error .message-content { border-color: #e6c2c2; background: #fff6f6; }
@keyframes ai-stream-caret { 50% { opacity: 0; } }
.ai-result-list { display: grid; gap: 5px; margin: 9px 0 0; padding: 0; list-style: none; }
.ai-result-list li { display: flex; justify-content: space-between; gap: 14px; padding-top: 5px; border-top: 1px solid #e4e7eb; font-size: 10px; }
.ai-result-list strong { white-space: nowrap; }
.ai-empty-space { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 22px 0; color: #98a1ad; }
.ai-empty-space span { font-size: 20px; }
.ai-empty-space p { margin: 0; font-size: 10px; }
.ai-message.typing .message-content { display: flex; gap: 4px; padding: 14px; }
.ai-message.typing i { width: 5px; height: 5px; border-radius: 50%; background: #77859a; animation: typing-dot 1s infinite alternate; }
.ai-message.typing i:nth-child(2) { animation-delay: .18s; }
.ai-message.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot { to { opacity: .25; transform: translateY(-2px); } }
.ai-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 18px 12px; }
.ai-suggestions button { min-height: 39px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: #4f5c6e; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 10px; text-align: left; }
.ai-suggestions button:hover { color: var(--accent); border-color: #afc0ed; background: #f9faff; }
.ai-suggestions button span { width: 21px; height: 21px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 5px; background: var(--soft); }
.ai-composer { display: flex; align-items: flex-end; gap: 9px; margin: 0 18px; }
.ai-input-wrap { flex: 1; overflow: hidden; border: 1px solid #bfc7d2; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(18,28,42,.04); }
.ai-input-wrap:focus-within { border-color: #8199d7; box-shadow: 0 0 0 3px #e9efff; }
.ai-input-wrap textarea { width: 100%; min-height: 48px; max-height: 130px; display: block; resize: vertical; padding: 11px 12px 5px; border: 0; outline: 0; color: var(--ink); }
.ai-composer-footer { display: flex; justify-content: space-between; padding: 2px 10px 7px; color: #8a94a1; font-size: 8px; }
.ai-send-button { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; border: 0; border-radius: 10px; background: var(--accent); cursor: pointer; font-size: 17px; }
.ai-send-button:hover { background: #284fc2; }
.ai-disclaimer { margin: 8px 20px 13px; color: #929aa5; font-size: 8px; text-align: center; }
.ai-context-column { display: flex; flex-direction: column; gap: 14px; }
.ai-context-card { padding: 16px; }
.context-lock { padding: 4px 7px; color: #406348; border-radius: 10px; background: #e7f2e9; font-size: 8px; }
.ai-access-list { margin: 0; padding: 0; list-style: none; }
.ai-access-list li { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0f2; }
.ai-access-list li > span { width: 19px; height: 19px; display: grid; place-items: center; color: var(--success); border-radius: 50%; background: #e8f5ef; font-size: 9px; }
.ai-access-list li div { display: flex; flex-direction: column; }
.ai-access-list strong { font-size: 10px; }
.ai-access-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.access-settings-link { display: flex; justify-content: space-between; margin-top: 13px; color: var(--accent); font-size: 10px; font-weight: 600; }
.recent-questions button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid #edf0f2; background: transparent; cursor: pointer; text-align: left; }
.recent-questions button:hover span { color: var(--accent); }
.recent-questions button span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.recent-questions button small { flex: 0 0 auto; color: #9aa2ad; font-size: 8px; }
.ai-shortcut-card { margin-top: auto; padding: 14px 16px; }
.ai-shortcut-card strong { font-size: 10px; }
.ai-shortcut-card p { display: flex; align-items: center; gap: 4px; margin: 9px 0 0; color: var(--muted); font-size: 9px; }

.ai-minimal-main { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #fafbfc; }
.ai-minimal-main .topbar { width: 100%; flex: 0 0 var(--topbar-height); }
.minimal-mobile-header { display: none; }
.ai-simple-shell { width: min(760px, calc(100% - 48px)); min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; margin: 0 auto; padding: 48px 0; transition: justify-content .2s ease; }
.ai-simple-welcome { margin-bottom: 28px; text-align: center; }
.ai-simple-welcome h1 { margin: 0; color: #263244; font-size: clamp(25px, 3vw, 34px); font-weight: 400; letter-spacing: -.04em; }
.ai-simple-welcome h1 strong { font-weight: 700; }
.ai-simple-form { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 20px; border: 1px solid #cfd5dd; border-radius: 17px; background: #fff; box-shadow: 0 8px 30px rgba(30, 43, 61, .07); }
.ai-simple-form:focus-within { border-color: #8da2d8; box-shadow: 0 0 0 3px #e9efff, 0 10px 32px rgba(30, 43, 61, .08); }
.ai-simple-form input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.ai-simple-form input::placeholder { color: #9aa3ae; }
.ai-simple-form button { width: 46px; height: 46px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; border: 0; border-radius: 12px; background: #315bd6; cursor: pointer; font-size: 18px; }
.ai-simple-form button .ui-icon { --ui-icon-size: 20px; }
.ai-simple-form button:hover { background: #284fc2; }
.ai-simple-messages { display: none; min-height: 0; flex: 1; padding: 10px 4px 24px; }
.ai-simple-shell.has-conversation { justify-content: flex-start; }
.ai-simple-shell.has-conversation .ai-simple-welcome { display: none; }
.ai-simple-shell.has-conversation .ai-simple-messages { display: block; overflow-y: auto; }
.ai-simple-shell.has-conversation .ai-simple-form { position: sticky; bottom: 24px; }
.ai-approval-card { margin: 12px 0 12px 42px; padding: 13px; border: 1px solid #edc46d; border-radius: 12px; background: #fffaf0; box-shadow: 0 5px 16px rgba(38, 47, 67, .08); }
.ai-approval-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-approval-heading strong { color: #573d08; font-size: 13px; }
.ai-approval-heading span { padding: 3px 7px; color: #78540a; border-radius: 999px; background: #f9e4b5; font-size: 10px; font-weight: 800; }
.ai-approval-card p { margin: 8px 0 5px; color: #37445a; font-size: 12px; line-height: 1.5; }
.ai-approval-card small { color: #8791a1; font-size: 10px; }
.ai-approval-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 11px; }
.ai-approval-actions button { min-height: 32px; padding: 0 11px; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 800; }
.ai-approval-actions .secondary { color: #536078; border: 1px solid #ccd3df; background: #fff; }
.ai-approval-actions .primary { color: #fff; border: 1px solid #244db7; background: #315bd6; }
.ai-approval-actions button:disabled { opacity: .55; cursor: wait; }
.ai-approval-card.executed { border-color: #91d4aa; background: #f1fbf5; }
.ai-approval-card.rejected, .ai-approval-card.failed { border-color: #d8dde5; background: #f7f8fa; }
.ai-approval-card.failed { border-color: #e5aaaa; background: #fff5f5; }

.profile-content { max-width: none; }
.profile-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; }
.profile-summary { display: flex; align-items: center; flex-direction: column; padding: 28px 20px; text-align: center; }
.profile-avatar-large { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 14px; color: #304b7d; border-radius: 22px; background: #dfe7f7; font-size: 24px; font-weight: 700; }
.profile-summary > strong { font-size: 15px; }
.profile-summary > span { margin-top: 6px; padding: 3px 8px; color: #31549f; border-radius: 10px; background: #e4ebfb; font-size: 9px; }
.profile-summary > small { margin-top: 8px; color: var(--muted); }
.profile-photo-actions { width: 100%; display: flex; flex-direction: column; gap: 3px; margin-top: 18px; }
.profile-photo-actions .secondary-button { height: 34px; cursor: pointer; font-size: 10px; }
.profile-photo-actions input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.profile-photo-remove { align-self: center; color: #8b4b47; }
.profile-photo-help { margin: 6px 0 0; color: var(--muted); font-size: 8px; }
[data-current-user-avatar].has-profile-image { color: transparent; background-position: center; background-size: cover; }
.profile-form-panel { padding: 0; overflow: hidden; }
.profile-section-heading { padding: 18px 20px 12px; }
.profile-section-heading.divided { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-section-heading h2 { margin: 0 0 4px; font-size: 14px; }
.profile-section-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 8px 20px 20px; }
.profile-fields label { display: flex; flex-direction: column; gap: 6px; }
.profile-fields label > span { color: #536075; font-size: 10px; font-weight: 600; }
.profile-fields input, .profile-fields select { width: 100%; height: 38px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; }
.profile-fields input:focus, .profile-fields select:focus { border-color: #8499d3; box-shadow: 0 0 0 3px #edf1fc; }
.profile-fields input:disabled { color: #6f7987; background: #f2f4f6; cursor: not-allowed; }
.profile-fields label small { color: #8a94a1; font-size: 8px; }
.profile-form-actions { min-height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fafbfc; }
.profile-form-actions > span { flex: 1; color: var(--success); font-size: 10px; }
.profile-form-actions .secondary-compact { display: inline-flex; align-items: center; }

.common-settings-content { max-width: none; }
.settings-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.settings-tabs button { height: 34px; flex: 0 0 auto; padding: 0 13px; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 11px; }
.settings-tabs button:hover { color: var(--ink); background: var(--soft); }
.settings-tabs button.active { color: #fff; background: #34445a; font-weight: 600; }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.settings-form-card, .master-card { padding: 0; overflow: hidden; }
.settings-card-heading { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.settings-card-heading.with-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.settings-card-heading.with-action > div { min-width: 0; }
.settings-card-heading.with-action > button { flex-shrink: 0; white-space: nowrap; }
.settings-card-heading h2 { margin: 0 0 4px; font-size: 14px; }
.settings-card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.settings-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.settings-field-grid label { display: flex; flex-direction: column; gap: 6px; }
.settings-field-grid label.wide { grid-column: 1 / -1; }
.settings-field-grid label > span { color: #536075; font-size: 10px; font-weight: 600; }
.settings-field-grid input, .settings-field-grid select { width: 100%; height: 39px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; }
.settings-field-grid input:focus, .settings-field-grid select:focus { border-color: #8499d3; box-shadow: 0 0 0 3px #edf1fc; }
.suffix-input { position: relative; }
.suffix-input input { padding-right: 34px; }
.suffix-input span { position: absolute; top: 12px; right: 12px; color: var(--muted); font-size: 10px; }
.master-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-table th:first-child, .settings-table td:first-child { padding-left: 18px; }
.settings-table th:last-child, .settings-table td:last-child { width: 82px; padding-right: 10px; text-align: right; }
.settings-table td:first-child { display: table-cell; }
.settings-table th { height: 28px; padding-top: 5px; padding-bottom: 5px; font-size: 9px; }
.settings-table td { height: 31px; padding-top: 5px; padding-bottom: 5px; font-size: 10px; line-height: 1.15; }
.settings-table td[contenteditable="true"] { min-width: 80px; outline: 0; }
.settings-table td[contenteditable="true"]:focus { background: #f1f5ff; box-shadow: inset 0 0 0 1px #a9b9e3; }
.settings-table input[type="checkbox"] { accent-color: var(--accent); }
.master-delete { padding: 4px 6px; color: #9a4a45; border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 9px; }
.master-delete:hover { background: #fceeed; }
.master-row-actions { white-space: nowrap; }
.master-drag-handle { width: 23px; height: 23px; margin-right: 2px; padding: 0; color: #7b8796; border: 0; border-radius: 5px; background: transparent; cursor: grab; font-size: 14px; vertical-align: middle; }
.master-drag-handle .ui-icon { --ui-icon-size: 15px; }
.master-drag-handle:hover, .master-drag-handle:focus-visible { color: var(--accent); background: var(--accent-soft); outline: 0; }
.master-drag-handle:active { cursor: grabbing; }
[data-master-body] tr.master-row-dragging { opacity: .42; }
[data-master-body] tr.master-row-drop-before { box-shadow: inset 0 2px 0 var(--accent); }
[data-master-body] tr.master-row-drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.common-code-explorer { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 14px; align-items: start; }
.common-code-category-pane { padding: 0; overflow: hidden; }
.common-code-category-heading { padding: 17px 16px 13px; border-bottom: 1px solid var(--line); }
.common-code-category-heading h2 { margin: 0 0 4px; font-size: 13px; }
.common-code-category-heading p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.common-code-category-list { display: flex; flex-direction: column; padding: 6px; }
.common-code-category-list button { min-height: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ink); border: 0; border-radius: 7px; background: transparent; cursor: pointer; text-align: left; }
.common-code-category-list button:hover { background: var(--soft); }
.common-code-category-list button.active { color: #26364d; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.common-code-category-list button span { font-size: 11px; font-weight: 650; }
.common-code-category-list button small { grid-column: 1; color: var(--muted); font-size: 8px; }
.common-code-category-list button b { grid-column: 2; display: grid; place-items: center; color: #8c98a8; font-size: 16px; font-weight: 400; }
.common-code-category-list button b .ui-icon { --ui-icon-size: 16px; }
.common-code-category-list button.active b { color: var(--accent); }
.common-code-detail-pane { min-width: 0; }
.common-code-detail-pane .settings-panel.active { display: block; }

.command-dialog { width: min(560px, calc(100vw - 28px)); max-height: 80dvh; margin-top: 8dvh; padding: 0; overflow: hidden; border: 1px solid #aeb7c2; border-radius: 12px; box-shadow: 0 24px 70px rgba(15, 24, 36, .28); }
.command-dialog > form { display: flex; flex-direction: column; max-height: calc(80dvh - 2px); gap: 0; }
.command-search, .command-footer { flex-shrink: 0; }
.command-dialog::backdrop { background: rgba(17, 25, 35, .48); backdrop-filter: blur(2px); }
.command-search { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.command-search > .ui-icon { --ui-icon-size: 20px; color: var(--muted); }
.command-search input { flex: 1; min-width: 0; width: 0; border: 0; outline: 0; font-size: 14px; }
.command-body { display: block; min-height: 0; overflow-y: auto; padding: 10px; }
.command-body > p { margin: 4px 8px 7px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.command-body button { width: 100%; height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; text-align: left; }
.command-body button > .ui-icon { --ui-icon-size: 18px; color: #536681; }
.command-body button:hover, .command-body button:focus { outline: 0; background: var(--accent-soft); }
.command-body button span { flex: 1; min-width: 0; white-space: normal; }
.command-body button { min-height: 42px; height: auto; padding-block: 10px; }
.command-body button[hidden] { display: none; }
.command-footer { display: flex; justify-content: flex-end; gap: 15px; padding: 9px 14px; color: var(--muted); border-top: 1px solid var(--line); background: #f8f9fa; font-size: 10px; }

[data-persistence-error-message] { max-height: 45dvh; overflow: auto; white-space: pre-line; overflow-wrap: anywhere; }
.danger-button { height: 38px; padding: 0 14px; color: #fff; border: 1px solid #ad4039; border-radius: 7px; background: #bb4a43; cursor: pointer; font-weight: 600; }
.danger-button:hover { background: #a9403a; }


/* Inputs keep one neutral edge on focus; the grid cell remains the edit-position indicator. */
:where(input, select, textarea):focus,
:where(input, select, textarea):focus-visible { outline: 0 !important; box-shadow: none !important; }
.employee-edit-row :is(input, select):not(.invalid):not([aria-invalid="true"]):focus { border-color: #cfd5dd; }
.stock-warehouse-filter select:focus,
.receipt-filter-field > select:focus,
.receipt-date-filter input:not(.invalid):not([aria-invalid="true"]):focus,
.profile-fields :is(input, select):not(.invalid):not([aria-invalid="true"]):focus,
.settings-field-grid :is(input, select):not(.invalid):not([aria-invalid="true"]):focus { border-color: var(--line); }
.stock-adjustment-edit-row input:not(.invalid):not([aria-invalid="true"]):focus,
.stock-reservation-edit-row input:not(.invalid):not([aria-invalid="true"]):focus,
.item-detail-table .item-detail-edit-row :is(input, select):not(.invalid):not([aria-invalid="true"]):focus { border-color: #cbd1d9; }
.ai-input-wrap:focus-within { border-color: #bfc7d2; box-shadow: 0 1px 3px rgba(18,28,42,.04); }
.ai-simple-form:focus-within { border-color: #cfd5dd; box-shadow: 0 8px 30px rgba(30, 43, 61, .07); }
.master-transfer { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.master-transfer-file { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.master-transfer > .secondary-button,
.master-transfer-menu > summary { height: 32px; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; font-size: 10px; white-space: nowrap; }
.master-transfer-menu { position: relative; }
.master-transfer-menu > summary { list-style: none; cursor: pointer; }
.master-transfer > .secondary-button .ui-icon,
.master-transfer-menu > summary .ui-icon { --ui-icon-size: 14px; }
.master-transfer-menu > summary .ui-icon:last-child { --ui-icon-size: 12px; margin-left: 1px; }
.master-transfer-menu > summary::-webkit-details-marker { display: none; }
/* Shared management toolbar controls; compact in-table actions stay separate. */
body :is(.list-toolbar,.stock-page-actions,.receipt-detail-actions,.custody-toolbar) :is(.primary-button,.secondary-button,.master-transfer-menu > summary,.filter-tabs > button),
body .receipt-detail-actions > .receipt-toolbar-link {
  height:34px; min-height:34px; border-radius:0; font-size:11px;
}
body :is(.list-toolbar,.stock-page-actions,.receipt-detail-actions,.custody-toolbar) :is(.primary-button,.secondary-button,.master-transfer-menu > summary) > .ui-icon { --ui-icon-size:14px; }
.master-transfer-popup { position: fixed; inset: auto; top: var(--master-transfer-menu-top, 8px); left: var(--master-transfer-menu-left, 8px); z-index: 200; width: 154px; max-width: calc(100vw - 16px); margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 10px 26px rgba(15, 23, 42, .15); }
.master-transfer-popup :is(a,button) { height: 31px; width:100%; border:0; background:transparent; cursor:pointer; display: flex; align-items: center; padding: 0 9px; color: var(--ink); border-radius: 5px; text-decoration: none; font-size: 10px; font-family:inherit; }
.master-transfer-popup :is(a,button):hover { background: var(--soft); }
.master-transfer-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 1px solid #b9c1cb; border-radius: 12px; box-shadow: 0 24px 70px rgba(15, 24, 36, .28); }
.master-transfer-dialog::backdrop { background: rgba(17, 25, 35, .48); backdrop-filter: blur(2px); }
.master-transfer-dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.master-transfer-dialog-heading p { margin: 0 0 3px; color: var(--muted); font-size: 9px; }
.master-transfer-dialog-heading h2 { margin: 0; font-size: 16px; }
.master-transfer-dialog-heading > button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 20px; }
.master-transfer-dialog-heading > button .ui-icon { --ui-icon-size: 17px; }
.master-transfer-dialog-heading > button:hover { background: var(--soft); }
.master-transfer-dialog-body { max-height: min(52vh, 420px); overflow: auto; padding: 18px; }
.master-transfer-dialog-body > p { margin: 0; color: #435064; font-size: 11px; line-height: 1.6; }
.master-transfer-dialog-body ul { margin: 14px 0 0; padding: 10px 10px 10px 28px; color: #923f39; border: 1px solid #edc4c1; border-radius: 7px; background: #fff5f4; font-size: 10px; line-height: 1.65; }
.master-transfer-dialog-actions { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); background: #fafbfc; }
.master-transfer-dialog-actions button { min-width: 88px; }
.partner-details-dialog { width: min(920px, calc(100vw - 28px)); }
.partner-details-body { max-height: min(68vh, 720px); }
.partner-details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.partner-details-grid input[readonly] { color: #697588; background: #f3f5f7; }
@media (max-width: 820px) { .partner-details-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .master-transfer { width: 100%; flex-wrap: wrap; margin-left: 0; } }
.page-heading-actions { display: flex; align-items: center; gap: 7px; }
.member-invite-dialog { width: min(520px, calc(100vw - 28px)); }
.member-invite-copy { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.member-invite-field { display: flex; flex-direction: column; gap: 7px; }
.member-invite-field > span, .member-invite-result > span { color: #536075; font-size: 10px; font-weight: 650; }
.member-invite-field input, .member-invite-result input { width: 100%; height: 39px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #fff; }
.member-invite-result { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.member-invite-result[hidden] { display: none; }
.member-invite-result > div { display: flex; gap: 7px; }
.member-invite-result > div input { min-width: 0; flex: 1 1 auto; background: #f7f8fa; font-size: 10px; }
.member-invite-result > div button { flex: 0 0 auto; }
.member-invite-result small { color: var(--muted); font-size: 9px; }

html.sidebar-compact .sidebar { width: 70px; }
html.sidebar-compact .main-area { margin-left: 70px; }
html.sidebar-compact .brand-copy, html.sidebar-compact .nav-label, html.sidebar-compact .nav-text, html.sidebar-compact .nav-key, html.sidebar-compact .nav-count, html.sidebar-compact .workspace-copy, html.sidebar-compact .workspace-more { display: none; }
html.sidebar-compact .brand-row { padding-left: 18px; }
html.sidebar-compact .brand-wordmark > span { display: none; }
html.sidebar-compact .brand-wordmark strong { padding-left: 0; border-left: 0; font-size: 9px; }
html.sidebar-compact .sidebar-collapse span { transform: rotate(180deg); }
html.sidebar-compact .nav-item { justify-content: center; padding: 0; }
html.sidebar-compact .workspace-card { justify-content: center; padding: 8px 0; }
html.sidebar-compact .sidebar-footer { flex-direction: column; }

.mobile-scrim { display: none; }
@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
	.access-layout { grid-template-columns: 1fr; }
	.ai-dashboard-grid { grid-template-columns: 1fr; }
	.ai-chat-panel { min-height: 660px; }
	.ai-context-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ai-shortcut-card { display: none; }
	.receipt-voucher-panel > .receipt-voucher-toolbar { min-height: 94px; align-items: center; }
	.receipt-filter-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; }
	.receipt-voucher-toolbar .receipt-filter-controls { width: 100%; }
	.receipt-date-filter input { width: 100%; }
	.receipt-filter-controls .table-search { grid-column: 1 / -1; }
	.receipt-filter-controls .table-search input { width: 100%; }
	.receipt-page[data-inventory-document-key="receipts"] .receipt-filter-controls { display: flex; }
	.receipt-page[data-inventory-document-key="receipts"] .receipt-filter-row { width: 100%; flex-wrap: wrap; }
	.receipt-page[data-inventory-document-key="receipts"] .receipt-filter-field .table-search input { width: 100%; }
	.receipt-page[data-inventory-document-key="shipments"] .receipt-voucher-toolbar { min-height: 138px; }
	.receipt-page[data-inventory-document-key="shipments"] .receipt-filter-controls { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.receipt-page[data-inventory-document-key="shipments"] .receipt-date-separator { display: none; }
	.receipt-page[data-inventory-document-key="shipments"] .receipt-date-filter { grid-column: span 3; }
	.receipt-page[data-inventory-document-key="shipments"] .receipt-filter-field { grid-column: span 2; min-width: 0; }
	.receipt-page[data-inventory-document-key="shipments"] .receipt-filter-field > select { width: 100%; min-width: 0; }
	.receipt-page[data-inventory-document-key="shipments"] .receipt-split-view { grid-template-rows: minmax(230px, min(var(--receipt-top-ratio, 39%), calc(100% - 162px))) 12px minmax(0, 1fr); }
	.stock-detail-tabs button { padding: 0 7px; }
	.stock-detail-controls .table-search input { width: 145px; }
}
@media (max-width: 760px) {
  .sidebar, html.sidebar-compact .sidebar { width: 248px; transform: translateX(-100%); }
  .main-area, html.sidebar-compact .main-area { margin-left: 0; }
  body.sidebar-mobile-open .sidebar { transform: translateX(0); }
  body.sidebar-mobile-open .mobile-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(12, 20, 30, .45); }
  body.sidebar-mobile-open .mobile-menu { display: none; }
  html.sidebar-compact .brand-copy, html.sidebar-compact .nav-label, html.sidebar-compact .nav-text, html.sidebar-compact .nav-key, html.sidebar-compact .nav-count, html.sidebar-compact .workspace-copy, html.sidebar-compact .workspace-more { display: initial; }
  html.sidebar-compact .workspace-copy { display: flex; }
	.sidebar-collapse, html.sidebar-compact .sidebar-collapse { display: none; }
	.mobile-sidebar-close { display: grid; flex: 0 0 auto; }
  html.sidebar-compact .nav-item { justify-content: flex-start; padding: 0 10px; }
  html.sidebar-compact .workspace-card { justify-content: flex-start; padding: 8px; }
  html.sidebar-compact .sidebar-footer { flex-direction: row; }
  html.sidebar-compact .brand-wordmark { display: inline-flex; gap: 8px; }
  html.sidebar-compact .brand-wordmark > span { display: inline; font-size: 11px; }
  html.sidebar-compact .brand-wordmark strong { padding-left: 8px; border-left: 1px solid #596574; font-size: 11px; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 8px; }
  .topbar-task-tab { min-width: 96px; max-width: 142px; }
  .search-trigger { width: 38px; justify-content: center; }
  .search-trigger span:nth-child(2), .search-trigger kbd, .eyebrow { display: none; }
  .content { padding: 20px 14px; }
  .page-heading { align-items: flex-start; }
	.stock-panel-heading > div:first-child { display: none; }
	.stock-balance-controls, .stock-detail-controls { width: 100%; }
	.stock-balance-controls .table-search, .stock-detail-controls .table-search { flex: 1 1 auto; }
	.stock-balance-controls .table-search input, .stock-detail-controls .table-search input { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
	.module-metric-grid { grid-template-columns: 1fr; }
	.list-toolbar { align-items: stretch; flex-direction: column; }
	.list-actions { overflow-x: auto; }
	.permission-heading { align-items: flex-start; }
	.permission-table { min-width: 660px; }
	.permission-legend { align-items: flex-start; flex-wrap: wrap; }
	.permission-legend p { flex-basis: 100%; text-align: left; }
	.ai-page-heading { align-items: flex-start; flex-direction: column; }
	.ai-chat-panel { min-height: calc(100vh - 150px); }
	.ai-messages { padding: 18px 13px 10px; }
	.ai-suggestions { grid-template-columns: 1fr; padding: 0 12px 10px; }
	.ai-composer { margin: 0 12px; }
	.ai-context-column { display: flex; }
	.ai-composer-footer span:first-child { display: none; }
	.ai-composer-footer { justify-content: flex-end; }
	.ai-simple-shell { width: calc(100% - 28px); padding: 28px 0; }
	.ai-simple-welcome { margin-bottom: 22px; }
	.ai-simple-form { min-height: 56px; padding-left: 14px; border-radius: 15px; }
	.ai-simple-form button { width: 42px; height: 42px; }
	.profile-layout { grid-template-columns: 1fr; }
	.profile-summary { display: none; }
	.profile-fields { grid-template-columns: 1fr; }
	.settings-field-grid { grid-template-columns: 1fr; }
	.settings-field-grid label.wide { grid-column: auto; }
	.master-grid { grid-template-columns: 1fr; }
	.common-code-explorer { grid-template-columns: 1fr; }
	.common-code-category-heading { display: none; }
	.common-code-category-list { flex-direction: row; overflow-x: auto; }
	.common-code-category-list button { min-width: 132px; min-height: 44px; grid-template-rows: auto; }
	.common-code-category-list button small { display: none; }
	.settings-table { min-width: 600px; }
	.form-grid { grid-template-columns: 1fr; }
	.form-grid label.wide { grid-column: auto; }
	body:is(.employee-page, .storage-page, .module-page, .item-page) .content { padding: 14px; }
	body:is(.employee-page, .storage-page, .module-page, .item-page) .page-heading { align-items: center; flex-direction: row; margin-bottom: 10px; }
	body:is(.employee-page, .storage-page, .module-page, .item-page) .page-heading .breadcrumb, body:is(.employee-page, .storage-page, .module-page, .item-page) .page-heading p:last-child { display: none; }
	body:is(.employee-page, .storage-page, .module-page, .item-page) .page-heading h1 { margin: 0; font-size: 19px; }
	body:is(.employee-page, .storage-page, .module-page, .item-page) .page-heading .primary-button { width: auto; height: 34px; }
	body:is(.employee-page, .storage-page, .module-page) .list-toolbar { min-height: 50px; align-items: center; flex-direction: row; overflow-x: auto; padding: 8px 10px; }
	body:is(.employee-page, .storage-page, .module-page) .filter-tabs, body:is(.employee-page, .storage-page, .module-page) .list-actions { flex: 0 0 auto; }
	body:is(.employee-page, .storage-page, .module-page) .employee-table-summary { min-height: 38px; }
	.item-detail-panel { grid-template-columns: minmax(0, 1fr) 190px; }
	.item-list-heading span { display: none; }
	.item-image-view { padding: 9px; }
}
@media (max-width: 480px) {
  .page-heading { flex-direction: column; }
  .page-heading .primary-button { width: 100%; }
	.item-detail-panel { grid-template-columns: minmax(0, 1fr) 118px; }
	.item-image-heading { justify-content: center; }
	.item-image-heading strong { display: none; }
	.item-image-canvas img { padding: 5px; }
	.item-image-view > small { display: none; }
}

/* Wrap by available content width, including when the desktop sidebar is open. */
body.storage-page .list-toolbar { flex-wrap: wrap; overflow: visible; gap: 8px 14px; }
body.storage-page .storage-name-filter { flex: 1 1 250px; min-width: 0; }
body.storage-page .storage-name-filter input { width: 100%; min-width: 0; }
body.storage-page .list-actions { flex: 1 1 580px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
body.storage-page .master-transfer { width: auto; flex: 0 0 auto; margin-left: 0; flex-wrap: nowrap; }
body.storage-page .filter-tabs { flex: 0 0 auto; }
body.storage-page .storage-toolbar-primary-button { flex: 0 0 auto; }
@media (max-width: 600px) {
  body.storage-page .list-actions { justify-content: flex-start; }
  body.storage-page .master-transfer { width: 100%; }
  body.storage-page .storage-toolbar-primary-button { margin-left: auto; }
  body.storage-page .filter-tabs button { padding-inline: 6px; }
}

/* Authentication is intentionally independent from the ERP shell. */
.auth-page { min-height: 100vh; overflow: auto; background: #eef1f5; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(520px, 1.1fr); }
.auth-brand { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(32px, 6vw, 88px); color: #eff4fb; background: #17202b; }
.auth-logo { width: fit-content; display: flex; align-items: center; }
.auth-logo .brand-wordmark { gap: 10px; }
.auth-logo .brand-wordmark > span, .auth-logo .brand-wordmark strong { font-size: 14px; }
.auth-logo .brand-wordmark strong { padding-left: 10px; }
.auth-brand > div { margin: auto 0; }
.auth-brand > div p { margin: 0 0 14px; color: #99a7b8; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.auth-brand h1 { margin: 0; font-size: clamp(27px, 3vw, 42px); line-height: 1.42; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: normal; text-wrap: balance; }
.auth-brand h1 > span { display: block; text-wrap: balance; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: 42px 24px; background: #fff; }
.auth-form-wrap { width: min(440px, 100%); }
.auth-kicker { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.auth-form-wrap h2 { margin: 0 0 10px; font-size: 27px; letter-spacing: -.025em; }
.auth-description { margin: 0 0 30px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex: 1 1 0; flex-direction: column; gap: 7px; }
.auth-form label > span { color: #445166; font-size: 11px; font-weight: 650; }
.auth-form label > span small { margin-left: 4px; color: #8a94a2; font-size: 9px; font-weight: 450; }
.auth-form input { width: 100%; height: 43px; padding: 0 12px; color: var(--ink); border: 1px solid #cfd6df; border-radius: 5px; outline: 0; background: #fff; }
.auth-form input:focus { border-color: #8197d0 !important; box-shadow: inset 0 -2px #8197d0 !important; }
.auth-form .auth-remember { width: fit-content; flex: none; flex-direction: row; align-items: center; gap: 7px; cursor: pointer; }
.auth-form .auth-remember input { width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--accent); box-shadow: none !important; }
.auth-form .auth-remember span { color: #596579; font-size: 10px; font-weight: 550; }
.auth-field-row { display: flex; gap: 12px; }
.auth-submit { height: 45px; margin-top: 6px; color: #fff; border: 1px solid #294fbd; border-radius: 5px; background: var(--accent); cursor: pointer; font-size: 12px; font-weight: 700; }
.auth-submit:hover { background: #294fbd; }
.auth-divider { display: flex; align-items: center; gap: 9px; color: #929ba8; font-size: 9px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1 1 auto; content: ""; background: #e2e6eb; }
.auth-development-login { width: 100%; height: 43px; color: #334156; border: 1px solid #cbd2db; border-radius: 5px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 650; }
.auth-development-login:hover { border-color: #9da9b8; background: #f7f8fa; }
.auth-error { padding: 11px 12px; color: #923d38; border: 1px solid #e4bbb7; border-radius: 5px; background: #fff2f1; font-size: 11px; line-height: 1.5; }
.auth-switch { margin: 5px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.auth-switch a { color: var(--accent); font-weight: 650; }
.auth-complete { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); background: #fff; }
.auth-complete-mark { display: inline-flex; align-items: center; }
.auth-complete-mark .brand-wordmark > span { color: #687386; }
.auth-complete-mark .brand-wordmark strong { color: var(--ink); border-left-color: #c3c9d1; }
.auth-complete p { margin: 0; font-size: 11px; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: auto; padding: 22px 24px; }
  .auth-brand > div { display: none; }
  .auth-panel { min-height: calc(100vh - 83px); place-items: start center; padding-top: 52px; }
}
@media (max-width: 480px) {
  .auth-panel { padding: 38px 18px; }
  .auth-field-row { flex-direction: column; gap: 16px; }
}

/* Platform operations remain visually and structurally separate from tenant ERP pages. */
.platform-admin-page { min-height: 100vh; overflow: auto; color: #1d2939; background: #f3f5f8; }
.platform-header { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 56px); color: #fff; background: #17202b; }
.platform-header > div { display: flex; align-items: center; gap: 14px; }
.platform-brand { color: #aeb9c7; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.platform-header strong { padding-left: 14px; border-left: 1px solid #3a4552; font-size: 13px; }
.platform-operator span { color: #cbd3dc; font-size: 11px; }
.platform-operator form { margin: 0; }
.platform-operator button { padding: 7px 10px; color: #dce2e9; border: 1px solid #4a5664; border-radius: 4px; background: transparent; cursor: pointer; font-size: 10px; }
.platform-main { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.platform-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.platform-heading-link { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid #ccd3dd; border-radius: 4px; background: #fff; color: #344054; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.platform-heading-link:hover, .platform-heading-link:focus-visible { border-color: #7690d3; color: var(--accent); }
.platform-heading p { margin: 0 0 5px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.platform-heading h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.035em; }
.platform-heading span, .platform-card-heading span { color: #758195; font-size: 11px; }
.platform-grid { display: grid; grid-template-columns: minmax(280px, 350px) minmax(0, 1fr); gap: 18px; align-items: start; }
.platform-card { border: 1px solid #dce1e8; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgb(18 31 53 / 4%); }
.platform-card-heading { padding: 19px 20px 16px; border-bottom: 1px solid #e7eaf0; }
.platform-card-heading h2 { margin: 0 0 4px; font-size: 15px; }
.platform-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.platform-form label { display: flex; flex-direction: column; gap: 6px; }
.platform-form label span { color: #49566a; font-size: 10px; font-weight: 700; }
.platform-form input, .platform-form textarea, .platform-status-form input, .platform-invite-result input { width: 100%; padding: 0 10px; border: 1px solid #ccd3dd; border-radius: 4px; background: #fff; outline: 0; font-size: 11px; }
.platform-form input { height: 39px; }
.platform-form textarea { min-height: 78px; padding-top: 9px; resize: vertical; }
.platform-form input:focus, .platform-form textarea:focus, .platform-status-form input:focus { border-color: #7690d3; box-shadow: 0 0 0 2px rgb(61 93 181 / 10%); }
.platform-form button, .platform-status-form button { height: 39px; color: #fff; border: 0; border-radius: 4px; background: var(--accent); cursor: pointer; font-size: 10px; font-weight: 700; }
.platform-table-wrap { overflow-x: auto; }
.platform-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.platform-table th { padding: 10px 12px; color: #68758a; border-bottom: 1px solid #e5e9ef; background: #f8f9fb; text-align: left; white-space: nowrap; }
.platform-table td { padding: 13px 12px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.platform-table tbody tr:last-child td { border-bottom: 0; }
.platform-table td > strong, .platform-table td > span { display: block; }
.platform-table td > span:not(.platform-status) { margin-top: 3px; color: #8792a2; font-size: 9px; }
.platform-status { width: fit-content; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.platform-status-ACTIVE { color: #17663f; background: #e4f5eb; }
.platform-status-SUSPENDED { color: #9b3d36; background: #fde9e7; }
.platform-status-PROVISIONING { color: #755d1a; background: #f9f1d8; }
.platform-status-ARCHIVED { color: #596273; background: #e9edf2; }
.platform-status-form { min-width: 190px; display: flex; gap: 5px; }
.platform-row-actions { min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.platform-row-actions .platform-status-form { min-width: 0; }
.platform-row-actions > a { width: fit-content; padding: 6px 9px; border: 1px solid #b9c9e8; border-radius: 4px; color: var(--accent); font-size: 10px; font-weight: 700; text-decoration: none; }
.platform-row-actions > a:hover, .platform-row-actions > a:focus-visible { background: #eef3ff; }
.platform-status-form input { height: 32px; }
.platform-status-form button { height: 32px; flex: 0 0 auto; padding: 0 9px; }
.platform-status-form button.danger { background: #a3433d; }
.platform-alert, .platform-invite-result { margin-bottom: 16px; padding: 13px 15px; border: 1px solid; border-radius: 6px; font-size: 11px; }
.platform-alert-error { color: #923d38; border-color: #e4bbb7; background: #fff2f1; }
.platform-alert-success { color: #17663f; border-color: #b7dfc8; background: #eefaf3; }
.platform-invite-result { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(320px, 1fr); gap: 16px; align-items: center; border-color: #b7c6e9; background: #f2f5fd; }
.platform-invite-result div { display: flex; flex-direction: column; gap: 4px; }
.platform-invite-result strong { font-size: 11px; }
.platform-invite-result span { color: #66748b; font-size: 10px; line-height: 1.5; }
.platform-invite-result input { height: 38px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.platform-readonly { margin: 20px; color: #758195; font-size: 11px; }
.platform-popbill-card { margin-top: 18px; }
.platform-popbill-member-card > p { margin: 12px 20px 0; color: #49566a; font-size: 11px; }
.platform-popbill-member-card > .platform-alert { margin: 14px 20px 20px; }
.platform-popbill-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px 0; color: #66748b; font-size: 11px; }
.platform-popbill-hint { margin: 14px 20px 0; padding: 10px 12px; border: 1px solid #e8dac0; background: #fffbf2; color: #775a21; font-size: 11px; line-height: 1.5; }
.platform-popbill-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-popbill-form select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #ccd3dd; border-radius: 4px; background: #fff; font-size: 11px; }
.platform-popbill-form .platform-popbill-checkbox { flex-direction: row; align-items: center; gap: 8px; }
.platform-popbill-checkbox input { width: 15px; height: 15px; flex: 0 0 auto; }
.platform-popbill-form .platform-popbill-confirm, .platform-popbill-form .platform-popbill-reason { grid-column: 1 / -1; }
.platform-popbill-form > button { width: max-content; min-width: 120px; padding: 0 14px; }
.platform-popbill-form > button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 980px) {
  .platform-grid { grid-template-columns: 1fr; }
  .platform-create-card { max-width: none; }
}
@media (max-width: 680px) {
  .platform-header { height: auto; min-height: 62px; padding: 13px 18px; }
  .platform-header > div:first-child strong, .platform-operator span { display: none; }
  .platform-main { width: calc(100% - 24px); padding-top: 28px; }
  .platform-invite-result { grid-template-columns: 1fr; }
  .platform-popbill-form { grid-template-columns: 1fr; }
  .platform-popbill-form .platform-popbill-confirm, .platform-popbill-form .platform-popbill-reason { grid-column: 1; }
}
dialog.inventory-item-picker { width: min(720px, calc(100vw - 32px)); max-height: 80dvh; padding: 24px; border: 1px solid #dbe2ec; border-radius: 12px; }
.inventory-item-picker > input { width: 100%; padding: 10px; }
.inventory-item-picker-results { max-height: 50dvh; overflow: auto; margin: 16px 0; }
.inventory-item-picker-results button { display: block; width: 100%; text-align: left; padding: 12px; background: white; border: 0; border-bottom: 1px solid #e5e9f0; }
.inventory-item-picker-results button.active { background: #edf2ff; color: #244ac6; }
dialog.inventory-search-picker { width: min(620px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); padding: 0; color: var(--ink); border-color: #b9c1cb; }
dialog.inventory-reference-picker { position: fixed; margin: 0; z-index: 3000; }
dialog.inventory-reference-picker::backdrop { background: transparent; backdrop-filter: none; }
.inventory-reference-picker .form-dialog-header { cursor: move; touch-action: none; user-select: none; }
.inventory-reference-picker .form-dialog-header:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.inventory-search-picker[open] { display: flex; flex-direction: column; }
.inventory-search-picker .form-dialog-header { min-height: 54px; flex-shrink: 0; }
.inventory-search-picker .form-dialog-header h2 { font-size: 16px; }
.inventory-search-picker-body { padding: 14px 18px; min-height: 0; overflow: auto; }
.inventory-picker-filters { display:flex; gap:12px; margin-bottom:10px; }
.inventory-picker-filters .ui-field { width:min(280px,100%); min-width:0; display:grid; gap:5px; font-size:12px; }
.inventory-search-picker-context { margin: 0 0 10px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.inventory-search-picker-body > input { width: 100%; height: 34px; padding: 7px 10px; border: 1px solid #c7ced8; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.inventory-search-picker-body > input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.inventory-search-picker .inventory-item-picker-results { max-height: 44dvh; min-height: 96px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.inventory-search-picker-status { min-height: 94px; display: flex; align-items: center; justify-content: center; padding: 20px 16px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.receipt-item-suggestions .inventory-search-picker-status { min-height: 56px; padding: 12px 16px; font-size: 11px; }
.inventory-search-picker .inventory-item-picker-results button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; min-height: 38px; color: var(--ink); font: inherit; cursor: pointer; }
.inventory-search-picker .inventory-item-picker-results button:last-child { border-bottom: 0; }
.inventory-search-picker .inventory-item-picker-results button:is(.active,:hover,:focus-visible) { color: var(--accent); background: var(--accent-soft); }
.inventory-search-picker-name { min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.inventory-search-picker-name strong { font-weight: 600; }
.inventory-search-picker-name small { color: var(--muted); font-size: 10px; }
.inventory-search-picker-quantity { flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.inventory-search-picker .form-dialog-footer { min-height: 54px; padding-block: 10px; flex-shrink: 0; }
@media (max-width: 400px) { .inventory-search-picker .inventory-item-picker-results button { flex-wrap: wrap; gap: 5px; } }
dialog.stock-history-dialog { width: min(1000px, calc(100vw - 32px)); max-height: 85dvh; border: 1px solid #dbe2ec; border-radius: 12px; padding: 24px; }
.stock-history-dialog p { color: #526176; line-height: 1.6; }
.stock-history-scroll { overflow: auto; max-height: 50dvh; margin: 16px 0; }
.stock-history-scroll table { width: 100%; min-width: 700px; }
.stock-history-dialog > button, .stock-history-open { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: white; cursor: pointer; }
.stock-history-open { display: block; margin-top: 4px; white-space: nowrap; }

/* Shared compact workspace controls: wrap above tables, never over their rows. */
body .list-toolbar { flex:0 0 auto; flex-wrap:wrap; gap:8px; overflow:visible; }
body:is(.module-page,.employee-page,.storage-page,.item-page,.account-page) .list-toolbar { flex-direction:row; flex-wrap:wrap; overflow:visible; }
body.account-page .list-toolbar > [data-account-add] { flex:0 0 auto; width:auto; }
body .list-toolbar > .table-search { flex:1 1 260px; width:auto; min-width:0; }
body .list-toolbar .table-search input { width:100%; min-width:0; }
body .list-toolbar > .master-transfer { flex:0 0 auto; width:auto; margin-left:auto; flex-wrap:nowrap; }
body .list-toolbar .list-actions { min-width:0; overflow:visible; flex-wrap:wrap; }
body .list-toolbar :is(button,summary), body .stock-page-actions :is(button,summary) { font-size:11px; }
body .data-table-compact th, body .data-table-sort-button { font-size:11px; }
body .data-table-compact td { font-size:12px; }
body .data-table-context-menu button { font-size:12px; }
body .page-heading-actions { flex-wrap:wrap; min-width:0; gap:8px; }
body .page-heading-actions :is(.primary-button,.secondary-button) { width:auto; flex:0 0 auto; white-space:nowrap; padding-inline:14px; }
.receipt-toolbar-link { display:inline-flex; align-items:center; justify-content:center; gap:5px; width:auto; flex:0 0 auto; height:30px; padding:0 8px; border:1px solid #cfd5dd; border-radius:0; background:#fff; color:#475569; font-size:10px; font-weight:600; text-decoration:none; white-space:nowrap; }
.receipt-toolbar-link .ui-icon { --ui-icon-size:14px; }
.receipt-toolbar-link:hover { color:var(--ink); background:var(--soft); }
.receipt-toolbar-link:focus-visible { outline:2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset:-2px; }
body .receipt-detail-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }
body .receipt-detail-actions > button { flex: 0 0 auto; width: auto; white-space: nowrap; }
body .accounting-grid-panel { grid-template-rows:auto minmax(0,1fr) 26px; }
body .accounting-toolbar { flex-wrap:wrap; gap:6px; min-height:40px; padding:6px 8px; }
body .accounting-toolbar .table-search { flex:1 1 300px; width:auto; min-width:0; height:32px; }
body .accounting-toolbar .table-search input { width:100%; min-width:0; }
body .accounting-toolbar .master-transfer { flex:0 0 auto; width:auto; flex-wrap:nowrap; }
/* Cash vouchers: compact rows without reducing the shared 12px body text.
   Inline widths from the common column resizer still take precedence. */
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td) {
 width:var(--voucher-column-width,88px); min-width:var(--voucher-column-width,88px);
 height:24px; min-height:24px; padding:1px 5px; line-height:18px;
}
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table th { height:26px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):nth-child(1) { --voucher-column-width:84px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):nth-child(3) { --voucher-column-width:140px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):nth-child(5) { --voucher-column-width:104px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):nth-child(10) { --voucher-column-width:60px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):nth-child(12) { --voucher-column-width:180px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):nth-child(13) { --voucher-column-width:104px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):is(:nth-child(15),:nth-child(17)) { --voucher-column-width:128px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):nth-child(21) { --voucher-column-width:110px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):is(:nth-child(23),:nth-child(24),:nth-child(25),:nth-child(26)) { --voucher-column-width:60px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table :is(th,td):is(:nth-child(28),:nth-child(30)) { --voucher-column-width:128px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table .status-chip { padding:0 5px; line-height:18px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table .row-action { width:22px; height:22px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-table tr[data-accounting-editor] :is(th,td) { height:30px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-payment-summary :is(th,td) { height:22px; padding:1px 6px; }
body.accounting-page[data-accounting-page="cash-vouchers"] .accounting-toolbar { padding:4px 6px; gap:4px 6px; }
@media(max-width:700px) {
 body .list-toolbar > .table-search, body .accounting-toolbar .table-search { flex-basis:100%; }
 body .list-toolbar > .master-transfer { flex:1 1 100%; margin-left:0; justify-content:flex-end; }
 body .list-toolbar .master-transfer > .secondary-button { width:auto; }
 body .table-search kbd { display:none; }
 body .receipt-detail-heading { flex-wrap:wrap; gap:8px; }
 body .page-heading-actions { width:100%; }
 body .page-heading-actions :is(.primary-button,.secondary-button) { flex:1 1 auto; }
}
