:root {
  --bg: #080d1c;
  --surface: #111a2b;
  --surface2: #17233a;
  --line: #263650;
  --ink: #eef5ff;
  --muted: #9aabc5;
  --brand: #2dd4bf;
  --brand2: #22d3ee;
  --ok: #45d483;
  --warn: #f5c15c;
  --bad: #fb7185;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --r: 8px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font: 700 11px var(--mono);
  letter-spacing: 0.12em;
  color: var(--brand2);
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}
.loginCard {
  width: min(420px, 100%);
  background: rgba(17, 26, 43, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: 0 20px 70px #0007;
}
.mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #07131d;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 22px;
}
.mark span {
  color: #125466;
}
.mark.small {
  width: 34px;
  height: 34px;
  margin: 0;
  font-size: 15px;
  border-radius: 9px;
}
.login h1 {
  font-size: 28px;
  margin: 8px 0;
}
.login label,
.settings label {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c1425;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 8px;
  outline: 0;
}
.input:focus {
  border-color: var(--brand2);
  box-shadow: 0 0 0 3px #22d3ee22;
}
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
  color: #06151a;
  background: var(--brand);
  white-space: nowrap;
}
.btn.primary {
  background: var(--brand);
}
.btn.danger {
  color: #ffe4e6;
  background: #7f1d2d;
  border-color: #be4054;
}
.btn.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn.small {
  padding: 6px 9px;
  min-height: 32px;
}
.login .btn {
  width: 100%;
  margin-top: 18px;
}
.login .btn:disabled {
  cursor: wait;
  opacity: 0.65;
}
.telegramLoginStep {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #2dd4bf66;
  border-radius: var(--r);
  background: #0c1c2a;
}
.telegramLoginStep strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.login .telegramBtn {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
  background: var(--brand2);
}
.loginDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--muted);
  font: 600 11px var(--mono);
}
.loginDivider::before,
.loginDivider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.error {
  color: var(--bad);
  min-height: 20px;
  font-size: 13px;
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: 240px;
  background: #090f1d;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
  box-sizing: border-box;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar .brand-text {
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
}

.sidebar .brand-text strong {
  font-size: 14px;
  letter-spacing: 0.2px;
}

.sidebar .brand-text small {
  font-size: 11px;
  color: var(--muted);
}

.sidebar-collapse-btn {
  background: #152238;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: var(--brand);
  color: #000;
}

/* Navigation Links */
.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar .tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.sidebar .tab:hover {
  background: #141f36;
  color: var(--ink);
}

.sidebar .tab.active {
  background: rgba(45, 212, 191, 0.12);
  color: var(--brand);
  border-color: rgba(45, 212, 191, 0.25);
}

.tab-icon {
  font-size: 16px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.tab-label {
  transition: opacity 0.2s ease;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #070c18;
}

.user-card {
  display: flex;
  align-items: center;
}

.sidebar-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-btn {
  flex: 1;
  font-size: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Collapsed (Slim) State */
.sidebar.collapsed {
  width: 68px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .tab-label,
.sidebar.collapsed .user-card {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  padding: 16px 10px;
  justify-content: center;
}

.sidebar.collapsed .brand {
  display: none;
}

.sidebar.collapsed #collapseIcon {
  transform: rotate(180deg);
}

.sidebar.collapsed .tab {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .sidebar-footer-actions {
  flex-direction: column;
}

.sidebar.collapsed .logout-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
  display: none;
}
.sidebar-backdrop {
  display: none;
}

.pill {
  font: 700 10px var(--mono);
  padding: 6px 8px;
  border: 1px solid #2dd4bf55;
  border-radius: 999px;
  color: var(--brand);
}
.iconBtn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.iconBtn:hover {
  background: #1e293b;
  border-color: var(--brand);
  color: var(--brand);
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 24px 24px 70px;
  box-sizing: border-box;
}
.panel {
  display: none;
}
.panel.active {
  display: block !important;
  animation: rise 0.18s ease;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}
.head h1 {
  font-size: clamp(25px, 4vw, 40px);
  margin: 7px 0;
}
.head p {
  margin: 0;
}
.headActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 901px) {
  #stats,
  #stockStats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.stat,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.stat {
  padding: 16px;
}
.stat .label {
  color: var(--muted);
  font: 700 10px var(--mono);
  text-transform: uppercase;
}
.stat .value {
  font: 700 27px var(--mono);
  margin-top: 9px;
  color: var(--brand2);
}
.grid2,
.masterGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.masterGrid {
  grid-template-columns: 1fr 1fr;
}
.grid2 > *,
.masterGrid > * {
  min-width: 0;
}
.wide {
  grid-column: span 2;
}
.cardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 15px;
  margin: 0;
}
.tableWrap {
  overflow: auto;
}
.stockSection {
  margin-top: 14px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 560px;
}
.tbl th {
  text-align: left;
  color: var(--muted);
  font: 700 10px var(--mono);
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid #26365088;
  vertical-align: middle;
}
.tbl tr:last-child td {
  border: 0;
}
.tbl tr:hover td {
  background: #17233a55;
}
.list {
  padding: 6px 0;
}
.listItem {
  padding: 12px 17px;
  border-bottom: 1px solid #26365088;
  font-size: 12px;
}
.listItem:last-child {
  border: 0;
}
.listItem strong {
  display: block;
  margin-bottom: 3px;
}
.tag {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f5c15c22;
  color: var(--warn);
  font: 700 10px var(--mono);
}
.tag.visitOn {
  color: #86efac;
  background: #15803d33;
}
.tag.visitOff {
  color: #93c5fd;
  background: #2563eb33;
}
.productThumb {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1425;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.productThumb.empty {
  color: var(--muted);
}
.settings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.settings label {
  margin: 0;
}
.brandingLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 18px;
  padding-right: 16px;
}
.brandingLayout .settings {
  padding-right: 0;
}
.receiptPreview {
  padding: 16px 0;
}
.receiptPaper {
  width: min(100%, 340px);
  min-height: 520px;
  padding: 22px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: 0 16px 40px 8px #02051042;
  font-size: 11px;
}
.receiptBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.receiptReferenceLogo {
  width: 70px;
  height: 76px;
  margin: -22px auto 8px;
  display: grid;
  place-items: center;
  background: var(--receipt-brand);
  border-radius: 0 0 36px 36px;
}
.receiptReferenceLogo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.receiptReferenceLogo span {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.receiptReferenceName,
.receiptReferenceTagline,
.receiptReferenceLogo + small,
.receiptContact {
  display: block;
  text-align: center;
}
.receiptReferenceName {
  color: var(--receipt-brand);
  font: 500 25px Georgia, serif;
  letter-spacing: 1px;
}
.receiptReferenceTagline {
  color: var(--receipt-gold, #b77e31);
  margin-top: 2px;
  font: 500 13px Georgia, serif;
  letter-spacing: 2px;
}
.receiptReferenceLogo + .receiptReferenceName + .receiptReferenceTagline + small {
  color: var(--receipt-gold, #b77e31);
  margin: 10px 0 6px;
  font: 700 8px var(--mono);
}
.receiptContact {
  margin-top: 10px;
  color: #fff;
  font-size: 8px;
}
.receiptBrand img,
.receiptBrand > span {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: contain;
  display: grid;
  place-items: center;
  background: var(--receipt-brand);
  color: #fff;
  font-weight: 800;
}
.receiptBrand strong,
.receiptBrand small {
  display: block;
}
.receiptBrand strong {
  color: #111827;
  font-size: 16px;
}
.receiptBrand small {
  margin-top: 3px;
  color: var(--receipt-brand);
  font: 700 9px var(--mono);
}
.receiptRule {
  height: 3px;
  margin: 18px 0 20px;
  border-radius: 2px;
  background: var(--receipt-brand);
}
.receiptPaper h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
}
.receiptDocumentMeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font: 500 9px var(--mono);
}
.receiptPaper dl {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
}
.receiptPaper dt {
  color: #64748b;
  font: 700 9px var(--mono);
}
.receiptPaper dd {
  margin: 0;
  font-weight: 700;
}
.receiptItems {
  border-bottom: 1px solid #e2e8f0;
}
.receiptItemsHead,
.receiptItemRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 58px 72px;
  align-items: start;
  gap: 8px;
}
.receiptItemsHead {
  padding: 8px 9px;
  border-radius: 5px;
  color: #64748b;
  background: #eef2f7;
  font: 700 9px var(--mono);
}
.receiptItemsHead span:not(:first-child),
.receiptItemRow > span,
.receiptItemRow > strong {
  text-align: right;
}
.receiptItemRow {
  padding: 13px 9px;
}
.receiptItemRow div strong,
.receiptItemRow div small {
  display: block;
}
.receiptItemRow div small {
  margin-top: 4px;
  color: var(--receipt-brand);
  font: 700 9px var(--mono);
}
.receiptSummary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  width: 88%;
  margin: 14px 0 0 auto;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 11px;
}
.receiptSummary strong {
  color: #111827;
  text-align: right;
}
.visitPreview {
  width: max-content;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #15803d;
  background: #dcfce7;
  font-weight: 800;
}
.receiptPaper footer {
  margin-top: 24px;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
}
.imagePreviewRow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.productImagePreview {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #0c1425;
  font-size: 11px;
}
.productImagePreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activationResult {
  display: block;
  padding: 0 16px 16px;
  color: var(--brand);
  min-height: 24px;
  overflow-wrap: anywhere;
}
.activationResult strong {
  color: #d9f9f6;
}
.activationCodeCell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
}
.activationCodeCell strong {
  color: #d9f9f6;
  white-space: nowrap;
}
.aiResult {
  margin: 0 16px 16px;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
  color: #d9f9f6;
  background: #0c1425;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 24px;
}
.dbToolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.dbToolbar .input {
  max-width: 300px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #0e2f2b;
  color: #d9fffa;
  border: 1px solid #2dd4bf66;
  padding: 12px 15px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s;
  pointer-events: none;
  font-size: 13px;
  z-index: 30;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #020510bb;
  z-index: 20;
  place-items: center;
  padding: 18px;
}
.modal.open {
  display: grid;
}
.modalCard {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.modalWide .modalCard {
  width: min(980px, 100%);
}
.modalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modalTop h2 {
  font-size: 19px;
}
.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.formGrid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.searchSelect {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.searchSelect[hidden] {
  display: none;
}
.searchSelectControl {
  position: relative;
  min-width: 0;
}
.searchSelectMenu {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 5px) 0 auto;
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  background: #0c1425;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px #02051088;
}
.searchSelectOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.searchSelectOption:hover,
.searchSelectOption.active {
  background: var(--surface2);
}
.searchSelectOption strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.searchSelectOption span {
  flex: none;
  color: var(--brand2);
  font: 600 11px var(--mono);
}
.searchSelectEmpty {
  padding: 12px 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
.formGrid .full {
  grid-column: 1/-1;
}
.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.loginActions .btn {
  width: auto;
  margin-top: 0;
  flex: 1;
}
.lineToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.txLines {
  display: grid;
  gap: 8px;
}
.txLine {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) minmax(90px, 1fr) 90px 120px 38px;
  gap: 8px;
  align-items: center;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #090f1d;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-brand strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
  .mobile-toggle-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 20px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar.open {
    transform: translateX(280px);
  }
  .sidebar.collapsed {
    width: 260px;
  }
  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .tab-label,
  .sidebar.collapsed .user-card {
    display: block;
  }
  .sidebar.collapsed .brand {
    display: flex;
  }
  .sidebar.collapsed .logout-btn {
    width: auto;
    height: auto;
    padding: 8px 10px;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat .value {
    font-size: 20px;
  }
  .grid2,
  .masterGrid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  .head h1 {
    font-size: 22px;
    line-height: 1.25;
    margin: 4px 0;
  }
  .brandingLayout {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .receiptPreview {
    display: grid;
    place-items: center;
    padding: 0 16px 16px;
  }
  .shell {
    padding: 16px 12px 60px;
  }
}
@media (max-width: 450px) {
  .shell {
    padding: 14px 8px 55px;
  }
  .head h1 {
    font-size: 19px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .stat {
    padding: 12px 10px;
  }
  .stat .value {
    font-size: 16px;
    margin-top: 6px;
  }
  .stat .label {
    font-size: 9px;
  }
  .modal {
    align-items: end;
    padding: 8px;
  }
  .modalCard {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }
  .formActions .btn {
    flex: 1 1 120px;
  }
  .stat {
    padding: 12px;
  }
  .stat .value {
    font-size: 21px;
  }
  .formGrid,
  .settings {
    grid-template-columns: 1fr;
  }
  .formGrid .full {
    grid-column: auto;
  }
  .searchSelect input[type="search"] {
    font-size: 16px;
  }
  .txLine {
    grid-template-columns: 1fr 1fr;
  }
  .txLine .txProduct {
    grid-column: 1 / -1;
  }
}
.login[hidden],
#app[hidden] {
  display: none !important;
}
.dbSearch {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.analyticsControls {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.analyticsControls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.analyticsControls .input {
  min-width: 140px;
}
.analyticsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.analyticsGrid .wide {
  grid-column: span 3;
}
.chartCard {
  min-height: 300px;
  overflow: hidden;
}
.chart {
  padding: 14px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chartWide {
  display: block;
}
.chartEmpty {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 60px 12px;
}
.donutWrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.donutWrap svg {
  width: 180px;
  height: 180px;
}
.donutWrap svg circle {
  stroke-linecap: butt;
  stroke-linejoin: round;
}
.donutValue {
  fill: var(--ink);
  font: 700 20px var(--mono);
}
.donutLabel {
  fill: var(--muted);
  font: 700 10px var(--font);
}
.chartLegendList {
  display: grid;
  gap: 9px;
}
.chartLegend {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}
.chartLegend i,
.lineLegend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}
.chartLegend strong {
  font-family: var(--mono);
  font-size: 11px;
}
.barSvg,
.lineSvg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.barLabel,
.barValue,
.axisLabel {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 11px;
}
.barValue,
.axisLabel {
  font-family: var(--mono);
  font-size: 10px;
}
.lineLegend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font: 700 10px var(--mono);
  padding: 2px 10px 0 38px;
}
.lineLegend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.analyticsBottom {
  margin-bottom: 14px;
}
.analyticsBottom .listItem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.analyticsBottom .listItem strong {
  margin: 0;
  font-family: var(--mono);
}
.salesFilterCard .dbToolbar {
  align-items: end;
}
.salesFilterLabel {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.commissionAvailable {
  color: #86efac;
  background: #15803d33;
}
.commissionClaimed {
  color: #cbd5e1;
  background: #64748b33;
}
.commissionVoided {
  color: #fca5a5;
  background: #b91c1c33;
  text-decoration: line-through;
}
.claimPreview {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #b77e3144;
  border-radius: 8px;
  background: #17233a;
}
.claimPreview strong {
  color: var(--ink);
  font-size: 18px;
}
.claimPreview span,
.claimPreview small {
  color: var(--muted);
}
.claimPreview b {
  color: #f5c15c;
  font: 700 26px var(--mono);
}
@media (max-width: 980px) {
  .analyticsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analyticsGrid .wide {
    grid-column: span 2;
  }
}
@media (max-width: 620px) {
  .analyticsGrid {
    grid-template-columns: 1fr;
  }
  .analyticsGrid .wide {
    grid-column: auto;
  }
  .analyticsControls {
    width: 100%;
    align-items: stretch;
  }
  .analyticsControls label {
    flex: 1;
  }
  .analyticsControls .btn {
    align-self: end;
  }
  .donutWrap {
    grid-template-columns: 160px 1fr;
  }
  .donutWrap svg {
    width: 160px;
    height: 160px;
  }
  .salesFilterLabel {
    min-width: 100%;
  }
}

/* ============================================================
   STUDIO DESAIN STRUK (Sertifier Style)
   ============================================================ */
.studioHeadActions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.studioSyncStatus {
  font-size: 12px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.studioLayout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1100px) {
  .studioLayout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.studioControls {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}
.studioSettingsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.studioSettingsGrid label.full {
  grid-column: 1 / -1;
}
.studioSettingsGrid input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1425;
  height: 46px;
  padding: 4px;
  cursor: pointer;
  width: 100%;
  display: block;
}
.studioSettingsGrid input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.studioSettingsGrid input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}
@media (max-width: 680px) {
  .studioSettingsGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .studioControls,
  .studioMockupColumn {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .studioHeadActions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }
  .studioHeadActions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-size: 15px;
  }
}
.studioMockupColumn {
  background: #0f172a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.mockupHeader {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}
.deviceSwitcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.switcherLabel {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  margin-right: 4px;
}
.deviceBtn {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.deviceBtn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.deviceBtn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}
@media (max-width: 680px) {
  .deviceSwitcher {
    width: 100%;
  }
  .deviceBtn {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 6px 10px;
  }
  .switcherLabel {
    width: 100%;
    margin-bottom: 2px;
  }
}
.mockupIndicator {
  font-size: 11px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.mockupStage {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 24px 0;
  box-sizing: border-box;
  overflow: hidden;
}
/* Fluid Responsive Device Frames */
.deviceFrame {
  background: #1e293b;
  border: 10px solid #334155;
  border-radius: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
}
.deviceFrame.device-mobile {
  width: min(390px, 100%);
  min-height: 600px;
  padding: 14px 8px;
}
.deviceFrame.device-tablet {
  width: min(680px, 100%);
  min-height: 680px;
  padding: 18px 12px;
}
.deviceFrame.device-desktop {
  width: 100%;
  max-width: 820px;
  border-radius: 12px;
  border: 2px solid #334155;
  padding: 0;
}
.deviceFrame.device-bluetooth {
  width: min(340px, 100%);
  min-height: 480px;
  border-radius: 18px;
  border: 4px solid #475569;
  background: #0f172a;
  padding: 12px 8px 16px 8px;
}
@media (max-width: 440px) {
  .deviceFrame.device-mobile {
    border-width: 6px;
    border-radius: 22px;
    padding: 8px 4px;
  }
  .deviceFrame.device-bluetooth {
    border-width: 3px;
    border-radius: 14px;
    padding: 8px 4px 12px 4px;
  }
  .deviceScreen {
    padding: 10px 4px 20px 4px;
    border-radius: 16px;
  }
  .thermalReceiptPaper {
    padding: 12px 8px 16px 8px;
    font-size: 11px;
  }
}
.deviceSpeaker {
  width: 60px;
  height: 4px;
  background: #475569;
  border-radius: 2px;
  margin-bottom: 12px;
}
.device-desktop .deviceSpeaker,
.device-desktop .deviceHomeBar,
.device-bluetooth .deviceSpeaker,
.device-bluetooth .deviceHomeBar {
  display: none;
}
.deviceScreen {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ede8df;
  border-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 30px 8px;
}
.device-desktop .deviceScreen {
  border-radius: 8px;
  max-height: 800px;
}
.device-bluetooth .deviceScreen {
  background: #f1ede6;
  border-radius: 10px;
  padding: 14px 6px 20px 6px;
  max-height: 680px;
}

/* 58mm Bluetooth Thermal Receipt Simulation */
.thermalReceiptPaper {
  width: 100%;
  max-width: 310px;
  background: #ffffff;
  padding: 16px 12px 20px 12px;
  font-family: 'Courier New', Courier, ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.45;
  color: #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-top: 3px dashed #cbd5e1;
  border-bottom: 3px dashed #cbd5e1;
  box-sizing: border-box;
}
.thermalReceiptPaper .tCenter {
  text-align: center;
}
.thermalReceiptPaper .tBold {
  font-weight: 700;
}
.thermalReceiptPaper .tBig {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}
.thermalReceiptPaper .tDivider {
  border-bottom: 1px dashed #94a3b8;
  margin: 6px 0;
}
.thermalReceiptPaper .tDoubleDivider {
  border-bottom: 2px solid #111111;
  margin: 6px 0;
}
.thermalReceiptPaper .tRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.deviceHomeBar {
  width: 120px;
  height: 4px;
  background: #64748b;
  border-radius: 2px;
  margin-top: 14px;
}
.receiptStudioPreview {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* P&L Widget Styles */
.pnlCard {
  border-left: 4px solid var(--brand);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.04) 0%, rgba(17, 26, 43, 0.98) 100%);
}
.pnlGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.pnlStat {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pnlStat.profit {
  border-color: var(--ok);
  background: rgba(69, 212, 131, 0.08);
}
.pnlStat.loss {
  border-color: var(--bad);
  background: rgba(251, 113, 133, 0.08);
}
.pnlStat .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pnlStat .value {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.pnlStat .sub {
  font-size: 11px;
  color: var(--muted);
}
.pnlStat.profit .value {
  color: var(--ok);
}
.pnlStat.loss .value {
  color: var(--bad);
}

/* Leaderboard Styles */
.rankBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #b77e31); color: #000; box-shadow: 0 0 10px rgba(255,215,0,0.4); }
.rank-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }
.rank-other { background: var(--surface2); color: var(--muted); }

/* Map Pin & Leaflet Custom Styles */
.custom-map-pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 2px solid #ffffff;
}
.custom-map-pin::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}
.pin-green { background: #10b981; }
.pin-yellow { background: #f59e0b; }
.pin-red { background: #ef4444; }

.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-radius: var(--r) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.leaflet-popup-tip {
  background: var(--surface) !important;
}

/* User GPS Marker & Geofence Buttons */
.user-location-marker {
  position: relative;
  width: 24px;
  height: 24px;
}
.user-location-pin {
  width: 18px;
  height: 18px;
  background: #0284c7;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.8);
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
}
.user-location-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  top: -8px;
  left: -8px;
  background: rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  animation: userRadarPulse 2s infinite ease-out;
  z-index: 1;
}
@keyframes userRadarPulse {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.btn-absen-active {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  font-size: 12px !important;
  transition: all 0.2s ease !important;
}
.btn-absen-active:hover {
  background: #059669 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}
.btn-absen-locked {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border: 1px dashed rgba(255, 255, 255, 0.2) !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: not-allowed !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  opacity: 0.85 !important;
}

/* Mobile-First Responsive Polish */
@media (max-width: 768px) {
  .app-container, .shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cardHead {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  input[type="text"],
  input[type="search"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
  .btn {
    min-height: 42px;
    touch-action: manipulation;
  }
  .pnlGrid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .pnlStat {
    padding: 10px 12px;
  }
  .pnlStat .value {
    font-size: 16px;
  }
}

@media (max-width: 440px) {
  .pnlGrid {
    grid-template-columns: 1fr;
  }
  .cardHead h2 {
    font-size: 14px;
  }
}

/* --- Price Management Enhanced --- */
.priceSectionToolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
@media (min-width: 640px) {
  .priceSectionToolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.priceTabs {
  display: flex;
  gap: 6px;
  background: var(--surface2);
  padding: 4px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  width: fit-content;
}
.priceTabBtn {
  background: transparent;
  border: none;
  color: var(--muted);
  font: 600 12px var(--font);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.priceTabBtn:hover {
  color: var(--ink);
}
.priceTabBtn.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.countPill {
  font: 700 10px var(--mono);
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 10px;
  color: inherit;
}
.priceFilterRow {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 500px;
}
.priceFilterRow input,
.priceFilterRow select {
  font-size: 12px;
}
.priceTableWrap {
  max-height: 290px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(8, 13, 28, 0.5);
}
.priceTableWrap .tbl th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  box-shadow: 0 1px 0 var(--line);
}
.priceFooterInfo {
  margin-top: 8px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modal Checkbox List Styles */
.batchModalContainer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.batchModalTopBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.batchTypeSwitch {
  display: inline-flex;
  gap: 4px;
  background: var(--surface2);
  padding: 3px;
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.batchProductSection {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
}
.batchProductHeadRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.batchProductFilters {
  display: flex;
  gap: 8px;
}
.batchQuickActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.productChecklistWrap {
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 13, 28, 0.85);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 860px) {
  .productChecklistWrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .productChecklistWrap {
    grid-template-columns: 1fr;
  }
}
.productCheckItem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  min-height: 64px;
}
.productCheckItem:hover {
  background: rgba(45, 212, 191, 0.07);
  border-color: rgba(45, 212, 191, 0.3);
  transform: translateY(-1px);
}
.productCheckItem.isChecked {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35) inset;
}
.productCheckHead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.productCheckHead input[type="checkbox"] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}
.productCheckHead .productNameText {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #f1f5f9;
  word-break: break-word;
}
.productCheckFoot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
}
.productCurrentPrice {
  font: 600 11px var(--mono);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.productCurrentPrice.hasPrice {
  color: var(--brand2);
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.commissionTypeOptions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.commissionTypeCard,
label.commissionTypeCard {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
}
.commissionTypeCard:hover {
  background: rgba(45, 212, 191, 0.05);
  border-color: rgba(45, 212, 191, 0.25);
}
.commissionTypeCard.isSelected {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2) inset;
}
.commissionTypeCard input[type="radio"] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}
.commissionTypeInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.commissionTypeTitle {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.commissionTypeDesc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* ==========================================================================
   TRANSAKSI: Modern Table, Status Badges & Numbered Pagination
   ========================================================================== */
.txCard {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  background: #0d1527 !important;
}

.txTopBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  gap: 10px;
}

.txTopBarTitle {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.txTopBarActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.txTableWrap {
  overflow-x: auto;
  min-height: 280px;
}

.txTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.txTable th {
  background: #0f1a30;
  color: #94a3b8;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  white-space: nowrap;
}

.txTable td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  white-space: nowrap;
}

.txTable tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

/* Voided Row & Status Alignment */
.txRowVoided td {
  background: rgba(239, 68, 68, 0.025);
}

.txRowVoided .txReceiptLink {
  color: #f87171 !important;
  text-decoration: line-through;
  opacity: 0.85;
}

.txRowVoided .txAmount {
  color: #94a3b8;
  opacity: 0.75;
}

.txReceiptLink {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.txReceiptLink:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.txAmount {
  font-family: var(--mono);
  font-weight: 600;
  color: #f8fafc;
}

.txAmount.negative {
  color: #f87171;
}

.txSalesName {
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.txStoreName {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Unified Status Badges */
.tagStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.tagStatus.tagVoided {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.tagStatus.tagCorrection {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tagStatus.tagActive {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.btnVoidTx {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btnVoidTx:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Numbered Pagination (1 2 3 4 5 dst) */
.txPaginationContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #0f1a30;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.txPaginationLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.txPaginationInfo strong {
  color: #f1f5f9;
  font-weight: 700;
}

.txPaginationNav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.txPageBtn {
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.txPageBtn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.txPageBtn.active {
  background: #38bdf8 !important;
  border-color: #38bdf8 !important;
  color: #0b1329 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.txPageBtn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.txPageEllipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  color: #64748b;
  font-size: 12px;
}

.txPaginationRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

.txLimitSelect {
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  background: #0b1329;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
}

/* ==========================================================================
/* ==========================================================================
   GLOBAL: Panel Sub-Tabs & Clean Table Navigation
   ========================================================================== */
.stockSubTabs,
.panelSubTabs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stockSubTabBtn,
.panelSubTabBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.stockSubTabBtn:hover,
.panelSubTabBtn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.stockSubTabBtn.active,
.panelSubTabBtn.active {
  background: #38bdf8 !important;
  border-color: #38bdf8 !important;
  color: #0b1329 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.stockSubTabBtn .countPill,
.panelSubTabBtn .countPill {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  transition: all 0.15s ease;
}

.stockSubTabBtn.active .countPill,
.panelSubTabBtn.active .countPill {
  background: #0b1329;
  color: #38bdf8;
}

.stockSection,
.panelSection {
  transition: opacity 0.15s ease;
}

/* --- ENHANCED STOCK OPNAME MODAL --- */
.opnameRowsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.opnameRow {
  background: var(--surface2, #182234);
  border: 1px solid var(--border, #26354a);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.opnameRow:hover {
  border-color: var(--accent, #38bdf8);
}
.opnameRowHeader {
  display: flex;
  align-items: center;
  gap: 10px;
}
.opnameRowHeader .opnameProductSelect {
  flex: 1;
  min-width: 0;
}
.opnameSystemStockPill {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted, #94a3b8);
}
.opnameSystemStockPill strong {
  color: var(--fg, #f8fafc);
}
.opnameRowBody {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.opnameInputGroup {
  display: flex;
  align-items: center;
  gap: 8px;
}
.opnameVarianceBadge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.opnameVarianceBadge.variance-match {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.opnameVarianceBadge.variance-loss {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.opnameVarianceBadge.variance-surplus {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.opnameSummaryBox {
  display: flex;
  justify-content: space-around;
  background: var(--surface2, #182234);
  border: 1px solid var(--border, #26354a);
  border-radius: 8px;
  padding: 10px;
  margin-top: 4px;
}
.opnameSummaryItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
}
.opnameNotice {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted, #94a3b8);
}

/* ===== Shopee / GoPay Style PIN Login ===== */
.shopeePinCard {
  width: min(390px, 100%);
  background: rgba(13, 21, 38, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  text-align: center;
}
.loginBrand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}
.loginBrand .mark {
  margin-bottom: 0;
}
.brandTitle {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f8fafc;
}
.brandSubtitle {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.userSelectWrap {
  margin-bottom: 16px;
  text-align: left;
}
.userSelectWrap label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #94a3b8);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.userInputBox {
  position: relative;
  display: flex;
  align-items: center;
}
.userInputBox .userIcon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.7;
}
.loginUsernameInput {
  width: 100%;
  padding-left: 38px;
  height: 46px;
  background: #080e1a;
  border: 1px solid var(--line, #24354d);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.loginUsernameInput:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}
.userSuggestBox {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0d1526;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 14px rgba(45, 212, 191, 0.12);
}
.suggestItem {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  user-select: none;
}
.suggestItem:last-child {
  border-bottom: none;
}
.suggestItem:hover, .suggestItem.selected {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  padding-left: 20px;
}
.suggestEmpty {
  padding: 12px 16px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  font-style: italic;
}
.pinSection {
  margin-top: 14px;
}
.pinPrompt {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 12px;
}
.pinDots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 18px;
}
.pinDot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pinDot.filled {
  background: #2dd4bf;
  border-color: #2dd4bf;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.7);
  transform: scale(1.18);
}
.pinDot.error {
  border-color: #f43f5e;
  background: #f43f5e;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.7);
}
.pinDots.shake {
  animation: pinShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
.hiddenPinInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.shopeeKeypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto;
  max-width: 320px;
}
.kpBtn {
  height: 56px;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 700;
  font-family: inherit;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.12s ease-out;
}
.kpBtn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}
.kpBtn:active, .kpBtn.pressed {
  transform: scale(0.92);
  background: rgba(45, 212, 191, 0.25);
  border-color: rgba(45, 212, 191, 0.5);
  color: #2dd4bf;
}
.kpBtn.kpAction {
  font-size: 18px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
}
.kpBtn.kpAction:active, .kpBtn.kpAction.pressed {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}
.loginErrorText {
  min-height: 20px;
  font-size: 13px;
  color: #fb7185;
  font-weight: 600;
  margin: 12px 0 4px;
}
.forgotPinWrap {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}
.btnTelegramHelp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  text-decoration: none;
  transition: all 0.2s;
}
.btnTelegramHelp:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.4);
}
.fallbackOtpToggle {
  margin-top: 10px;
  font-size: 12px;
}

/* Table Loading Skeleton Shimmer */
.table-skeleton {
  width: 100%;
  border-collapse: collapse;
}
.table-skeleton th, .table-skeleton td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.skeleton-bar {
  display: inline-block;
  height: 14px;
  width: 80%;
  min-width: 60px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   ROUTES PANEL: Field Monitoring & Visit Tracker
   ========================================================================== */
.routeSummaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.routeKpiCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.routeKpiIcon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.routeKpiBody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.routeKpiLabel {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.routeKpiVal {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.routeKpiSub {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Timeline */
.routeTimelineContainer {
  padding: 8px 4px;
}

.routeTimelineList {
  display: flex;
  flex-direction: column;
}

.routeTimelineItem {
  display: flex;
  gap: 16px;
  position: relative;
}

.routeStepIndicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  flex-shrink: 0;
}

.routeStepCircle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.routeStepCircle.depoCircle {
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.routeStepLine {
  width: 2px;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 0;
}

.routeStepContent {
  flex-grow: 1;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.routeStepHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.routeTypeBadge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 4px;
}

.routeTypeBadge.depoBadge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.routeTypeBadge.storeBadge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.routeStepTitle {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.routeStoreCode {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

.routeStepTimes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.routeTimeBadge {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.routeDurationPill {
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.routeStepAddress {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.routeStepFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.routeAccuracy {
  font-size: 11px;
}

.routeMapBtn {
  font-size: 11px;
  padding: 3px 8px;
  height: auto;
  border-radius: 6px;
  text-decoration: none;
}

/* Activity Badges (Titip, Laku, Retur, Handover) */
.routeActivitiesWrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.routeActBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.routeActBadge .routeActIcon {
  font-size: 13px;
}

.routeActBadge .routeActLabel {
  font-weight: 700;
  text-transform: capitalize;
}

.routeActBadge .routeActText {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Titip: Emerald green */
.routeActBadge.actTitip {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Laku & Bayar: Blue cyan / Golden */
.routeActBadge.actLaku {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Retur: Amber orange */
.routeActBadge.actRetur {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Ambil Stok Depo: Purple indigo */
.routeActBadge.actAmbil {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Balikkan ke Depo: Rose pink */
.routeActBadge.actBalik {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Kunjungan Saja / Tanpa Mutasi: Neutral slate */
.routeActBadge.actEmpty {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  font-style: italic;
}


