@font-face {
  font-family: Jakarta;
  src: url("/assets/fonts/jakarta-regular.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("/assets/fonts/jakarta-bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --teal: #075c50;
  --deep: #03463e;
  --mint: #ddf4ee;
  --orange: #ff7417;
  --peach: #fff0e5;
  --blue: #0789d5;
  --ink: #17211f;
  --muted: #73817c;
  --line: #e6ece9;
  --bg: #f7f9f8;
  --red: #cb403f;
  --yellow: #e6a622;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(27, 56, 47, 0.045);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Jakarta, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0789d555;
  outline-offset: 3px;
}
svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  font-weight: 800;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.35px;
  font-weight: 800;
}
h3 {
  font-size: 14px;
  font-weight: 800;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.num {
  font-variant-numeric: tabular-nums;
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.grow {
  flex: 1;
}
.hidden {
  display: none !important;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}
.btn:hover {
  background: var(--deep);
  box-shadow: 0 3px 10px #075c5018;
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover {
  background: #f2f6f4;
}
.btn.light {
  background: var(--mint);
  color: var(--teal);
}
.btn.orange {
  background: var(--orange);
  color: white;
}
.btn.danger {
  background: #fcebea;
  color: var(--red);
}
.btn.sm {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 8px;
}
.btn.icon {
  padding: 10px;
  width: 40px;
  min-width: 40px;
}
.text-btn {
  background: none;
  border: 0;
  color: var(--teal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  white-space: nowrap;
}
.text-btn:hover {
  text-decoration: underline;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 4px 8px;
  background: #f0f3f2;
  color: #63726c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.pill.green {
  background: #e6f5ec;
  color: #26834f;
}
.pill.teal {
  background: var(--mint);
  color: var(--teal);
}
.pill.orange {
  background: var(--peach);
  color: #be5c0e;
}
.pill.red {
  background: #fdeceb;
  color: #b73536;
}
.pill.blue {
  background: #e6f3fc;
  color: #0875ae;
}
.pill.yellow {
  background: #fff6d6;
  color: #9c6c0b;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.tag {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal);
  font-weight: 800;
  font-size: 11px;
}
.avatar.orange {
  background: var(--peach);
  color: #bd5b13;
}
.avatar.blue {
  background: #e3f2fb;
  color: #1374a8;
}
.avatar.large {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 15px;
}
.brand-crop {
  width: 104px;
  height: 107px;
  background-image: url("/assets/art/splash.png");
  background-size: 228.8px 497.12px;
  background-position: -62.4px -140.4px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.initial-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  color: var(--muted);
}
.load-track {
  width: 160px;
  height: 4px;
  border-radius: 8px;
  background: #e4ece8;
  overflow: hidden;
}
.load-track i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--orange);
  animation: loading 1.2s infinite ease-in-out;
  border-radius: 8px;
}
@keyframes loading {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(350%);
  }
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 224px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 18px 18px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 27px;
}
.brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}
.brand b {
  font-size: 17px;
  letter-spacing: -0.7px;
  color: var(--teal);
  line-height: 1;
}
.brand b em {
  font-style: normal;
  color: var(--orange);
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #9aa59f;
  margin-top: 6px;
}
.nav-label {
  padding: 15px 15px 10px;
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #a0aaa5;
}
.nav-link {
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  width: 100%;
  font-weight: 600;
  color: #6d7a74;
  border-radius: 11px;
  background: transparent;
  margin: 3px 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link svg {
  width: 18px;
  height: 18px;
}
.nav-link:hover {
  background: #f4f8f6;
  color: var(--teal);
}
.nav-link.active {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 5px 10px #075c5014;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.workspace-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace-pill .avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--peach);
  color: var(--orange);
}
.workspace-pill b {
  font-size: 11px;
  display: block;
}
.workspace-pill small {
  font-size: 9px;
  color: var(--muted);
}
.sidebar-note {
  padding: 17px 5px 0;
  text-align: center;
  font-size: 9px;
  color: #a0aaa6;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffffc7;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #96a09b;
}
.crumb b {
  color: #57665f;
  font-weight: 600;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.top-user b {
  font-size: 11px;
  display: block;
}
.top-user span {
  font-size: 9px;
  color: var(--muted);
  display: block;
}
.mobile-menu {
  display: none;
}
.content {
  padding: 30px 34px 38px;
  max-width: 1700px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.page-body {
  animation: arrive 0.2s ease both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.card-head {
  padding: 21px 23px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.card-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.card-pad {
  padding: 23px;
}
.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}
.stat-card {
  padding: 21px 21px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #f1f6f3;
  color: var(--teal);
}
.stat-card:nth-child(2) .stat-icon {
  color: #df7429;
  background: var(--peach);
}
.stat-card:nth-child(3) .stat-icon {
  color: #1683ba;
  background: #e8f5fc;
}
.stat-card:nth-child(4) .stat-icon {
  color: #a5811b;
  background: #fff8df;
}
.stat-value {
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 14px;
}
.stat-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #91a096;
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 21px;
}
.hero-banner {
  padding: 22px 24px;
  background: var(--deep);
  color: white;
  border-radius: 18px;
  margin-bottom: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hero-banner h2 {
  font-size: 20px;
  color: white;
  letter-spacing: -0.5px;
}
.hero-banner p {
  color: #b8d5cb;
  margin-top: 5px;
  font-size: 11px;
  max-width: 450px;
}
.hero-banner .hero-icon {
  width: 62px;
  height: 62px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff0d;
  color: #facc5f;
  transform: rotate(-7deg);
}
.hero-banner .btn {
  background: #fff;
  color: var(--teal);
  font-size: 11px;
}
.sales-chart {
  padding: 5px 23px 12px;
}
.sales-chart svg {
  width: 100%;
  height: 185px;
  stroke: none;
  overflow: visible;
}
.chart-grid {
  stroke: #edf1ee;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #99a49e;
  margin: 0 5px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
.legend i {
  width: 7px;
  height: 7px;
  background: var(--teal);
  display: inline-block;
  border-radius: 2px;
  margin-right: 6px;
}
.summary-strip {
  border-top: 1px solid var(--line);
  display: flex;
  padding: 17px 23px;
}
.summary-strip div {
  flex: 1;
}
.summary-strip span {
  font-size: 10px;
  color: var(--muted);
}
.summary-strip b {
  display: block;
  font-size: 15px;
  margin-top: 5px;
}
.summary-strip div + div {
  padding-left: 23px;
  border-left: 1px solid var(--line);
}
.mini-map {
  height: 239px;
  margin: 0 15px 15px;
  border-radius: 12px;
  background: #edf2ef;
  z-index: 1;
}
.map-card .card-head {
  padding-bottom: 12px;
}
.partner-mini {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 21px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.partner-mini .avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.partner-mini b {
  font-size: 11px;
  display: block;
}
.partner-mini small {
  font-size: 9px;
  color: var(--muted);
}
.list-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid #f0f3f1;
}
.list-row b {
  font-size: 11px;
  display: block;
}
.list-row small {
  font-size: 10px;
  color: var(--muted);
}
.alert-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff6e1;
  color: #ca8a15;
}
.alert-icon.red {
  background: #fcebea;
  color: #cc5650;
}
.alert-count {
  font-size: 16px;
  font-weight: 800;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.search-box {
  position: relative;
  min-width: 180px;
  max-width: 310px;
  flex: 1;
}
.search-box svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: #a1aaa5;
}
.search-box input {
  padding-left: 37px !important;
  height: 40px;
}
.field input,
.field select,
.field textarea,
.search-box input,
.filter-select {
  width: 100%;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-box input:focus {
  border-color: #72a99b;
  box-shadow: 0 0 0 3px #075c5008;
}
.field input::placeholder,
.search-box input::placeholder {
  color: #aab3ad;
}
.filter-select {
  width: auto;
  height: 40px;
  min-width: 115px;
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: #eef3ef;
  border-radius: 10px;
  padding: 4px;
  align-items: center;
}
.tabs button {
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #77877c;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tabs button.active {
  background: #fff;
  color: var(--teal);
  box-shadow: 0 2px 4px #1f4c2a08;
}
.section-tabs {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
  overflow: auto;
}
.section-tabs button {
  padding: 0 1px 13px;
  position: relative;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.section-tabs button.active {
  color: var(--teal);
}
.section-tabs button.active:after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  background: #fbfcfb;
  color: #94a198;
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 13px 21px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 21px;
  border-bottom: 1px solid #f0f3f1;
  font-size: 11px;
  color: #627168;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdfc;
}
td strong {
  font-weight: 700;
  color: var(--ink);
}
td small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  color: #9aa69e;
}
.right {
  text-align: right;
}
.product-cell {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 185px;
}
.product-cell img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f2;
}
.product-cell strong {
  display: block;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.row-actions button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #83948a;
}
.row-actions button:hover {
  color: var(--teal);
  border-color: #aacbbf;
}
.row-actions svg {
  width: 14px;
  height: 14px;
}
.empty {
  padding: 55px 25px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  gap: 12px;
}
.empty svg {
  width: 32px;
  height: 32px;
  color: #a7bab0;
}
.empty h3 {
  color: #687c70;
  font-size: 13px;
}
.empty p {
  font-size: 11px;
  max-width: 360px;
}
.empty .btn {
  margin-top: 5px;
}
.skeleton {
  height: 115px;
  border-radius: 16px;
  background: linear-gradient(100deg, #eaf0ed 30%, #f4f7f5 45%, #eaf0ed 60%);
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton.long {
  height: 300px;
  margin-top: 22px;
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}
.info-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f1f7f4;
  color: #668275;
  font-size: 11px;
}
.info-note svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.info-note.warning {
  background: #fff8e8;
  color: #a67d27;
}
.info-note.error {
  background: #fff0ee;
  color: #b5554b;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
.main-map {
  height: 550px;
  background: #e7efea;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}
.map-controls {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 500;
  display: flex;
  gap: 8px;
}
.map-controls .pill {
  background: #fffffff2;
  box-shadow: 0 2px 8px #15292020;
  padding: 9px 12px;
}
.ge-marker {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: 13px 13px 13px 4px;
  box-shadow: 0 3px 9px #03463e35;
  transform: rotate(-6deg);
  overflow: hidden;
}
.ge-marker img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transform: rotate(6deg);
}
.ge-marker.closed {
  filter: grayscale(1);
  opacity: 0.7;
}
.leaflet-container {
  font-family: Jakarta, Arial, sans-serif;
}
.leaflet-popup-content-wrapper {
  border-radius: 13px;
}
.leaflet-popup-content {
  font-size: 11px;
}
.leaflet-popup-content b {
  color: var(--teal);
  display: block;
}
.leaflet-popup-content small {
  display: block;
  margin-top: 4px;
  color: #85948a;
}
.leaflet-popup-content button {
  border: 0;
  background: var(--teal);
  color: white;
  border-radius: 7px;
  padding: 6px 9px;
  margin-top: 8px;
  cursor: pointer;
}
.leaflet-control-attribution {
  font-size: 8px !important;
}
.merchant-list {
  max-height: 480px;
  overflow: auto;
}
.merchant-button {
  width: 100%;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  text-align: left;
  padding: 15px 18px;
  align-items: center;
  gap: 11px;
  transition: background 0.15s;
}
.merchant-button:hover,
.merchant-button.active {
  background: #f4faf6;
}
.merchant-button b {
  font-size: 11px;
  display: block;
}
.merchant-button small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.merchant-detail {
  margin-top: 20px;
}
.merchant-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 21px;
}
.merchant-head h2 {
  font-size: 17px;
}
.merchant-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 0 21px 20px;
}
.merchant-info span {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}
.merchant-info b {
  font-size: 11px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.settings-nav button {
  text-align: left;
  background: none;
  border: 0;
  padding: 13px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}
.settings-nav button.active {
  background: #e9f3ed;
  color: var(--teal);
}
.settings-form {
  padding: 25px;
}
.settings-form h2 {
  font-size: 19px;
}
.settings-form > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 11px;
  font-weight: 700;
  color: #53665a;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.field.full {
  grid-column: 1/-1;
}
.field textarea {
  min-height: 85px;
  resize: vertical;
}
.field input[readonly] {
  background: #f6f8f6;
  color: #87988c;
}
.field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 11px;
}
.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  margin-top: 3px;
}
.check-line b {
  font-size: 11px;
  display: block;
}
.check-line small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.form-section {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  border: 0;
}
.form-section h3 {
  margin-bottom: 15px;
  font-size: 12px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.form-message {
  font-size: 11px;
  color: var(--red);
  margin-top: 12px;
  min-height: 16px;
}
.secret-field {
  position: relative;
}
.secret-field .pill {
  position: absolute;
  right: 10px;
  top: 10px;
}
.secret-field input {
  padding-right: 90px;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tier-card {
  padding: 22px;
}
.tier-card .tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.tier-card h2 {
  font-size: 16px;
}
.tier-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  min-height: 35px;
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.tier-card li {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #647b6b;
}
.tier-card li svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}
.tier-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.tier-card footer span {
  font-size: 10px;
  color: var(--muted);
}
.security-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 22px;
}
.status-card {
  padding: 20px;
  display: flex;
  gap: 13px;
}
.status-card .stat-icon {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}
.status-card h3 {
  font-size: 12px;
}
.status-card p {
  font-size: 10px;
  margin-top: 5px;
  color: var(--muted);
}
.key-box {
  background: #f1f6f3;
  padding: 14px;
  border: 1px dashed #afc6b7;
  border-radius: 10px;
  font-family: monospace;
  word-break: break-all;
  font-size: 12px;
  margin: 15px 0;
}
.timeline {
  padding: 0 23px 20px;
}
.timeline-row {
  display: flex;
  gap: 12px;
  position: relative;
  padding: 12px 0;
}
.timeline-row:before {
  position: absolute;
  content: "";
  top: 40px;
  bottom: -12px;
  left: 13px;
  width: 1px;
  background: var(--line);
}
.timeline-row:last-child:before {
  display: none;
}
.timeline-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  z-index: 1;
  flex-shrink: 0;
}
.timeline-icon svg {
  height: 13px;
  width: 13px;
}
.timeline-row b {
  font-size: 11px;
}
.timeline-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.money-large {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -1px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}
.detail-grid > div {
  padding: 13px;
  background: #f7f9f7;
  border-radius: 10px;
}
.detail-grid span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.detail-grid b {
  font-size: 11px;
  display: block;
  margin-top: 5px;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
}
.receipt-line.total {
  border-top: 1px solid var(--line);
  margin-top: 9px;
  padding-top: 16px;
  font-weight: 800;
  color: var(--teal);
}
#modal {
  border: 0;
  max-width: 650px;
  width: calc(100% - 32px);
  padding: 0;
  border-radius: 21px;
  box-shadow: 0 24px 100px #092b2740;
  max-height: 90vh;
  overscroll-behavior: contain;
  color: var(--ink);
}
#modal::backdrop {
  background: #0b241d65;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 23px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 18px;
}
.modal-body {
  padding: 25px;
}
.modal-foot {
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fcfdfc;
}
.modal-head .btn {
  border: 0;
  background: #f2f6f3;
  color: #708277;
  min-height: 30px;
  width: 30px;
  padding: 6px;
  border-radius: 9px;
}
.modal-head svg {
  width: 15px;
  height: 15px;
}
.modal-body .info-note {
  margin-bottom: 20px;
}
.modal-body .form-message {
  margin-bottom: 0;
}
.camera-box {
  width: 100%;
  height: 300px;
  background: #13241c;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}
.camera-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scan-frame {
  position: absolute;
  inset: 60px 55px;
  border: 2px solid #fffc;
  border-radius: 15px;
}
.scan-frame:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 2px;
  background: #ff7417;
  box-shadow: 0 0 10px #ff7417;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-brand {
  background: #edf5ef;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  overflow: hidden;
}
.auth-brand .brand-crop {
  width: 208px;
  height: 214px;
  background-size: 457.6px 994.24px;
  background-position: -124.8px -280.8px;
  mix-blend-mode: multiply;
  margin-bottom: 40px;
}
.auth-brand h1 {
  font-size: 34px;
  max-width: 390px;
  text-align: center;
  line-height: 1.4;
  color: var(--teal);
}
.auth-brand p {
  color: #698679;
  max-width: 320px;
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}
.auth-corner {
  position: absolute;
  bottom: 30px;
  color: #8ca497;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 350px;
}
.auth-form .eyebrow {
  color: var(--orange);
  font-size: 9px;
  margin-bottom: 12px;
}
.auth-form h1 {
  font-size: 28px;
}
.auth-form > p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 29px;
}
.auth-form .field {
  margin-bottom: 18px;
}
.auth-form .btn {
  width: 100%;
  margin-top: 8px;
}
.auth-form .info-note {
  margin-bottom: 20px;
}
.auth-foot {
  font-size: 10px;
  color: #9ca9a0;
  margin-top: 30px;
}
.auth-form .form-message {
  margin-top: 10px;
}
.toast {
  background: var(--deep);
  color: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px #092b2727;
  padding: 13px 18px;
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  animation: arrive 0.2s ease;
}
.toast.error {
  background: #9a3d36;
}
.toast svg {
  width: 17px;
  height: 17px;
}
#toasts {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 10000;
  display: grid;
  gap: 10px;
  max-width: 390px;
}
.backdrop {
  display: none;
}
.error-screen {
  padding: 40px;
  text-align: center;
  min-height: 80vh;
  display: grid;
  place-content: center;
  gap: 15px;
}
.error-screen p {
  color: var(--muted);
}
.error-screen .btn {
  justify-self: center;
}
.network-line {
  font-size: 10px;
  color: #799184;
  display: flex;
  align-items: center;
  gap: 6px;
}
.network-line .dot {
  background: #36a45c;
}
@media (min-width: 1600px) {
  .content {
    padding: 35px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .stats-grid {
    gap: 21px;
  }
  .stat-card {
    padding: 24px;
  }
  .stat-value {
    font-size: 30px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    width: 200px;
    padding: 23px 12px 16px;
  }
  .brand {
    gap: 7px;
    padding-left: 5px;
  }
  .brand b {
    font-size: 16px;
  }
  .topbar {
    padding: 0 24px;
  }
  .content {
    padding: 25px 24px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 17px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-value {
    font-size: 23px;
  }
  .map-layout {
    grid-template-columns: 1fr 280px;
  }
  .main-map {
    height: 500px;
  }
  .settings-layout {
    grid-template-columns: 170px 1fr;
  }
  .settings-nav button {
    font-size: 11px;
    padding: 12px 10px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .merchant-info {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .map-card .mini-map {
    height: 220px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    max-height: 300px;
  }
  .merchant-list {
    max-height: 220px;
  }
  .security-overview {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    flex-direction: row;
    overflow: auto;
  }
  .settings-nav button {
    white-space: nowrap;
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .auth-brand h1 {
    font-size: 28px;
  }
  .top-user > div:last-child {
    display: none;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 230px;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .shell.menu-open .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #16332950;
    z-index: 25;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 63px;
    padding: 0 18px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .crumb {
    font-size: 10px;
    gap: 7px;
  }
  .crumb > span {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .top-user {
    border: 0;
    padding: 0;
  }
  .network-line {
    display: none;
  }
  .content {
    padding: 23px 16px;
  }
  .page-head {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 21px;
  }
  h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 11px;
  }
  .page-head > .flex {
    gap: 6px;
  }
  .page-head .btn {
    font-size: 10px;
    min-height: 35px;
    padding: 9px 11px;
  }
  .page-head .btn svg {
    width: 15px;
    height: 15px;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 17px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .stat-icon svg {
    width: 16px;
    height: 16px;
  }
  .stat-value {
    font-size: 22px;
    margin-top: 12px;
  }
  .stat-note {
    font-size: 9px;
  }
  .hero-banner {
    padding: 20px;
    margin-bottom: 17px;
    gap: 10px;
  }
  .hero-banner h2 {
    font-size: 17px;
  }
  .hero-banner p {
    font-size: 10px;
  }
  .hero-banner .hero-icon {
    display: none;
  }
  .hero-banner .btn {
    font-size: 10px;
    padding: 10px;
  }
  .dashboard-grid > .stack {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    gap: 17px;
  }
  .card-head {
    padding: 18px;
  }
  .card-head h2 {
    font-size: 14px;
  }
  .card-head p {
    font-size: 10px;
  }
  .card-pad {
    padding: 18px;
  }
  .toolbar {
    padding: 14px;
    gap: 10px;
  }
  .toolbar > .flex {
    flex-wrap: wrap;
  }
  .search-box {
    min-width: 150px;
    max-width: none;
  }
  .filter-select {
    font-size: 10px;
    min-width: 100px;
  }
  .toolbar .btn {
    font-size: 10px;
  }
  td,
  th {
    padding: 13px 16px;
  }
  .card-footer {
    padding: 13px 16px;
    font-size: 10px;
  }
  .main-map {
    height: 400px;
    border-radius: 14px;
  }
  .map-layout {
    gap: 16px;
  }
  .merchant-detail {
    margin-top: 16px;
  }
  .merchant-info {
    gap: 12px;
  }
  .tabs {
    max-width: 100%;
    overflow: auto;
  }
  .tabs button {
    padding: 8px 11px;
    font-size: 10px;
  }
  .form-grid {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .settings-form {
    padding: 20px;
  }
  .settings-form h2 {
    font-size: 17px;
  }
  .settings-nav {
    gap: 0;
  }
  .settings-nav button {
    padding: 10px;
    font-size: 10px;
    gap: 5px;
  }
  .settings-nav svg {
    width: 16px;
    height: 16px;
  }
  .form-actions .btn {
    font-size: 11px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
  .auth-main {
    min-height: 100vh;
    padding: 30px;
  }
  .auth-form:before {
    content: "";
    width: 60px;
    height: 60px;
    display: block;
    background: url("/assets/ge.png") center/contain no-repeat;
    margin-bottom: 30px;
  }
  .modal-head {
    padding: 18px 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-foot {
    padding: 16px 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .small-hide {
    display: none !important;
  }
  #toasts {
    left: 16px;
    right: 16px;
    bottom: 20px;
    max-width: none;
  }
  .toast {
    font-size: 11px;
  }
  .section-tabs {
    gap: 20px;
    margin-bottom: 18px;
  }
  .section-tabs button {
    font-size: 11px;
  }
  .summary-strip {
    padding: 16px 18px;
  }
  .summary-strip b {
    font-size: 13px;
  }
  .sales-chart {
    padding: 5px 18px 12px;
  }
  .hero-banner .btn svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.hero-banner .hero-icon svg {
  width: 42px;
  height: 42px;
}
.network-line.offline {
  color: #b97437;
}
.network-line.offline .dot {
  background: #df8c43;
}
.position-stale {
  color: #b77937;
  font-size: 9px;
  display: block;
  margin-top: 4px;
}
.merchant-info small.muted {
  font-size: 9px;
  display: block;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .page-head {
    flex-wrap: wrap;
  }
  .page-head > .flex {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }
  .merchant-head {
    flex-wrap: wrap;
  }
  .merchant-head .grow {
    min-width: 0;
  }
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.photo-picker {
  display: flex;
  gap: 10px;
  align-items: center;
}
.photo-picker img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f2;
}
.photo-picker select {
  min-width: 0;
  flex: 1;
}

/* Device access stays in the merchant detail, beside its stock and route. */
.merchant-pair-code { text-align:center; padding:20px 0; }
.merchant-pair-code label { display:block; color:var(--muted,#53615e); font-size:13px; margin-bottom:14px; }
.merchant-pair-code input { width:100%; max-width:340px; padding:20px 12px; border:1px solid #c8e4db; border-radius:16px; background:#edf8f3; color:#075c50; font:700 clamp(28px,6vw,40px) "Plus Jakarta Sans",sans-serif; letter-spacing:.18em; text-align:center; }
.merchant-pair-code p { margin-top:16px; color:#53615e; font-size:13px; }

/* Replenishment requests use the same inventory rhythm and restrained status colors. */
.restock-nav-count { margin-left:auto; min-width:22px; height:22px; padding:0 6px; border-radius:7px; display:grid; place-items:center; background:#fff0e6; color:#ad4800; font-size:11px; font-weight:700; }
.restock-nav-count.hidden { display:none; }
.restock-toolbar { justify-content:space-between; gap:18px; flex-wrap:wrap; }
.restock-toolbar h2 { font-size:15px; margin:0 0 5px; }
.restock-toolbar p { margin:0; }
.restock-table td:first-child { min-width:180px; }
.restock-table td:nth-child(2) { min-width:150px; }
.restock-table td:nth-child(4) { min-width:150px; }
.restock-detail-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; }
.restock-detail-head h3 { margin:0 0 7px; font-size:18px; }
.restock-detail-head p { margin:7px 0 0; color:var(--muted,#53615e); font-size:12px; line-height:1.6; }
.restock-note { background:#f5f8f6; padding:15px 17px; border-radius:12px; margin:16px 0; }
.restock-note small { display:block; color:var(--muted,#53615e); margin-bottom:6px; font-size:11px; }
.restock-note p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; font-size:13px; }
.restock-items { margin:19px 0; border:1px solid #e5ebe8; border-radius:12px; }
.restock-items td,.restock-items th { padding:13px 14px; }
.restock-items .product-cell { min-width:190px; }
.restock-short { color:#b63a30; }
.restock-help { color:var(--muted,#53615e); font-size:12px; line-height:1.7; margin:14px 0 22px; }
.restock-timeline { margin:24px 0; padding:0 3px; }
.restock-event { display:flex; gap:14px; position:relative; padding:0 0 22px; }
.restock-event:last-child { padding-bottom:0; }
.restock-event:not(:last-child)::before { content:""; position:absolute; left:3px; top:12px; bottom:4px; width:1px; background:#dce7e1; }
.restock-event>.dot { width:7px; height:7px; margin-top:5px; flex-shrink:0; color:#075c50; }
.restock-event strong { display:block; font-size:13px; }
.restock-event small { display:block; margin-top:5px; color:var(--muted,#53615e); font-size:11px; }
.restock-event p { margin:8px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.6; }
.restock-detail-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; padding-top:18px; border-top:1px solid #e5ebe8; }
.restock-handover { margin:20px 0; }
.restock-retry { margin-top:12px; }
.restock-loading { padding:34px 0; color:var(--muted,#53615e); text-align:center; }
@media(max-width:600px){.restock-toolbar>.flex{width:100%;}.restock-toolbar select{flex:1;min-width:120px;}.restock-detail-head{align-items:flex-start;}.restock-detail-actions>.btn{flex:1;justify-content:center;}.restock-items .product-cell{min-width:155px;}}
