/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --spacing: 0.25rem;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-danger: #e5534b;
    --color-danger-soft: #fef2f2;
    --color-warning: #d4940a;
    --color-warning-bg: #fff7ed;
    --color-warning-soft: #fefce8;
    --color-success: #1a9a6b;
    --color-success-soft: #ecfdf5;
    --color-info: #3b82f6;
    --shadow-card: none;
    --shadow-elevated: none;
    --shadow-float: none;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mb-1 {
    margin-bottom: calc(var(--spacing) * 1);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .ml-2 {
    margin-left: calc(var(--spacing) * 2);
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .flex-shrink {
    flex-shrink: 1;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .resize {
    resize: both;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-l-3 {
    border-left-style: var(--tw-border-style);
    border-left-width: 3px;
  }
  .border-l-\[var\(--color-accent\)\] {
    border-left-color: var(--color-accent);
  }
  .border-l-\[var\(--color-money-inflow\)\] {
    border-left-color: var(--color-money-inflow);
  }
  .border-l-\[var\(--color-money-neutral\)\] {
    border-left-color: var(--color-money-neutral);
  }
  .border-l-\[var\(--color-money-outflow\)\] {
    border-left-color: var(--color-money-outflow);
  }
  .border-l-\[var\(--color-success\)\] {
    border-left-color: var(--color-success);
  }
  .border-l-\[var\(--color-warning\)\] {
    border-left-color: var(--color-warning);
  }
  .border-l-\[var\(--color-warning-light\)\] {
    border-left-color: var(--color-warning-light);
  }
  .p-0 {
    padding: calc(var(--spacing) * 0);
  }
  .font-mono {
    font-family: var(--font-mono);
  }
  .text-\[10px\] {
    font-size: 10px;
  }
  .text-\[11px\] {
    font-size: 11px;
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .break-all {
    word-break: break-all;
  }
  .text-\[var\(--text-secondary\)\] {
    color: var(--text-secondary);
  }
  .text-danger {
    color: var(--color-danger);
  }
  .text-success {
    color: var(--color-success);
  }
  .uppercase {
    text-transform: uppercase;
  }
  .italic {
    font-style: italic;
  }
  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
  }
  .line-through {
    text-decoration-line: line-through;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
  .select-all {
    -webkit-user-select: all;
    user-select: all;
  }
}
:root {
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --shadow-card: none;
  --shadow-elevated: none;
  --shadow-float: none;
  --bg-deep: #f5f5f5;
  --bg-card: #ffffff;
  --bg-elevated: #fafafa;
  --bg-hover: #f0f0f0;
  --bg-active: #e8e8e8;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-default: #e8e8e8;
  --border-strong: #d0d0d0;
  --white: #ffffff;
  --color-money-inflow: var(--color-success);
  --color-money-outflow: var(--color-danger);
  --color-money-neutral: var(--text-muted);
  --color-accent: #16a34a;
  --color-accent-strong: #15803d;
  --color-accent-muted: #dcfce7;
  --color-accent-bg: #f0fdf4;
  --color-accent-text: #15803d;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e8e8e8;
  --sidebar-text: #666666;
  --sidebar-text-active: #1a1a1a;
  --sidebar-item-active: #f0fdf4;
  --sidebar-item-hover: #f5f5f5;
  --sidebar-accent: #16a34a;
  --tag-green-bg: #dcfce7;
  --tag-green-text: #15803d;
  --tag-red-bg: #fef2f2;
  --tag-red-text: #dc2626;
  --tag-blue-bg: #eff6ff;
  --tag-blue-text: #2563eb;
  --tag-orange-bg: #fefce8;
  --tag-orange-text: #a16207;
  --tag-gray-bg: #f3f4f6;
  --tag-gray-text: #6b7280;
  --color-modified: #3b82f6;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}
.sidebar-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.page {
  width: 100%;
  min-height: 100%;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.page-header h2 {
  font-size: 18px;
  font-weight: 700;
}
.page-header p {
  font-size: 13px;
  color: var(--text-secondary);
}
.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.btn-danger {
  color: var(--color-danger);
  border-color: var(--color-danger);
}
.btn-danger:hover {
  background: var(--color-danger-soft);
}
.btn-ghost {
  border: none;
  background: none;
  color: var(--color-accent);
}
.btn-ghost:hover {
  background: var(--color-accent-bg);
}
.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.table-scroll {
  overflow: auto;
}
.table-scroll-y {
  max-height: var(--table-scroll-y-max-height, 280px);
  overflow: auto;
  border: 1px solid var(--border-default);
}
.table-scroll-y .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border-default);
}
.table-scroll-y .data-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--bg-elevated);
  box-shadow: 0 -1px 0 var(--border-default), 0 -6px 8px rgba(255, 255, 255, 0.9);
}
.table-scroll-y .data-table tfoot .row-total td {
  font-weight: 700;
}
.order-detail-lines-scroll {
  --table-scroll-y-max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.order-modal-lines-scroll {
  --table-scroll-y-max-height: min(36vh, 300px);
}
.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
}
.data-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-default);
}
.data-table-tight-thead thead th {
  padding-top: 4px;
  padding-bottom: 4px;
}
.data-table tbody tr {
  transition: background 0.1s;
}
.data-table tbody tr:hover {
  background: var(--bg-hover);
}
.data-table .row-total {
  font-weight: 700;
  background: var(--bg-elevated);
}
.clickable-row {
  cursor: pointer;
}
.truncate-cell {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.truncate-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}
.truncate-with-badge > .truncate-cell {
  flex: 1 1 auto;
  min-width: 0;
}
.truncate-with-badge > :not(.truncate-cell) {
  flex: 0 0 auto;
}
.truncate-with-badge > .truncate-with-badge {
  flex: 1 1 auto;
  min-width: 0;
}
.col-name   > .truncate-cell, .col-name   > .truncate-with-badge,
.col-name.truncate-cell, .col-name.truncate-with-badge {
  max-width: 200px;
}
.col-sku    > .truncate-cell, .col-sku    > .truncate-with-badge,
.col-sku.truncate-cell,  .col-sku.truncate-with-badge {
  max-width: 160px;
}
.col-code   > .truncate-cell, .col-code   > .truncate-with-badge,
.col-code.truncate-cell, .col-code.truncate-with-badge {
  max-width: 180px;
}
.col-remark > .truncate-cell, .col-remark > .truncate-with-badge,
.col-remark.truncate-cell, .col-remark.truncate-with-badge {
  max-width: 240px;
}
@media (max-width: 480px) {
  .col-name   > .truncate-cell, .col-name   > .truncate-with-badge,
  .col-name.truncate-cell, .col-name.truncate-with-badge {
    max-width: 140px;
  }
  .col-sku    > .truncate-cell, .col-sku    > .truncate-with-badge,
  .col-sku.truncate-cell,  .col-sku.truncate-with-badge {
    max-width: 120px;
  }
  .col-code   > .truncate-cell, .col-code   > .truncate-with-badge,
  .col-code.truncate-cell, .col-code.truncate-with-badge {
    max-width: 140px;
  }
  .col-remark > .truncate-cell, .col-remark > .truncate-with-badge,
  .col-remark.truncate-cell, .col-remark.truncate-with-badge {
    max-width: 160px;
  }
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.modal, .modal-body {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  width: min(560px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--border-default);
}
.modal-sm {
  width: min(400px, 100%);
}
.modal-lg {
  width: min(900px, 100%);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  font-weight: 600;
  font-size: 15px;
}
.modal-title {
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.modal-body {
  padding: 16px;
  border: none;
  border-radius: 0;
  width: auto;
  max-height: none;
  overflow-y: visible;
  box-shadow: none;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-default);
}
.form-group {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.form-label .required, .form-required {
  color: var(--color-danger);
}
.form-input, .form-select {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-accent-muted);
}
.form-input:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.tag-green {
  color: var(--tag-green-text);
  background: var(--tag-green-bg);
}
.tag-red {
  color: var(--tag-red-text);
  background: var(--tag-red-bg);
}
.tag-blue {
  color: var(--tag-blue-text);
  background: var(--tag-blue-bg);
}
.tag-orange {
  color: var(--tag-orange-text);
  background: var(--tag-orange-bg);
}
.tag-gray {
  color: var(--tag-gray-text);
  background: var(--tag-gray-bg);
}
.ledger-row-reversed {
  opacity: 0.45;
  text-decoration: line-through;
}
.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.filter-bar input, .filter-bar select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-primary);
}
.filter-bar input {
  width: 200px;
}
.filter-bar input:focus, .filter-bar select:focus {
  border-color: var(--color-accent);
  outline: none;
}
.filter-select, .filter-input {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
}
.filter-select:focus, .filter-input:focus {
  border-color: var(--color-accent);
  outline: none;
}
.filter-reset {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 12px;
  background: var(--bg-card);
  color: var(--color-accent);
  cursor: pointer;
  font-family: inherit;
}
.filter-reset:hover {
  background: var(--bg-hover);
}
.section-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-default);
}
.order-demand-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.order-demand-section > .filter-bar,
.order-demand-section > .op-batch-bar {
  flex-shrink: 0;
}
.order-demand-section > .table-scroll {
  flex: 1 1 auto;
  min-height: 0;
}
.section-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.section-card-title {
  font-size: 15px;
  font-weight: 700;
}
.section-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.summary-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-default);
}
.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.summary-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 2px;
}
.summary-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.empty-state-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}
.empty-state-text {
  font-weight: 600;
  font-size: 14px;
}
.empty-state-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.empty-state-error .empty-state-icon {
  color: var(--color-danger);
  opacity: 1;
}
.empty-state-error .empty-state-text {
  color: var(--text-primary);
}
.empty-state-error .empty-state-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}
.auth-redirect-state {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-primary);
  font-size: 13px;
}
.toast-msg, .toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-default);
  z-index: 2000;
}
.toast-msg.toast-error {
  border-color: var(--color-danger);
  color: var(--color-danger);
}
.toast-msg.toast-success {
  border-color: var(--color-success, #22c55e);
  color: var(--color-success, #16a34a);
}
.toast-msg.toast-warning {
  border-color: var(--color-warning, #f59e0b);
  color: var(--color-warning, #d97706);
}
.toast.show {
  display: block;
}
.batch-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  z-index: 100;
  border-radius: var(--radius-lg);
}
.batch-checkbox {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--color-accent);
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.chip-muted {
  color: var(--text-muted);
}
.action-link {
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  padding: 2px 6px;
  text-decoration: none;
  transition: color 0.15s, text-decoration-color 0.15s, outline-color 0.15s;
}
button.action-link {
  background: none;
  border: none;
  font-family: inherit;
  line-height: inherit;
}
a.action-link:visited {
  color: var(--text-primary);
}
.action-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.action-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.action-link-danger {
  color: var(--color-danger);
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  padding: 2px 6px;
  transition: background 0.15s, opacity 0.15s, outline-color 0.15s;
}
button.action-link-danger {
  background: none;
  border: none;
  font-family: inherit;
  line-height: inherit;
}
a.action-link-danger {
  text-decoration: none;
}
a.action-link-danger:visited {
  color: var(--color-danger);
}
.action-link-danger:hover {
  background: var(--color-danger-soft, #fef2f2);
  opacity: 1;
}
.action-link-danger:focus-visible {
  outline: 2px solid var(--color-danger);
  outline-offset: 1px;
  background: var(--color-danger-soft, #fef2f2);
}
.dict-type-row {
  background: var(--color-accent-bg, #f0fdf4);
  border-left: 3px solid var(--color-accent, #22c55e);
  border-bottom: 2px solid var(--border-default);
}
.dict-type-row:hover {
  background: var(--color-accent-bg, #f0fdf4) !important;
}
.dict-type-row td {
  font-weight: 600;
}
.dict-type-row + .dict-type-row {
  margin-top: 8px;
}
.dict-row {
  border-bottom: 1px solid var(--border-default);
}
.dict-row-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dict-row-actions .action-sep {
  color: var(--border-strong);
  font-size: 10px;
  user-select: none;
}
.dict-row-actions .action-link,
.dict-row-actions .action-link-danger {
  padding: 2px 6px;
  border-radius: 0;
}
.dict-row-actions .action-link:hover {
  background: var(--color-accent-bg);
  opacity: 1;
}
.dict-row-actions .action-link-danger:hover {
  background: var(--color-danger-soft);
  opacity: 1;
}
.mat-cell-data:hover {
  background: var(--color-accent-bg, #eff6ff) !important;
  box-shadow: inset 0 0 0 1.5px var(--color-accent, #3b82f6);
}
.mat-cell-empty:hover {
  background: var(--bg-hover, #f9fafb) !important;
  box-shadow: inset 0 0 0 1px var(--color-accent, #3b82f6);
}
.mat-cell-empty:hover span {
  color: var(--color-accent, #3b82f6) !important;
}
.version-chip-inline {
  cursor: pointer;
}
.version-chip-inline .version-chip-actions {
  display: none;
}
.version-chip-inline:hover .version-chip-actions {
  display: inline-flex !important;
}
.badge-card-hover:hover {
  background: #f0fdf4 !important;
}
.detail-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
}
.detail-label {
  width: 90px;
  color: var(--text-secondary);
  font-weight: 500;
}
.detail-value {
  font-weight: 600;
}
.text-muted {
  color: var(--text-muted);
}
.text-danger {
  color: var(--color-danger);
}
.text-success {
  color: var(--color-success);
}
.text-green {
  color: var(--color-success);
  font-weight: 700;
}
.text-warning {
  color: var(--color-warning);
}
.amount-positive {
  color: var(--color-success);
  font-weight: 700;
}
.amount-negative {
  color: var(--color-danger);
  font-weight: 700;
}
.money-inflow {
  color: var(--color-money-inflow);
  font-weight: 700;
}
.money-outflow {
  color: var(--color-money-outflow);
  font-weight: 700;
}
.money-neutral {
  color: var(--color-money-neutral);
  font-weight: 700;
}
.font-mono {
  font-family: var(--font-mono);
}
.kpi-bar {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
  background: var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.kpi-bar-cell {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-bar-cell:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.kpi-bar-cell:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.kpi-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.kpi-bar-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.kpi-bar-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.kpi-clickable:hover {
  background: var(--bg-hover);
  transition: background 0.15s ease;
}
.collapse-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  transition: background 0.12s;
}
.collapse-header:hover {
  background: var(--bg-hover);
}
.collapse-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.collapse-chevron.open {
  transform: rotate(90deg);
}
.collapse-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.collapse-count {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 1px 8px;
  border-radius: 100px;
}
.collapse-body {
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--bg-card);
}
.th-upper {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px !important;
}
.cell-mono {
  font-family: var(--font-mono);
}
.cell-right {
  text-align: right;
}
.cell-center {
  text-align: center;
}
.cell-narrow {
  width: 36px;
  padding: 4px 8px !important;
}
.tab-inline {
  display: inline-flex;
  gap: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  overflow: hidden;
}
.tab-inline-item {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  border-right: 1px solid var(--border-default);
  transition: all 0.12s;
}
.tab-inline-item:last-child {
  border-right: none;
}
.tab-inline-item:hover {
  color: var(--color-accent);
  background: var(--bg-hover);
}
.tab-inline-item.active {
  color: #fff;
  background: var(--color-accent);
  font-weight: 600;
}
.detail-header {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.detail-header .tag {
  margin-right: 8px;
}
.balance-positive {
  color: var(--color-warning);
  font-weight: 700;
}
.balance-negative {
  color: var(--color-accent);
  font-weight: 700;
}
.balance-zero {
  color: var(--text-muted);
  font-weight: 600;
}
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-default);
  margin-bottom: 16px;
}
.tab-bar-item {
  padding: 8px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color 0.12s;
}
.tab-bar-item:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.tab-bar-item.active {
  font-weight: 700;
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.check-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
}
.th-sortable {
  cursor: pointer;
  user-select: none;
}
.th-sortable.active {
  color: var(--color-accent);
}
.btn-danger-fill {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
.btn-danger-fill:hover {
  opacity: 0.85;
}
.table-select-bar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.progress-bar-fill.warning {
  background: var(--color-warning);
}
.progress-bar-fill.danger {
  background: var(--color-danger);
}
.settle-basket {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent-muted);
  background: var(--color-accent-bg);
}
.settle-basket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.settle-basket-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-text);
}
.settle-basket-amount {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-accent-text);
}
.error-banner {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--color-danger-soft);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.warning-banner {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--color-warning-soft);
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes flashGreen {
  0% {
    background: var(--color-accent-bg);
  }
  100% {
    background: transparent;
  }
}
.flash-success {
  animation: flashGreen 0.6s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in {
  animation: fadeIn 0.2s ease-out;
}
.clickable {
  cursor: pointer;
}
.page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dash {
  --accent: var(--color-accent);
  --accent-strong: var(--color-accent-strong);
  --accent-muted: var(--color-accent-muted);
  --accent-bg: var(--color-accent-bg);
  --danger: var(--color-danger);
  --warning: var(--color-warning);
  --success: var(--color-success);
  --mono: var(--font-mono);
  --card-bg: var(--bg-card);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-card);
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-default);
  animation: dashToastIn 0.25s ease-out;
}
@keyframes dashToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  flex-wrap: nowrap;
  min-height: 0;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}
.toolbar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.toolbar-pipe {
  color: var(--border-default);
  font-size: 16px;
  font-weight: 300;
  flex-shrink: 0;
  user-select: none;
}
.range-group {
  display: flex;
  flex-shrink: 0;
}
.range-btn {
  padding: 4px 14px;
  border: 1px solid var(--border-default);
  border-radius: 0;
  margin-left: -1px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.range-btn.first {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  margin-left: 0;
}
.range-btn.last {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.range-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  z-index: 1;
  position: relative;
}
.range-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--white);
  font-weight: 600;
  z-index: 2;
  position: relative;
}
.toolbar-date-inline {
  flex-shrink: 0;
}
.date-range-pill {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 400;
  background: var(--bg-elevated);
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-input {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-mono);
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
}
.date-input:focus {
  border-color: var(--color-accent);
  outline: none;
}
.date-sep {
  color: var(--text-muted);
  font-size: 12px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.qa-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.qa-dot-sep {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 8px;
  user-select: none;
  line-height: 1;
}
.qa-link {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
}
.qa-link:hover {
  color: var(--color-accent);
}
.stat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.stat-card:hover {
  box-shadow: var(--shadow-elevated);
}
.stat-card-hero {
  grid-row: 1 / 3;
  grid-column: 1;
  padding: 20px 24px;
  background: linear-gradient(160deg, var(--color-accent-bg) 0%, var(--bg-card) 100%);
  justify-content: center;
  border-left: 4px solid var(--color-accent);
}
.stat-card-hero .stat-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.15;
}
.stat-card-hero .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.stat-card-hero .stat-sub {
  font-size: 12px;
}
.stat-card-secondary {
  padding: 12px 16px;
}
.stat-card-secondary .stat-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.2;
}
.stat-card-secondary .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.stat-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.stat-dot-brand {
  background: var(--color-accent);
}
.stat-dot-warning {
  background: var(--color-warning);
}
.stat-dot-danger {
  background: var(--color-danger);
}
.stat-dot-success {
  background: var(--color-success);
}
.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.stat-sub.up {
  color: var(--color-success);
}
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card-panel {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 180px;
}
.card-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
}
.card-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.card-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.card-panel-body {
  padding: 0;
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}
.empty-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 6px;
}
.empty-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.empty-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.empty-cta {
  margin-top: 4px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}
.empty-cta:hover {
  color: var(--color-accent-strong);
  text-decoration: underline;
}
.empty-text {
  font-size: 13px;
  color: var(--text-muted);
}
.empty-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.todo-list {
  display: flex;
  flex-direction: column;
}
.todo-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.12s;
}
.todo-group-header:hover {
  background: var(--bg-hover);
}
.todo-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.todo-chevron.open {
  transform: rotate(90deg);
}
.todo-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.todo-dot-brand {
  background: var(--color-accent);
}
.todo-dot-warning {
  background: var(--color-warning);
}
.todo-dot-danger {
  background: var(--color-danger);
}
.todo-dot-success {
  background: var(--color-success);
}
.todo-group-label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.todo-group-count {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 1px 8px;
  border-radius: 100px;
}
.todo-items {
  display: flex;
  flex-direction: column;
}
.todo-item-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.12s;
}
.todo-item-wrapper:hover {
  background: var(--color-accent-bg);
}
.todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 46px;
  flex: 1;
  cursor: pointer;
}
.todo-item-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.todo-item-arrow {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.todo-item:hover .todo-item-arrow {
  opacity: 1;
}
.todo-goto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.todo-goto-btn:hover {
  color: var(--color-accent-strong);
  background: var(--bg-hover);
}
.timeline {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.tl-row {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  min-height: 0;
}
.tl-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
  flex-shrink: 0;
  padding-top: 4px;
}
.tl-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}
.tl-line {
  flex: 1;
  width: 1.5px;
  background: var(--color-accent-muted);
  margin: 3px 0;
  min-height: 16px;
}
.tl-content {
  flex: 1;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.tl-tag {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.tl-tag-brand {
  background: var(--color-accent-muted);
  color: var(--color-accent-strong);
}
.tl-tag-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.tl-tag-warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}
.tl-tag-danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.tl-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: normal;
  word-break: break-all;
}
.tl-desc-link {
  cursor: pointer;
  transition: color 0.15s;
}
.tl-desc-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .stat-card-hero {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}
@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .bottom-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .stat-card-hero {
    grid-column: auto;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar-left {
    flex-wrap: wrap;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

/*!**************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./components/layout/layout.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************/
/* ===== Layout ===== */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* ===== Sidebar ===== */
.sidebar {
  width: 220px; display: flex; flex-direction: column;
  background: var(--sidebar-bg); color: var(--sidebar-text);
  overflow-y: auto; flex-shrink: 0;
  font-size: 13px;
  border-right: 1px solid var(--sidebar-border);
}
.sidebar.collapsed { width: 52px; }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-bottom: 1px solid var(--sidebar-border);
}
.brand-block { display: flex; align-items: baseline; gap: 8px; }
.brand-title {
  font-size: 15px; font-weight: 700;
  color: var(--sidebar-accent); white-space: nowrap;
}
.brand-version {
  font-size: 10px; padding: 1px 6px;
  background: var(--bg-elevated); color: var(--text-muted);
  border-radius: var(--radius-sm); white-space: nowrap;
}
.brand-icon {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-muted); color: var(--sidebar-accent);
  font-size: 12px; font-weight: 700; border-radius: var(--radius-md);
}

.toggle-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: none; color: var(--text-muted); cursor: pointer; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.toggle-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

.sidebar-nav { flex: 1; padding: 8px 6px; }
.menu-group { margin-bottom: 2px; }

.group-title {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; cursor: pointer;
  color: var(--sidebar-text); font-size: 13px; font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.12s;
}
.group-title:hover { color: var(--sidebar-text-active); background: var(--sidebar-item-hover); }
.group-title.group-active {
  color: var(--sidebar-accent); background: var(--sidebar-item-active);
  font-weight: 600;
}

.group-icon { width: 20px; text-align: center; font-size: 14px; flex-shrink: 0; }
.group-label { flex: 1; white-space: nowrap; }
.arrow { font-size: 9px; opacity: 0.5; transition: transform 0.15s; }

/* Sidebar expand arrow */
.sidebar-arrow {
  font-size: 10px; color: var(--text-muted); flex-shrink: 0;
  transition: color 0.12s;
}
.group-title:hover .sidebar-arrow { color: var(--sidebar-text-active); }
.group-title.group-active .sidebar-arrow { color: var(--sidebar-accent); }

/* Sidebar children */
.sidebar-children {
  list-style: none; margin: 0; padding: 2px 0 4px 0;
}
.sidebar-child-item {
  padding: 4px 10px 4px 36px;
  font-size: 12px; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap;
  transition: all 0.12s;
}
.sidebar-child-item:hover {
  color: var(--sidebar-text-active);
  background: var(--sidebar-item-hover);
}
.sidebar-child-active {
  color: var(--sidebar-accent) !important;
  font-weight: 600;
  background: var(--sidebar-item-active);
}

.group-children { padding: 2px 0 4px 34px; }
.sub-title {
  padding: 4px 0; font-size: 10px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
}

.menu-item {
  display: block; padding: 5px 10px; font-size: 13px;
  color: var(--sidebar-text); text-decoration: none;
  border-radius: var(--radius-sm); transition: all 0.12s;
}
.menu-item:hover { color: var(--sidebar-text-active); background: var(--sidebar-item-hover); }
.menu-item.active { color: var(--sidebar-accent); background: var(--sidebar-item-active); font-weight: 600; }

.sidebar-footer {
  padding: 8px 6px; border-top: 1px solid var(--sidebar-border);
  display: flex; justify-content: center;
}
.collapse-btn {
  width: 100%; height: 28px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: none; color: var(--text-muted); font-size: 12px; cursor: pointer;
  transition: all 0.15s;
}
.collapse-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

/* ===== Main ===== */
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg-deep); overflow: hidden; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hamburger {
  display: none; background: none;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  width: 32px; height: 32px; font-size: 14px; cursor: pointer;
  color: var(--text-primary); align-items: center; justify-content: center;
}
.topbar-info { display: flex; flex-direction: column; gap: 2px; }
.breadcrumbs { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.crumb-wrap { display: inline-flex; align-items: center; gap: 4px; }
.crumb { color: var(--text-muted); }
.crumb-link { color: var(--text-secondary); text-decoration: none; cursor: pointer; transition: color 0.12s; }
.crumb-link:hover { color: var(--color-accent); }
.crumb-current { color: var(--text-primary); font-weight: 500; }
.crumb-sep { color: var(--text-muted); }
.topbar-heading { display: flex; align-items: center; gap: 8px; }
.btn-back {
  height: 28px; padding: 0 8px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-secondary); font-size: 12px; cursor: pointer;
  transition: all 0.12s;
}
.btn-back:hover { color: var(--text-primary); background: var(--bg-hover); }
.topbar-title { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-icon-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  background: var(--bg-card); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all 0.15s;
}
.topbar-icon-btn:hover { color: var(--color-accent); background: var(--bg-hover); }
.topbar-date { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* ===== Sub-tabs ===== */
.topbar-tabs {
  display: flex; gap: 4px; padding: 6px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default); flex-wrap: wrap;
}
.tab-item {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all 0.12s;
}
.tab-item:hover { color: var(--text-primary); background: var(--bg-hover); }
.tab-item.active {
  color: var(--color-accent); background: var(--color-accent-bg);
  font-weight: 600;
}

.module-tabs .tab-item { font-size: 13px; font-weight: 600; }
.sub-tabs { padding-top: 4px; padding-bottom: 4px; }
.sub-tabs .tab-item { font-size: 12px; height: 28px; }

/* ===== Content ===== */
.content {
  flex: 1;
  min-height: 0;
  padding: 0 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ===== Mobile ===== */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 40; }

/* ===== Dict table ===== */
.dict-group-first td { border-top: 2px solid var(--border-strong) !important; }
.dict-merged { vertical-align: top; background: var(--bg-card); }
.dict-derived { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }
.dict-add-btn {
  cursor: pointer; color: var(--color-accent);
  font-size: 13px; font-weight: 700; line-height: 1; flex-shrink: 0;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); transition: background 0.12s;
}
.dict-add-btn:hover { background: var(--color-accent-bg); }

/* Dict tooltip — pure CSS hover */
.dict-tip { position: relative; display: inline-block; }
.dict-tip-box {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 0;
  background: var(--bg-elevated); color: var(--text-primary);
  padding: 4px 8px; font-size: 10px; font-family: var(--font-mono);
  white-space: nowrap; z-index: 20;
  border: 1px solid var(--border-default);
}
.dict-tip-box::after {
  content: ''; position: absolute; top: 100%; left: 12px;
  border: 5px solid transparent; border-top-color: var(--border-default);
}
.dict-tip:hover .dict-tip-box { display: block; }

/* Dict edit form — double-click expand */
.dict-edit-cell {
  border: 1px solid var(--color-accent) !important;
  background: var(--color-accent-bg) !important;
  padding: 8px 10px !important;
}
.dict-edit-label {
  font-size: 9px; color: var(--text-muted); display: block; margin-top: 6px;
}
.dict-edit-label:first-child { margin-top: 0; }
.dict-edit-input {
  background: var(--bg-primary); border: 1px solid var(--color-accent);
  color: var(--text-primary); font-size: 12px; padding: 2px 6px;
  height: 24px; width: 100%; font-family: inherit; outline: none;
}
.dict-edit-input-readonly {
  background: var(--bg-primary); border: 1px solid var(--border-default);
  color: var(--text-muted); font-size: 10px; padding: 1px 4px;
  height: 20px; width: 100%; font-family: var(--font-mono);
  outline: none; opacity: 0.5;
}
.dict-edit-actions {
  margin-top: 8px; display: flex; gap: 6px;
}

/* Dict filter bar */
.dict-filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 10;
}
.dict-filter-bar label {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-secondary);
}
.dict-filter-bar select {
  height: 26px; padding: 0 6px; font-size: 12px;
  border: 1px solid var(--border-default); border-radius: 0;
  background: var(--bg-card); color: var(--text-primary);
}
.dict-filter-bar select.active {
  background: var(--color-accent-bg);
  border-color: var(--color-accent);
}

/* Dict sticky thead — data/image pages (filters inside thead, top: 0) */
.dict-sticky-thead th {
  position: sticky;
  top: 0;
  z-index: 9;
}

/* Dict sticky thead — dict page (filter bar above, top: 43px) */
.dict-sticky-thead-offset th {
  position: sticky;
  top: 43px;
  z-index: 9;
}

/* Dict version cell */
.dict-version-primary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.dict-version-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--text-secondary); margin-top: 2px;
}

/* Dict size chips */
.dict-size-grid {
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
}
.dict-size-chip {
  display: inline-flex; align-items: center;
  font-size: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}
.dict-size-chip.disabled {
  opacity: 0.6;
  border-color: var(--tag-gray-text);
  background: var(--tag-gray-bg);
}
.dict-size-chip-label {
  cursor: pointer; font-weight: 500; padding: 1px 6px;
  border-bottom: 1px dashed var(--color-accent);
}
.dict-size-chip.disabled .dict-size-chip-label {
  text-decoration: line-through;
  color: var(--tag-gray-text);
}
.dict-size-action {
  cursor: pointer; padding: 1px 4px;
  border-left: 1px solid var(--border-default);
  font-size: 11px; font-weight: 500;
}

/* Dict SKU summary */
.dict-sku-summary {
  cursor: pointer;
}
.dict-sku-summary:hover {
  color: var(--text-secondary);
}

/* Dict style expand/collapse toggle */
.dict-expand-toggle {
  cursor: pointer;
  font-size: 9px;
  color: var(--text-muted);
  user-select: none;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.dict-expand-toggle:hover {
  color: var(--text-primary);
}

/* Dict collapsed summary cell */
.dict-summary-cell {
  color: var(--text-secondary);
  font-size: 12px;
}
.dict-summary-stat {
  font-weight: 600;
  color: var(--text-primary);
}
.dict-summary-dot {
  margin: 0 6px;
  color: var(--text-muted);
}

/* Dict affect banner */
.dict-affect-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 12px;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

/* Dict table footer — sticky bottom with pagination */
.dict-table-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-top: 1px solid var(--border-default);
  font-size: 11px;
  color: var(--text-muted);
}

.dict-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dict-pagination select {
  height: 22px;
  padding: 0 4px;
  font-size: 11px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  margin: 0 4px;
}
.dict-pagination button {
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}
.dict-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dict-pagination button:hover:not(:disabled) {
  background: var(--bg-elevated);
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
    width: 220px; transform: translateX(-100%);
    box-shadow: var(--shadow-float);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.collapsed { width: 220px; }
  .mobile-overlay { display: block; }
  .hamburger { display: flex; }
}

