:root {
  --ink: #18212a;
  --muted: #66717d;
  --line: #dce2e7;
  --surface: #ffffff;
  --canvas: #f3f5f6;
  --sidebar: #20262c;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --amber: #a16207;
  --red: #b42318;
  --green: #157347;
  --shadow: 0 1px 2px rgba(24, 33, 42, 0.06);
}

* { box-sizing: border-box; letter-spacing: 0; }
button, a, .btn, [role="button"] { -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 14px; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 20px 14px; background: var(--sidebar); color: #fff; z-index: 1030; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-size: 16px; font-weight: 700; color: #fff; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--teal); border-radius: 6px; }
.sidebar-label { padding: 14px 10px 7px; color: #8f9aa4; font-size: 11px; text-transform: uppercase; }
.side-nav { display: grid; gap: 3px; }
.side-link { height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 5px; color: #cbd2d8; }
.side-link:hover, .side-link.active { background: #323a42; color: #fff; }
.side-link.active { box-shadow: inset 3px 0 0 var(--teal); }
.side-link svg { width: 18px; height: 18px; }
.sidebar-user { margin-top: auto; border-top: 1px solid #3a424a; padding: 16px 10px 0; display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; background: #d9e5e3; color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; }
.sidebar-user-name { color: #fff; font-weight: 600; line-height: 1.25; }
.sidebar-user-role { color: #9da7af; font-size: 12px; }
.main { margin-left: 236px; min-height: 100vh; }
.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 1010; }
.topbar h1 { margin: 0; font-size: 20px; font-weight: 700; }
.content { width: 100%; padding: 24px 28px 72px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.batch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -6px 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.batch-summary, .batch-actions { display: flex; align-items: center; gap: 10px; }
.batch-select-all { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; cursor: pointer; white-space: nowrap; }
.batch-toolbar [data-batch-count], .batch-toolbar [data-log-count] { min-width: 82px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.batch-toolbar .form-select { width: 176px; min-height: 32px; }
.batch-toolbar .btn { min-height: 32px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.panel-header { min-height: 50px; padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title { margin: 0; font-size: 15px; font-weight: 700; }
.panel-body { padding: 18px; }
.filter-bar { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; align-items: end; padding: 14px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.filter-actions { display: flex; gap: 8px; }
.order-mobile-toolbar { display: none; }
.order-filter-commands { display: flex; align-items: center; gap: 8px; }
.order-filter-commands-desktop { justify-content: flex-end; }
.form-label { margin-bottom: 5px; color: #4d5965; font-size: 12px; font-weight: 600; }
.form-control, .form-select { min-height: 38px; border-color: #cfd7dd; border-radius: 5px; font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.btn { min-height: 38px; border-radius: 5px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--teal);
  --bs-btn-border-color: var(--teal);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--teal-dark);
  --bs-btn-hover-border-color: var(--teal-dark);
  --bs-btn-focus-shadow-rgb: 15, 118, 110;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--teal-dark);
  --bs-btn-active-border-color: var(--teal-dark);
  --bs-btn-disabled-bg: #7aa9a4;
  --bs-btn-disabled-border-color: #7aa9a4;
  background: var(--teal);
  border-color: var(--teal);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle { background: var(--teal-dark) !important; border-color: var(--teal-dark) !important; color: #fff !important; }
.btn-primary:focus-visible { box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .22) !important; }
.btn-outline-secondary {
  --bs-btn-color: #46515c;
  --bs-btn-border-color: #bac4cc;
  --bs-btn-hover-color: #27313a;
  --bs-btn-hover-bg: #f2f5f7;
  --bs-btn-hover-border-color: #9faab4;
  --bs-btn-focus-shadow-rgb: 108, 117, 125;
  --bs-btn-active-color: #27313a;
  --bs-btn-active-bg: #e9edf0;
  --bs-btn-active-border-color: #9faab4;
  border-color: #bac4cc;
  color: #46515c;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.show > .btn-outline-secondary.dropdown-toggle { background: #f2f5f7 !important; border-color: #9faab4 !important; color: #27313a !important; }
.btn-outline-secondary:focus-visible { box-shadow: 0 0 0 .2rem rgba(108, 117, 125, .18) !important; }
.btn-danger { background: var(--red); border-color: var(--red); }
.icon-btn { width: 36px; height: 36px; min-height: 36px; padding: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 5px; padding: 15px; min-height: 98px; }
.kpi:nth-child(3n+2) { border-top-color: var(--amber); }
.kpi:nth-child(3n) { border-top-color: #4f5d69; }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { margin-top: 10px; font-size: 23px; font-weight: 700; line-height: 1; white-space: nowrap; }
.kpi-value-money { font-size: 19px; font-variant-numeric: tabular-nums; }
.dashboard-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.chart { width: 100%; height: 320px; }
.dashboard-layout { display: grid; gap: 14px; }
.dashboard-distribution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dashboard-panel-body { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(240px, 1.1fr); gap: 12px; align-items: stretch; padding: 14px; min-width: 0; }
.dashboard-province-panel .dashboard-panel-body { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.dashboard-trend-chart { height: 300px; }
.dashboard-distribution-chart { height: 250px; }
.dashboard-province-chart { height: 300px; }
.dashboard-data-list { max-height: 250px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.dashboard-province-panel .dashboard-data-list { max-height: 300px; }
.dashboard-data-list td:first-child { max-width: 190px; overflow-wrap: anywhere; }
.table { margin: 0; vertical-align: middle; }
.table > :not(caption) > * > * { padding: 11px 12px; border-bottom-color: #e8ecef; }
.table thead th { position: sticky; top: 0; z-index: 2; background: #f7f8f9; color: #4d5965; font-size: 12px; font-weight: 700; white-space: nowrap; }
.table td { color: #27313a; }
.employee-list-surface { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.employee-table { min-width: 980px; }
.managed-shops-modal-list { display: grid; gap: 8px; margin: 0; padding-left: 24px; overflow-wrap: anywhere; }
.managed-shops-empty { margin: 0; padding: 18px 0; color: var(--muted); text-align: center; }
.employee-form-body { padding: 18px; }
.employee-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.employee-managed-shops-field { grid-column: span 2; }
.employee-shop-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.employee-shop-section-head .btn { flex: 0 0 auto; min-width: 96px; white-space: nowrap; }
.employee-shop-rows { display: grid; gap: 8px; }
.employee-shop-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafb; }
.employee-shop-row-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr); gap: 10px; }
.employee-shop-row .form-label { margin-bottom: 4px; font-size: 12px; }
.employee-shop-row > .icon-btn { width: 38px; height: 38px; }
.employee-edit-state { display: flex; min-height: 180px; align-items: center; justify-content: center; gap: 9px; padding: 24px; color: var(--muted); text-align: center; }
.employee-edit-error { flex-direction: column; color: var(--red); }
.employee-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--line); }
.employee-list-surface > .pagination, .employee-list-surface > .pager { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 0; padding: 16px; border-top: 1px solid var(--line); list-style: none; }
.order-table { min-width: 1080px; }
.order-table tbody td { border-bottom-color: #dce3e7; }
.order-table th + th, .order-table td + td { border-left: 1px solid #e1e7eb; }
.order-table tbody tr:not(.order-row-colored):hover > td { background: #f5faf9; }
.order-table tbody tr.order-row-red > td, .order-mobile .order-row-red { background: #FF0000; }
.order-table tbody tr.order-row-orange > td, .order-mobile .order-row-orange { background: #FF8C00; }
.order-table tbody tr.order-row-yellow > td, .order-mobile .order-row-yellow { background: #FFFF00; }
.order-table tbody tr.order-row-green > td, .order-mobile .order-row-green { background: #00CC00; }
.order-table tbody tr.order-row-cyan > td, .order-mobile .order-row-cyan { background: #00CCFF; }
.order-table tbody tr.order-row-blue > td, .order-mobile .order-row-blue { background: #0066FF; }
.order-table tbody tr.order-row-purple > td, .order-mobile .order-row-purple { background: #6600FF; }
.order-table tbody tr.order-row-white > td, .order-mobile .order-row-white { background: #FFFFFF; }
.order-table tbody tr.order-row-gray > td, .order-mobile .order-row-gray { background: #808080; }
.order-table tbody tr.order-row-black > td, .order-mobile .order-row-black { background: #000000; }
.order-remark { min-width: 0; max-width: 200px; }
.order-source-link { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; margin-left: 5px; border-radius: 5px; color: var(--muted); vertical-align: middle; }
.order-source-link svg { width: 16px; height: 16px; stroke-width: 2; }
.order-source-link:hover { background: rgba(24, 144, 132, .1); color: var(--teal); }
.order-source-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.order-row-colored .order-source-link { color: inherit; }
.order-remark-text { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-remark.expanded { max-width: 360px; }
.order-remark.expanded .order-remark-text { max-width: 360px; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.remark-toggle { min-height: 0; padding: 2px 0; border: 0; background: transparent; color: var(--teal); font-size: 12px; cursor: pointer; }
.order-remark-mobile .order-remark { margin-top: 2px; color: var(--ink); font-size: 14px; font-weight: 700; }
.order-remark-mobile .order-remark-text { max-width: 100%; }
.province-label { margin-top: 3px; color: var(--muted); font-size: 12px; }
.remark-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.remark-swatch { min-width: 0; cursor: pointer; }
.remark-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.remark-swatch span { min-height: 38px; display: grid; place-items: center; border: 1px solid #cfd7dd; border-radius: 4px; background: #fff; font-size: 12px; }
.remark-swatch input:checked + span { border-color: #222f3a; box-shadow: 0 0 0 2px rgba(34, 47, 58, .14); font-weight: 700; }
.remark-swatch-red span { background: #fff0f0; }
.remark-swatch-yellow span { background: #fff9df; }
.remark-swatch-green span { background: #edf9f0; }
.remark-swatch-blue span { background: #edf5ff; }
.remark-swatch-purple span { background: #f7efff; }
.remark-palette { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; }
.remark-palette input { position: absolute; opacity: 0; pointer-events: none; }
.palette-none span { width: 58px; height: 34px; display: grid; place-items: center; border: 1px solid #cfd7dd; border-radius: 4px; background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.remark-palette-grid { display: grid; grid-template-columns: repeat(5, 36px); gap: 7px; padding: 3px; }
.remark-palette-grid label { cursor: pointer; }
.remark-palette-grid span { display: block; width: 36px; height: 34px; border: 1px solid rgba(20, 30, 40, .28); border-radius: 2px; background: var(--palette-color); }
.remark-palette-grid label:hover span { outline: 2px solid #66717d; outline-offset: 2px; }
.remark-palette input:checked + span { outline: 2px solid #17212b; outline-offset: 2px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.72); }
.order-table tbody tr.order-row-void > td, .order-mobile .order-row-void { background: #FF0000 !important; }
.order-table tbody tr.order-row-red > td, .order-table tbody tr.order-row-blue > td, .order-table tbody tr.order-row-purple > td, .order-table tbody tr.order-row-gray > td, .order-table tbody tr.order-row-black > td, .order-table tbody tr.order-row-void > td { color: #fff; }
.order-table tbody tr.order-row-red > td + td, .order-table tbody tr.order-row-blue > td + td, .order-table tbody tr.order-row-purple > td + td, .order-table tbody tr.order-row-gray > td + td, .order-table tbody tr.order-row-black > td + td, .order-table tbody tr.order-row-void > td + td { border-left-color: rgba(255, 255, 255, .42); }
.order-table tbody tr.order-row-red .text-muted, .order-table tbody tr.order-row-blue .text-muted, .order-table tbody tr.order-row-purple .text-muted, .order-table tbody tr.order-row-gray .text-muted, .order-table tbody tr.order-row-black .text-muted, .order-table tbody tr.order-row-void .text-muted,
.order-table tbody tr.order-row-red .province-label, .order-table tbody tr.order-row-blue .province-label, .order-table tbody tr.order-row-purple .province-label, .order-table tbody tr.order-row-gray .province-label, .order-table tbody tr.order-row-black .province-label, .order-table tbody tr.order-row-void .province-label { color: #fff !important; }
.order-mobile .order-row-red, .order-mobile .order-row-blue, .order-mobile .order-row-purple, .order-mobile .order-row-gray, .order-mobile .order-row-black, .order-mobile .order-row-void,
.order-mobile .order-row-red strong, .order-mobile .order-row-blue strong, .order-mobile .order-row-purple strong, .order-mobile .order-row-gray strong, .order-mobile .order-row-black strong, .order-mobile .order-row-void strong,
.order-mobile .order-row-red .text-muted, .order-mobile .order-row-blue .text-muted, .order-mobile .order-row-purple .text-muted, .order-mobile .order-row-gray .text-muted, .order-mobile .order-row-black .text-muted, .order-mobile .order-row-void .text-muted { color: #fff !important; }
.order-table tbody tr.order-row-red .table-actions .btn, .order-table tbody tr.order-row-blue .table-actions .btn, .order-table tbody tr.order-row-purple .table-actions .btn, .order-table tbody tr.order-row-gray .table-actions .btn, .order-table tbody tr.order-row-black .table-actions .btn, .order-table tbody tr.order-row-void .table-actions .btn,
.order-mobile .order-row-red .order-actions .btn, .order-mobile .order-row-blue .order-actions .btn, .order-mobile .order-row-purple .order-actions .btn, .order-mobile .order-row-gray .order-actions .btn, .order-mobile .order-row-black .order-actions .btn, .order-mobile .order-row-void .order-actions .btn { border-color: #fff; background: #fff; color: #27313a; }
.order-row-colored .table-actions .btn, .order-row-colored .order-actions .btn { border-color: #fff; background: #fff; color: #27313a; }
.order-row-colored .table-actions .btn:hover, .order-row-colored .table-actions .btn:focus-visible,
.order-row-colored .order-actions .btn:hover, .order-row-colored .order-actions .btn:focus-visible { border-color: #27313a; background: #e9ecef; color: #111820; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.inline-edit-button { width: 22px; height: 22px; padding: 0; margin-left: 4px; border: 0; background: transparent; color: #66717d; vertical-align: middle; }
.inline-edit-button:hover { color: var(--teal); }
.inline-edit-button svg { width: 13px; height: 13px; }
.pending-price-badge { display: block; margin-top: 3px; color: #9a5b00; font-size: 11px; font-weight: 700; }
.settings-sections { display: grid; gap: 16px; max-width: 820px; }
.app-api-doc { display: grid; gap: 14px; }
.app-api-doc h3 { margin: 0; font-size: 14px; font-weight: 700; }
.app-api-doc ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: #4d5965; }
.app-api-doc-table { min-width: 720px; }
.app-api-doc-table td { vertical-align: top; line-height: 1.55; }
.app-api-doc-code { margin: 0; padding: 12px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; background: #f7f9fa; color: #27313a; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.settings-panel { max-width: none; margin: 0; }
.settings-savebar { position: sticky; z-index: 10; bottom: 12px; display: flex; justify-content: flex-end; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 255, 255, .96); box-shadow: 0 7px 24px rgba(23, 33, 43, .12); }
.remark-swatches > label:not(.remark-swatch) { cursor: pointer; }
.remark-swatches > label:not(.remark-swatch) input { position: absolute; opacity: 0; pointer-events: none; }
.remark-swatches > label:not(.remark-swatch) .remark-swatch { min-height: 38px; display: block; border: 1px solid #cfd7dd; border-radius: 4px; background: #fff; }
.remark-swatches > label:not(.remark-swatch) input:checked + .remark-swatch { border-color: #222f3a; box-shadow: 0 0 0 2px rgba(34, 47, 58, .14); }
.remark-swatches > label:not(.remark-swatch) .remark-swatch-red { background: #fff0f0; }
.remark-swatches > label:not(.remark-swatch) .remark-swatch-yellow { background: #fff9df; }
.remark-swatches > label:not(.remark-swatch) .remark-swatch-green { background: #edf9f0; }
.remark-swatches > label:not(.remark-swatch) .remark-swatch-blue { background: #edf5ff; }
.remark-swatches > label:not(.remark-swatch) .remark-swatch-purple { background: #f7efff; }
.export-modes { display: grid; gap: 8px; }
.export-modes label { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.export-modes strong, .export-modes small { display: block; }
.export-modes small { margin-top: 3px; color: var(--muted); }
.export-date-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
.export-date-fields:not([hidden]) { display: grid; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; white-space: nowrap; }
.status { display: inline-flex; width: max-content; max-width: 100%; min-height: 24px; align-items: center; justify-content: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.status > svg { width: 12px; height: 12px; flex: 0 0 12px; }
.status-active { color: var(--green); background: #e8f5ee; }
.status-unshipped { color: #8a5600; background: #fff3cd; }
.status-void, .status-disabled { color: var(--red); background: #fcebe9; }
.status-default { color: var(--teal); border: 1px solid #8fc7bf; background: #fff; }
.text-money { font-variant-numeric: tabular-nums; text-align: right; }
.form-section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.section-heading { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.money-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; background: #f5f8f8; border: 1px solid #d8e7e5; border-radius: 5px; }
.money-preview.two-columns { grid-template-columns: repeat(2, 1fr); }
.money-preview strong { display: block; margin-top: 5px; font-size: 18px; font-variant-numeric: tabular-nums; }
.copy-field { display: flex; gap: 8px; }
.copy-field textarea { flex: 1; }
.alert { border-radius: 5px; border-width: 1px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 32px; height: 32px; margin-bottom: 10px; }
.order-mobile { display: none; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; background: #eef1f2; }
.login-card { width: min(420px, 100%); padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 3px 12px rgba(24, 33, 42, .08); }
.login-card h1 { margin: 22px 0 26px; font-size: 27px; text-align: center; }
.login-card .login-context { justify-content: center; }
.login-preferences { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 2px 0 18px; }
.login-preference { min-width: 0; display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #4d5965; font-size: 13px; line-height: 1.4; cursor: pointer; }
.login-preference input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.login-preference input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.captcha-control { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; }
.captcha-image { width: 132px; height: 44px; padding: 0; overflow: hidden; border: 1px solid #cfd7dd; border-radius: 5px; background: #f4f8f8; cursor: pointer; }
.captcha-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.settings-panel { max-width: 760px; }
.settings-sections .settings-panel { max-width: none; }
.settings-list { padding: 0; }
.setting-row { min-height: 82px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong, .setting-row small { display: block; }
.setting-row small { margin-top: 5px; color: var(--muted); }
.setting-row .form-check { margin: 0; padding-left: 2.7em; }
.setting-row .form-check-input { width: 2.35em; height: 1.25em; margin-top: 0; }
.login-context { display: flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 700; }
.mobile-topbar, .mobile-nav { display: none; }
.panel > .pagination, .panel > .pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.pagination li, .pager li { display: block; }
.pagination li a, .pagination li span, .pager li a, .pager li span {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid #cfd7dd;
  border-radius: 4px;
  background: #fff;
  color: #46515c;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}
.pagination li a:hover, .pager li a:hover { border-color: var(--teal); color: var(--teal-dark); background: #f1f8f7; }
.pagination li.active span { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 700; }
.pagination li.disabled span { border-color: #e4e8ec; background: #f7f8f9; color: #a3acb4; }
.order-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 62px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination-total { white-space: nowrap; }
.pagination-pages { display: flex; align-items: center; gap: 8px; }
.pagination-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d7dde2; border-radius: 4px; background: #fff; color: #46515c; text-decoration: none; }
.pagination-button:hover { border-color: var(--teal); color: var(--teal); background: #f1f8f7; }
.pagination-button.active { border-color: #2563eb; color: #2563eb; background: #f5f8ff; font-weight: 700; }
.pagination-button.disabled { color: #b6bec5; background: #fafbfb; }
.pagination-dots { min-width: 24px; text-align: center; color: #66717d; }
.pagination-size { margin: 0; }
.pagination-size .form-select { width: 98px; min-height: 34px; font-size: 13px; }
.page-link { color: var(--teal); }
.page-item.active .page-link { background: var(--teal); border-color: var(--teal); }
.order-modal-dialog { width: calc(100% - 48px); max-width: 920px; }
.modal .order-form-panel { border: 0; border-radius: 0; box-shadow: none; }
.modal .order-form-panel .panel-header { position: sticky; bottom: 0; z-index: 2; border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.modal .employee-form-actions { position: sticky; bottom: 0; z-index: 2; background: var(--surface); }
.password-reminder { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 8px 10px; }
.password-reminder-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 4px; background: #fff3cd; color: #76500a; }
.password-reminder-icon svg { width: 16px; height: 16px; }
.password-reminder-copy { min-width: 0; flex: 1 1 auto; }
.password-reminder-copy strong, .password-reminder-copy > span { display: block; }
.password-reminder-copy > span { margin-top: 2px; color: #76500a; font-size: 11px; }
.password-reminder .btn { min-height: 32px; flex: 0 0 auto; white-space: nowrap; }
.password-reminder-action-short { display: none; }
.daily-report-reminder { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.daily-report-reminder strong, .daily-report-reminder span { display: block; }
.daily-report-reminder span { margin-top: 3px; font-size: 12px; }
.daily-report-missing-dates { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.daily-report-missing-dates a { padding: 4px 7px; border: 1px solid #d9ad5c; border-radius: 4px; background: #fff; font-size: 11px; }
.daily-report-title-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.daily-report-title-row .daily-report-title-line { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
.daily-report-title-row .daily-report-title-line h2 { margin: 0; font-size: 20px; }
.daily-report-date-form { width: 180px; flex: 0 0 180px; }
.daily-report-identity { display: grid; grid-template-columns: 44px minmax(0, 1fr) 180px; gap: 10px 12px; align-items: center; margin-bottom: 0; }
.daily-report-toolbar-head { padding: 14px; border: 1px solid var(--line); border-radius: 6px 6px 0 0; background: #fff; }
.daily-report-identity-avatar { width: 44px; height: 44px; flex-basis: 44px; border-radius: 50%; object-fit: cover; }
.daily-report-identity-copy { min-width: 0; }
.daily-report-identity-name { display: block; margin-bottom: 3px; color: #4d5965; font-size: 14px; font-weight: 700; }
.daily-report-identity-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.daily-report-identity-heading h2 { margin: 0; font-size: 20px; }
.daily-report-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid #e3bd70; border-radius: 4px; color: #76500a; background: #fff8e8; font-size: 12px; }
.daily-report-notice[hidden] { display: none; }
.daily-report-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.daily-report-toolbar-foot { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; background: #fff; box-shadow: 0 3px 10px rgba(24, 33, 42, .05); }
.daily-report-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }
.daily-report-actions .btn { min-width: 104px; white-space: nowrap; }
.daily-report-timestamps { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.daily-report-timestamps > span { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.daily-report-timestamps svg { width: 14px; height: 14px; flex: 0 0 14px; }
.daily-report-unsaved, .daily-report-auto-change { display: inline-flex; align-items: center; gap: 4px; }
.daily-report-unsaved { color: var(--amber); font-weight: 700; }
.daily-report-title-row .status-warning, .daily-report-admin-list .status-warning, .daily-report-detail-title-line .status-warning { color: #76500a; background: #fff3cd; }
.daily-report-unsaved svg, .daily-report-auto-change svg { width: 14px; height: 14px; }
.daily-report-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.daily-report-summary-item { min-width: 0; margin: 0; padding: 10px; background: #fff; }
.daily-report-field-label { display: block; margin-bottom: 6px; color: #4d5965; font-size: 11px; font-weight: 700; }
.daily-report-auto-control { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 5px; align-items: center; }
.daily-report-auto-control .form-control { min-width: 0; min-height: 34px; height: 34px; padding: 5px 8px; font-variant-numeric: tabular-nums; }
.daily-report-restore { width: 32px; height: 32px; min-height: 32px; }
.daily-report-restore svg { width: 14px; height: 14px; }
.daily-report-auto-note, .daily-report-saved-note { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.daily-report-table-wrap { max-width: 100%; overflow: hidden; }
.daily-report-table { min-width: 1040px; margin-bottom: 0; table-layout: fixed; }
.daily-report-table th, .daily-report-table td { padding: 7px 6px; vertical-align: top; }
.daily-report-table th { color: #4d5965; font-size: 11px; line-height: 1.3; text-align: center; vertical-align: middle; }
.daily-report-table tbody td:first-child { vertical-align: middle; }
.daily-report-table th:first-child { width: 190px; }
.daily-report-table th:not(:first-child) { width: 116px; }
.daily-report-table .form-control { min-width: 0; min-height: 32px; height: 32px; padding: 4px 7px; font-size: 12px; }
.daily-report-table td > small, .daily-report-auto-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.daily-report-shop-name { min-width: 0; overflow-wrap: anywhere; }
.daily-report-shop-heading { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px; }
.daily-report-shop-heading strong { min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.daily-report-shop-heading .status { flex: 0 0 auto; }
.daily-report-profit-start { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.daily-report-auto-cell { background: #f1f8f7; }
.daily-report-tabs { margin-bottom: 16px; }
.daily-report-status-overview { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(24, 33, 42, .05); }
.daily-report-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.daily-report-status-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.daily-report-status-identity > div { min-width: 0; }
.daily-report-status-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 6px; background: #e4f2ef; color: var(--teal); }
.daily-report-status-icon svg { width: 16px; height: 16px; }
.daily-report-status-head h3 { margin: 0; font-size: 15px; }
.daily-report-status-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.daily-report-status-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.daily-report-status-summary > div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); }
.daily-report-status-summary > div:last-child { border-right: 0; }
.daily-report-status-summary span, .daily-report-status-summary strong { display: block; overflow-wrap: anywhere; }
.daily-report-status-summary span { color: var(--muted); font-size: 11px; }
.daily-report-status-summary strong { margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
.daily-report-status-clear { margin: 0; padding: 14px 0; color: var(--muted); text-align: center; }
.daily-report-status-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr); gap: 10px; }
.daily-report-status-result-head { padding: 14px 0 5px; color: var(--muted); font-size: 12px; }
.daily-report-status-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, auto); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.daily-report-status-row strong, .daily-report-status-row small { display: block; min-width: 0; overflow-wrap: anywhere; }
.daily-report-status-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.daily-report-status-row > div:last-child { min-width: 0; text-align: right; }
.daily-report-status-row:last-of-type { border-bottom: 0; }
.daily-report-status-row[hidden] { display: none; }
.daily-report-admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.daily-report-admin-summary > div { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.daily-report-admin-summary span, .daily-report-admin-summary small, .daily-report-admin-summary strong { display: block; }
.daily-report-admin-summary small { margin-top: 5px; color: var(--muted); }
.daily-report-admin-summary strong { margin-top: 4px; font-size: 16px; }
.daily-report-current-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.daily-report-formal-value { display: block; margin-top: 3px; color: var(--muted); white-space: nowrap; }
.daily-report-detail-header { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(24, 33, 42, .05); }
.daily-report-detail-main { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; }
.daily-report-detail-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.daily-report-detail-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 6px; background: #e4f2ef; color: var(--teal); font-size: 15px; font-weight: 800; }
.daily-report-detail-copy { min-width: 0; }
.daily-report-detail-title-line { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
.daily-report-detail-title-line h2 { min-width: 0; margin: 0; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.daily-report-detail-date { margin-top: 2px; color: var(--muted); font-size: 12px; }
.daily-report-detail-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.daily-report-detail-meta-item { min-width: 0; margin: 0; padding: 10px 14px; }
.daily-report-detail-meta-item + .daily-report-detail-meta-item { border-left: 1px solid var(--line); }
.daily-report-detail-meta-item dt { color: var(--muted); font-size: 10px; font-weight: 600; }
.daily-report-detail-meta-item dd { margin: 3px 0 0; color: #26313a; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.daily-report-detail-table .table { min-width: 1050px; }
.daily-report-detail-table td { vertical-align: top; }
.date-popover, .date-range-panel { position: absolute; z-index: 1080; background: #fff; border: 1px solid #cfd7dd; border-radius: 4px; box-shadow: 0 10px 28px rgba(24, 33, 42, .18); color: var(--ink); }
.date-popover { padding: 10px; }
.date-panel-head, .date-calendar header, .date-range-nav, .date-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-panel-head button, .date-range-nav button, .date-panel-foot button, .date-quick button { border: 0; background: transparent; color: #1f5fd6; padding: 5px 7px; font: inherit; cursor: pointer; }
.date-panel-head button, .date-range-nav button { color: var(--ink); font-size: 22px; line-height: 1; }
.date-calendar header { min-height: 30px; justify-content: center; font-size: 13px; }
.date-calendar header select { width: auto; height: 30px; border: 1px solid #d9dfe4; border-radius: 4px; background: #fff; padding: 0 24px 0 7px; font-size: 12px; }
.date-week, .date-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.date-week { color: #5f6b76; font-size: 11px; line-height: 28px; }
.date-week span { min-width: 0; text-align: center; }
.date-days { gap: 2px; }
.date-day { height: 30px; border: 0; background: transparent; border-radius: 3px; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.date-day:hover, .date-day.in-range { background: #e4edff; }
.date-day.selected { background: #1f67e8; color: #fff; font-weight: 700; }
.date-day.muted { color: #a6b0bb; }
.date-day.today { box-shadow: inset 0 0 0 1px #1f67e8; }
.date-panel-foot { border-top: 1px solid #e4e8ec; margin-top: 8px; padding-top: 8px; }
.date-range-panel { display: flex; min-height: 292px; }
.date-quick { width: 96px; padding: 16px 10px; border-right: 1px solid #e4e8ec; display: grid; align-content: start; gap: 7px; }
.date-quick button { text-align: left; }
.date-quick button.active { background: #e8f3f2; color: var(--teal-dark); font-weight: 700; }
.date-range-main { min-width: 0; flex: 1; padding: 12px; }
.date-range-values { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.date-range-values input { min-width: 0; height: 32px; border: 1px solid #cfd7dd; border-radius: 4px; padding: 0 8px; font: inherit; }
.date-range-nav { justify-content: space-between; margin: 4px 0; }
.date-range-calendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.date-range-main footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.mobile-filter-toggle, .mobile-only { display: none; }
.responsive-card-table .responsive-actions-toggle { display: none; }
.manage-hub { display: grid; gap: 18px; }
.manage-group h2 { margin: 0 0 8px; font-size: 14px; }
.manage-list { border-block: 1px solid var(--line); }
.manage-list a { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.manage-list a:last-child { border-bottom: 0; }
.manage-list a > span { display: grid; gap: 2px; }
.manage-list small { color: var(--muted); }
.employee-primary-actions { display: flex; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.employee-secondary-actions .dropdown-menu { position: static !important; display: flex; gap: 5px; min-width: 0; padding: 0; border: 0; box-shadow: none; transform: none !important; }
.employee-secondary-actions .dropdown-item { display: inline-flex; align-items: center; width: auto; min-height: 31px; padding: 5px 9px; border: 1px solid #bac4cc; border-radius: 5px; color: #46515c; font-size: 12px; font-weight: 600; }
.employee-secondary-actions .dropdown-item.active, .employee-secondary-actions .dropdown-item:active { color: #fff; border-color: #6c757d; background: #6c757d; }
.employee-secondary-actions .dropdown-item svg { width: 14px; height: 14px; }
.mobile-sort-field { display: flex; align-items: center; gap: 7px; }
.mobile-sort-controls { gap: 5px; }
.tutorial-admin-toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 14px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.tutorial-filter-bar { flex: 1 1 auto; width: auto; min-width: 0; display: grid; grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) auto; gap: 10px; align-items: end; }
.tutorial-create-action { flex: 0 0 auto; }
.tutorial-search-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.tutorial-search-bar .input-group { max-width: 760px; }
.tutorial-search-bar .input-group-text svg { width: 16px; height: 16px; }
.tutorial-list-panel { overflow: hidden; }
.tutorial-list { display: grid; }
.tutorial-list-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 22px; gap: 12px; align-items: center; min-height: 92px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.tutorial-list-row:last-child { border-bottom: 0; }
.tutorial-list-row:hover { background: #f7faf9; color: var(--ink); }
.tutorial-list-row.is-pinned { background: #f3f8f8; box-shadow: inset 3px 0 0 var(--teal); }
.tutorial-list-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: #e8f3f2; color: var(--teal); }
.tutorial-list-icon svg { width: 20px; height: 20px; }
.tutorial-list-copy, .tutorial-list-title, .tutorial-list-excerpt, .tutorial-list-meta { min-width: 0; display: flex; }
.tutorial-list-copy { flex-direction: column; gap: 6px; }
.tutorial-list-title { align-items: center; gap: 8px; }
.tutorial-list-title strong { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.tutorial-list-excerpt { color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.tutorial-list-meta { flex-wrap: wrap; gap: 5px 12px; color: #7a858f; font-size: 11px; }
.tutorial-list-arrow { color: #96a0a9; }
.tutorial-list-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.tutorial-list-empty svg { width: 28px; height: 28px; color: #8a959e; }
.tutorial-list-empty span { color: var(--muted); font-size: 12px; }
.tutorial-preview-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tutorial-article { overflow: hidden; }
.tutorial-article-header { padding: 20px 24px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.tutorial-back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 12px; }
.tutorial-back-link svg { width: 15px; height: 15px; }
.tutorial-article-heading { display: grid; justify-items: start; gap: 8px; }
.tutorial-article-heading h1 { max-width: 900px; margin: 0; font-size: 25px; line-height: 1.35; overflow-wrap: anywhere; }
.tutorial-article-heading time { color: var(--muted); font-size: 12px; }
.tutorial-article-body { width: 100%; max-width: 920px; min-height: 220px; margin: 0 auto; padding: 26px 28px 38px; font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.tutorial-article-body h1, .tutorial-article-body h2, .tutorial-article-body h3, .tutorial-article-body h4, .tutorial-article-body h5, .tutorial-article-body h6 { margin: 1.25em 0 .65em; color: #1f2933; font-weight: 700; line-height: 1.35; }
.tutorial-article-body h1 { font-size: 28px; }
.tutorial-article-body h2 { font-size: 23px; }
.tutorial-article-body h3 { font-size: 19px; }
.tutorial-article-body p { margin: .65em 0; }
.tutorial-article-body ul, .tutorial-article-body ol { margin: .65em 0 .65em 1.5em; padding-left: 1.2em; }
.tutorial-article-body li { margin: .25em 0; }
.tutorial-article-body blockquote { margin: 1em 0; padding: 10px 14px; border-left: 4px solid var(--teal); background: #f4faf9; color: #4b5964; }
.tutorial-article-body pre { max-width: 100%; overflow-x: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fb; }
.tutorial-article-body code { font-family: Consolas, Monaco, monospace; }
.tutorial-article-body img { max-width: 100%; height: auto; }
.tutorial-article-body table { max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; }
.tutorial-article-body th, .tutorial-article-body td { padding: 7px 9px; border: 1px solid var(--line); vertical-align: middle; }
.tutorial-article-body th { background: #f7faf9; font-weight: 700; }
.tutorial-article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.announcement-meta-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(220px, 260px); gap: 14px; align-items: end; }
.announcement-rich-editor { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.announcement-rich-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.announcement-rich-toolbar button { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 5px 9px; border: 1px solid #cbd5df; border-radius: 4px; background: #fff; color: #26323c; font-size: 12px; }
.announcement-rich-toolbar button:hover { border-color: var(--teal); color: var(--teal-dark); }
.announcement-rich-toolbar svg { width: 14px; height: 14px; }
.announcement-rich-toolbar span { width: 1px; margin: 3px 2px; background: var(--line); }
.announcement-rich-body { min-height: 360px; padding: 16px 18px; outline: none; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.announcement-rich-body:focus { box-shadow: inset 0 0 0 2px rgba(20, 130, 124, .16); }
.announcement-rich-body:empty::before { content: "请输入公告内容"; color: var(--muted); }
.announcement-editor-footer { display: flex; justify-content: flex-end; padding: 14px 16px; border-top: 1px solid var(--line); background: #fbfcfd; }
.staff-announcement-dialog { max-width: 520px; }
.staff-announcement-modal .modal-dialog { transform: translateY(16px) scale(.975); opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .24s ease; }
.staff-announcement-modal.show .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.staff-announcement-modal.is-leaving .modal-dialog { transform: translateY(10px) scale(.985); opacity: 0; transition-duration: .18s; }
.staff-announcement-card { position: relative; overflow: hidden; border: 1px solid rgba(20, 130, 124, .14); border-radius: 16px; background: #fff; box-shadow: 0 24px 65px rgba(20, 31, 43, .22); }
.staff-announcement-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) 32px; gap: 12px; align-items: center; padding: 22px 24px 14px 26px; color: var(--ink); background: linear-gradient(180deg, #fbfefe 0%, #fff 100%); }
.staff-announcement-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #eefaf8; color: var(--teal); box-shadow: inset 0 0 0 1px rgba(20, 130, 124, .12); }
.staff-announcement-mark svg { width: 22px; height: 22px; }
.staff-announcement-title { min-width: 0; }
.staff-announcement-title small { display: block; margin-bottom: 3px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.staff-announcement-title h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.staff-announcement-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #7b8791; }
.staff-announcement-close:hover { border-color: var(--line); background: #f6f8f9; color: var(--ink); }
.staff-announcement-close svg { width: 18px; height: 18px; }
.staff-announcement-body { max-height: min(56vh, 520px); overflow: auto; padding: 14px 26px 10px; background: #fff; }
.staff-announcement-content { color: var(--ink); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.staff-announcement-content > :first-child { margin-top: 0; }
.staff-announcement-content > :last-child { margin-bottom: 0; }
.staff-announcement-content img { max-width: 100%; height: auto; }
.staff-announcement-content table { max-width: 100%; border-collapse: collapse; margin: 1em 0; overflow-x: auto; }
.staff-announcement-content th, .staff-announcement-content td { padding: 7px 9px; border: 1px solid var(--line); vertical-align: middle; }
.staff-announcement-content blockquote { margin: 1em 0; padding: 10px 14px; border-left: 4px solid var(--teal); background: #f4faf9; color: #4b5964; }
.staff-announcement-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 26px 24px; background: #fff; }
.staff-announcement-ack { --bs-btn-active-bg: var(--teal-dark); --bs-btn-active-border-color: var(--teal-dark); --bs-btn-focus-shadow-rgb: 20, 130, 124; min-width: 116px; min-height: 40px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 20px rgba(20, 130, 124, .18); }
.staff-announcement-ack:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(20, 130, 124, .22); }
.staff-announcement-ack:active,
.staff-announcement-ack:focus,
.staff-announcement-ack:focus-visible { background: var(--teal-dark) !important; border-color: var(--teal-dark) !important; color: #fff !important; box-shadow: 0 0 0 .18rem rgba(20, 130, 124, .22), 0 10px 20px rgba(20, 130, 124, .16) !important; }
.tutorial-reader-attachments { margin-top: 16px; overflow: hidden; }
.tutorial-reader-file-list { display: grid; }
.tutorial-reader-file { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.tutorial-reader-file:last-child { border-bottom: 0; }
.tutorial-reader-file-name { flex: 1 1 auto; min-width: 120px; max-width: 100%; writing-mode: horizontal-tb; }
.tutorial-reader-file-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: keep-all; line-height: 1.45; }
.tutorial-reader-file strong, .tutorial-reader-file small { display: block; overflow-wrap: break-word; word-break: normal; }
.tutorial-reader-file small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.tutorial-reader-actions, .tutorial-list-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.tutorial-reader-actions { flex: 0 0 auto; margin-left: auto; }
.tutorial-list-actions form { margin: 0; }
.tutorial-frame-viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.tutorial-text-viewer iframe { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.software-admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 16px; }
.software-admin-toolbar .panel-title { margin-bottom: 4px; }
.software-management-table th, .software-management-table td { vertical-align: middle; }
.software-link-preview { display: inline-block; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.software-download-panel { overflow: hidden; }
.software-download-list { display: grid; }
.software-download-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 74px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.software-download-row.is-pinned { background: #f3f8f8; box-shadow: inset 3px 0 0 var(--teal); }
.software-download-row:last-child { border-bottom: 0; }
.software-download-row:hover { background: #f7faf9; }
.software-download-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: #e8f3f2; color: var(--teal); }
.software-download-icon svg { width: 20px; height: 20px; }
.software-download-copy { min-width: 0; }
.software-download-copy strong { display: block; overflow-wrap: anywhere; font-size: 15px; }
.software-download-action { white-space: nowrap; }
.tutorial-link-cell { max-width: 360px; vertical-align: middle; }
.software-download-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.software-download-empty svg { width: 28px; height: 28px; color: #8a959e; }
.software-download-empty span { color: var(--muted); font-size: 12px; }
.tutorial-center-header { align-items: center; }
.tutorial-center-search { display: flex; align-items: center; gap: 8px; min-width: 280px; max-width: 560px; margin: 0; }
.tutorial-center-search .input-group { min-width: 240px; }
.tutorial-center-row.is-pinned { background: #f3f8f8; box-shadow: inset 3px 0 0 var(--teal); }
.tutorial-center-copy { display: grid; gap: 5px; }
.tutorial-center-copy strong { display: flex; min-width: 0; align-items: center; gap: 7px; }
.tutorial-center-copy small { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }

@media (min-width: 768px) {
  .filter-bar.mobile-filter-collapse.collapse { display: grid !important; }
  .employee-primary-actions > .btn, .employee-secondary-actions .dropdown-item { width: 70px; min-width: 70px; height: 31px; min-height: 31px; padding: 4px 6px; justify-content: center; }
}

@media (min-width: 1101px) {
  .order-filter-bar-admin { grid-template-columns: repeat(7, minmax(110px, 1fr)); }
  .order-filter-bar-admin .order-filter-commands-desktop { grid-column: span 2; }
}

@media (max-width: 1100px) {
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4 { grid-column: span 2; }
  .tutorial-attachment-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "icon copy status" "name name name" "order order actions"; }
}

@media (max-width: 900px) {
  .dashboard-distribution-grid { grid-template-columns: 1fr; }
  .dashboard-panel-body, .dashboard-province-panel .dashboard-panel-body { grid-template-columns: 1fr; }
  .daily-report-toolbar-foot { align-items: stretch; flex-direction: column; gap: 10px; }
  .daily-report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .daily-report-actions .btn { width: 100%; min-width: 0; }
}

@media (max-width: 767px) {
  body { font-size: 14px; padding-bottom: 62px; }
  .auth-page { padding-bottom: 0; }
  .sidebar, .topbar { display: none; }
  .main { margin-left: 0; }
  .mobile-topbar { height: 56px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1020; }
  .mobile-topbar strong { font-size: 16px; }
  .content { padding: 16px 12px 76px; }
  .daily-report-status-head { align-items: flex-start; }
  .daily-report-status-head > .btn { flex: 0 0 auto; }
  .daily-report-status-summary > div { padding: 9px 8px; }
  .daily-report-status-summary strong { font-size: 16px; }
  .daily-report-status-filters, .daily-report-status-row { grid-template-columns: 1fr; }
  .daily-report-status-row { gap: 6px; }
  .daily-report-status-row > div:last-child { text-align: left; }
  .manage-hub { gap: 16px; }
  .manage-group h2 { margin-bottom: 8px; color: #4d5965; font-size: 12px; }
  .manage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; }
  .manage-list a { min-height: 108px; height: 100%; grid-template-columns: 1fr; justify-items: center; align-content: center; align-items: center; gap: 7px; padding: 10px; border: 1px solid #cfd8de; border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(24, 33, 42, .07); text-align: center; }
  .manage-list a > svg:first-child { width: 32px; height: 32px; padding: 7px; border-radius: 6px; background: #e8f3f2; color: var(--teal); }
  .manage-list a > svg:last-child { display: none; }
  .manage-list a > span { min-width: 0; align-self: auto; text-align: center; }
  .manage-list strong { font-size: 13px; }
  .manage-list small { margin-top: 3px; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
  .toolbar { align-items: flex-start; }
  .mobile-only, .mobile-filter-toggle { display: inline-flex; }
  .filter-bar.mobile-filter-collapse:not(.show) { display: none; }
  .filter-bar.mobile-filter-collapse.show { display: grid; }
  .responsive-card-table thead { display: none; }
  .responsive-card-table, .responsive-card-table tbody, .responsive-card-table tr, .responsive-card-table td { display: block; width: 100%; }
  .responsive-card-table tbody { display: grid; gap: 14px; width: 100%; padding: 2px; }
  .responsive-card-table tr { margin: 0; overflow: hidden; border: 1px solid #cfd8de; border-radius: 7px; background: #fff; box-shadow: 0 3px 10px rgba(24, 33, 42, .08); }
  .responsive-card-table td { display: grid; grid-template-columns: minmax(104px, .8fr) minmax(0, 1.2fr); gap: 10px; padding: 9px 11px; border-bottom: 1px solid #e8ecef; }
  .responsive-card-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; }
  .responsive-card-table td:last-child { border-bottom: 0; }
  .responsive-card-table .responsive-action-cell { display: block; padding: 10px 11px; border-top: 1px solid #dce2e7; background: #f7f9fa; }
  .responsive-card-table .responsive-action-cell::before { display: none; }
  .responsive-card-table tr:has(> .empty) { box-shadow: none; }
  .batch-toolbar[data-mobile-batch] { display: none; }
  .batch-toolbar[data-mobile-batch].has-selection { position: fixed; z-index: 1035; right: 12px; bottom: 70px; left: 12px; display: flex; box-shadow: 0 8px 24px rgba(24, 33, 42, .18); }
  .modal-fullscreen-sm-down .modal-content { min-height: 100%; }
  .modal-fullscreen-sm-down .panel-header, .mobile-sticky-actions { position: sticky; z-index: 3; bottom: 0; background: var(--surface); }
  .content .mobile-sticky-actions { bottom: 62px; }
  .modal .mobile-sticky-actions { bottom: 0; }
  .batch-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .batch-summary, .batch-actions { width: 100%; }
  .batch-actions { flex-wrap: wrap; }
  .batch-toolbar .form-select { width: min(190px, 100%); }
  .filter-bar { grid-template-columns: 1fr 1fr; padding: 12px; }
  .filter-bar .wide-mobile { grid-column: span 2; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { min-height: 88px; padding: 12px; }
  .kpi-value { font-size: 19px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-distribution-grid, .dashboard-panel-body, .dashboard-province-panel .dashboard-panel-body { grid-template-columns: 1fr; }
  .dashboard-panel-body { gap: 10px; padding: 12px; }
  .chart { height: 270px; }
  .dashboard-trend-chart, .dashboard-province-chart { height: 270px; }
  .dashboard-distribution-chart { height: 230px; }
  .dashboard-data-list, .dashboard-province-panel .dashboard-data-list { max-height: 260px; }
  .form-grid { grid-template-columns: 1fr; }
  .employee-form-grid { grid-template-columns: 1fr; }
  .employee-managed-shops-field { grid-column: span 1; }
  .employee-shop-section-head { align-items: flex-start; }
  .employee-shop-row-fields { grid-template-columns: 1fr; }
  .employee-table { min-width: 0; }
  .employee-list-surface > .table-responsive { overflow-x: visible; }
  .employee-table td { min-width: 0; overflow-wrap: anywhere; }
  .employee-table td > .d-flex { min-width: 0; flex-wrap: wrap; }
  .employee-list-surface > .pagination, .employee-list-surface > .pager { justify-content: center; overflow-x: auto; padding: 12px 8px; }
  .span-2, .span-4 { grid-column: span 1; }
  .money-preview { grid-template-columns: 1fr; }
  .desktop-orders { display: none; }
  .order-mobile { display: block; }
  .order-row { padding: 14px; border-bottom: 1px solid var(--line); }
  .order-row:last-child { border-bottom: 0; }
  .order-row-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
  .order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; color: var(--muted); font-size: 12px; }
  .order-meta strong { display: block; color: var(--ink); font-size: 14px; margin-top: 2px; }
  .order-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .mobile-filter-toggle { width: 100%; margin-bottom: 10px; }
  .order-mobile-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .order-mobile-toolbar .mobile-filter-toggle { width: auto; min-width: 0; flex: 1 1 auto; margin-bottom: 0; }
  .order-filter-commands-mobile { flex: 0 0 auto; }
  .order-filter-commands-mobile .btn { width: 38px; min-width: 38px; padding: 0; }
  .order-filter-commands-mobile .btn span { display: none; }
  .order-filter-commands-desktop { display: none; }
  .mobile-order-more .dropdown-menu { min-width: 150px; padding: 5px; }
  .mobile-order-more .dropdown-item { width: 100%; min-height: 38px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font-size: 13px; text-align: left; }
  .mobile-order-more .dropdown-item.text-danger { color: var(--red); }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 1040; inset: auto 0 0; height: 62px; background: #fff; border-top: 1px solid var(--line); }
  .order-pagination { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .pagination-pages { max-width: 100%; gap: 5px; overflow-x: auto; }
  .panel > .pagination, .panel > .pager { justify-content: center; gap: 4px; padding: 12px 8px; overflow-x: auto; }
  .pagination li a, .pagination li span, .pager li a, .pager li span { min-width: 32px; height: 32px; padding: 0 8px; }
  .mobile-nav:has(a:nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
  .mobile-nav a { color: #68737d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; min-width: 0; }
  .mobile-nav a.active { color: var(--teal); }
  .mobile-nav svg { width: 19px; height: 19px; }
  .login-page { padding: 18px 12px; }
  .login-card { padding: 30px 24px; }
  .login-preferences { flex-direction: column; align-items: flex-start; gap: 9px; }
  .login-preference { white-space: normal; overflow-wrap: anywhere; }
  .date-range-panel { left: 12px !important; right: 12px; width: auto !important; min-height: 0; }
  .password-reminder { align-items: center; flex-direction: row; gap: 8px; padding: 8px; }
  .password-reminder-copy > span, .password-reminder-action-full { display: none; }
  .password-reminder-action-short { display: inline; }
  .daily-report-reminder { align-items: flex-start; flex-direction: column; }
  .daily-report-missing-dates { justify-content: flex-start; }
  .daily-report-title-row { align-items: stretch; flex-direction: column; }
  .daily-report-toolbar-head { grid-template-columns: 44px minmax(0, 1fr); align-items: center; padding: 12px 10px; }
  .daily-report-toolbar-head .daily-report-date-form { grid-column: 1 / -1; }
  .daily-report-toolbar-foot { padding: 10px; }
  .daily-report-identity-heading h2 { font-size: 18px; }
  .daily-report-date-form { width: 100%; flex-basis: auto; }
  .daily-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-report-table-wrap .table-responsive { overflow: visible; }
  .daily-report-table { min-width: 0; table-layout: auto; }
  .daily-report-table thead { display: none; }
  .daily-report-table tbody { display: grid; gap: 14px; width: 100%; padding: 2px; }
  .daily-report-table tr { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid #cfd8de; border-radius: 7px; background: #fff; box-shadow: 0 3px 10px rgba(24, 33, 42, .08); }
  .daily-report-table td { display: block; width: 100%; min-width: 0; padding: 9px 12px; border-right: 1px solid #e8ecef; border-bottom: 1px solid #e8ecef; background: #fff; }
  .daily-report-table td:last-child { border-bottom: 0; }
  .daily-report-table td::before { display: block; margin-bottom: 6px; content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; }
  .daily-report-table td:first-child, .daily-report-table td:last-child { grid-column: 1 / -1; border-right: 0; }
  .daily-report-table td:nth-child(odd):not(:first-child):not(:last-child) { border-right: 0; }
  .daily-report-table td:first-child { display: block; padding: 12px; border-bottom: 1px solid #dce2e7; background: #f7f9fa; }
  .daily-report-table td.empty { border-bottom: 0; background: #fff; }
  .daily-report-table td:first-child::before { display: none; }
  .daily-report-auto-cell .daily-report-auto-control { width: 100%; }
  .daily-report-admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-report-detail-main { align-items: stretch; flex-direction: column; padding: 12px; }
  .daily-report-detail-main .toolbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .daily-report-detail-main .toolbar-actions .btn:only-child { grid-column: 1 / -1; }
  .daily-report-detail-meta-grid { grid-template-columns: 1fr; }
  .daily-report-detail-meta-item + .daily-report-detail-meta-item { border-top: 1px solid var(--line); border-left: 0; }
  .daily-report-admin-list .table-responsive, .daily-report-detail-table .table-responsive { overflow: visible; }
  .daily-report-admin-table, .daily-report-detail-table-content { min-width: 0; }
  .employee-primary-actions { flex-wrap: wrap; justify-content: flex-start; }
  .employee-secondary-actions .responsive-actions-toggle { display: inline-flex; }
  .employee-secondary-actions .dropdown-menu { position: static !important; display: none; min-width: 160px; margin-top: 4px; padding: 5px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(24, 33, 42, .18); transform: none !important; }
  .employee-secondary-actions .dropdown-menu.show { display: block; }
  .employee-secondary-actions .dropdown-item { width: 100%; min-height: 38px; padding: 7px 10px; border: 0; text-align: left; }
  .shop-management-table .form-control, .shop-management-table .form-select, .shop-management-table .input-group,
  .channel-management-table .form-control, .channel-management-table .form-select { width: 100% !important; }
  .shop-fee-input-group { flex-wrap: nowrap; width: 100% !important; }
  .shop-fee-input-group > .form-control { width: 1% !important; min-width: 0; flex: 1 1 auto; }
  .shop-fee-input-group > .input-group-text { flex: 0 0 40px; justify-content: center; }
  .mobile-sort-field { width: 100%; }
  .mobile-sort-field > .form-control { flex: 1; min-width: 0; }
  .mobile-sort-controls { flex: 0 0 auto; }
  .date-quick { width: 76px; padding: 12px 7px; }
  .date-range-main { padding: 9px; }
  .date-range-calendars { grid-template-columns: 1fr; gap: 8px; }
  .date-range-calendars .date-calendar:nth-child(2) { display: none; }
  .remark-palette { grid-template-columns: 52px minmax(0, 1fr); gap: 7px; }
  .palette-none span { width: 52px; }
  .settings-savebar { bottom: 72px; }
  .settings-panel .input-group { flex-wrap: wrap; }
  .settings-panel .input-group > .input-group-text { max-width: 100%; overflow-wrap: anywhere; }
  .settings-panel .input-group > .form-control { min-width: 140px; }
  .tutorial-admin-toolbar, .tutorial-editor-toolbar { align-items: stretch; flex-direction: column; }
  .tutorial-create-action, .tutorial-create-action .btn { width: 100%; }
  .tutorial-filter-bar { width: 100%; min-width: 0; grid-template-columns: 1fr; }
  .tutorial-filter-bar .filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tutorial-search-bar { align-items: stretch; flex-direction: column; }
  .tutorial-search-bar .input-group { max-width: none; }
  .tutorial-list-row { grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 9px; min-height: 86px; padding: 12px 10px; }
  .tutorial-list-icon { width: 32px; height: 32px; }
  .tutorial-list-icon svg { width: 17px; height: 17px; }
  .tutorial-list-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .tutorial-list-title strong { font-size: 14px; }
  .tutorial-list-excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .tutorial-preview-notice { align-items: stretch; flex-direction: column; }
  .tutorial-article-header { padding: 16px; }
  .tutorial-article-heading h1 { font-size: 20px; }
  .tutorial-article-body { min-height: 180px; padding: 18px 16px 28px; font-size: 14px; }
  .software-admin-toolbar { align-items: stretch; flex-direction: column; }
  .software-admin-toolbar .btn { width: 100%; }
  .software-link-preview { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .announcement-meta-grid { grid-template-columns: 1fr; }
  .staff-announcement-dialog { margin: 14px; }
  .staff-announcement-head { grid-template-columns: 38px minmax(0, 1fr) 32px; padding: 18px 18px 10px 20px; }
  .staff-announcement-mark { width: 38px; height: 38px; border-radius: 11px; }
  .staff-announcement-title h2 { font-size: 18px; }
  .staff-announcement-body { max-height: 58vh; padding: 12px 20px 6px; }
  .staff-announcement-foot { padding: 12px 20px 20px; }
  .staff-announcement-ack { width: 100%; }
  .tutorial-center-header { align-items: stretch; flex-direction: column; }
  .tutorial-center-search { width: 100%; max-width: none; min-width: 0; flex-direction: column; align-items: stretch; }
  .tutorial-center-search .input-group { min-width: 0; }
  .software-download-row { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; min-height: 82px; padding: 12px; }
  .software-download-icon { width: 32px; height: 32px; }
  .software-download-icon svg { width: 17px; height: 17px; }
  .software-download-action { grid-column: 1 / -1; width: 100%; }
  }
