:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #18343c;
  background: #f4f6f5;
  font-synthesis: none;
  --ink: #132d37;
  --muted: #667a80;
  --green: #147561;
  --line: #dce5e2;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--ink);
  color: #fff;
  padding: 30px 18px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  padding: 0 10px 28px;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand span {
  color: #7de4cc;
}
.sidebar small {
  color: #9eb4b9;
  display: block;
  padding: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav {
  background: none;
  border: 0;
  color: #bad0d4;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
}
.nav.active,
.nav:hover {
  background: #24454e;
  color: #fff;
}
.nav.active {
  box-shadow: inset 3px 0 #7de4cc;
}
.nav .symbol {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.sidebottom {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid #365058;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.sidebottom button {
  background: none;
  border: 0;
  text-align: left;
  color: #a8c9c5;
  padding: 0;
}
.main {
  min-width: 0;
}
.topbar {
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}
.topbar .business {
  margin-right: auto;
  font-weight: 650;
  font-size: 14px;
}
.selectors {
  display: flex;
  gap: 8px;
}
.topbar select {
  max-width: 180px;
  font-size: 13px;
  padding: 9px 28px 9px 11px;
}
.status {
  font-size: 11px;
  color: var(--green);
}
.status.offline {
  color: #a63b2c;
}
.content {
  padding: 30px 32px 70px;
  max-width: 1600px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 9px;
}
.badge {
  display: inline-flex;
  border-radius: 30px;
  background: #e4f3ed;
  color: #12644f;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge.warn {
  background: #fff0d9;
  color: #986323;
}
.badge.dim {
  background: #eff2f1;
  color: #637471;
}
.btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:hover {
  background: #edf3f0;
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.primary:hover {
  background: #0d5d4c;
}
.btn.danger {
  color: #a63831;
  background: #fff5f3;
  border-color: #f1d7d2;
}
.btn.small {
  padding: 7px 10px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-body {
  padding: 22px;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: 1.3fr 1fr;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.metric {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: -1px;
  margin: 12px 0 5px;
  font-weight: 650;
}
.metric small {
  font-size: 11px;
}
.metric.highlight {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.metric.highlight span,
.metric.highlight small {
  color: #b7d1d1;
}
.metric.highlight strong {
  color: #8ce6cd;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
}
.toolbar label {
  font-size: 12px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
}
.field input,
.field select,
.field textarea,
input,
select,
textarea {
  border: 1px solid #ccd9d5;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  min-width: 0;
}
.field input:focus,
.field textarea:focus,
input:focus {
  outline: 2px solid #88cdb9;
  border-color: #88cdb9;
}
.field textarea {
  min-height: 94px;
  resize: vertical;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.formgrid .wide {
  grid-column: 1/-1;
}
.formstack {
  display: grid;
  gap: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f8faf9;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 650;
}
td,
th {
  padding: 14px 20px;
  border-bottom: 1px solid #edf0ee;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td .sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.tablewrap {
  overflow: auto;
}
.right {
  text-align: right;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 12px;
  justify-items: center;
  font-size: 14px;
}
.empty strong {
  font-size: 17px;
  color: var(--ink);
}
.pos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 20px;
  align-items: start;
}
.productgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product {
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  display: grid;
  gap: 10px;
  min-height: 145px;
}
.product:hover {
  border-color: #74b7a3;
  box-shadow: 0 4px 16px #183b2e0a;
}
.product strong {
  font-size: 14px;
}
.product .price {
  font-size: 19px;
  font-weight: 650;
  color: var(--green);
}
.product .category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.cart {
  position: sticky;
  top: 95px;
}
.cart-items {
  max-height: 45dvh;
  overflow: auto;
}
.cart-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.cart-row header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.cart-row footer {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-row input {
  width: 95px;
  padding: 7px;
}
.cart-row footer strong {
  margin-left: auto;
  font-size: 14px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 22px;
  font-size: 22px;
  font-weight: 700;
}
.cart .panel-body {
  padding-top: 0;
}
.note {
  padding: 14px 17px;
  border-radius: 9px;
  background: #eef5f1;
  color: #3e6659;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.note.warn {
  background: #fff2df;
  color: #8c642c;
}
.note.error {
  background: #fff0ed;
  color: #9c392e;
}
.big-num {
  font-size: 38px;
  letter-spacing: -1.7px;
  font-weight: 700;
  margin: 15px 0;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.list-row:last-child {
  border: 0;
}
.list-row span {
  color: var(--muted);
}
.bars {
  display: grid;
  gap: 18px;
}
.bar-title {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.bar-track {
  height: 9px;
  background: #eef3f0;
  border-radius: 10px;
  overflow: hidden;
}
.bar-track progress {
  width: 100%;
  height: 9px;
  display: block;
  border: 0;
  accent-color: var(--green);
}
progress::-webkit-progress-bar {
  background: #eef3f0;
}
progress::-webkit-progress-value {
  background: #3c9b80;
  border-radius: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  width: min(580px, calc(100% - 24px));
  max-height: 92dvh;
  color: var(--ink);
  box-shadow: 0 24px 100px #0c262a44;
}
dialog::backdrop {
  background: #102a3488;
  backdrop-filter: blur(3px);
}
dialog .modal-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
dialog .modal-body {
  padding: 24px;
}
dialog .modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
dialog button.close {
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  z-index: 20;
  max-width: 90vw;
  font-size: 13px;
  box-shadow: 0 10px 30px #0002;
}
#notice:empty {
  display: none;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-intro {
  background: var(--ink);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-intro .brand {
  padding: 0;
}
.auth-intro h1 {
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.1;
  max-width: 540px;
  letter-spacing: -2.5px;
}
.auth-intro h1 span {
  color: #88e4c9;
}
.auth-intro p {
  color: #b5cccf;
  margin-top: 25px;
  max-width: 420px;
  line-height: 1.8;
}
.auth-intro .foot {
  font-size: 12px;
  color: #99b6bc;
}
.auth-form {
  padding: 55px;
  align-self: center;
  width: 100%;
  max-width: 500px;
  margin: auto;
}
.auth-form h2 {
  font-size: 27px;
  margin-bottom: 10px;
}
.auth-form .formstack {
  margin-top: 28px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.assistant-answer {
  padding: 22px;
  background: #eff5f2;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.integration {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.integration p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0;
}
.spacer {
  margin-top: 20px;
}
.receipt {
  font-family: ui-monospace, monospace;
  max-width: 300px;
  margin: auto;
  font-size: 12px;
}
.receipt h2 {
  font-size: 17px;
  text-align: center;
}
.receipt p {
  margin: 8px 0;
  text-align: center;
}
.receipt table {
  font-size: 11px;
}
.receipt td {
  padding: 8px 0;
}
.receipt .rule {
  border-top: 1px dashed #999;
  margin: 12px 0;
}
.receipt .total {
  font-weight: bold;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
}
#print {
  display: none;
}
.check {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.check input {
  margin-top: 3px;
}
.connection-banner {
  margin-bottom: 18px;
}
.search-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .content {
    padding: 24px 20px;
  }
  .topbar {
    padding: 16px 20px;
  }
  .pos {
    grid-template-columns: 1fr 320px;
  }
  .productgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric strong {
    font-size: 26px;
  }
  .status {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 14px 15px;
  }
  .sidebar .brand {
    padding: 0;
    font-size: 23px;
  }
  .sidebar .brand img {
    width: 30px;
    height: 30px;
  }
  .sidebar small,
  .sidebottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 14px;
    gap: 4px;
  }
  .nav {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 12px;
  }
  .nav .symbol {
    display: none;
  }
  .nav.active {
    box-shadow: inset 0 -2px #7de4cc;
  }
  .topbar {
    position: relative;
    flex-wrap: wrap;
    padding: 14px 18px;
    gap: 10px;
  }
  .topbar .business {
    flex-basis: 100%;
    font-size: 12px;
  }
  .selectors {
    width: 100%;
  }
  .topbar select {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  .content {
    padding: 24px 16px 50px;
  }
  .heading {
    align-items: start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 26px;
  }
  .heading p {
    font-size: 13px;
  }
  .cards {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 23px;
  }
  .grid.two,
  .pos,
  .help-grid {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .cart-items {
    max-height: none;
  }
  .productgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product {
    min-height: 130px;
    padding: 15px;
  }
  .auth {
    display: block;
  }
  .auth-intro {
    padding: 28px;
    gap: 35px;
  }
  .auth-intro h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .auth-intro p,
  .auth-intro .foot {
    display: none;
  }
  .auth-form {
    padding: 32px 25px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .panel-head,
  .panel-body {
    padding: 18px;
  }
  td,
  th {
    padding: 12px 14px;
  }
  .toolbar .btn {
    flex-grow: 1;
  }
  .toolbar label {
    width: calc(50% - 6px);
  }
  .toolbar input[type="date"] {
    width: 100%;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > #print {
    display: block !important;
  }
  .receipt {
    width: 72mm;
    max-width: 72mm;
    color: black;
  }
  .receipt * {
    color: black !important;
  }
  @page {
    size: 80mm auto;
    margin: 4mm;
  }
}
