:root {
  --nav:#17283f;
  --blue:#2463eb;
  --blue-dark:#1c50c8;
  --ink:#203047;
  --muted:#708096;
  --line:#e3e9f1;
  --bg:#f5f7fa;
  --green:#12845c;
  --red:#ce4242;
  --amber:#a56a13;
  font-family:"Noto Sans CJK SC","Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;
  font-size:14px;
  color:var(--ink);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
html {
  scrollbar-gutter:stable;
}
body {
  margin:0;
  background:var(--bg);
}
[hidden] {
  display:none!important;
}
button,input,select,textarea {
  font:inherit;
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:9px 15px;
  border:1px solid #d6dfea;
  border-radius:7px;
  background:#fff;
  color:#3b4f69;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  line-height:20px;
}
button:hover,.button:hover {
  background:#f1f5fc;
  border-color:#adbfda;
}
button:disabled {
  opacity:.45;
  cursor:not-allowed;
}
.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}
.primary:hover {
  background:var(--blue-dark);
  border-color:var(--blue-dark);
}
button:focus-visible,a:focus-visible {
  outline:3px solid #abc7ff;
  outline-offset:2px;
}
a {
  color:var(--blue);
}
input,select,textarea {
  display:block;
  width:100%;
  min-width:0;
  min-height:42px;
  padding:9px 12px;
  border:1px solid #d6dfea;
  border-radius:7px;
  outline:0;
  background:#fff;
  color:var(--ink);
  line-height:22px;
}
input:focus,select:focus,textarea:focus {
  border-color:#729df2;
  box-shadow:0 0 0 3px #2463eb0c;
}
input::placeholder,textarea::placeholder {
  color:#93a0b2;
}
textarea {
  resize:vertical;
}
label,.field-label {
  display:block;
  color:#52647b;
  font-size:13px;
  font-weight:500;
}
label>input,label>select,label>textarea {
  margin-top:7px;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:25px;
  font-weight:650;
  line-height:36px;
}
h2 {
  font-size:16px;
  font-weight:600;
}
h3 {
  font-size:17px;
}
small {
  color:var(--muted);
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  z-index:10;
  width:208px;
  padding:28px 14px;
  background:var(--nav);
  color:#a6b6ce;
  overflow-y:auto;
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  margin-bottom:34px;
  color:white;
  font-size:19px;
  font-weight:600;
  text-decoration:none;
  height:40px;
}
.brand-mark {
  display:grid;
  place-items:center;
  flex:none;
  width:34px;
  height:36px;
  border-radius:9px;
  background:#3678ff;
  font-size:21px;
}
.nav-label {
  padding:0 14px;
  margin-bottom:12px;
  font-size:12px;
  color:#8395af;
}
nav {
  display:flex;
  flex-direction:column;
  gap:6px;
}
nav button {
  flex:none;
  width:100%;
  height:48px;
  min-height:48px;
  padding:0 14px;
  border:0;
  justify-content:flex-start;
  gap:12px;
  background:transparent;
  color:#adbed5;
  font-size:14px;
  line-height:20px;
  box-shadow:none;
}
nav button:hover {
  background:#233c5b;
  border:0;
}
nav button.active {
  background:#2865e9;
  color:#fff;
}
.nav-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:21px;
  height:21px;
  flex:none;
}
.nav-icon svg {
  width:21px;
  height:21px;
}
.workspace {
  margin-left:208px;
  min-width:0;
}
header {
  height:60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.breadcrumb {
  font-size:12px;
  color:#8190a5;
}
.breadcrumb span {
  margin:0 12px;
  color:#b5c0cf;
}
.breadcrumb strong {
  font-weight:500;
  color:#40536d;
}
.header-right {
  display:flex;
  align-items:center;
  gap:12px;
}
main {
  max-width:1700px;
  margin:auto;
  padding:26px 28px 32px;
}
.view {
  min-width:0;
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  min-height:40px;
}
.heading-actions {
  display:flex;
  align-items:center;
  gap:10px;
}
.panel {
  min-width:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:62px;
  padding:16px 22px;
  border-bottom:1px solid var(--line);
}
.text-button {
  border:0;
  background:transparent;
  color:var(--blue);
  padding:5px 0;
  min-height:28px;
  font-size:12px;
}
.text-button:hover {
  background:transparent;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px;
}
.metric {
  padding:17px 20px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
}
.metric>span {
  font-size:13px;
  color:var(--muted);
}
.metric>strong {
  display:block;
  margin-top:8px;
  font-size:29px;
  line-height:36px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
}
.check-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 410px;
  align-items:start;
  gap:20px;
}
.check-side {
  min-width:0;
}
.scan-result {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  min-height:225px;
  padding:24px;
  margin:20px 22px;
  border-radius:9px;
  border:1px solid #e2e9f4;
  background:#f6f9ff;
  text-align:center;
}
.scan-result.ok {
  background:#edf9f3;
  border-color:#a8dfc3;
}
.scan-result.bad {
  background:#fff2f0;
  border-color:#efb4ac;
}
.scan-result h2 {
  font-size:19px;
  margin-top:8px;
}
.result-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:50%;
  color:#4276bb;
  background:#e5edfc;
  font-size:27px;
}
.ok .result-icon {
  background:#d4efdf;
  color:var(--green);
}
.bad .result-icon {
  background:#fbdcd7;
  color:var(--red);
}
#result-number {
  font-size:33px;
  line-height:1.4;
  margin:8px 0;
  font-weight:650;
  overflow-wrap:anywhere;
  max-width:100%;
}
.scan-result p {
  font-size:13px;
  line-height:1.8;
  color:#637892;
}
#result-customer {
  max-width:100%;
  margin-top:7px;
  font-size:16px;
  font-weight:600;
  color:#2b4261;
  overflow-wrap:anywhere;
}
.scan-result.idle #result-number:empty,.scan-result.idle #result-detail:empty {
  display:none;
}
#scan-form {
  padding:0 22px 22px;
}
.scan-label {
  margin-bottom:8px;
}
.scan-input-row {
  display:flex;
  gap:10px;
  align-items:center;
}
.scan-corner {
  color:#91a5c0;
  font-size:24px;
}
.scan-input-row input {
  flex:1;
  min-width:0;
}
.scan-input-row button {
  min-height:44px;
}
.scan-helper {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  font-size:12px;
  color:#7c8ca2;
}
.scan-helper:has(#input-status:empty):has(#queue-status[hidden]) {
  display:none;
}
.recent-list {
  max-height:460px;
  overflow:auto;
}
.recent-list th,.recent-list td {
  padding:12px 11px;
  font-size:12px;
}
.recent-list td strong {
  font-size:13px;
}
.recent-customer {
  display:block;
  max-width:114px;
  margin-top:5px;
  color:#2b4261;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.5;
}
.recent-list button {
  font-size:12px;
  white-space:nowrap;
  padding:5px 7px;
  min-height:30px;
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border-radius:5px;
  font-size:12px;
  line-height:18px;
  font-weight:500;
  white-space:nowrap;
}
.pill.success {
  background:#e9f6ef;
  color:#16784f;
}
.pill.warning {
  background:#fff4df;
  color:#9a6519;
}
.pill.danger {
  background:#fcecea;
  color:#c13f3f;
}
.pill.neutral {
  background:#eef2f7;
  color:#6a7a8f;
}
.pill.blue {
  background:#eaf1ff;
  color:#2c64ce;
}
.table-wrap {
  width:100%;
  overflow:auto;
  overscroll-behavior-x:contain;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  white-space:nowrap;
  text-align:left;
}
th {
  padding:13px 18px;
  background:#f8fafc;
  border-bottom:1px solid var(--line);
  font-size:12px;
  font-weight:500;
  color:#6b7c93;
}
td {
  height:53px;
  padding:13px 18px;
  border-bottom:1px solid #edf1f6;
  color:#465b75;
}
tbody tr:last-child td {
  border-bottom:0;
}
tbody tr:hover {
  background:#fafcff;
}
td strong {
  font-weight:500;
  color:#2b4261;
}
td .sub {
  display:block;
  margin-top:4px;
  color:#8292a8;
  font-size:11px;
}
td button {
  padding:5px 10px;
  min-height:30px;
  font-size:12px;
}
td.wrap {
  min-width:160px;
  max-width:340px;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.7;
}
td.empty {
  height:120px;
  text-align:center;
  color:#8999ae;
}
.record-actions {
  white-space:nowrap;
}
.record-actions button+button {
  margin-left:7px;
}
.filters {
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
}
.filters>label {
  width:180px;
  min-width:0;
}
.filters>.grow {
  flex:1;
  min-width:220px;
}
.filters>button {
  min-height:42px;
}
.pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 22px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:#74869f;
}
.pagination>div {
  display:flex;
  align-items:center;
  gap:12px;
}
.pagination button {
  padding:5px 10px;
  min-height:32px;
  font-size:12px;
}
.form-stack {
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:24px;
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.form-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding-top:4px;
}
.sale-layout {
  width:100%;
}
.sale-customer-row {
  display:flex;
  align-items:flex-end;
  gap:12px;
  max-width:520px;
}
.sale-customer-row label {
  flex:1;
  min-width:0;
}
.sale-customer-row button {
  min-height:42px;
}
.sale-mode-tabs {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  padding:5px;
  background:#f0f4fa;
  border-radius:8px;
}
.sale-mode-tabs button {
  border:0;
  background:transparent;
  min-height:44px;
  white-space:normal;
}
.sale-mode-tabs button.active {
  background:#fff;
  color:var(--blue);
  box-shadow:0 1px 5px #1c3b7420;
  font-weight:600;
}
.sale-scan-row {
  display:flex;
  gap:10px;
  margin-top:8px;
}
.sale-scan-row input {
  flex:1;
  min-width:0;
}
.sale-scan-row button {
  min-height:44px;
}
.sale-endpoints {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.sale-endpoints>div {
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f9fbfe;
  min-width:0;
}
.sale-endpoints small,.sale-endpoints span {
  display:block;
  color:#7b8ca3;
  font-size:12px;
}
.sale-endpoints strong {
  display:block;
  font-size:18px;
  font-weight:500;
  margin:8px 0;
  overflow-wrap:anywhere;
}
.sale-history {
  margin-top:22px;
}
.sale-selection-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.sale-selection-summary span {
  color:#4265a5;
}
#sale-selected .table-wrap {
  max-height:310px;
  border:1px solid var(--line);
  border-radius:7px;
}
#sale-number-range {
  padding:0;
}
#sale-number-range>label {
  max-width:520px;
}
#sale-scan-message {
  margin-top:10px;
  font-size:13px;
}
#sale-list-hint {
  display:block;
  margin-top:9px;
  color:var(--muted);
}
#sale-list-hint:empty {
  display:none;
}
.empty-state {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:60px 22px;
  color:#647993;
}
.empty-state strong {
  font-size:16px;
  font-weight:500;
}
.catalog-layout {
  display:grid;
  grid-template-columns:minmax(300px,.8fr) minmax(0,1.5fr);
  gap:20px;
}
.catalog-layout .form-stack {
  padding:22px;
}
.advanced-time {
  grid-column:1/-1;
  padding:10px 22px;
}
.report-panel {
  overflow:visible;
}
.report-tabs {
  display:flex;
  gap:28px;
  padding:0 22px;
  border-bottom:1px solid var(--line);
  min-height:60px;
}
.report-tabs button {
  height:60px;
  padding:0 3px;
  border:0;
  border-bottom:3px solid transparent;
  border-radius:0;
  background:transparent;
  font-size:14px;
  color:#687d97;
}
.report-tabs button:hover {
  color:var(--blue);
  background:transparent;
}
.report-tabs button.active {
  border-bottom-color:var(--blue);
  color:var(--blue);
  font-weight:600;
}
.report-filters {
  padding:20px 22px;
  gap:14px;
}
.report-filters>label {
  width:170px;
}
.filter-actions {
  display:flex;
  align-items:center;
  gap:8px;
  height:42px;
}
.list-summary {
  padding:14px 22px;
  color:#7d8da4;
  font-size:12px;
}
.report-panel>.table-wrap {
  border-radius:0 0 10px 10px;
}
.date-field {
  width:285px;
  position:relative;
  flex:none;
}
.field-label {
  margin-bottom:7px;
}
.date-trigger {
  width:100%;
  justify-content:flex-start;
  min-height:42px;
  padding:9px 11px;
  font-size:13px;
}
.date-trigger svg {
  width:18px;
  height:18px;
  color:#7c8ea6;
  flex:none;
}
.date-trigger>span:last-child {
  margin-left:auto;
  color:#8294ae;
}
.date-value {
  font-variant-numeric:tabular-nums;
}
.date-popover {
  position:fixed;
  max-height:calc(100dvh - 32px);
  overflow-y:auto;
  z-index:30;
  top:calc(100% + 8px);
  left:0;
  width:650px;
  padding:16px;
  border:1px solid #dbe3ee;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 40px #1b35542b;
}
.date-shortcuts {
  display:flex;
  gap:8px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.date-shortcuts button {
  min-height:32px;
  padding:5px 11px;
  font-size:12px;
  background:#f7f9fc;
}
.calendar-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:14px 0 5px;
}
.calendar-toolbar>div {
  display:flex;
  justify-content:center;
  gap:9px;
}
.calendar-toolbar select {
  min-height:35px;
  padding:4px 9px;
  width:110px;
  font-size:13px;
}
.calendar-toolbar select:last-child {
  width:85px;
}
.calendar-toolbar>button {
  padding:0;
  width:32px;
  min-height:32px;
  font-size:24px;
}
.calendars {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.calendar-title {
  padding:9px 0 12px;
  text-align:center;
  font-size:13px;
  font-weight:600;
  color:#526985;
}
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:3px;
}
.calendar-week {
  display:grid;
  place-items:center;
  height:28px;
  font-size:12px;
  color:#8998ab;
}
.calendar-day {
  padding:0;
  min-height:32px;
  height:32px;
  width:100%;
  border:1px solid transparent;
  border-radius:5px;
  font-size:13px;
  color:#435874;
}
.calendar-day.today {
  border-color:#abc7fa;
  color:var(--blue);
}
.calendar-day.in-range {
  background:#edf3ff;
  color:#2b64ca;
}
.calendar-day.selected {
  background:var(--blue);
  color:white;
  border-color:var(--blue);
}
.date-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.date-footer span {
  font-size:12px;
  color:#7a8ca5;
}
.date-footer button {
  min-height:35px;
  padding:6px 17px;
}
.alert {
  padding:13px 15px;
  border:1px solid;
  border-radius:7px;
  font-size:13px;
  line-height:1.8;
  overflow-wrap:anywhere;
}
.alert.error {
  background:#fff2f0;
  border-color:#f1c6c1;
  color:#b7463c;
}
.alert.warning {
  background:#fff8e9;
  border-color:#ecd7ab;
  color:#9d6b1d;
}
.alert p {
  margin:4px 0 10px;
}
#global-error {
  margin-bottom:20px;
}
#pending-box {
  margin:0 22px 22px;
}
.button-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.button-row button {
  padding:6px 10px;
  font-size:12px;
}
.danger-text {
  color:var(--red);
}
hr {
  width:100%;
  border:0;
  border-top:1px solid var(--line);
  margin:12px 0;
}
details {
  font-size:13px;
  color:#6e829d;
}
summary {
  padding:8px 0;
  cursor:pointer;
  color:#526e91;
}
details[open]>summary {
  margin-bottom:12px;
}
details .form-grid {
  margin-bottom:16px;
}
details button {
  margin-top:10px;
}
.checkbox {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  line-height:1.7;
}
.checkbox input {
  width:16px;
  min-height:16px;
  margin:0;
  flex:none;
}
.import-assignment {
  border:1px solid var(--line);
  padding:16px;
  border-radius:8px;
  margin:12px 0;
}
.assignment-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.assignment-title strong {
  font-weight:600;
}
.assignment-title button {
  font-size:12px;
  min-height:30px;
  padding:5px 9px;
}
.import-assignment>label {
  margin-top:12px;
}
.assignment-face {
  color:var(--muted);
  font-size:12px;
  margin-top:10px;
}
#modal {
  width:min(720px,calc(100vw - 32px));
  padding:0;
  max-height:90vh;
  border:1px solid #e0e6ef;
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  box-shadow:0 18px 70px #0f253133;
}
#modal::backdrop {
  background:#14243c66;
}
#modal-form {
  display:flex;
  flex-direction:column;
  max-height:calc(90vh - 2px);
}
.modal-heading,.modal-footer {
  flex-shrink:0;
}
.modal-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
}
.modal-heading h2 {
  font-size:18px;
}
.icon-button {
  padding:0;
  width:30px;
  min-height:30px;
  border:0;
  color:#8b9eb7;
  font-size:25px;
}
#modal-body {
  display:flex;
  flex-direction:column;
  gap:18px;
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:22px 24px;
}
#modal-body>* {
  flex-shrink:0;
}
#modal-body p {
  color:#6e829d;
  font-size:13px;
  line-height:1.8;
}
#modal-body .table-wrap {
  max-height:280px;
  border:1px solid var(--line);
  border-radius:7px;
}
#modal-body td,#modal-body th {
  padding:11px 12px;
  font-size:12px;
}
.import-preview {
  min-width:0;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
}
#modal-body .import-preview .table-wrap {
  max-height:430px;
  border:0;
  border-radius:0;
}
#modal-body .import-preview td {
  height:39px;
  padding:10px 12px;
}
.import-preview .pagination {
  padding:13px 12px;
  flex-wrap:wrap;
  gap:10px;
}
.import-preview .pagination>div {
  gap:10px;
}
.import-preview [aria-busy=true] {
  opacity:.55;
}
.modal-footer {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:16px 24px;
  border-top:1px solid var(--line);
  background:#fafcff;
}
#modal-error {
  margin:0 24px 18px;
}
.confirm-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f6f9fd;
}
.confirm-summary small {
  display:block;
  margin-bottom:6px;
}
.confirm-summary strong {
  font-size:20px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.batch-summary {
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.batch-actions {
  margin:18px 0;
}
.advanced-actions .button-row,.advanced-actions>button {
  margin-top:14px;
}
.customer-info {
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  margin:-8px 0 20px;
  color:var(--muted);
  font-size:13px;
  overflow-wrap:anywhere;
}
.customer-metrics {grid-template-columns:repeat(3,minmax(0,1fr));}
.customer-metrics small {display:block;margin-top:6px;color:#6e829d;font-size:12px;}
.customer-faces {margin-bottom:22px;}
.customer-name {max-width:240px;text-align:left;white-space:normal;overflow-wrap:anywhere;}
#customer-detail-name {overflow-wrap:anywhere;}
#customer-detail-page .page-heading>div {min-width:0;}
.subtle {color:#8292a8;font-size:12px;}
@media(max-width:600px) {
  .customer-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  .customer-metrics .metric:last-child {grid-column:1/-1;}
  .customer-metrics strong {font-size:clamp(18px,5vw,28px);}
  .customer-faces .panel-heading {flex-wrap:wrap;gap:8px;}
}
.toast {
  position:fixed;
  z-index:100;
  left:calc(50% + 104px);
  bottom:28px;
  transform:translateX(-50%);
  max-width:calc(100vw - 40px);
  padding:12px 20px;
  border-radius:8px;
  background:#263e5d;
  color:#fff;
  font-size:13px;
  line-height:1.7;
  box-shadow:0 5px 24px #162d5020;
  white-space:pre-line;
}
@media(max-width:1200px) {
  .check-layout {
    grid-template-columns:minmax(0,1fr) 360px;
    gap:16px;
  }
  .recent-type {
    display:none;
  }
  .catalog-layout {
    grid-template-columns:1fr;
  }
  .report-filters>label {
    width:165px;
  }
  main {
    padding:22px 24px;
  }
}
@media(max-width:1000px) {
  .check-layout {
    grid-template-columns:1fr;
  }
  .recent-type {
    display:table-cell;
  }
  .recent-list {
    max-height:360px;
  }
  .date-popover {
    width:600px;
  }
  .sidebar {
    width:190px;
    padding:25px 10px;
  }
  .workspace {
    margin-left:190px;
  }
  .brand {
    font-size:18px;
    padding:0 8px;
  }
  .report-tabs {
    gap:24px;
  }
}
@media(max-width:760px) {
  .sidebar {
    width:64px;
    padding:20px 7px;
  }
  .brand {
    padding:0;
    justify-content:center;
    margin-bottom:25px;
  }
  .brand>span:last-child,.nav-label,.nav-text {
    display:none!important;
  }
  nav button {
    padding:0;
    justify-content:center;
    height:46px;
    min-height:46px;
  }
  .workspace {
    margin-left:64px;
  }
  header {
    padding:0 18px;
    height:54px;
  }
  main {
    padding:20px 16px;
  }
  .page-heading {
    gap:12px;
    margin-bottom:17px;
  }
  h1 {
    font-size:22px;
  }
  .metrics {
    gap:10px;
  }
  .metric {
    padding:14px;
  }
  .metric>strong {
    font-size:25px;
  }
  .check-layout {
    gap:16px;
  }
  .date-popover {
    width:min(600px,calc(100vw - 128px));
  }
  .calendars {
    grid-template-columns:1fr;
  }
  .calendar-month+ .calendar-month {
    display:none;
  }
  .date-shortcuts {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  .date-shortcuts button {
    padding:4px 6px;
  }
  .calendar-toolbar select {
    width:100px;
  }
  .calendar-toolbar select:last-child {
    width:80px;
  }
  .report-tabs {
    gap:18px;
    padding:0 18px;
    overflow:auto;
  }
  .report-tabs button {
    font-size:13px;
    flex:none;
  }
  .filters,.report-filters {
    padding:18px;
    gap:12px;
  }
  .filters>label {
    width:calc(50% - 6px);
    flex:none;
  }
  .date-field {
    width:100%;
  }
  .filter-actions {
    width:100%;
  }
  .form-stack {
    padding:20px;
  }
  .toast {
    left:50%;
  }
}
@media(max-width:480px) {
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .metric {
    padding:13px 14px;
  }
  .metric>span {
    font-size:12px;
  }
  .page-heading {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .heading-actions {
    gap:6px;
  }
  .heading-actions button {
    font-size:12px;
    padding:7px 10px;
  }
  .panel-heading {
    padding:16px;
  }
  .scan-result {
    margin:16px;
    min-height:210px;
    padding:18px;
  }
  #result-number {
    font-size:25px;
  }
  .scan-result p {
    font-size:12px;
  }
  .scan-corner {
    display:none;
  }
  #scan-form {
    padding:0 16px 18px;
  }
  .scan-input-row {
    flex-wrap:wrap;
  }
  .scan-input-row input {
    flex-basis:100%;
  }
  .scan-input-row button {
    width:100%;
  }
  .sale-mode-tabs {
    gap:3px;
    padding:4px;
  }
  .sale-mode-tabs button {
    font-size:12px;
    line-height:18px;
    padding:8px 5px;
    min-height:54px;
  }
  .sale-customer-row {
    gap:8px;
  }
  .sale-customer-row button {
    padding:8px 10px;
    font-size:12px;
  }
  .sale-scan-row {
    flex-wrap:wrap;
  }
  .sale-scan-row input {
    flex-basis:100%;
  }
  .sale-scan-row button {
    width:100%;
  }
  .sale-endpoints {
    gap:9px;
  }
  .sale-endpoints>div {
    padding:13px 11px;
  }
  .sale-endpoints strong {
    font-size:15px;
  }
  .form-grid {
    grid-template-columns:1fr;
  }
  .form-stack {
    padding:18px 16px;
    gap:17px;
  }
  .sale-selection-summary {
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .date-popover {
    padding:12px;
    left:-1px;
    width:calc(100vw - 128px);
  }
  .calendar-toolbar {
    gap:4px;
  }
  .calendar-toolbar>div {
    gap:5px;
  }
  .calendar-toolbar select {
    width:86px;
    padding:4px 5px;
    font-size:12px;
  }
  .calendar-toolbar select:last-child {
    width:68px;
  }
  .calendar-toolbar>button {
    width:26px;
    flex:none;
  }
  .date-footer {
    align-items:flex-start;
  }
  .date-footer span {
    font-size:11px;
    line-height:18px;
  }
  .report-tabs {
    gap:15px;
    padding:0 15px;
  }
  .report-tabs button {
    font-size:12px;
  }
  .date-trigger {
    font-size:12px;
  }
  .filters>label {
    width:100%;
  }
  .filters>.grow {
    min-width:0;
  }
  .pagination {
    padding:14px;
    flex-wrap:wrap;
    gap:9px;
  }
  th,td {
    padding:12px 14px;
  }
  .recent-list th,.recent-list td {
    padding:11px 9px;
  }
  .recent-type {
    display:none;
  }
  .confirm-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:14px;
    gap:14px;
  }
  #modal-body {
    padding:20px;
  }
  .modal-heading {
    padding:18px 20px;
  }
  .modal-footer {
    padding:15px 20px;
  }
  #modal-error {
    margin:0 20px 16px;
  }
  .record-actions button+button {
    margin-left:4px;
  }
  .catalog-layout {
    gap:17px;
  }
}
body {
  overflow-anchor:none;
}
.catalog-layout {
  align-items:start;
}
#view-settings .catalog-layout {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media(max-width:1000px) {
  #view-settings .catalog-layout {
    grid-template-columns:1fr;
  }
}
@media(max-width:760px) {
  .report-tabs {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
    padding:0 7px;
    overflow:visible;
  }
  .report-tabs button {
    width:100%;
    min-width:0;
    padding:0;
    font-size:12px;
  }
}

.import-date {
  width:100%;
  margin-bottom:18px;
}
#import-dates .date-popover {
  z-index:50;
}

.inline-date .date-popover {
  position:static;
  width:100%;
  max-width:420px;
  max-height:none;
  overflow:visible;
  margin-top:12px;
  padding:12px;
  box-shadow:none;
}
.inline-date .calendars {
  grid-template-columns:1fr;
}
.date-popover button {
  margin-top:0;
}
.ticket-summary {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
