.purchase-line {
  padding: 18px;
  border: 1px solid #dbe2eb;
  border-radius: 12px;
  margin: 12px 0;
  background: #f8fafc;
}
.purchase-receive-line {
  margin: 14px 0;
}
.purchase-summary h3 {
  margin: 24px 0 12px;
}
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182640;
  background: #f3f6fb;
  font-size: 16px;
  font-synthesis: none;
  --blue: #3b61ff;
  --ink: #111d37;
  --muted: #748198;
  --line: #e1e7f0;
  --mint: #b6f4d2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
input,
select,
textarea,
a {
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin-bottom: 8px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
p {
  color: #6e7c92;
  line-height: 1.7;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--mint);
  font-weight: 800;
  letter-spacing: -3px;
  padding-right: 3px;
  font-size: 21px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-size: 21px;
  color: var(--ink);
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  background: var(--blue);
  color: white;
  padding: 11px 17px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  white-space: nowrap;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px #315bff18;
}
.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}
.button.ghost {
  color: var(--muted);
  background: transparent;
  padding: 9px;
  border-color: transparent;
}
.button.danger {
  background: #fff0f0;
  color: #bc3d48;
  border-color: #ffd8dc;
}
.button.small {
  padding: 7px 10px;
  font-size: 12px;
}
.icon-button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  padding: 0 12px 25px;
}
.workspace-chip {
  padding: 13px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
}
.workspace-chip b {
  font-size: 14px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-chip span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.nav-label {
  padding: 0 12px;
  margin: 18px 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9ba5b8;
  font-weight: 700;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 9px;
  color: #64738b;
  font-size: 14px;
  margin: 3px 0;
}
.nav-item.active {
  background: #eff3ff;
  color: var(--blue);
  font-weight: 650;
}
.nav-item:hover {
  background: #f3f6fc;
}
.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #8d99ac;
}
.shell {
  margin-left: 236px;
}
.topbar {
  height: 78px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #ffffffc9;
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.breadcrumb {
  font-size: 12px;
  color: #8e9ab0;
}
.breadcrumb strong {
  font-weight: 500;
  color: #455671;
}
.user-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e7edff;
  display: grid;
  place-items: center;
  color: #3e5db4;
  font-size: 12px;
  font-weight: 700;
}
.user-name {
  font-size: 12px;
  font-weight: 600;
}
.user-name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #8b97aa;
  margin-top: 3px;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 30px 34px 60px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 14px;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8392aa;
  margin-bottom: 11px;
}
.trial-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid #dce5ff;
  border-radius: 9px;
  background: #f0f4ff;
  color: #6c7fa6;
  font-size: 12px;
  margin-bottom: 24px;
}
.trial-note strong {
  color: #3f5eab;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px;
}
.stat small {
  font-size: 12px;
  color: #8a96aa;
}
.stat strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.055em;
  font-weight: 650;
  margin: 13px 0 8px;
  overflow-wrap: anywhere;
}
.stat p {
  font-size: 12px;
  margin: 0;
}
.stat-icon {
  float: right;
  background: #edf2ff;
  padding: 8px;
  border-radius: 9px;
  color: #657ff1;
  display: grid;
  place-items: center;
}
.stat-icon svg {
  width: 16px;
  height: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.card-head h3 {
  margin: 0;
}
.card-head small {
  font-size: 12px;
  color: var(--muted);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: transform 0.2s;
}
.quick-card:hover {
  transform: translateY(-3px);
  border-color: #acbfff;
}
.quick-card > svg {
  color: var(--blue);
  background: #f0f4ff;
  padding: 8px;
  width: 39px;
  height: 39px;
  border-radius: 10px;
  margin-bottom: 23px;
}
.quick-card h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.quick-card p {
  font-size: 12px;
  margin: 0 0 15px;
  flex: 1;
}
.quick-card span {
  font-size: 12px;
  color: var(--blue);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 650;
  color: #8e9caf;
  letter-spacing: 0.06em;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  font-size: 12px;
  color: #8c99ac;
  margin-top: 5px;
}
td .button {
  margin: 2px;
}
.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  background: #edf1f8;
  color: #7b8ba4;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge.green {
  background: #eaf7ef;
  color: #388664;
}
.badge.red {
  background: #ffebed;
  color: #ba4f5c;
}
.badge.blue {
  background: #edf2ff;
  color: #5473c4;
}
.badge.amber {
  background: #fff5e5;
  color: #aa7b37;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
.empty svg {
  color: #9eaed0;
  width: 35px;
  height: 35px;
  margin-bottom: 15px;
}
.empty h3 {
  margin-bottom: 7px;
  color: #4c5e7b;
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  max-width: 370px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 19px;
  flex-wrap: wrap;
}
.filters input {
  max-width: 330px;
}
.filters select {
  max-width: 200px;
}
label {
  display: block;
  font-size: 12px;
  color: #61708a;
  font-weight: 500;
  margin-bottom: 15px;
}
input,
select,
textarea {
  display: block;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: #283d5c;
  line-height: 1.4;
  width: 100%;
  font-size: 14px;
  margin-top: 7px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #91abff;
}
input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: auto;
  margin: 0 7px 0 0;
  vertical-align: middle;
}
.check-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-row.three {
  grid-template-columns: repeat(3, 1fr);
}
.form-note {
  font-size: 12px;
  color: #8f9bb0;
  line-height: 1.7;
}
.inline-error {
  color: #be4d60;
  font-size: 12px;
  background: #fff0f2;
  border-radius: 7px;
  padding: 11px;
  margin-bottom: 14px;
}
.inline-error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  width: min(670px, calc(100vw - 32px));
  max-height: 88vh;
  box-shadow: 0 30px 100px #08153133;
  color: var(--ink);
}
dialog::backdrop {
  background: #0d193b66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 25px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.dialog-head h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-body {
  padding: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.error-page {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
  padding: 30px;
}
.initial-loader {
  display: grid;
  place-items: center;
  height: 80vh;
}
.initial-loader p {
  font-size: 14px;
  margin-top: 20px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-copy {
  background: #111d37;
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-copy .brand {
  color: white;
}
.auth-copy .brand-mark {
  background: #ffffff14;
}
.auth-copy .brand small {
  color: #8fa2c4;
}
.auth-copy:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: #355bff40;
  filter: blur(50px);
  border-radius: 100%;
  right: -180px;
  bottom: -100px;
  pointer-events: none;
}
.auth-copy h1 {
  font-size: clamp(36px, 4vw, 58px);
  max-width: 430px;
  font-weight: 600;
  line-height: 1.1;
}
.auth-copy h1 em {
  color: var(--mint);
  font-style: normal;
}
.auth-copy p {
  color: #92a4c4;
  max-width: 360px;
  font-size: 14px;
}
.auth-copy .auth-bottom {
  font-size: 12px;
  color: #627797;
}
.auth-form {
  max-width: 440px;
  margin: auto;
  padding: 50px 30px;
  width: 100%;
}
.auth-form h2 {
  margin-bottom: 10px;
}
.auth-form > p {
  font-size: 14px;
  margin-bottom: 30px;
}
.auth-form .button {
  width: 100%;
  margin-top: 10px;
}
.auth-switch {
  font-size: 12px;
  text-align: center;
  margin-top: 23px;
}
.auth-switch button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  gap: 22px;
  align-items: start;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.pos-product {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: white;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition:
    transform 0.2s,
    border-color 0.2s;
  min-height: 168px;
  color: var(--ink);
}
.pos-product:hover {
  transform: translateY(-2px);
  border-color: #98b0ff;
}
.product-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.product-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0f4ff;
  color: #8298d5;
  font-size: 15px;
}
.pos-product h3 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 5px;
}
.pos-product > small {
  font-size: 12px;
  color: #8c98ae;
  flex: 1;
}
.pos-product strong {
  font-size: 14px;
  display: block;
  margin-top: 15px;
}
.basket {
  position: sticky;
  top: 100px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.basket-title {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 15px;
}
.basket-title h3 {
  font-size: 15px;
  margin: 0;
}
.cart-item {
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}
.cart-item .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.cart-item small {
  font-size: 12px;
  color: #8d99ab;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
}
.cart-qty input {
  width: 70px;
  font-size: 12px;
  padding: 6px;
  margin-top: 0;
}
.cart-qty button {
  margin-left: auto;
}
.cart-summary {
  margin-top: 22px;
}
.cart-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}
.cart-summary .grand {
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.basket .button {
  width: 100%;
  margin-top: 10px;
}
.basket label {
  margin-bottom: 9px;
  font-size: 12px;
}
.basket input,
.basket select {
  font-size: 12px;
  padding: 9px;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 15px;
  overflow: auto;
  padding-bottom: 15px;
}
.kanban-column {
  background: #edf1f7;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  padding: 14px;
}
.kanban-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 650;
  color: #7888a1;
  text-transform: capitalize;
  margin-bottom: 19px;
}
.deal-card {
  background: white;
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px #1c356508;
}
.deal-card h3 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.deal-card strong {
  font-size: 15px;
}
.deal-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.deal-card select {
  padding: 7px;
  font-size: 12px;
}
.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.list-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.list-card h3 {
  line-height: 1.4;
  font-size: 16px;
  margin-top: 15px;
}
.list-card p {
  font-size: 12px;
}
.list-card .actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.task-line {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f5;
}
.task-line > div {
  flex: 1;
}
.task-line h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.task-line small {
  font-size: 12px;
  color: #8d9ab0;
}
.completed h3 {
  text-decoration: line-through;
  color: #9ba6b7;
}
.notice {
  padding: 15px;
  border: 1px solid #dfe7f7;
  background: #f5f8ff;
  border-radius: 9px;
  font-size: 12px;
  color: #7184a3;
  margin-bottom: 20px;
  line-height: 1.8;
}
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
}
.chat-log {
  min-height: 300px;
  max-height: 530px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
}
.chat-message {
  margin: 13px 0;
  max-width: 90%;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: white;
  border: 1px solid var(--line);
}
.chat-message.user {
  margin-left: auto;
  background: #edf2ff;
  border-color: #dce5ff;
}
.chat-message small {
  display: block;
  font-size: 12px;
  color: #8394af;
  margin-top: 10px;
}
.chat-form {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}
.chat-form input {
  margin-top: 0;
}
.timeline-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
}
.timeline-row span {
  color: #8b99af;
  font-size: 12px;
}
.invoice-line {
  display: grid;
  grid-template-columns: 1fr 75px 100px 30px;
  gap: 8px;
  margin-bottom: 8px;
}
.invoice-line input {
  font-size: 12px;
}
.invoice-line button {
  align-self: center;
  border: 0;
  background: none;
  color: #a57888;
}
.receipt {
  max-width: 440px;
  margin: auto;
  padding: 15px;
  font-size: 12px;
}
.receipt h2 {
  font-size: 22px;
  margin-bottom: 7px;
}
.receipt p {
  font-size: 12px;
  margin: 8px 0;
}
.receipt table {
  font-size: 12px;
}
.receipt td {
  padding: 10px 0;
}
.receipt .receipt-totals {
  margin-top: 15px;
}
.receipt .receipt-totals p {
  display: flex;
  justify-content: space-between;
}
.receipt .receipt-totals .total {
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.portal-shell {
  max-width: 750px;
  margin: 35px auto;
  padding: 25px;
}
.portal-shell > .brand {
  margin-bottom: 35px;
}
.portal-shell h1 {
  font-size: 28px;
}
.portal-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.portal-item > div {
  flex: 1;
}
.portal-item h3 {
  font-size: 14px;
}
.portal-item input {
  font-size: 12px;
  max-width: 230px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.slot {
  display: block;
  font-size: 12px;
  background: #f2f6ff;
  border: 1px solid #dfe7f8;
  padding: 12px;
  border-radius: 8px;
  margin: 0;
}
.link-box {
  font-size: 12px;
  color: #5676be;
  overflow-wrap: anywhere;
  padding: 15px;
  border: 1px solid #dce6fb;
  background: #f3f7ff;
  border-radius: 9px;
  margin: 15px 0;
}
.bar-chart {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  min-height: 160px;
  padding: 10px 5px;
}
.bar-column {
  flex: 1;
  min-width: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: #96a4b9;
}
.bar-fill {
  width: 70%;
  min-height: 4px;
  background: linear-gradient(#527aff, #8faeff);
  border-radius: 5px 5px 0 0;
  animation: rise 0.5s ease both;
  transform-origin: bottom;
}
.value-text {
  font-size: 12px;
  color: #6d83b0;
}
.mobile-toggle {
  display: none;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 10px;
  background: #172746;
  color: white;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 10px 35px #12274630;
  max-width: 90vw;
}
main.content {
  animation: fade-in 0.25s ease;
}
.card,
.stat,
.quick-card {
  animation: fade-in 0.35s ease both;
}
@keyframes fade-in {
  from {
    opacity: 0.5;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    transform: scaleY(0.1);
  }
  to {
    transform: scaleY(1);
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
  }
  .shell {
    margin-left: 210px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 236px;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 0 0 0 100vmax #10213b40;
  }
  .shell {
    margin-left: 0;
  }
  .mobile-toggle {
    display: grid;
  }
  .topbar {
    padding: 0 18px;
    height: 65px;
  }
  .breadcrumb {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .pos-layout {
    grid-template-columns: 1fr;
  }
  .basket {
    position: static;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-copy {
    display: none;
  }
  .auth-form {
    padding: 45px 25px;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head > .button {
    font-size: 12px;
    padding: 10px;
  }
  .user-name {
    display: none;
  }
}
@media (max-width: 520px) {
  .stats-grid {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat small {
    font-size: 12px;
  }
  .stat-icon {
    display: none;
  }
  .quick-grid,
  .card-list {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pos-product {
    padding: 15px;
  }
  .form-row,
  .form-row.three {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .chat-form {
    flex-wrap: wrap;
  }
  .chat-form .button {
    width: 100%;
  }
  .dialog-head {
    padding: 17px;
  }
  .dialog-body {
    padding: 19px;
  }
  .invoice-line {
    grid-template-columns: 1fr 65px 80px 20px;
    gap: 4px;
  }
  .content .card {
    padding: 17px;
  }
  .card-head {
    flex-wrap: wrap;
  }
  .portal-shell {
    padding: 18px;
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > dialog[open] {
    display: block !important;
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
  .dialog-head,
  .dialog-actions,
  .no-print {
    display: none !important;
  }
  .dialog-body {
    padding: 0;
  }
  .receipt {
    max-width: none;
    font-size: 12px;
  }
  .receipt table {
    font-size: 12px;
  }
  dialog::backdrop {
    display: none;
  }
  a {
    color: black;
  }
  body {
    background: white;
  }
}
.auth-heading {
  margin-top: 35px;
}
.section-heading {
  margin-top: 25px;
}
.sidebar {
  overflow-y: auto;
}
.sidebar nav {
  flex: 1;
}
.sidebar-footer {
  flex-shrink: 0;
}
.user-block .icon-button {
  flex-shrink: 0;
}
/* Client packages preserve readable archives while keeping the active menu focused. */
.archive-nav {
  margin-top: 22px;
  border-top: 1px solid #e4e9f4;
  padding-top: 16px;
}
.archive-nav summary {
  cursor: pointer;
  color: #5d6d89;
  font-size: 13px;
  padding: 8px 16px;
}
.archive-nav p {
  font-size: 12px;
  padding: 0 16px;
  color: #64748b;
  line-height: 1.6;
}
.archive-nav .nav-item small {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
}
.package-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.bundle-option,
.package-default {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bundle-option {
  border: 1px solid #dbe3f1;
  border-radius: 12px;
  padding: 14px;
  background: #f9fbff;
  cursor: pointer;
}
.bundle-option input,
.package-default input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  accent-color: #4b60ff;
}
.bundle-option small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 6px;
}
.bundle-option:has(input:checked) {
  border-color: #8092ff;
  background: #f1f4ff;
}
.bundle-option:has(input:disabled) {
  opacity: 0.65;
  cursor: default;
}
