/* src/web/permission-display.css */
.page-W06 .permission-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
}
.page-W06 .permission-toolbar > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 320px;
  max-width: 560px;
  font-weight: 600;
}
.page-W06 .permission-toolbar input {
  width: 100%;
  min-height: 40px;
}
.page-W06 .permission-browse-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-W06 .permission-results {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 12px 0;
}
.page-W06 .permission-resource-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin: 12px 0;
  overflow: visible;
}
.page-W06 .permission-resource-group > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--surface-secondary);
  border-radius: 10px;
  font-weight: 650;
  list-style: none;
}
.page-W06 .permission-resource-group > summary:before {
  content: "\203a";
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
}
.page-W06 .permission-resource-group[open] > summary:before {
  transform: rotate(90deg);
}
.page-W06 .permission-resource-group > summary::-webkit-details-marker {
  display: none;
}
.page-W06 .permission-group-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.page-W06 .permission-resource {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  margin: 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.page-W06 .permission-resource:hover {
  background: var(--row-hover);
}
.page-W06 .permission-resource:focus-within {
  background: var(--info-surface);
}
.page-W06 .permission-resource input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--primary);
}
.page-W06 .permission-resource-body {
  display: block;
  min-width: 0;
  flex: 1;
}
.page-W06 .permission-resource-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.page-W06 .permission-resource-heading strong {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.page-W06 .permission-type {
  font-size: 12px;
  line-height: 1.5;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  background: var(--surface-secondary);
}
.page-W06 .permission-code {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.page-W06 .permission-resource-note {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.page-W06 .permission-child {
  margin-left: 32px;
  border-left: 2px solid var(--border);
}
.page-W06 .permission-group-note {
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 13px;
}
.page-W06 .permission-special > summary {
  background: var(--warning-surface);
}
.page-W06 .permission-no-results {
  padding: 24px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
}
.page-W06 .permission-source-note {
  margin-top: 16px;
}
.page-W06 .permission-actions {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 -3px 12px #20334b0d;
}
.page-W06 .permission-tabs {
  flex-wrap: wrap;
}
.page-W06 [data-permission-editor] {
  padding-bottom: 8px;
}
@media (max-width: 800px) {
  .page-W06 .permission-toolbar {
    display: block;
  }
  .page-W06 .permission-browse-actions {
    margin-top: 12px;
  }
  .page-W06 .permission-resource {
    padding: 14px 12px;
  }
  .page-W06 .permission-resource-group > summary {
    padding: 14px 12px;
  }
  .page-W06 .permission-child {
    margin-left: 16px;
  }
  .page-W06 .permission-code {
    margin-left: 0;
  }
  .page-W06 .permission-tabs > button {
    flex: 1 1 auto;
  }
  .page-W06 .permission-group-count {
    font-size: 12px;
  }
}
@media (max-width: 640px) {
  .admin-shell:has(.page-W06) .sidebar {
    display: none;
  }
  .admin-shell:has(.page-W06) .workspace {
    margin-left: 0;
    min-width: 0;
  }
  .admin-shell:has(.page-W06) .topbar {
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 64px;
  }
  .admin-shell:has(.page-W06) .page {
    padding: 16px 12px;
  }
  .page-W06 .permission-toolbar > label {
    max-width: none;
  }
  .page-W06 .permission-child {
    margin-left: 12px;
  }
}

/* src/web/web-elevation.css */
body:has(#app > .admin-shell) {
  --page-background:#f3f6fa;
  --surface:#fff;
  --elevation-muted:#f7f9fc;
  --sidebar:#f8fafd;
  --elevation-border:#dce4ee;
  --radius:10px;
  --elevation-card:0 1px 2px #1e385408,0 4px 14px #27466b0a;
  --elevation-stat:0 2px 4px #213d5e08,0 8px 20px #294c750f;
  --elevation-hover:0 4px 8px #213d5e0c,0 10px 24px #294c7514;
  --elevation-popover:0 8px 24px #1e38541a,0 2px 6px #1e385414;
  --elevation-dialog:0 24px 64px #203b5d2b,0 4px 16px #203b5d14;
  --elevation-inset:inset 0 1px 2px #1e385408;
  --elevation-motion:120ms ease-out;
  --layer-header:10;
  --layer-sidebar:20;
  --layer-dropdown:30;
  --layer-dialog:50;
  --layer-toast:100;
}
body:has(#app > .admin-shell) :where(.sidebar) {
  background: var(--sidebar);
  box-shadow: 3px 0 14px #27466b08;
  z-index: var(--layer-sidebar);
}
body:has(#app > .admin-shell) :where(.topbar) {
  background: var(--surface);
  box-shadow: 0 2px 8px #27466b06;
}
body:has(#app > .admin-shell) :where(.nav-link.active) {
  box-shadow: inset 0 0 0 1px #245bc41a, 0 1px 3px #245bc408;
}
body:has(#app > .admin-shell) :where(.panel, .vehicle-card, .loading.state) {
  border-radius: var(--radius);
  border-color: var(--elevation-border);
  box-shadow: var(--elevation-card);
}
body:has(#app > .admin-shell) :where(.stat) {
  box-shadow: var(--elevation-stat);
  border-radius: var(--radius);
}
body:has(#app > .admin-shell) :where(.vehicle-card.overdue) {
  border-color: var(--danger);
}
body:has(#app > .admin-shell) :where(.vehicle-card.approaching) {
  border-color: var(--warning);
}
body:has(#app > .admin-shell) :where(a.panel, button.panel:enabled, button.stat[data-metric]:enabled, button.stat[data-stat-route]:enabled) {
  transition:
    box-shadow var(--elevation-motion),
    border-color var(--elevation-motion),
    background-color var(--elevation-motion);
}
body:has(#app > .admin-shell) :where(a.panel:hover, button.panel:enabled:hover, button.stat[data-metric]:enabled:hover, button.stat[data-stat-route]:enabled:hover) {
  box-shadow: var(--elevation-hover);
}
body:has(#app > .admin-shell) :where(.filters, .table-toolbar, .pagination):not(.dashboard *) {
  background: var(--elevation-muted);
}
body:has(#app > .admin-shell) :where(.filters) {
  border-radius: var(--radius) var(--radius) 0 0;
}
body:has(#app > .admin-shell) :where(.pagination) {
  border-radius: 0 0 var(--radius) var(--radius);
}
body:has(#app > .admin-shell) :where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea):not(.dashboard .chart-panel *) {
  box-shadow: var(--elevation-inset);
  transition: border-color var(--elevation-motion), box-shadow var(--elevation-motion);
}
body:has(#app > .admin-shell) :where(input, select, textarea)[aria-invalid=true] {
  box-shadow: inset 0 0 0 1px var(--danger);
}
body:has(#app > .admin-shell) :where(button.primary):not(.chart-panel *):enabled {
  background-image: linear-gradient(#ffffff12, #ffffff00 65%);
  box-shadow: inset 0 1px 0 #ffffff26, 0 2px 4px #245bc41a;
}
body:has(#app > .admin-shell) :where(button.primary):not(.chart-panel *):enabled:active {
  box-shadow: inset 0 1px 3px #102d6426;
}
body:has(#app > .admin-shell) :where(button:disabled, [aria-busy=true] button) {
  background-image: none;
}
body:has(#app > .admin-shell) :where(button.primary:disabled) {
  box-shadow: none;
}
body:has(#app > .admin-shell) :where(:focus-visible):not(.chart-panel *) {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
body:has(#app > .admin-shell) :where(.column-list, .table-settings-body) {
  box-shadow: var(--elevation-popover);
  border-radius: 6px;
  z-index: var(--layer-dropdown);
}
body:has(#app > .admin-shell) :where(dialog) {
  box-shadow: var(--elevation-dialog);
  border-color: var(--elevation-border);
  z-index: var(--layer-dialog);
}
body:has(#app > .admin-shell) dialog::backdrop {
  background: #20334b66;
}
body:has(#app > .admin-shell) :where(dialog .modal-head) {
  background: var(--elevation-muted);
}
body:has(#app > .admin-shell) :where(#toast) {
  z-index: var(--layer-toast);
}
body:has(#app > .admin-shell) :where(.record-drawer .page-W21 > .panel) {
  border-radius: 0;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  body:has(#app > .admin-shell) {
    --elevation-motion:0s;
  }
  body:has(#app > .admin-shell) :where(.skeleton) {
    animation: none;
  }
}

/* src/web/styles.css */
:root {
  --primary:#245bc4;
  --primary-hover:#1d4da9;
  --primary-pressed:#183e88;
  --success:#197044;
  --success-surface:#edf7f0;
  --warning:#885209;
  --warning-surface:#fff7e7;
  --danger:#b32e3c;
  --danger-surface:#fff0f1;
  --info-surface:#edf3ff;
  --page-background:#f4f6f8;
  --surface:#fff;
  --surface-secondary:#f8fafb;
  --border:#e0e5eb;
  --border-strong:#8493a5;
  --text-primary:#202d3e;
  --text-secondary:#566579;
  --text-disabled:#6f7b8b;
  --disabled-surface:#edf0f3;
  --sidebar:#f9fafc;
  --sidebar-selected:#e9effb;
  --row-hover:#f5f8fd;
  --radius:8px;
  --radius-sm:4px;
  --radius-overlay:12px;
  --shadow-overlay:0 16px 48px #20334b26;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 14px/1.5 var(--font);
  color: var(--text-primary);
  background: var(--page-background);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  color: var(--text-disabled);
  background: var(--disabled-surface);
  border-color: var(--border-strong);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
a {
  color: var(--primary);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.5px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
}
button,
.button {
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: white;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}
button:hover:not(:disabled),
.button:hover {
  background: var(--row-hover);
}
button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
button.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
button.primary:active {
  background: var(--primary-pressed);
}
button.text {
  border-color: transparent;
  background: transparent;
  color: var(--primary);
  padding: 4px 8px;
}
.danger {
  color: var(--danger);
}
.muted,
small {
  color: var(--text-secondary);
}
small {
  font-size: 12px;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
.sidebar {
  width: 188px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 28px;
  font-size: 18px;
  font-weight: 700;
}
.brand-mark {
  background: var(--primary);
  color: white;
  border-radius: 6px;
  padding: 5px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
}
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  padding: 11px 12px;
  text-decoration: none;
  border-radius: 6px;
  margin: 3px 0;
  font-size: 13px;
}
.nav-link.active {
  color: var(--primary);
  font-weight: 650;
  background: var(--sidebar-selected);
}
.nav-link:hover,
.shell-group:hover {
  background: var(--row-hover);
}
.shell-group {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  list-style: none;
  border-radius: 6px;
}
.shell-group::-webkit-details-marker {
  display: none;
}
.shell-group > span {
  flex: 1;
}
.shell-group > .icon:last-child {
  width: 13px;
}
.sidebar details[open] > .shell-group > .icon:last-child {
  transform: rotate(90deg);
}
.sidebar details .nav-link {
  margin-left: 12px;
}
.sidebar-foot {
  padding: 16px 12px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.workspace {
  margin-left: 188px;
}
.topbar {
  height: 60px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}
.account {
  display: flex;
  gap: 8px;
  align-items: center;
}
.account a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--info-surface);
  color: var(--primary);
  display: inline-grid;
  place-items: center;
}
.page {
  padding: 24px 28px 40px;
  max-width: 1760px;
  margin: auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-heading p {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}
.actions,
.dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dialog-actions {
  margin-top: 24px;
  justify-content: flex-end;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
  min-width: 0;
}
.panel.pad {
  padding: 20px;
}
.panel > h2 {
  margin-bottom: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
  display: block;
  min-height: 122px;
  cursor: default;
}
.stat[data-metric] {
  cursor: pointer;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
}
.stat-value {
  font-size: 28px;
  font-weight: 650;
  margin-top: 8px;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.stat-value small {
  font-size: 13px;
  margin-left: 6px;
  font-weight: 400;
}
.stat-note {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 7px;
}
.stat.incomplete .stat-value {
  font-size: 17px;
  line-height: 1.65;
  color: var(--warning);
}
.dashboard .stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.dashboard.all .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard .stat {
  padding: 16px;
  min-height: 122px;
}
.dashboard .stat-value {
  font-size: 26px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 15px 2px 12px;
  white-space: nowrap;
  color: var(--text-secondary);
  background: transparent;
}
.tabs button[aria-selected=true] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 650;
}
.tabs button:hover {
  background: transparent;
}
.tab-count {
  padding: 0 5px;
  font-size: 11px;
  border-radius: 3px;
  background: var(--surface-secondary);
  margin-left: 3px;
}
.filters {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-grid,
.form-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}
.form-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 7px 10px;
  background: white;
  color: var(--text-primary);
}
.field textarea {
  min-height: 76px;
  resize: vertical;
}
.field input[type=checkbox] {
  width: 18px;
  min-height: 18px;
  margin: 0;
}
.field input[aria-invalid=true],
.field select[aria-invalid=true] {
  border-color: var(--danger);
}
.field-error {
  font-size: 12px;
  color: var(--danger);
}
.full {
  grid-column: 1/-1;
}
.filters details {
  margin-top: 16px;
}
.filters details > summary {
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 16px;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.table-toolbar {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  background: var(--surface-secondary);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 550;
  white-space: nowrap;
}
th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
td {
  white-space: nowrap;
  max-width: 300px;
}
td small {
  display: block;
  color: var(--text-secondary);
  margin-top: 3px;
}
.badge.success {
  background: var(--success-surface);
  color: var(--success);
}
.badge.warning {
  background: var(--warning-surface);
  color: var(--warning);
}
.badge.danger {
  background: var(--danger-surface);
  color: var(--danger);
}
.phone-link {
  text-decoration: none;
  color: var(--text-secondary);
}
.order-link {
  font-size: 12px;
  padding: 0 !important;
}
.page-W22 .stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
td.wrap {
  white-space: normal;
  min-width: 200px;
  overflow-wrap: anywhere;
}
tr:hover td {
  background: var(--row-hover);
}
td .actions {
  flex-wrap: nowrap;
}
td button {
  font-size: 12px;
  min-height: 32px;
  padding: 5px 9px;
}
td .text {
  padding: 0 4px;
}
.badge {
  padding: 4px 7px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 12px;
  color: var(--text-secondary);
}
.pagination > span:first-child {
  margin-right: auto;
}
.pagination select {
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 4px 12px;
  background: white;
  color: var(--text-primary);
}
.column-menu {
  position: relative;
}
.column-menu > summary {
  list-style: none;
  border: 1px solid var(--border-strong);
  padding: 8px 12px;
  border-radius: 4px;
}
.column-list {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 3;
  min-width: 170px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-overlay);
  border-radius: 4px;
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}
.state {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}
.state > .icon {
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
}
.state p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 520px;
}
.state.error strong {
  color: var(--danger);
}
.loading {
  padding: 24px;
  display: grid;
  gap: 16px;
}
.skeleton {
  height: 42px;
  border-radius: 4px;
  background:
    linear-gradient(
      90deg,
      #edf0f3,
      #f8fafb,
      #edf0f3);
  background-size: 200% 100%;
  animation: loading 1.5s linear infinite;
}
.skeleton:nth-child(2) {
  width: 80%;
}
.skeleton:nth-child(3) {
  width: 60%;
}
@keyframes loading {
  to {
    background-position: -200% 0;
  }
}
.banner {
  padding: 12px 16px;
  background: var(--warning-surface);
  border: 1px solid #dfc394;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--warning);
}
.error-banner {
  color: var(--danger);
  background: var(--danger-surface);
  border-color: #e7b6bc;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
}
.detail-field dt {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.detail-field dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.detail-grid dl {
  margin: 0;
}
.detail-actions {
  margin-bottom: 0;
  gap: 0;
}
.detail-actions button {
  border-radius: 4px;
}
.tree-layout,
.dictionary-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}
.tree-item {
  display: block;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  border: 0;
  font-size: 13px;
  margin: 4px 0;
}
.tree-item.active {
  background: var(--sidebar-selected);
  color: var(--primary);
}
.timeline {
  display: grid;
  gap: 18px;
}
.timeline article {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.timeline p {
  margin: 8px 0;
  font-size: 14px;
}
.timeline small {
  font-size: 12px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.permission-grid label {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.permission-grid input {
  margin-top: 4px;
}
.rule-row {
  display: grid;
  grid-template-columns: 180px 160px 190px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.rule-row select {
  min-height: 36px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: white;
}
.permission-tabs {
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
dialog {
  width: min(560px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-overlay);
  color: var(--text-primary);
  overflow: auto;
}
dialog::backdrop {
  background: #18273966;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal-head h2 {
  font-size: 18px;
}
.modal-head button {
  border: 0;
  padding: 6px;
  min-width: 36px;
}
.modal-body {
  padding: 24px;
}
.modal-body .panel {
  margin-bottom: 16px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 24px -24px -24px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: white;
  position: sticky;
  bottom: 0;
  z-index: 1;
}
.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.form-section > legend {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.form-section .form-fields {
  gap: 20px;
}
.help {
  font-size: 12px;
  color: var(--text-secondary);
}
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox-list label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.slot-group {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
}
.slot-group legend {
  padding: 0 8px;
}
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-choice {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
}
.slot-choice:has(input:checked) {
  color: var(--primary);
  background: var(--info-surface);
  border-color: var(--primary);
}
.slot-choice:has(input:disabled) {
  color: var(--text-disabled);
  background: var(--disabled-surface);
  cursor: not-allowed;
}
.slot-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.slot-choice:focus-within {
  outline: 3px solid var(--primary);
}
.slot-choice small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.upload-result {
  font-size: 12px;
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-wrap: anywhere;
}
.upload-row button {
  margin-left: auto;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(850px, calc(100% - 188px));
  max-height: 100dvh;
  height: 100dvh;
  border-radius: 12px 0 0 12px;
}
.drawer .modal-body {
  padding: 24px;
}
.drawer.metric-drawer {
  width: min(760px, calc(100% - 188px));
}
.file-frame {
  height: 65vh;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
}
.file-image-wrap {
  overflow: auto;
  max-height: 65vh;
  text-align: center;
  background: var(--surface-secondary);
}
.file-image-wrap img {
  max-width: none;
  display: inline-block;
  transform-origin: top left;
}
.file-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.file-toolbar input {
  width: 65px;
}
.history-values {
  white-space: normal;
  min-width: 220px;
  max-width: 420px;
  font-size: 12px;
}
.history-values dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  margin: 0;
}
.history-values dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.metric-source {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}
.metric-source .source-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.metric-source p {
  font-size: 13px;
  margin: 8px 0;
}
.metric-total {
  padding: 18px;
  background: var(--info-surface);
  border-radius: 8px;
  margin-bottom: 20px;
}
.metric-total strong {
  font-size: 26px;
  margin: 0 16px;
}
.dashboard-controls {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 12px;
}
.dashboard-controls .field {
  max-width: 155px;
}
.dashboard-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0 20px;
}
.trend-group {
  padding: 20px;
}
.trend-group h2 {
  margin-bottom: 16px;
}
.trend-group > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.trend-bucket {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}
.trend-series {
  display: grid;
  gap: 8px;
}
.trend-bar,
.distribution-bar {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  width: 100%;
  border-color: var(--border);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  isolation: isolate;
}
.trend-bar:after {
  content: "";
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bar-color,#245bc4);
  width: var(--bar-width,0%);
  z-index: -1;
}
.distribution-bar:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  background: #e8f2fa;
  width: var(--bar-width,0%);
  z-index: -1;
}
.distribution {
  display: grid;
  gap: 10px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-grid > .panel {
  padding: 16px;
}
.project-grid h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.project-grid .stats {
  grid-template-columns: 1fr;
  margin: 0;
  gap: 10px;
}
.project-grid .stat {
  min-height: 100px;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.vehicle-card {
  padding: 20px;
}
.vehicle-card h2 {
  font-size: 26px;
}
.vehicle-card .timer {
  font-size: 32px;
  margin: 20px 0;
}
.vehicle-card .actions {
  margin-top: 20px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.login-panel {
  width: min(420px, calc(100% - 32px));
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-overlay);
}
.login-panel .brand {
  padding: 0 0 32px;
}
.login-panel .field {
  margin-top: 20px;
}
.login-panel h1 {
  font-size: 22px;
}
.login-panel button[type=submit] {
  width: 100%;
  margin-top: 24px;
}
.login-panel .help {
  margin-top: 16px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 100;
  max-width: calc(100% - 32px);
  box-shadow: var(--shadow-overlay);
  font-size: 13px;
}
#toast:empty {
  display: none;
}
@media (min-width: 1600px) {
  .vehicle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1279px) {
  .page {
    padding: 24px 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 24px;
  }
  .filter-grid {
    gap: 12px;
  }
  .dashboard .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tree-layout,
  .dictionary-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 168px;
  }
  .workspace {
    margin-left: 168px;
  }
  .stats,
  .dashboard .stats,
  .dashboard.all .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .drawer {
    width: calc(100% - 168px);
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 148px;
  }
  .workspace {
    margin-left: 148px;
  }
  .page {
    padding: 20px 16px;
  }
  .brand {
    font-size: 15px;
    padding-left: 0;
  }
  .brand small {
    font-size: 9px;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .tree-layout,
  .dictionary-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .drawer {
    width: calc(100% - 24px);
  }
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .permission-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rule-row {
    grid-template-columns: 1fr;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .form-fields {
    grid-template-columns: 1fr;
  }
  .trend-bucket {
    grid-template-columns: 1fr;
  }
  .dashboard .stat-value {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 120px;
  max-width: 1056px;
  margin: auto;
  padding: 32px 0;
}
.login-brand .brand {
  padding: 0 0 32px;
}
.login-brand h1 {
  margin-bottom: 0;
}
.login-panel {
  width: 100%;
  padding: 32px;
  box-shadow: none;
  border-radius: 8px;
}
.login-panel h2 {
  font-size: 18px;
  margin-bottom: 24px;
}
.login-panel button[type=submit] {
  width: auto;
  margin-top: 24px;
}
.login-panel [data-forgot] {
  display: flex;
  margin-top: 12px;
}
.login-panel [data-forgot-result]:not(:empty) {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
@media (max-width: 1150px) {
  .login-layout {
    padding: 32px;
    gap: 60px;
  }
}
@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 28px;
    align-content: center;
  }
  .login-brand .brand {
    padding-bottom: 16px;
  }
}
.vehicle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vehicle-card .timer small {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.vehicle-card.overdue {
  border-color: var(--danger);
  background: var(--danger-surface);
}
.vehicle-card.approaching {
  border-color: var(--warning);
  background: var(--warning-surface);
}
.vehicle-card.overdue .timer {
  color: var(--danger);
}
.vehicle-card.approaching .timer {
  color: var(--warning);
}
.vehicle-card.locate {
  outline: 3px solid var(--primary);
}
.card-order {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0;
}
.dispatch-details {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  font-size: 13px;
}
.dispatch-details > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
}
.dispatch-details dt {
  color: var(--text-secondary);
}
.dispatch-details dd {
  margin: 0;
}
.dispatch-fleet-group {
  margin-top: 20px;
}
.dispatch-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.dispatch-fleet-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.dispatch-fleet-number {
  font-size: 18px;
  font-weight: 650;
  justify-self: start;
}
.dispatch-fleet-card > span:last-child {
  grid-column: 1/-1;
}
.sim2-reminder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sim2-reminder-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.sim2-reminder-list h3 {
  font-size: 16px;
}
.sim2-reminder-list p {
  margin: 10px 0;
  font-size: 13px;
}
.trend-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.quick-tabs {
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 0;
}
.quick-tabs button {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 7px 12px;
  min-height: 36px;
  background: white;
}
.quick-tabs button[aria-selected=true] {
  border-color: var(--primary);
  background: var(--info-surface);
  color: var(--primary);
}
.page-W22 .quick-tabs {
  border-top: 0;
}
.section-title {
  padding: 20px 20px 0;
}
.section-note {
  margin: 12px 20px;
  color: var(--text-secondary);
  font-size: 12px;
}
.panel.pad > .section-note {
  margin: 16px 0;
}
.profile-avatar {
  float: right;
  width: 48px;
  height: 48px;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar .icon {
  width: 24px;
  height: 24px;
}
.department-tree-view > .field {
  margin-bottom: 16px;
}
.department-tree,
.department-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.department-tree ul {
  padding-left: 18px;
}
.department-tree-row {
  display: flex;
  align-items: center;
  border-radius: 6px;
  margin: 3px 0;
  min-height: 40px;
}
.department-tree-row.active {
  background: var(--sidebar-selected);
  color: var(--primary);
}
.department-tree .tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  flex: 1;
  text-align: left;
  padding: 8px 6px;
  min-width: 0;
}
.department-tree .tree-item span {
  flex: 1;
  overflow-wrap: anywhere;
}
.department-tree .tree-toggle {
  border: 0;
  background: transparent;
  min-width: 24px;
  width: 24px;
  padding: 4px;
  min-height: 32px;
}
.department-tree .tree-toggle[aria-expanded=true] .icon {
  transform: rotate(90deg);
}
.tree-spacer {
  width: 24px;
  flex-shrink: 0;
}
.department-members {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.department-members li {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.department-members li:last-child {
  border-bottom: 0;
}
.metric-source > small {
  display: block;
  margin: 4px 0;
}
.metric-source .source-key {
  overflow-wrap: anywhere;
}
.metric-source > .actions {
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .page-W22 .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.stat-group {
  min-width: 0;
}
.stat-group > .stat {
  margin: 0;
}
.stat-group > button {
  margin-top: 8px;
}
.department-tree-view [data-tree-body] {
  max-height: 65vh;
  overflow: auto;
}
.stat[data-stat-route] {
  cursor: pointer;
}
.booking-snapshots {
  padding-left: 24px;
  margin: 0;
  display: grid;
  gap: 12px;
}
.finance-timeline {
  padding: 20px;
}
.finance-change {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.finance-change:first-child {
  padding-top: 0;
}
.finance-change summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.finance-change summary > span {
  color: var(--primary);
}
.finance-change p {
  margin: 16px 0;
  font-size: 13px;
}
.finance-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.finance-comparison > section {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.finance-comparison h3 {
  margin-bottom: 16px;
}
.finance-comparison dl {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr);
  gap: 12px;
  margin: 0;
  font-size: 13px;
}
.finance-comparison dt {
  color: var(--text-secondary);
}
.finance-comparison dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.finance-change .actions {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .finance-comparison {
    grid-template-columns: 1fr;
  }
  .finance-change summary {
    flex-direction: column;
  }
}
.record-drawer {
  border-radius: 0;
}
.record-drawer .page-W21 > .page-heading,
.history-dialog .page-W11 > .page-heading {
  display: none;
}
.record-drawer .page-W21 > .panel {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 0;
  margin: 0;
}
.record-drawer .page-W21 > .panel:first-of-type {
  padding-top: 20px;
}
.record-drawer .page-W21 > .panel h2 {
  font-size: 14px;
}
.record-drawer .page-W21 > .panel:last-child {
  border-bottom: 0;
}
.record-drawer .modal-body {
  max-height: calc(100dvh - 148px);
}
.record-drawer .modal-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: white;
}
.record-drawer .page-W21 .section-note {
  margin: 12px 0;
}
.record-drawer .page-W21 .booking-snapshots {
  font-size: 14px;
  padding: 20px 0 20px 40px;
}
.history-dialog .finance-timeline {
  padding: 0;
}
.record-drawer .modal-foot {
  margin: 0;
}
.page-W01 .detail-grid dd {
  margin: 8px 0 0;
}
.workbench-project > .icon {
  color: var(--primary);
  width: 22px;
  height: 22px;
}
.workbench-project p {
  min-height: 0;
}
.workbench-project span {
  margin-top: 12px;
}
.workbench-todos button {
  min-height: 64px;
}
.workbench-todos strong {
  color: var(--text-primary);
}
.page-W05 [data-filter] > .filter-grid {
  grid-template-columns: 1fr;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.panel-heading h2 {
  margin: 0;
}
.table-toolbar > [data-service-batch] {
  margin-left: auto;
}
.page-W03 .detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.page-W31 > .detail-actions,
.page-W41 > .detail-actions,
.page-W43 > .detail-actions,
.page-W45 > .detail-actions,
.page-W51 > .detail-actions,
.page-W53 > .detail-actions,
.page-W55 > .detail-actions {
  margin-bottom: 20px;
}
.panel.pad > .detail-grid + .actions {
  margin-top: 16px;
}
.department-tree-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.department-tree-heading h2 {
  margin: 0;
}
.department-tree-heading button {
  font-size: 12px;
  min-height: 32px;
  padding: 4px 8px;
}
.department-tree-view [data-tree-filter] {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}
.department-tree-view [data-tree-filter] > .field {
  flex: 1;
  min-width: 0;
}
.department-tree-view [data-tree-filter] > button {
  min-height: 36px;
}
.page-W08 [data-holiday-filter] {
  padding: 0;
  margin-bottom: 20px;
}
.page-W08 [data-holiday-filter] > .field {
  max-width: 360px;
}
[data-table-actions] .actions {
  flex-wrap: wrap;
  gap: 8px;
  width: max-content;
  max-width: 520px;
}
[data-table-actions] [data-button-tone] {
  --button-fill:var(--primary);
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--button-fill);
  border-radius: 4px;
  background: var(--button-fill);
  color: var(--surface);
  font-size: 13px;
  line-height: 22px;
  white-space: nowrap;
}
[data-table-actions] [data-button-tone=red] {
  --button-fill:var(--danger);
}
[data-table-actions] [data-button-tone]:hover:not(:disabled) {
  background: var(--button-fill);
  color: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface);
}
[data-table-actions] [data-button-tone=blue]:hover:not(:disabled) {
  background: var(--primary-hover);
}
[data-table-actions] [data-button-tone]:active:not(:disabled) {
  box-shadow: inset 0 0 0 2px var(--surface);
}
[data-table-actions] [data-button-tone]:disabled {
  background: var(--disabled-surface);
  color: var(--text-disabled);
  border-color: var(--border-strong);
  box-shadow: none;
}
.page-W01 .workbench-project {
  display: grid;
  gap: 12px;
}
.page-W01 .workbench-project > .icon {
  width: 24px;
  height: 24px;
}
.page-W01 .workbench-project h2,
.page-W01 .workbench-project span {
  margin: 0;
}
.page-W01 .workbench-project p {
  min-height: 0;
}
.page-W01 .workbench-todos button {
  min-height: 64px;
}
.page-W01 .workbench-todos strong {
  color: var(--text-primary);
}
.page-W02 > .panel {
  max-width: 960px;
}
.profile-avatar {
  width: 40px;
  height: 40px;
}
.page-W02 .panel-heading .profile-avatar {
  float: none;
}
.page-W02 > .page-heading [data-go=W01] {
  color: var(--primary);
}
.page-W03 .tree-layout > .panel {
  padding: 16px;
  align-self: start;
}
.department-tree-view [data-tree-filter] {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.department-tree-heading [data-tree-locate] {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 12px;
}
.department-tree-heading [data-tree-locate]:hover {
  text-decoration: underline;
}
.department-tree li {
  position: relative;
  margin: 4px 0;
}
.department-tree [role=group] {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.department-tree [role=group] > li:before {
  content: "";
  position: absolute;
  left: -12px;
  top: 18px;
  width: 12px;
  border-top: 1px solid var(--border);
}
.department-tree-row {
  gap: 4px;
  min-height: 36px;
  padding: 4px;
  margin: 0;
  border-radius: 4px;
}
.department-tree-row.active {
  box-shadow: inset 3px 0 var(--primary);
}
.department-tree .tree-item {
  padding: 0;
  min-height: 24px;
  gap: 4px;
}
.department-tree .tree-item > .icon {
  width: 16px;
  height: 16px;
}
.department-tree .tree-toggle {
  height: 24px;
  min-height: 24px;
}
.department-tree .tree-toggle .icon {
  width: 12px;
  height: 12px;
}
.department-members {
  list-style: disc;
  margin: 0;
  padding-left: 24px;
}
.department-members li {
  padding: 4px;
  border: 0;
}
.page-W08 > .page-heading .danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--surface);
}
.page-W08 > .page-heading .danger:hover:not(:disabled) {
  background: var(--danger);
  filter: brightness(.94);
}
.filter-actions .applied {
  margin-right: auto;
  font-size: 12px;
  color: var(--text-secondary);
}
.loading.state {
  min-height: 0;
  padding: 72px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.loading.state .state-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
}
.loading.state .state-icon .icon {
  width: 26px;
  height: 26px;
}
.loading.state .skeleton {
  width: 85%;
  height: 16px;
  background: var(--disabled-surface);
  border-radius: 4px;
  margin: 4px;
  animation: none;
}
.loading.state .skeleton:nth-of-type(2) {
  width: 55%;
}
.dashboard.loading {
  display: block;
  padding: 0;
}
.dashboard.loading .stat:disabled {
  background: #fff;
  color: #152a43;
  border-color: #cdd6e0;
}
.dashboard.loading .stat-value {
  font-size: 17px;
  line-height: 1.2;
  color: #152a43;
}
.dashboard.loading .project-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.dashboard.loading .project-grid .stats {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}
.dashboard-loading-state {
  padding: 14px;
  color: #8c3f16;
  background: #fff6ed;
  border-radius: 8px;
}
.page-heading.dispatch-title {
  flex-wrap: wrap;
}
.page-heading.dispatch-title .status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-secondary);
}
.page-heading.dispatch-title .status-line button {
  font-size: 12px;
  min-height: 32px;
}
@media (max-width: 1000px) {
  .page-heading.dispatch-title {
    display: block;
  }
  .page-heading.dispatch-title .status-line {
    margin-top: 14px;
  }
  .page-W03 .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .page-W03 .detail-grid {
    grid-template-columns: 1fr;
  }
}
.state.unauthorized {
  min-height: 0;
  padding: 72px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.state.unauthorized .state-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--surface-secondary);
  border-radius: 50%;
  color: var(--text-secondary);
}
.state.unauthorized .state-icon .icon {
  width: 26px;
  height: 26px;
}
.table-toolbar {
  position: relative;
  justify-content: flex-start;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 4;
}
.table-toolbar > .table-settings {
  margin-left: auto;
}
.table-toolbar > [data-service-batch] {
  margin-left: 0;
}
.table-settings {
  font-size: 12px;
  max-width: 100%;
}
.table-settings > summary {
  list-style: none;
  cursor: pointer;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 500;
}
.table-settings > summary::-webkit-details-marker {
  display: none;
}
.table-settings > summary:after {
  content: "\2304";
  margin-left: 8px;
}
.table-settings[open] > summary {
  color: var(--primary);
  background: var(--selected-surface);
}
.table-settings-body {
  position: absolute;
  right: 12px;
  top: calc(100% - 4px);
  width: 280px;
  max-width: calc(100vw - 48px);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-overlay);
  z-index: 5;
}
.table-settings-body p {
  margin-top: 12px;
  white-space: normal;
}
.table-settings-body select {
  width: 100%;
}
table.frozen-data-table {
  border-collapse: separate;
  border-spacing: 0;
}
table.frozen-data-table th,
table.frozen-data-table td {
  position: static;
  right: auto;
  border-left: 0;
  background: inherit;
}
table.frozen-data-table thead tr {
  background: var(--surface-secondary);
}
table.frozen-data-table tbody tr {
  background: var(--surface);
}
table.frozen-data-table tbody tr[aria-selected=true] {
  background: var(--selected-surface);
}
table.frozen-data-table tbody tr:hover {
  background: var(--row-hover);
}
table.frozen-data-table .table-sequence {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}
table.frozen-data-table .table-frozen {
  position: sticky;
  left: var(--freeze-left);
  z-index: 1;
}
table.frozen-data-table thead .table-frozen {
  z-index: 2;
}
table.frozen-data-table .table-freeze-edge {
  box-shadow: inset -2px 0 var(--border-strong);
}
.table-pagination {
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.table-pagination label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.table-pagination select {
  width: auto;
  min-width: 56px;
  font-size: 12px;
}
.page-W06 .permission-grid {
  gap: 8px 20px;
  margin-top: 16px;
}
.page-W06 .permission-grid label {
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
}
.page-W06 .permission-grid label:hover {
  background: var(--surface-secondary);
}
.page-W06 .permission-grid input,
.page-W06 .rule-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}
.page-W06 .permission-tabs {
  padding: 0;
  margin: 16px 0;
}
.page-W06 .permission-group {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.page-W06 .permission-group > summary {
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
.page-W06 .rule-row {
  grid-template-columns: 1fr 1fr 1.5fr auto;
  gap: 16px;
  padding: 12px 0;
  margin: 0;
}
.page-W06 .rule-row > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.page-W06 .rule-row select {
  min-width: 0;
  width: 100%;
}
.page-W06 .rule-row > .rule-enabled {
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
}
.page-W06 .permission-actions {
  margin: 16px 0;
}
@media (max-width: 1100px) {
  .page-W06 .permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-W06 .rule-row {
    grid-template-columns: 1fr 1fr;
  }
  .page-W06 .rule-enabled {
    justify-self: start;
  }
}
.finance-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(88vh, 960px);
  border: 1px solid #cad5df;
  border-radius: 16px;
  color: #172b3b;
  background: #fff;
  box-shadow: 0 22px 70px #14243340;
}
.finance-dialog::backdrop {
  background: #172b3ba8;
}
.finance-dialog .modal-head {
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid #d9e2ea;
}
.finance-dialog .modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.finance-dialog .modal-body {
  padding: 18px 22px 24px;
  overflow: auto;
}
.finance-dialog button {
  min-height: 40px;
}
.finance-dialog button:focus-visible,
.finance-dialog input:focus-visible,
.finance-dialog select:focus-visible,
.finance-dialog textarea:focus-visible,
.finance-dialog summary:focus-visible {
  outline: 3px solid #2869c8;
  outline-offset: 2px;
}
.history-dialog .page-W11 > .panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.history-dialog .filters {
  padding: 0;
  border: 0;
  margin-bottom: 16px;
}
.history-dialog .filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.history-dialog .filters input,
.history-dialog .filters select {
  min-height: 40px;
  padding: 8px;
}
.history-dialog .finance-change {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d9e2ea;
  border-radius: 10px;
}
.history-dialog .finance-change summary {
  font-weight: 600;
  cursor: pointer;
}
.history-dialog .finance-comparison {
  gap: 14px;
  margin: 16px 0 0;
}
.history-dialog .finance-comparison section {
  padding: 12px;
  border: 1px solid #d9e2ea;
  border-radius: 10px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}
.history-dialog .finance-comparison h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.history-dialog .finance-comparison p {
  margin: 5px 0;
}
.history-dialog .pagination {
  padding: 16px 0;
}
@media (max-width: 640px) {
  .finance-dialog {
    width: calc(100vw - 12px);
    max-height: 94vh;
  }
  .finance-dialog .modal-head,
  .finance-dialog .modal-body {
    padding-inline: 14px;
  }
  .history-dialog .filter-grid,
  .history-dialog .finance-comparison {
    grid-template-columns: 1fr;
  }
}
.finance-dialog .modal-head [data-close] {
  border: 1px solid #cad5df;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
}
.history-dialog .finance-comparison .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history-dialog .finance-comparison .actions button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.finance-dialog [data-fields] {
  gap: 14px;
}
.finance-dialog .finance-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.finance-dialog .finance-compare > section {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid #d9e2ea;
  border-radius: 10px;
  background: #f8fafc;
}
.finance-dialog .finance-compare h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.finance-dialog .finance-compare p {
  margin: 5px 0;
}
.finance-dialog .modal-foot {
  justify-content: flex-start;
  border: 0;
  padding: 0;
  margin: 16px 0 0;
}
.feedback-dialog {
  width: min(560px, calc(100vw - 24px));
}
.feedback-dialog [data-form-source] {
  margin: 0 0 20px;
}
.feedback-dialog [data-fields] > .full {
  margin-top: 8px;
}
.feedback-dialog .feedback-fields {
  gap: 20px 16px;
}
.feedback-dialog .feedback-fields > h3 {
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 16px 0 0;
}
.feedback-dialog .modal-foot {
  justify-content: flex-start;
  position: static;
}
.finance-dialog .finance-compare [data-finance-recalculated] {
  line-height: 1.7;
}
.page-W22 .finance-list-panel > .stats {
  margin: 0;
}
.page-W04 td[data-column-cell] {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-W07 [data-dictionary-category] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-W07 [data-dictionary-category] > small {
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.page-W10 .vehicle-history-filters .filter-grid {
  gap: 16px;
}
.page-W10 .vehicle-history-filters .filter-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .page-W10 .vehicle-history-filters .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .page-W10 .vehicle-history-filters .filter-grid {
    grid-template-columns: 1fr;
  }
}
.page-W10 .badge.info {
  background: var(--info-surface);
  color: var(--primary);
}
.page-W02 .detail-field dt {
  margin-bottom: 6px;
}
.page-W02 .panel > .section-note {
  font-size: 11px;
  line-height: 1.8;
  margin: 12px 0 0;
}
.page-W02 .panel > .actions {
  gap: 12px;
}
.batch-service-toolbar {
  padding: 16px 20px 0;
  margin-top: 0;
  gap: 12px;
}
.batch-service-toolbar span {
  font-size: 12px;
  color: var(--text-secondary);
}
.page-W04 .filter-more {
  margin-top: 16px;
}
.page-W07 [data-dictionary-filter] {
  display: grid;
  gap: 16px;
}
.page-W07 [data-dictionary-filter] .filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 750px) {
  .page-W07 [data-dictionary-filter] .filter-grid {
    grid-template-columns: 1fr;
  }
}
.page-W07 .dictionary-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.page-W07 [data-dictionary-categories] {
  padding: 12px;
  align-self: start;
}
.page-W07 [data-dictionary-category] {
  gap: 12px;
  padding: 12px;
  margin: 0 0 4px;
  font-size: 14px;
  background: transparent;
}
.page-W07 [data-dictionary-category]:hover {
  background: var(--row-hover);
}
.page-W07 [data-dictionary-category][aria-current=true] {
  background: var(--info-surface);
  color: var(--primary);
  font-weight: 600;
}
.page-W07 [data-dictionary-category] > small {
  font-size: 12px;
}
.page-W23 .dispatch-fleet-group {
  margin-top: 16px;
}
.page-W23 .dispatch-fleet-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.page-W23 .dispatch-fleet-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: 12px;
  margin-top: 0;
}
.page-W23 .dispatch-fleet-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 8px 12px;
  background: var(--surface-secondary);
  color: var(--text-primary);
  min-width: 0;
}
.page-W23 .dispatch-fleet-card[data-availability=IDLE] {
  background: var(--info-surface);
  border-color: var(--primary);
}
.page-W23 .dispatch-fleet-card[data-availability=IN_USE] {
  background: var(--disabled-surface);
  border-color: var(--border);
}
.page-W23 .dispatch-fleet-card[data-availability=DISABLED] {
  border-style: dashed;
}
.page-W23 .dispatch-fleet-number {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 650;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  overflow-wrap: anywhere;
  max-width: 100%;
  padding: 0;
}
.page-W23 .dispatch-fleet-card[data-availability=IDLE] .dispatch-fleet-number {
  color: var(--primary);
}
.page-W23 .dispatch-fleet-license {
  align-self: center;
  color: var(--text-secondary);
}
.page-W23 .dispatch-fleet-state {
  grid-column: 1/-1;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .page-W07 .dictionary-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}
@media (max-width: 750px) {
  .page-W07 .dictionary-layout {
    grid-template-columns: 1fr;
  }
  .page-W07 [data-dictionary-categories] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-W07 [data-dictionary-category] {
    width: auto;
    margin: 0;
  }
}
.dashboard .project-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.dashboard .project-grid .stats {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin: 0;
}
.dashboard .project-grid .stat {
  min-height: 104px;
}
.dashboard:not(.loading) .project-grid .stat-value {
  font-size: 20px;
}
.metric-drawer .modal-head {
  align-items: flex-start;
  border-bottom: 0;
  padding: 22px 22px 0;
}
.metric-heading small {
  font-size: 12px;
  color: var(--text-secondary);
}
.metric-heading h2 {
  margin: 4px 0 8px;
}
.metric-drawer .modal-head [data-close] {
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 8px;
}
.metric-drawer .modal-body {
  padding: 0 22px 22px;
}
.metric-drawer .metric-source {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.metric-source .source-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.metric-source .source-identity p {
  margin: 0;
  color: var(--text-secondary);
}
.metric-source .source-identity small {
  overflow-wrap: anywhere;
  color: var(--text-secondary);
}
.metric-source .source-amount {
  display: grid;
  text-align: right;
  gap: 4px;
}
.metric-source .source-amount small {
  font-size: 12px;
  color: var(--text-secondary);
}
.metric-drawer .metric-source > .actions {
  margin-top: 0;
  gap: 6px;
}
.metric-drawer .metric-source > .actions button {
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 8px;
}
@media (max-width: 700px) {
  .metric-drawer .metric-source {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric-source .source-amount {
    text-align: left;
  }
  .metric-drawer .modal-head {
    padding: 16px 16px 0;
  }
  .metric-drawer .modal-body {
    padding: 0 16px 16px;
  }
}
.form-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 24px;
  padding: 16px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.form-summary > div {
  min-width: 0;
}
.form-summary dt {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 6px;
}
.form-summary dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: normal;
}
dialog.drawer[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer > .modal-head {
  flex-shrink: 0;
  position: static;
}
.drawer > .modal-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
}
.drawer > .modal-foot {
  flex-shrink: 0;
  position: static;
  margin: 0;
}
.record-drawer .modal-body {
  max-height: none;
}
.user-picker {
  position: relative;
  min-width: 0;
}
.user-picker > input {
  width: 100%;
  padding-right: 52px;
}
.user-native {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.user-clear {
  position: absolute;
  right: 4px;
  top: 4px;
  min-height: 28px;
  padding: 2px 5px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.user-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 12;
  max-height: 240px;
  overflow: auto;
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-overlay);
}
.user-options > [role=option] {
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.user-options > .active {
  background: var(--info-surface);
}
.user-options > [aria-selected=true] {
  font-weight: 600;
}
.user-options p {
  padding: 12px;
  font-size: 13px;
}
@media (max-width: 540px) {
  .form-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.time-sort {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  min-height: 28px;
  font-size: 11px;
  color: var(--primary);
  white-space: nowrap;
}
.time-sort[data-direction] {
  font-weight: 700;
}
.private-dialog {
  width: min(420px, calc(100vw - 32px));
}
.private-dialog [data-private-value] {
  font-size: 18px;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
  padding: 12px 0;
}

/* src/web/calendar.css */
.common-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 24px;
}
.calendar-toolbar {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.calendar-toolbar .field {
  max-width: 150px;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-weekdays {
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px 8px;
  border-color: var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.calendar-day strong {
  font-size: 16px;
  color: var(--text-primary);
}
.calendar-day.is-closed {
  background: var(--surface-secondary);
}
.calendar-day[aria-pressed=true] {
  border-color: var(--primary);
  background: var(--info-surface);
  color: var(--primary);
}
.calendar-reason {
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.calendar-session {
  margin: 16px 0;
}
.calendar-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.calendar-slots span {
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
  border-radius: 4px;
  padding: 6px 8px;
}
.calendar-template {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.calendar-template summary {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.workbench-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.workbench-project {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
}
.workbench-project h2 {
  margin: 12px 0;
}
.workbench-project p {
  font-size: 12px;
  color: var(--text-secondary);
  min-height: 36px;
}
.workbench-project span {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--primary);
}
.workbench-todos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.workbench-todos button {
  justify-content: space-between;
  min-height: 52px;
}
.workbench-todos strong {
  font-size: 20px;
  color: var(--primary);
}
@media (max-width: 1150px) {
  .common-calendar {
    grid-template-columns: 1fr;
  }
  .workbench-projects,
  .workbench-todos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .calendar-toolbar {
    flex-wrap: wrap;
  }
  .calendar-day {
    min-height: 66px;
  }
  .workbench-projects,
  .workbench-todos {
    grid-template-columns: 1fr;
  }
}
.slot-editor-group {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}
.slot-editor-group legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0 6px;
}
.slot-editor-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.slot-editor-row .field {
  max-width: 180px;
}
.slot-editor-row > span {
  align-self: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.slot-editor-row output {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.dictionary-layout .help {
  margin: 16px 0;
}
.dictionary-layout h2 {
  margin-bottom: 20px;
}

/* src/web/login.css */
.login-layout.login-scene {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 40px clamp(24px, 4vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      #eef8ff0d,
      #f4faff24),
    url(/login-west-lake.webp) center / cover no-repeat,
    #e7f3fc;
}
.login-scene .login-panel {
  grid-column: 2;
  justify-self: center;
  width: min(460px, 100%);
  min-width: 0;
  padding: 42px 40px 40px;
  border: 1px solid #ffffffef;
  border-radius: 24px;
  background: #ffffffc2;
  box-shadow: 0 20px 64px #375f9421, inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.login-scene .login-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-scene .login-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.login-scene .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background:
    linear-gradient(
      145deg,
      #3c9bf4,
      #2266ce);
  box-shadow: 0 5px 14px #2266ce24;
}
.login-scene .brand-mark .icon {
  width: 26px;
  height: 26px;
}
.login-scene h1 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 1px;
  color: #1f3758;
}
.login-scene .login-subtitle {
  margin-top: 14px;
  color: #324c6c;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}
.login-scene .login-description {
  margin-top: 8px;
  color: #536983;
  font-size: 13px;
}
.login-scene .login-field + .login-field {
  margin-top: 20px;
}
.login-scene .login-field label {
  display: block;
  margin-bottom: 8px;
  color: #3a506c;
  font-size: 13px;
  font-weight: 500;
}
.login-scene .login-field label span {
  color: #486587;
}
.login-scene .login-input {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid #a7bdd5;
  border-radius: 10px;
  background: #ffffffd9;
  transition: border-color .15s, box-shadow .15s;
}
.login-scene .login-input > .icon {
  width: 20px;
  height: 20px;
  color: #647f9d;
}
.login-scene .login-input:focus-within {
  border-color: #2b73ce;
  box-shadow: 0 0 0 3px #3288df21;
  background: #fff;
}
.login-scene .login-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #213854;
  outline: none;
  box-shadow: none;
  font-size: 15px;
}
.login-scene .login-input input::placeholder {
  color: #5d738d;
  opacity: 1;
}
.login-scene .login-eye {
  flex-shrink: 0;
  width: 44px;
  min-height: 44px;
  margin-right: -10px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #58728f;
}
.login-scene .login-eye .icon {
  width: 20px;
  height: 20px;
}
.login-scene .login-eye:hover {
  color: #245bc4;
  background: #e9f3fe;
}
.login-scene .login-options {
  display: flex;
  justify-content: flex-end;
  margin: 4px -8px 8px 0;
}
.login-scene .login-options [data-forgot] {
  display: inline-flex;
  margin: 0;
  min-height: 44px;
  color: #245eaf;
  padding: 8px;
  font-size: 13px;
}
.login-scene .login-options [data-forgot]:hover {
  color: #174585;
  background: #eaf3fd;
}
.login-scene button[type=submit] {
  width: 100%;
  min-height: 52px;
  margin: 0;
  border: 1px solid #2873cf;
  border-radius: 10px;
  background:
    linear-gradient(
      100deg,
      #2473cf,
      #2267c9);
  box-shadow: 0 7px 18px #277bd72e;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  transition: box-shadow .15s, background .15s;
}
.login-scene button[type=submit]:hover:not(:disabled) {
  background:
    linear-gradient(
      100deg,
      #226dca,
      #1b58b5);
  box-shadow: 0 9px 22px #277bd740;
}
.login-scene button[type=submit]:active:not(:disabled) {
  background: #1d57af;
}
.login-scene button[type=submit]:disabled {
  color: #fff;
  background: #5274a0;
  border-color: #5274a0;
  box-shadow: none;
  letter-spacing: 1px;
}
.login-scene button:focus-visible {
  outline: 3px solid #245bc4;
  outline-offset: 3px;
}
.login-scene [data-forgot-result]:not(:empty) {
  margin-top: 16px;
  color: #3b5573;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}
.login-scene [data-forgot-result]:empty {
  display: none;
}
.login-scene [data-login-error] .banner {
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
@media (min-width: 1800px) {
  .login-layout.login-scene {
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
    padding-right: 7vw;
  }
  .login-scene .login-panel {
    width: 480px;
    padding: 46px 44px 44px;
  }
}
@media (max-width: 1000px) {
  .login-layout.login-scene {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    gap: 24px;
    padding: 32px;
  }
  .login-scene .login-panel {
    padding: 36px 32px;
  }
}
@media (max-width: 760px) {
  .login-layout.login-scene {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 32px 20px;
    background-position: 34% center;
  }
  .login-scene .login-panel {
    grid-column: 1;
    width: min(440px, 100%);
    padding: 32px 28px;
    border-radius: 22px;
    background: #ffffffdf;
  }
  .login-scene h1 {
    font-size: 27px;
  }
  .login-scene .login-subtitle {
    font-size: 17px;
  }
  .login-scene .login-input input {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .login-layout.login-scene {
    padding: 24px 16px;
  }
  .login-scene .login-panel {
    padding: 30px 22px;
  }
  .login-scene .login-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-scene .login-input,
  .login-scene button[type=submit] {
    transition: none;
  }
}

/* src/web/navigation.css */
.sidebar .nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}
.sidebar .nav-link .nav-icon {
  width: 20px;
  height: 20px;
}
.sidebar .nav-link[data-go=W01] .nav-icon {
  width: 24px;
  height: 24px;
}
.sidebar .shell-group {
  gap: 10px;
}
.sidebar .nav-link {
  gap: 10px;
}
.sidebar .nav-link.active .nav-icon {
  stroke-width: 1.9;
  color: var(--primary);
}

/* src/web/dashboard-charts.css */
.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.dashboard > .page-heading,
.dashboard > .dashboard-controls,
.dashboard > .dashboard-note,
.dashboard > .stats,
.dashboard > .project-grid,
.dashboard > [data-chart-id*=received_amount],
.dashboard > [data-distribution=stage] {
  grid-column: 1/-1;
}
.dashboard .page-heading {
  margin-bottom: 0;
}
.dashboard .page-heading h1 {
  font-size: 28px;
  letter-spacing: .5px;
}
.dashboard .page-heading p {
  color: #607086;
  margin-top: 8px;
}
.dashboard .panel {
  margin: 0;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px #24436c05;
}
.dashboard .dashboard-controls {
  padding: 18px 20px;
  gap: 10px;
  flex-wrap: wrap;
}
.dashboard .dashboard-controls button {
  min-height: 38px;
  border-radius: 6px;
}
.dashboard .dashboard-controls input,
.dashboard .dashboard-controls select {
  border-radius: 6px;
}
.dashboard .dashboard-note {
  margin: 0;
  font-size: 12px;
  color: #596c83;
}
.dashboard > .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.dashboard .stat {
  min-width: 0;
  min-height: 130px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  padding: 19px 20px;
  background: #fff;
  text-align: left;
  display: block;
  position: relative;
}
.dashboard .stat:before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: 3px;
  height: 28px;
  background: #245bc4;
  border-radius: 0 3px 3px 0;
}
.dashboard .stat:hover:not(:disabled) {
  border-color: #83a6d5;
  background: #f9fbff;
  box-shadow: 0 4px 12px #245bc40c;
}
.dashboard .stat-label {
  font-size: 13px;
  color: #53647b;
  font-weight: 500;
}
.dashboard .stat-value {
  margin-top: 10px;
  font-size: 27px;
  color: #183b65;
  line-height: 1.35;
  letter-spacing: -.3px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.dashboard .stat-value small {
  font-size: 12px;
  margin-left: 6px;
  color: #607086;
  font-weight: 400;
}
.dashboard .stat-note {
  font-size: 11px;
  margin-top: 10px;
  color: #607086;
  line-height: 1.5;
}
.dashboard .stat:disabled {
  color: inherit;
  background: #fff;
  border-color: #dce4ed;
  cursor: default;
  box-shadow: none;
}
.dashboard .stat.incomplete:before {
  background: #9aabbe;
}
.dashboard .stat.incomplete .stat-value {
  font-size: 17px;
  color: #152a43;
}
.dashboard .chart-panel {
  padding: 22px 24px;
  min-width: 0;
  overflow: hidden;
}
.dashboard .chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.dashboard .chart-heading h2 {
  font-size: 16px;
  font-weight: 650;
  color: #243a54;
}
.dashboard .chart-heading p {
  color: #607086;
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.7;
}
.dashboard .chart-kind {
  font-size: 11px;
  color: #536c8d;
  border: 1px solid #dce6f3;
  background: #f5f8fe;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.dashboard .chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.dashboard .chart-legend button {
  padding: 6px 10px;
  min-height: 38px;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  font-size: 12px;
  gap: 8px;
  color: #425974;
}
.dashboard .chart-legend button strong {
  color: #1e3b5e;
  font-variant-numeric: tabular-nums;
}
.dashboard .chart-legend button[aria-pressed=false] {
  background: #f4f6f9;
  color: #68788c;
  text-decoration: line-through;
}
.dashboard .legend-swatch {
  width: 18px;
  border-top: 3px solid var(--series-color);
  display: block;
}
.dashboard .legend-swatch[data-pattern="1"] {
  border-top-style: dashed;
}
.dashboard .legend-swatch[data-pattern="2"] {
  border-top-style: dotted;
}
.dashboard .chart-readout {
  font-size: 12px;
  color: #53647b;
  min-height: 36px;
  line-height: 1.6;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.dashboard .chart-scroll {
  width: 100%;
  overflow: auto;
}
.dashboard .time-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  min-height: 230px;
}
.dashboard .chart-axis {
  fill: #596e88;
  font-size: 14px;
  font-family: var(--font);
}
.dashboard .chart-gridline {
  stroke: #e9eef5;
  stroke-width: 1;
}
.dashboard .chart-zero {
  stroke: #9babbd;
  stroke-width: 1.3;
  stroke-dasharray: 4 3;
}
.dashboard .chart-line {
  vector-effect: non-scaling-stroke;
}
.dashboard .chart-point {
  cursor: pointer;
  outline: none;
}
.dashboard .chart-point .point-mark {
  stroke: #fff;
  stroke-width: 1.5;
}
.dashboard .chart-point:hover .point-mark,
.dashboard .chart-point:focus .point-mark {
  stroke: var(--series-color);
  stroke-width: 3;
  filter: drop-shadow(0 0 3px #245bc466);
}
.dashboard .chart-value-label {
  fill: #334f70;
  font-size: 13px;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.dashboard .chart-table {
  border-top: 1px solid #e4ebf3;
  margin-top: 14px;
  padding-top: 12px;
  font-size: 12px;
  color: #425974;
}
.dashboard .chart-table summary {
  min-height: 32px;
  display: list-item;
  cursor: pointer;
}
.dashboard .chart-table table {
  font-size: 12px;
}
.dashboard .chart-table caption {
  text-align: left;
  padding: 12px 0;
  color: #53647b;
}
.dashboard .chart-table th,
.dashboard .chart-table td {
  padding: 10px 12px;
  white-space: normal;
}
.dashboard .chart-note {
  font-size: 12px;
  color: #596e88;
  margin-top: 14px;
  line-height: 1.7;
}
.dashboard .chart-empty,
.dashboard .chart-notice,
.dashboard .chart-loading {
  padding: 32px 20px;
  border-radius: 8px;
  background: #f6f9fd;
  color: #546b87;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  min-height: 100px;
  display: grid;
  place-content: center;
}
.dashboard .chart-notice[data-chart-state=FAILED] {
  color: #9d3d35;
  background: #fff4f2;
}
.dashboard .distribution {
  display: grid;
  gap: 8px;
}
.dashboard .distribution-bar {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(70px, 2fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 46px;
  padding: 8px 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  overflow: visible;
  font-size: 13px;
  color: #425974;
}
.dashboard .distribution-bar:before {
  display: none;
}
.dashboard .distribution-bar:disabled {
  background: transparent;
  color: #607086;
  cursor: default;
}
.dashboard .distribution-bar:hover:not(:disabled) {
  background: #f6f9fd;
}
.dashboard .category-label {
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.dashboard .category-track {
  height: 10px;
  border-radius: 4px;
  background: #edf2f8;
  overflow: hidden;
  display: block;
}
.dashboard .category-track > span {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.dashboard .distribution-bar strong {
  color: #243f61;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  min-width: 45px;
  text-align: right;
}
.dashboard .distribution-bar strong small {
  font-size: 11px;
  font-weight: 400;
  color: #607086;
  display: inline;
  margin-left: 5px;
}
.dashboard .receipt-share-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.dashboard .receipt-donut {
  width: 100%;
  max-width: 220px;
  justify-self: center;
}
.dashboard .donut-label {
  font-size: 12px;
  fill: #607086;
}
.dashboard .donut-total {
  font-size: 15px;
  font-weight: 650;
  fill: #183b65;
}
.dashboard .donut-segment {
  cursor: pointer;
}
.dashboard [data-receipt-shares] g:focus {
  outline: none;
}
.dashboard [data-receipt-shares] g:focus .donut-segment {
  stroke-width: 32;
}
.dashboard [data-receipt-shares] .distribution-bar {
  grid-template-columns: 70px minmax(40px, 1fr) auto;
  gap: 10px;
}
.dashboard [data-receipt-shares] .distribution-bar strong small {
  display: block;
  margin: 3px 0 0;
}
.dashboard .project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dashboard .project-grid > .panel {
  padding: 22px 24px;
  min-width: 0;
}
.dashboard .project-grid h2 {
  margin-bottom: 18px;
  font-size: 16px;
}
.dashboard .project-grid h2 button {
  font-size: 12px;
  min-height: 32px;
  color: #245bc4;
  background: #f5f8fe;
  border-color: #dbe5f3;
  border-radius: 5px;
}
.dashboard .project-grid .stats {
  grid-template-columns: repeat(2, minmax(175px, 1fr));
  gap: 10px;
}
.dashboard .project-grid .stat {
  min-height: 110px;
  padding: 14px 16px;
  background: #f9fbfe;
  border-color: #e4ebf3;
}
.dashboard .project-grid .stat:before {
  display: none;
}
.dashboard .project-grid .stat-value {
  font-size: 20px;
  margin-top: 7px;
}
.dashboard .project-grid .stat-label {
  font-size: 12px;
}
.dashboard .project-grid .stat-note {
  font-size: 10px;
  margin-top: 7px;
}
.dashboard .pagination {
  margin-top: 16px;
  font-size: 12px;
}
.metric-drawer .metric-detail .metric-total {
  background: #f2f7ff;
  border: 1px solid #dbe7f7;
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0 20px;
}
.metric-drawer .metric-detail .metric-total strong {
  color: #1e4b85;
  font-variant-numeric: tabular-nums;
}
.metric-drawer .metric-detail .metric-source {
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.metric-drawer .metric-detail table {
  width: 100%;
  min-width: 680px;
  font-size: 12px;
}
.metric-drawer .metric-detail td {
  padding: 14px 12px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.metric-drawer .metric-detail .source-key {
  font-size: 10px;
  display: block;
  color: #64758a;
  margin-top: 8px;
}
.metric-drawer .metric-detail .source-amount strong {
  white-space: nowrap;
  font-size: 15px;
  color: #183b65;
}
.metric-drawer .metric-detail .source-amount small {
  display: block;
  margin-top: 6px;
  line-height: 1.7;
}
.metric-drawer .metric-detail .source-identity p {
  margin: 6px 0;
}
.metric-drawer .metric-detail .actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.metric-drawer .metric-detail .actions button {
  min-height: 34px;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 1250px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard .receipt-share-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 1000px) {
  .dashboard > .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard .chart-panel {
    padding: 18px;
  }
  .dashboard .stat-value {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .dashboard .chart-heading {
    gap: 8px;
  }
  .dashboard .chart-kind {
    display: none;
  }
  .dashboard .receipt-share-layout {
    grid-template-columns: 1fr;
  }
  .dashboard .chart-scroll {
    overflow: auto;
  }
  .dashboard .time-chart {
    min-width: 560px;
  }
  .dashboard .project-grid .stats {
    grid-template-columns: 1fr;
  }
  .dashboard .distribution-bar {
    grid-template-columns: 90px minmax(50px, 1fr) auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard * {
    scroll-behavior: auto;
  }
}
.metric-drawer.drawer {
  width: min(940px, calc(100% - 188px));
}
.metric-drawer .metric-detail .metric-source {
  display: table-row;
}
.metric-drawer .metric-detail .source-identity,
.metric-drawer .metric-detail .source-amount {
  display: table-cell;
  text-align: left;
}
.metric-drawer .metric-detail table caption {
  text-align: left;
  color: #607086;
  padding: 14px 0;
  font-size: 12px;
}
.metric-drawer .metric-detail th {
  padding: 12px;
  background: #f5f8fc;
}
.dashboard .time-chart {
  max-height: 320px;
}
/*# sourceMappingURL=main.css.map */
