:root {
  color-scheme: light;
  --bg: #f3f5f0;
  --card: #fff;
  --ink: #203328;
  --muted: #718074;
  --line: #e1e8de;
  --green: #214936;
  --light: #eaf2e8;
  --danger: #a14332;
  --shadow: 0 2px 3px #20332803, 0 10px 32px #20332807;
  --font-song: "SimSun", "宋体", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-family: var(--font-song);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body,
button,
input,
select,
textarea,
option,
input::file-selector-button {
  font-family: var(--font-song);
}
input::-webkit-datetime-edit,
input::placeholder,
textarea::placeholder {
  font-family: var(--font-song);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  min-height: 44px;
  padding: 9px 14px;
  font-weight: 600;
}
button:hover {
  background: #f1f6ef;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #96bda4;
  outline-offset: 2px;
}
input,
select,
textarea {
  border: 1px solid #d8e1d4;
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  font-size: 16px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}
textarea {
  resize: vertical;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.4;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
.muted,
small {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 3px 8px #21493618;
}
.primary:hover {
  background: #2d5c45;
}
.secondary {
  background: #fff;
}
.danger {
  color: var(--danger);
  border-color: #e8c9c1;
}
.text {
  background: transparent;
  border-color: transparent;
  color: var(--green);
}
.icon {
  padding: 4px;
  min-width: 44px;
  font-size: 22px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6b8169;
  margin-bottom: 9px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fcfdfbf0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.bar-inner {
  max-width: 1220px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 13px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 41px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 12px 5px 12px 5px;
  font-size: 22px;
  font-family: var(--font-song);
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 2px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
}
nav {
  display: flex;
  gap: 6px;
}
nav button {
  min-width: 68px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
nav button.active {
  background: var(--light);
  color: var(--green);
}
.sync {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  max-width: 230px;
}
.sync::before {
  content: "●";
  color: #6c996a;
  margin-right: 6px;
}
.sync.off::before {
  color: #d59743;
}
.shell {
  max-width: 1220px;
  margin: auto;
  padding: 32px 24px 110px;
}
.heading {
  margin-bottom: 28px;
  align-items: end;
}
.heading p {
  color: var(--muted);
  margin-top: 8px;
}
.banner {
  padding: 12px 24px;
  background: #fbefd8;
  color: #775119;
  text-align: center;
  font-size: 13px;
}
.banner button {
  margin-left: 8px;
}
.notice {
  background: #f2f6ef;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.8;
  color: #56684f;
}
.notice.warn {
  background: #fff7e7;
  color: #896322;
  border-color: #efddbb;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 22px;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 13px 0 8px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 11px;
}
.dashboard {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  padding: 22px 24px;
  border-bottom: 1px solid #eef1eb;
}
.card-body {
  padding: 24px;
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.month-card {
  background: #244934;
  color: #fff;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.month-card input {
  background: #ffffff12;
  border-color: #ffffff25;
  color: white;
  width: 160px;
  font-size: 13px;
}
.month-card small,
.month-card .muted {
  color: #b7cbb5;
}
.month-card strong.big {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0;
}
.month-breakdown {
  display: grid;
  gap: 14px;
  margin-top: auto;
}
.month-breakdown div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.inventory-row,
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid #eef2eb;
}
.inventory-row:last-child,
.doc-row:last-child {
  border-bottom: 0;
}
.thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 11px;
  background: #f0f4eb;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #6e8264;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--light);
  color: #487044;
  white-space: nowrap;
}
.badge.warn {
  background: #faf0da;
  color: #a47525;
}
.badge.void {
  background: #f3eae6;
  color: #a17464;
}
.doc-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--light);
  color: #426c42;
  flex-shrink: 0;
  font-size: 19px;
}
.doc-icon.purchase,
.doc-icon.expense {
  background: #f7edda;
  color: #967036;
}
.doc-row {
  cursor: pointer;
}
.doc-row:hover {
  background: #fafcf8;
}
.doc-row h3 {
  font-size: 14px;
  line-height: 1.7;
}
.doc-row p {
  font-size: 11px;
  color: var(--muted);
}
.doc-amount {
  text-align: right;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.doc-amount small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
}
.filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.filters.ledger {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #65745e;
}
.field input,
.field select,
.field textarea {
  color: var(--ink);
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.product .thumb {
  width: 57px;
  height: 57px;
  border-radius: 12px;
}
.product h3 {
  line-height: 1.6;
  word-break: break-word;
}
.product-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #edf1e8;
  border-bottom: 1px solid #edf1e8;
  margin: 12px 0;
}
.product-values small {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.product-values b {
  font-size: 15px;
  font-weight: 500;
}
.product-actions {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.product-actions button {
  font-size: 12px;
  padding: 6px 10px;
}
.selected-bar {
  padding: 12px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 16px 0;
}
.chips button {
  white-space: nowrap;
  font-size: 12px;
}
.chips button.active {
  background: var(--green);
  color: white;
}
.quickbar {
  display: flex;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px;
  gap: 7px;
  background: #fdfefbf2;
  box-shadow: 0 8px 40px #20332825;
  border: 1px solid #dce5d6;
  border-radius: 16px;
  z-index: 11;
  backdrop-filter: blur(12px);
}
.quickbar button {
  min-width: 125px;
  min-height: 44px;
}
.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.backup-icon {
  font-size: 27px;
  margin-bottom: 15px;
}
.backup-grid p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.file-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.keyval {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  gap: 16px;
  font-size: 13px;
}
.audit {
  border-left: 2px solid var(--line);
  padding: 0 0 20px 16px;
  margin-left: 5px;
  font-size: 12px;
}
.audit p {
  color: var(--muted);
  font-size: 11px;
}
dialog {
  border: 1px solid #e3e9df;
  border-radius: 18px;
  padding: 0;
  width: min(840px, calc(100% - 28px));
  max-height: 90dvh;
  box-shadow: 0 30px 100px #18302740;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #162b2355;
  backdrop-filter: blur(3px);
}
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dialog-head,
.dialog-footer,
.form-error {
  flex-shrink: 0;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.dialog-head .eyebrow {
  margin-bottom: 5px;
}
#modalBody {
  padding: 22px 26px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: #f9fbf7;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.dialog-footer .total {
  margin-right: auto;
  font-size: 22px;
  font-weight: 600;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  padding: 0 26px 12px;
  line-height: 1.7;
}
.form-error:empty {
  display: none;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.span-all {
  grid-column: 1/-1;
}
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}
.picker {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  align-content: start;
}
.picker button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 400;
  padding: 8px;
}
.picker .thumb {
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.picker b {
  font-size: 12px;
  display: block;
}
.picker small {
  font-size: 10px;
  display: block;
}
.cart {
  display: grid;
  gap: 12px;
  align-content: start;
}
.cart-line {
  background: #f7f9f4;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 12px;
}
.cart-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.quantity-control {
  display: flex;
  gap: 3px;
}
.quantity-control button {
  min-width: 32px;
  padding: 3px;
}
.quantity-control input {
  padding: 8px 2px;
  text-align: center;
  font-size: 14px;
  min-width: 38px;
}
.cart-line .field {
  font-size: 10px;
}
.cart-line input {
  font-size: 14px;
}
.order-meta {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sort-row .position {
  width: 65px;
  font-size: 14px;
}
.sort-row .sort-buttons {
  display: flex;
  gap: 3px;
}
.sort-row button {
  font-size: 12px;
  padding: 5px 9px;
}
.sort-row .number {
  color: var(--muted);
  font-size: 11px;
  width: 20px;
}
.sort-row[draggable="true"] {
  cursor: grab;
}
.toast {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  background: #203b2f;
  color: white;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
  max-width: 90%;
  font-size: 13px;
  line-height: 1.7;
}
.detail-lines .keyval {
  align-items: start;
}
.detail-lines .keyval p {
  font-size: 11px;
  color: var(--muted);
}
.detail-lines .keyval button {
  font-size: 12px;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.pending {
  font-size: 12px;
  background: #fff3d8;
  color: #8c611e;
  padding: 14px;
  border-radius: 9px;
  margin-bottom: 18px;
}
.statline {
  display: flex;
  gap: 20px;
  padding: 14px 24px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.statline b {
  color: var(--ink);
}
.backup-ready {
  padding: 16px;
  background: var(--light);
  border-radius: 12px;
  margin-top: 14px;
}
.checklabel {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
}
.checklabel input {
  flex-shrink: 0;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1000px) {
  .filters.ledger {
    grid-template-columns: repeat(3, 1fr);
  }
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric strong {
    font-size: 24px;
  }
  .bar-inner {
    gap: 10px;
  }
}
@media (max-width: 680px) {
  .bar-inner {
    padding: 12px 16px 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 34px;
    height: 37px;
    font-size: 20px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small {
    font-size: 9px;
  }
  .sync {
    order: 1;
    font-size: 10px;
    max-width: 175px;
    padding: 6px 0;
  }
  nav {
    order: 2;
    width: 100%;
    justify-content: space-around;
    padding: 6px 0 9px;
  }
  nav button {
    flex: 1;
    font-size: 13px;
    min-height: 40px;
  }
  .shell {
    padding: 22px 16px 108px;
  }
  .heading {
    gap: 12px;
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 28px;
  }
  .heading p {
    font-size: 12px;
  }
  .heading > .row {
    width: 100%;
  }
  .heading > .row button {
    flex: 1;
  }
  .eyebrow {
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    padding: 16px;
    border-radius: 13px;
  }
  .metric strong {
    font-size: 25px;
    margin: 12px 0 5px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric small {
    font-size: 10px;
  }
  .dashboard {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
  }
  .month-card {
    padding: 23px;
    gap: 20px;
  }
  .card-head {
    padding: 18px;
  }
  .card-body {
    padding: 18px;
  }
  .inventory-row,
  .doc-row {
    padding: 14px 16px;
    gap: 11px;
  }
  .doc-amount {
    font-size: 14px;
  }
  .doc-row h3 {
    font-size: 13px;
  }
  .doc-row p {
    font-size: 10px;
  }
  .thumb {
    width: 40px;
    height: 40px;
  }
  .item-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product {
    padding: 16px;
  }
  .product .thumb {
    width: 50px;
    height: 50px;
  }
  .product-values {
    padding: 12px 0;
  }
  .product-head {
    margin-bottom: 8px;
  }
  .product-values b {
    font-size: 16px;
  }
  .filters,
  .filters.ledger {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 10px;
  }
  .filters .search {
    grid-column: 1/-1;
  }
  .filters input,
  .filters select {
    font-size: 14px;
  }
  .quickbar {
    bottom: 0;
    left: 0;
    width: 100%;
    transform: none;
    border-radius: 14px 14px 0 0;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    gap: 7px;
  }
  .quickbar button {
    flex: 1;
    min-width: 0;
    font-size: 13px;
  }
  .quickbar .primary {
    flex: 1.4;
  }
  .backup-grid {
    grid-template-columns: 1fr;
  }
  .backup-grid p {
    font-size: 12px;
  }
  .statusbar {
    font-size: 10px;
    align-items: start;
  }
  .banner {
    padding: 10px 16px;
    font-size: 12px;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    height: 94dvh;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
  #modalBody {
    padding: 18px;
  }
  .dialog-footer {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    gap: 7px;
  }
  .dialog-footer button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .dialog-footer .total {
    font-size: 20px;
  }
  .order-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .picker {
    max-height: 190px;
    grid-template-columns: 1fr 1fr;
  }
  .picker button {
    padding: 7px;
    gap: 6px;
    min-height: 54px;
  }
  .picker b {
    font-size: 11px;
  }
  .picker .thumb {
    width: 30px;
    height: 30px;
  }
  .cart {
    max-height: none;
  }
  .fields {
    gap: 12px;
  }
  .cart-controls {
    grid-template-columns: 1.2fr 1fr;
  }
  .sort-row {
    gap: 5px;
    flex-wrap: wrap;
  }
  .sort-row .grow {
    min-width: 130px;
    font-size: 13px;
  }
  .sort-row .position {
    width: 55px;
  }
  .sort-row .sort-buttons {
    margin-left: auto;
  }
  .sort-row button {
    padding: 5px 8px;
    min-height: 42px;
  }
  .statline {
    padding: 12px 16px;
    gap: 10px;
  }
  .toast {
    bottom: 90px;
  }
  .form-error {
    padding: 0 18px 10px;
  }
}
.month-card > .row > .small {
  white-space: nowrap;
}
/* Song type needs comfortable size and spacing, especially on a phone. */
.muted,
small {
  color: #62705f;
}
.sync,
.eyebrow,
.brand small,
.metric-label,
.metric small,
.product-values small,
.picker small,
.cart-line .field,
.doc-row p,
.doc-amount small,
.statusbar,
.audit p {
  font-size: 12px;
}
.heading .eyebrow {
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.heading p {
  max-width: 42em;
}
.product .product-head small {
  display: block;
  line-height: 1.7;
  margin-top: 2px;
}
.product-values b {
  font-size: 17px;
  font-weight: 700;
}
.product-actions {
  align-items: center;
}
.selected-bar {
  gap: 12px;
  min-height: 64px;
}
.selected-bar button {
  font-size: 13px;
}
.sort-row {
  padding: 12px 0;
}
.sort-row button {
  min-width: 48px;
}
.keyval > :last-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
.banner {
  line-height: 1.7;
}
.month-card .muted,
.month-card small {
  color: #cfddcd;
}
@media (max-width: 680px) {
  h1 {
    font-size: 26px;
  }
  .heading {
    margin-bottom: 18px;
  }
  .heading p {
    font-size: 13px;
  }
  .heading .eyebrow {
    display: none;
  }
  .heading > .row:empty {
    display: none;
  }
  nav button {
    min-height: 44px;
    font-size: 14px;
  }
  .statusbar {
    line-height: 1.6;
    flex-wrap: wrap;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 26px;
  }
  .product-actions button,
  .quickbar button {
    font-size: 14px;
  }
  .product .product-head h3 {
    font-size: 17px;
  }
  .selection-help {
    display: none;
  }
  .sort-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 60px;
    gap: 8px;
  }
  .sort-row .grow {
    min-width: 0;
    font-size: 15px;
  }
  .sort-row .sort-buttons {
    grid-column: 2 / -1;
    justify-content: flex-end;
    margin: 0;
    gap: 6px;
  }
  .sort-row button {
    min-width: 48px;
    font-size: 13px;
  }
  .picker b {
    font-size: 13px;
  }
  .picker small {
    font-size: 11px;
  }
  .picker {
    grid-template-columns: 1fr;
    max-height: 230px;
  }
  .picker .thumb {
    width: 35px;
    height: 35px;
  }
  .picker button {
    padding: 9px 10px;
  }
  .doc-row h3 {
    font-size: 15px;
  }
  .filters input,
  .filters select,
  .cart-line input {
    font-size: 16px;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .dialog-footer .total {
    font-size: 23px;
  }
}
@media (min-width: 681px) and (max-width: 850px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .month-card {
    min-height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
