@charset "UTF-8";
:root {
  --ink: #222735;
  --muted: #868b98;
  --accent: #6859dd;
  --accent-dark: #5043bc;
  --bg: #f6f7fb;
  --line: #e9ebf2;
  --radius: 18px;
  --nav: #202330;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Segoe UI,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  font: inherit;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 11px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.15s;
}
button:hover,
.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.secondary {
  background: #f0effb;
  color: var(--accent);
}
.secondary:hover {
  background: #e5e2f8;
}
.danger {
  background: #ce4056;
}
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dfe2eb;
  border-radius: 10px;
  font: inherit;
  padding: 12px 13px;
  min-height: 44px;
  color: var(--ink);
  background: #fff;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
label {
  display: block;
  margin: 0 0 17px;
  font-weight: 600;
  font-size: 13px;
}
label input,
label select,
label textarea {
  margin-top: 7px;
  font-weight: 400;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bdb5fb;
  outline-offset: 2px;
}
h1 {
  margin: 3px 0 0;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 700;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
p {
  margin: 8px 0 16px;
}
.muted {
  color: var(--muted);
}
small {
  font-size: 11px;
}
.wide {
  width: 100%;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: var(--nav);
  color: #fff;
  padding: 30px 19px 22px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 12px;
  color: white;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
  align-items: center;
  padding: 0 9px;
}
.brand:hover {
  text-decoration: none;
}
.brand-light {
  font-weight: 350;
  color: #bcb6ef;
}
.brand small {
  display: block;
  color: #7e8298;
  font-size: 8px;
  letter-spacing: 1.9px;
  margin-top: 1px;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  border-radius: 13px;
  width: 42px;
  height: 42px;
  color: white;
  flex-shrink: 0;
}
.brand-icon svg {
  width: 25px;
  height: 25px;
}
.business {
  margin: 28px 10px 34px;
  font-size: 11px;
  color: #b9bbc9;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-wrap: anywhere;
}
.online-dot {
  width: 6px;
  height: 6px;
  background: #58bd97;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
}
.nav-label {
  color: #737789;
  font-size: 9px;
  letter-spacing: 1.6px;
  padding: 0 14px;
  margin: 0 0 13px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a9adbe;
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 13px;
}
nav a svg {
  width: 19px;
  height: 19px;
}
nav a:hover {
  background: #2c3041;
  color: #fff;
  text-decoration: none;
}
nav a.selected {
  background: #6859dd;
  color: #fff;
  box-shadow: 0 7px 18px #100d3626;
}
.sidebar-note {
  margin: auto 10px 28px;
  padding-top: 24px;
  color: #9397ab;
}
.sidebar-note small {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.sidebar-note strong {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 8px;
}
.profile {
  border-top: 1px solid #343849;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #36394d;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #c8c3fb;
  flex-shrink: 0;
}
.profile strong {
  font-size: 11px;
  display: block;
  overflow-wrap: anywhere;
}
.profile small {
  color: #9397ab;
  font-size: 9px;
  display: block;
}
.profile form {
  margin-left: auto;
}
.profile button {
  padding: 0;
  min-width: 30px;
  background: none;
  font-size: 22px;
  color: #9c9eb0;
}
.main {
  margin-left: 235px;
  padding: 29px 30px;
  max-width: 2000px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
}
.head-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
}
.date {
  color: #888d9b;
}
.head-status {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.notice {
  background: #e8f7ee;
  color: #327853;
  border: 1px solid #cae9d7;
  border-radius: 11px;
  padding: 15px;
  margin-bottom: 20px;
}
.error {
  color: #c73450;
  font-size: 12px;
}
.panel,
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.panel {
  margin-bottom: 24px;
}
.welcome {
  background: #eeebff;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  border: 1px solid #e1ddf6;
}
.welcome h2 {
  font-size: 25px;
}
.welcome p {
  margin: 0;
  color: #827b9f;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 17px;
  margin-bottom: 26px;
}
.metric {
  position: relative;
  padding: 24px;
}
.metric:before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  display: block;
  border-radius: 3px;
  margin-bottom: 15px;
}
.metric small {
  color: var(--muted);
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
}
.metric strong {
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 650;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #888d9b;
  background: #f4f5fa;
  font-weight: 600;
}
th,
td {
  padding: 17px 15px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  overflow-wrap: anywhere;
}
tbody tr:nth-child(even) {
  background: #f7f8fc;
}
tbody tr:hover {
  background: #f0eefc;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.amount {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.row-number {
  color: #a2a5b2;
  font-variant-numeric: tabular-nums;
}
.invoice-link {
  font-weight: 650;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.3px;
  padding: 5px 9px;
  border-radius: 6px;
  font-weight: 700;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.completed {
  background: #e6f5ed;
  color: #328c60;
}
.voided {
  background: #ffe9ed;
  color: #c8455e;
}
.payment-tag {
  padding: 5px 9px;
  border-radius: 6px;
  background: #eeeefa;
  color: #7a7398;
  font-size: 10px;
}
.table-action {
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
}
.filters {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}
.filters label {
  min-width: 135px;
  flex: 1;
  margin: 0;
  font-size: 11px;
}
.filters select,
.filters input {
  font-size: 12px;
}
.pagination {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.management-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
}
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}
.settings-panel {
  max-width: 720px;
}
.settings-divider {
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 26px;
  align-items: start;
}
.catalog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 10px;
}
.catalog-title h2 {
  font-size: 20px;
  margin-bottom: 5px;
}
.catalog-title p {
  font-size: 11px;
  margin: 0;
}
.count-pill {
  background: #eceafa;
  color: #7970ae;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 10px;
  white-space: nowrap;
}
.catalog-toolbar {
  display: flex;
  gap: 11px;
  margin-bottom: 24px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}
.search-box > span {
  font-size: 26px;
  color: #989bac;
}
.search-box input {
  border: 0;
  padding: 12px 0;
  background: none;
  font-size: 12px;
  min-width: 0;
}
.search-box input:focus {
  outline: none;
}
.search-box:focus-within {
  outline: 2px solid #bdb5fb;
}
kbd {
  background: #f3f4f8;
  border: 1px solid var(--line);
  font-size: 11px;
  color: #8c90a0;
  border-radius: 4px;
  padding: 2px 5px;
}
.catalog-toolbar select {
  width: 150px;
  border: 1px solid var(--line);
  font-size: 12px;
  border-radius: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 17px;
}
.product {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  text-align: left;
  min-height: 205px;
}
.product:hover {
  background: white;
  border-color: #a69be9;
  box-shadow: 0 5px 16px #6258a511;
}
.product-art {
  height: 105px;
  background: #f0edfa;
  position: relative;
  display: grid;
  place-items: center;
  margin: 7px;
  border-radius: 11px;
  overflow: hidden;
}
.product-art:before,
.product-art:after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid #ffffff90;
  transform: rotate(-20deg);
  left: -25px;
  top: -20px;
}
.product-art:after {
  left: auto;
  top: auto;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
}
.product-avatar {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -2px;
  color: #8373b4;
  z-index: 1;
}
.tone-1 .product-art {
  background: #f8eddf;
}
.tone-1 .product-avatar {
  color: #b68b57;
}
.tone-2 .product-art {
  background: #e8f1e8;
}
.tone-2 .product-avatar {
  color: #799e79;
}
.tone-3 .product-art {
  background: #e5eff8;
}
.tone-3 .product-avatar {
  color: #7394b3;
}
.tone-4 .product-art {
  background: #fae8ed;
}
.tone-4 .product-avatar {
  color: #bc7f95;
}
.add-mark {
  position: absolute;
  bottom: 9px;
  right: 9px;
  border-radius: 8px;
  background: #fff;
  color: #6859dd;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 20px;
  z-index: 2;
}
.product-info {
  display: flex;
  flex-direction: column;
  padding: 8px 15px 15px;
  gap: 5px;
  flex: 1;
}
.product-info small {
  color: #9a9dad;
  font-size: 9px;
  font-weight: 400;
}
.product-info strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.price {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: #383246;
  padding-top: 5px;
}
.cart-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  position: sticky;
  top: 20px;
  box-shadow: 0 7px 25px #29254705;
  overflow: hidden;
}
.order-header {
  padding: 23px 22px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-header h2 {
  font-size: 20px;
  margin: 5px 0 0;
}
.order-header h2 span {
  background: #eeeafa;
  color: var(--accent);
  padding: 3px 7px;
  font-size: 10px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 5px;
}
.clear-button {
  background: #fff1f3;
  color: #c45569;
  padding: 6px 11px;
  min-height: 31px;
  border-radius: 7px;
  font-size: 10px;
}
.clear-button:hover {
  background: #ffe5e9;
}
.order-cashier {
  border-bottom: 1px solid var(--line);
  padding: 0 23px 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.cart-empty {
  padding: 34px 20px 30px;
  text-align: center;
  color: #a0a4b3;
}
.cart-empty svg {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: #c4bfdc;
}
.cart-empty strong {
  display: block;
  color: #8a849e;
  font-size: 12px;
}
.cart-empty p {
  font-size: 11px;
  margin: 5px 0 0;
}
#cart-items {
  max-height: 33vh;
  overflow: auto;
  padding: 0 22px;
}
.cart-item {
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0edfa;
  color: #8b7db1;
  font-size: 12px;
  flex-shrink: 0;
}
.cart-item-info > div {
  min-width: 0;
}
.cart-item strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.cart-item small {
  color: #aaaebb;
  font-size: 10px;
  display: block;
}
.remove {
  background: none;
  color: #b7bbc6;
  font-size: 22px;
  margin-left: auto;
  padding: 0;
  min-height: 28px;
  min-width: 30px;
}
.remove:hover {
  background: #fff1f3;
  color: #cb5970;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 12px;
  padding-left: 44px;
}
.qty-controls button {
  background: #f5f4fa;
  color: #79738c;
  border-radius: 7px;
  min-height: 32px;
  width: 32px;
  padding: 0;
}
.qty-controls input {
  width: 48px;
  min-height: 32px;
  font-size: 11px;
  padding: 5px 1px;
  text-align: center;
  border: 0;
  appearance: textfield;
}
.qty-controls input::-webkit-inner-spin-button {
  appearance: none;
}
.qty-controls b {
  font-size: 12px;
  margin-left: auto;
}
#checkout-form {
  padding: 19px 22px 23px;
}
.adjustments {
  background: #f8f8fc;
  border: 1px solid #efeff5;
  border-radius: 11px;
  padding: 13px 14px;
}
.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 6px 0;
  font-size: 11px;
  cursor: pointer;
  position: relative;
  gap: 10px;
}
.toggle-label small {
  color: #a3a5b5;
  font-weight: 400;
  margin-left: 6px;
  font-size: 9px;
}
.toggle-label input {
  position: absolute;
  opacity: 0;
  width: 34px;
  min-height: 22px;
  right: 0;
  margin: 0;
  cursor: pointer;
}
.switch {
  width: 31px;
  height: 18px;
  border-radius: 20px;
  background: #d9dce7;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
}
.switch:after {
  content: "";
  position: absolute;
  background: white;
  width: 12px;
  height: 12px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  transition: transform 0.15s;
}
.toggle-label input:checked + .switch {
  background: var(--accent);
}
.toggle-label input:checked + .switch:after {
  transform: translateX(13px);
}
.toggle-label input:focus-visible + .switch {
  outline: 3px solid #bdb5fb;
}
#discount-field {
  margin: 10px 0 0;
  font-size: 10px;
}
#discount-field input {
  min-height: 38px;
  padding: 8px;
}
.order-summary {
  padding-top: 18px;
}
.order-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 5px 0;
  color: #8b8f9f;
}
.order-summary b {
  color: #54566a;
  font-weight: 500;
  font-size: 12px;
}
.order-summary .total-row {
  padding: 17px 0 19px;
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  color: var(--ink);
  font-size: 13px;
}
.total-row strong {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.payment-options {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.payment-options legend {
  font-size: 10px;
  color: #8f93a3;
  margin-bottom: 10px;
}
.payment-options label {
  margin: 0;
  position: relative;
  cursor: pointer;
}
.payment-options input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.payment-options label > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 8px 3px;
  border-radius: 9px;
  color: #a0a3b3;
  font-size: 9px;
  pointer-events: none;
}
.payment-options b {
  font-size: 17px;
  font-weight: 500;
}
.payment-options input:checked + span {
  background: #eeebff;
  color: var(--accent);
  border-color: #b6acec;
}
.payment-options input:focus-visible + span {
  outline: 3px solid #bdb5fb;
}
.checkout {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  min-height: 48px;
  box-shadow: 0 4px 10px #6859dd20;
}
.checkout-note {
  display: block;
  text-align: center;
  font-size: 9px;
  color: #aaadba;
  margin-top: 11px;
}
.empty {
  text-align: center;
  padding: 35px;
  color: var(--muted);
}
.invoice-workspace {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) 310px;
  gap: 26px;
  align-items: start;
}
.receipt-preview {
  background: #ebeef5;
  border: 1px solid #e2e5ed;
  border-radius: 18px;
  padding: 20px 25px 35px;
}
.preview-bar {
  display: flex;
  justify-content: space-between;
  color: #8c91a3;
  font-size: 10px;
  margin-bottom: 25px;
  gap: 10px;
}
.receipt {
  width: 380px;
  max-width: 100%;
  padding: 28px;
  background: white;
  margin: 0 auto;
  box-shadow: 0 5px 12px #27324c10;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.receipt header {
  text-align: center;
}
.receipt header h2 {
  font-size: 20px;
  font-weight: 750;
  margin: 12px 0 7px;
  letter-spacing: 0;
}
.receipt header p {
  font-size: 10px;
  margin: 3px 0;
}
.receipt-symbol {
  margin: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #111;
}
.receipt-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  border-top: 1px dashed #999;
  border-bottom: 1px dashed #999;
  padding: 12px 0;
  margin: 19px 0 15px;
}
.receipt-meta {
  margin: 0 0 17px;
  font-size: 10px;
}
.receipt-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0;
}
.receipt-meta dt {
  color: #666;
}
.receipt-meta dd {
  margin: 0;
  text-align: right;
}
.receipt-table {
  table-layout: fixed;
  width: 100%;
}
.receipt-table th,
.receipt-table td {
  font-size: 10px;
  letter-spacing: 0;
  padding: 9px 3px;
  border-bottom: 1px dashed #ddd;
  color: #111;
  background: white;
  text-transform: none;
  vertical-align: top;
}
.receipt-table th {
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  font-weight: 700;
}
.receipt-table th:nth-child(1) {
  width: 8%;
}
.receipt-table th:nth-child(2) {
  width: 36%;
}
.receipt-table th:nth-child(3) {
  width: 10%;
}
.receipt-table th:nth-child(4) {
  width: 21%;
}
.receipt-table th:nth-child(5) {
  width: 25%;
}
.receipt-table td:nth-child(n + 3),
.receipt-table th:nth-child(n + 3) {
  text-align: right;
}
.receipt-table tr:hover {
  background: white;
}
.receipt-summary {
  padding-top: 15px;
}
.receipt-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 5px 0;
  font-size: 11px;
}
.receipt-summary b {
  font-weight: 500;
}
.receipt-summary .receipt-grand {
  border-top: 1px dashed #222;
  border-bottom: 1px solid #222;
  margin-top: 12px;
  padding: 13px 0;
  font-size: 15px;
}
.receipt-item-count {
  text-align: center;
  font-size: 9px;
  color: #666;
  margin: 11px 0 23px;
}
.receipt footer {
  border-top: 1px dashed #999;
  text-align: center;
  padding-top: 18px;
  font-size: 11px;
}
.receipt footer span {
  display: block;
  color: #777;
  font-size: 9px;
  margin-top: 7px;
}
.void-stamp {
  text-align: center;
  border: 2px solid black;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  margin: 15px 0;
  padding: 6px;
}
.void-history {
  border: 1px dashed #999;
  padding: 12px;
  font-size: 10px;
  margin: 18px 0;
}
.void-history p {
  margin: 6px 0;
}
.invoice-controls h2 {
  margin: 10px 0 12px;
  font-size: 20px;
}
.invoice-total {
  padding: 24px 0;
}
.invoice-total small {
  display: block;
  color: var(--muted);
}
.invoice-total strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}
.invoice-controls .wide {
  margin-bottom: 12px;
}
.invoice-controls .muted {
  font-size: 11px;
  margin-top: 20px;
}
.back-link {
  display: block;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}
.void-box {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
.void-box summary {
  color: #c94b61;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.void-box p {
  color: var(--muted);
  font-size: 11px;
}
.mobile-toggle,
.mobile-order-jump {
  display: none;
}
.lock-screen {
  background: #eff0f6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 10% 5%, #e4def7 0, transparent 55%),
    radial-gradient(ellipse at 90% 90%, #dfeae8 0, transparent 50%);
}
.auth-main {
  width: 390px;
  max-width: 100%;
  padding: 30px 20px;
  margin: 3vh auto;
}
.auth-main .page-head {
  display: none;
}
.lock-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
  margin-bottom: 27px;
}
.lock-brand > span:last-child {
  font-weight: 350;
  margin-left: -9px;
  color: var(--accent);
}
.login-card {
  background: #ffffffd9;
  backdrop-filter: blur(15px);
  border: 1px solid white;
  box-shadow: 0 15px 60px #4036650c;
  border-radius: 26px;
  padding: 30px;
}
.lock-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eeebfc;
  color: #8a7cce;
  margin: 0 auto 15px;
}
.lock-avatar svg {
  width: 26px;
  height: 26px;
}
.login-card h2,
.login-card > p {
  text-align: center;
}
.login-card > p {
  font-size: 12px;
  margin-bottom: 26px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 54px;
}
.password-reveal {
  position: absolute;
  right: 6px;
  top: 10px;
  min-height: 34px;
  padding: 0 8px;
  background: none;
  color: #9c94b4;
  font-size: 10px;
}
.password-reveal:hover {
  background: #f0eef7;
}
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 21px 0;
}
.pin-keypad button {
  background: #f4f3f9;
  color: #67627b;
  min-height: 42px;
  font-size: 16px;
  font-weight: 400;
}
.pin-keypad button:hover {
  background: #e9e5f9;
}
.pin-keypad button:nth-child(10) {
  font-size: 10px;
}
.unlock-button {
  font-size: 12px;
}
.lock-footer {
  display: block;
  text-align: center;
  font-size: 9px;
  color: #9c97af;
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .product-art {
    height: 125px;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 410px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding: 25px 14px;
  }
  .main {
    margin-left: 200px;
    padding: 26px 24px;
  }
  .brand {
    font-size: 23px;
    gap: 8px;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .product-art {
    height: 90px;
  }
  .catalog-toolbar {
    flex-direction: column;
  }
  .catalog-toolbar select {
    width: 100%;
  }
  .head-status {
    display: none;
  }
  .management-layout {
    grid-template-columns: 1fr;
  }
  .invoice-workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .receipt-preview {
    padding: 18px 16px 28px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 17px 22px;
    display: block;
  }
  .brand {
    font-size: 24px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
  }
  .brand small {
    font-size: 7px;
  }
  .business {
    position: absolute;
    right: 80px;
    top: 13px;
    margin: 16px 0;
    max-width: 30%;
    font-size: 10px;
  }
  .mobile-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 18px;
    padding: 0;
    min-height: 35px;
    min-width: 35px;
    background: #34364a;
  }
  .nav-label,
  .sidebar nav,
  .sidebar-note,
  .profile {
    display: none;
  }
  .sidebar.open nav {
    display: grid;
    margin-top: 22px;
    grid-template-columns: repeat(3, 1fr);
  }
  .sidebar.open .profile {
    display: flex;
    margin-top: 20px;
  }
  .main {
    margin-left: 0;
    padding: 24px;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 345px;
  }
  .catalog-toolbar {
    flex-direction: column;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
  .page-head {
    margin-bottom: 24px;
  }
  .head-right {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .main {
    padding: 22px 16px;
  }
  .pos-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .catalog-toolbar {
    flex-direction: row;
  }
  .catalog-toolbar select {
    width: 140px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .product {
    min-height: 185px;
  }
  .product-art {
    height: 85px;
  }
  .product-info {
    padding: 6px 12px 13px;
  }
  .cart-panel {
    position: static;
    scroll-margin-top: 20px;
  }
  .pos-page .main {
    padding-bottom: 92px;
  }
  #cart-items {
    max-height: none;
  }
  .mobile-order-jump {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #272333;
    color: white;
    padding: 15px 20px;
    border-radius: 13px;
    box-shadow: 0 5px 30px #29253630;
    z-index: 40;
    font-size: 12px;
  }
  .mobile-order-jump strong {
    margin-left: auto;
    margin-right: 12px;
  }
  .page-head .date {
    display: none;
  }
  h1 {
    font-size: 26px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 20px;
  }
  .metric strong {
    font-size: 23px;
  }
  .panel {
    padding: 20px;
  }
  .welcome {
    padding: 24px;
    align-items: start;
    flex-direction: column;
  }
  .welcome h2 {
    font-size: 23px;
  }
  .filters {
    padding: 15px;
    gap: 10px;
  }
  .filters label {
    min-width: 120px;
  }
  .filters > button {
    width: 100%;
  }
  .table-wrap table {
    min-width: 650px;
  }
  .invoice-workspace {
    grid-template-columns: 1fr;
  }
  .invoice-controls {
    order: -1;
  }
  .invoice-controls .muted {
    margin: 10px 0;
  }
  .invoice-total {
    padding: 12px 0;
  }
  .invoice-total strong {
    font-size: 23px;
  }
  .receipt-preview {
    padding: 20px 15px 30px;
  }
  .receipt-table {
    min-width: 0 !important;
  }
  .business {
    display: none;
  }
  .sidebar.open nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    flex-wrap: wrap;
  }
  .invoice-controls .void-box {
    margin-top: 16px;
  }
  .management-layout {
    gap: 0;
  }
}
@media (max-width: 450px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-toolbar select {
    width: 115px;
    font-size: 10px;
  }
  .search-box input {
    font-size: 11px;
  }
  kbd {
    display: none;
  }
  .catalog-title p {
    font-size: 10px;
  }
  .product-art {
    height: 100px;
  }
  .receipt {
    padding: 22px 16px;
  }
  .receipt header h2 {
    font-size: 18px;
  }
  .auth-main {
    margin: 1vh auto;
    padding: 24px 20px;
  }
  .login-card {
    padding: 25px;
  }
  .eyebrow {
    font-size: 8px;
  }
}
@media print {
  @page {
    size: auto;
    margin: 3mm;
  }
  body {
    background: white !important;
    color: #000 !important;
  }
  .sidebar,
  .page-head,
  .notice,
  .invoice-controls,
  .preview-bar,
  .mobile-order-jump {
    display: none !important;
  }
  .main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
  }
  .invoice-workspace {
    display: block;
  }
  .receipt-preview {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
  }
  .receipt {
    width: 74mm;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    font-size: 10pt;
    color: black;
  }
  .receipt-symbol {
    display: none;
  }
  .receipt header h2 {
    font-size: 14pt;
    margin-top: 0;
  }
  .receipt header p {
    font-size: 8pt;
  }
  .receipt-heading {
    font-size: 9pt;
    margin: 12px 0;
  }
  .receipt-meta {
    font-size: 8pt;
  }
  .receipt-table th,
  .receipt-table td {
    font-size: 8pt;
    padding: 7px 2px;
  }
  .receipt-summary > div {
    font-size: 8pt;
  }
  .receipt-summary .receipt-grand {
    font-size: 11pt;
  }
  .receipt footer {
    font-size: 9pt;
  }
  .receipt footer span,
  .receipt-item-count {
    font-size: 7pt;
  }
  .receipt tr {
    break-inside: avoid;
  }
  .receipt header,
  .receipt-summary,
  .receipt footer {
    break-inside: avoid;
  }
  .receipt td {
    overflow-wrap: anywhere;
  }
}
.invoice-workspace > *,
.management-layout > *,
.pos-layout > * {
  min-width: 0;
}
.receipt-table th:first-child {
  white-space: nowrap;
  width: 9%;
}
.receipt-table th:nth-child(2) {
  width: 35%;
}
/* Restaurant POS v3 */
:root {
  --accent: #087b61;
  --accent-dark: #05614e;
  --bg: #fafaf8;
  --nav: #182321;
  --line: #e6e9e7;
}
.secondary {
  background: #edf4f1;
  color: #316a58;
}
.secondary:hover {
  background: #e0eee7;
}
.badge.completed {
  background: #e6f5ed;
  color: #328c60;
}
.sidebar {
  height: 100dvh;
  overflow: hidden;
  gap: 0;
}
.sidebar .brand {
  padding: 0 5px;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 36px;
  min-width: 0;
}
.business-brand-name {
  font-size: 19px;
  letter-spacing: -0.3px;
  line-height: 1.35;
  font-weight: 650;
  overflow-wrap: anywhere;
  min-width: 0;
  display: block;
  max-height: 110px;
  overflow-y: auto;
}
.business-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  background: white;
  padding: 3px;
}
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  align-content: start;
}
.sidebar-note {
  display: none;
}
.sidebar .profile {
  flex-shrink: 0;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
}
.profile form {
  grid-column: 1/-1;
  width: 100%;
  margin: 12px 0 0;
}
.profile button {
  width: 100%;
  min-height: 40px;
  font-size: 12px;
  border: 1px solid #3a4843;
  border-radius: 8px;
  background: #22332c;
  color: white;
}
.head-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-logout button {
  min-height: 36px;
  font-size: 11px;
  padding: 8px 13px;
}
.pos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 22px;
  gap: 20px;
  flex-wrap: wrap;
}
.pos-restaurant-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  min-width: 0;
  max-width: 45%;
}
.pos-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pos-top-actions button {
  padding: 9px 14px;
  min-height: 38px;
  font-size: 11px;
}
.pos-cashier-name {
  font-size: 11px;
  color: var(--muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus-mode > .sidebar {
  display: none !important;
}
.focus-mode > .main {
  margin-left: 0;
  padding: 26px 30px;
}
.focus-mode .page-head {
  display: none;
}
.pos-layout {
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 390px;
}
.catalog-title h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.catalog-title p {
  font-size: 13px;
}
.count-pill {
  background: #eef4f0;
  color: #477261;
}
.catalog-toolbar {
  margin-bottom: 17px;
  flex-direction: row;
}
.catalog-toolbar .search-box {
  padding: 5px 16px;
  background: white;
  border: 1px solid #d7deda;
}
.search-box input {
  font-size: 13px;
}
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.category-tabs button {
  white-space: nowrap;
  background: #f4f6f4;
  border: 1px solid #e5e9e5;
  color: #5b6760;
  min-height: 42px;
  padding: 10px 19px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 550;
}
.category-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product {
  border-radius: 12px;
  min-height: 235px;
  box-shadow: none;
}
.product:hover {
  border-color: #469b80;
  box-shadow: 0 4px 15px #14633d0e;
}
.product-art {
  height: 160px;
  margin: 0;
  border-radius: 0;
  background: #eef2ec;
}
.product-art:before,
.product-art:after {
  display: none;
}
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-photo {
  position: absolute;
  inset: 0;
  display: block;
  background-image: url("../img/menu-photos.png");
  background-size: 400% 200%;
  background-repeat: no-repeat;
}
.photo-0 {
  background-position: 0 0;
}
.photo-1 {
  background-position: 33.333333% 0;
}
.photo-2 {
  background-position: 66.666667% 0;
}
.photo-3 {
  background-position: 100% 0;
}
.photo-4 {
  background-position: 0 100%;
}
.photo-5 {
  background-position: 33.333333% 100%;
}
.photo-6 {
  background-position: 66.666667% 100%;
}
.photo-7 {
  background-position: 100% 100%;
}
.product-initial {
  font-size: 36px;
  color: #8a9e8e;
  display: grid;
  place-items: center;
  height: 100%;
}
.product-info {
  padding: 12px 14px 15px;
  gap: 7px;
}
.product-info small {
  display: none;
}
.product-info strong {
  font-size: 13px;
}
.price {
  color: #087b61;
  font-size: 16px;
}
.add-mark {
  bottom: auto;
  top: auto;
  right: 9px;
  width: 29px;
  height: 29px;
  background: #087b61;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 1px 5px #0002;
  bottom: 8px;
}
.cart-panel {
  border-radius: 13px;
  box-shadow: none;
}
.cart-avatar {
  position: relative;
  overflow: hidden;
  width: 43px;
  height: 43px;
  border-radius: 8px;
  background: #eef2ec;
}
.cart-avatar .product-initial {
  font-size: 15px;
}
.order-header {
  padding-top: 23px;
}
.order-header h2 {
  font-size: 25px;
}
.order-header h2 span {
  background: #edf5f0;
  color: #42856c;
}
.cart-item strong {
  font-size: 13px;
}
.cart-item small {
  font-size: 11px;
}
.qty-controls {
  padding-left: 53px;
}
.qty-controls button {
  background: #f4f7f4;
  color: #547361;
}
.adjustments {
  background: #f8faf8;
  border-color: #eaf0eb;
}
.toggle-label {
  font-size: 12px;
}
.toggle-label small {
  color: #83958b;
}
.payment-options input:checked + span {
  background: #ecf7f0;
  color: var(--accent);
  border-color: #439980;
}
.checkout {
  box-shadow: none;
  background: #087b61;
  font-size: 15px;
  font-weight: 700;
}
.receipt-symbol {
  color: #111;
}
.settings-panel .image-preview,
.image-preview {
  max-width: 140px;
  max-height: 120px;
  object-fit: contain;
  display: block;
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.category-manage-link {
  display: block;
  font-size: 11px;
  margin: -6px 0 20px;
}
.lock-brand {
  font-size: 20px;
}
.lock-brand .business-brand-name {
  font-size: 20px;
}
.lock-brand > span:last-child {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}
.lock-avatar {
  background: #e7f1eb;
  color: #47846d;
}
.password-pad {
  padding: 18px 12px;
  border: 1px solid #dde5de;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  min-height: 62px;
  color: #597363;
  cursor: text;
  overflow-wrap: anywhere;
}
.password-pad:focus {
  outline: 3px solid #b9dcc9;
}
.pin-help {
  font-size: 10px;
  color: #8c9e93;
  text-align: center;
  margin: 9px 0;
}
.pin-keypad button {
  background: #edf3ee;
  color: #537460;
}
.pin-keypad button:hover {
  background: #deece2;
}
.lock-footer {
  color: #89a090;
}
.profile strong {
  max-height: 3em;
  overflow-y: auto;
}
.sidebar nav a.selected {
  box-shadow: none;
}
@media (min-width: 1600px) {
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 440px;
  }
  .product-art {
    height: 205px;
  }
}
@media (max-width: 1250px) {
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 335px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-art {
    height: 150px;
  }
  .focus-mode .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .focus-mode .product-grid,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-art {
    height: 130px;
  }
  .pos-cashier-name {
    display: none;
  }
  .sidebar {
    height: auto;
    overflow: visible;
  }
  .sidebar .brand {
    margin-bottom: 0;
    max-width: 80%;
  }
  .sidebar .business-brand-name {
    font-size: 18px;
  }
  .sidebar .profile {
    display: none;
  }
  .sidebar.open .profile {
    display: grid;
  }
  .sidebar.open nav {
    max-height: 45vh;
  }
  .sidebar.open nav a {
    padding: 12px;
  }
  .brand .business-logo {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 700px) {
  .focus-mode > .main {
    padding: 18px 16px 92px;
  }
  .pos-topbar {
    gap: 14px;
    align-items: start;
    padding-bottom: 20px;
  }
  .pos-restaurant-brand {
    max-width: 100%;
    flex: 1;
  }
  .pos-restaurant-brand .business-brand-name {
    font-size: 17px;
    max-height: 70px;
  }
  .pos-top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 7px;
  }
  .pos-top-actions button {
    font-size: 11px;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .focus-mode .product-grid,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-art {
    height: 120px;
  }
  .product {
    min-height: 190px;
  }
  .product-info {
    padding: 10px;
  }
  .price {
    font-size: 14px;
  }
  .category-tabs button {
    padding: 10px 15px;
    font-size: 11px;
  }
  .catalog-title h2 {
    font-size: 24px;
  }
  .catalog-title p {
    font-size: 11px;
  }
  .business-logo {
    width: 38px;
    height: 38px;
  }
  .qty-controls button {
    min-height: 40px;
    width: 40px;
  }
  .qty-controls input {
    min-height: 40px;
  }
  .header-logout {
    display: block;
  }
  .head-right {
    gap: 0;
  }
  .head-status {
    display: none;
  }
  .main .page-head {
    gap: 8px;
  }
  .profile form {
    display: block;
  }
  .order-header h2 {
    font-size: 23px;
  }
}
@media (max-width: 460px) {
  .focus-mode .product-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-art {
    height: 150px;
  }
  .product-info strong {
    font-size: 12px;
  }
  .business-brand-name {
    font-size: 16px;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .profile strong {
    font-size: 11px;
  }
}
@media print {
  .pos-topbar,
  .header-logout {
    display: none !important;
  }
}
/* Compact workspace */
.main {
  padding: 14px 22px;
}
.page-head {
  margin: 0 0 13px;
  min-height: 34px;
  gap: 12px;
}
.page-head h1 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0;
}
.page-head .header-logout button {
  min-height: 30px;
  padding: 6px 11px;
  font-size: 10px;
}
.sidebar {
  padding: 20px 14px 15px;
}
.sidebar .brand {
  margin-bottom: 19px;
  gap: 9px;
}
.sidebar .business-brand-name {
  font-size: 16px;
  max-height: 72px;
}
.sidebar .brand-icon,
.sidebar .business-logo {
  width: 37px;
  height: 37px;
}
.sidebar nav {
  gap: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar nav::-webkit-scrollbar,
.business-brand-name::-webkit-scrollbar,
.profile strong::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.business-brand-name,
.profile strong {
  scrollbar-width: none;
}
.sidebar nav a {
  padding: 9px 12px;
  font-size: 12px;
  gap: 10px;
  min-height: 37px;
}
.sidebar nav svg {
  width: 17px;
  height: 17px;
}
.sidebar .profile {
  margin-top: 14px;
  padding-top: 13px;
  gap: 7px;
}
.profile strong {
  font-size: 10px;
}
.profile small {
  font-size: 8px;
}
.profile form {
  margin-top: 9px;
}
.profile button {
  min-height: 33px;
  font-size: 11px;
}
.panel {
  padding: 18px;
  margin-bottom: 18px;
}
.panel h2 {
  font-size: 16px;
}
.filters {
  padding: 13px;
  gap: 10px;
  margin-bottom: 16px;
}
.filters input,
.filters select {
  min-height: 38px;
  padding: 9px 10px;
}
.filters button {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 12px;
}
.metrics {
  gap: 13px;
  margin-bottom: 18px;
}
.metric {
  padding: 18px;
}
.metric:before {
  margin-bottom: 10px;
}
.metric strong {
  font-size: 23px;
}
.focus-mode > .main {
  padding: 15px 22px;
}
.pos-topbar {
  padding-bottom: 13px;
  gap: 12px;
}
.pos-topbar .business-brand-name {
  font-size: 16px;
}
.pos-topbar .business-logo,
.pos-topbar .brand-icon {
  width: 34px;
  height: 34px;
}
.pos-top-actions button {
  min-height: 32px;
  font-size: 10px;
  padding: 7px 11px;
}
.catalog-title {
  margin-bottom: 15px;
}
.catalog-title h2 {
  font-size: 20px;
}
.catalog-toolbar {
  margin-bottom: 13px;
}
.order-header {
  padding-top: 17px;
}
.order-header h2 {
  font-size: 22px;
  margin-top: 0;
}
.order-cashier {
  padding-bottom: 12px;
}
.category-tabs {
  margin-bottom: 12px;
}
.category-tabs button {
  min-height: 36px;
  font-size: 11px;
  padding: 8px 16px;
}
#discount-field {
  margin: 0;
  font-size: 11px;
}
.table-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
}
.page-size-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.page-size-form label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 11px;
  font-weight: 400;
}
.page-size-form select {
  width: 85px;
  min-height: 32px;
  margin: 0;
  padding: 6px 8px;
  font-size: 11px;
}
.page-size-form button,
.page-links .button {
  min-height: 32px;
  font-size: 11px;
  padding: 7px 11px;
}
.page-links {
  display: flex;
  gap: 7px;
}
.status-history {
  margin-top: 20px;
}
.status-history td:last-child {
  max-width: 400px;
}
.invoice-controls h2 {
  font-size: 18px;
}
.invoice-total {
  padding: 18px 0;
}
.restored {
  background: #e8f5eb;
  color: #39844e;
}
@media (max-width: 950px) {
  .sidebar {
    padding: 12px 17px;
  }
  .sidebar .brand {
    margin-bottom: 0;
  }
  .mobile-toggle {
    top: 13px;
    right: 17px;
    min-height: 30px;
    min-width: 30px;
  }
  .sidebar.open nav {
    margin-top: 14px;
    max-height: 45vh;
  }
  .main {
    padding: 14px 17px;
  }
  .sidebar .profile {
    display: none;
  }
  .sidebar.open .profile {
    display: grid;
  }
  .page-head h1 {
    font-size: 17px;
  }
  .focus-mode > .main {
    padding: 14px 17px;
  }
}
@media (max-width: 700px) {
  .main {
    padding: 12px 14px;
  }
  .page-head {
    margin-bottom: 11px;
    min-height: 30px;
  }
  .page-head h1 {
    font-size: 16px;
  }
  .focus-mode > .main {
    padding: 12px 14px 85px;
  }
  .panel {
    padding: 15px;
  }
  .page-size-form {
    margin-left: 0;
  }
  .table-pagination {
    gap: 9px;
  }
  .page-links {
    margin-left: auto;
  }
  .catalog-title h2 {
    font-size: 19px;
  }
  .pos-topbar {
    padding-bottom: 12px;
  }
  .pos-top-actions {
    margin-top: 0;
  }
  .filters {
    padding: 11px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 21px;
  }
}
@media print {
  .table-pagination,
  .status-history {
    display: none !important;
  }
}
/* Compact POS and full photo visibility within cards. */
.pos-layout .product-grid {
  gap: 10px;
}
.product {
  min-height: 185px;
}
.product-art {
  height: 120px;
  overflow: hidden;
}
.product-photo {
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
.product-info {
  padding: 10px;
}
.product-info strong {
  font-size: 13px;
}
.product-info .price {
  font-size: 13px;
}
.order-header {
  padding-top: 16px;
  padding-bottom: 14px;
}
.order-header h2 {
  font-size: 21px;
}
.cart-item {
  padding-top: 10px;
  padding-bottom: 10px;
}
.cart-avatar {
  width: 36px;
  height: 36px;
}
.catalog-title h2 {
  font-size: 21px;
}
.category-tabs button {
  padding: 7px 12px;
  font-size: 12px;
}
@media (max-width: 700px) {
  .product {
    min-height: 170px;
  }
  .product-art {
    height: 105px;
  }
  .product-info {
    padding: 8px;
  }
  .order-header h2 {
    font-size: 19px;
  }
}
/* Fill the POS photo area and cart thumbnail without empty edges. */
.product-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-art > .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
}
.cart-avatar .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
}

/* Compact report totals; retain the existing card design and theme. */
.metrics.report-metrics {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.report-metrics .metric { min-width: 0; padding: 12px 10px; }
.report-metrics .metric:before { width: 24px; margin-bottom: 7px; }
.report-metrics .metric small { font-size: 10px; margin-bottom: 5px; white-space: nowrap; }
.report-metrics .metric strong { display: block; font-size: 17px; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 800px) {
  .metrics.report-metrics { grid-template-columns: repeat(7, 135px); overflow-x: auto; }
}

/* Small Users table icons only. */
.users-compact .table-wrap .user-row-btn {
  display:inline-flex!important;align-items:center;justify-content:center;
  width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
  max-width:20px!important;max-height:20px!important;padding:0!important;margin:0!important;
  font-size:11px!important;line-height:1!important;border-radius:4px!important;box-sizing:border-box;
}
.users-compact .table-wrap .user-row-btn svg { width:11px!important;height:11px!important;min-width:0!important;flex:none!important; }
.users-compact .table-wrap .user-actions { display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:3px!important; }
.users-compact .table-wrap .user-actions form,.users-compact .table-wrap .user-status-form { display:inline-flex!important;width:auto!important;margin:0!important;padding:0!important; }

/* Products table icons: same dimensions as Users. */
.products-icons .table-wrap .product-icon {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
  max-width:20px!important;max-height:20px!important;padding:0!important;margin:0!important;
  font-size:11px!important;line-height:1!important;border-radius:4px!important;box-sizing:border-box!important;
}
.products-icons .table-wrap .product-icon svg { width:11px!important;height:11px!important;min-width:0!important;min-height:0!important;flex:none!important; }
.products-icons .table-wrap .product-actions { display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:3px!important;white-space:nowrap!important; }
.products-icons .table-wrap .product-actions form,.products-icons .table-wrap .product-status-form { display:inline-flex!important;width:auto!important;margin:0!important;padding:0!important; }
.products-icons .table-wrap .product-active { color:#16803c!important;background:#e5f5eb!important;border:1px solid #b9dfc6!important; }
.products-icons .table-wrap .product-inactive { color:#dc2626!important;background:#fdecec!important;border:1px solid #efbdc1!important; }
