:root {
  --bg: #f6f7f3;
  --paper: #fff;
  --ink: #233c34;
  --muted: #78827b;
  --line: #e5e9e2;
  --green: #194d40;
  --sage: #eaf1e8;
  --lime: #d8e9a7;
  --red: #ad4541;
  --surface-muted: #fafbf8;
  --on-primary: #fff;
  --forest: #194d40;
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #96b95d;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 650;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  padding: 32px 18px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 12px 40px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  background: var(--forest);
  color: var(--lime);
  border-radius: 14px;
}
.brand-mark svg {
  width: 27px;
  height: 27px;
}
.brand strong {
  font-size: 23px;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.8px;
  margin-top: 3px;
}
.nav-label {
  color: #9aa29a;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 22px 14px 10px;
  font-weight: 600;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  font-size: 13px;
  color: #77847b;
  border-radius: 9px;
  font-weight: 550;
}
.nav a.active {
  color: var(--green);
  background: var(--sage);
}
.nav a.active::after {
  content: '';
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
}
.nav a:hover {
  background: var(--surface-muted);
  color: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.season-note {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
}
.season-note p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 0;
}
.version {
  font-size: 10px;
  color: #9ba49c;
  padding: 18px 8px 0;
  display: flex;
  justify-content: space-between;
}
.workspace {
  margin-left: 238px;
  width: calc(100% - 238px);
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb span:last-child {
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.online-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.online-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #69a47c;
  border-radius: 100%;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f0eee5;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #65644e;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.profile small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}
.content {
  padding: 34px 42px 52px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 600;
  min-height: 39px;
  white-space: nowrap;
}
.btn:hover {
  border-color: #b8c7b6;
  background: var(--surface-muted);
}
.btn.primary {
  background: var(--green);
  color: var(--on-primary);
  border-color: var(--green);
}
.btn.primary:hover {
  filter: brightness(1.12);
}
.btn.soft {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--green);
}
.btn.danger {
  color: var(--red);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--sage);
  color: var(--green);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.menu-button {
  display: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: var(--paper);
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.stat-label svg {
  width: 16px;
  height: 16px;
}
.stat strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stat small {
  display: block;
  font-size: 10px;
  margin-top: 8px;
}
.stat.accent {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.stat.accent .stat-label,
.stat.accent small {
  color: #bad1c1;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 {
  margin: 0;
}
.count {
  font-size: 11px;
  background: var(--sage);
  color: var(--green);
  padding: 4px 8px;
  border-radius: 5px;
  margin-left: 8px;
  font-weight: 500;
}
.toolbar {
  padding: 0 24px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  position: relative;
  flex: 1;
  max-width: 420px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: #8b968b;
}
.search input {
  padding-left: 36px;
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #9aa398;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #d2e1bd;
  outline-offset: 1px;
}
select {
  min-height: 39px;
}
label {
  font-size: 12px;
  font-weight: 550;
  display: grid;
  gap: 7px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
thead {
  background: var(--surface-muted);
}
th {
  font-weight: 500;
  font-size: 10px;
  color: #899386;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  padding-left: 24px;
}
th:last-child,
td:last-child {
  padding-right: 24px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface-muted);
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.product-cell img {
  width: 42px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  background: #f0f4e9;
}
.product-cell strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  line-height: 1.4;
}
.product-cell small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.price del {
  font-size: 10px;
  font-weight: 400;
  color: #a0a89e;
  display: block;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 10px;
  white-space: nowrap;
  background: #f0f3eb;
  color: #71806b;
}
.badge.available {
  color: #497250;
  background: #edf5ea;
}
.badge.available::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #77a76b;
}
.badge.promo {
  background: #fbf3df;
  color: #a28038;
}
.badge.offline {
  background: #fff2dc;
  color: #957128;
}
.badge.sold {
  background: #f5ece9;
  color: #b47c71;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}
.table-footer {
  border-top: 1px solid var(--line);
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.empty {
  padding: 54px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty svg {
  width: 35px;
  height: 35px;
  color: #a1b591;
  margin-bottom: 12px;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 550;
}
.notice {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--surface-muted);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.notice.warning {
  color: #89692f;
  background: #fff7e7;
}
.notice.error {
  color: #a3443e;
  background: #fff0ed;
}
.hero {
  background: var(--forest);
  border-radius: 14px;
  color: white;
  padding: 34px;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  overflow: hidden;
}
.hero h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 10px 0;
}
.hero p {
  font-size: 12px;
  color: #c3d6c5;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 22px;
}
.hero .eyebrow {
  color: var(--lime);
}
.hero .btn {
  background: var(--lime);
  border: 0;
  color: #214936;
}
.hero-illustration {
  width: 175px;
  height: 160px;
  color: #b4c984;
  flex-shrink: 0;
}
.hero-illustration svg {
  width: 100%;
  height: 100%;
  stroke-width: 0.75;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.cart-panel {
  position: sticky;
  top: 20px;
}
.cart-items {
  padding: 0 22px;
  max-height: 52vh;
  overflow: auto;
}
.cart-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--green);
}
.cart-bottom {
  padding: 22px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin: 0 0 20px;
}
.cart-total strong {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.cart-bottom .btn {
  width: 100%;
  margin-bottom: 10px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.product-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 7px;
  background: #ecf1e5;
}
.product-card h3 {
  font-size: 13px;
  margin: 0;
}
.product-card p {
  font-size: 10px;
  margin: 0;
  color: var(--muted);
}
.product-card .actions {
  margin-top: auto;
  justify-content: space-between;
}
.product-card .btn {
  padding: 8px;
  min-height: 32px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.info-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.info-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.info-card > svg {
  color: #789760;
  margin-bottom: 18px;
}
.info-card h2 {
  font-size: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span-2 {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  min-height: 38px;
}
.check input {
  accent-color: var(--green);
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.form-error {
  color: var(--red);
  font-size: 12px;
  min-height: 16px;
  margin-top: 12px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
}
.dialog-head h2 {
  font-size: 22px;
  margin: 0;
}
.dialog-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 24px 90px #183c3422;
}
dialog::backdrop {
  background: #17352d66;
  backdrop-filter: blur(3px);
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  background: var(--forest);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}
.login-art .brand {
  margin: 0;
}
.login-art .brand-mark {
  background: #ffffff15;
}
.login-art .brand small {
  color: #b7cbb6;
}
.login-art h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.13;
  max-width: 470px;
  letter-spacing: -2px;
  font-weight: 500;
}
.login-art p {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.9;
  color: #bfd1bc;
}
.login-art .hero-illustration {
  align-self: center;
  width: 220px;
  height: 220px;
}
.login-art > small {
  color: #9cb69d;
}
.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.login-box {
  width: 350px;
}
.login-box h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.login-box > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-box form {
  display: grid;
  gap: 18px;
}
.login-box .btn {
  padding: 13px;
}
.login-box .eyebrow {
  color: #859479;
}
.login-box > small {
  display: block;
  margin-top: 32px;
  line-height: 1.7;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: var(--green);
  color: var(--on-primary);
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 8px 35px #194d4033;
  display: none;
}
#toast.show {
  display: block;
}
.overlay {
  display: none;
}
.skeleton {
  padding: 65px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.print-only {
  display: none;
}
.summary-table td {
  padding: 12px 4px;
}
.summary-total {
  font-size: 22px;
  text-align: right;
  margin-top: 22px;
}
.transaction-id {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.compact-list {
  padding: 0 24px 20px;
}
.list-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.list-line:last-child {
  border: 0;
}
.sub-list {
  padding-left: 20px;
}
.settings-box {
  max-width: 680px;
}
.archive-detail {
  max-height: 60vh;
  overflow: auto;
}
.mobile-cart-shortcut {
  display: none;
}
.language-picker {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.language-picker select {
  font-size: 11px;
  padding: 7px 9px;
  min-height: 34px;
}
.login-box > .language-picker {
  justify-content: flex-end;
  margin-bottom: 28px;
}
.topbar-right .language-picker > span {
  display: none;
}
@media (min-width: 1550px) {
  .content {
    padding-top: 42px;
  }
  .stat {
    padding: 25px;
  }
  .product-cell img {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .topbar {
    padding: 0 24px;
  }
  .content {
    padding: 28px 24px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .search {
    min-width: 200px;
  }
  .optional-col {
    display: none;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 250px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 70px;
    padding: 0 20px;
  }
  .menu-button {
    display: inline-grid;
  }
  .breadcrumb {
    gap: 8px;
  }
  .topbar-right {
    gap: 12px;
  }
  .profile-copy,
  .topbar .online-dot {
    display: none;
  }
  .content {
    padding: 24px 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 26px;
  }
  .page-head .actions {
    width: 100%;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: static;
  }
  .overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: #18352c66;
    z-index: 25;
  }
  .hero {
    padding: 26px;
  }
  .hero-illustration {
    width: 120px;
  }
  .panel-head {
    padding: 20px;
  }
  .toolbar {
    padding: 0 20px 18px;
  }
  .search {
    max-width: none;
  }
  .toolbar > select {
    flex: 1;
  }
  .row-actions .icon-btn {
    padding: 10px;
  }
  td,
  th {
    padding: 12px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  }
  .product-card img {
    height: 130px;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form-area {
    min-height: 100dvh;
  }
  .login-box {
    width: 100%;
    max-width: 360px;
  }
  .login-box::before {
    content: '✳ Flower';
    font-size: 24px;
    font-weight: 650;
    display: block;
    color: var(--green);
    margin-bottom: 55px;
  }
  .form-grid {
    gap: 14px;
  }
  .btn {
    min-height: 42px;
  }
  .hero h2 {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .content {
    padding: 24px 14px;
  }
  .topbar {
    padding: 0 14px;
  }
  .stats {
    gap: 9px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat {
    padding: 16px;
  }
  .stat-label {
    font-size: 10px;
  }
  .hero-illustration {
    display: none;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .toolbar > select {
    max-width: 50%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  dialog {
    padding: 22px;
  }
  .page-head .btn {
    flex: 1;
  }
  .hide-small {
    display: none;
  }
  .product-card {
    padding: 10px;
  }
  .product-card img {
    height: 118px;
  }
  .brand {
    margin-bottom: 22px;
  }
}
@media (max-width: 850px) {
  .mobile-cart-shortcut {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: 0 5px 20px #194d4044;
    min-width: 250px;
  }
  .split {
    padding-bottom: 65px;
  }
  .breadcrumb > span:first-of-type {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-right .avatar {
    display: none;
  }
  .topbar-right #yearSelect {
    max-width: 145px;
  }
  .topbar {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121c19;
  --paper: #1c2924;
  --surface-muted: #202f29;
  --ink: #e6eee7;
  --muted: #a7b7ac;
  --line: #34463c;
  --green: #b3d790;
  --on-primary: #182c20;
  --sage: #2b3e30;
  --red: #f3a39a;
  --forest: #234b3d;
}
[data-theme='dark'] .nav a,
[data-theme='dark'] .nav-label,
[data-theme='dark'] th,
[data-theme='dark'] .count,
[data-theme='dark'] .price del {
  color: var(--muted);
}
[data-theme='dark'] .avatar,
[data-theme='dark'] .count,
[data-theme='dark'] .product-cell img,
[data-theme='dark'] .product-card img {
  background: var(--sage);
  color: var(--green);
}
[data-theme='dark'] .badge {
  background: #2e3e32;
  color: #bed1b9;
}
[data-theme='dark'] .badge.available {
  background: #2a4031;
  color: #b5d4a0;
}
[data-theme='dark'] .badge.promo,
[data-theme='dark'] .badge.offline,
[data-theme='dark'] .notice.warning {
  background: #423b24;
  color: #edcf88;
}
[data-theme='dark'] .badge.sold,
[data-theme='dark'] .notice.error {
  background: #482f2b;
  color: #f3b2a6;
}
input,
select,
textarea {
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.catalog-add {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.catalog-add .btn {
  min-height: 39px;
}
.quantity-field {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.quantity-field input {
  width: 72px;
  min-width: 0;
  height: 39px;
  padding: 8px;
  text-align: center;
}
.product-card .catalog-add {
  margin-top: 3px;
}
.product-card .catalog-add .btn {
  flex: 1;
}
.card-end {
  display: none;
}
.qty {
  gap: 8px;
}
.qty input {
  width: 68px;
  min-width: 0;
  padding: 5px;
  height: 32px;
  text-align: center;
  font-size: 12px;
}
.appearance-control {
  display: grid;
  gap: 10px;
  font-size: 12px;
}
.login-preferences {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.login-preferences .language-control {
  margin-bottom: 0;
}
.topbar-right > [data-action='theme'] {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .breadcrumb > span {
    display: none;
  }
  .topbar-right {
    margin-left: auto;
  }
  .topbar-right #yearSelect {
    max-width: 130px;
  }
  .catalog-add {
    gap: 6px;
  }
  .quantity-field input {
    width: 60px;
  }
}

@media print {
  :root,
  :root[data-theme] {
    color-scheme: light;
    --bg: #fff;
    --paper: #fff;
    --surface-muted: #fafbf8;
    --ink: #233c34;
    --muted: #626d65;
    --line: #ddd;
    --green: #194d40;
    --sage: #eaf1e8;
  }
  body {
    background: var(--paper);
  }
  .sidebar,
  .topbar,
  .no-print,
  #toast,
  dialog,
  .overlay {
    display: none !important;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .panel {
    border: 0;
    overflow: visible;
  }
  .table-wrap {
    overflow: visible;
  }
  .print-only {
    display: block;
  }
  .page-head {
    margin: 0 0 20px;
  }
  .badge {
    border: 1px solid #ddd;
  }
  .price del {
    display: none;
  }
  th,
  td {
    padding: 8px !important;
    font-size: 11px;
  }
  .optional-col {
    display: table-cell;
  }
  tr {
    break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 12mm;
  }
}

.summary-divider {
  border: 0;
  border-top: 2px solid var(--green);
  margin: 22px 0;
}
