:root {
  --bg: #f7f3ec;
  --card: #fffdfa;
  --line: #e6ded2;
  --text: #171b24;
  --muted: #75716b;
  --navy: #111d35;
  --navy2: #1c2e50;
  --red: #e2383a;
  --blue: #1f62e6;
  --orange: #ff6a1a;
  --green: #159b72;
  --shadow: 0 12px 35px rgba(42, 34, 24, 0.065);
  --r: 17px;
}
* {
  box-sizing: border-box;
}
html {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fffaf3;
  border-right: 1px solid var(--line);
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 25px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset -7px 0 0 var(--red);
}
.brand-copy {
  display: grid;
  line-height: 1;
}
.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand-copy small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-top: 6px;
  font-weight: 800;
}
.main-nav {
  display: grid;
  gap: 3px;
  overflow: auto;
  padding-right: 2px;
}
.nav-item {
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #504d49;
  font-weight: 650;
  text-align: left;
  transition: 0.18s;
}
.nav-item span {
  width: 22px;
  font-size: 20px;
  color: #77716a;
  text-align: center;
}
.nav-item:hover {
  background: #f6eee5;
}
.nav-item.active {
  background: #fbe7e5;
  color: var(--red);
}
.nav-item.active span {
  color: var(--red);
}
.system-card {
  margin-top: auto;
  border: 1px solid #dcebe4;
  background: #f3faf7;
  padding: 12px;
  border-radius: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.system-card div {
  display: grid;
  gap: 3px;
}
.system-card strong {
  font-size: 12px;
}
.system-card small {
  font-size: 10px;
  color: #7a827e;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #aaa;
}
.status-dot.online {
  background: #15b581;
  box-shadow: 0 0 0 5px #dff5ed;
}
.main {
  min-width: 0;
  padding: 0 26px 34px;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.title-wrap h1 {
  font-size: 27px;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.025em;
}
.title-wrap p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.connection-pill {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.connection-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.clock {
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  font-weight: 800;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 800;
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--navy);
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.kpi-card.warning {
  border-color: #f0b9a0;
  background: #fffaf4;
}
.kpi-card > div {
  display: grid;
  min-width: 0;
}
.kpi-card small {
  font-size: 11px;
  color: var(--muted);
}
.kpi-card strong {
  font-size: 21px;
  color: var(--navy);
  margin: 3px 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-card em {
  font-size: 10px;
  color: #9b968f;
  font-style: normal;
}
.kpi-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 21px;
}
.kpi-icon.blue {
  color: var(--blue);
  background: #eaf0ff;
}
.kpi-icon.navy {
  color: var(--navy);
  background: #edf0f5;
}
.kpi-icon.green {
  color: var(--green);
  background: #e8f6f0;
}
.kpi-icon.orange {
  color: #fff;
  background: var(--orange);
}
.pos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}
.pos-grid > * {
  min-width: 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.product-panel {
  padding: 16px;
  min-height: 630px;
}
.search-row {
  display: flex;
  gap: 9px;
  min-width: 0;
}
.search-box {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 1.5px solid var(--blue);
  border-radius: 13px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: #fff;
  box-shadow: 0 0 0 3px #eaf0ff;
}
.search-box span {
  font-size: 24px;
  color: #514f4d;
}
.search-box input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
}
.search-box kbd {
  border: 0;
  color: #aaa;
  background: transparent;
  font-size: 11px;
}
.primary-button {
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 750;
  box-shadow: 0 6px 15px rgba(17, 29, 53, 0.15);
}
.primary-button:hover {
  background: var(--navy2);
}
.primary-button.square {
  width: 54px;
  font-size: 25px;
  background: var(--blue);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 13px 0 14px;
}
.category-list {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding-bottom: 3px;
}
.category-chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fbf8f3;
  border-radius: 9px;
  padding: 8px 12px;
  color: #5c5852;
  font-size: 12px;
  font-weight: 650;
}
.category-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 750;
  white-space: nowrap;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 9px;
  min-width: 0;
  transition: 0.18s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 30, 22, 0.08);
}
.product-visual {
  height: 82px;
  border-radius: 11px;
  background: linear-gradient(145deg, #f0ece6, #e5ded2);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.product-visual:before {
  content: "";
  width: 55px;
  height: 42px;
  border-radius: 12px 12px 8px 8px;
  background: var(--product-color, var(--navy));
  box-shadow: inset 0 -12px 0 rgba(255, 255, 255, 0.14);
}
.product-visual:after {
  content: "";
  position: absolute;
  width: 66px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  bottom: 13px;
  filter: blur(3px);
}
.product-card.red {
  --product-color: #d94b4e;
}
.product-card.blue {
  --product-color: #3269d4;
}
.product-card.green {
  --product-color: #31846c;
}
.product-card.orange {
  --product-color: #d9772f;
}
.product-card.purple {
  --product-color: #745aa2;
}
.product-card small {
  color: var(--muted);
  font-size: 10px;
}
.product-card h3 {
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  height: 34px;
  overflow: hidden;
}
.product-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}
.product-meta strong {
  font-size: 14px;
  color: var(--navy);
}
.add-button {
  width: 31px;
  height: 31px;
  border: 1px solid #cfd9f0;
  border-radius: 9px;
  background: #f5f8ff;
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
}
.add-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.stock-tag {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 800;
  z-index: 1;
}
.stock-tag.low {
  background: #fff0e8;
  color: #db551b;
}
.empty-state {
  grid-column: 1/-1;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 30px;
}
.empty-state div {
  max-width: 370px;
}
.empty-state span {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #f2ede6;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 30px;
  color: var(--navy);
}
.empty-state h3 {
  color: var(--navy);
  margin: 0 0 7px;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.cart-panel {
  display: flex;
  flex-direction: column;
  min-height: 630px;
  overflow: hidden;
}
.panel-heading {
  padding: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.panel-heading h2 {
  font-size: 22px;
  margin: 0;
  color: var(--navy);
}
.panel-heading span {
  font-size: 11px;
  color: var(--muted);
}
.icon-button.danger {
  color: var(--red);
}
.cart-items {
  padding: 0 17px;
  overflow: auto;
  flex: 1;
  min-height: 170px;
}
.cart-empty {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #aaa;
}
.cart-empty span {
  font-size: 30px;
}
.cart-empty p {
  font-size: 12px;
}
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.cart-row small {
  color: var(--muted);
  font-size: 10px;
}
.cart-price {
  text-align: right;
  font-weight: 800;
  color: var(--navy);
  font-size: 13px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.qty-row button {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}
.qty-row button:first-child {
  border-radius: 8px 0 0 8px;
}
.qty-row button:last-child {
  border-radius: 0 8px 8px 0;
}
.qty-row span {
  width: 34px;
  height: 29px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
}
.remove-cart {
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 12px;
  margin-top: 8px;
  padding: 0;
}
.cart-summary {
  border-top: 1px solid var(--line);
  padding: 14px 17px 17px;
}
.cart-summary > div,
.summary-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
}
.summary-button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  width: 100%;
  color: var(--text);
}
.summary-button strong {
  color: var(--red);
}
.total-row {
  font-size: 19px !important;
  font-weight: 850;
  color: var(--navy);
  padding: 14px 0 !important;
}
.total-row strong {
  font-size: 25px;
}
.payment-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 !important;
}
.pay-button {
  height: 49px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.pay-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pay-button.card {
  background: var(--navy);
}
.pay-button.cash {
  background: var(--red);
}
.cart-footer-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0 0 !important;
}
.soft-button,
.outline-button {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 700;
}
.soft-button {
  border: 1px solid var(--line);
  background: #f8f4ee;
  color: #59554f;
}
.outline-button {
  border: 1px solid #bcc7dc;
  background: #fff;
  color: var(--navy);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin: 8px 0 18px;
}
.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
}
.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.table-panel {
  overflow: hidden;
}
.table-tools {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.table-tools input {
  height: 40px;
  min-width: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
}
.table-tools input:focus {
  border-color: var(--blue);
}
.table-tools span {
  font-size: 12px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 690px;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
th {
  color: #817b73;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fcfaf7;
}
td strong {
  color: var(--navy);
}
.table-empty {
  text-align: center !important;
  color: var(--muted);
  padding: 45px !important;
}
.row-actions {
  display: flex;
  gap: 5px;
}
.mini-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--navy);
  font-size: 11px;
}
.mini-button.delete {
  color: var(--red);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
}
.badge.good {
  background: #e8f7f1;
  color: #0e865f;
}
.badge.low,
.badge.waiting {
  background: #fff0e7;
  color: #d95a22;
}
.stock-input {
  display: flex;
  gap: 5px;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.integration-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.integration-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 850;
}
.integration-card h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 15px;
}
.integration-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.integration-card .badge {
  justify-self: start;
}
.integration-card button {
  grid-column: 1/-1;
}
.queue-panel {
  margin-top: 15px;
}
.queue-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.queue-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.report-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}
.report-card small {
  color: var(--muted);
}
.report-card strong {
  font-size: 29px;
  color: var(--navy);
}
.bar {
  height: 8px;
  background: #e8edf6;
  border-radius: 8px;
  overflow: hidden;
}
.bar i {
  height: 100%;
  display: block;
  background: var(--navy);
  border-radius: 8px;
}
.bar.orange i {
  background: var(--red);
}
.empty-module {
  min-height: 520px;
  border: 1px dashed #d9d0c5;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  padding: 30px;
}
.empty-module > span {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: #f0ebe5;
  display: grid;
  place-items: center;
  font-size: 29px;
  color: var(--navy);
}
.empty-module h2 {
  margin: 15px 0 5px;
  color: var(--navy);
}
.empty-module p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  max-width: 460px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 36, 0.48);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fffdf9;
  border-radius: 19px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  padding: 20px;
}
.modal.compact {
  width: min(440px, 100%);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: start;
  margin-bottom: 18px;
}
.modal-head h2 {
  margin: 0;
  color: var(--navy);
}
.modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  color: #4f4b45;
}
.form-grid label.full {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select {
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  background: #fff;
  outline: 0;
}
.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #edf2ff;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.payment-total {
  border: 1px solid var(--line);
  background: #f8f4ed;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  text-align: center;
}
.payment-total small {
  color: var(--muted);
}
.payment-total strong {
  font-size: 32px;
  color: var(--navy);
  margin-top: 4px;
}
.held-list {
  display: grid;
  gap: 9px;
}
.held-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.held-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 8px;
}
.toast {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  animation: toastIn 0.2s ease;
}
.toast.error {
  background: #a92a2d;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 82px 1fr;
  }
  .sidebar {
    padding: 22px 11px;
  }
  .brand {
    padding: 0 10px 24px;
  }
  .brand-copy,
  .nav-item:not(.active) {
    font-size: 0;
  }
  .nav-item {
    justify-content: center;
    padding: 11px;
  }
  .nav-item.active {
    font-size: 0;
  }
  .nav-item span {
    font-size: 20px;
  }
  .system-card div {
    display: none;
  }
  .system-card {
    justify-content: center;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    width: 238px;
    transition: 0.2s;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.18);
  }
  .sidebar.open {
    left: 0;
  }
  .brand-copy {
    display: grid;
  }
  .nav-item,
  .nav-item.active,
  .nav-item:not(.active) {
    justify-content: flex-start;
    font-size: 14px;
  }
  .main {
    padding: 0 15px 90px;
  }
  .menu-button {
    display: block;
  }
  .topbar {
    height: 74px;
  }
  .connection-pill {
    display: none;
  }
  .pos-grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }
  .product-panel,
  .cart-panel {
    width: 100%;
    min-width: 0;
  }
  .cart-panel {
    min-height: 520px;
  }
  .product-panel {
    min-height: auto;
  }
  .integration-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .sidebar.open:after {
    content: "";
    position: fixed;
    inset: 0 0 0 238px;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
  }
}
@media (max-width: 540px) {
  .top-actions .icon-button {
    display: none;
  }
  .title-wrap h1 {
    font-size: 22px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .kpi-card {
    padding: 11px;
    gap: 8px;
  }
  .kpi-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .kpi-card strong {
    font-size: 16px;
  }
  .kpi-card em {
    display: none;
  }
  .product-panel {
    padding: 11px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-visual {
    height: 68px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .text-button {
    align-self: flex-end;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label.full {
    grid-column: auto;
  }
  .payment-grid {
    grid-template-columns: 1fr !important;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .table-tools input {
    min-width: 0;
    width: 70%;
  }
  .clock {
    font-size: 13px;
  }
  .toast-region {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .toast {
    text-align: center;
  }
}

/* FİDATA kurumsal logo: tüm ekranlarda sabit merkez ve kırpmasız görünüm */
.brand {
  width: 100%;
  height: 116px;
  min-height: 116px;
  justify-content: center;
  padding: 0 0 18px;
  overflow: hidden;
}
.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: 98px;
  object-fit: contain;
  object-position: 50% 50%;
  margin: 0 auto;
  mix-blend-mode: multiply;
  transform: none;
}
@media (max-width: 1180px) {
  .brand {
    height: 68px;
    min-height: 68px;
    padding: 0 0 10px;
  }
  .brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    object-position: 50% 50%;
    margin: 0 auto;
  }
}
@media (max-width: 820px) {
  .brand {
    height: 116px;
    min-height: 116px;
    padding: 0 0 18px;
  }
  .brand-logo {
    width: 190px;
    height: 98px;
    object-fit: contain;
    object-position: 50% 50%;
    margin: 0 auto;
  }
}

/* Premium FİDATA POS arayüzü */
:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #e5e9f0;
  --text: #172033;
  --muted: #758095;
  --navy: #07152c;
  --navy2: #102544;
  --red: #e31d2b;
  --red-dark: #b90f1b;
  --blue: #2367d1;
  --orange: #f28b31;
  --green: #12a476;
  --shadow: 0 12px 34px rgba(18, 31, 53, 0.07);
  --shadow-strong: 0 22px 55px rgba(18, 31, 53, 0.12);
  --r: 20px;
}

html {
  background: var(--bg);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgba(227, 29, 43, 0.055), transparent 24rem),
    linear-gradient(180deg, #f7f8fb 0, #f2f4f8 100%);
}

button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(35, 103, 209, 0.22);
  outline-offset: 2px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
  padding: 20px 16px 18px;
  border-right: 0;
  color: #fff;
  background:
    radial-gradient(circle at 14% 2%, rgba(227, 29, 43, 0.22), transparent 12rem),
    linear-gradient(180deg, #0b1930 0%, #07111f 66%, #050d18 100%);
  box-shadow: 18px 0 45px rgba(7, 17, 31, 0.12);
}

.brand {
  position: relative;
  width: 100%;
  height: 126px;
  min-height: 126px;
  padding: 8px 12px 23px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(227, 29, 43, 0.035);
}

.brand::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 12px;
  height: 2px;
  border-radius: 5px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.65;
}

.brand-logo {
  display: block;
  width: 196px;
  max-width: 100%;
  height: 92px;
  margin: -5px auto 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  transform: none;
}

.brand-product {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  color: #667085;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.main-nav {
  gap: 5px;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nav-item {
  min-height: 45px;
  padding: 5px 10px 5px 7px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #aeb9ca;
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: 0.005em;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav-item > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #7f8da4;
  background: rgba(255, 255, 255, 0.035);
}

.nav-item > span svg {
  width: 17px;
  height: 17px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  transform: translateX(2px);
}

.nav-item:hover > span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #ec2533, #bd0f1c);
  box-shadow: 0 10px 24px rgba(181, 15, 27, 0.28);
}

.nav-item.active > span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.system-card {
  margin-top: 12px;
  padding: 12px 13px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.system-card strong {
  font-size: 11px;
}

.system-card small {
  color: #8290a7;
}

.status-dot.online {
  background: #31d49e;
  box-shadow: 0 0 0 5px rgba(49, 212, 158, 0.13), 0 0 16px rgba(49, 212, 158, 0.6);
}

.main {
  padding: 0 30px 38px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 15;
  height: 82px;
  margin: 14px 0 24px;
  padding: 0 16px 0 22px;
  border: 1px solid rgba(224, 229, 238, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(30, 42, 64, 0.075);
  backdrop-filter: blur(16px);
}

.page-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.title-wrap {
  gap: 14px;
}

.title-wrap h1 {
  color: var(--navy);
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.title-wrap p {
  margin-top: 3px;
  color: #8993a6;
  font-size: 10.5px;
  text-transform: capitalize;
}

.top-actions {
  gap: 9px;
}

.connection-pill {
  height: 38px;
  padding: 0 13px;
  border-color: #dfece7;
  border-radius: 11px;
  color: #28725c;
  background: #f1faf6;
  font-size: 11px;
  font-weight: 780;
}

.connection-pill i {
  width: 7px;
  height: 7px;
  background: #15a97b;
  box-shadow: 0 0 0 4px rgba(21, 169, 123, 0.12);
}

.clock {
  min-width: 54px;
  padding: 0 4px;
  color: #263653;
  font-size: 13px;
  text-align: center;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-color: #e2e6ed;
  border-radius: 11px;
  color: #5d6980;
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 36, 61, 0.05);
}

.user-pill {
  height: 44px;
  padding: 4px 11px 4px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e6ee;
  border-radius: 13px;
  background: #fff;
}

.user-pill > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ed2735, #b90f1b);
  box-shadow: 0 6px 14px rgba(185, 15, 27, 0.22);
  font-size: 14px;
  font-weight: 900;
}

.user-pill div {
  display: grid;
  gap: 1px;
}

.user-pill strong {
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.user-pill small {
  color: #8b94a5;
  font-size: 8.5px;
}

.view.active {
  animation: viewIn 220ms ease both;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.kpi-grid {
  gap: 15px;
  margin-bottom: 20px;
}

.kpi-card {
  position: relative;
  min-height: 102px;
  padding: 18px;
  gap: 14px;
  overflow: hidden;
  border-color: #e4e8ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -40px auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(35, 103, 209, 0.045);
}

.kpi-card:nth-child(2)::after { background: rgba(7, 21, 44, 0.045); }
.kpi-card:nth-child(3)::after { background: rgba(18, 164, 118, 0.055); }
.kpi-card:nth-child(4)::after { background: rgba(227, 29, 43, 0.06); }

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.kpi-card.warning {
  border-color: #f3d9d9;
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.kpi-icon svg {
  width: 20px;
  height: 20px;
}

.kpi-icon.blue { color: #2367d1; background: #edf4ff; }
.kpi-icon.navy { color: #122746; background: #eef1f6; }
.kpi-icon.green { color: #0f976d; background: #eaf8f3; }
.kpi-icon.orange { color: #d61d2a; background: #ffebed; }

.kpi-card small {
  color: #7e899d;
  font-size: 10px;
  font-weight: 700;
}

.kpi-card strong {
  margin: 4px 0 2px;
  color: #0d1c34;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.kpi-card em {
  color: #a1a9b7;
  font-size: 9px;
}

.pos-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(350px, 0.8fr);
  gap: 20px;
}

.panel {
  border-color: #e3e7ee;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.product-panel {
  min-height: 638px;
  padding: 18px;
}

.search-row {
  gap: 10px;
}

.search-box {
  height: 54px;
  padding: 0 14px;
  border: 1px solid #dce2eb;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(16, 32, 57, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-box:focus-within {
  border-color: #93add7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(35, 103, 209, 0.08);
}

.search-box span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #71809a;
}

.search-box span svg {
  width: 19px;
  height: 19px;
}

.search-box input {
  color: #17243a;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #9aa4b5;
}

.search-box kbd {
  padding: 4px 7px;
  border: 1px solid #e0e5ed;
  border-radius: 7px;
  color: #7f899a;
  background: #fff;
  box-shadow: 0 2px 4px rgba(23, 32, 51, 0.04);
}

.primary-button {
  border-radius: 11px;
  background: linear-gradient(135deg, #ed2735, #bd0f1c);
  box-shadow: 0 8px 18px rgba(190, 15, 28, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button:hover {
  background: linear-gradient(135deg, #f02a38, #b40d19);
  box-shadow: 0 11px 24px rgba(190, 15, 28, 0.27);
  transform: translateY(-1px);
}

.primary-button.square {
  width: 54px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #152b4b, #07152c);
  box-shadow: 0 8px 18px rgba(7, 21, 44, 0.18);
}

.primary-button.square svg {
  width: 20px;
  height: 20px;
}

.toolbar {
  margin: 15px 0 15px;
}

.category-list {
  gap: 8px;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar { display: none; }

.category-chip {
  padding: 8px 13px;
  border-color: #e2e7ee;
  border-radius: 9px;
  color: #6f7b8f;
  background: #f8fafc;
  font-size: 10.5px;
  font-weight: 720;
}

.category-chip:hover {
  color: #10213b;
  border-color: #cbd4e1;
}

.category-chip.active {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
  box-shadow: 0 5px 12px rgba(7, 21, 44, 0.16);
}

.text-button {
  color: var(--red);
  font-size: 11px;
}

.product-grid {
  gap: 12px;
}

.product-card {
  padding: 12px;
  gap: 8px;
  border-color: #e4e8ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 31, 53, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #d7a7ab;
  box-shadow: 0 16px 30px rgba(18, 31, 53, 0.1);
}

.product-visual {
  height: 88px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 10%, #fff, transparent 52%),
    linear-gradient(145deg, #f4f6f9, #e9edf3);
}

.product-visual::before {
  box-shadow: inset 0 -12px 0 rgba(255, 255, 255, 0.14), 0 8px 12px rgba(14, 25, 42, 0.1);
}

.product-card small {
  color: #8b95a6;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.product-card h3 {
  color: #17243a;
  font-size: 12.5px;
  font-weight: 780;
}

.product-meta strong {
  color: #0c1b33;
  font-size: 13px;
  font-weight: 850;
}

.add-button {
  border-color: #f2c7ca;
  color: var(--red);
  background: #fff5f5;
  font-weight: 500;
}

.add-button:hover:not(:disabled) {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.stock-tag {
  right: 9px;
  top: 9px;
  border-color: rgba(202, 210, 222, 0.8);
  color: #526078;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 10px rgba(17, 31, 52, 0.06);
}

.cart-panel {
  min-height: 638px;
  border-color: #dfe4ec;
  box-shadow: 0 18px 42px rgba(14, 26, 45, 0.1);
}

.cart-panel .panel-heading {
  min-height: 69px;
  padding: 16px 18px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  background:
    radial-gradient(circle at 85% 0, rgba(227, 29, 43, 0.25), transparent 9rem),
    linear-gradient(135deg, #102544, #07152c);
}

.cart-panel .panel-heading h2 {
  color: #fff;
  font-size: 19px;
}

.cart-panel .panel-heading span {
  color: #9eabc0;
}

.cart-panel .icon-button.danger {
  border-color: rgba(255, 255, 255, 0.13);
  color: #ff8d96;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.cart-items {
  padding: 0 18px;
  background: #fff;
}

.cart-empty {
  color: #9aa4b5;
}

.cart-empty span {
  width: 54px;
  height: 54px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #71809a;
  background: #f1f4f8;
}

.cart-row {
  padding: 15px 0;
  border-bottom-color: #eef1f5;
}

.cart-row h4 {
  color: #1b2940;
  font-weight: 760;
}

.qty-row button,
.qty-row span {
  border-color: #dfe5ed;
}

.qty-row button {
  color: #43516a;
  background: #f8fafc;
}

.remove-cart {
  color: #bd4c55;
  font-size: 10px;
}

.cart-summary {
  padding: 14px 18px 18px;
  border-top-color: #e8ecf2;
  background: #f8fafc;
}

.cart-summary > div,
.summary-button {
  color: #69758a;
  font-size: 11px;
}

.summary-button {
  border-bottom-color: #e4e9f0;
}

.total-row {
  margin: 4px 0 12px;
  padding: 13px 14px !important;
  border: 1px solid #e0e6ee;
  border-radius: 13px;
  color: #14243d !important;
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 31, 53, 0.05);
  font-size: 13px !important;
}

.total-row strong {
  color: #07152c;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.payment-grid {
  gap: 10px;
}

.pay-button {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  box-shadow: 0 9px 18px rgba(7, 21, 44, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.pay-button svg {
  width: 18px;
  height: 18px;
}

.pay-button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 13px 24px rgba(7, 21, 44, 0.2);
}

.pay-button.card {
  background: linear-gradient(135deg, #173154, #07152c);
}

.pay-button.cash {
  background: linear-gradient(135deg, #ed2735, #b80e1a);
}

.soft-button,
.outline-button {
  border-radius: 10px;
  font-size: 10.5px;
}

.soft-button {
  border-color: #e0e5ed;
  color: #5e6b80;
  background: #fff;
}

.outline-button {
  border-color: #cad3df;
  color: #203453;
  background: #fff;
}

.section-head {
  margin-top: 3px;
}

.section-head h2 {
  color: #0c1b33;
  font-size: 24px;
  font-weight: 830;
  letter-spacing: -0.035em;
}

.section-head p {
  color: #7c879a;
  font-size: 11.5px;
}

.table-panel,
.report-card,
.integration-card,
.empty-module {
  border-color: #e3e8ef;
  box-shadow: var(--shadow);
}

.table-tools,
th {
  background: #f8fafc;
}

.table-tools input,
.form-grid input,
.form-grid select {
  border-color: #dfe5ed;
  background: #fff;
}

th {
  color: #788499;
}

td {
  border-bottom-color: #edf0f4;
}

.mini-button {
  border-color: #dfe5ed;
  color: #30435f;
  background: #f9fafc;
}

.badge.good {
  color: #0b855f;
  background: #e8f8f2;
}

.badge.low,
.badge.waiting {
  color: #c6424d;
  background: #ffedef;
}

.integration-card,
.report-card {
  background: #fff;
}

.integration-logo {
  background: linear-gradient(135deg, #173154, #07152c);
  box-shadow: 0 8px 16px rgba(7, 21, 44, 0.18);
}

.bar {
  background: #edf1f6;
}

.bar i {
  background: linear-gradient(90deg, #173154, #2b5d99);
}

.bar.orange i {
  background: linear-gradient(90deg, #be101c, #ed2735);
}

.empty-module {
  border-style: solid;
  background: rgba(255, 255, 255, 0.86);
}

.empty-module > span,
.empty-state span {
  color: #213a5d;
  background: #edf1f6;
}

.modal-backdrop {
  background: rgba(4, 13, 25, 0.66);
  backdrop-filter: blur(8px);
}

.modal {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.modal-head h2 {
  color: #0b1a32;
  letter-spacing: -0.025em;
}

.payment-total {
  border-color: #e1e7ef;
  background: linear-gradient(135deg, #f7f9fc, #fff);
}

.payment-total strong {
  color: #0b1a32;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: #0b1a32;
  box-shadow: 0 18px 38px rgba(4, 13, 25, 0.26);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 92px 1fr;
  }

  .sidebar {
    padding: 16px 11px;
  }

  .brand {
    width: 68px;
    height: 68px;
    min-height: 68px;
    margin: 0 auto 14px;
    padding: 0;
    border-radius: 17px;
  }

  .brand::after,
  .brand-product {
    display: none;
  }

  .brand-logo {
    width: 66px;
    height: 66px;
    margin: 0 auto;
  }

  .nav-item,
  .nav-item.active,
  .nav-item:not(.active) {
    justify-content: center;
    padding: 5px;
    font-size: 0;
  }

  .nav-item > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .system-card {
    padding: 12px;
  }

  .user-pill div {
    display: none;
  }

  .user-pill {
    padding-right: 5px;
  }
}

@media (max-width: 900px) {
  .main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pos-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-panel {
    min-height: 530px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    left: -286px;
    width: 268px;
    padding: 20px 16px 18px;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.3);
  }

  .sidebar.open {
    left: 0;
  }

  .brand {
    width: 100%;
    height: 126px;
    min-height: 126px;
    padding: 8px 12px 23px;
    margin: 0 0 12px;
    border-radius: 20px;
  }

  .brand::after,
  .brand-product {
    display: block;
  }

  .brand-logo {
    width: 196px;
    height: 92px;
    margin: -5px auto 0;
  }

  .nav-item,
  .nav-item.active,
  .nav-item:not(.active) {
    justify-content: flex-start;
    padding: 5px 10px 5px 7px;
    font-size: 12.5px;
  }

  .main {
    padding: 0 15px 84px;
  }

  .topbar {
    top: 8px;
    height: 74px;
    margin-top: 8px;
    padding-left: 12px;
  }

  .menu-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e7ee;
    border-radius: 11px;
    background: #fff;
  }

  .sidebar.open::after {
    inset: 0 0 0 268px;
    background: rgba(4, 13, 25, 0.52);
  }
}

@media (max-width: 620px) {
  .page-eyebrow {
    display: none;
  }

  .user-pill,
  .top-actions .icon-button {
    display: none;
  }

  .title-wrap h1 {
    font-size: 20px;
  }

  .title-wrap p {
    max-width: 170px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .kpi-grid {
    gap: 9px;
  }

  .kpi-card {
    min-height: 82px;
    padding: 11px;
    gap: 8px;
  }

  .kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .kpi-icon svg {
    width: 17px;
    height: 17px;
  }

  .kpi-card strong {
    font-size: 15px;
  }

  .product-panel {
    padding: 12px;
  }

  .search-box {
    height: 50px;
  }

  .primary-button.square {
    width: 50px;
  }

  .product-visual {
    height: 72px;
  }

  .cart-panel .panel-heading {
    min-height: 64px;
  }
}

@media (max-width: 420px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar {
    border-radius: 15px;
  }

  .kpi-card small {
    font-size: 9px;
  }

  .kpi-icon {
    display: none;
  }

  .product-card {
    padding: 9px;
  }

  .product-card h3 {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
