@font-face {
  font-family: "Visia Pro";
  src: url("fonts/VisiaPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visia Pro";
  src: url("fonts/VisiaPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visia Pro";
  src: url("fonts/VisiaPro-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Visia Pro";
  src: url("fonts/VisiaPro-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --navy: #19313f;
  --orange: #f7931e;
  --cream: #f6f5f0;
  --line: #dfe3e2;
  --muted: #728087;
  --red: #b5473e;
  --shadow-sm: 0 1px 2px rgba(25, 49, 63, 0.06), 0 4px 10px rgba(25, 49, 63, 0.05);
  --shadow-md: 0 14px 32px rgba(25, 49, 63, 0.12), 0 4px 10px rgba(25, 49, 63, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Visia Pro", system-ui, sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
button,
input,
select,
textarea,
a {
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease,
    transform 0.1s ease;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.loading,
.fatal {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.shell > aside {
  background: var(--navy);
  color: white;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo > span {
  width: 46px;
  height: 46px;
  padding: 7px;
  background: white;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo strong,
.logo b {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.logo small,
.account small {
  display: block;
  color: #93a4ac;
  margin-top: 3px;
  font-size: 10px;
}
.shell nav {
  display: grid;
  gap: 7px;
  margin-top: 32px;
}
.shell nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #bdc7cc;
  padding: 13px 14px;
  border-radius: 11px;
  text-align: left;
  font-weight: 700;
}
.shell nav button .icon {
  opacity: 0.85;
}
.shell nav button.active {
  background: var(--orange);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.shell nav button.active .icon {
  opacity: 1;
}
.schoolpicker {
  margin-top: 18px;
  padding: 14px 10px;
  border-top: 1px solid #ffffff20;
  border-bottom: 1px solid #ffffff20;
  display: grid;
  gap: 7px;
}
.schoolpicker label {
  font-size: 9px;
  color: #93a4ac;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.schoolpicker select {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 9px;
  color: var(--navy);
  background: white;
  font: inherit;
}
.schoolpicker button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--orange);
  text-align: left;
  padding: 2px 0;
  font-size: 10px;
  font-weight: 700;
}
.schoolpicker button .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
.account {
  margin-top: auto;
  border-top: 1px solid #ffffff20;
  padding: 18px 8px 0;
  display: grid;
}
.account button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--orange);
  padding: 0;
  text-align: left;
  font-size: 11px;
}
.account button .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}
.workspace {
  padding: 34px 38px;
  min-width: 0;
}
.workspace > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.workspace > header > div:first-of-type {
  flex: 1;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #869297;
  font-weight: 800;
  margin: 0 0 5px;
}
h1 {
  font:
    500 34px Georgia,
    serif;
  margin: 0;
}
.avatar {
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.sales {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}
.search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 16px;
  background: white;
}
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.products article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.pic {
  height: 92px;
  background: #e8ece9;
  display: flex;
  align-items: flex-start;
  padding: 12px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pbody {
  padding: 14px;
}
.ptitle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}
.sizes button {
  flex: 0 0 calc(25% - 5px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 6px 2px;
  display: grid;
}
.sizes button:disabled {
  opacity: 0.4;
}
.sizes small {
  font-size: 9px;
  color: var(--muted);
}
.sizes .low {
  color: var(--red);
}
.order {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.order h2 {
  font:
    500 20px Georgia,
    serif;
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.order h2 small {
  display: block;
  font: 700 9px Inter;
  margin-top: 5px;
  color: var(--muted);
  text-transform: uppercase;
}
.cart {
  padding: 8px 20px;
  flex: 1;
}
.cartline {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cartline > div {
  display: grid;
}
.cartline small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.cartline > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cartline button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
}
.checkout {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.checkout > div {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 14px;
}
.checkout > .ordertotals { display: grid; gap: 7px; font-size: 11px; }
.ordertotals > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.ordertotals > span small { margin-right: auto; font-size: 8px; }
.ordertotals > span b { color: var(--navy); font-size: 12px; }
.ordertotals .grandtotal { border-top: 1px solid var(--line); padding-top: 10px; color: var(--navy); font-size: 14px; font-weight: 700; }
.ordertotals .grandtotal b { font-size: 19px; }
.checkout > button,
.actions > button,
.authcard > button,
.save {
  width: 100%;
  border: 0;
  background: var(--orange);
  color: var(--navy);
  font-weight: 850;
  min-height: 46px;
  border-radius: 10px;
}
.checkout > button:disabled {
  background: #d8dcda;
  color: var(--muted);
}
.empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.empty span {
  font-size: 11px;
  margin-top: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  display: grid;
}
.stats span {
  font-size: 11px;
  color: var(--muted);
}
.stats b {
  font: 500 27px Georgia;
  margin-top: 7px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.actions > button {
  width: auto;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.stocktable {
  overflow-x: auto;
}
.stockrow {
  min-width: 1450px;
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 100px repeat(16, 60px) 150px;
  align-items: center;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.stockrow:first-child {
  border-top: 0;
}
.stockhead {
  background: #edf0ee;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stockhead span:nth-child(n + 3) {
  text-align: center;
}
.productcell {
  display: grid;
  gap: 3px;
}
.productcell small {
  color: var(--muted);
  font-size: 9px;
}
.stockqty {
  width: 44px;
  height: 36px;
  border: 1px solid #cfe1d7;
  background: #edf8f1;
  color: #267348;
  border-radius: 8px;
  font-weight: 700;
}
.stockqty.lowqty {
  background: #fff1e8;
  border-color: #f3c9ac;
  color: #ad5718;
}
.stockqty.zeroqty {
  background: #ffe1df;
  border-color: #e99b96;
  color: #b3261e;
}
.reporttitle > small { display: block; margin-top: 4px; color: var(--muted); }
.reportcalendarpanel { margin-bottom: 16px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.calendarhead { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; margin-bottom: 12px; }
.calendarhead h3 { margin: 0; text-align: center; font-size: 18px; }
.calendarhead button, .calendarall { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); min-height: 34px; font-weight: 700; }
.calendarweek, .calendargrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendarweek { margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendarweek span { padding: 4px; }
.calendarday { min-height: 74px; display: grid; align-content: start; justify-items: start; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; color: var(--navy); text-align: left; }
.calendarday > span { font-weight: 800; }
.calendarday b { font-size: 10px; }
.calendarday small { color: var(--muted); font-size: 7px; }
.calendarday.hassales { background: #fff7ec; border-color: #f2c27e; }
.calendarday.selected { outline: 3px solid var(--orange); outline-offset: -2px; background: #fff0d7; }
.calendarblank { min-height: 74px; }
.calendarall { display: block; margin: 12px auto 0; padding: 0 14px; }
.calendarall:disabled { opacity: .45; }
.rowactions {
  display: flex;
  gap: 6px;
}
.rowactions button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 7px 9px;
}
.rowactions .danger {
  border: 0;
  background: #fff0ee;
}
.row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1.8fr 0.5fr;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.row.head,
.reportrow.head {
  border: 0;
  background: #edf0ee;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.row > span:first-child {
  display: grid;
}
.row small {
  color: var(--muted);
  margin-top: 3px;
}
.stock {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stock button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 5px 7px;
}
.stock button b {
  margin-left: 5px;
  background: #e9f2ed;
  color: #27734a;
  padding: 2px 4px;
  border-radius: 4px;
}
.danger {
  border: 0;
  background: #fff0ee;
  color: var(--red);
  border-radius: 7px;
  padding: 7px 9px;
}
.teamgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.teamgrid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.teamgrid h3 {
  margin: 13px 0 2px;
}
.teamgrid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.teamgrid article > div:nth-of-type(2) {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 14px;
  font-size: 11px;
}
.reportrow {
  display: grid;
  grid-template-columns: 0.6fr 0.75fr 0.9fr 0.8fr 1.8fr 0.65fr 0.8fr;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.paymenttag { width: max-content; align-self: center; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 800; }
.paymenttag.cash { background: #e8f4ed; color: #27734a; }
.paymenttag.card { background: #e9eef6; color: #345c8c; }
.paymenttag.mixed { background: #fff0d9; color: #9c570f; }
.paymentcell { display: grid; justify-items: start; align-content: center; gap: 4px; }
.paymentcell small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.reprint { align-self: center; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--navy); padding: 6px 8px; font-size: 10px; font-weight: 700; }
.reportorderactions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.deleteorder { border: 0; border-radius: 7px; background: #fff0ee; color: var(--red); padding: 6px 8px; font-size: 10px; font-weight: 700; }
.deleteordermodal { position: relative; width: min(460px, 100%); background: white; border-radius: 18px; padding: 28px; box-shadow: 0 24px 70px #0b1d27aa; }
.deleteordermodal h2 { margin: 4px 0 5px; font-size: 28px; }
.deleteordermodal > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.deleteordersummary { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.deleteorderchoices { display: grid; gap: 9px; margin-top: 18px; }
.deleteorderchoices button { min-height: 45px; border: 0; border-radius: 9px; padding: 0 13px; font-weight: 800; }
.deleteorderchoices [data-delete-choice="restore"] { background: var(--orange); color: var(--navy); }
.deleteorderchoices .secondary { background: #edf0ee; color: var(--navy); }
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.authbrand {
  background: var(--navy);
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brandhero {
  width: min(560px, 100%);
  border-radius: 24px;
  display: block;
  box-shadow: 0 24px 55px #071c2644;
}
.authbrand h1 {
  font-size: 50px;
  max-width: 580px;
  margin-top: 80px;
}
.authbrand p {
  color: #b7c3c8;
  max-width: 500px;
  line-height: 1.7;
}
.authcard {
  width: min(430px, calc(100% - 40px));
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.authcard h2,
.modal h2 {
  font: 500 28px Georgia;
  margin: 0 0 24px;
}
.authcard label,
.modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 15px;
}
.authcard input,
.modal input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
}
.hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.error {
  color: var(--red);
  font-size: 11px;
  margin-top: 10px;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: #122c3aaa;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.modal {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: white;
  padding: 26px;
  border-radius: 17px;
}
.modal > .save {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  margin-top: 14px;
  box-shadow: 0 -10px 18px #ffffffee;
}
.close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: #edf0ee;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.toast {
  position: fixed;
  right: 25px;
  top: 22px;
  background: var(--navy);
  color: white;
  border-left: 4px solid var(--orange);
  padding: 13px 18px;
  border-radius: 9px;
  z-index: 10;
}
.checkoutmodal,
.receiptmodal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 70px #0b1d27aa;
}
.checkoutmodal h2 { margin: 4px 0 20px; font-size: 25px; }
.checkoutsummary { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0; margin-bottom: 16px; }
.checkoutsummary > div { display: grid; text-align: right; gap: 3px; }
.checkoutsummary > div small { color: var(--muted); font-size: 9px; }
.checkoutsummary b { font-size: 22px; }
.paymentchoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.paymentchoices button { display: grid; text-align: left; gap: 5px; min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafaf8; color: var(--navy); }
.paymentchoices button:hover { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.paymentchoices b { font-size: 18px; }
.paymentchoices small, .checkoutnote { color: var(--muted); }
.paymenticon { font-size: 25px; color: var(--orange); }
.checkoutnote { font-size: 10px; margin: 14px 0 0; }
.mixedpayment { margin-top: 14px; padding: 16px; border: 1px solid #efbd7c; border-radius: 14px; background: #fff9f0; }
.mixedpayment[hidden] { display: none; }
.mixedtitle { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mixedtitle small { color: var(--muted); font-size: 9px; }
.mixedfields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mixedfields label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.mixedfields input { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; color: var(--navy); background: white; }
.mixedremaining { display: flex; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid #ead8bd; }
.mixederror { min-height: 15px; margin: 5px 0 9px; color: #a94f0d; font-size: 9px; }
.mixedpayment.complete .mixederror { color: #267348; }
.confirmmixed { width: 100%; min-height: 43px; border: 0; border-radius: 9px; background: var(--orange); color: var(--navy); font-weight: 800; }
.confirmmixed:disabled { background: #d8dcda; color: var(--muted); }
.receiptmodal { width: min(430px, 100%); background: #f5f4ef; padding: 24px; }
.receiptpreview { width: min(80mm, 100%); margin: 0 auto; padding: 18px; background: white; color: #111; font: 12px Arial, sans-serif; box-shadow: 0 5px 20px #19313f18; }
.receiptbrand { text-align: center; font-size: 18px; font-weight: 800; letter-spacing: 1.5px; padding: 5px 0 14px; }
.receiptmeta { display: grid; gap: 3px; text-align: center; padding-bottom: 12px; border-bottom: 1px dashed #777; }
.receiptmeta span { font-size: 10px; }
.receiptitems { padding: 8px 0; }
.receiptitem, .receiptpayment { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.receiptpaymentsplit { display: grid; gap: 4px; padding: 0 0 6px 10px; font-size: 11px; }
.receiptpaymentsplit span { display: flex; justify-content: space-between; }
.receiptitem small { display: block; color: #555; margin-top: 2px; }
.receiptsummary { display: grid; gap: 5px; padding: 8px 0; border-top: 1px dashed #777; }
.receiptsummary span, .receipttotal { display: flex; justify-content: space-between; }
.receipttotal { border-top: 1px dashed #777; border-bottom: 1px dashed #777; padding: 10px 0; font-size: 15px; }
.receiptthanks { text-align: center; margin: 16px 0 2px; }
.receiptbuttons { display: flex; gap: 10px; margin-top: 16px; }
.receiptbuttons button { flex: 1; border: 0; border-radius: 10px; padding: 13px; font-weight: 800; }
.receiptbuttons .secondary { background: white; color: var(--navy); border: 1px solid var(--line); }
.receiptbuttons .printreceipt { background: var(--orange); color: var(--navy); }
.inventoryactions { display: flex; gap: 9px; justify-content: flex-end; }
.inventoryactions > button { width: auto; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.inventoryactions .secondaryaction { background: white; border: 1px solid var(--line); }
.bundlebadge { display: block; width: max-content; margin-top: 5px; border-radius: 999px; padding: 3px 6px; background: #fff0dc; color: #a85613; font-size: 7px; letter-spacing: .05em; }
.bundleproduct { box-shadow: inset 0 3px 0 var(--orange); }
.bundleconfigure { display: grid; gap: 6px; margin-top: 13px; }
.bundleconfigure button { min-height: 42px; border: 0; border-radius: 9px; background: var(--orange); color: var(--navy); font-weight: 800; }
.bundleconfigure button:disabled { background: #d8dcda; color: var(--muted); }
.bundleconfigure small { color: var(--muted); font-size: 8px; text-align: center; }
.bundlechoiceintro { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 10px; }
.bundlechoiceintro > b { display: grid; justify-items: end; }
.bundlechoiceintro small { color: var(--muted); font-size: 8px; }
.bundlechoices { display: grid; gap: 8px; max-height: min(48vh, 440px); overflow-y: auto; padding-right: 4px; }
.bundlecomponent { display: grid; gap: 10px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.bundlecomponenthead { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.bundlecomponenthead > span { display: grid; min-width: 0; }
.bundlecomponent small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.bundlecomponenthead label { display: flex !important; align-items: center; gap: 7px; margin: 0 !important; font-size: 9px; }
.bundlecomponenthead input { width: 64px !important; min-height: 38px; padding: 0 8px !important; text-align: center; }
.bundlesizelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bundlesizelist label { display: grid !important; gap: 4px; margin: 0 !important; color: var(--muted); font-size: 8px; }
.bundlesizelist select { width: 100%; min-height: 39px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 0 8px; font: inherit; color: var(--navy); }
.bundleomitted { padding: 8px 0; font-style: italic; }
.bundlecartline { align-items: flex-start; }
.bundlecartline > div { min-width: 0; }
.bundlecartline small { line-height: 1.5; }
.bundlecartline [data-minus] { padding: 6px 8px; color: var(--red); }
.bundlerow { background: #fffaf3; }
.componentlist { max-height: 290px; overflow: auto; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.componentrow { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 0 !important; padding: 9px; border-bottom: 1px solid var(--line); }
.componentrow > input { width: auto; }
.componentrow > span { display: grid; }
.componentrow > span:last-child { grid-template-columns: auto 60px; align-items: center; gap: 6px; }
.componentrow small, .bundlehelp { color: var(--muted); font-size: 9px; }
.componentrow input[type="number"] { min-height: 34px; margin: 0; }
.reportactions { display: flex; gap: 9px; justify-content: flex-end; }
.reportactions > button { width: auto; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.reportactions .danger { background: #fff0ee; color: var(--red); }
.dashboardstats article small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.dashboardgrid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.panelhead h3 {
  font: 500 20px Georgia;
  margin: 0;
}
.panelhead button {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 800;
  font-size: 10px;
}
.recent {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.recent > div {
  display: grid;
}
.recent small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.recent strong {
  font-size: 12px;
}
.quick {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.quick button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-weight: 750;
  border-radius: 10px;
  padding: 12px 15px;
}
.quick button:first-child {
  background: var(--orange);
  border-color: var(--orange);
}
@media (max-width: 900px) {
  .sales {
    grid-template-columns: 1fr;
  }
  .products {
    grid-template-columns: 1fr 1fr;
  }
  .shell {
    grid-template-columns: 80px 1fr;
  }
  .shell .logo > div,
  .account b,
  .account small {
    display: none;
  }
  .shell nav button {
    font-size: 0;
    justify-content: center;
    gap: 0;
  }
  .schoolpicker button span,
  .account button span {
    display: none;
  }
  .schoolpicker,
  .account {
    padding-left: 0;
    padding-right: 0;
  }
  .schoolpicker button,
  .account button {
    justify-content: center;
  }
  .workspace {
    padding: 25px;
  }
  .teamgrid {
    grid-template-columns: 1fr 1fr;
  }
  .row {
    grid-template-columns: 1.2fr 0.7fr 1.5fr;
  }
  .row > span:last-child {
    grid-column: 1/-1;
    margin-top: 8px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .authbrand {
    display: none;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .shell > aside {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    z-index: 5;
    padding: 7px;
  }
  .shell .logo,
  .account {
    display: none;
  }
  .shell nav {
    display: flex;
    margin: 0;
    height: 100%;
  }
  .shell nav button {
    flex: 1;
    font-size: 10px;
    text-align: center;
  }
  .workspace {
    padding: 20px 14px 85px;
  }
  .products,
  .stats,
  .teamgrid {
    grid-template-columns: 1fr;
  }
  .reportrow {
    grid-template-columns: 1fr 1fr;
  }
  .reportrow span:nth-child(4) {
    grid-column: 1/-1;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .row > span {
    margin-top: 7px;
  }
  .authcard {
    margin-top: 40px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .paymentchoices { grid-template-columns: 1fr; }
  .inventoryactions, .reportactions { flex-wrap: wrap; }
  .reportcalendarpanel { padding: 10px; overflow-x: auto; }
  .calendarweek, .calendargrid { min-width: 630px; }
  .backdrop { padding: 8px; place-items: start center; }
  .modal { max-height: calc(100vh - 16px); padding: 20px; }
  .componentlist { max-height: 220px; }
  .bundlesizelist { grid-template-columns: 1fr; }
}
@media print {
  .shell > aside,
  .workspace > header,
  .actions {
    display: none;
  }
  .reportcalendarpanel { display: none; }
  .shell {
    display: block;
  }
  .workspace {
    padding: 0;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .table {
    border: 0;
  }
  .reportrow {
    break-inside: avoid;
    grid-template-columns: 0.6fr 0.75fr 0.9fr 0.8fr 1.8fr 0.65fr;
  }
  .reportrow > :last-child { display: none; }
}

body,
button,
input,
h1,
h2,
h3,
.stats b,
.panelhead h3,
.order h2,
.authcard h2,
.modal h2 {
  font-family: "Visia Pro", system-ui, sans-serif;
}
.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pic:has(img) {
  padding: 0;
}
.productcell {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.productcell > span:last-child {
  display: grid;
  min-width: 0;
}
.stockthumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f7f5;
}
.stockthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.schoolchecks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.schoolchecks legend {
  padding: 0 6px;
  color: var(--muted);
}
.schoolchecks label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.schoolchecks input {
  width: auto;
}
.schoolsummary {
  margin: 18px 0;
}
.sectiontitle {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.sectiontitle h3,
.reporttitle h2 {
  margin: 2px 0 0;
}
.sectiontitle small {
  color: var(--muted);
}
.schoolcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.schoolcards article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.schoolcards article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.schoolcards b {
  color: var(--orange);
}
.schoolcards small {
  color: var(--muted);
}
.reporttitle {
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------
   Visual polish pass: depth, motion and hover/focus feedback on top of
   the existing layout and color system. Nothing here changes a control's
   position, label or behavior - same buttons, same clicks, same flows.
   --------------------------------------------------------------------- */
.shell > aside {
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}
.products article,
.order,
.stats article,
.table,
.panel,
.teamgrid article,
.schoolcards article,
.reportcalendarpanel,
.authcard,
.deleteordermodal,
.checkoutmodal,
.receiptmodal {
  box-shadow: var(--shadow-sm);
}
.products article {
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.products article:hover {
  border-color: #cdd6d4;
  box-shadow: var(--shadow-md);
}
.schoolcards article:hover {
  box-shadow: var(--shadow-md);
}
.shell nav button:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.actions > button:not(:disabled):hover,
.checkout > button:not(:disabled):hover,
.authcard > button:hover,
.save:not(:disabled):hover,
.bundleconfigure button:not(:disabled):hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.actions > button:not(:disabled):active,
.checkout > button:not(:disabled):active,
.authcard > button:active,
.save:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}
.quick button:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.rowactions button:hover,
.stock button:hover,
.cartline button:hover,
.calendarhead button:hover,
.calendarall:not(:disabled):hover,
.reprint:hover,
.inventoryactions .secondaryaction:hover {
  border-color: var(--orange);
  color: var(--navy);
}
.stockqty:not(:disabled):hover {
  box-shadow: inset 0 0 0 1px currentColor;
}
.sizes button:not(:disabled):hover {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.stockrow:not(.stockhead):hover,
.row:not(.head):hover,
.reportrow:not(.head):hover {
  background: #f7f9f8;
}
.calendarday:not(.calendarblank):not(.selected):hover {
  border-color: var(--orange);
}
.close:hover {
  background: #e2e6e4;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast {
  box-shadow: var(--shadow-md);
  animation: toastIn 0.18s ease-out;
}
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.backdrop > * {
  animation: dialogIn 0.16s ease-out;
}

/* Small styled dialogs (replaces native prompt()/confirm() popups) */
.smalldialog {
  width: min(420px, 100%);
}
.dialogmessage {
  color: var(--muted);
  line-height: 1.55;
  font-size: 12.5px;
  margin: -6px 0 18px;
}
.dialogactions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.dialogactions button {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}
.dialogactions .secondary {
  background: #edf0ee;
  color: var(--navy);
}
.dialogactions .secondary:hover {
  background: #e2e6e4;
}
.dialogactions .save {
  background: var(--orange);
  color: var(--navy);
}
.dialogactions .danger {
  background: #fff0ee;
  color: var(--red);
}
.dialogactions .danger:hover {
  background: #ffe1dd;
}

@media print {
  .products article,
  .order,
  .stats article,
  .table,
  .panel,
  .teamgrid article,
  .schoolcards article,
  .reportcalendarpanel,
  .authcard {
    box-shadow: none;
  }
}

.permissionlist{border:1px solid #d7dfe2;border-radius:12px;padding:16px;margin:16px 0;max-height:42vh;overflow:auto}.permissionlist p{font-size:13px;color:#65747b}.permissiontoggle{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}.permissiontoggle input{appearance:auto;width:38px!important;min-width:38px;height:22px;accent-color:#163e4d}.modal{max-height:92vh;overflow:auto}

/* Premium interface: presentation only. Print rules remain independent. */
@media screen {
  :root {
    --navy: #203b49;
    --orange: #eda33b;
    --cream: #f4f6f8;
    --line: #dfe5eb;
    --muted: #5e6f7e;
    --red: #ae3535;
    --shadow-sm: 0 2px 6px #203b4908;
    --shadow-md: 0 12px 30px #203b4914;
  }
  body { font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
  button, input, select, textarea { font: inherit; }
  button { font-weight: 600; }
  button, input, select, textarea, a { transition: background-color .12s, border-color .12s, color .12s; }
  button:disabled { opacity: .55; }
  :focus-visible { outline: 3px solid #316c98; outline-offset: 3px; }
  input:focus, select:focus, textarea:focus { border-color: #316c98; box-shadow: 0 0 0 3px #316c981a; }
  h1 { font-size: 29px; font-weight: 700; letter-spacing: -.7px; line-height: 1.2; }
  h2, h3 { letter-spacing: -.3px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
  .shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .shell > aside { position: relative; inset: auto; width: auto; height: 100%; min-height: 0; overflow: hidden; z-index: 5; background: #fff; color: var(--navy); padding: 24px 16px 16px; border-right: 1px solid var(--line); box-shadow: none; gap: 20px; }
  .shell .logo { display: flex; flex: 0 0 auto; padding: 0 8px; }
  .shell .logo > div { display: block; }
  .logo > span { background: #f4f6f8; border: 1px solid var(--line); border-radius: 10px; }
  .logo small, .account small { color: var(--muted); font-size: 11px; }
  .sidebar-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
  .shell nav { display: grid; gap: 5px; margin: 0; height: auto; }
  .shell nav button { justify-content: flex-start; gap: 11px; font-size: 13px; color: #536574; padding: 12px; border-radius: 8px; min-height: 44px; }
  .shell nav button.active { background: #edf3f6; color: #203b49; box-shadow: inset 3px 0 #eda33b; }
  .shell nav button:not(.active):hover { background: #f3f6f8; color: var(--navy); }
  .shell nav button .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .schoolpicker { margin-top: 24px; padding: 18px 8px; border-color: var(--line); }
  .schoolpicker label { font-size: 10px; color: var(--muted); }
  .schoolpicker select { border: 1px solid var(--line); font-size: 12px; background: #f8fafb; }
  .schoolpicker button { justify-content: flex-start; color: #315f7c; font-size: 12px; min-height: 30px; }
  .schoolpicker button span, .account button span { display: inline; }
  .account { display: grid; flex: 0 0 auto; margin-top: 0; padding: 16px 8px 0; border-color: var(--line); gap: 3px; }
  .account b, .account small { display: block; overflow-wrap: anywhere; }
  .account b { font-size: 13px; }
  .account button { justify-content: flex-start; color: #315f7c; padding: 5px 0; margin-top: 0; min-height: 30px; font-size: 12px; }
  .account button:hover { color: #122e40; text-decoration: underline; }
  .account #logout { color: var(--red); margin-top: 3px; }
  .workspace { height: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 30px 32px; scrollbar-gutter: stable; }
  .workspace > header { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
  .avatar { border-radius: 12px; background: #e7eef2; color: var(--navy); font-size: 13px; }
  .stats { gap: 14px; }
  .stats article { border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }
  .stats article span { font-size: 12px; color: var(--muted); }
  .stats b { font-size: 30px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
  .panel, .teamgrid article, .schoolcards article, .reportcalendarpanel, .table, .order, .products article { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow-sm); }
  .panelhead h3 { font-size: 17px; font-weight: 700; }
  .recent { padding-top: 15px; padding-bottom: 15px; }
  .recent small { font-size: 11px; }
  .schoolcards b { color: #315f7c; }
  .actions { gap: 10px; }
  .actions > button, .checkout > button, .save, .authcard > button { font-weight: 700; border-radius: 8px; min-height: 44px; }
  .actions > button:not(:disabled):hover, .checkout > button:not(:disabled):hover, .authcard > button:hover, .save:not(:disabled):hover, .bundleconfigure button:not(:disabled):hover { transform: none; box-shadow: none; filter: none; background-color: #e69a2e; }
  .actions > .secondaryaction:hover, .authcard > .secondary:hover { background: #e9eff3; }
  .search input, .modal input, .authcard input { border-radius: 8px; background: #fff; }
  .search input { height: 46px; }
  .products article:hover { box-shadow: var(--shadow-sm); border-color: #aabcc9; }
  .pic { background: #edf1f4; }
  .ptitle { font-size: 14px; }
  .order h2 { font-size: 19px; font-weight: 700; }
  .order h2 small { font-family: inherit; font-size: 10px; letter-spacing: .09em; }
  .sizes button { min-height: 42px; }
  .sizes small { font-size: 10px; }
  .cartline small { font-size: 11px; }
  .cartline button { min-width: 28px; min-height: 28px; }
  .stockhead, .head, .reportrow.head { background: #f0f4f7; color: #4a6070; font-size: 11px; font-weight: 700; }
  .stockrow, .reportrow, .row { border-color: #e7ecf0; }
  .stockrow:not(.stockhead):hover, .reportrow:not(.head):hover, .row:not(.head):hover { background: #f7fafc; }
  .table { font-variant-numeric: tabular-nums; }
  .stockqty { min-height: 32px; border-radius: 6px; }
  .stockqty.zeroqty { background: #fff0ef; color: #a32d2d; }
  .stockqty.lowqty { background: #fff4df; color: #87570c; }
  .rowactions button, .reprint, .deleteorder, .teamgrid article > button { border-radius: 7px; min-height: 32px; }
  .teamgrid article > button { margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); background: #f8fafb; color: #315f7c; }
  .teamgrid article > .danger { color: var(--red); background: #fff5f4; }
  .backdrop { z-index: 100; background: #122a3b70; }
  .modal, .checkoutmodal, .receiptmodal, .deleteordermodal { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 70px #142e4326; }
  .modal h2, .authcard h2 { font-size: 24px; font-weight: 700; }
  .modal label, .authcard label { font-size: 12px; color: #415768; }
  .permissionlist { background: #f8fafb; }
  .permissiontoggle { font-size: 12px; border-bottom: 1px solid #e7ecf0; }
  .permissiontoggle:last-child { border-bottom: 0; }
  .toast { z-index: 200; border-radius: 9px; max-width: min(440px, calc(100vw - 32px)); font-size: 13px; }
  .error { font-size: 12px; }
  .hint { font-size: 12px; line-height: 1.6; }
  .auth { min-height: 100vh; min-height: 100dvh; background: #f4f6f8; grid-template-columns: 1fr 1fr; }
  .authbrand { display: flex; padding: clamp(32px, 5vw, 80px); background: #edf2f5; color: var(--navy); border-right: 1px solid var(--line); }
  .brandhero { width: min(400px, 100%); height: auto; aspect-ratio: 671 / 321; object-fit: contain; border-radius: 0; box-shadow: none; animation: none; transform: none; filter: none; }
  .authbrand h1 { margin-top: 40px; font-size: clamp(28px, 3vw, 44px); max-width: 490px; line-height: 1.15; letter-spacing: -1.1px; }
  .authbrand p { color: #526775; font-size: 15px; max-width: 430px; }
  .authcard { padding: 34px; border-radius: 14px; margin: auto; width: min(420px, calc(100% - 48px)); box-shadow: 0 8px 30px #203b4908; }
  .authcard > .secondary { background: #eef3f6; color: #315f7c; margin-top: 12px; }
  .authcard input { min-height: 46px; }
  .loading, .fatal { padding: 24px; color: var(--muted); font-size: 14px; text-align: center; }
}
@media screen and (max-width: 1100px) and (min-width: 901px) {
  .workspace { padding: 26px 22px; }
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
}
@media screen and (max-width: 900px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .shell > aside { padding: 18px 10px 12px; gap: 16px; }
  .shell .logo { gap: 7px; padding: 0 3px; }
  .logo strong, .logo b { font-size: 11px; }
  .logo > span { width: 36px; height: 36px; }
  .workspace { padding: 24px 18px; }
  .auth { grid-template-columns: 1fr; padding: 24px 0; align-content: center; gap: 24px; }
  .authbrand { display: flex; align-items: center; text-align: center; padding: 0 24px; border: 0; background: transparent; }
  .brandhero { width: 220px; }
  .authbrand h1 { font-size: 26px; margin-top: 20px; max-width: 450px; }
  .authbrand p { font-size: 13px; margin-bottom: 0; }
  .authcard { margin: 0 auto; }
}
@media screen and (max-width: 600px) {
  .shell { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .shell > aside { position: relative; inset: auto; padding: 12px 6px 10px; height: 100%; gap: 12px; }
  .shell .logo { justify-content: center; }
  .shell .logo > div { display: none; }
  .shell nav { display: grid; }
  .shell nav button { flex: initial; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 4px; font-size: 11px; text-align: center; }
  .schoolpicker { padding: 12px 2px; margin-top: 14px; }
  .schoolpicker select { padding: 0 3px; font-size: 11px; min-width: 0; }
  .schoolpicker label { font-size: 9px; letter-spacing: .03em; }
  .schoolpicker button { font-size: 11px; }
  .account { display: grid; padding: 12px 3px 0; }
  .account b { font-size: 11px; }
  .account small { font-size: 10px; }
  .account button { font-size: 10px; line-height: 1.3; min-height: 30px; }
  .workspace { padding: 20px 12px; }
  .workspace > header { gap: 6px; padding-bottom: 16px; }
  .workspace h1 { font-size: 24px; }
  .workspace > header .avatar { width: 30px; height: 30px; flex-shrink: 0; font-size: 10px; }
  .eyebrow { font-size: 9px; }
  .stats article { padding: 16px; }
  .stats b { font-size: 27px; }
  .authcard { padding: 26px; }
  .authbrand h1 { font-size: 25px; }
}
@media screen and (max-height: 560px) {
  .shell > aside { gap: 8px; padding-top: 10px; padding-bottom: 8px; }
  .account { padding-top: 8px; gap: 0; }
  .account button { min-height: 24px; padding-top: 2px; padding-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* The screen-only scroll container must expand during report printing. */
@media print {
  .sidebar-scroll { display: none; }
}
@media screen {
  .sales > *, .panel, .teamgrid article { min-width: 0; }
  .stats b { font-weight: 700; }
  .account button, .teamgrid h3 { overflow-wrap: anywhere; }
  .table:not(.stocktable) { overflow-x: auto; }
}
@media screen and (max-width: 600px) {
  .ptitle { flex-wrap: wrap; gap: 6px; }
  .order h2, .cart, .checkout { padding-left: 12px; padding-right: 12px; }
  .cartline { gap: 6px; flex-wrap: wrap; }
  .teamgrid { grid-template-columns: minmax(0, 1fr); }
  .actions > button { padding: 10px; }
}
