:root {
  --ink: #172630;
  --muted: #7b8185;
  --accent: #01a8f1;
  --accent-soft: #91c4e8;
  --border: #e2e6e9;
  --bg: #f2f5f7;
  --white: #fff;
  --orange: #d89742;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--accent);
}
svg:not(.leaflet-zoom-animated) {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  width: 238px;
  height: 100vh;
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  background: var(--accent);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  font-size: 24px;
}
.workspace {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 39px 14px 15px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 8px;
  color: #677077;
  font-weight: 550;
}
.nav button:hover {
  background: #e7edf1;
}
.nav button.active {
  color: var(--accent);
  background: #dde6ed;
}
.nav button.active:after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: auto;
}
.side-bottom {
  margin-top: auto;
}
.side-note {
  padding: 18px 15px;
  margin: 30px 0;
  background: #e5ecf1;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #687279;
}
.side-note strong {
  display: block;
  color: #374651;
  margin-bottom: 5px;
}
.profile {
  border-top: 1px solid var(--border);
  padding: 19px 4px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #dfe8ee;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  color: #4c5b66;
}
.profile small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}
.profile button {
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #fff;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb b {
  font-weight: 500;
  color: #33424d;
}
.top-right {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #668194;
  display: inline-block;
  margin-right: 6px;
}
.content {
  padding: 32px 38px 40px;
  max-width: 1700px;
  margin: auto;
}
.eyebrow {
  color: #74818b;
  letter-spacing: 1.9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 26px;
}
h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1.1px;
  margin: 0 0 9px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}
.btn {
  border: 1px solid var(--border);
  background: white;
  border-radius: 7px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  min-height: 39px;
  text-decoration: none;
}
.btn:hover {
  border-color: #9eb3c2;
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #16344a;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.filter-left {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
select,
input,
textarea {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  color: #424f59;
  padding: 10px 12px;
  min-height: 40px;
  max-width: 100%;
}
select {
  font-size: 12px;
}
input[type="date"] {
  font-size: 12px;
}
.filter-hint {
  font-size: 11px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px;
}
.stat.featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #757c81;
}
.stat-top svg {
  width: 17px;
  height: 17px;
}
.featured .stat-top {
  color: #d2d9de;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 18px 0 13px;
  white-space: nowrap;
}
.stat-bottom {
  font-size: 11px;
  color: #848d93;
  display: flex;
  gap: 7px;
  align-items: center;
}
.featured .stat-bottom {
  color: #ccd9e3;
}
.pill {
  font-size: 10px;
  border-radius: 4px;
  padding: 4px 6px;
  background: #e8f0f5;
  color: #4c6d84;
  white-space: nowrap;
}
.featured .pill {
  background: #ffffff1a;
  color: #a6cfec;
}
.grid-main {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.card-head {
  padding: 21px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.card-head .subtitle {
  font-size: 11px;
  margin-top: 6px;
}
.text-btn {
  font-size: 11px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.chart {
  height: 218px;
  padding: 20px 22px 22px;
  display: flex;
  gap: 14px;
}
.axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  color: #8f99a0;
  padding-bottom: 23px;
  width: 35px;
}
.bars {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 13px;
  flex: 1;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 43px,
    #edf0f2 44px,
    #edf0f2 45px
  );
  background-size: 100% calc(100% - 23px);
  background-repeat: no-repeat;
}
.bar-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  z-index: 1;
}
.bar {
  width: 65%;
  max-width: 43px;
  border-radius: 5px 5px 0 0;
  background: #cfdde7;
  min-height: 2px;
}
.bar-col:last-child .bar {
  background: var(--accent);
}
.bar-label {
  font-size: 9px;
  color: #858e95;
  height: 24px;
  display: grid;
  place-items: center;
}
.chart-legend {
  font-size: 10px;
  display: flex;
  gap: 6px;
  color: #76838d;
  align-items: center;
}
.chart-legend i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
}
.city-list {
  padding: 20px 22px;
}
.city-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 18px;
}
.city-row:last-child {
  margin-bottom: 0;
}
.city-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eef2f5;
  color: #6a8191;
}
.city-icon svg {
  width: 15px;
  height: 15px;
}
.city-name {
  font-size: 11px;
}
.progress {
  height: 4px;
  background: #ebf0f3;
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: #678fab;
  border-radius: 10px;
}
.city-total {
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}
.city-total small {
  display: block;
  color: #88959e;
  font-size: 9px;
  font-weight: 400;
  margin-top: 5px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  color: #878f94;
  background: #f7f9fb;
  padding: 14px 21px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 15px 21px;
  border-bottom: 1px solid #e8edf0;
  font-size: 11px;
  color: #596269;
}
tr:last-child td {
  border-bottom: 0;
}
.table-card .card-head {
  padding-bottom: 21px;
}
.cell-title {
  font-size: 12px;
  color: #33424d;
  font-weight: 500;
}
.cell-sub {
  font-size: 10px;
  margin-top: 5px;
  color: #8f99a0;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.person .avatar {
  width: 29px;
  height: 29px;
  font-size: 10px;
}
.status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.status.delivered,
.status.paid {
  background: #e6eff5;
  color: #426a86;
}
.status.pending {
  background: #fff3df;
  color: #b18539;
}
.status.out {
  background: #eaf0f5;
  color: #67849a;
}
.status.cancelled {
  background: #fbe9e6;
  color: #b16c64;
}
.status.partial {
  background: #f5efdf;
  color: #a98b4c;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 21px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: #88939a;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.team-list {
  padding: 7px 22px 19px;
}
.team-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 17px;
}
.team-item .team-numbers {
  margin-left: auto;
  font-size: 12px;
  font-weight: 550;
}
.team-name {
  font-size: 12px;
}
.team-meta {
  font-size: 10px;
  color: #8e99a0;
  margin-top: 4px;
}
.callout {
  padding: 22px;
  background: #e5ecf1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d4dfe6;
  border-radius: 11px;
}
.callout h2 {
  font-size: 19px;
  margin: 13px 0 10px;
}
.callout p {
  color: #6d7b85;
  font-size: 12px;
  line-height: 1.7;
  max-width: 350px;
}
.callout .btn {
  align-self: flex-start;
  margin-top: 8px;
  background: transparent;
  border-color: #b9cbd8;
}
.demo-banner {
  padding: 9px 38px;
  background: #dfeaf2;
  color: #4e6677;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.demo-banner select {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 10px;
  background: #ffffff90;
  border-color: #c9d7e1;
}
.mobile-toggle {
  display: none;
}
.search {
  width: 235px;
  font-size: 12px;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  color: #848f96;
  line-height: 1.8;
  font-size: 12px;
}
.empty strong {
  display: block;
  color: #465661;
  font-size: 15px;
  margin-bottom: 5px;
}
.entity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.entity-card {
  padding: 22px;
}
.entity-card h2 {
  margin: 15px 0 6px;
}
.entity-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.entity-card .meta {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.entity-card .avatar {
  width: 45px;
  height: 45px;
  font-size: 15px;
}
.route-stops {
  padding: 0;
  list-style: none;
}
.route-stops li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  font-size: 12px;
  border-bottom: 1px solid #e8edf0;
}
.stop-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8eef3;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.route-stops .done {
  background: #cee1ef;
  color: #425e72;
}
.route-stops button {
  margin-left: auto;
  font-size: 11px;
  color: var(--accent);
}
.metric-line {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.settings-card {
  max-width: 660px;
  padding: 25px;
}
.settings-card p {
  line-height: 1.8;
  color: var(--muted);
  font-size: 12px;
}
.settings-card .field {
  margin-bottom: 20px;
}
dialog {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 100px #172e3f30;
  width: min(580px, calc(100vw - 30px));
  max-height: 90vh;
  padding: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: #16253059;
  backdrop-filter: blur(3px);
}
.modal-header {
  padding: 23px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.modal-body {
  padding: 24px 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 13px;
}
.field label {
  font-weight: 550;
  color: #4d5a64;
}
.help {
  font-size: 11px;
  color: #7f8a91;
  line-height: 1.6;
}
.modal-footer {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 23px;
}
.error {
  background: #fff0eb;
  color: #ab5944;
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 15px;
}
.order-line {
  display: grid;
  grid-template-columns: 1fr 85px 30px;
  gap: 9px;
  margin: 12px 0;
}
.line-total {
  background: #ebf1f5;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border-radius: 7px;
  font-size: 13px;
}
.check-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f4f7f9;
  border-radius: 8px;
}
.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.check-list input {
  min-height: 0;
  width: auto;
}
.login {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #233d50;
  color: #edf4f9;
  padding: 55px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story .brand-mark {
  background: #9ecbeb;
  color: #233d50;
}
.login-story h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -2px;
  max-width: 440px;
  margin: 65px 0 20px;
}
.login-story p {
  font-size: 15px;
  line-height: 1.8;
  color: #bac8d2;
  max-width: 370px;
}
.login-art {
  margin: 28px 0;
  position: relative;
  height: 140px;
}
.art-road {
  height: 100px;
  border: 1px dashed #7691a5;
  border-radius: 50%;
  transform: rotate(-12deg);
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
}
.art-node {
  background: #aad0ec;
  color: #2f4555;
  padding: 14px 16px;
  border-radius: 9px;
  position: absolute;
  font-size: 12px;
  box-shadow: 0 10px 30px #15283633;
}
.art-node:nth-child(2) {
  top: 0;
  left: 5%;
}
.art-node:nth-child(3) {
  top: 65px;
  left: 36%;
}
.art-node:nth-child(4) {
  top: 0;
  right: 0;
}
.login-foot {
  font-size: 11px;
  color: #9eb3c2;
  margin-top: 30px;
}
.login-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.login-form .subtitle {
  margin-bottom: 30px;
  font-size: 13px;
}
.login-form .field {
  margin-bottom: 17px;
}
.login-form .btn {
  width: 100%;
  margin-top: 4px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 23px 0;
  font-size: 11px;
  color: #8f9aa2;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.login-extra {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 23px;
}
.login-extra button {
  color: var(--accent);
  text-decoration: underline;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 9px;
  background: #233c4e;
  color: white;
  z-index: 99;
  box-shadow: 0 5px 20px #0002;
  font-size: 13px;
  display: none;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
}
.detail-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.detail-list span {
  color: var(--muted);
}
.detail-items {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.legend-note {
  padding: 0 22px 17px;
  font-size: 10px;
  color: #7f8c96;
  line-height: 1.7;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .stat {
    padding: 26px;
  }
  .chart {
    height: 255px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 27px 14px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 26px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .demo-banner {
    padding: 9px 23px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 24px;
  }
  .entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (max-width: 850px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 40px;
  }
  .filters {
    align-items: start;
    flex-direction: column;
  }
  .filter-hint {
    display: none;
  }
  .top-right .date-label {
    display: none;
  }
  .page-head {
    align-items: start;
  }
  h1 {
    font-size: 25px;
  }
  .page-head .actions {
    justify-content: end;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 10px 0 50px #162d3e20;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: block;
    padding: 5px;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .top-right {
    gap: 10px;
  }
  .content {
    padding: 25px 16px;
  }
  .demo-banner {
    padding: 9px 16px;
    font-size: 10px;
  }
  .demo-banner span {
    max-width: 200px;
    line-height: 1.5;
  }
  .page-head {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
  }
  .page-head .actions {
    justify-content: start;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stats {
    gap: 11px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-bottom {
    font-size: 10px;
  }
  .entity-grid {
    grid-template-columns: 1fr;
  }
  .filter-left {
    width: 100%;
  }
  .filter-left select {
    flex: 1;
    min-width: 110px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 25px 26px;
  }
  .login-story h1 {
    font-size: 30px;
    margin: 30px 0 12px;
    max-width: 300px;
  }
  .login-story p {
    font-size: 12px;
  }
  .login-art,
  .login-foot {
    display: none;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-header {
    padding: 20px;
  }
  .search {
    width: 100%;
  }
  th,
  td {
    padding: 14px 15px;
  }
  .chart {
    padding: 20px 16px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .brand {
    font-size: 21px;
  }
  .callout {
    padding: 22px;
  }
  .table-footer {
    gap: 12px;
    line-height: 1.5;
  }
}
/* Pilot workflow improvements */
.sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fff1db;
  color: #815a21;
  padding: 14px 18px;
  border: 1px solid #eddbb6;
  border-radius: 9px;
  margin-bottom: 22px;
  font-size: 12px;
}
.sync-banner[hidden] {
  display: none;
}
.onboarding {
  padding: 22px;
  background: #deebf3;
  border: 1px solid #c8dbe8;
  border-radius: 10px;
  margin-bottom: 20px;
}
.onboarding .subtitle {
  margin: 8px 0 18px;
}
.setup-done {
  font-size: 12px;
  padding: 12px;
  color: #435e71;
}
.work-queue {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 22px;
  overflow: hidden;
}
.work-queue > div {
  padding: 22px;
}
.work-queue button {
  padding: 20px 22px;
  text-align: left;
  border-left: 1px solid var(--border);
}
.work-queue button:hover {
  background: #e8f0f5;
}
.work-queue strong {
  display: block;
  font-size: 23px;
  margin-bottom: 8px;
}
.work-queue span {
  font-size: 11px;
  color: #657682;
}
.work-queue svg {
  width: 14px;
  height: 14px;
  margin-left: 6px;
}
.account-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.field-hero {
  padding: 30px;
  background: #dde8f0;
  border-radius: 12px;
  margin-bottom: 22px;
}
.field-hero h2 {
  font-size: 25px;
}
.field-hero p {
  font-size: 13px;
  color: #697a86;
  line-height: 1.7;
}
.day-stops {
  margin-bottom: 22px;
}
.day-stops .card-head {
  padding-bottom: 16px;
}
.day-stop {
  display: flex;
  gap: 15px;
  padding: 20px 22px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.day-stop strong {
  font-size: 13px;
}
.day-stop > .actions {
  margin-left: auto;
}
.stat-value {
  font-size: clamp(20px, 2vw, 29px);
}
.sidebar {
  overflow-y: auto;
}
.side-note {
  margin: 20px 0;
}
@media (max-width: 650px) {
  .work-queue {
    grid-template-columns: 1fr 1fr;
  }
  .work-queue > div {
    grid-column: 1/-1;
    padding: 18px;
  }
  .work-queue button {
    border-top: 1px solid var(--border);
    padding: 18px 14px;
  }
  .work-queue strong {
    font-size: 20px;
  }
  .day-stop {
    flex-wrap: wrap;
    padding: 18px;
  }
  .day-stop > .actions {
    margin-left: 39px;
    width: 100%;
  }
  .day-stop .btn {
    min-height: 44px;
  }
  .sync-banner {
    align-items: start;
    flex-direction: column;
  }
  .field-hero {
    padding: 23px;
  }
  .stat-value {
    font-size: 21px;
  }
  .sidebar .nav button {
    padding: 11px 14px;
  }
  .side-note {
    display: none;
  }
}
/* Field operations and route map */
.map-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.map-toolbar label {
  font-size: 11px;
  color: #737d84;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 135px;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}
.map-card .card-head {
  padding-bottom: 20px;
}
#route-map {
  height: 490px;
  background: #e2e9ee;
  z-index: 0;
}
.map-caption {
  padding: 15px 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #6d7982;
}
.map-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  background: #87b4d5;
}
.map-key.visited {
  background: #23445c;
}
.map-key.reported {
  background: #2a73b6;
}
.map-stop {
  padding: 18px;
  border-top: 1px solid var(--border);
}
.map-stop .person strong {
  font-size: 12px;
}
.map-stop .subtitle {
  font-size: 10px;
  margin: 8px 0;
}
.stop-panel {
  max-height: 665px;
  overflow: auto;
}
.stop-panel .card-head {
  padding-bottom: 20px;
}
.route-pin {
  background: #fff;
  color: #23445c;
  border: 2px solid #23445c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px #20334030;
}
.route-pin.complete {
  background: #23445c;
  color: white;
}
.leaflet-popup-content {
  font:
    12px/1.8 Inter,
    Arial,
    sans-serif;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.shift-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  border: 1px solid #cedde7;
  border-radius: 10px;
  background: #eaf1f6;
  padding: 20px;
  margin-bottom: 22px;
}
.shift-panel > .help {
  width: 100%;
  margin: 0;
}
.stock-policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: #e4ecf2;
  border: 1px solid #ccdbe5;
  border-radius: 10px;
  margin-bottom: 20px;
}
.stock-policy .subtitle {
  margin-top: 8px;
  max-width: 700px;
}
.ops-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.ops-summary button {
  text-align: left;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.ops-summary strong {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}
.ops-summary span {
  font-size: 11px;
  color: var(--muted);
}
.nav {
  gap: 3px;
}
.nav button {
  padding: 10px 14px;
}
.sidebar .workspace {
  margin-top: 25px;
  margin-bottom: 12px;
}
.status.verified,
.status.approved,
.status.active {
  background: #e6eff5;
  color: #426a86;
}
.status.rejected {
  background: #fbe9e6;
  color: #b16c64;
}
.status.delivery {
  background: #fff3df;
  color: #a57730;
}
.sidebar .side-note {
  display: none;
}
.sidebar .profile {
  margin-top: 18px;
}
.btn {
  min-height: 42px;
}
@media (max-width: 1050px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .stop-panel {
    max-height: none;
  }
  .map-toolbar label {
    min-width: 120px;
  }
  #route-map {
    height: 400px;
  }
}
@media (max-width: 650px) {
  .map-toolbar {
    gap: 10px;
  }
  .map-toolbar label {
    min-width: calc(50% - 10px);
  }
  #route-map {
    height: 360px;
  }
  .map-caption {
    gap: 8px;
    font-size: 9px;
  }
  .stock-policy {
    flex-direction: column;
    align-items: start;
  }
  .ops-summary {
    gap: 9px;
  }
  .ops-summary button {
    padding: 13px;
  }
  .ops-summary strong {
    font-size: 19px;
  }
  .shift-panel .actions {
    width: 100%;
  }
  .shift-panel .btn {
    flex: 1;
  }
  .nav button {
    padding: 9px 14px;
  }
  .side-bottom {
    padding-top: 5px;
  }
}

.map-coordinate {
  font:
    10px/1.3 ui-monospace,
    monospace;
  color: #7c8f9c;
  white-space: nowrap;
  background: transparent;
  border: 0;
}
.map-coordinate span {
  background: #e2e9eeb8;
  padding: 2px 4px;
  border-radius: 3px;
}

.retailer-actions { margin: 16px 0; gap: 8px; }
.retailer-actions .btn { font-size: 12px; padding: 9px 12px; }
.retailer-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 18px 0; }
.retailer-summary small { display: block; color: #64717b; margin-bottom: 8px; }
.retailer-summary strong { font-size: 19px; overflow-wrap: anywhere; }
.retailer-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #dce2e7; }
.retailer-history-row p { margin: 6px 0 0; overflow-wrap: anywhere; }
@media(max-width: 480px) { .retailer-summary { gap: 8px; } .retailer-summary strong { font-size: 16px; } }

/* Factory access hierarchy */
.factory-workspace{display:block;margin-top:8px;color:var(--muted)}
.hierarchy-root{background:#dfe8ee;border:1px solid #c4d4df;border-radius:18px;padding:26px 30px;margin-bottom:26px;max-width:760px}
.hierarchy-root h2{margin:10px 0;font-size:24px}.hierarchy-root p{line-height:1.6;margin:0;color:#3f4f5a}
.factory-level{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#3a576c}.factory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.factory-card{padding:26px}.factory-card h2{font-size:24px;margin:10px 0}.factory-admin{background:#f3f6f8;border:1px solid var(--border);border-radius:12px;padding:20px;margin:24px 0}.factory-admin strong{display:block;margin:8px 0}.factory-admin .btn{margin-top:16px}.factory-roster{margin:20px 0}.factory-roster>div,.factory-unassigned{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}.factory-roster small{color:var(--muted)}
@media(max-width:800px){.factory-grid{grid-template-columns:1fr}.factory-card{padding:20px}.factory-roster>div{flex-wrap:wrap}}

.security-card{margin-top:24px}.security-card .actions{flex-wrap:wrap}.system-summary{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.backup-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--border)}.backup-list small{display:block;color:var(--muted);margin-top:5px}.recovery-codes{width:100%;padding:18px;font-family:monospace;line-height:1.6;border:1px solid var(--border);border-radius:10px;background:#f2f6f8}.restore-counts{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.restore-counts span{padding:8px 12px;background:#e7edf2;border-radius:8px}.password-change-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;margin-bottom:24px;background:#fbf2d8;border:1px solid #e5d395;border-radius:12px}.reset-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#eff4f7}.reset-page .card{max-width:540px;width:100%;padding:32px}.reset-page h1{font-size:28px;margin:28px 0 12px}.reset-page .field{margin:18px 0}@media(max-width:600px){.password-change-banner{align-items:flex-start;flex-direction:column}.account-controls{flex-wrap:wrap;gap:12px}.security-card{padding:22px}}

/* Field day reminders */
.followup-card{margin:24px 0}.followup-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-top:1px solid var(--border,#e8eaec)}.followup-row h3{margin:8px 0}.followup-row p{max-width:60ch;overflow-wrap:anywhere}.followup-date{font-size:12px;font-weight:700;color:#254b66;background:#eaf0f5;padding:5px 9px;border-radius:6px}.followup-date.overdue{color:#9d411e;background:#fff0e7}.day-stop .actions{flex-wrap:wrap}@media(max-width:650px){.followup-row{align-items:flex-start;flex-direction:column;padding:18px}.followup-row .actions{width:100%;flex-wrap:wrap}.day-stop{flex-wrap:wrap}.day-stop .actions{width:100%;margin-left:0}}
/* Operational employee flow */
.shop-stop{padding:24px}.shop-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:20px}.shop-heading h2{margin:0 0 7px}.product-picker{margin:20px 0}.product-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--border)}.product-choice .help{margin:6px 0 0}.quantity-stepper{display:flex;align-items:center;border:1px solid #bfcad2;border-radius:10px;overflow:hidden;flex-shrink:0}.quantity-stepper button{border:0;background:#edf2f5;color:#172e3f;width:42px;height:44px;font-size:23px;cursor:pointer}.quantity-stepper input{width:60px;text-align:center;border:0;padding:8px 0}.slide-label{display:block;margin:24px 0 12px;font-weight:700}.confirm-slide{width:100%;height:48px;accent-color:#23465f;cursor:pointer}.cash-confirm{display:flex;gap:12px;align-items:flex-start;margin:20px 0;line-height:1.6}.cash-confirm input{width:22px;height:22px;flex-shrink:0}@media(max-width:600px){.product-choice{gap:10px}.quantity-stepper button{width:36px}.quantity-stepper input{width:48px}.shop-stop{padding:20px}.route-stops .actions{flex-wrap:wrap}}
.confirm-slide{appearance:none;-webkit-appearance:none;background:#e5ebf0;border:1px solid #bac8d2;border-radius:30px;height:58px;padding:4px}.confirm-slide::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:46px;height:46px;background:#23465f;border:5px solid #fff;border-radius:50%;box-shadow:0 1px 5px #172e3f40}.confirm-slide::-moz-range-thumb{width:38px;height:38px;background:#23465f;border:5px solid #fff;border-radius:50%}.confirm-slide:focus-visible{outline:3px solid #4f7c9c;outline-offset:3px}
.language-choice{display:flex;align-items:center;gap:8px;font-size:11px}.language-choice select{min-height:38px;padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:white;font:inherit}.language-choice span{white-space:nowrap}html[lang=hi] body{line-height:1.6}html[lang=hi] .eyebrow{letter-spacing:.04em}@media(max-width:650px){.language-choice span{display:none}.top-right{gap:8px}.language-choice select{max-width:90px}.top-right>span:has(.dot){display:none}}

/* Master-managed Rio access follows each login's existing record scope. */
.rio-account-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;padding:20px}
.rio-account-summary h2{margin:5px 0 8px}.rio-account-summary p{max-width:720px;margin:0;line-height:1.55;color:#455464}.rio-account-summary>.status{flex-shrink:0}
.rio-account-control{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:14px;margin-top:14px}
.rio-account-control .btn{min-height:44px;white-space:normal;text-align:center}
.rio-account-choice{display:flex;align-items:flex-start;gap:12px;margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:12px;background:#f7fafc;cursor:pointer;line-height:1.5}
.rio-account-choice input[type=checkbox]{width:22px;height:22px;min-width:22px;margin:1px 0 0;accent-color:var(--accent);flex-shrink:0}
.rio-account-choice strong,.rio-account-choice small{display:block}.rio-account-choice small{font-size:13px;color:#455464;margin-top:4px}
@media(max-width:600px){.rio-account-summary{align-items:flex-start;flex-direction:column}.rio-account-control{align-items:stretch;flex-direction:column}.rio-account-control>.status{align-self:flex-start}.rio-account-control>.btn{width:100%}}
