:root {
  --tone-203b35: #203b35;
  --tone-f6f8f7: #f6f8f7;
  --tone-a2cdbd: #a2cdbd;
  --tone-7c8b86: #7c8b86;
  --tone-dce5df: #dce5df;
  --tone-f0f5f2: #f0f5f2;
  --tone-176b56: #176b56;
  --tone-176b5612: #176b5612;
  --tone-105640: #105640;
  --tone-24463b: #24463b;
  --tone-eaf1ed: #eaf1ed;
  --tone-edf2ef: #edf2ef;
  --tone-65786e: #65786e;
  --tone-e5f3eb: #e5f3eb;
  --tone-287351: #287351;
  --tone-e4eae6: #e4eae6;
  --tone-409c77: #409c77;
  --tone-dce8df: #dce8df;
  --tone-739080: #739080;
  --tone-f7f9f7: #f7f9f7;
  --tone-e5eae5: #e5eae5;
  --tone-e4ede3: #e4ede3;
  --tone-5a7d5c: #5a7d5c;
  --tone-a0aba5: #a0aba5;
  --tone-6a7b72: #6a7b72;
  --tone-eaf4ed: #eaf4ed;
  --tone-f1f6f2: #f1f6f2;
  --tone-dceade: #dceade;
  --tone-e4ebe6: #e4ebe6;
  --tone-65796b: #65796b;
  --tone-3c6b51: #3c6b51;
  --tone-8b9991: #8b9991;
  --tone-344f42: #344f42;
  --tone-e8e9dd: #e8e9dd;
  --tone-7e9c8d: #7e9c8d;
  --tone-829087: #829087;
  --tone-6d7b73: #6d7b73;
  --tone-dde5df: #dde5df;
  --tone-eaf0e4: #eaf0e4;
  --tone-dee7d7: #dee7d7;
  --tone-71816c: #71816c;
  --tone-7f9c73: #7f9c73;
  --tone-e1e8e2: #e1e8e2;
  --tone-819088: #819088;
  --tone-87a08f: #87a08f;
  --tone-8b9890: #8b9890;
  --tone-498664: #498664;
  --tone-eef1ed: #eef1ed;
  --tone-8b988f: #8b988f;
  --tone-e1e8e1: #e1e8e1;
  --tone-eef2ed: #eef2ed;
  --tone-dbe9d7: #dbe9d7;
  --tone-267556: #267556;
  --tone-8e9a91: #8e9a91;
  --tone-598067: #598067;
  --tone-f0f4eb: #f0f4eb;
  --tone-71926a: #71926a;
  --tone-e7ece5: #e7ece5;
  --tone-607b62: #607b62;
  --tone-f2f7ed: #f2f7ed;
  --tone-8a9b90: #8a9b90;
  --tone-a0b3a5: #a0b3a5;
  --tone-536e5c: #536e5c;
  --tone-8c9a90: #8c9a90;
  --tone-fafbf9: #fafbf9;
  --tone-e9ede7: #e9ede7;
  --tone-edf1e9: #edf1e9;
  --tone-5e7465: #5e7465;
  --tone-34513e: #34513e;
  --tone-fcfdfa: #fcfdfa;
  --tone-e8ede5: #e8ede5;
  --tone-9aac9c: #9aac9c;
  --tone-dce4dc: #dce4dc;
  --tone-3b5344: #3b5344;
  --tone-a5afa6: #a5afa6;
  --tone-6ca487: #6ca487;
  --tone-e7f3e8: #e7f3e8;
  --tone-63796a: #63796a;
  --tone-6c7f70: #6c7f70;
  --tone-89998c: #89998c;
  --tone-dce9d8: #dce9d8;
  --tone-698060: #698060;
  --tone-e0e8df: #e0e8df;
  --tone-879587: #879587;
  --tone-79a482: #79a482;
  --tone-8c9c8d: #8c9c8d;
  --tone-142b2366: #142b2366;
  --tone-12291d33: #12291d33;
  --tone-244f3e: #244f3e;
  --tone-16362626: #16362626;
  --tone-1c4939: #1c4939;
  --tone-e7f4dd: #e7f4dd;
  --tone-bbd997: #bbd997;
  --tone-aec5ae: #aec5ae;
  --tone-a1bda3: #a1bda3;
  --tone-55755a: #55755a;
  --tone-c0d6b9: #c0d6b9;
  --tone-8b998e: #8b998e;
  --tone-8a9a8f: #8a9a8f;
  --tone-e0e7dc: #e0e7dc;
  --tone-7d8e7d: #7d8e7d;
  --tone-264f3c: #264f3c;
  --tone-e0e7dd: #e0e7dd;
  --tone-91b49a: #91b49a;
  --tone-406c4710: #406c4710;
  --tone-f0f3e9: #f0f3e9;
  --tone-3f583314: #3f583314;
  --tone-7c8d72: #7c8d72;
  --tone-405a46: #405a46;
  --tone-eff4e9: #eff4e9;
  --tone-658b55: #658b55;
  --tone-dfe6dd: #dfe6dd;
  --tone-e4eae0: #e4eae0;
  --tone-f8faf5: #f8faf5;
  --tone-f3f5eb: #f3f5eb;
  --tone-e3eadf: #e3eadf;
  --tone-fcfdfb: #fcfdfb;
  --tone-e7ece2: #e7ece2;
  --tone-80917f: #80917f;
  --tone-2c4934: #2c4934;
  --tone-dde6d6: #dde6d6;
  --tone-4b6d4d: #4b6d4d;
  --tone-8b9a8a: #8b9a8a;
  --tone-e9ede4: #e9ede4;
  --tone-27332b: #27332b;
  --tone-253e2710: #253e2710;
  --tone-aeb8ac: #aeb8ac;
  --tone-26332b: #26332b;
  --tone-8a9984: #8a9984;
  --tone-e2e9df: #e2e9df;
  --tone-eef3e8: #eef3e8;
  --tone-f2f7ec: #f2f7ec;
  --tone-edf5e8: #edf5e8;
  --tone-dce8d4: #dce8d4;
  --tone-7b8f72: #7b8f72;
  --tone-3d8755: #3d8755;
  --tone-243d2433: #243d2433;
  --tone-d3dfc6: #d3dfc6;
  --tone-c0cfb0: #c0cfb0;
  --tone-6f8963: #6f8963;
  --tone-f7f9ee: #f7f9ee;
  --tone-b9c9aa: #b9c9aa;
  --tone-658563: #658563;
  --tone-dceacb: #dceacb;
  --tone-d4e4b8: #d4e4b8;
  --tone-9bb28a: #9bb28a;
}
@font-face {
  font-family: Local;
  src: local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Local, Inter, system-ui, sans-serif;
  color: var(--tone-203b35);
  background: var(--tone-f6f8f7);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--tone-a2cdbd);
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--tone-7c8b86);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 600;
  border: 1px solid var(--tone-dce5df);
  background: #fff;
  white-space: nowrap;
  transition: 0.15s;
}
.btn:hover {
  background: var(--tone-f0f5f2);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--tone-176b56);
  border-color: var(--tone-176b56);
  color: white;
  box-shadow: 0 3px 6px var(--tone-176b5612);
}
.btn.primary:hover {
  background: var(--tone-105640);
}
.btn.dark {
  background: var(--tone-24463b);
  color: white;
  border-color: var(--tone-24463b);
}
.btn.danger {
  color: #b34d44;
  background: #fff6f4;
  border-color: #f0d4d0;
}
.btn.small {
  padding: 7px 11px;
  font-size: 12px;
}
.btn.link {
  border: 0;
  color: var(--tone-176b56);
  background: transparent;
  padding: 5px;
}
.iconbtn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}
.iconbtn:hover {
  background: var(--tone-eaf1ed);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.spacer {
  flex: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--tone-edf2ef);
  color: var(--tone-65786e);
  white-space: nowrap;
}
.badge.green {
  background: var(--tone-e5f3eb);
  color: var(--tone-287351);
}
.badge.orange {
  background: #fff2dc;
  color: #ac7620;
}
.badge.red {
  background: #fbe8e5;
  color: #b35346;
}
.badge.blue {
  background: #e9f0fc;
  color: #56749d;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--tone-e4eae6);
  display: flex;
  flex-direction: column;
  padding: 27px 17px 18px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  padding: 0 13px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand em {
  font-style: normal;
  color: var(--tone-409c77);
}
.brand .edition {
  font-size: 9px;
  letter-spacing: 1px;
  margin-left: auto;
  border: 1px solid var(--tone-dce8df);
  border-radius: 4px;
  color: var(--tone-739080);
  padding: 3px 5px;
}
.store-picker {
  margin: 30px 0 20px;
  background: var(--tone-f7f9f7);
  border: 1px solid var(--tone-e5eae5);
  border-radius: 9px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tone-e4ede3);
  color: var(--tone-5a7d5c);
  flex-shrink: 0;
}
.store-picker strong {
  font-size: 12px;
  display: block;
  max-width: 124px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-picker small {
  font-size: 10px;
}
.nav-caption {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--tone-a0aba5);
  padding: 16px 13px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--tone-6a7b72);
  margin: 2px 0;
  font-size: 12px;
  font-weight: 550;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-item.active {
  background: var(--tone-eaf4ed);
  color: var(--tone-176b56);
  font-weight: 700;
}
.nav-item:hover {
  background: var(--tone-f1f6f2);
}
.nav-item .nav-number {
  margin-left: auto;
  font-size: 10px;
  background: var(--tone-dceade);
  border-radius: 4px;
  padding: 2px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
}
.local-status {
  border: 1px solid var(--tone-e4ebe6);
  border-radius: 9px;
  padding: 12px;
  font-size: 11px;
  color: var(--tone-65796b);
}
.local-status strong {
  color: var(--tone-3c6b51);
}
.workspace {
  margin-left: 224px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--tone-e4eae6);
  background: #ffffffd9;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--tone-8b9991);
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb strong {
  font-weight: 550;
  color: var(--tone-344f42);
}
.avatar {
  width: 34px;
  height: 34px;
  background: var(--tone-e8e9dd);
  border: 3px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6f7157;
  font-size: 11px;
  font-weight: 700;
}
.profile strong {
  font-size: 11px;
  display: block;
}
.profile small {
  font-size: 10px;
  text-transform: capitalize;
}
.content {
  padding: 30px 34px 40px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--tone-7e9c8d);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.page-heading p {
  color: var(--tone-829087);
  font-size: 12px;
  margin-top: 9px;
}
.date-chip {
  font-size: 11px;
  color: var(--tone-6d7b73);
  border: 1px solid var(--tone-dde5df);
  padding: 9px 12px;
  border-radius: 8px;
  background: white;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 166px;
  background: var(--tone-eaf0e4);
  border: 1px solid var(--tone-dee7d7);
  border-radius: 14px;
  padding: 27px 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
}
.hero h2 {
  font-size: 26px;
  font-weight: 600;
  max-width: 450px;
  letter-spacing: -0.8px;
  line-height: 1.3;
}
.hero p {
  margin: 10px 0 20px;
  font-size: 12px;
  color: var(--tone-71816c);
}
.hero .btn {
  font-size: 12px;
}
.hero-art {
  width: 230px;
  height: 165px;
  position: absolute;
  right: 35px;
  bottom: -6px;
  color: var(--tone-7f9c73);
}
.hero-text {
  position: relative;
  z-index: 1;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  border: 1px solid var(--tone-e1e8e2);
  background: #fff;
  padding: 20px 21px;
  border-radius: 12px;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--tone-819088);
  margin-bottom: 17px;
}
.metric-label .icon {
  color: var(--tone-87a08f);
  width: 19px;
}
.metric-value {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 650;
}
.metric-value small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 4px;
}
.metric-foot {
  font-size: 10px;
  color: var(--tone-8b9890);
  margin-top: 10px;
}
.metric-foot b {
  color: var(--tone-498664);
  font-weight: 600;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 23px;
}
.panel {
  border: 1px solid var(--tone-e1e8e2);
  background: white;
  border-radius: 12px;
  overflow: hidden;
}
.panel-head {
  padding: 21px 23px;
  border-bottom: 1px solid var(--tone-eef1ed);
}
.panel-head p {
  margin-top: 6px;
  font-size: 11px;
  color: var(--tone-8b988f);
}
.panel-body {
  padding: 22px;
}
.chart {
  height: 220px;
  display: flex;
  gap: 18px;
  align-items: flex-end;
  padding: 25px 15px 0;
  border-bottom: 1px dashed var(--tone-e1e8e1);
  background: repeating-linear-gradient(
    to top,
    transparent,
    transparent 49px,
    var(--tone-eef2ed) 50px
  );
}
.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  position: relative;
}
.chart-bar {
  width: min(100%, 44px);
  border-radius: 5px 5px 0 0;
  background: var(--tone-dbe9d7);
  min-height: 3px;
  position: relative;
}
.chart-col:last-child .chart-bar {
  background: var(--tone-267556);
}
.chart-label {
  font-size: 10px;
  color: var(--tone-8e9a91);
  position: absolute;
  bottom: -23px;
}
.chart-val {
  font-size: 9px;
  color: var(--tone-598067);
}
.chart-wrap {
  padding-bottom: 25px;
}
.chart-summary {
  font-size: 26px;
  font-weight: 650;
  margin-bottom: 2px;
}
.chart-summary small {
  font-size: 11px;
  font-weight: 400;
}
.activity {
  padding: 15px 0;
  border-bottom: 1px solid var(--tone-eef1ed);
  display: flex;
  gap: 12px;
  align-items: center;
}
.activity:last-child {
  border: 0;
}
.activity .tile-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--tone-f0f4eb);
  border-radius: 10px;
  color: var(--tone-71926a);
}
.activity strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.activity small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.activity .right {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  font-weight: 650;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.quick {
  padding: 17px 10px;
  border: 1px solid var(--tone-e7ece5);
  border-radius: 9px;
  text-align: center;
  color: var(--tone-607b62);
  font-size: 11px;
}
.quick .icon {
  display: block;
  margin: 0 auto 10px;
}
.quick:hover {
  background: var(--tone-f2f7ed);
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--tone-8a9b90);
}
.empty .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  color: var(--tone-a0b3a5);
}
.empty strong {
  display: block;
  color: var(--tone-536e5c);
  font-size: 14px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 340px;
  margin: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tone-8c9a90);
  background: var(--tone-fafbf9);
  padding: 13px 19px;
  border-bottom: 1px solid var(--tone-e9ede7);
}
td {
  font-size: 12px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--tone-edf1e9);
  color: var(--tone-5e7465);
}
td strong {
  font-weight: 600;
  color: var(--tone-34513e);
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--tone-fcfdfa);
}
.toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tone-e8ede5);
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 390px;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 17px;
  color: var(--tone-9aac9c);
}
.search input {
  padding-left: 39px;
  width: 100%;
}
.toolbar .search {
  max-width: 430px;
}
input,
select,
textarea {
  border: 1px solid var(--tone-dce4dc);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--tone-3b5344);
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--tone-a5afa6);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--tone-6ca487);
  outline: 2px solid var(--tone-e7f3e8);
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tone-63796a);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--tone-6c7f70);
  font-weight: 400;
}
.check input {
  accent-color: var(--tone-176b56);
  width: 16px;
  height: 16px;
}
.help {
  font-size: 11px;
  color: var(--tone-89998c);
  line-height: 1.7;
}
.notice {
  padding: 14px 17px;
  border: 1px solid var(--tone-dce9d8);
  border-radius: 9px;
  background: var(--tone-f2f7ed);
  color: var(--tone-698060);
  font-size: 12px;
  line-height: 1.6;
}
.notice.warn {
  background: #fff8ea;
  border-color: #f0e4c8;
  color: #9c7a32;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--tone-e0e8df);
  margin-bottom: 23px;
  overflow: auto;
}
.tab {
  padding: 13px 17px;
  font-size: 12px;
  color: var(--tone-879587);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--tone-176b56);
  border-bottom-color: var(--tone-176b56);
  font-weight: 650;
}
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.warehouse-card {
  padding: 24px;
}
.warehouse-card .icon {
  width: 28px;
  height: 28px;
  color: var(--tone-79a482);
}
.warehouse-card h2 {
  margin-top: 22px;
}
.warehouse-card p {
  font-size: 12px;
  color: var(--tone-8c9c8d);
  margin: 9px 0 23px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--tone-142b2366);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  width: 560px;
  max-width: 100%;
  max-height: 92vh;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 100px var(--tone-12291d33);
  overflow: auto;
}
.modal.wide {
  width: 900px;
}
.modal-header {
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tone-e7ece5);
}
.modal-content {
  padding: 25px;
}
.modal-footer {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.form-error {
  color: #b45443;
  background: #fff0ec;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 17px;
  font-size: 12px;
  display: none;
}
.form-error:not(:empty) {
  display: block;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 200;
  background: var(--tone-244f3e);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 25px var(--tone-16362626);
  transition: 0.25s;
  font-size: 13px;
  max-width: 90vw;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #9e4d40;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--tone-1c4939);
  color: var(--tone-e7f4dd);
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story .brand {
  padding: 0;
}
.auth-story .brand em {
  color: var(--tone-bbd997);
}
.auth-story h1 {
  font-size: 53px;
  line-height: 1.12;
  letter-spacing: -2px;
  margin-top: auto;
  max-width: 450px;
  font-weight: 550;
}
.auth-story p {
  font-size: 15px;
  color: var(--tone-aec5ae);
  line-height: 1.8;
  margin: 25px 0 40px;
  max-width: 390px;
}
.auth-story .auth-bottom {
  margin-top: auto;
  font-size: 11px;
  color: var(--tone-a1bda3);
  padding-top: 50px;
}
.auth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-tags span {
  padding: 8px 12px;
  border: 1px solid var(--tone-55755a);
  border-radius: 20px;
  font-size: 11px;
  color: var(--tone-c0d6b9);
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 390px;
  max-width: 100%;
}
.auth-form h2 {
  font-size: 28px;
}
.auth-form > p {
  margin: 12px 0 28px;
  color: var(--tone-8b998e);
  font-size: 13px;
  line-height: 1.6;
}
.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-form .btn {
  margin-top: 4px;
}
.auth-form .help {
  margin-top: 25px;
}
.loading {
  text-align: center;
  margin-top: 20vh;
  font-size: 40px;
  font-weight: 800;
}
.loading span {
  color: var(--tone-176b56);
}
.loading p {
  font-size: 13px;
  font-weight: 400;
  margin-top: 16px;
  color: var(--tone-8a9a8f);
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  height: calc(100vh - 178px);
  min-height: 530px;
}
.pos-catalog {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pos-tools {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.pos-tools .search {
  max-width: none;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  flex-shrink: 0;
  padding-bottom: 17px;
}
.category {
  white-space: nowrap;
  border: 1px solid var(--tone-e0e7dc);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 11px;
  background: white;
  color: var(--tone-7d8e7d);
}
.category.active {
  background: var(--tone-264f3c);
  color: white;
  border-color: var(--tone-264f3c);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  align-content: start;
  gap: 15px;
  overflow: auto;
  padding: 2px 3px 15px 0;
}
.product-card {
  border: 1px solid var(--tone-e0e7dd);
  background: white;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--tone-91b49a);
  box-shadow: 0 6px 15px var(--tone-406c4710);
}
.product-visual {
  height: 125px;
  display: grid;
  place-items: center;
  background: var(--tone-f0f3e9);
  position: relative;
}
.product-visual svg {
  height: 94px;
  width: 94px;
  filter: drop-shadow(0 7px 5px var(--tone-3f583314));
}
.product-visual .stock-pill {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 9px;
  background: #ffffffb8;
  border-radius: 4px;
  padding: 4px 5px;
  color: var(--tone-7c8d72);
}
.product-info {
  padding: 13px;
}
.product-info h3 {
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
  font-weight: 600;
  color: var(--tone-405a46);
}
.product-info small {
  font-size: 10px;
}
.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
  margin-top: 13px;
  font-size: 14px;
}
.product-price span {
  font-size: 9px;
  background: var(--tone-eff4e9);
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--tone-658b55);
}
.basket {
  background: white;
  border: 1px solid var(--tone-dfe6dd);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.basket-header {
  padding: 21px;
  border-bottom: 1px solid var(--tone-e8ede5);
}
.basket-header h2 {
  font-size: 17px;
}
.basket-customer {
  padding: 14px 20px;
  border-bottom: 1px dashed var(--tone-e4eae0);
}
.basket-customer select {
  width: 100%;
  font-size: 11px;
  background: var(--tone-f8faf5);
}
.cart-lines {
  flex: 1;
  overflow: auto;
  padding: 0 20px;
}
.cart-line {
  display: flex;
  gap: 11px;
  border-bottom: 1px solid var(--tone-edf1e9);
  padding: 16px 0;
}
.cart-line .cart-pic {
  width: 41px;
  height: 45px;
  background: var(--tone-f3f5eb);
  border-radius: 7px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.cart-pic svg {
  width: 36px;
  height: 36px;
}
.cart-line h3 {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.cart-line small {
  font-size: 10px;
}
.cart-line .quantity {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
}
.quantity button {
  border: 1px solid var(--tone-e3eadf);
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.quantity input {
  width: 49px;
  padding: 3px;
  text-align: center;
  font-size: 10px;
  border: 0;
  background: var(--tone-f8faf5);
}
.line-price {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.basket-bottom {
  padding: 20px;
  background: var(--tone-fcfdfb);
  border-top: 1px solid var(--tone-e7ece2);
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--tone-80917f);
  margin-bottom: 11px;
}
.grand-total {
  font-size: 19px;
  color: var(--tone-2c4934);
  font-weight: 700;
  border-top: 1px dashed var(--tone-dde6d6);
  padding-top: 15px;
  margin-top: 14px;
  margin-bottom: 18px;
}
.basket-bottom .btn.primary {
  width: 100%;
  padding: 14px;
  justify-content: space-between;
}
.basket-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.basket-actions .btn {
  flex: 1;
  font-size: 10px;
}
.discount-input {
  border: 0;
  background: transparent;
  text-align: right;
  width: 60px;
  padding: 0;
  color: var(--tone-4b6d4d);
  font-size: 11px;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 25px;
}
.settings-section {
  padding: 25px;
}
.settings-section h2 {
  margin-bottom: 8px;
}
.settings-section > p {
  margin-bottom: 25px;
  font-size: 12px;
  color: var(--tone-8b9a8a);
}
.receipt-stage {
  background: var(--tone-e9ede4);
  border-radius: 12px;
  padding: 35px 25px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.receipt {
  background: white;
  width: 302px;
  max-width: 100%;
  padding: 26px 22px;
  color: var(--tone-27332b);
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.6;
  box-shadow: 0 7px 18px var(--tone-253e2710);
  position: relative;
  overflow-wrap: anywhere;
}
.receipt.narrow {
  width: 220px;
  padding: 18px 13px;
}
.receipt:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 10px;
  background:
    linear-gradient(135deg, white 25%, transparent 25%) -5px 0,
    linear-gradient(225deg, white 25%, transparent 25%) -5px 0;
  background-size: 10px 10px;
}
.receipt-head {
  text-align: center;
  margin-bottom: 17px;
}
.receipt-head h2 {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}
.receipt-logo {
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}
.receipt-rule {
  border-top: 1px dashed var(--tone-aeb8ac);
  margin: 13px 0;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0;
}
.receipt-line > span:first-child {
  flex: 1;
}
.receipt-line strong {
  white-space: nowrap;
}
.receipt-total {
  font-size: 14px;
  font-weight: bold;
}
.receipt-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 10px;
}
.receipt-code {
  margin: 20px auto 4px;
  width: 160px;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--tone-26332b) 0,
    var(--tone-26332b) 2px,
    transparent 2px,
    transparent 4px,
    var(--tone-26332b) 4px,
    var(--tone-26332b) 5px,
    transparent 5px,
    transparent 8px
  );
  opacity: 0.8;
}
.receipt-preview-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--tone-8a9984);
}
.report-filters {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-bottom: 23px;
}
.report-filters input {
  font-size: 12px;
}
.mobile-toggle {
  display: none;
}
.purchase-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.purchase-line {
  padding: 14px;
  border: 1px solid var(--tone-e2e9df);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.purchase-line label.field {
  font-size: 10px;
}
.purchase-line input,
.purchase-line select {
  font-size: 11px;
  padding: 8px;
}
.logo-upload {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--tone-eef3e8);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-upload img {
  max-width: 100%;
  max-height: 100%;
}
.error-page {
  padding: 60px;
  text-align: center;
}
.payment-total {
  text-align: center;
  background: var(--tone-f2f7ec);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 22px;
}
.payment-total strong {
  display: block;
  font-size: 36px;
  margin-top: 8px;
  font-weight: 650;
  letter-spacing: -1px;
}
.pay-shortcuts {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.pay-shortcuts .btn {
  flex: 1;
}
.session-banner {
  padding: 22px;
  background: var(--tone-edf5e8);
  border: 1px solid var(--tone-dce8d4);
  border-radius: 12px;
  margin-bottom: 23px;
}
.session-banner p {
  color: var(--tone-7b8f72);
  font-size: 12px;
  margin-top: 7px;
}
.negative {
  color: #b1664e;
}
.positive {
  color: var(--tone-3d8755);
}
.hide {
  display: none !important;
}
@media (min-width: 1500px) {
  .content {
    padding: 36px 45px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  }
  .product-visual {
    height: 155px;
  }
  .product-visual svg {
    width: 115px;
    height: 115px;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .workspace {
    margin-left: 190px;
  }
  .content {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px 14px;
  }
  .metric-value {
    font-size: 23px;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
  }
  .hero-art {
    right: -20px;
    opacity: 0.5;
  }
  .settings-layout {
    grid-template-columns: 1fr 300px;
  }
  .auth-story h1 {
    font-size: 42px;
  }
  .warehouse-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 72px;
    padding: 22px 10px;
  }
  .brand {
    padding: 0 8px;
  }
  .sidebar .brand span,
  .sidebar .edition,
  .store-picker,
  .nav-caption,
  .nav-item span,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 14px 8px;
    margin-top: 4px;
  }
  .sidebar nav {
    margin-top: 30px;
  }
  .workspace {
    margin-left: 72px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .receipt-stage {
    min-height: 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story {
    padding: 40px 35px;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 10px;
  }
  .product-visual {
    height: 100px;
  }
  .product-visual svg {
    height: 75px;
  }
  .hero-art {
    opacity: 0.3;
  }
  .topbar .date-chip {
    display: none;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    width: 220px;
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 15px 0 40px var(--tone-243d2433);
  }
  .sidebar.open .brand span,
  .sidebar.open .nav-item span,
  .sidebar.open .nav-caption {
    display: block;
  }
  .sidebar.open .nav-item {
    justify-content: flex-start;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .content {
    padding: 23px 16px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading > .row {
    flex-direction: column;
    align-items: flex-end;
  }
  .page-heading .btn {
    font-size: 10px;
    padding: 9px 11px;
  }
  .hero {
    padding: 23px;
    min-height: 190px;
  }
  .hero h2 {
    font-size: 23px;
    max-width: 250px;
  }
  .hero-art {
    right: -60px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-label {
    font-size: 10px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 25px;
    min-height: 230px;
  }
  .auth-story h1 {
    font-size: 30px;
    margin-top: 30px;
    max-width: none;
  }
  .auth-story p {
    display: none;
  }
  .auth-tags {
    margin-top: 22px;
  }
  .auth-story .auth-bottom {
    display: none;
  }
  .auth-form-wrap {
    padding: 30px 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .pos-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .pos-catalog {
    min-height: 400px;
  }
  .product-grid {
    max-height: 480px;
    grid-template-columns: repeat(2, 1fr);
  }
  .basket {
    min-height: 480px;
  }
  .cart-lines {
    max-height: 320px;
  }
  .warehouse-grid {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal-content {
    padding: 20px;
  }
  .report-filters {
    flex-wrap: wrap;
  }
  .report-filters label {
    flex: 1;
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 13px;
  }
  .profile .profile-text {
    display: none;
  }
  .receipt-stage {
    padding: 25px;
  }
  .purchase-line {
    grid-template-columns: 1fr 1fr;
  }
  .chart {
    gap: 12px;
  }
  .date-chip {
    display: none;
  }
}
.dashboard-grid > *,
.stack,
.panel,
.chart-col,
.metric,
.pos-catalog {
  min-width: 0;
}
.product-grid {
  grid-auto-rows: max-content;
}
.product-card {
  min-height: 240px;
}
.product-info {
  min-height: 115px;
}
.table-wrap {
  max-width: 100%;
}
#toast {
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
.chart-col {
  gap: 8px;
}
.topbar > .row {
  min-width: 0;
}
@media (max-width: 650px) {
  .breadcrumb {
    gap: 7px;
    font-size: 10px;
  }
  .topbar {
    gap: 8px;
  }
  .topbar > .row {
    gap: 7px;
  }
  .topbar .badge {
    font-size: 9px;
    padding: 5px;
  }
  .topbar .avatar {
    width: 28px;
    height: 28px;
  }
  .chart {
    gap: 8px;
    padding-left: 0;
    padding-right: 0;
  }
  .product-card {
    min-height: 220px;
  }
  .session-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .session-banner > .row {
    flex-wrap: wrap;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  body {
    background: white;
  }
  body > * {
    display: none !important;
  }
  #modal-root {
    display: block !important;
  }
  .modal-backdrop {
    position: static;
    background: none;
    display: block;
    padding: 0;
    backdrop-filter: none;
  }
  .modal {
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
  }
  .modal-header,
  .modal-footer,
  .receipt-preview-label,
  .no-print {
    display: none !important;
  }
  .modal-content,
  .receipt-stage {
    padding: 0;
    background: none;
    min-height: 0;
    display: block;
  }
  .receipt {
    box-shadow: none;
    width: 80mm;
    max-width: 80mm;
    padding: 4mm;
    font-size: 10pt;
  }
  .receipt.narrow {
    width: 58mm;
    max-width: 58mm;
    font-size: 8pt;
  }
  .receipt:after {
    display: none;
  }
  @page {
    margin: 0;
    size: auto;
  }
}
/* Appearance controls */
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--tone-176b56);
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.theme-option {
  border: 1px solid var(--tone-dce4dc);
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.theme-option:hover {
  box-shadow: 0 4px 14px #0000000c;
}
.theme-option.selected {
  border: 2px solid var(--tone-176b56);
  padding: 14px;
  background: var(--tone-f2f7ed);
}
.theme-option strong {
  font-size: 14px;
}
.theme-option small {
  font-size: 11px;
}
.theme-selected {
  font-size: 10px;
  color: var(--tone-176b56);
  font-weight: 600;
  margin-top: 4px;
}
.theme-swatch {
  display: flex;
  gap: 6px;
  height: 46px;
  margin-bottom: 6px;
  padding: 8px;
  background: color-mix(in srgb, var(--swatch) 8%, white);
  border-radius: 7px;
}
.theme-swatch span {
  width: 32%;
  border-radius: 4px;
  background: var(--swatch);
}
.theme-swatch span:nth-child(2) {
  opacity: 0.5;
}
.theme-swatch span:nth-child(3) {
  opacity: 0.2;
}
.receipt {
  color: #27332b;
}
.badge.green {
  background: #e5f3eb;
  color: #287351;
}
.badge.orange {
  background: #fff2dc;
  color: #ac7620;
}
.badge.red {
  background: #fbe8e5;
  color: #b35346;
}
@media (max-width: 450px) {
  .theme-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .theme-option {
    padding: 11px;
  }
  .theme-option.selected {
    padding: 10px;
  }
}
