:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; color: #20344f; background: #f3f6fb; font-size: 14px; }
* { box-sizing: border-box; } body { margin: 0; } [hidden] { display: none !important; }
.demo-management { max-width: 1600px; margin: auto; padding: 24px; min-width: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }.eyebrow { color: #63809c; font-size: 12px; } h1 { margin: 5px 0 7px; font-size: 25px; } h2 { margin: 0; font-size: 16px; } p { line-height: 1.6; } .page-header p { margin: 0; color: #647994; font-size: 13px; }
nav { display: flex; flex-wrap: wrap; gap: 16px; flex-shrink: 0; } a { color: #2457c5; text-decoration: none; } a:hover { text-decoration: underline; }
button { min-height: 34px; border: 1px solid #cdd9e9; background: #fff; color: #385471; border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
button:hover { background: #edf4ff; border-color: #8eaadd; } button:disabled { cursor: not-allowed; opacity: .45; } button.primary { background: #2861e7; border-color: #2861e7; color: #fff; } button.danger { color: #b13b42; } button:focus-visible, a:focus-visible, input:focus-visible, .table-scroll:focus-visible { outline: 2px solid #4380f4; outline-offset: 2px; }
#demo-status { margin: 0 0 14px; padding: 10px 13px; border: 1px solid #cbdcf7; background: #edf4ff; color: #365a8c; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; } #demo-status[data-error="true"] { background: #fff4ec; color: #a14724; border-color: #f2cfb7; }
.panel { margin: 14px 0; background: #fff; border: 1px solid #dce5f1; border-radius: 10px; padding: 14px 16px; min-width: 0; } #demo-login a { margin-right: 16px; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }.total-card { display: grid; gap: 7px; padding: 14px 18px; background: #fff; border: 1px solid #dce5f1; border-radius: 10px; } .total-card > span { color: #647994; font-size: 13px; } .total-card strong { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; overflow-wrap: anywhere; }.total-card small { color: #7a8ba2; font-size: 12px; }.total-primary { background: #eef4ff; border-color: #c5d7ff; }.total-primary strong { color: #2459c9; }
.controls-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }.display-state { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }.display-state strong { font-weight: 500; }.state-badge { padding: 4px 9px; border-radius: 5px; background: #eff2f6; color: #61748c; }.state-badge[data-active="true"] { color: #087d62; background: #e4f6f0; }.global-actions { display: flex; flex-wrap: wrap; gap: 8px; }.muted { color: #75869c; font-size: 12px; } #demo-date-notice { flex-basis: 100%; margin: 0; } #demo-today { color: #8996a8; }
.records-panel { padding: 0; overflow: hidden; }.records-heading { padding: 14px 16px 5px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }.records-heading h2 small { font-size: 12px; font-weight: 400; color: #8a98ab; padding-left: 8px; }.table-hint { margin: 0; padding: 0 16px 12px; font-size: 12px; color: #7d8da3; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-gutter: stable; } table { width: 100%; min-width: 1140px; table-layout: fixed; border-collapse: collapse; font-size: 13px; }.col-number { width: 44px; }.col-customer { width: 15%; }.col-product { width: 18%; }.col-category { width: 10%; }.col-quantity { width: 80px; }.col-price { width: 105px; }.col-amount { width: 112px; }.col-state { width: 82px; }.col-action { width: 224px; }
th, td { border-top: 1px solid #e7edf5; padding: 8px 6px; text-align: left; } th { background: #f6f8fc; color: #627892; font-weight: 500; height: 40px; } th small { font-weight: 400; color: #9aa7b8; } th:first-child, td:first-child { text-align: center; color: #8090a6; } td { height: 54px; } tbody tr:nth-child(even) { background: #fbfcfe; }
input { width: 100%; min-width: 0; height: 32px; padding: 6px 7px; border: 1px solid #d8e2ef; border-radius: 5px; color: #20344f; background: #fff; font: inherit; font-size: 13px; } input::placeholder { color: #a1adbd; } input:disabled { color: #6c7e95; background: #f4f6f9; }.amount-cell { font-variant-numeric: tabular-nums; font-weight: 600; color: #087e65; overflow-wrap: anywhere; }.row-status { display: block; font-size: 12px; color: #8390a2; }.row-status[data-screen="true"] { color: #078465; }.row-dirty { display: block; color: #b37729; font-size: 11px; margin-top: 4px; }
.action-cell { position: sticky; right: 0; background: #fff; z-index: 1; box-shadow: -4px 0 6px -5px #9cabc0; }.action-cell > div { display: flex; flex-wrap: wrap; gap: 5px; } th.action-cell { background: #f6f8fc; } tbody tr:nth-child(even) .action-cell { background: #fbfcfe; }.action-cell button { min-height: 30px; padding: 4px 7px; font-size: 12px; }.row-error td { background: #fff8f3; }.row-error input:invalid { border-color: #ce7857; }
footer { padding: 0 2px 16px; color: #8c9aae; font-size: 12px; line-height: 1.6; }
@media (max-width: 900px) { .demo-management { padding: 16px; }.page-header { align-items: flex-start; flex-direction: column; gap: 12px; }.total-card { padding: 12px; }.total-card strong { font-size: 22px; }.controls-panel { align-items: flex-start; } }
@media (max-width: 560px) { .demo-management { padding: 12px; } h1 { font-size: 22px; }.totals { gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.total-card { padding: 10px 12px; gap: 6px; }.total-primary { grid-column: 1 / -1; }.total-card > span { font-size: 12px; }.total-card strong { font-size: 20px; }.total-card small { font-size: 11px; }.panel { padding: 12px; }.records-panel { padding: 0; }.global-actions { gap: 6px; }.global-actions button { padding: 6px 9px; }.col-action { width: 195px; }.action-cell button { font-size: 11px; }.records-heading { padding: 12px; }.table-hint { padding: 0 12px 10px; }.display-state { gap: 8px; } }
