/* OMS theme */
:root {
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --color-primary: #ff6b35;
  --color-primary-dark: #e55a2b;
  --color-primary-darker: #c44a1f;
  --color-primary-light: #fff7ed;
  --color-primary-border: #fed7aa;
  --color-primary-focus: rgb(255 107 53 / 0.18);
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  --sidebar-bg: #111318;
  --sidebar-border: rgb(255 255 255 / 0.07);
  --sidebar-width: 216px;
  --sidebar-collapsed-width: 56px;
  --topbar-height: 50px;
  --nav-hover-bg: rgb(255 255 255 / 0.055);
  --nav-active-bg: rgb(255 107 53 / 0.13);
  --nav-active-color: #ff6b35;
  --bg-main: #f4f5f7;
  --topbar-bg: #ffffff;
  --topbar-border: #e9eaec;
  --color-text-1: #111827;
  --color-text-2: #6b7280;
  --color-text-3: #9ca3af;
  --color-surface: #ffffff;
  --color-surface-2: #fafafa;
  --color-border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
}

* { box-sizing: border-box; }
[hidden] {
  display: none !important;
}
html, body { height: 100%; }
html {
  font-size: 14px;
}
@media (max-width: 960px) {
  html { font-size: 15px; }
}
html, body, .oms-body {
  cursor: url("/cursors/sharp-black.png") 3 2, url("/cursors/sharp-black.svg") 3 2, default !important;
}
.oms-body *,
.oms-body *::before,
.oms-body *::after {
  cursor: url("/cursors/sharp-black.png") 3 2, url("/cursors/sharp-black.svg") 3 2, default !important;
}
.oms-body img,
.oms-body svg,
.oms-body picture,
.oms-body video,
.oms-body canvas,
.oms-body iframe {
  cursor: url("/cursors/sharp-black.png") 3 2, url("/cursors/sharp-black.svg") 3 2, default !important;
  -webkit-user-drag: none;
}
.oms-body a,
.oms-body button,
.oms-body [role="button"],
.oms-body [role="tab"],
.oms-body [role="menuitem"],
.oms-body label,
.oms-body select,
.oms-body summary,
.oms-body input[type="checkbox"],
.oms-body input[type="radio"],
.oms-body input[type="file"],
.oms-body input[type="submit"],
.oms-body input[type="button"],
.oms-body input[type="reset"],
.oms-body a img,
.oms-body a svg,
.oms-body button img,
.oms-body button svg,
.oms-body [role="button"] img,
.oms-body [role="button"] svg {
  cursor: url("/cursors/sharp-black-pointer.png") 8 2, url("/cursors/sharp-black-pointer.svg") 8 2, pointer !important;
}
.oms-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.oms-body textarea,
.oms-body [contenteditable="true"] {
  cursor: url("/cursors/sharp-black-text.png") 11 11, url("/cursors/sharp-black-text.svg") 11 11, text !important;
}
.oms-body :disabled,
.oms-body [disabled],
.oms-body [aria-disabled="true"] {
  cursor: not-allowed !important;
}
/* Chromium hides url() cursors on backdrop-filter layers (modals). */
.oms-body,
.oms-body * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text-1);
  background: var(--bg-main);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg-main);
  transition: grid-template-columns 0.2s ease;
}
.app-shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.sidebar-backdrop { display: none; }

.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: #e8ecf7;
  border-right: 1px solid var(--sidebar-border);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.7rem 0.6rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  flex-shrink: 0;
}
.sidebar-brand img {
  border-radius: 6px;
  object-fit: contain;
  max-height: 28px;
  width: auto;
  flex-shrink: 0;
}
.sidebar-brand-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.sidebar-app {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.sidebar-collapse-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.9);
  cursor: pointer;
}
.sidebar-collapse-toggle:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.sidebar-collapse-toggle svg {
  width: 14px;
  height: 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.4rem;
  gap: 0.06rem;
  flex: 1;
  overflow: auto;
}
.sidebar-nav a,
.sidebar-nav-action {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.38rem 0.65rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.sidebar-nav .nav-ico {
  flex-shrink: 0;
  opacity: 0.9;
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.sidebar-nav .nav-ico--accounting,
.sidebar-nav .nav-ico--ecom-report,
.sidebar-nav .nav-ico--employees,
.sidebar-nav .nav-ico--import,
.sidebar-nav .nav-ico--tickets {
  width: 16px;
  height: 16px;
  opacity: 1;
}
.sidebar-nav a:hover,
.sidebar-nav-action:hover {
  background: var(--nav-hover-bg);
  color: #fff;
}
.sidebar-nav a:focus-visible,
.sidebar-nav-action:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.35);
  outline-offset: 1px;
}
.sidebar-nav-action:focus:not(:focus-visible) {
  outline: none;
}
.sidebar-nav a.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
  position: relative;
}
.sidebar-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.15rem 0;
  position: relative;
}
.sidebar-nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.38rem 0.65rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: rgb(255 255 255 / 0.85);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.sidebar-nav-group-toggle:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
.sidebar-nav-group--active .sidebar-nav-group-toggle {
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
}
.sidebar-nav-chevron {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-left: auto;
  opacity: 0.75;
  transition: transform 0.15s ease;
}
.sidebar-nav-chevron--open { transform: rotate(180deg); }
.sidebar-nav-sub {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar-nav-sub--open {
  display: flex;
  padding-left: 0.35rem;
}
.sidebar-nav-sub a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 1.15rem;
  font-size: 0.75rem;
}
.sidebar-nav-sub__ico {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  opacity: 0.85;
}
.sidebar-nav-sub a:hover .sidebar-nav-sub__ico,
.sidebar-nav-sub a.active .sidebar-nav-sub__ico {
  opacity: 1;
}
.sidebar-nav-flyout-title {
  display: none;
  margin: 0;
  padding: 0.4rem 0.75rem 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.45);
}

.sidebar-nav-external {
  margin-top: 0.35rem;
  border: 1px solid rgb(255 107 53 / 0.28);
  background: rgb(255 107 53 / 0.08);
}
.sidebar-nav-external:hover {
  background: rgb(255 107 53 / 0.16);
  border-color: rgb(255 107 53 / 0.42);
}

.sidebar-footer {
  padding: 0.65rem 0.7rem 0.8rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.sidebar-logout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 7px;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}
.sidebar-logout:hover { background: rgb(255 255 255 / 0.1); }

.app-shell.sidebar-collapsed .sidebar-brand-text,
.app-shell.sidebar-collapsed .sidebar-nav-label,
.app-shell.sidebar-collapsed .sidebar-nav-chevron,
.app-shell.sidebar-collapsed .nav-beta-tag,
.app-shell.sidebar-collapsed .nav-new-tag {
  display: none;
}
.app-shell.sidebar-collapsed .sidebar-nav a,
.app-shell.sidebar-collapsed .sidebar-nav-action,
.app-shell.sidebar-collapsed .sidebar-nav-group-toggle,
.app-shell.sidebar-collapsed .sidebar-logout {
  justify-content: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.app-shell.sidebar-collapsed .sidebar-nav a.active::after { display: none; }

/* Desktop: Claims opens as a hover flyout panel (expanded + collapsed) */
@media (min-width: 961px) {
  .sidebar-nav-group {
    z-index: 1;
  }
  .sidebar-nav-group:hover,
  .sidebar-nav-group:focus-within,
  .sidebar-nav-group--flyout-open {
    z-index: 80;
  }
  .sidebar-nav-group .sidebar-nav-chevron {
    transform: rotate(-90deg);
  }
  .sidebar-nav-group--flyout-open .sidebar-nav-chevron,
  .sidebar-nav-group:hover .sidebar-nav-chevron,
  .sidebar-nav-group:focus-within .sidebar-nav-chevron {
    transform: rotate(-90deg);
    opacity: 1;
  }
  .sidebar-nav-sub.sidebar-nav-flyout {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: fixed;
    left: 0;
    top: 0;
    width: max-content;
    min-width: 176px;
    max-width: min(240px, calc(100vw - var(--sidebar-width) - 24px));
    margin: 0;
    padding: 0.35rem;
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 0.12);
    background: #161a22;
    box-shadow:
      0 14px 36px rgb(0 0 0 / 0.45),
      0 0 0 1px rgb(255 255 255 / 0.04);
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
  }
  .sidebar-nav-sub.sidebar-nav-flyout::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -10px;
    width: 10px;
  }
  .sidebar-nav-group:hover .sidebar-nav-sub.sidebar-nav-flyout,
  .sidebar-nav-group:focus-within .sidebar-nav-sub.sidebar-nav-flyout,
  .sidebar-nav-group--flyout-open .sidebar-nav-sub.sidebar-nav-flyout,
  .sidebar-nav-sub.sidebar-nav-flyout.sidebar-nav-flyout--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .sidebar-nav-group:hover .sidebar-nav-group-toggle,
  .sidebar-nav-group--flyout-open .sidebar-nav-group-toggle {
    background: rgb(255 255 255 / 0.08);
    color: #fff;
  }
  .sidebar-nav-flyout-title {
    display: block;
    margin: 0;
    padding: 0.35rem 0.75rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.42);
    line-height: 1.2;
  }
  .sidebar-nav-sub.sidebar-nav-flyout a,
  .sidebar-nav-sub.sidebar-nav-flyout.sidebar-nav-sub--open a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0.4rem 0.6rem;
    padding-left: 0.6rem;
    white-space: nowrap;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgb(255 255 255 / 0.9);
    box-sizing: border-box;
  }
  .sidebar-nav-sub.sidebar-nav-flyout a .sidebar-nav-sub__ico {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    opacity: 0.88;
  }
  .sidebar-nav-sub.sidebar-nav-flyout a span {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .sidebar-nav-sub.sidebar-nav-flyout a:hover,
  .sidebar-nav-sub.sidebar-nav-flyout a.active {
    background: rgb(255 255 255 / 0.1);
    color: #fff;
  }
  .sidebar-nav-sub.sidebar-nav-flyout a.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-color);
  }
  .sidebar-nav-sub.sidebar-nav-flyout a.active .sidebar-nav-sub__ico {
    opacity: 1;
    color: var(--nav-active-color);
  }
  .sidebar-nav-sub.sidebar-nav-flyout,
  .sidebar-nav-sub.sidebar-nav-flyout.sidebar-nav-sub--open {
    padding: 0.45rem;
  }
  .app-shell.sidebar-collapsed .sidebar-nav-sub.sidebar-nav-flyout {
    max-width: min(280px, calc(100vw - var(--sidebar-collapsed-width) - 24px));
  }
}

@media (max-width: 960px) {
  .app-shell.sidebar-collapsed .sidebar-brand-text,
  .app-shell.sidebar-collapsed .sidebar-nav-label,
  .app-shell.sidebar-collapsed .sidebar-nav-chevron {
    display: initial;
  }
  .app-shell.sidebar-collapsed .sidebar-nav-label {
    display: inline;
  }
  .app-shell.sidebar-collapsed .sidebar-nav a,
  .app-shell.sidebar-collapsed .sidebar-nav-action,
  .app-shell.sidebar-collapsed .sidebar-nav-group-toggle,
  .app-shell.sidebar-collapsed .sidebar-logout {
    justify-content: flex-start;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
  /* Mobile drawer: accordion, not hover flyout */
  .sidebar-nav-sub.sidebar-nav-flyout {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto;
    min-width: 0;
    max-width: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }
  .sidebar-nav-sub.sidebar-nav-flyout:not(.sidebar-nav-sub--open) {
    display: none !important;
  }
  .sidebar-nav-sub.sidebar-nav-flyout.sidebar-nav-sub--open {
    display: flex !important;
    padding-left: 0.35rem;
  }
  .sidebar-nav-sub.sidebar-nav-flyout::before {
    display: none;
  }
  .sidebar-nav-flyout-title {
    display: none !important;
  }
  .sidebar-nav-sub.sidebar-nav-flyout a {
    padding-left: 1.35rem;
    gap: 0.5rem;
  }
}

.shell-main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--topbar-height);
  padding: 0.35rem 1rem;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text-1);
}
.topbar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 0 0.5rem;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(420px, 100%);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-2);
  padding: 0.28rem 0.65rem 0.28rem 0.55rem;
}
.topbar-search-icon { display: inline-flex; color: #64748b; flex-shrink: 0; }
.topbar-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: var(--color-text-1);
  outline: none;
  font-family: inherit;
}
.topbar-search-input::placeholder { color: #94a3b8; }
.topbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.topbar-link,
.topbar-credits {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.32rem 0.62rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.1;
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}
.topbar-link .tb-ico,
.topbar-credits .tb-ico {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.topbar-link:hover,
.topbar-link.active,
.topbar-credits:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.topbar-link-accent {
  border-color: var(--color-primary-border);
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
}
.topbar-credits {
  font-weight: 700;
  border-color: var(--color-primary-border);
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
}
.topbar-credits--low {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  color: #b91c1c;
}
/* Order lookup modal (Angular parity) */
.lookup-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.lookup-root[hidden] { display: none !important; }
.lookup-backdrop,
.lookup-panel { pointer-events: auto; }
.lookup-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(12 30 77 / 0.45);
  backdrop-filter: blur(2px);
}
.lookup-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 1.5rem));
  max-height: min(90vh, 880px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e2e8f6;
  background: #fff;
  box-shadow: 0 24px 60px rgb(15 31 77 / 0.22);
}
.lookup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #f4f7ff 0%, #fff 100%);
  border-bottom: 1px solid #e8edf7;
  flex-shrink: 0;
}
.lookup-brand { display: flex; gap: 0.65rem; align-items: center; min-width: 0; }
.lookup-brand-text { min-width: 0; }
.lookup-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}
.lookup-title { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--color-text-1); }
.lookup-sub { margin: 0.15rem 0 0; font-size: 0.72rem; font-weight: 600; color: #6b7c9e; }
.lookup-close {
  border: none;
  background: #eef2f8;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #334155;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lookup-search-wrap { padding: 0.75rem 1rem; border-bottom: 1px solid #eef2f7; flex-shrink: 0; }
.lookup-search { display: flex; gap: 0.5rem; }
.lookup-search-field { position: relative; flex: 1; min-width: 0; }
.lookup-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-size: 0.875rem;
}
.lookup-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #eef2f8;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}
.lookup-search-hint { margin: 0.45rem 0 0; font-size: 0.72rem; color: #64748b; line-height: 1.4; }
.lookup-match-meta { margin: 0.35rem 0 0; font-size: 0.72rem; font-weight: 600; color: #047857; }
.lookup-search-btn {
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0 1rem;
  cursor: pointer;
  min-width: 88px;
}
.lookup-search-btn:disabled { opacity: 0.65; cursor: not-allowed; }
#lookup-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.lookup-banner {
  margin: 0.65rem 1rem 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.lookup-banner--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lookup-loading { padding: 1rem; color: #64748b; font-size: 0.875rem; }
.lookup-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.65rem 1rem 0; flex-shrink: 0; }
.lookup-tab {
  border: 1px solid #dbe3f3;
  background: var(--color-primary-light);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lookup-tab--active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.lookup-body {
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.75rem;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.lookup-section {
  border: 1px solid #e8edf7;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fff;
}
.lookup-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.lookup-order-top { display: flex; gap: 0.85rem; align-items: flex-start; }
.lookup-thumb {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e8edf7;
}
.lookup-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1.25rem;
}
.lookup-order-main { min-width: 0; flex: 1; }
.lookup-order-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.4rem; }
.lookup-product {
  margin: 0;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--color-text-1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lookup-meta { margin: 0.3rem 0 0; font-size: 0.75rem; color: #64748b; }
.lookup-meta--master { color: #4338ca; font-weight: 600; }
.lookup-kv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2f7;
}
.lookup-kv span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}
.lookup-kv strong {
  display: block;
  font-size: 0.78rem;
  color: #1e293b;
  word-break: break-word;
  font-weight: 600;
}
.lookup-kv--wide { grid-column: span 2; }
.lookup-claim-reasons {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}
.lookup-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.lookup-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.lookup-stat {
  background: var(--color-primary-light);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #eef2f7;
}
.lookup-stat--highlight { grid-column: 1 / -1; background: #f0fdf4; border-color: #bbf7d0; }
.lookup-stat--wide { grid-column: 1 / -1; }
.lookup-stat span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lookup-stat strong { display: block; margin-top: 0.12rem; font-size: 0.8125rem; font-weight: 700; }
.lookup-profit--pos { color: #047857; }
.lookup-profit--neg { color: #b91c1c; }
.lookup-hint { margin: 0.5rem 0 0; font-size: 0.72rem; color: #64748b; }
.lookup-hint--warn { color: #b45309; }
.lookup-badge {
  display: inline-flex;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}
.lookup-badge--ok { background: #ecfdf5; color: #047857; }
.lookup-badge--warn { background: #fffbeb; color: #b45309; }
.lookup-badge--info { background: #eff6ff; color: #1d4ed8; }
.lookup-badge--neutral { background: #f1f5f9; color: #475569; }
.lookup-mp { text-transform: uppercase; letter-spacing: 0.03em; }
.lookup-mp--meesho { background: #fdf2f8; color: #be185d; }
.lookup-mp--flipkart { background: #eff6ff; color: #1746a2; }
.lookup-mp--citymall { background: #f0fdf4; color: #15803d; }
.lookup-customer-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-1);
  text-transform: capitalize;
}
.lookup-customer-addr { margin: 0.35rem 0 0; font-size: 0.8125rem; color: #475569; line-height: 1.45; }
.lookup-customer-loc { margin: 0.25rem 0 0; font-size: 0.75rem; color: #64748b; }
.lookup-empty { margin: 0; font-size: 0.8125rem; color: #94a3b8; }
.lookup-table-wrap { overflow: auto; }
.lookup-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.lookup-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 700;
}
.lookup-table th,
.lookup-table td { padding: 0.4rem 0.35rem; border-bottom: 1px solid #eef2f7; text-align: left; }
.lookup-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.lookup-loss-form { display: flex; flex-direction: column; gap: 0.55rem; }
.lookup-loss-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.lookup-loss-select,
.lookup-loss-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  box-sizing: border-box;
}
.lookup-loss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #b45309, #c2410c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}
.lookup-loss-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.lookup-loss-btn--ghost {
  background: #fff;
  color: #b45309;
  border: 1px solid #fdba74;
}
.lookup-loss-marked {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a3412;
}
.lookup-loss-marked p { margin: 0; }
@media (max-width: 720px) {
  .lookup-panel { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
  .lookup-kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-kv--wide { grid-column: span 2; }
  .lookup-split { grid-template-columns: 1fr; }
  .lookup-order-top { flex-direction: column; }
}

.topbar-credits--over {
  border-color: #f87171;
  background: linear-gradient(180deg, #fee2e2 0%, #fff 100%);
  color: #991b1b;
}
.topbar-link-label { white-space: nowrap; }

.shell-outlet {
  flex: 1;
  padding: 1rem 1.1rem;
  width: 100%;
  box-sizing: border-box;
}
.shell-outlet.is-oms-nav {
  opacity: 0.55;
  pointer-events: none;
}
.oms-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  height: 2px;
  width: 0;
  background: #ff6b35;
  opacity: 0;
  pointer-events: none;
  transition: width 0.28s ease, opacity 0.2s ease;
}
.oms-nav-progress.is-on {
  opacity: 1;
  width: 68%;
}
.oms-nav-progress.is-done {
  width: 100%;
  opacity: 0;
}

.tv-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tv-modal[hidden] { display: none !important; }
.tv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(17 19 24 / 0.55);
}
.tv-modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  height: min(82vh, 760px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.28);
  overflow: hidden;
}
.tv-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}
.tv-modal__head h2 {
  margin: 0;
  font-size: 1rem;
}
.tv-modal__head p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.tv-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
}
.tv-modal__chat {
  flex: 1;
  min-height: 0;
}
.tv-modal__confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
  flex-shrink: 0;
}
.tv-modal__confirm p {
  margin: 0;
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}
.tv-modal__reply {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #eef2f7;
  flex-shrink: 0;
}
.tv-modal__reply textarea {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  resize: none;
}
body.tv-modal-open { overflow: hidden; }

/* Auth */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, #fff7ed 0%, #f9fafb 40%, #ffffff 100%);
}
.auth-card {
  width: min(400px, 100%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.auth-sub { margin: 0.25rem 0 1.1rem; color: var(--color-text-2); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; }
.settings-field { display: flex; flex-direction: column; gap: 0.3rem; }
.settings-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-2);
}
.settings-input {
  height: 2.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font: inherit;
  background: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 2.4rem;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--ghost {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-text-1);
  height: 1.7rem;
  padding: 0 0.55rem;
  font-size: 0.72rem;
}

/* Settings page */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 52rem;
}
.settings-hero {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%);
}
.settings-hero__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.settings-panel {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 31 77 / 0.04);
}
.settings-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.settings-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.settings-section-bar .settings-section-title { margin: 0; }
.settings-muted { margin: 0; color: var(--color-text-2); font-size: 0.78rem; }
.settings-order-sync-hint { margin: 0 0 0.65rem; }
.settings-alert {
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}
.settings-alert--error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }
.settings-alert--ok { border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; }
.settings-list { display: flex; flex-direction: column; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  cursor: pointer;
}
.settings-row + .settings-row { border-top: 1px solid var(--color-border); }
.settings-row__title { font-size: 0.82rem; font-weight: 600; }
.settings-row__copy { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.settings-row__hint { font-size: 0.72rem; font-weight: 400; color: #6b7280; line-height: 1.35; }
div.settings-row { cursor: default; }
.settings-pct {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.settings-pct-input {
  width: 4.6rem;
  min-height: 2rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-1);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}
.settings-pct-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-focus);
}
.settings-pct__suffix {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-2);
}
.settings-toggle {
  height: 0.95rem;
  width: 0.95rem;
  accent-color: var(--color-primary);
}
.settings-select {
  min-width: 8.5rem;
  max-width: 12rem;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-1);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}
.settings-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-focus);
}
.settings-inactive__table-wrap { overflow-x: auto; }
.settings-inactive__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.settings-inactive__table th,
.settings-inactive__table td {
  padding: 0.4rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.settings-inactive__table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--color-text-2);
}
.settings-inactive__name { display: block; font-weight: 600; }
.settings-inactive__meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: #94a3b8;
}
.settings-inactive__actions { text-align: right; white-space: nowrap; }
.settings-inactive__btn {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.settings-inactive__btn--danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

/* Profile page */
.panel {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.muted { color: var(--color-text-2); font-size: 0.9rem; }
.profile-photo-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.25rem;
}
.profile-photo-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.profile-photo-img,
.profile-photo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-border);
}
.profile-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-1);
}
.profile-photo-actions { min-width: 0; flex: 1; }
.profile-photo-error {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 500;
}
.profile-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-primary-border);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.profile-upload-btn:hover { background: var(--color-primary-light); }
.profile-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.profile-photo-hint { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--color-text-2); }

.profile-hero.panel,
.profile-hero {
  max-width: 45rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.profile-hero .page-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-1);
}
.profile-upload-btn { position: relative; }
.profile-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-field.span-2 {
    grid-column: span 2;
  }
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.profile-field .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-2);
}
.profile-field .value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-1);
  word-break: break-word;
}
.profile-field .value a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.profile-field .value a:hover {
  text-decoration: underline;
}
.profile-hero .muted,
#profile-loading.muted {
  margin: 1rem 0 0;
  color: var(--color-text-2);
  font-size: 0.9rem;
}

.profile-company {
  margin-top: 1rem;
}
.profile-company__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.profile-company__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--color-text-1);
}
.profile-company__sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-2);
}
.profile-company__alert {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}
.profile-company__alert--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.profile-company__alert--ok {
  background: var(--color-primary-light, #f2f7f4);
  color: var(--color-primary-dark, #0a2e22);
  border: 1px solid var(--color-primary-border, #c5d9cf);
}
.profile-company__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.profile-company__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.profile-company__field--wide {
  grid-column: 1 / -1;
}
.profile-company__field > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-2);
  letter-spacing: 0.01em;
}
.profile-company__field input,
.profile-company__field select {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-1);
  font: inherit;
  font-size: 0.9rem;
}
.profile-company__field input:focus,
.profile-company__field select:focus {
  outline: none;
  border-color: var(--color-primary, #0f3d2e);
  box-shadow: 0 0 0 3px var(--color-primary-focus, rgb(15 61 46 / 0.12));
}
.profile-company__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .profile-company__form {
    grid-template-columns: 1fr;
  }
}

/* Delivery OTPs page */
.dotp-page { padding-bottom: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.dotp-hero {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%);
  box-shadow: 0 1px 3px rgb(15 31 77 / 0.06);
  padding: 0.65rem 0.85rem;
}
.dotp-hero__main {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}
.dotp-hero__brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; flex-shrink: 1; }
.dotp-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgb(255 107 53 / 0.3);
  flex-shrink: 0;
}
.dotp-hero__titles { min-width: 0; }
.dotp-hero__eyebrow {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7c9e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dotp-hero__back { color: var(--color-primary); text-decoration: none; font-weight: 700; }
.dotp-hero__back:hover { text-decoration: underline; }
.dotp-hero__title {
  margin: 0.05rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-1);
  white-space: nowrap;
}
.dotp-hero__actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.dotp-hero__scan {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--color-primary);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 2px 6px rgb(255 107 53 / 0.25);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.dotp-hero__scan:hover { filter: brightness(1.05); }
.dotp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.dotp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dotp-btn--export { border-color: #86efac; background: #ecfdf5; color: #047857; }
.dotp-btn--export:hover:not(:disabled) { background: #d1fae5; }
.dotp-btn--fetch { background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgb(255 107 53 / 0.25); }
.dotp-btn--fetch:hover:not(:disabled) { filter: brightness(1.05); }
.dotp-btn--delivered { border-color: #67e8f9; background: #ecfeff; color: #0e7490; }
.dotp-btn--delivered:hover:not(:disabled) { background: #cffafe; }
.dotp-fetch-account { display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.dotp-fetch-account select {
  width: 10.5rem;
  height: 2.2rem;
  padding: 0 1.75rem 0 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--color-primary-border);
  background: #fff;
  appearance: none;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text-1);
  cursor: pointer;
}
.dotp-fetch-account select:disabled { opacity: 0.5; cursor: not-allowed; }
.dotp-fetch-account__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7c9e;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .dotp-fetch-account__label { display: none; }
  .dotp-fetch-account select { width: 9rem; }
}
@media (max-width: 900px) {
  .dotp-hero__main { flex-wrap: wrap; }
  .dotp-hero__actions { flex-wrap: wrap; width: 100%; }
  .dotp-fetch-account { flex: 1 1 10rem; }
  .dotp-fetch-account select { width: 100%; }
}
.dotp-banner { border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.8125rem; margin: 0; }
.dotp-banner--warn { border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; }
.dotp-banner--err { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }
.dotp-banner p { margin: 0; }
.dotp-banner p.mt-1 { margin-top: 0.25rem; }
.dotp-banner a { color: inherit; font-weight: 700; text-decoration: underline; }
.dotp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
@media (max-width: 900px) { .dotp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .dotp-stats { grid-template-columns: 1fr; } }
.dotp-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 31 77 / 0.04);
}
.dotp-stat__ico { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; flex-shrink: 0; }
.dotp-stat__ico--otp { background: #eef3ff; color: #3b5bdb; }
.dotp-stat__ico--orders { background: #ecfdf5; color: #059669; }
.dotp-stat__ico--carriers { background: #f3e8ff; color: #7c3aed; }
.dotp-stat__ico--accounts { background: #fff7ed; color: #ea580c; }
.dotp-stat__label { margin: 0; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7c9e; }
.dotp-stat__value { margin: 0.1rem 0 0; font-size: 1.25rem; font-weight: 800; color: var(--color-text-1); line-height: 1.1; }
.dotp-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.dotp-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: #6b7c9e;
}
.dotp-search input { flex: 1; min-width: 0; border: none; outline: none; font-size: 0.8125rem; font-family: inherit; color: var(--color-text-1); background: transparent; }
.dotp-search input::placeholder { color: #94a3b8; }
.dotp-filter-field select {
  padding: 0.48rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text-1);
  cursor: pointer;
}
.dotp-table-wrap { border-radius: 12px; border: 1px solid var(--color-border); background: #fff; overflow: auto; box-shadow: 0 1px 3px rgb(15 31 77 / 0.05); }
.dotp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.65rem; padding: 3rem 1.5rem; text-align: center; font-size: 0.875rem; color: #6b7c9e; }
.dotp-empty p { margin: 0; max-width: 28rem; }
.dotp-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.8125rem; }
.dotp-table th { padding: 0.65rem 0.85rem; text-align: left; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7c9e; background: #f8f9fc; border-bottom: 1px solid var(--color-border); }
.dotp-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.dotp-table tbody tr:hover td { background: #fafbff; }
.dotp-supplier { vertical-align: top; }
.dotp-supplier__name { display: block; font-weight: 700; color: var(--color-text-1); }
.dotp-supplier__email { display: block; margin-top: 0.15rem; font-size: 0.72rem; color: #94a3b8; }
.dotp-carrier { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.dotp-carrier--delhivery { background: #ffe4e6; color: #be123c; }
.dotp-carrier--xpressbees { background: #ffedd5; color: #c2410c; }
.dotp-carrier--shadowfax { background: #ede9fe; color: #6d28d9; }
.dotp-carrier--valmo { background: #f1f5f9; color: #475569; }
.dotp-carrier--default { background: var(--color-primary-light); color: var(--color-primary-dark); }
.dotp-orders { font-weight: 700; font-variant-numeric: tabular-nums; }
.dotp-otp-cell { display: inline-flex; align-items: center; gap: 0.35rem; }
.dotp-otp-code {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 2px dashed #86efac;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f2a8a;
  font-variant-numeric: tabular-nums;
  background: #f0fdf4;
}
.dotp-otp-copy { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; color: #64748b; cursor: pointer; }
.dotp-otp-copy--ok { border-color: #86efac; background: #f0fdf4; color: #15803d; }
.dotp-expiry-date { display: block; font-size: 0.75rem; color: var(--color-text-1); }
.dotp-expiry-badge { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem; font-size: 0.68rem; font-weight: 700; color: #15803d; }
.dotp-expiry-badge--expired { color: #b45309; }
.dotp-expiry-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dotp-muted { color: #94a3b8; }
.dotp-row-actions { display: flex; align-items: center; gap: 0.35rem; }
.dotp-view-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.55rem; border: none; border-radius: 6px; background: #0f172a; color: #fff; font-size: 0.72rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.dotp-view-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dotp-link-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--color-primary-border); background: var(--color-primary-light); color: var(--color-primary-dark); text-decoration: none; }
.dotp-link-btn:hover { filter: brightness(0.97); }
.dotp-spin { animation: dotp-spin 0.9s linear infinite; }
@keyframes dotp-spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dotp-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.dotp-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgb(15 23 42 / 0.5); }
.dotp-modal__panel { position: relative; width: min(680px, calc(100vw - 2rem)); max-height: min(80vh, 720px); overflow: hidden; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; display: flex; flex-direction: column; }
.dotp-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); }
.dotp-modal__head h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.dotp-modal__head p { margin: 0.2rem 0 0; font-size: 0.78rem; color: #64748b; }
.dotp-modal__close { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--color-border); background: #fff; color: #334155; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dotp-modal__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
.dotp-modal__status { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; padding: 0.55rem 1rem; margin: 0; font-size: 0.78rem; font-weight: 600; color: #0f766e; background: #f0fdfa; border-bottom: 1px solid #ccfbf1; }
.dotp-modal__status--error { color: #b91c1c; background: #fef2f2; border-bottom-color: #fecaca; }
.dotp-modal__list { overflow: auto; padding: 0.5rem 1rem 1rem; }
.dotp-modal__awb { padding: 0.45rem 0.55rem; border-bottom: 1px solid #eef2f7; font-size: 0.82rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; }

/* Import delivered returns page */
.idr-page { padding-bottom: 2rem; max-width: 960px; }
.idr-hero {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%);
  box-shadow: 0 1px 3px rgb(15 31 77 / 0.06);
}
.idr-back { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 0.65rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-primary-dark); text-decoration: none; }
.idr-back:hover { text-decoration: underline; }
.idr-hero__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.idr-hero__brand { display: flex; align-items: center; gap: 0.65rem; }
.idr-hero__icon { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; background: var(--color-primary); color: #fff; }
.idr-hero__eyebrow { margin: 0; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary-dark); }
.idr-hero__title { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--color-text-1); }
.idr-hero__sub { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--color-text-2); }
.idr-banner { margin: 0 0 0.75rem; padding: 0.55rem 0.85rem; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; }
.idr-banner--ok { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.idr-banner--err { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.idr-banner--info { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.idr-card { margin-bottom: 1rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; box-shadow: 0 1px 2px rgb(15 31 77 / 0.04); }
.idr-card__title { margin: 0 0 0.35rem; font-size: 0.9375rem; font-weight: 700; color: var(--color-text-1); }
.idr-card__hint { margin: 0 0 0.85rem; font-size: 0.8125rem; color: var(--color-text-2); line-height: 1.45; }
.idr-defaults { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.idr-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--color-text-2); }
.idr-field select { padding: 0.45rem 0.55rem; border-radius: 8px; border: 1px solid var(--color-border); font-size: 0.8125rem; font-weight: 500; color: var(--color-text-1); background: #fff; }
.idr-options { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--color-border); }
.idr-option { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-1); cursor: pointer; }
.idr-option--disabled { opacity: 0.55; cursor: not-allowed; }
.idr-soon { padding: 0.1rem 0.4rem; border-radius: 999px; background: #f3f4f6; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.idr-upload { display: block; margin-bottom: 0.85rem; cursor: pointer; }
.idr-upload input { position: absolute; width: 0; height: 0; opacity: 0; }
.idr-upload__box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 2px dashed var(--color-primary-border);
  border-radius: 10px;
  background: var(--color-surface-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.idr-upload__box:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.idr-upload__name { word-break: break-all; }
.idr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 8px; border: none; font-size: 0.8125rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.idr-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.idr-btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 2px 8px var(--nav-active-bg); }
.idr-btn--secondary { background: #fff; color: var(--color-primary-dark); border: 1px solid var(--color-primary-border); }
.idr-stats { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--color-text-2); }
.idr-stats strong { display: block; font-size: 1.125rem; color: var(--color-text-1); }
.idr-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--color-border); }
.idr-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.idr-table th, .idr-table td { padding: 0.45rem 0.55rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.idr-table th { background: #f8f9fc; font-weight: 700; color: var(--color-text-2); white-space: nowrap; }
.idr-table tbody tr:last-child td { border-bottom: none; }
.idr-table__row--fail { background: #fef2f2; }
.idr-table__row--dup { background: #fffbeb; }
.idr-table__row--ignored { background: #fff7ed; }
.idr-mono { font-family: ui-monospace, monospace; font-size: 0.7rem; }
.idr-pill { display: inline-block; padding: 0.12rem 0.45rem; border-radius: 999px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.idr-pill--ok { background: #dcfce7; color: #15803d; }
.idr-pill--warn { background: #fef3c7; color: #b45309; }
.idr-pill--err { background: #fee2e2; color: #b91c1c; }
.idr-pill--dup { background: #fef3c7; color: #b45309; }
.idr-row-msg { display: block; margin-top: 0.2rem; font-size: 0.65rem; color: #b91c1c; }
.idr-spin { animation: idr-spin 0.8s linear infinite; }
@keyframes idr-spin { to { transform: rotate(360deg); } }

/* Subscription / billing page */
.billing-page-title { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 700; color: var(--color-text-1); }
.billing-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 120% at 0% 50%, #e8f0ff 0%, transparent 55%), #fff;
}
.billing-status__art { flex: 0 0 auto; width: min(11rem, 38vw); margin: -0.5rem 0 -0.75rem -0.25rem; }
.billing-status__art img { display: block; width: 100%; height: auto; object-fit: contain; }
.billing-status__body { flex: 1 1 12rem; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; min-width: 0; }
.billing-status__body p { margin: 0; }
.billing-status__body .price-line { font-size: 1.15rem; font-weight: 700; color: var(--color-text-1); margin-top: 0.15rem; }
.billing-status__body .plan-meta { font-size: 0.85rem; color: var(--color-text-2); margin-top: 0.3rem; }
.billing-status__body .plan-meta--credits { margin-top: 0.35rem; }
.btn-open-pricing {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgb(255 107 53 / 0.25);
}
.btn-open-pricing:hover:not(:disabled) { filter: brightness(1.05); }
.btn-open-pricing:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.pricing-modal-root { position: fixed; inset: 0; z-index: 95; }
.pricing-modal-backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.45); backdrop-filter: blur(2px); }
.pricing-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 1.5rem));
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.2);
  overflow: auto;
}
.pricing-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.pricing-modal-title { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--color-text-1); }
.pricing-modal-sub { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--color-text-2); }
.pricing-modal-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; color: #475569; cursor: pointer; }
.pricing-modal-close:disabled { opacity: 0.45; cursor: not-allowed; }
.pricing-modal-banner { margin-bottom: 0.75rem; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; align-items: stretch; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.15rem 1.1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 31 77 / 0.06);
}
.pricing-card:hover { border-color: var(--color-primary-border); box-shadow: 0 8px 20px rgb(255 107 53 / 0.1); }
.pricing-card--featured { border-color: var(--color-primary); background: linear-gradient(180deg, #fafbff 0%, #fff 55%); box-shadow: 0 8px 24px rgb(255 107 53 / 0.12); }
.pricing-card--illustrated { padding-top: 0.85rem; background: radial-gradient(ellipse 90% 55% at 50% 0%, #e8f1ff 0%, transparent 70%), #fff; }
.pricing-card__art { display: flex; align-items: center; justify-content: center; margin: 0 -0.35rem 0.15rem; min-height: 7.5rem; max-height: 11rem; overflow: hidden; }
.pricing-card__art img { display: block; width: 100%; max-width: 12rem; height: auto; max-height: 11rem; object-fit: contain; }
.pricing-card__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-card__name { margin: 0; font-size: 0.8125rem; font-weight: 700; line-height: 1.35; color: var(--color-text-1); }
.pricing-card__name--badge { padding-right: 3.5rem; }
.pricing-card__rate { margin: 0; font-size: 0.8rem; color: var(--color-text-2); }
.pricing-card__price { margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text-1); }
.pricing-card__period { font-size: 0.8rem; font-weight: 600; color: var(--color-text-2); }
.pricing-card__btn { width: 100%; margin-top: auto; padding: 0.55rem 0.75rem; font-size: 0.8125rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.shell-billing .banner-warn { background: #fff7e8; color: #7a4b00; border: 1px solid #f3d095; padding: 0.75rem 0.95rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.95rem; }
.shell-billing .banner-ok { background: #e9fbf1; color: #0d5f35; border: 1px solid #bde8cf; }
.shell-billing .banner-error { background: #fff1f2; color: #9f1020; border: 1px solid #fbc7cd; }
.dash-muted-copy { color: var(--color-text-2); font-size: 0.88rem; margin: 0; }
.billing-section-title { margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 700; color: var(--color-text-1); }
.shell-billing .billing-history { margin-bottom: 1.5rem; }
.billing-history-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.billing-history-head .billing-section-title { margin: 0; }
.billing-history-count { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7c9e; }
.billing-history-banner { margin-bottom: 0; }
.history-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.history-table th, .history-table td { padding: 0.55rem 0.65rem; text-align: left; border-bottom: 1px solid #eef1f8; vertical-align: top; }
.history-table th { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7c9e; background: var(--color-primary-light); }
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover td { background: #fafbff; }
.history-date { white-space: nowrap; color: #3b4f7a; }
.history-id { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 0.75rem; color: var(--color-primary-dark); }
.history-num { font-variant-numeric: tabular-nums; color: var(--color-text-1); }
.history-detail { max-width: 220px; color: var(--color-text-2); line-height: 1.35; }
.history-badge { display: inline-block; padding: 0.2rem 0.45rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.history-badge--ok { background: #e9fbf1; color: #0d5f35; border: 1px solid #bde8cf; }
.history-badge--warn { background: #fff7e8; color: #7a4b00; border: 1px solid #f3d095; }
.history-badge--neutral { background: #eef3ff; color: var(--color-primary-dark); border: 1px solid var(--color-primary-border); }

/* ========================================================================
   Shared marketplace list-page kit (Orders / Returns / Payments)
   ======================================================================== */
.ord-page, .ret-page, .pay-page {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@keyframes mp-spin-kf { to { transform: rotate(360deg); } }
.mp-spin { animation: mp-spin-kf 0.9s linear infinite; }

.mp-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%);
}
.mp-hero__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}
.mp-hero__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.mp-hero__titles { display: flex; flex-direction: column; line-height: 1.1; }
.mp-hero__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-3);
}
.mp-hero__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.mp-pills {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.045);
  border: 1px solid var(--color-border);
}
.mp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-text-2);
  font-weight: 700;
  font-size: 0.74rem;
  cursor: pointer;
  font-family: inherit;
}
.mp-pill__logo { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; }
.mp-pill:hover { color: var(--color-text-1); }
.mp-pill.active {
  background: #fff;
  color: var(--color-text-1);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.mp-pill--meesho.active { color: #D91F7E; }
.mp-pill--citymall.active { color: #C2185B; }
.mp-pill--flipkart.active { color: #1A5DC8; }
.mp-pill--myntra.active { color: #E0355C; }

.mp-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
.ord-sync-note {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-3);
  white-space: nowrap;
}
.mp-hero__field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.mp-hero__field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-3);
  line-height: 1;
}
.mp-hero__field select,
.mp-hero__field input[type="date"] {
  height: 1.9rem;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 0 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  background: #fff;
  min-width: 9.5rem;
  max-width: 14rem;
}
.mp-hero__field input[type="date"] {
  min-width: 8.6rem;
  max-width: 11rem;
}
.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.9rem;
  padding: 0 0.7rem;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-1);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.mp-btn:hover { border-color: var(--color-primary); }
.mp-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.mp-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.mp-btn--primary:hover { background: var(--color-primary-dark); }
.mp-btn--ok { background: #059669; border-color: #059669; color: #fff; }
.mp-btn--ok:hover { background: #047857; }
.mp-btn--warn {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}
.mp-btn--warn:hover { background: #9a3412; }

.mp-courier {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
  background: #fffbeb;
}
.mp-courier__row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mp-courier__dismiss { margin-left: auto; }
.mp-courier__status { margin: 0; font-size: 0.78rem; color: var(--color-text-2); }
.mp-courier__status--err { color: #b91c1c; font-weight: 600; }

.mp-banner {
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mp-banner--ok { border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; }
.mp-banner--err { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }
.mp-banner--info { border: 1px solid #bae6fd; background: #f0f9ff; color: #075985; }

.mp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.1rem;
}
.mp-tabs--sub { border-bottom: none; padding: 0.1rem 0; }
.mp-overdue-age {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0 0.55rem;
}
.mp-overdue-age[hidden] { display: none !important; }
.mp-overdue-age__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  user-select: none;
}
.mp-overdue-age__check input { accent-color: #c2410c; }
.mp-overdue-age__count {
  font-weight: 800;
  color: #c2410c;
}
.mp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text-2);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  border-radius: 6px 6px 0 0;
}
.mp-tab:hover { background: rgb(15 23 42 / 0.035); color: var(--color-text-1); }
.mp-tab__count {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.06);
  color: var(--color-text-2);
  min-width: 1.1rem;
  text-align: center;
}
.mp-tab--active {
  color: var(--color-text-1);
  border-bottom-color: var(--color-primary);
  background: rgb(255 107 53 / 0.06);
}
.mp-tab--active .mp-tab__count { background: var(--color-primary); color: #fff; }
.mp-tab--warn.mp-tab--active { border-bottom-color: #d97706; }
.mp-tab--warn.mp-tab--active .mp-tab__count { background: #d97706; }
.mp-tab--info.mp-tab--active { border-bottom-color: #2563eb; }
.mp-tab--info.mp-tab--active .mp-tab__count { background: #2563eb; }
.mp-tab--ok.mp-tab--active { border-bottom-color: #059669; }
.mp-tab--ok.mp-tab--active .mp-tab__count { background: #059669; }

.mp-panel {
  padding: 0.6rem 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 31 77 / 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.mp-filters__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-3);
}
.mp-filters__check {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.mp-filters__field {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  color: var(--color-text-2);
}
.mp-filters__field input {
  height: 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0 0.4rem;
  font: inherit;
  font-size: 0.76rem;
}
.mp-filters__btn {
  height: 1.8rem;
  padding: 0 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  font-family: inherit;
}
.mp-filters__btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.mp-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.mp-toolbar__pagesize {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-text-2);
}
.mp-toolbar__pagesize select {
  height: 1.7rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.75rem;
}
.mp-toolbar__count { margin-left: auto; font-size: 0.76rem; color: var(--color-text-2); white-space: nowrap; }
.mp-toolbar__export {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mp-toolbar__dates {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* Orders filter grid (Angular parity) */
.orders-filters {
  padding-bottom: 0.65rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border);
}
.orders-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.orders-filters__search {
  flex: 1 1 12rem;
  min-width: 12rem;
  max-width: none;
}
.orders-filters__rts { display: contents; }
.orders-filters__section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}
.orders-filters__hint {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
}
.orders-filters__chip {
  height: 1.9rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.orders-filters__chip:hover { border-color: #c7d2fe; color: #3730a3; background: #eef2ff; }
.orders-filters__chip--active {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #3730a3;
}
.orders-filters__date-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}
.orders-filters__date-field input[type='date'] {
  height: 1.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0 0.45rem;
  font: inherit;
  font-size: 0.78rem;
  color: var(--color-text-1);
}
.orders-filters__select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}
.orders-filters__select select {
  height: 1.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0 0.5rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-1);
}
.orders-filters__apply {
  height: 1.9rem;
  border: none;
  border-radius: 8px;
  padding: 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  cursor: pointer;
  font-family: inherit;
}
.orders-filters__apply:hover { background: var(--color-primary-dark); }
.orders-filters__active {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary-darker);
  white-space: nowrap;
}
.orders-filters__clear-all {
  border: none;
  background: transparent;
  padding: 0.25rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-family: inherit;
}
.orders-filters__clear-all:hover { color: var(--color-primary-darker); text-decoration: underline; }

.orders-filters__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-2);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.orders-filters__check:hover { border-color: var(--color-primary-border); background: var(--color-primary-light); }
.orders-filters__check:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-darker);
  box-shadow: 0 0 0 3px var(--color-primary-focus);
}
.orders-filters__check input {
  margin: 0;
  accent-color: var(--color-primary);
  width: 0.95rem;
  height: 0.95rem;
  cursor: pointer;
}
.orders-filters__check-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 0.68rem;
  font-weight: 800;
}
.ord-map {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 16rem;
}
.ord-map__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.ord-map__mapped {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ord-map__row {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
}
.ord-map__input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--color-text-1);
}
.ord-map__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-focus);
  background: #fff;
}
.ord-map__btn {
  flex-shrink: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.ord-map__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ord-map__results {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 8px 20px rgb(15 31 77 / 0.1);
  max-height: 10rem;
  overflow-y: auto;
  z-index: 5;
}
.ord-map__opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text-1);
  cursor: pointer;
}
.ord-map__opt:hover,
.ord-map__opt--active { background: var(--color-primary-light); }
.ord-map__status {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}
.ord-map__selected {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
}

.orders-filters__bulk-map {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
  position: relative;
}
.orders-filters__bulk-map[hidden] { display: none !important; }
.orders-filters__bulk-map-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.orders-filters__bulk-map-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 22rem;
  padding: 0.4rem 0.65rem;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-2);
}
.orders-filters__bulk-map-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-focus);
}
.orders-filters__bulk-map-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-1);
}
.orders-filters__bulk-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 9px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 10px rgb(255 107 53 / 0.22);
}
.orders-filters__bulk-map-btn:hover:not(:disabled) { filter: brightness(1.04); }
.orders-filters__bulk-map-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.orders-filters__bulk-map-btn[hidden] { display: none !important; }
.orders-filters__bulk-map-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a3412;
}
.orders-filters__bulk-map-meta[hidden] { display: none !important; }
.orders-filters__bulk-map-results {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 10px 24px rgb(15 31 77 / 0.12);
  max-height: 12rem;
  overflow-y: auto;
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  top: calc(100% - 0.15rem);
  z-index: 30;
}
.orders-filters__bulk-map-results[hidden] { display: none !important; }
.orders-filters__bulk-map-results .ord-map__opt {
  font-size: 0.8rem;
  padding: 0.5rem 0.6rem;
}
.orders-filters__bulk-map-status,
.orders-filters__bulk-map-picked {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
}
.orders-filters__bulk-map-status { color: #64748b; }
.orders-filters__bulk-map-picked { color: #047857; }
.orders-filters__bulk-map-status[hidden],
.orders-filters__bulk-map-picked[hidden] { display: none !important; }

.orders-category-filter { position: relative; }
.orders-category-filter__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.orders-category-filter__trigger:hover { border-color: #ffc9a8; }
.orders-category-filter__trigger--active {
  border-color: #ffb088;
  background: #fff4ed;
  color: var(--color-primary-darker);
}
.orders-category-filter__count {
  font-size: 0.72rem;
  color: var(--color-primary-dark);
}
.orders-category-filter__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  min-width: 14rem;
  max-width: 18rem;
  max-height: 16rem;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.12);
}
.orders-category-filter__panel--accounts {
  min-width: 16rem;
  max-width: 22rem;
}
.orders-category-filter__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  font-size: 0.78rem;
  color: #334155;
  cursor: pointer;
  border-radius: 6px;
}
.orders-category-filter__option:hover { background: #f8fafc; }
.orders-category-filter__option input { flex-shrink: 0; accent-color: var(--color-primary); }
.orders-category-filter__apply {
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  background: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.orders-category-filter__apply:hover { background: var(--color-primary-dark); }
.orders-category-filter__clear {
  width: 100%;
  margin-top: 0.35rem;
  border: none;
  border-top: 1px solid var(--color-border);
  background: transparent;
  padding: 0.5rem 0.25rem 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
}
.orders-category-filter__clear:hover { color: var(--color-primary-dark); }

.mp-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-2);
  padding: 0.24rem 0.6rem;
  color: #64748b;
  flex: 1;
  min-width: 12rem;
  max-width: 22rem;
}
.mp-search input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 0.8rem;
  color: var(--color-text-1);
  flex: 1;
  min-width: 0;
}

.mp-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  border: 1px solid var(--color-primary-border);
  background: var(--color-primary-light);
}
.mp-bulk__meta { font-size: 0.78rem; color: var(--color-text-2); }
.mp-bulk__actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.mp-bulk__btn {
  height: 1.8rem;
  padding: 0 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  font-family: inherit;
}
.mp-bulk__btn--ok { background: #059669; border-color: #059669; color: #fff; }
.mp-bulk__btn--warn { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.ord-action-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}
.ord-action-bar[hidden] { display: none !important; }
.ord-action-bar .mp-bulk__btn { height: 2.1rem; padding: 0 0.85rem; font-size: 0.8rem; }
.ord-action-bar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.05rem 0.4rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.22);
  font-size: 0.68rem;
  font-weight: 800;
}
.ord-job-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ord-job-modal[hidden] { display: none !important; }
.ord-job-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(2px);
}
.ord-job-modal__box {
  position: relative;
  width: min(420px, 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 24px 48px rgb(15 31 77 / 0.18);
  overflow: hidden;
}
.ord-job-modal__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.ord-job-modal__titles { min-width: 0; flex: 1; }
.ord-job-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: -0.15rem -0.25rem 0 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.ord-job-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.ord-job-modal__close[hidden] { display: none !important; }
.ord-job-modal__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
}
.ord-job-modal__icon--green { background: #dcfce7; color: #16a34a; }
.ord-job-modal__icon--blue { background: #dbeafe; color: #2563eb; }
.ord-job-modal__title { margin: 0; font-size: 0.9375rem; font-weight: 700; color: #0f172a; }
.ord-job-modal__sub { margin: 0.125rem 0 0; font-size: 0.75rem; color: #64748b; }
.ord-job-modal__body { padding: 1rem 1.25rem 1.25rem; }
.ord-job-modal__progress[hidden],
.ord-job-modal__ready[hidden] { display: none !important; }
.ord-job-modal__track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.ord-job-modal__bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.ord-job-modal__bar--green { background: linear-gradient(90deg, #16a34a, #22c55e); }
.ord-job-modal__bar--blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.ord-job-modal__pct {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}
.ord-job-modal__msg { margin: 0.35rem 0 0; font-size: 0.8125rem; color: #475569; }
.ord-job-modal__ready-hint {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}
.ord-job-modal__dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(37 99 235 / 0.28);
}
.ord-job-modal__dl-btn:hover:not(:disabled) { filter: brightness(1.05); }
.ord-job-modal__dl-btn:disabled { opacity: 0.65; cursor: not-allowed; box-shadow: none; }

/* Manifest download modal */
.ord-manifest-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.ord-manifest-modal[hidden] { display: none !important; }
.ord-manifest-modal__backdrop {
  position: absolute; inset: 0;
  background: rgb(15 23 42 / 0.5); backdrop-filter: blur(2px);
}
.ord-manifest-modal__box {
  position: relative; width: min(560px, 100%); max-height: min(88vh, 720px);
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid #e2e8f0; background: #fff;
  box-shadow: 0 24px 48px rgb(15 31 77 / 0.2); overflow: hidden;
}
.ord-manifest-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid #f1f5f9;
}
.ord-manifest-modal__title { margin: 0; font-size: 1.05rem; font-weight: 750; color: #0f172a; }
.ord-manifest-modal__sub { margin: 0.25rem 0 0; font-size: 0.8rem; color: #64748b; line-height: 1.4; }
.ord-manifest-modal__close {
  border: none; background: transparent; color: #64748b; font-size: 1.4rem;
  width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer; line-height: 1; flex-shrink: 0;
}
.ord-manifest-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.ord-manifest-modal__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.15rem; border-bottom: 1px solid #f1f5f9; background: #f8fafc;
}
.ord-manifest-modal__hint { margin: 0; font-size: 0.78rem; color: #64748b; flex: 1; min-width: 10rem; }
.ord-manifest-modal__err {
  margin: 0; padding: 0.65rem 1.15rem; font-size: 0.8rem; font-weight: 650;
  color: #991b1b; background: #fef2f2; border-bottom: 1px solid #fecaca;
}
.ord-manifest-modal__err[hidden] { display: none !important; }
.ord-manifest-modal__list {
  overflow: auto; padding: 0.65rem 0.85rem 1rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.ord-manifest-modal__empty {
  margin: 1.5rem 0; text-align: center; color: #94a3b8; font-size: 0.85rem;
}
.ord-manifest-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
}
.ord-manifest-row__avatar {
  width: 2.2rem; height: 2.2rem; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff7ed; color: #c2410c; font-size: 0.72rem; font-weight: 800;
}
.ord-manifest-row__meta { flex: 1; min-width: 0; }
.ord-manifest-row__name {
  margin: 0; font-size: 0.88rem; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ord-manifest-row__id {
  margin: 0.1rem 0 0; font-size: 0.72rem; color: #94a3b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ord-manifest-row__status {
  font-size: 0.7rem; font-weight: 700; color: #64748b; min-width: 4.5rem; text-align: right;
}
.ord-manifest-row__status--ok { color: #047857; }
.ord-manifest-row__status--err { color: #b91c1c; }
.ord-manifest-row__status--busy { color: #c2410c; }
.ord-manifest-row__btn {
  flex-shrink: 0; padding: 0.4rem 0.7rem; font-size: 0.76rem;
}

/* Flipkart pickup OTC modal */
.ord-otc-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.ord-otc-modal[hidden] { display: none !important; }
.ord-otc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgb(15 23 42 / 0.5); backdrop-filter: blur(2px);
}
.ord-otc-modal__box {
  position: relative; width: min(560px, 100%); max-height: min(88vh, 720px);
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid #e2e8f0; background: #fff;
  box-shadow: 0 24px 48px rgb(15 31 77 / 0.2); overflow: hidden;
}
.ord-otc-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1.05rem; border-bottom: 1px solid #f1f5f9;
}
.ord-otc-modal__title { margin: 0; font-size: 1.05rem; font-weight: 750; color: #0f172a; }
.ord-otc-modal__close {
  border: none; background: transparent; color: #64748b; font-size: 1.4rem;
  width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer; line-height: 1; flex-shrink: 0;
}
.ord-otc-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.ord-otc-modal__list {
  overflow: auto; padding: 0.75rem 0.9rem 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.ord-otc-modal__empty {
  margin: 1.5rem 0; text-align: center; color: #94a3b8; font-size: 0.85rem;
}

.ord-master-summary-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ord-master-summary-modal[hidden] { display: none !important; }
.ord-master-summary-modal__backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45);
}
.ord-master-summary-modal__box {
  position: relative; z-index: 1; width: min(48rem, 100%); max-height: min(84vh, 760px);
  display: flex; flex-direction: column; gap: 0.75rem;
  background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18); padding: 1rem 1.1rem 1.1rem;
}
.ord-master-summary-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.ord-master-summary-modal__title { margin: 0; font-size: 1.05rem; font-weight: 750; color: #0f172a; }
.ord-master-summary-modal__sub { margin: 0.25rem 0 0; font-size: 0.8rem; color: #64748b; line-height: 1.4; }
.ord-master-summary-modal__close {
  border: 0; background: transparent; color: #64748b; font-size: 1.4rem; line-height: 1;
  cursor: pointer; border-radius: 8px; width: 2rem; height: 2rem;
}
.ord-master-summary-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.ord-master-summary-modal__stats {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ord-master-summary-modal__stat {
  display: inline-flex; flex-direction: column; gap: 0.1rem;
  min-width: 5.5rem; padding: 0.45rem 0.65rem; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa;
}
.ord-master-summary-modal__stat strong { font-size: 1.05rem; color: #9a3412; font-variant-numeric: tabular-nums; }
.ord-master-summary-modal__stat span { font-size: 0.68rem; font-weight: 700; color: #c2410c; text-transform: uppercase; letter-spacing: 0.03em; }
.ord-master-summary-modal__sizes {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.55rem 0.65rem; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.ord-master-summary-modal__sizes[hidden] { display: none !important; }
.ord-master-summary-modal__sizes-label {
  margin: 0; font-size: 0.68rem; font-weight: 750; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ord-master-summary-modal__size-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.ord-master-summary-modal__size-chip {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  background: #fff; border: 1px solid #cbd5e1;
  font-size: 0.78rem; color: #0f172a;
}
.ord-master-summary-modal__size-chip strong { font-weight: 750; }
.ord-master-summary-modal__size-chip em {
  font-style: normal; font-weight: 800; color: #9a3412;
  font-variant-numeric: tabular-nums;
}
.ord-master-summary-modal__table-wrap {
  overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; min-height: 0; flex: 1;
}
.ord-master-summary-modal__table {
  width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
.ord-master-summary-modal__table th {
  position: sticky; top: 0; background: #f8fafc; text-align: left;
  padding: 0.55rem 0.7rem; border-bottom: 1px solid #e2e8f0; color: #64748b;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.ord-master-summary-modal__table td {
  padding: 0.55rem 0.7rem; border-bottom: 1px solid #f1f5f9; color: #0f172a; vertical-align: top;
}
.ord-master-summary-modal__row--master td:first-child { font-weight: 700; }
.ord-master-summary-modal__row--total td {
  background: #f8fafc; color: #475569; font-weight: 700; border-bottom: 1px solid #e2e8f0;
}
.ord-master-summary-modal__table .ord-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.ord-master-summary-modal__empty { text-align: center !important; color: #94a3b8; padding: 1.25rem !important; }

.ord-summary {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 0.15rem 0 0.25rem;
}
.ord-summary[hidden] { display: none !important; }
.ord-summary__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.ord-summary__title { margin: 0; font-size: 1rem; font-weight: 750; color: #0f172a; }
.ord-summary__sub { margin: 0.2rem 0 0; font-size: 0.78rem; color: #64748b; line-height: 1.4; }
.ord-summary__stats { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ord-summary__stat {
  display: inline-flex; flex-direction: column; gap: 0.08rem;
  min-width: 4.8rem; padding: 0.4rem 0.6rem; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa;
}
.ord-summary__stat strong { font-size: 1rem; color: #9a3412; font-variant-numeric: tabular-nums; }
.ord-summary__stat span { font-size: 0.64rem; font-weight: 700; color: #c2410c; text-transform: uppercase; letter-spacing: 0.03em; }
.ord-summary__sources { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ord-summary__chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid #e2e8f0; background: #fff; color: #475569;
  border-radius: 999px; padding: 0.28rem 0.65rem; font: inherit; font-size: 0.76rem; font-weight: 700;
  cursor: pointer;
}
.ord-summary__chip em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; color: #9a3412; }
.ord-summary__chip:hover { border-color: #fdba74; background: #fff7ed; }
.ord-summary__chip--active { border-color: #ea580c; background: #fff7ed; color: #9a3412; }
.ord-summary__table-wrap {
  overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; max-height: min(70vh, 720px);
}
.ord-summary__table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ord-summary__table th {
  position: sticky; top: 0; z-index: 2; background: #f8fafc; text-align: left;
  padding: 0.55rem 0.65rem; border-bottom: 1px solid #e2e8f0; color: #64748b;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.ord-summary__table th.ord-num, .ord-summary__table td.ord-num {
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 700;
}
.ord-summary__table td {
  padding: 0.5rem 0.65rem; border-bottom: 1px solid #f1f5f9; color: #0f172a; vertical-align: top; white-space: nowrap;
}
.ord-summary__table th:first-child, .ord-summary__table td:first-child {
  position: sticky; left: 0; z-index: 1; background: #fff; min-width: 10rem;
}
.ord-summary__table th:first-child { z-index: 3; background: #f8fafc; }
.ord-summary__row--master td:first-child { font-weight: 750; }
.ord-summary__row--unmapped td:first-child { color: #b45309; font-weight: 650; }
.ord-summary__row--total td { background: #f8fafc; color: #475569; font-weight: 700; border-bottom: 1px solid #e2e8f0; }
.ord-summary__row--total td:first-child { background: #f8fafc; }
.ord-summary__row--grand td { background: #fff7ed; color: #9a3412; font-weight: 800; border-top: 1px solid #fed7aa; }
.ord-summary__row--grand td:first-child { background: #fff7ed; }
.ord-summary__zero { color: #cbd5e1; }
.ord-summary__empty { text-align: center !important; color: #94a3b8; padding: 1.4rem !important; }

.ord-awb-label-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ord-awb-label-modal[hidden] { display: none !important; }
.ord-awb-label-modal__backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45);
}
.ord-awb-label-modal__box {
  position: relative; z-index: 1; width: min(46rem, 100%); max-height: min(88vh, 760px);
  display: flex; flex-direction: column; gap: 0.7rem;
  background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18); padding: 1rem 1.1rem 1.1rem;
}
.ord-awb-label-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.ord-awb-label-modal__title { margin: 0; font-size: 1.05rem; font-weight: 750; color: #0f172a; }
.ord-awb-label-modal__sub { margin: 0.25rem 0 0; font-size: 0.8rem; color: #64748b; line-height: 1.4; }
.ord-awb-label-modal__close {
  border: 0; background: transparent; color: #64748b; font-size: 1.4rem; line-height: 1;
  cursor: pointer; border-radius: 8px; width: 2rem; height: 2rem;
}
.ord-awb-label-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.ord-awb-label-modal__scan {
  display: flex; align-items: flex-end; gap: 0.5rem; flex-wrap: wrap;
}
.ord-awb-label-modal__field {
  display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 12rem;
}
.ord-awb-label-modal__field--block { width: 100%; }
.ord-awb-label-modal__field span {
  font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em;
}
.ord-awb-label-modal__input,
.ord-awb-label-modal__paste {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0.55rem 0.7rem;
  font: inherit; font-size: 0.9rem; color: #0f172a; background: #fff;
}
.ord-awb-label-modal__input:focus,
.ord-awb-label-modal__paste:focus {
  outline: 2px solid #fdba74; outline-offset: 1px; border-color: #fb923c;
}
.ord-awb-label-modal__paste { resize: vertical; min-height: 4.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }
.ord-awb-label-modal__actions {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
}
.ord-awb-label-modal__stats {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.ord-awb-label-modal__stat {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #334155;
}
.ord-awb-label-modal__stat--ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ord-awb-label-modal__stat--miss { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.ord-awb-label-modal__hint { margin: 0; font-size: 0.75rem; color: #64748b; line-height: 1.4; }
.ord-awb-label-modal__table-wrap {
  overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; min-height: 0; flex: 1;
}
.ord-awb-label-modal__table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.ord-awb-label-modal__table th {
  position: sticky; top: 0; background: #f8fafc; text-align: left;
  padding: 0.5rem 0.65rem; border-bottom: 1px solid #e2e8f0; color: #64748b;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.ord-awb-label-modal__table td {
  padding: 0.5rem 0.65rem; border-bottom: 1px solid #f1f5f9; color: #0f172a; vertical-align: top;
}
.ord-awb-label-modal__empty { text-align: center !important; color: #94a3b8; padding: 1.25rem !important; }
.ord-awb-label-modal__pill {
  display: inline-flex; padding: 0.1rem 0.4rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 750;
}
.ord-awb-label-modal__pill--ok { background: #d1fae5; color: #047857; }
.ord-awb-label-modal__pill--miss { background: #fee2e2; color: #b91c1c; }
.ord-awb-label-modal__pill--dup { background: #e0e7ff; color: #3730a3; }

.ord-otc-card {
  border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden;
}
.ord-otc-row {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem;
}
.ord-otc-row__main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.ord-otc-row__name {
  margin: 0;
  font-size: 0.86rem; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ord-otc-row__total {
  display: inline-flex; align-self: flex-start;
  padding: 0.1rem 0.45rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 750; letter-spacing: 0.02em;
  color: #3730a3; background: #eef2ff; border: 1px solid #c7d2fe;
}
.ord-otc-row__total--muted { color: #94a3b8; background: #f8fafc; border-color: #e2e8f0; }
.ord-otc-row__code {
  margin: 0; flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem; font-weight: 800; letter-spacing: 0.12em; color: #3730a3;
}
.ord-otc-row__err {
  margin: 0; flex-shrink: 0; max-width: 8rem;
  font-size: 0.72rem; font-weight: 650; color: #b91c1c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ord-otc-row__btn {
  flex-shrink: 0; min-width: 3.4rem; padding: 0.4rem 0.7rem; font-size: 0.76rem;
  background: #4f46e5; color: #fff; border-color: #4f46e5;
}
.ord-otc-row__btn:hover:not(:disabled) { background: #4338ca; border-color: #4338ca; }
.ord-otc-row__btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ord-otc-ship {
  list-style: none; margin: 0; padding: 0 0.65rem 0.65rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  max-height: 14rem; overflow: auto;
  border-top: 1px solid #f1f5f9;
}
.ord-otc-ship__item {
  display: flex; align-items: flex-start; gap: 0.55rem;
  padding: 0.4rem 0.35rem 0; border-top: 1px dashed #eef2f7;
}
.ord-otc-ship__item:first-child { border-top: none; padding-top: 0.55rem; }
.ord-otc-ship__awb {
  flex-shrink: 0; min-width: 7.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem; font-weight: 700; color: #334155;
}
.ord-otc-ship__body {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.ord-otc-ship__title {
  font-size: 0.74rem; font-weight: 650; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ord-otc-ship__meta {
  font-size: 0.66rem; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ord-otc-ship__empty,
.ord-otc-ship__err {
  margin: 0; padding: 0.45rem 0.75rem 0.65rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.74rem; color: #94a3b8;
}
.ord-otc-ship__err { color: #b91c1c; }

.mp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  color: var(--color-text-2);
  text-align: center;
}
.mp-empty p { margin: 0; font-size: 0.85rem; }

.mp-table-wrap { overflow-x: auto; position: relative; }
.mp-table-wrap--busy {
  pointer-events: none;
  opacity: 0.55;
}
.mp-table { width: 100%; border-collapse: collapse; font-size: 0.79rem; }
.mp-table th, .mp-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.mp-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-2);
  white-space: nowrap;
}
.mp-table td.num, .mp-table th.num { text-align: right; }
.mp-th-check, .mp-td-check { width: 2rem; }
.mp-mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.mp-awb--missing { color: #b45309; font-weight: 700; }
button.mp-mono, button.mp-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}
button.mp-link:hover { text-decoration: underline; }
.mp-muted { display: block; font-size: 0.68rem; color: #94a3b8; margin-top: 0.1rem; }
.mp-product { display: block; font-weight: 600; }
.mp-product-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}
.mp-product-text { min-width: 0; flex: 1; }
.order-thumb-btn,
.returns-thumb-btn {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.order-thumb-btn:hover,
.returns-thumb-btn:hover {
  border-color: var(--color-primary-border, #fed7aa);
}
.order-thumb,
.returns-thumb {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  background: #f8fafc;
}
.order-thumb--empty,
.returns-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  color: #94a3b8;
  flex-shrink: 0;
}
.mp-remark-pill {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.mp-remark-pill--special {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.mp-account { font-size: 0.78rem; }
.mp-date { font-size: 0.76rem; white-space: nowrap; }
.mp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgb(15 23 42 / 0.06);
  color: var(--color-text-2);
  text-transform: capitalize;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.2;
}
.mp-status-pill::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}
.mp-status-pill--ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.mp-status-pill--warn,
.mp-status-pill--breaching {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #b45309;
  border-color: #fcd34d;
  box-shadow: 0 0 0 1px rgb(251 191 36 / 0.12);
}
.mp-status-pill--info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.mp-status-pill--breached,
.mp-status-pill--err {
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  color: #b91c1c;
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px rgb(239 68 68 / 0.1);
}
.mp-status-pill--neutral {
  background: rgb(15 23 42 / 0.06);
  color: var(--color-text-2);
  border-color: #e2e8f0;
}
.mp-status-pill--pending {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

.mp-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-2);
}
.mp-filter select {
  height: 1.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0 0.45rem;
  font: inherit;
  font-size: 0.76rem;
  background: #fff;
}
.mp-ship-cell { min-width: 9.5rem; }
.mp-ship-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}
.mp-ship-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  white-space: nowrap;
}
.mp-code-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--color-primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mp-code-btn:hover { color: var(--color-primary); }
.mp-code-btn:disabled {
  color: var(--color-text-2);
  cursor: default;
  text-decoration: none;
  font-weight: 600;
}

.ord-qr-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ord-qr-root[hidden] { display: none !important; }
.ord-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.45);
}
.ord-qr-panel {
  position: relative;
  width: min(22rem, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.22);
  overflow: hidden;
}
.ord-qr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}
.ord-qr-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.ord-qr-value {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  color: var(--color-text-2);
}
.ord-qr-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-2);
  padding: 0.1rem 0.25rem;
}
.ord-qr-body {
  padding: 0.5rem 1rem 1.15rem;
  display: grid;
  place-items: center;
  min-height: 12rem;
}
.ord-qr-img {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
}
.ord-qr-status {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-2);
  text-align: center;
}

.mp-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; white-space: nowrap; }
.mp-row-btn {
  height: 1.55rem;
  padding: 0 0.45rem;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.mp-row-btn:disabled { opacity: 0.55; cursor: not-allowed; }
a.mp-row-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-sizing: border-box;
}
.ret-datewise td { vertical-align: middle; }
.ret-day-mp { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.ret-day-mp img { width: 18px; height: 18px; object-fit: contain; }
.ret-day-count {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.ret-day-count:hover { text-decoration: underline; }
.ret-day-split { display: block; font-size: 0.68rem; color: #94a3b8; font-weight: 500; margin-top: 0.12rem; }
.ret-day-split-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ret-day-split-btn:hover { text-decoration: underline; color: var(--color-primary-dark); }
.ret-day-list-box {
  width: min(1080px, 100%);
  max-height: min(88vh, 860px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ret-day-list-box .rdm__head { padding: 0.9rem 1rem; }
.ret-day-list-sub { margin: 0.15rem 0 0; font-size: 0.78rem; color: #64748b; }
.ret-day-list-body { overflow: auto; padding: 0 0.4rem 0.6rem; min-height: 180px; }
.ret-day-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--color-border);
}
.ret-day-list-empty { padding: 1.4rem 0.8rem; color: #64748b; text-align: center; }
.ret-day-date { font-weight: 700; white-space: nowrap; }
.mp-row-btn--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.mp-row-btn--warn { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }

.su-product { display: flex; align-items: center; gap: 0.5rem; }
.su-product img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; background: #f3f4f6; }
.su-meta { font-size: 0.7rem; color: #6b7280; }
.su-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.rl-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.65rem;
}
@media (max-width: 800px) {
  .rl-summary { grid-template-columns: 1fr 1fr; }
}
.rl-summary__card {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #e8edf5;
  background: #fff;
}
.rl-summary__card--loss {
  background: #fff1f2;
  border-color: #fecdd3;
}
.rl-summary__label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.rl-summary__value {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-1);
}
.rl-summary__card--loss .rl-summary__value { color: #be123c; }
.rl-loss { font-weight: 700; color: #be123c; }
.rl-row--missing { background: #fffbeb; }
.rl-cust { min-width: 11rem; max-width: 18rem; }
.rl-cust__name { font-weight: 650; color: var(--color-text-1); }
.rl-cust__addr {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6b7280;
  white-space: normal;
}

.su-modal { z-index: 80; }
.su-modal[hidden] { display: none !important; }
.su-modal__box {
  width: min(440px, 100%);
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}
.su-modal__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.su-modal__title { margin: 0 0 0.85rem; font-size: 1.12rem; font-weight: 780; color: #0f172a; }
.su-modal__lead {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}
.su-modal__list {
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.su-modal__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
}
.su-modal__dot {
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #94a3b8;
}
.su-modal__dot--ok { background: #16a34a; }
.su-modal__dot--warn { background: #d97706; }
.su-modal__dot--info { background: #2563eb; }
.su-modal__note {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}
.su-modal__progress {
  margin: 0.2rem 0 0.75rem;
}
.su-modal__progress-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.su-modal__progress-bar > span {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.25s ease;
}
.su-modal__progress-text {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}
.su-modal__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}
.su-modal__kpi {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafbfc;
}
.su-modal__kpi strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 780;
  color: #0f172a;
}
.su-modal__kpi span {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
.su-modal__err {
  margin: 0;
  color: #b91c1c;
  font-size: 0.86rem;
  line-height: 1.45;
}
.su-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.mp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding-top: 0.4rem;
}
.mp-pager__btn {
  height: 1.9rem;
  padding: 0 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.mp-pager__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mp-pager__meta { font-size: 0.78rem; color: var(--color-text-2); }

.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mp-modal__backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.5); }
.mp-modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.25);
}
.mp-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-2);
}
.mp-modal__title { margin: 0 0 0.7rem; font-size: 1rem; font-weight: 750; }
.mp-modal__subtitle { margin: 0.9rem 0 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--color-text-2); }
.mp-detail-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.8rem;
  margin: 0;
  font-size: 0.82rem;
}
.mp-detail-grid dt { color: var(--color-text-2); font-weight: 600; }
.mp-detail-grid dd { margin: 0; }
.mp-detail-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.mp-detail-table td { padding: 0.3rem 0.2rem; border-bottom: 1px solid var(--color-border); }
.mp-detail-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mp-detail-table__bold td { font-weight: 700; }
.mp-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.mp-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: var(--color-surface-2);
  font-size: 0.78rem;
}
.mp-timeline li.mp-timeline__item--done { background: #ecfdf5; color: #065f46; }

@media (max-width: 900px) {
  .mp-hero { flex-direction: column; align-items: stretch; }
  .mp-hero__actions {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }
  .mp-toolbar__count { margin-left: 0; }
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(236px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgb(15 23 42 / 0.45);
    z-index: 15;
  }
  .sidebar-backdrop[hidden] { display: none; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-collapse-toggle { display: none; }
  .topbar-link-label { display: none; }
}

/* ?? Claims: raise ?? */
.claims-page { display: flex; flex-direction: column; gap: 0.85rem; width: 100%; }
.claims-hero { border-radius: var(--radius); border: 1px solid var(--color-border); background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%); box-shadow: var(--shadow-sm); padding: 0.65rem 0.9rem; }
.claims-hero__main { display: flex; align-items: center; gap: 0.65rem; }
.claims-hero__icon { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 9px; background: var(--gradient-primary); color: #fff; flex-shrink: 0; }
.claims-hero__eyebrow { margin: 0; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary-dark); }
.claims-hero__title { margin: 0; font-size: 1.15rem; font-weight: 750; color: var(--color-text-1); letter-spacing: -0.02em; }
.claims-hero__sub { margin: 0.1rem 0 0; font-size: 0.75rem; color: var(--color-text-2); }
.claims-banner { margin: 0; display: flex; align-items: flex-start; gap: 0.45rem; border-radius: 10px; padding: 0.65rem 0.85rem; font-size: 0.875rem; font-weight: 500; }
.claims-banner__link { font-weight: 700; color: var(--color-primary-darker); text-decoration: underline; }
.claims-banner--ok { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.claims-banner--err { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.claims-banner--warn { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
.claims-banner--info { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.claims-error-modal-root {
  position: fixed; inset: 0; z-index: 3200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgb(15 23 42 / 0.45);
}
.claims-error-modal-root[hidden] { display: none !important; }
.claims-error-modal {
  width: 100%; max-width: 22rem;
  border-radius: 12px; border: 1px solid #fecaca; background: #fff;
  box-shadow: 0 18px 40px rgb(15 23 42 / 0.2);
  overflow: hidden;
}
.claims-error-modal__head {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.85rem 0.9rem 0.7rem; border-bottom: 1px solid #fee2e2;
  background: #fef2f2;
}
.claims-error-modal__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex-shrink: 0;
  border-radius: 8px; background: #fff; color: #b91c1c; border: 1px solid #fecaca;
}
.claims-error-modal__head-text { min-width: 0; flex: 1; }
.claims-error-modal__eyebrow {
  margin: 0; font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: #991b1b;
}
.claims-error-modal__title {
  margin: 0.15rem 0 0; font-size: 0.92rem; font-weight: 750;
  color: #7f1d1d; line-height: 1.3;
}
.claims-error-modal__close {
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; flex-shrink: 0;
  border: none; border-radius: 6px; background: transparent;
  color: #991b1b; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.claims-error-modal__close:hover { background: #fee2e2; }
.claims-error-modal__body { padding: 0.85rem 0.9rem; }
.claims-error-modal__msg {
  margin: 0; font-size: 0.8rem; line-height: 1.5; color: #334155; white-space: pre-wrap;
}
.claims-error-modal__detail {
  margin: 0.55rem 0 0; padding: 0.5rem 0.6rem;
  border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc;
  font-size: 0.72rem; line-height: 1.45; color: #64748b;
}
.claims-error-modal__foot {
  padding: 0 0.9rem 0.85rem;
}
.claims-error-modal__foot .claims-btn { width: 100%; justify-content: center; }
.claims-form { display: flex; flex-direction: column; gap: 0.85rem; }
.claims-workspace { display: flex; flex-direction: column; gap: 0.85rem; }
.claims-main { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.claims-panel { border-radius: var(--radius); border: 1px solid #e2e8f6; background: #fff; box-shadow: 0 1px 3px rgb(15 31 77 / 0.05); overflow: hidden; }
.claims-panel__head { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.75rem 0.95rem; background: linear-gradient(180deg, #f4f7ff 0%, #fff 100%); border-bottom: 1px solid #e8edf7; }
.claims-step { display: inline-flex; align-items: center; justify-content: center; width: 1.55rem; height: 1.55rem; border-radius: 8px; background: var(--color-primary); color: #fff; font-size: 0.75rem; font-weight: 800; flex-shrink: 0; }
.claims-panel__title { margin: 0; font-size: 0.92rem; font-weight: 750; color: var(--color-text-1); letter-spacing: -0.01em; }
.claims-panel__sub { margin: 0.1rem 0 0; font-size: 0.72rem; font-weight: 600; color: #6b7c9e; }
.claims-panel__body { display: flex; flex-direction: column; gap: 0.85rem; padding: 0.9rem 0.95rem 1rem; }
.claims-details-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.claims-evidence-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.claims-field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.claims-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #5b6b8c; }
.claims-req { color: #ef4444; }
.claims-hint { font-size: 0.7rem; color: var(--color-text-2); line-height: 1.4; }
.claims-input, .claims-textarea { width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem; border: 1px solid #dce4f5; border-radius: 8px; font-size: 0.875rem; font-family: inherit; color: var(--color-text-1); background: #f8fafc; }
.claims-input:focus, .claims-textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-focus); background: #fff; }
.claims-input:disabled, .claims-textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.claims-input--grow { flex: 1; min-width: 0; }
.claims-textarea { resize: vertical; min-height: 6.5rem; line-height: 1.45; }
.claims-row { display: flex; gap: 0.45rem; align-items: stretch; }
.claims-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.8125rem; font-weight: 700; font-family: inherit; cursor: pointer; border: 1px solid var(--color-border); background: #fff; color: #3b4f7a; white-space: nowrap; }
.claims-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.claims-btn--primary { border: none; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; box-shadow: 0 3px 10px rgb(255 107 53 / 0.25); }
.claims-btn--primary:hover:not(:disabled) { filter: brightness(1.05); }
.claims-btn--scan {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.5rem;
  min-width: 2.75rem;
  border-color: var(--color-primary-border);
  background: var(--color-primary-light);
  color: var(--color-primary-darker);
}
.claims-btn--scan:hover {
  border-color: var(--color-primary);
  background: #ffedd5;
}
.claims-scan-label {
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}
.claims-order-list { max-height: 16rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.4rem; padding: 0.55rem; border: 1px solid #e2e8f6; border-radius: 10px; background: #f7f9fc; }
.claims-empty { padding: 1.25rem 0.75rem; text-align: center; }
.claims-empty__title { margin: 0; font-size: 0.84rem; font-weight: 700; color: var(--color-text-1); }
.claims-empty__sub { margin: 0.25rem 0 0; font-size: 0.74rem; color: var(--color-text-2); }
.claims-order-row { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.55rem 0.65rem; border: 1px solid #e2e8f6; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.8125rem; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.claims-order-row:hover { border-color: var(--color-primary-border); }
.claims-order-row:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: 0 0 0 1px var(--color-primary-focus); }
.claims-order-row__check { margin-top: 0.15rem; accent-color: var(--color-primary); }
.claims-order-row__body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.claims-order-row__title { margin: 0; font-weight: 700; color: var(--color-text-1); }
.claims-order-row__meta { margin: 0; font-size: 0.72rem; color: var(--color-text-2); }
.claims-preview { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem; border-radius: 10px; border: 1px solid var(--color-primary-border); background: var(--color-primary-light); }
.claims-preview__img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-primary-border); background: #fff; flex-shrink: 0; }
.claims-preview__ph { display: flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; border-radius: 8px; border: 1px solid var(--color-primary-border); background: #fff; color: var(--color-primary); flex-shrink: 0; }
.claims-preview__info { min-width: 0; }
.claims-preview__name { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--color-text-1); }
.claims-preview__meta { margin: 0.15rem 0 0; font-size: 0.75rem; color: var(--color-text-2); }
.claims-preview__sel { margin: 0.35rem 0 0; font-size: 0.72rem; font-weight: 700; color: var(--color-primary-darker); }
.claims-btn--qc {
  margin-top: 0.5rem;
  width: 100%;
}
.mc-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.mc-btn-qc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #3b4f7a;
  white-space: nowrap;
}
.mc-btn-qc:hover { background: var(--color-primary-light); color: var(--color-primary-darker); }
.mc-product__meta .mc-btn-qc { margin-top: 0.4rem; width: fit-content; }
.claims-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.claims-seg__opt { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 0.65rem; border: 1px solid #dce4f5; border-radius: 8px; background: #f8fafc; font-size: 0.84rem; font-weight: 650; color: #3b4f7a; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.claims-seg__opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.claims-seg__opt--on { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary-darker); box-shadow: 0 0 0 2px var(--color-primary-focus); }
.claims-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; padding: 1.1rem; border: 1.5px dashed #d0d9ec; border-radius: 10px; background: #f8fafc; color: var(--color-text-2); font-size: 0.8125rem; font-weight: 600; cursor: pointer; text-align: center; position: relative; min-height: 5.25rem; transition: border-color 0.2s, background 0.2s; }
.claims-drop:hover { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary-darker); }
.claims-drop--video { border-color: #fdba74; background: #fff7ed; min-height: 6.5rem; }
.claims-drop--video:hover { border-color: var(--color-primary); background: #ffedd5; }
.claims-drop--filled { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.claims-drop--drag {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}
.claims-browse-hint {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
html.claims-desktop-files .claims-browse-hint { display: block; }
html.claims-android-capture .claims-browse-hint { display: none; }
.claims-drop--uploading {
  cursor: wait; border-color: #93c5fd; background: #eff6ff; color: #1d4ed8;
  pointer-events: none;
}
.claims-drop--uploading:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.claims-drop--filled.claims-drop--video { pointer-events: none; }
.claims-drop__idle { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.claims-upload-ok { margin: 0; font-size: 0.72rem; font-weight: 700; color: #047857; }
.claims-upload-state {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.25rem 0;
}
.claims-upload-state--video { gap: 0.65rem; }
.claims-upload-state--ok { color: #047857; font-weight: 700; }
.claims-upload-label { font-weight: 700; color: #1d4ed8; }
.claims-check {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #a7f3d0; color: #047857; font-size: 1.125rem; font-weight: 700;
}
.claims-spinner {
  display: inline-block; width: 1.75rem; height: 1.75rem;
  border: 3px solid #dbeafe; border-top-color: #2563eb; border-radius: 50%;
  animation: claims-spin 0.75s linear infinite;
}
.claims-spinner--lg { width: 2.25rem; height: 2.25rem; border-width: 4px; }
.claims-upload-bar {
  display: block; width: min(100%, 12rem); height: 4px; border-radius: 999px;
  background: #bfdbfe; overflow: hidden;
}
.claims-upload-bar--wide { width: min(100%, 16rem); margin-top: 0.35rem; }
.claims-upload-bar__fill {
  display: block; height: 100%; width: 40%; border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  animation: claims-upload-slide 1.2s ease-in-out infinite;
}
@keyframes claims-upload-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.claims-busy-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(2px);
}
.claims-busy-overlay[hidden] { display: none !important; }
.claims-busy-overlay__card {
  width: min(100%, 22rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  padding: 1.35rem 1.25rem; border-radius: 16px;
  background: #fff; border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.22);
  text-align: center;
}
.claims-busy-overlay__title {
  margin: 0.35rem 0 0; font-size: 1rem; font-weight: 750; color: #0f172a;
}
.claims-busy-overlay__sub {
  margin: 0; font-size: 0.8rem; color: #64748b;
}
.claims-spin { animation: claims-spin 0.75s linear infinite; }
@keyframes claims-spin { to { transform: rotate(360deg); } }
.claims-actions { display: flex; flex-direction: column; gap: 0.65rem; padding: 0.85rem 0.95rem; border-radius: var(--radius); border: 1px solid #e2e8f6; background: #fff; box-shadow: 0 1px 3px rgb(15 31 77 / 0.05); }
.claims-actions__hint { margin: 0; font-size: 0.78rem; font-weight: 600; color: #6b7c9e; }
.claims-submit { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0.75rem 1.25rem; border: none; border-radius: 10px; background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-size: 0.95rem; font-weight: 750; font-family: inherit; cursor: pointer; box-shadow: 0 4px 14px rgb(5 150 105 / 0.28); }
.claims-submit:hover:not(:disabled) { filter: brightness(1.05); }
.claims-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

@media (min-width: 1024px) {
  .claims-page { gap: 1rem; }
  .claims-hero { padding: 0.85rem 1.15rem; }
  .claims-hero__title { font-size: 1.25rem; }
  .claims-workspace { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 1rem; align-items: start; }
  .claims-panel--lookup { position: sticky; top: 0.75rem; }
  .claims-panel__head { padding: 0.9rem 1.1rem; }
  .claims-panel__body { padding: 1rem 1.1rem 1.15rem; gap: 1rem; }
  .claims-details-grid { grid-template-columns: 1fr 1fr; gap: 0.95rem 1rem; }
  .claims-evidence-grid { grid-template-columns: 1fr 1fr; gap: 0.95rem 1rem; }
  .claims-field--video { grid-column: 1 / -1; }
  .claims-order-list { max-height: min(42vh, 22rem); }
  .claims-actions { flex-direction: row; align-items: center; justify-content: space-between; padding: 0.9rem 1.15rem; }
  .claims-submit { width: auto; min-width: 11rem; padding: 0.7rem 1.5rem; }
}
@media (min-width: 1280px) {
  .claims-workspace { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 1.15rem; }
  .claims-evidence-grid { grid-template-columns: 1fr 1fr 1.15fr; }
  .claims-field--video { grid-column: auto; }
}

@media (max-width: 768px) {
  .claims-btn--scan { display: inline-flex; }
}

.claims-scanner-root {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgb(12 30 77 / 0.85); backdrop-filter: blur(4px);
}
.claims-scanner-root[hidden] { display: none !important; }
.claims-scanner-panel {
  width: min(100%, 24rem); max-height: 92vh; overflow: auto;
  padding: 1rem; border-radius: 14px; background: #fff;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.25);
}
.claims-scanner-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.75rem;
}
.claims-scanner-title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--color-text-1); }
.claims-scanner-close {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border: none; border-radius: 8px;
  background: #fee2e2; color: #b91c1c; cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.claims-scanner-reader {
  width: 100%; min-height: 220px; border-radius: 10px; overflow: hidden; background: #0f172a;
}
.claims-scanner-ok { margin: 0.65rem 0 0; font-size: 0.8125rem; font-weight: 600; color: #047857; }
.claims-scanner-err { margin: 0.65rem 0 0; font-size: 0.8125rem; font-weight: 600; color: #b91c1c; }
.claims-scanner-hint { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--color-text-2); text-align: center; }

.claims-camera-root {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgb(0 0 0 / 0.92);
}
.claims-camera-root[hidden] { display: none !important; }
.claims-camera-panel {
  width: 100%; max-width: 28rem; max-height: 92vh; overflow-y: auto;
  border-radius: 12px; background: #fff; padding: 0.75rem;
}
.claims-camera-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem;
}
.claims-camera-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--color-text-1); }
.claims-camera-close {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border: none; border-radius: 8px;
  background: #fee2e2; color: #b91c1c; cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.claims-camera-preview-wrap {
  position: relative; border-radius: 10px; overflow: hidden; background: #000;
}
.claims-camera-preview {
  display: block; width: 100%; max-height: 45vh; object-fit: contain;
}
.claims-camera-rec-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 0.75rem; font-weight: 600;
  animation: claims-pulse 1.2s ease-in-out infinite;
}
.claims-camera-timer {
  position: absolute; top: 0.5rem; right: 0.5rem;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: rgb(0 0 0 / 0.7); color: #fff;
  font-family: ui-monospace, monospace; font-size: 0.8rem;
}
.claims-camera-processing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; background: rgb(0 0 0 / 0.55); color: #fff;
  font-size: 0.875rem; font-weight: 600;
}
.claims-camera-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.75rem;
}
.claims-camera-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 1rem; border: none; border-radius: 8px;
  background: var(--color-primary); color: #fff;
  font-size: 0.875rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.claims-camera-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.claims-camera-btn--record { background: #ef4444; }
.claims-camera-btn--stop { background: #b91c1c; }
.claims-camera-captured {
  margin: 0.5rem 0 0; text-align: center; font-size: 0.8rem; color: #047857;
}
.claims-camera-done {
  display: block; width: 100%; margin-top: 0.5rem; padding: 0.65rem;
  border: none; border-radius: 8px; background: #059669; color: #fff;
  font-size: 0.9rem; font-weight: 700; font-family: inherit; cursor: pointer;
}
@keyframes claims-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ?? Claims: manage ?? */
.mc-page { padding-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.mc-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-radius: 12px; border: 1px solid var(--color-border); background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%); box-shadow: 0 1px 3px rgb(15 31 77 / 0.06); padding: 0.5rem 0.75rem; }
.mc-hero__main { display: flex; align-items: center; gap: 0.5rem; }
.mc-hero__icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--color-primary); color: #fff; box-shadow: 0 2px 6px rgb(255 107 53 / 0.25); }
.mc-hero__eyebrow { margin: 0; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #4f6fd8; }
.mc-hero__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--color-text-1); }
.mc-hero__actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mc-hero__countdown { display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.35rem 0.6rem; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-primary-light); font-size: 0.7rem; font-weight: 700; color: var(--color-text-2); }
.mc-hero__countdown span { color: var(--color-primary); }
.mc-btn-refresh, .mc-btn-import, .mc-btn-view, .mc-btn-clear, .mc-page-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; border-radius: 8px; font-size: 0.75rem; font-weight: 700; font-family: inherit; cursor: pointer; border: none; transition: opacity 0.15s ease; }
.mc-btn-refresh:disabled, .mc-btn-import:disabled, .mc-btn-view:disabled, .mc-btn-clear:disabled, .mc-page-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.mc-btn-refresh { padding: 0.45rem 0.85rem; background: var(--color-primary); color: #fff; box-shadow: 0 2px 6px rgb(255 107 53 / 0.2); }
.mc-btn-import { padding: 0.45rem 0.85rem; background: #fff; color: #0f766e; border: 1px solid #99f6e4 !important; box-shadow: 0 1px 2px rgb(15 118 110 / 0.08); }
.mc-btn-import:hover:not(:disabled) { background: #f0fdfa; }
.mc-btn-view { padding: 0.3rem 0.65rem; background: var(--color-primary); color: #fff; }
.mc-btn-clear { padding: 0.35rem 0.65rem; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.mc-banner { margin: 0; border-radius: 10px; padding: 0.65rem 0.85rem; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--color-border); background: var(--color-primary-light); }
.mc-banner--ok { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.mc-banner--err { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.mc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 640px) { .mc-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .mc-stats { grid-template-columns: repeat(7, 1fr); } }
.mc-stat { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.75rem; border-radius: 10px; border: 1px solid #f3f4f6; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.mc-stat__btn { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.mc-stat--active { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: 0 0 0 1px var(--color-primary); }
.mc-stat--settled .mc-stat__value { color: #047857; }
.mc-stat--pending .mc-stat__value { color: #b45309; }
.mc-stat--loss .mc-stat__value { color: #be123c; }
.mc-stat__hint { font-size: 0.62rem; font-weight: 600; color: #9ca3af; }
.mc-stat__label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }
.mc-stat__value { font-size: 1rem; font-weight: 800; color: #111827; }
.mc-reason-overview { padding: 0.75rem; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; }
.mc-reason-overview__title { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #9ca3af; }
.mc-reason-overview__grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mc-reason-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 9.5rem; padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px solid #e5e7eb; background: #fafafa; text-align: left; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.mc-reason-chip:hover { border-color: #c4b5fd; background: #f5f3ff; }
.mc-reason-chip--active { border-color: var(--color-primary); background: var(--color-primary-light); }
.mc-reason-chip__name { font-size: 0.75rem; font-weight: 700; color: #111827; }
.mc-reason-chip__ratio { font-size: 0.8rem; font-weight: 800; color: #047857; }
.mc-reason-chip__ratio em { margin-left: 0.2rem; font-style: normal; font-weight: 600; font-size: 0.65rem; color: #6b7280; }
.mc-reason-chip__settle { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.65rem; font-weight: 600; color: #6b7280; }
.mc-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; padding: 0.75rem; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.mc-filter { display: flex; flex-direction: column; gap: 0.25rem; }
.mc-filter span { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; }
.mc-filter select,
.mc-filter input[type="date"] { height: 34px; padding: 0 0.5rem; border-radius: 8px; border: 1px solid #e5e7eb; background: #f9fafb; font-size: 0.75rem; font-weight: 600; color: #111827; }
.mc-filters__actions { display: flex; align-items: flex-end; gap: 0.5rem; }
.mc-filters__badge { display: flex; align-items: center; height: 34px; padding: 0 0.65rem; border-radius: 8px; border: 1px solid #c7d7fe; background: #eef2ff; font-size: 0.65rem; font-weight: 800; color: #4338ca; }
.mc-table-wrap { border-radius: 12px; border: 1px solid var(--color-border); background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgb(15 31 77 / 0.06); }
.mc-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 2.5rem 1.25rem; text-align: center; color: var(--color-text-2); }
.mc-state__title { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--color-text-1); }
.mc-state__hint { margin: 0; max-width: 22rem; font-size: 0.8rem; line-height: 1.45; }
.mc-state__hint a { font-weight: 700; color: var(--color-primary); text-decoration: underline; }
.mc-table-desktop { display: none; }
@media (min-width: 1024px) { .mc-table-desktop { display: block; overflow-x: auto; } }
.mc-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mc-table th, .mc-table td { padding: 0.5rem; text-align: center; vertical-align: middle; font-size: 0.75rem; }
.mc-table th { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.mc-table td { border-bottom: 1px solid #f3f4f6; }
.mc-table tr:hover td { background: #fafbfc; }
.mc-ticket-id { font-weight: 800; color: var(--color-primary); }
.mc-sub { font-size: 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: #374151; word-break: break-all; }
.mc-product { display: flex; align-items: flex-start; gap: 0.55rem; min-width: 11rem; max-width: 16rem; }
.mc-product--modal { margin: 0 1rem 0.75rem; max-width: none; padding: 0.65rem 0.75rem; border-radius: 10px; border: 1px solid #e5e7eb; background: #fafbfc; }
.mc-product--modal .mc-product__img { width: 3rem; height: 3rem; }
.mc-product__img { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 8px; border: 1px solid #e5e7eb; object-fit: cover; background: #f9fafb; }
.mc-product__img--empty { display: inline-block; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }
.mc-product__meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.mc-product__sku { font-size: 0.75rem; font-weight: 700; color: #111827; word-break: break-word; }
.mc-product__name { font-size: 0.68rem; line-height: 1.25; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-product__qty { font-size: 0.65rem; font-weight: 700; color: #4f46e5; }
.mc-status { display: inline-flex; align-items: center; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.mc-status--open { background: #dbeafe; color: #1d4ed8; }
.mc-status--progress { background: #fef9c3; color: #a16207; }
.mc-status--approved { background: #d1fae5; color: #047857; }
.mc-status--closed { background: #f1f5f9; color: #475569; }
.mc-status--rejected { background: #ffe4e6; color: #be123c; }
.mc-settlement { display: inline-block; max-width: 14rem; font-size: 0.6875rem; font-weight: 600; line-height: 1.35; }
.mc-settlement--settled { color: #047857; }
.mc-settlement--pending { color: #b45309; }
.mc-settlement--waiting { color: #64748b; }
.mc-settlement--na { color: #cbd5e1; }
.mc-cards { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .mc-cards { display: none; } }
.mc-card { padding: 0.75rem; border-bottom: 1px solid #f3f4f6; display: grid; gap: 0.35rem; }
.mc-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.mc-card__date { margin-left: 0.5rem; font-size: 0.65rem; color: #9ca3af; font-weight: 700; }
.mc-card__account { margin: 0; font-weight: 700; font-size: 0.8rem; }
.mc-card__sub, .mc-card__title { margin: 0; font-size: 0.7rem; color: #6b7280; }
.mc-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.75rem 1rem; background: #f8fafc; border-top: 1px solid #e5e7eb; }
.mc-pagination p { margin: 0; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; }
.mc-pagination__btns { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.mc-page-btn { min-width: 28px; height: 28px; padding: 0 0.35rem; background: #fff; border: 1px solid #e5e7eb; color: #475569; }
.mc-page-btn--active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.mc-spin { animation: mc-spin 0.9s linear infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.mc-modal-root { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 0.75rem; background: rgb(0 0 0 / 0.4); backdrop-filter: blur(2px); }
.mc-modal { display: flex; flex-direction: column; width: 100%; max-width: 42rem; max-height: 85vh; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 20px 40px rgb(15 23 42 / 0.18); overflow: hidden; }
.mc-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; background: linear-gradient(135deg, var(--color-primary-light) 0%, #eef2ff 100%); border-bottom: 1px solid var(--color-border); }
.mc-modal__head h2 { margin: 0; font-size: 0.95rem; font-weight: 800; color: var(--color-text-1); }
.mc-modal__head p { margin: 0.2rem 0 0; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #4f6fd8; }
.mc-modal__close { border: none; background: transparent; color: #4f6fd8; cursor: pointer; padding: 0.25rem; border-radius: 6px; }
.mc-modal__close:hover { background: #e0e7ff; }
.mc-modal__loading { padding: 3rem; display: flex; justify-content: center; }
.mc-modal__strip { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; padding: 0.5rem 1rem; font-size: 0.7rem; font-weight: 700; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.mc-chat { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; background: #f9fafb; max-height: 24rem; }
.mc-chat__msg { display: flex; gap: 0.6rem; padding: 0.75rem; border-radius: 10px; border: 1px solid #e0e7ff; background: var(--color-primary-light); }
.mc-chat__msg--agent { border-color: #e5e7eb; background: #fff; }
.mc-chat__msg header { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; font-size: 0.7rem; }
.mc-chat__msg header strong { color: #111827; }
.mc-chat__msg header time { color: #9ca3af; font-weight: 700; text-transform: uppercase; font-size: 0.6rem; }
.mc-chat__msg p { margin: 0; font-size: 0.75rem; color: #475569; line-height: 1.45; }
.mc-chat__avatar { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; background: var(--color-primary); color: #fff; }
.mc-chat__msg--agent .mc-chat__avatar { background: var(--color-text-1); }
.mc-chat__html { font-size: 0.75rem; color: #475569; line-height: 1.45; }
.mc-attachments { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.mc-att { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.mc-modal__reply { padding: 0.75rem; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 0.5rem; }
.mc-modal__reply textarea { width: 100%; min-height: 60px; padding: 0.6rem 0.75rem; border-radius: 10px; border: 1px solid #e5e7eb; font-size: 0.8rem; resize: vertical; font-family: inherit; }
.mc-modal--import { max-width: 36rem; }
.mc-import-body { padding: 0.85rem 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.65rem; }
.mc-import-label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; color: var(--color-text-1); }
.mc-import-select, .mc-import-textarea { width: 100%; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; font-size: 0.8rem; font-weight: 500; color: var(--color-text-1); font-family: inherit; }
.mc-import-select { padding: 0.5rem 0.65rem; }
.mc-import-textarea { padding: 0.6rem 0.75rem; resize: vertical; min-height: 8rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.4; }
.mc-import-summary { padding: 0.45rem 0.65rem; border-radius: 8px; background: #f0fdfa; border: 1px solid #99f6e4; font-size: 0.72rem; font-weight: 700; color: #0f766e; }
.mc-import-footer { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid #e5e7eb; background: #fafafa; }
.mc-import-file { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px dashed #99f6e4; background: #f0fdfa; font-size: 0.8rem; font-weight: 600; color: #0f766e; cursor: pointer; }
.mc-import-file-clear { border: none; background: transparent; color: #b91c1c; font-size: 0.7rem; font-weight: 700; cursor: pointer; margin-top: 0.25rem; align-self: flex-start; }
.mc-import-jobs { margin-top: 0.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.mc-import-jobs__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.mc-import-jobs__head h3 { margin: 0; font-size: 0.8rem; font-weight: 800; color: var(--color-text-1); }
.mc-import-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e5e7eb; }
.mc-import-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.mc-import-table th, .mc-import-table td { padding: 0.45rem 0.55rem; text-align: left; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.mc-import-table th { background: #f8fafc; font-weight: 800; color: var(--color-text-2); white-space: nowrap; }
.mc-import-table td { font-weight: 600; color: var(--color-text-1); }
.mc-import-empty { text-align: center !important; color: var(--color-text-2) !important; font-weight: 500 !important; padding: 1rem !important; }
.mc-import-progress { color: var(--color-text-2); font-weight: 500; }
.mc-import-status { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.65rem; font-weight: 800; background: #f1f5f9; color: #475569; }
.mc-import-status--accepted { background: #e0f2fe; color: #0369a1; }
.mc-import-status--running { background: #fef3c7; color: #b45309; }
.mc-import-status--completed { background: #d1fae5; color: #047857; }
.mc-import-status--failed { background: #fee2e2; color: #b91c1c; }
.mc-import-counts { display: block; margin-top: 0.2rem; font-size: 0.65rem; font-weight: 500; color: var(--color-text-2); }
.mc-import-err { display: block; margin-top: 0.2rem; font-size: 0.65rem; font-weight: 500; color: #b91c1c; }

/* ?? Accounts ?? */
.acc-page { display: flex; flex-direction: column; gap: 0.85rem; }
.acc-toolbar { display: flex; align-items: center; gap: 0.5rem; }
.acc-search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.acc-search svg { position: absolute; left: 0.75rem; color: #94a3b8; pointer-events: none; }
.acc-search input { width: 100%; box-sizing: border-box; padding: 0.6rem 0.75rem 0.6rem 2.1rem; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; font-size: 0.85rem; color: var(--color-text-1); outline: none; -webkit-appearance: none; appearance: none; }
.acc-search input:focus-visible { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-focus); }
.acc-search input[type="search"]::-webkit-search-decoration,
.acc-search input[type="search"]::-webkit-search-cancel-button,
.acc-search input[type="search"]::-webkit-search-results-button,
.acc-search input[type="search"]::-webkit-search-results-decoration { display: none; }
.acc-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; color: #374151; font-size: 0.8125rem; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; }
.acc-btn:hover:not(:disabled) { background: #f8fafc; }
.acc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.acc-btn--primary { border: none; background: var(--gradient-primary); color: #fff; box-shadow: 0 3px 10px rgb(255 107 53 / 0.25); }
.acc-btn--danger { border: none; background: #dc2626; color: #fff; }
.acc-banner { margin: 0; border-radius: 10px; padding: 0.65rem 0.85rem; font-size: 0.875rem; font-weight: 500; border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.acc-banner--ok { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.acc-banner--err { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.acc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 3.5rem 1.5rem; text-align: center; border-radius: 16px; border: 1.5px dashed #cbd5e1; background: #fff; color: var(--color-primary); }
.acc-empty h2 { margin: 0.4rem 0 0; font-size: 1.05rem; font-weight: 700; color: var(--color-text-1); }
.acc-empty p { margin: 0.15rem 0 0; max-width: 24rem; font-size: 0.85rem; color: var(--color-text-2); }
.acc-empty .acc-btn { margin-top: 1rem; }
.acc-loading { padding: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--color-text-2); }
.acc-loading[hidden] { display: none; }
.acc-table-wrap { border-radius: 14px; border: 1px solid var(--color-border); background: #fff; overflow: auto; box-shadow: 0 1px 3px rgb(15 31 77 / 0.06); }
.acc-table-wrap[hidden] { display: none; }
.acc-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.8125rem; }
.acc-table th { padding: 0.7rem 0.9rem; text-align: left; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; background: #f9fafb; border-bottom: 1px solid var(--color-border); }
.acc-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.acc-table tbody tr:hover td { background: #fafbff; }
.acc-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.acc-badge--meesho { background: var(--color-primary-light); color: var(--color-primary-dark); }
.acc-badge--citymall { background: #fce7f3; color: #9d174d; }
.acc-badge--flipkart { background: #e0f2fe; color: #075985; }
.acc-badge--myntra { background: #ffe4e6; color: #9f1239; }
.acc-link-btn { border: none; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--color-text-1); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.acc-link-btn:hover { color: var(--color-primary-dark); }
.acc-name { font-weight: 700; color: var(--color-text-1); }
.acc-issue { display: block; margin-top: 0.15rem; font-size: 0.68rem; font-weight: 700; color: #b45309; }
.acc-mono-chip { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 6px; background: #f1f5f9; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.72rem; color: #374151; }
.acc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.75rem; color: #475569; }
.acc-truncate { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; }
.acc-synced { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 0.72rem; font-weight: 600; }
.acc-never { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px; background: #f1f5f9; color: #94a3b8; font-size: 0.72rem; }
.acc-actions { white-space: nowrap; }
.acc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 8px; border: 1px solid var(--color-border); background: #fff; color: #4b5563; cursor: pointer; margin-right: 0.3rem; }
.acc-icon-btn:last-child { margin-right: 0; }
.acc-icon-btn:hover { background: #f8fafc; }
.acc-icon-btn--sync { color: #059669; border-color: #a7f3d0; }
.acc-icon-btn--sync:hover { background: #ecfdf5; }
.acc-icon-btn--refresh { color: var(--color-primary-dark); border-color: var(--color-primary-border); }
.acc-icon-btn--refresh:hover { background: var(--color-primary-light); }
.acc-icon-btn--settings { color: #4f46e5; border-color: #c7d2fe; }
.acc-icon-btn--settings:hover { background: #eef2ff; }
.acc-icon-btn--danger { color: #dc2626; border-color: #fecaca; }
.acc-icon-btn--danger:hover { background: #fef2f2; }
.acc-cards { display: none; flex-direction: column; gap: 0.65rem; }
.acc-cards[hidden] { display: none; }
.acc-no-match { padding: 2.5rem 1rem; text-align: center; border-radius: 14px; border: 1px dashed var(--color-border); background: #fff; color: var(--color-text-2); font-size: 0.85rem; }
.acc-card { border-radius: 14px; border: 1px solid var(--color-border); background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgb(15 31 77 / 0.06); }
.acc-card__head { display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid #f1f5f9; background: #fafbff; }
.acc-card__meta { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.acc-card__contact { margin: 0; font-size: 0.75rem; color: var(--color-text-2); }
.acc-card__actions { display: flex; gap: 0.4rem; padding: 0.65rem 0.9rem; }
@media (min-width: 900px) { .acc-cards { display: none !important; } }
@media (max-width: 899px) {
  .acc-table-wrap { display: none !important; }
  .acc-cards { display: flex !important; }
}
.acc-modal-root { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(15 23 42 / 0.5); backdrop-filter: blur(2px); }
.acc-empty-modal { z-index: 640; }
.acc-empty-modal__lead {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-1);
  line-height: 1.45;
}
.acc-modal { width: 100%; max-width: 30rem; max-height: 90vh; overflow-y: auto; border-radius: 16px; border: 1px solid var(--color-border); background: #fff; box-shadow: 0 20px 45px rgb(15 23 42 / 0.2); }
.acc-modal--sm { max-width: 26rem; }
.acc-modal--edit { max-width: 32rem; }
.acc-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.1rem; background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%); border-bottom: 1px solid var(--color-border); }
.acc-modal__head--edit { background: linear-gradient(135deg, #eef2ff 0%, #fff 100%); }
.acc-modal__brand { display: flex; align-items: center; gap: 0.6rem; }
.acc-modal__icon { display: flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; border-radius: 9px; font-weight: 800; font-size: 0.85rem; background: var(--color-primary); color: #fff; flex-shrink: 0; }
.acc-modal__icon--meesho { background: var(--color-primary); }
.acc-modal__icon--citymall { background: #db2777; }
.acc-modal__icon--flipkart { background: #0284c7; }
.acc-modal__icon--myntra { background: #e11d48; }
.acc-modal__title { margin: 0; font-size: 1rem; font-weight: 800; color: var(--color-text-1); }
.acc-modal__sub { margin: 0.15rem 0 0; font-size: 0.72rem; color: var(--color-text-2); }
.acc-modal__close { border: none; background: transparent; color: #6b7280; cursor: pointer; padding: 0.35rem; border-radius: 8px; }
.acc-modal__close:hover { background: #f1f5f9; }
.acc-modal__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.85rem; }
.acc-modal__error { margin: 0; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; font-size: 0.8rem; font-weight: 600; }
.acc-modal__warn { margin: 0; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid #fde68a; background: #fffbeb; color: #92400e; font-size: 0.8rem; font-weight: 600; }
.acc-modal__footer { display: flex; justify-content: flex-end; gap: 0.5rem; }
.acc-modal__footer--split { justify-content: space-between; }

.fk-otp-root .fk-otp__account {
  margin: 0; font-size: 0.86rem; color: #334155; line-height: 1.4;
}
.fk-otp-root .fk-otp__status {
  margin: 0; padding: 0.55rem 0.7rem; border-radius: 8px;
  border: 1px solid #bae6fd; background: #f0f9ff; color: #0369a1;
  font-size: 0.8rem; font-weight: 600;
}
.fk-otp-root .fk-otp__right {
  display: flex; gap: 0.5rem; align-items: center;
}

.acc-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; color: var(--color-text-1); }
.acc-input { width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem; border-radius: 9px; border: 1px solid var(--color-border); background: #f8fafc; font-size: 0.85rem; font-family: inherit; color: var(--color-text-1); }
.acc-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-focus); background: #fff; }
.acc-input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.acc-field textarea.acc-input {
  height: auto;
  min-height: 7.5rem;
  padding: 0.55rem 0.7rem;
  resize: vertical;
  line-height: 1.45;
  font-weight: 500;
}
.acc-hint { margin: 0; font-size: 0.72rem; color: var(--color-text-2); }
.acc-disc__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--color-text-1); }
.acc-disc__sub { margin: 0.4rem 0 0.9rem; font-size: 0.85rem; color: var(--color-text-2); line-height: 1.45; }
.acc-disc__check { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.75rem; border-radius: 10px; border: 1px solid #fecaca; background: #fef2f2; font-size: 0.8rem; margin-bottom: 0.9rem; cursor: pointer; }
.acc-disc__check input { margin-top: 0.2rem; accent-color: #dc2626; }
.acc-disc__check strong { display: block; color: #991b1b; }
.acc-disc__check span span { display: block; margin-top: 0.15rem; color: #b91c1c; font-weight: 500; }

/* ?? Accounts: edit modal sections (Meesho) ?? */
.acc-section { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; border-radius: 12px; border: 1px solid var(--color-border); background: #f8fafc; }
.acc-section--nested { margin-bottom: 0.75rem; border-color: #fde68a; background: #fffbeb; }
.acc-section__title { margin: 0; font-size: 0.85rem; font-weight: 800; color: var(--color-text-1); }
.acc-section__title--mt { margin-top: 0.25rem; }
.acc-section__hint { margin: 0; font-size: 0.72rem; color: var(--color-text-2); line-height: 1.5; }
.acc-btn--sm { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
.acc-btn--sync { border: none; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.acc-btn--sync:hover:not(:disabled) { background: #d1fae5; }
.acc-btn--teal { border: 1px solid #99f6e4; background: #f0fdfa; color: #0f766e; font-weight: 700; }
.acc-btn--teal:hover:not(:disabled) { background: #ccfbf1; }
.acc-btn--block { width: 100%; justify-content: center; }
.acc-shop-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.acc-shop-row__main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.acc-shop-row__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.acc-shop-open { font-size: 0.75rem; font-weight: 700; color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.acc-radio-group { display: flex; flex-direction: column; gap: 0.4rem; }
.acc-radio-group__label { margin: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-2); }
.acc-radio-option { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.55rem 0.65rem; border-radius: 9px; border: 1px solid var(--color-border); background: #fff; cursor: pointer; }
.acc-radio-option:has(input:checked) { border-color: var(--color-primary-border); background: var(--color-primary-light); }
.acc-radio-option input { margin-top: 0.2rem; }
.acc-radio-option strong { display: block; font-size: 0.8rem; color: var(--color-text-1); }
.acc-radio-option small { display: block; margin-top: 0.1rem; font-size: 0.7rem; color: var(--color-text-2); }
.acc-qr-preview { flex-shrink: 0; text-align: center; }
.acc-qr-preview__label { margin: 0 0 0.4rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-2); }
.acc-qr-preview__box { display: flex; align-items: center; justify-content: center; width: 9rem; height: 9rem; border-radius: 12px; border: 1px dashed var(--color-border); background: #fff; padding: 0.5rem; box-sizing: border-box; text-align: center; font-size: 0.68rem; color: #94a3b8; line-height: 1.4; }
.acc-qr-preview__box img { max-width: 100%; max-height: 100%; }
.acc-cheque-preview { overflow: hidden; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; }
.acc-cheque-preview img { display: block; max-height: 11rem; width: 100%; object-fit: contain; }
.acc-cheque-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.acc-upload-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.85rem; border-radius: 10px; border: 1px dashed var(--color-primary-border); background: #fff; color: var(--color-primary-dark); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.acc-upload-btn:hover { background: var(--color-primary-light); }
.acc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.acc-link-danger { display: inline-flex; align-items: center; gap: 0.3rem; border: none; background: transparent; padding: 0; font-size: 0.78rem; font-weight: 700; color: #dc2626; cursor: pointer; }
.acc-link-danger:hover { text-decoration: underline; }
.acc-set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 0.75rem; }
.acc-tcs-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.acc-tcs-formula { font-size: 0.62rem; font-weight: 600; color: var(--color-text-2); white-space: nowrap; }
.acc-check > span { display: flex; flex-direction: column; gap: 0.12rem; font-weight: 500; line-height: 1.35; }
.acc-check strong { font-size: 0.8rem; font-weight: 800; color: var(--color-text-1); }
.acc-check > span > span { font-size: 0.7rem; font-weight: 500; color: var(--color-text-2); }
.acc-period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.acc-period-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.55rem 0.7rem; border-radius: 9px; border: 1px solid #fde68a; background: #fff; cursor: pointer; text-align: left; }
.acc-period-btn:hover:not(:disabled) { background: #fffbeb; }
.acc-period-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.acc-period-btn__label { font-size: 0.72rem; font-weight: 800; color: #92400e; }
.acc-period-btn__status { font-size: 0.64rem; font-weight: 600; color: var(--color-text-2); }
@media (max-width: 30rem) {
  .acc-period-grid { grid-template-columns: 1fr; }
  .acc-shop-row { flex-direction: column; }
  .acc-qr-preview { align-self: center; }
}

/* ?? Listings ?? */
.lst-page { display: flex; flex-direction: column; gap: 0.85rem; }
.lst-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lst-hero__title { margin: 0 0 0.5rem; font-size: 1.3rem; font-weight: 800; color: var(--color-text-1); }
.lst-hero__stats { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lst-stat { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.85rem; border-radius: 12px; background: #fff; border: 1px solid var(--color-border); min-width: 5.5rem; }
.lst-stat__label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; }
.lst-stat__value { font-size: 1.15rem; font-weight: 800; color: var(--color-text-1); }
.lst-stat--ok .lst-stat__value { color: #047857; }
.lst-stat--warn .lst-stat__value { color: #b45309; }
.lst-stat--info .lst-stat__value { color: #0369a1; }
button.lst-stat {
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lst-stat--alert {
  border-color: #fecaca;
  background: #fef2f2;
}
.lst-stat--alert .lst-stat__value { color: #b91c1c; }
.lst-stat--alert.is-active {
  box-shadow: 0 0 0 2px rgb(248 113 113 / 0.55);
}
.lst-hero__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lst-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; color: #374151; font-size: 0.8125rem; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; }
.lst-btn:hover:not(:disabled) { background: #f8fafc; }
.lst-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.lst-btn--primary { border: none; background: var(--gradient-primary); color: #fff; box-shadow: 0 3px 10px rgb(255 107 53 / 0.25); }
.lst-btn--danger {
  border: 1px solid #fecaca;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 3px 10px rgb(220 38 38 / 0.2);
}
.lst-btn--danger:hover:not(:disabled) { background: #b91c1c; border-color: #f87171; }
.lst-banner { margin: 0; border-radius: 10px; padding: 0.65rem 0.85rem; font-size: 0.875rem; font-weight: 500; border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.lst-banner--err { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.lst-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.65rem; padding: 0.85rem; border-radius: 14px; background: #fff; border: 1px solid var(--color-border); }
.lst-filter { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; color: var(--color-text-2); flex: 1 1 9rem; min-width: 8rem; }
.lst-input { width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem; border-radius: 9px; border: 1px solid var(--color-border); background: #f8fafc; font-size: 0.85rem; font-family: inherit; color: var(--color-text-1); }
.lst-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-focus); background: #fff; }
.lst-filters__actions { display: flex; gap: 0.5rem; align-items: center; }
.lst-table-wrap { border-radius: 14px; border: 1px solid var(--color-border); background: #fff; overflow: auto; box-shadow: 0 1px 3px rgb(15 31 77 / 0.06); }
.lst-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 3rem 1.5rem; text-align: center; color: var(--color-text-2); }
.lst-state[hidden] { display: none; }
.lst-state__title { margin: 0.2rem 0 0; font-size: 0.95rem; font-weight: 700; color: var(--color-text-1); }
.lst-state__hint { margin: 0; font-size: 0.8rem; max-width: 22rem; }
.lst-spin { animation: lst-spin-anim 1s linear infinite; }
@keyframes lst-spin-anim { to { transform: rotate(360deg); } }
.lst-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 0.8125rem; }
.lst-table th { padding: 0.7rem 0.9rem; text-align: left; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; background: #f9fafb; border-bottom: 1px solid var(--color-border); }
.lst-th-check,
.lst-td-check {
  width: 2.5rem;
  padding-left: 0.75rem !important;
  padding-right: 0.35rem !important;
  vertical-align: middle;
}
.lst-th-check input,
.lst-td-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.lst-row--selected { background: #fff7ed; }
.lst-row--low-profit { background: #fef2f2; }
.lst-row--low-profit.lst-row--selected { background: #fff1f2; }
.lst-price { font-weight: 600; }
.lst-profit {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
}
.lst-profit--low { color: #b91c1c; }
.lst-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
}
.lst-bulk-bar[hidden] { display: none !important; }
.lst-bulk-bar__count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9a3412;
}
.lst-bulk-bar__search {
  position: relative;
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 28rem;
}
.lst-bulk-bar__input {
  background: #fff;
}
.lst-bulk-bar__results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  max-height: 12rem;
  overflow-y: auto;
  list-style: none;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.12);
}
.lst-bulk-bar__results[hidden],
.lst-bulk-bar__status[hidden],
.lst-bulk-bar__picked[hidden] { display: none !important; }
.lst-bulk-bar__status {
  position: absolute;
  left: 0;
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: #94a3b8;
}
.lst-bulk-bar__picked {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c2410c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lst-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.lst-table tbody tr:hover td { background: #fafbff; }
.lst-cell-product { display: flex; align-items: center; gap: 0.6rem; }
.lst-thumb { width: 2.2rem; height: 2.2rem; border-radius: 8px; object-fit: cover; border: 1px solid #f1f5f9; flex-shrink: 0; }
.lst-thumb-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.lst-thumb-btn .lst-thumb { border: 1px solid #f1f5f9; }
.lst-thumb--empty { background: #f1f5f9; display: inline-block; }
.lst-product-name { margin: 0; font-weight: 700; color: var(--color-text-1); font-size: 0.8125rem; }
.lst-product-sub { margin: 0.1rem 0 0; font-size: 0.7rem; color: var(--color-text-2); }
.lst-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
  text-transform: none;
}
.lst-badge::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}
.lst-badge--ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.lst-badge--oos {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.lst-badge--warn {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.lst-badge--muted {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}
.lst-master-name { font-weight: 600; color: var(--color-text-1); font-size: 0.78rem; }
.lst-master-name--muted { color: #94a3b8; font-style: italic; }
.lst-cell-master { min-width: 13rem; max-width: 18rem; }
.lst-row-map { position: relative; min-width: 12rem; }
.lst-row-map__input {
  padding: 0.4rem 0.55rem !important;
  font-size: 0.75rem !important;
  background: #fff !important;
}
.lst-row-map__results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 10rem;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.14);
}
.lst-row-map__opt {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.lst-row-map__opt:hover,
.lst-row-map__opt--active { background: var(--color-primary-light); }
.lst-row-map__opt img,
.lst-row-map__ph {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.lst-row-map__opt-name {
  min-width: 0;
  flex: 1;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lst-row-map__status {
  position: absolute;
  left: 0;
  margin: 0.2rem 0 0;
  font-size: 0.65rem;
  color: #94a3b8;
}
.lst-row-map-selected {
  margin: 0.25rem 0 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: #4338ca;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lst-row-map-readonly .lst-master-name {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lst-row-map-hint {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  color: #94a3b8;
}
.lst-cell-actions { white-space: nowrap; }
.lst-row-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 1px solid var(--color-border); background: #fff; color: #4b5563; cursor: pointer; margin-right: 0.3rem; }
.lst-row-btn:last-child { margin-right: 0; }
.lst-row-btn:hover { background: #f8fafc; }
.lst-row-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.lst-row-btn--map {
  width: auto;
  min-width: 2.6rem;
  padding: 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  border: none;
  background: #059669;
}
.lst-row-btn--map:hover:not(:disabled) { background: #047857; }
.lst-row-btn--primary { color: var(--color-primary-dark); border-color: var(--color-primary-border); }
.lst-row-btn--primary:hover { background: var(--color-primary-light); }
.lst-row-btn--danger { color: #dc2626; border-color: #fecaca; }
.lst-row-btn--danger:hover { background: #fef2f2; }
.lst-row-btn--text {
  width: auto;
  padding: 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c2410c;
  border-color: #fed7aa;
}
.lst-health-modal {
  width: min(1180px, calc(100vw - 1.5rem));
  max-width: min(1180px, calc(100vw - 1.5rem));
  height: min(88vh, 900px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lst-health-modal .lst-modal__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.lst-health-modal #lst-health-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lst-health-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.lst-health-section {
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 0.7rem 0.75rem 0.4rem;
  overflow: auto;
}
.lst-health-section h3 { margin: 0 0 0.35rem; font-size: 0.92rem; }
.lst-health-lead, .lst-health-empty { margin: 0 0 0.5rem; color: #64748b; font-size: 0.78rem; }
@media (max-width: 820px) {
  .lst-health-modal {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    height: 92vh;
    max-height: 92vh;
  }
  .lst-health-split { grid-template-columns: 1fr; }
}
.lst-health-product { margin-bottom: 0.75rem; }
.lst-health-product__title { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 700; color: #475569; }
.lst-health-card, .lst-health-review {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.lst-health-card img, .lst-health-images img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #f8fafc; flex: 0 0 auto;
}
.lst-health-name { margin: 0; font-weight: 650; font-size: 0.82rem; white-space: normal; }
.lst-health-link { color: #c2410c; font-weight: 700; text-decoration: none; }
.lst-health-link:hover { text-decoration: underline; }
.lst-health-meta, .lst-health-comment { margin: 0.15rem 0 0; color: #475569; font-size: 0.78rem; }
.lst-health-comment { white-space: pre-wrap; }
.lst-health-tags, .lst-health-images { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.lst-health-tag {
  display: inline-flex;
  font-size: 0.68rem; font-weight: 700; background: #f8fafc; border-radius: 999px; padding: 0.12rem 0.45rem;
  border: 1px solid #e2e8f0;
}
.lst-health-review { display: block; }
.lst-pagination { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.75rem 0.9rem; border-top: 1px solid var(--color-border); background: #fafbff; font-size: 0.78rem; color: var(--color-text-2); flex-wrap: wrap; }
.lst-pagesize {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--color-text-2);
}
.lst-pagesize select,
.lst-pagesize__custom {
  height: 1.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  padding: 0 0.4rem;
}
.lst-pagesize__custom {
  width: 4.6rem;
}
.lst-pagination__btns { display: flex; gap: 0.5rem; }
.lst-page-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.75rem; border-radius: 8px; border: 1px solid var(--color-border); background: #fff; font-size: 0.78rem; font-weight: 700; color: #374151; cursor: pointer; }
.lst-page-btn:hover:not(:disabled) { background: #f8fafc; }
.lst-page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lst-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  background: rgb(15 23 42 / 0.5);
  backdrop-filter: blur(4px);
}
@media (min-width: 640px) {
  .lst-modal-root { align-items: center; }
}
.lst-modal {
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 20px 45px rgb(15 23 42 / 0.2);
}
.lst-confirm-root { z-index: 1100; }
.lst-confirm {
  max-width: 26rem;
  overflow: hidden;
}
.lst-confirm__head {
  align-items: flex-start;
  gap: 0.75rem;
}
.lst-confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.lst-confirm__body {
  padding-top: 0.25rem;
}
.lst-confirm__msg {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.875rem;
  color: var(--color-text-2);
  line-height: 1.45;
}
.lst-confirm__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lst-confirm__name {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-1);
  word-break: break-word;
}
.lst-modal.master-modal {
  display: flex;
  flex-direction: column;
  max-width: 42rem;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px rgb(15 23 42 / 0.25);
}
.lst-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}
.lst-modal__head-text { min-width: 0; }
.lst-modal__title { margin: 0; font-size: 1rem; font-weight: 700; color: #0f172a; }
.lst-modal__sub { margin: 0.15rem 0 0; font-size: 0.75rem; color: #64748b; }
.lst-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
}
.lst-modal__close:hover { background: #f1f5f9; }
.lst-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-gutter: stable;
}
.lst-modal__error { margin: 0; padding: 0.5rem 0.75rem; border-radius: 8px; border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; font-size: 0.8125rem; }
.lst-modal__ok { margin: 0; padding: 0.5rem 0.75rem; border-radius: 8px; border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; font-size: 0.8125rem; font-weight: 600; }
.lst-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: rgb(248 250 252 / 0.9);
}
.lst-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; color: #475569; position: relative; }
.lst-field em { color: var(--color-primary-dark); font-style: normal; }
.lst-field__hint { font-size: 0.625rem; font-weight: 500; color: #94a3b8; }
.lst-field--span2 { grid-column: 1 / -1; }
.lst-field--suggest { position: relative; }
.lst-form-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) {
  .lst-form-grid { grid-template-columns: 1fr 1fr; }
}
.lst-form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.lst-form-grid--pricing {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}
@media (min-width: 640px) {
  .lst-form-grid--pricing { grid-template-columns: 1fr 1fr; }
}
.master-modal .lst-input {
  background: #fff;
  border-color: #e2e8f0;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
}
.master-modal .lst-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(255 107 53 / 0.15);
}
.lst-input--narrow { max-width: 12.5rem; }
.lst-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 20;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 12rem;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 25px rgb(15 23 42 / 0.12);
}
.lst-suggest button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.lst-suggest button:hover { background: var(--color-primary-light); }
.lst-suggest__thumb { width: 2rem; height: 2rem; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.lst-suggest__sku { display: block; font-family: ui-monospace, monospace; font-size: 0.75rem; font-weight: 700; color: #0f172a; }
.lst-suggest__cat { display: block; font-size: 0.6875rem; color: #64748b; }
.lst-image-preview {
  display: block;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  cursor: pointer;
}
.lst-image-preview img { display: block; width: 6rem; height: 6rem; object-fit: cover; }
.lst-inv-box {
  border-radius: 12px;
  border: 1px solid #d1fae5;
  background: rgb(236 253 245 / 0.6);
  padding: 0.75rem;
}
.lst-inv-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.lst-inv-box__title { margin: 0; font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.lst-inv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #064e3b;
  cursor: pointer;
}
.lst-inv-toggle input { width: 1rem; height: 1rem; accent-color: #059669; }
.lst-inv-box__body { margin-top: 0.75rem; }
.lst-variant-stock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .lst-variant-stock { grid-template-columns: 1fr 1fr; }
}
.lst-variant-stock__item {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.5rem 0.65rem;
}
.lst-variant-stock__item span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}
.lst-variant-cogs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .lst-variant-cogs { grid-template-columns: 1fr 1fr; }
}
.lst-variant-cogs__item {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.5rem 0.65rem;
}
.lst-variant-cogs__item span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
}
.lst-map-existing {
  position: relative;
  margin: 0 1.25rem 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}
.lst-map-existing__results {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  top: calc(100% - 0.4rem);
  z-index: 20;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 12rem;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 25px rgb(15 23 42 / 0.12);
}
.lst-map-existing__results button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.lst-map-existing__results button:hover { background: var(--color-primary-light); }
.lst-map-existing__thumb { width: 2rem; height: 2rem; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.lst-map-existing__name { display: block; font-size: 0.78rem; font-weight: 700; color: #0f172a; }
.lst-map-existing__sku { display: block; font-family: ui-monospace, monospace; font-size: 0.68rem; color: #64748b; }
.lst-modal__footer .lst-btn--primary {
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .lst-form-grid, .lst-form-grid--3, .lst-form-grid--pricing { grid-template-columns: 1fr; }
}

/* Price change ticket modal */
.pct-root { z-index: 90; }
.pct-modal {
  width: min(72rem, calc(100vw - 1.5rem));
  max-width: min(72rem, calc(100vw - 1.5rem));
  max-height: min(92vh, 900px);
}
.pct-table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  max-height: min(42vh, 360px);
}
.pct-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.pct-body { gap: 0.85rem; }
.pct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 0.75rem;
}
@media (min-width: 560px) {
  .pct-grid {
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  }
}
.pct-field--wide { grid-column: 1 / -1; }
.pct-field--type { min-width: 0; }
.pct-field--query { min-width: 0; }
.pct-search-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.pct-search-row .lst-input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}
.pct-search-row .lst-btn { flex: 0 0 auto; height: auto; align-self: stretch; }
.pct-mode-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.pct-mode-tab {
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
.pct-mode-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}
.pct-master-results {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  max-height: 12rem;
  overflow: auto;
}
.pct-master-results li button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.pct-master-results li button:hover { background: #f8fafc; }
.pct-master-empty {
  padding: 0.55rem;
  color: #94a3b8;
  font-size: 0.78rem;
}
.pct-master-picked {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #166534;
}
.pct-common-prices {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.55rem 0.65rem;
  align-items: end;
}
.pct-money-input {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.pct-money-input__sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
}
.pct-money-input .lst-input {
  border-radius: 0 9px 9px 0;
  min-width: 0;
  flex: 1 1 auto;
}
.pct-common-prices__action {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.05rem;
}
@media (max-width: 720px) {
  .pct-common-prices {
    grid-template-columns: 1fr;
  }
  .pct-common-prices__action .lst-btn {
    width: 100%;
  }
}
.pct-acct { font-size: 0.72rem; color: #475569; max-width: 8rem; }
.pct-submit-root { z-index: 1200; }
.pct-submit-modal {
  width: min(40rem, calc(100vw - 1.25rem));
  max-height: min(88vh, 720px);
}
.pct-submit-body { gap: 0.75rem; }
.pct-submit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: 0.8rem;
  color: #475569;
}
.pct-submit-meta strong { color: #0f172a; }
.pct-submit-table-wrap {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  max-height: min(42vh, 320px);
}
.pct-submit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.pct-submit-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  text-align: left;
  padding: 0.55rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid var(--color-border);
}
.pct-submit-table td {
  padding: 0.55rem 0.7rem;
  border-top: 1px solid #f1f5f9;
  vertical-align: top;
}
.pct-submit-acct { font-weight: 700; color: #0f172a; }
.pct-submit-email { font-size: 0.72rem; color: #94a3b8; margin-top: 0.1rem; }
.pct-submit-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.pct-submit-ticket {
  font-size: 0.76rem;
  color: #334155;
  max-width: 12rem;
  word-break: break-word;
}
.pct-submit-status {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}
.pct-submit-status--wait { background: #f1f5f9; color: #64748b; }
.pct-submit-status--run { background: #ffedd5; color: #c2410c; }
.pct-submit-status--ok { background: #dcfce7; color: #166534; }
.pct-submit-status--err { background: #fee2e2; color: #991b1b; }
.pct-submit-progress { display: flex; flex-direction: column; gap: 0.4rem; }
.pct-submit-progress__bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.pct-submit-progress__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-primary, linear-gradient(90deg, #ff6b35, #ff8f66));
  transition: width 0.25s ease;
}
.pct-submit-progress__text {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 650;
}
.lst-ticket-excel-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}
.lst-btn--sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
}

/* Tickets: lock the shell so only list + chat scroll */
body.oms-locked-page {
  overflow: hidden;
}
body.oms-locked-page .app-shell,
body.oms-locked-page .shell-main-column {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.oms-locked-page .shell-outlet {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0.7rem 0.85rem 0.75rem;
}

/* Price tickets page */
.pt-page {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pt-layout {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(16rem, 25%) minmax(0, 75%);
  gap: 0.75rem;
  overflow: hidden;
}
.pt-list-pane, .pt-chat-pane {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 31 77 / 0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.pt-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.pt-hero__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.pt-hero__title {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.pt-hero__actions { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-start; }
.pt-hero__actions .pt-btn { padding: 0.38rem 0.55rem; font-size: 0.72rem; }
.pt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.pt-btn--primary {
  border: none;
  background: var(--gradient-primary);
  color: #fff;
}
.pt-banner {
  flex-shrink: 0;
  margin: 0.5rem 0.85rem 0;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.pt-banner--err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.pt-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  flex-shrink: 0;
}
.pt-filters .pt-filter:first-child {
  grid-column: 1 / -1;
}
.pt-kind {
  display: inline-flex;
  margin-right: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}
.pt-kind--claim { background: #fce7f3; color: #9d174d; }
.pt-kind--price { background: #ffedd5; color: #c2410c; }
.pt-kind--payment { background: #dbeafe; color: #1d4ed8; }
.pt-kind--false { background: #ede9fe; color: #6d28d9; }
.pt-kind--xb { background: #ecfeff; color: #0e7490; }
.pt-filter { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.7rem; font-weight: 700; color: #64748b; }
.pt-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  color: #0f172a;
  background: #fff;
}
.pt-list-wrap {
  flex: 1;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.pt-pagination {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}
.pt-pagination p {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.pt-pagination__btns { display: flex; flex-wrap: wrap; gap: 0.22rem; }
.pt-page-btn {
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.pt-page-btn:hover:not(:disabled) { background: #f8fafc; }
.pt-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pt-page-btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.pt-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
}
.pt-state__title { margin: 0; font-weight: 750; color: #0f172a; }
.pt-state__hint { margin: 0; }
.pt-list { list-style: none; margin: 0; padding: 0.35rem; }
.pt-item {
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}
.pt-item:hover { background: #f8fafc; }
.pt-item.is-active {
  background: #fff7ed;
  border-color: #fdba74;
}
.pt-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pt-item__meta {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-badge {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}
.pt-badge--ok { background: #dcfce7; color: #166534; }
.pt-badge--bad { background: #fee2e2; color: #991b1b; }
.pt-badge--warn { background: #fef3c7; color: #92400e; }
.pt-badge--info { background: #e0f2fe; color: #075985; }
.pt-chat-pane { position: relative; }
.pt-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.88rem;
}
.pt-chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.pt-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.pt-chat-head h2 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-chat-head p { margin: 0.2rem 0 0; font-size: 0.75rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-chat-head > div { min-width: 0; }
.pt-chat-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}
.pt-btn--danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.pt-btn--danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pt-chat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem 0.75rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
.pt-chat-strip span {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.pt-chat-strip strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}
.pt-chat {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.pt-chat__msg {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.55rem;
  max-width: 95%;
}
.pt-chat__msg--user { align-self: flex-end; }
.pt-chat__msg--agent { align-self: flex-start; }
.pt-chat__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}
.pt-chat__msg--agent .pt-chat__avatar {
  background: #ffedd5;
  color: #c2410c;
}
.pt-chat__msg header {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.72rem;
  color: #64748b;
}
.pt-chat__msg p, .pt-chat__html {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #0f172a;
  line-height: 1.45;
}
.pt-chat__msg--user > div:last-child,
.pt-chat__msg--agent > div:last-child {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.pt-chat__msg--user > div:last-child {
  background: #fff7ed;
  border-color: #fed7aa;
}
.pt-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
  align-items: flex-start;
}
.pt-att-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.pt-excel {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 16rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
  background: linear-gradient(180deg, #f7fbf7 0%, #eef7f0 100%);
  box-shadow: 0 1px 2px rgb(16 124 65 / 0.08);
  text-decoration: none;
  color: inherit;
}
.pt-excel:hover {
  border-color: #81c784;
  background: #f1f8f2;
}
.pt-excel__icon {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgb(16 124 65 / 0.25));
}
.pt-excel__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.08rem;
}
.pt-excel__meta strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #14532d;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-excel__meta em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #107c41;
}
.pt-att--img {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: zoom-in;
}
.pt-att--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pt-att--video {
  width: min(100%, 18rem);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
}
.pt-att--video video {
  display: block;
  width: 100%;
  max-height: 14rem;
  background: #000;
}
.pt-chat-reply {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.pt-chat-reply textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 2.6rem;
}
.pt-chat-error { color: #b91c1c; font-size: 0.85rem; }

.pt-chat__closed {
  align-self: center;
  margin-top: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 650;
}
@media (max-width: 1100px) {
  .pt-chat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pt-layout { grid-template-columns: 1fr; }
  .pt-chat-pane {
    position: fixed;
    inset: var(--topbar-height) 0 0 auto;
    width: min(100vw, 28rem);
    height: calc(100dvh - var(--topbar-height));
    z-index: 80;
    transform: translateX(105%);
    transition: transform 0.2s ease;
    border-radius: 0;
  }
  .pt-chat-pane.is-open { transform: translateX(0); }
  .pt-filters { grid-template-columns: 1fr 1fr; }
  .pt-chat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pct-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  text-align: left;
  padding: 0.55rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.pct-table td {
  padding: 0.45rem 0.65rem;
  border-top: 1px solid #f1f5f9;
  vertical-align: middle;
}
.pct-row--changed { background: #fffbeb; }
.pct-row--skip-common { background: #f8fafc; }
.pct-skip-head,
.pct-skip-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #334155;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.pct-skip-head input,
.pct-skip-cell input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #0f766e;
}
.pct-thumb-btn {
  display: inline-flex;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.pct-thumb-btn img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.pct-thumb-empty {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
}
.pct-var-name { font-weight: 600; color: #0f172a; }
.pct-var-sku { font-size: 0.65rem; color: #94a3b8; margin-top: 0.1rem; }
.pct-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; }
.pct-num { font-variant-numeric: tabular-nums; }
.pct-input {
  width: 5.5rem;
  min-width: 4.5rem;
  padding: 0.3rem 0.4rem !important;
  font-size: 0.78rem !important;
}
.pct-contact { margin-top: 0.15rem; }
@media (min-width: 560px) {
  .pct-contact { grid-template-columns: 1fr 1fr; }
  .pct-contact .pct-field--wide { grid-column: 1 / -1; }
}
.pct-contact textarea.lst-input {
  resize: vertical;
  min-height: 2.6rem;
}

/* ?? Import hub ?? */
.imp-page { display: flex; flex-direction: column; gap: 1rem; }
.egr-dl .imp-job-modal__track { margin: 0.95rem 0 0; }
.egr-dl--err #imp-job-msg { color: #b91c1c; }
.imp-hero__title { margin: 0 0 0.3rem; font-size: 1.3rem; font-weight: 800; color: var(--color-text-1); }
.imp-hero__sub { margin: 0; font-size: 0.85rem; color: var(--color-text-2); max-width: 42rem; }
.imp-banner { margin: 0; border-radius: 10px; padding: 0.65rem 0.85rem; font-size: 0.875rem; font-weight: 500; border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.imp-banner--err { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.imp-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.65rem; }
.imp-tpl { text-align: left; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.85rem 0.95rem; border-radius: 14px; border: 1.5px solid var(--color-border); background: #fff; cursor: pointer; font-family: inherit; }
.imp-tpl:hover { border-color: var(--color-primary-border); background: var(--color-primary-light); }
.imp-tpl--active { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: 0 0 0 3px var(--color-primary-focus); }
.imp-tpl__title { font-size: 0.85rem; font-weight: 800; color: var(--color-text-1); }
.imp-tpl__desc { font-size: 0.72rem; color: var(--color-text-2); line-height: 1.4; }
.imp-panel { padding: 1.1rem; border-radius: 16px; border: 1px solid var(--color-border); background: #fff; box-shadow: 0 1px 3px rgb(15 31 77 / 0.06); display: flex; flex-direction: column; gap: 0.85rem; }
.imp-panel[hidden] { display: none; }
.imp-panel__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--color-text-1); }
.imp-panel__desc { margin: 0; font-size: 0.82rem; color: var(--color-text-2); line-height: 1.5; max-width: 46rem; }
.imp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .imp-cols { grid-template-columns: 1fr; } }
.imp-col { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.85rem; border-radius: 12px; background: #f9fafb; border: 1px solid #f1f5f9; }
.imp-col__title { margin: 0; font-size: 0.78rem; font-weight: 800; color: var(--color-text-1); }
.imp-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px solid var(--color-border); background: #fff; color: #374151; font-size: 0.8125rem; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; text-decoration: none; width: fit-content; }
.imp-btn:hover:not(:disabled) { background: #f8fafc; }
.imp-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.imp-btn--primary { border: none; background: var(--gradient-primary); color: #fff; box-shadow: 0 3px 10px rgb(255 107 53 / 0.25); }
.imp-hint { margin: 0; font-size: 0.72rem; color: var(--color-text-2); line-height: 1.45; }
.imp-file { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px dashed #cbd5e1; background: #fff; font-size: 0.8rem; font-weight: 600; color: #475569; cursor: pointer; width: fit-content; max-width: 100%; }
.imp-file:hover { border-color: var(--color-primary-border); background: var(--color-primary-light); }
.imp-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--color-text-1); }
.imp-input { width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem; border-radius: 9px; border: 1px solid var(--color-border); background: #f8fafc; font-size: 0.85rem; font-family: inherit; color: var(--color-text-1); }
.imp-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-focus); background: #fff; }
.imp-summary { padding: 0.55rem 0.75rem; border-radius: 10px; background: #f0fdfa; border: 1px solid #99f6e4; font-size: 0.78rem; font-weight: 600; color: #0f766e; }
.imp-status { margin: 0; padding: 0.55rem 0.75rem; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 0.78rem; font-weight: 600; color: #1d4ed8; }
.imp-table-wrap { border-radius: 12px; border: 1px solid var(--color-border); overflow: auto; }
.imp-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.78rem; }
.imp-table th { padding: 0.55rem 0.75rem; text-align: left; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; background: #f9fafb; border-bottom: 1px solid var(--color-border); }
.imp-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid #f1f5f9; }
.imp-status-pill { display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; background: #f1f5f9; color: #475569; text-transform: capitalize; }
.imp-status-pill--created, .imp-status-pill--mapped, .imp-status-pill--updated { background: #ecfdf5; color: #047857; }
.imp-status-pill--failed { background: #fef2f2; color: #b91c1c; }
.imp-status-pill--skipped { background: #fffbeb; color: #b45309; }
.imp-cat-search { display: flex; gap: 0.5rem; }
.imp-cat-search .imp-input { flex: 1; }
.imp-cat-results { display: flex; flex-direction: column; gap: 0.3rem; max-height: 12rem; overflow-y: auto; border-radius: 10px; border: 1px solid var(--color-border); padding: 0.4rem; }
.imp-cat-result { text-align: left; padding: 0.5rem 0.65rem; border-radius: 8px; border: none; background: #f9fafb; font-size: 0.78rem; font-weight: 600; color: var(--color-text-1); cursor: pointer; font-family: inherit; }
.imp-cat-result:hover { background: var(--color-primary-light); }
.imp-cat-selected { margin: 0; font-size: 0.78rem; font-weight: 700; color: #047857; }
.imp-cat-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.imp-cat-thumb { position: relative; width: 4.5rem; height: 4.5rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--color-border); }
.imp-cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imp-cat-thumb__remove { position: absolute; top: 2px; right: 2px; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: none; background: rgb(15 23 42 / 0.65); color: #fff; font-size: 0.85rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Import progress modal */
.imp-job-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.imp-job-modal[hidden] { display: none !important; }
.imp-job-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.5);
  backdrop-filter: blur(3px);
}
.imp-job-modal__box {
  position: relative;
  width: min(400px, 100%);
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 28px 56px rgb(15 31 77 / 0.2);
  text-align: center;
  animation: imp-job-pop 0.28s ease-out;
}
@keyframes imp-job-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.imp-job-modal__visual {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
}
.imp-job-modal__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed #fdba74;
  animation: imp-job-spin 10s linear infinite;
}
.imp-job-modal__orbit .imp-job-modal__dot {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-primary, #ff6b35);
  box-shadow: 0 0 0 3px rgb(255 107 53 / 0.18);
}
.imp-job-modal__orbit .imp-job-modal__dot:nth-child(1) { top: -3px; left: 50%; margin-left: -0.225rem; }
.imp-job-modal__orbit .imp-job-modal__dot:nth-child(2) { bottom: 8px; right: -2px; }
.imp-job-modal__orbit .imp-job-modal__dot:nth-child(3) { bottom: 8px; left: -2px; }
.imp-job-modal__icon {
  position: absolute;
  inset: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: var(--color-primary-darker, #c2410c);
  box-shadow: inset 0 0 0 1px #fed7aa;
}
.imp-job-modal--done .imp-job-modal__icon {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  color: #059669;
  box-shadow: inset 0 0 0 1px #a7f3d0;
}
.imp-job-modal--error .imp-job-modal__icon {
  background: linear-gradient(145deg, #fef2f2, #fecaca);
  color: #dc2626;
  box-shadow: inset 0 0 0 1px #fecaca;
}
.imp-job-modal--done .imp-job-modal__orbit,
.imp-job-modal--error .imp-job-modal__orbit { animation: none; opacity: 0.35; }
.imp-job-modal__spin { animation: imp-job-spin 0.9s linear infinite; }
.imp-job-modal__spin[hidden],
.imp-job-modal__check[hidden] { display: none !important; }
@keyframes imp-job-spin {
  to { transform: rotate(360deg); }
}
.imp-job-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-1, #0f172a);
}
.imp-job-modal__sub {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-2, #64748b);
  line-height: 1.4;
}
.imp-job-modal__track {
  margin: 1.1rem 0 0.4rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.imp-job-modal__bar {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b35, #ff8f5c, #ff6b35);
  background-size: 200% 100%;
  transition: width 0.35s ease;
  animation: imp-job-shimmer 1.4s ease infinite;
}
.imp-job-modal__bar--indeterminate {
  width: 40% !important;
  animation: imp-job-indet 1.2s ease-in-out infinite, imp-job-shimmer 1.4s ease infinite;
}
.imp-job-modal--done .imp-job-modal__bar {
  width: 100% !important;
  background: linear-gradient(90deg, #059669, #34d399);
  animation: none;
}
.imp-job-modal--error .imp-job-modal__bar {
  background: linear-gradient(90deg, #dc2626, #f87171);
  animation: none;
}
@keyframes imp-job-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes imp-job-indet {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(180%); }
}
.imp-job-modal__pct {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.imp-job-modal__steps {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.imp-job-modal__steps:empty { display: none; }
.imp-job-modal__step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: #f8fafc;
}
.imp-job-modal__step-mark {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.imp-job-modal__step--active {
  color: #c2410c;
  background: #fff7ed;
}
.imp-job-modal__step--active .imp-job-modal__step-mark {
  border-color: #ff6b35;
  background: #ff6b35;
  box-shadow: 0 0 0 3px rgb(255 107 53 / 0.2);
  animation: imp-job-pulse 1.1s ease infinite;
}
.imp-job-modal__step--done {
  color: #047857;
  background: #f0fdf4;
}
.imp-job-modal__step--done .imp-job-modal__step-mark {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}
.imp-job-modal__step--done .imp-job-modal__step-mark::after { content: '?'; }
@keyframes imp-job-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgb(255 107 53 / 0.2); }
  50% { box-shadow: 0 0 0 6px rgb(255 107 53 / 0.08); }
}
.imp-job-modal__msg {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
  min-height: 1.3em;
}
.imp-job-modal--error .imp-job-modal__msg { color: #b91c1c; }
.imp-job-modal__box > .imp-btn {
  margin: 1rem auto 0;
  min-width: 7rem;
  justify-content: center;
}
.imp-job-modal__box > .imp-btn[hidden] { display: none !important; }

/* ===== Home dashboard ===== */
.oms-home .shell-outlet {
  background:
    radial-gradient(1200px 280px at 0% 0%, rgb(255 107 53 / 0.07), transparent 55%),
    var(--bg-main);
}

.home-page {
  padding-bottom: 1.25rem;
}

.home-hero {
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background:
    linear-gradient(180deg, rgb(255 107 53 / 0.12) 0%, transparent 42%),
    #111318;
  box-shadow: none;
  padding: 0.7rem 0.8rem 0.65rem;
  color: #e8ecf7;
}

.home-hero__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-hero__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.home-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: none;
  overflow: hidden;
}

.home-hero__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff6b35;
}

.home-hero__title {
  margin: 0.05rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #f8fafc;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.home-hero__field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.home-hero__field select,
.home-hero__field input[type='date'] {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
  background: rgb(255 255 255 / 0.06);
  color: #f1f5f9;
}

.home-hero__field select option,
.home-hero__field select optgroup {
  color: #0f172a;
  background: #fff;
}

.home-hero__field input[type='date'] {
  color-scheme: dark;
}

.home-oms-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.home-oms-rail a {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.05);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.home-oms-rail a:hover {
  border-color: rgb(255 107 53 / 0.55);
  color: #fff;
  background: rgb(255 107 53 / 0.16);
}

.home-oms-band {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.home-hero__field input[type='date'] {
  min-width: 9.5rem;
}

.home-hero__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.home-hero__preset {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  padding: 0.38rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  background: rgb(255 255 255 / 0.06);
  color: #cbd5e1;
  cursor: pointer;
}

.home-hero__preset:hover:not(:disabled) {
  border-color: rgb(255 107 53 / 0.55);
  color: #fff;
}

.home-hero__preset:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.home-hero__preset--active {
  border-color: rgb(255 107 53 / 0.7);
  background: rgb(255 107 53 / 0.18);
  color: #fff;
}

.home-hero__refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.home-hero__refresh:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.home-hero__task {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.home-hero__task:hover {
  background: rgb(255 255 255 / 0.14);
}

.home-hero__task-ico {
  position: relative;
  display: inline-flex;
}

.home-hero__task-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px #1a2332;
}

.home-task-panel {
  width: min(480px, calc(100vw - 1.5rem));
}

.home-task-body {
  padding: 0.9rem 1rem 1.1rem;
  overflow: auto;
  background: #fff;
}

.home-task-form {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.home-task-form__label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-task-form__label input,
.home-task-form__label textarea {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0;
}

.home-task-form__err {
  margin: 0;
  color: #b91c1c;
  font-size: 0.78rem;
}

.home-task-form__submit {
  justify-self: start;
  border: none;
  border-radius: 8px;
  padding: 0.48rem 0.9rem;
  background: var(--gradient-primary);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.home-task-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.home-task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.home-task-item--done .home-task-item__title {
  text-decoration: line-through;
  color: #94a3b8;
}

.home-task-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.home-task-item--done .home-task-check {
  border-color: #22c55e;
  background: #22c55e;
}

.home-task-item__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 650;
  color: #0f172a;
}

.home-task-item__notes {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.home-task-del {
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.home-task-del:hover {
  color: #b91c1c;
}

.home-task-alerts {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e2e8f0;
}

.home-task-alerts__title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.home-banner {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}

.home-banner--err {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.home-desktop-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 3px rgb(15 31 77 / 0.06);
}

.home-desktop-promo[hidden] {
  display: none !important;
}

.home-desktop-promo__body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 280px;
  min-width: 0;
}

.home-desktop-promo__ico {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
}

.home-desktop-promo__title {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}

.home-desktop-promo__msg {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}

.home-desktop-promo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.home-desktop-promo__btn {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 0.55rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: #1d4ed8;
  cursor: pointer;
}

.home-desktop-promo__btn:hover:not(:disabled) {
  background: #1e40af;
}

.home-desktop-promo__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.home-desktop-promo__dismiss {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  cursor: pointer;
}

.home-desktop-promo__dismiss:hover {
  background: #f8fafc;
}

.home-desktop-promo__status {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.75rem;
  color: #1d4ed8;
}

.home-desktop-promo__status--err {
  color: #b91c1c;
}

.home-alerts {
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 3px rgb(15 31 77 / 0.06);
}

.home-alerts__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.home-alerts__ico {
  display: flex;
  color: #d97706;
}

.home-alerts__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-text-1);
}

.home-alerts__count {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
}

.home-alerts__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.home-alert--warning {
  border-color: #fcd34d;
  background: #fffbeb;
}

.home-alert--info {
  border-color: #93c5fd;
  background: #eff6ff;
}

.home-alert--error {
  border-color: #fca5a5;
  background: #fef2f2;
}

.home-alert__body {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-width: 0;
}

.home-alert__type-ico {
  display: flex;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #d97706;
}

.home-alert--info .home-alert__type-ico {
  color: #2563eb;
}

.home-alert__text {
  min-width: 0;
}

.home-alert__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-text-1);
}

.home-alert__msg {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.home-alert__action {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.home-alert__action:hover {
  background: #fde68a;
}

.home-kpis {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: stretch;
}

@media (max-width: 1400px) {
  .home-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

.rev-status {
  display: none;
  margin: 0.7rem 0 0;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
}

@media (min-width: 900px) {
  .rev-status {
    display: block;
  }
}

.rev-status[hidden] {
  display: none !important;
}

.pay-page .rev-status {
  margin: 0.55rem 0 0.7rem;
}

.rev-status__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.rev-status__periods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.rev-status__preset {
  appearance: none;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.rev-status__preset:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.rev-status__preset.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.rev-status__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.rev-status__card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem 0.6rem;
  background: #f8fafc;
  min-width: 0;
}

.rev-status__card--rto {
  background: #fff7ed;
  border-color: #fed7aa;
}

.rev-status__card--return {
  background: #fef2f2;
  border-color: #fecaca;
}

.rev-status__card--exchange {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.rev-status__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.rev-status__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.rev-status__pct {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}

.rev-status__value {
  margin: 0.12rem 0 0.28rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.rev-status__bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.08);
  margin: 0 0 0.45rem;
  overflow: hidden;
}

.rev-status__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
}

.rev-status__card--rto .rev-status__bar-fill {
  background: #ea580c;
}

.rev-status__card--rto .rev-status__pct {
  color: #c2410c;
}

.rev-status__card--return .rev-status__bar-fill {
  background: #dc2626;
}

.rev-status__card--return .rev-status__pct {
  color: #b91c1c;
}

.rev-status__card--exchange .rev-status__bar-fill {
  background: #2563eb;
}

.rev-status__card--exchange .rev-status__pct {
  color: #1d4ed8;
}

.rev-status__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.rev-status__stat {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rev-status__stat:hover {
  border-color: #94a3b8;
  background: #fff;
}

.rev-status__stat-k {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.rev-status__stat-v {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.home-mp-dispatch {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: none;
}

.home-mp-dispatch__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.home-mp-dispatch__empty {
  min-height: 3rem;
}

.home-mp-dispatch__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 900px) {
  .home-mp-dispatch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .home-mp-dispatch__grid {
    grid-template-columns: 1fr;
  }
}

.home-mp-dispatch__card {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.home-mp-dispatch__dot {
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #94a3b8;
}

.home-mp-dispatch__body {
  min-width: 0;
  flex: 1;
}

.home-mp-dispatch__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
}

.home-mp-dispatch__value {
  margin: 0.05rem 0 0.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.home-ads {
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #fff;
  padding: 0.85rem 0.95rem 1rem;
  box-shadow: 0 1px 3px rgb(15 31 77 / 0.05);
}
.home-ads__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 0.65rem; margin-bottom: 0.75rem;
}
.home-chart__ico--ads { background: #eef2ff; border-color: #c7d2fe; }
.home-ads__totals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.home-ads__total-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 0.4rem 0.5rem;
}
.home-ads__total-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.home-ads__total-value {
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.home-ads__empty {
  min-height: 4.5rem;
}
.home-ads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.home-ads__card {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem 0.6rem;
}
.home-ads__card--err {
  background: #fff;
  border-color: var(--color-border);
}
.home-ads__dot {
  width: 0.55rem; height: 0.55rem; border-radius: 999px; margin-top: 0.35rem; flex-shrink: 0;
}
.home-ads__body { min-width: 0; flex: 1; }
.home-ads__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-ads__err {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b45309;
  line-height: 1.35;
}
.home-ads__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.55rem;
  margin-top: 0.45rem;
}
.home-ads__metrics div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.home-ads__metrics span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}
.home-ads__metrics strong {
  font-size: 0.82rem;
  font-weight: 750;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.biz-page .inv-hero__actions { align-items: flex-end; }
.biz-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.biz-kpi {
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}
.biz-kpi span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}
.biz-kpi strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.biz-chart { margin-top: 0.35rem; }
.biz-chart__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.biz-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 96px;
  overflow-x: auto;
}
.biz-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 14px;
  flex: 1;
  height: 96px;
}
.biz-bar span {
  display: block;
  width: 100%;
  max-width: 16px;
  border-radius: 4px 4px 2px 2px;
  background: #ff6b35;
}
.biz-bar em {
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.62rem;
  color: #94a3b8;
}
.biz-suggest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.biz-suggest-title { margin: 0; font-size: 1rem; }
.biz-table { min-width: 980px; }
.biz-table th.inv-num,
.biz-table td.inv-num { text-align: right; white-space: nowrap; }
.biz-listing { display: flex; align-items: center; gap: 0.55rem; min-width: 16rem; }
.biz-listing img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #f8fafc; flex: 0 0 auto;
}
.biz-name {
  font-weight: 650; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.biz-sku { color: #64748b; font-size: 0.72rem; }
.biz-pill {
  display: inline-flex; border-radius: 999px; padding: 0.16rem 0.5rem;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.biz-pill--add { background: #fff7ed; color: #c2410c; }
.biz-pill--skip { background: #fef2f2; color: #b91c1c; }
.biz-pill--watch { background: #f8fafc; color: #475569; }
.biz-reason {
  min-width: 18rem;
  max-width: 28rem;
  white-space: normal;
  line-height: 1.4;
  color: #334155;
  font-size: 0.78rem;
}
.biz-perc { display: block; font-size: 0.68rem; color: #64748b; }
.biz-perc--up { color: #15803d; }
.biz-perc--down { color: #b91c1c; }

.home-kpi {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  padding: 0.4rem 0.5rem 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  border-left: 3px solid #ff6b35;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.home-kpi--link:hover {
  border-color: var(--color-primary-border);
  background: var(--color-primary-light);
  box-shadow: none;
}

.home-kpi--primary {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #ff6b35;
}
.home-kpi--returns-delivered {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
}
.home-kpi--accounts {
  background: #ecfeff;
  border-color: #a5f3fc;
  border-left-color: #0891b2;
}
.home-kpi--paid {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #059669;
}
.home-kpi--unpaid {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}
.home-kpi--stuck-unpaid {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
}
.home-kpi--ofd {
  background: #eef2ff;
  border-color: #c7d2fe;
  border-left-color: #4f46e5;
}
.home-kpi--stale {
  background: #fff7ed;
  border-color: #fdba74;
  border-left-color: #ea580c;
}
.home-kpi--returnless-loss {
  background: #fff1f2;
  border-color: #fecdd3;
  border-left-color: #e11d48;
}
.home-kpi--claim-block-loss {
  background: #f5f3ff;
  border-color: #ddd6fe;
  border-left-color: #7c3aed;
}

.home-kpi__ico--ofd {
  color: #4f46e5;
  background: #fff;
}

.ofd-modal-panel {
  max-width: min(1100px, calc(100vw - 2rem));
  width: 100%;
}

.ofd-table-wrap {
  overflow: auto;
  max-height: min(62vh, 520px);
  border: 1px solid #e8edf7;
  border-radius: 10px;
}

.ofd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ofd-table th,
.ofd-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.ofd-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #64748b;
}

.ofd-table__awb {
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

.ofd-table__awb a {
  color: #3730a3;
}

.ofd-raise-btn {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.ofd-page .mp-toolbar {
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-kpi--interactive {
  cursor: pointer;
}

.home-kpi--interactive:hover {
  border-color: var(--color-primary-border);
  box-shadow: none;
  background: var(--color-primary-light);
}

.home-kpi__head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.1rem;
}

.home-kpi__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgb(15 23 42 / 0.06);
  flex-shrink: 0;
}
.home-kpi__ico img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  display: block;
}

.home-kpi__ico--orders { background: #fff7ed; }
.home-kpi__ico--returns-delivered { background: #ecfdf5; }
.home-kpi__ico--accounts { background: #ecfeff; }
.home-kpi__ico--paid { background: #ecfdf5; }
.home-kpi__ico--unpaid { background: #fffbeb; }
.home-kpi__ico--stuck-unpaid { background: #fef2f2; }
.home-kpi__ico--ofd { background: #eef2ff; }
.home-kpi__ico--stale { background: #fff7ed; }
.home-kpi__ico--returnless-loss { background: #fff1f2; }
.home-kpi__ico--claim-block-loss { background: #f5f3ff; }

.home-kpi--stuck-unpaid .home-kpi__value {
  color: #b91c1c;
}

.home-kpi--returnless-loss .home-kpi__value {
  color: #be123c;
}

.home-kpi--claim-block-loss .home-kpi__value {
  color: #6d28d9;
}

.home-kpi__sub {
  margin: 0.12rem 0 0;
  font-size: 0.56rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-kpi__label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  line-height: 1.2;
  min-height: 0;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-kpi__value {
  margin: 0.05rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.home-kpi__compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  margin-top: 0.15rem;
  min-height: 0;
  font-size: 0.6rem;
}

.home-kpi__yesterday {
  color: #94a3b8;
}

.home-kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-weight: 600;
}

.home-kpi__delta--up {
  color: #059669;
}

.home-kpi__delta--down {
  color: #dc2626;
}

.home-kpi__hint {
  margin: 0.25rem 0 0;
  font-size: 0.6rem;
  font-weight: 600;
  color: #9a6b4a;
}

.pay-amt--neg { color: #b91c1c; }
.pay-amt--pos { color: #15803d; }

.pay-ledger,
.home-paid-ledger {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0.65rem 0.75rem 0.7rem;
}

.home-paid-ledger__head {
  margin-bottom: 0.55rem;
}

.pay-ledger__cards,
.home-paid-ledger__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr));
  gap: 0.45rem;
}

@media (max-width: 1100px) {
  .pay-ledger__cards,
  .home-paid-ledger__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pay-ledger__cards,
  .home-paid-ledger__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.pay-ledger__card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
  min-width: 0;
}

.pay-ledger__card span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.pay-ledger__card strong {
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.pay-ledger__card--deduct {
  border-color: #fecaca;
  background: #fef2f2;
}

.pay-ledger__card--deduct strong { color: #b91c1c; }

.pay-ledger__card--profit {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.oms-home .pay-ledger__card--profit,
.oms-home #home-led-profit {
  display: none !important;
}

.pay-hide-profit .pay-col-profit,
.pay-hide-profit #pay-led-profit-card {
  display: none;
}

.pay-ledger__lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.65rem;
}

@media (max-width: 900px) {
  .pay-ledger__lines {
    grid-template-columns: 1fr;
  }
}

.pay-ledger__group h4 {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.pay-ledger__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.18rem 0;
  font-size: 0.78rem;
  color: #475569;
  border-bottom: 1px dashed #e5e7eb;
}

.pay-ledger__line span:last-child {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #0f172a;
}

.pay-ledger__hint {
  margin: 0.45rem 0 0;
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b45309;
}

.ppdm-group--profit {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #e5e7eb;
}

.home-rates {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0.65rem 0.75rem 0.7rem;
}

.home-rates__head {
  margin-bottom: 0.55rem;
}

.home-chart__ico--rates {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.home-rates__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

@media (max-width: 1100px) {
  .home-rates__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-rates__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-rate {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.home-rate--delivered {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.home-rate--return {
  border-color: #fed7aa;
  background: #fff7ed;
}
.home-rate--rto {
  border-color: #fecaca;
  background: #fef2f2;
}
.home-rate--exchange {
  border-color: #c7d2fe;
  background: #eef2ff;
}
.home-rate--cancelled {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.home-rate--remaining {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.home-rate__head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.home-rate__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 5px;
  background: #fff;
  color: #64748b;
}

.home-rate--delivered .home-rate__ico { color: #16a34a; background: #dcfce7; }
.home-rate--return .home-rate__ico { color: #ea580c; background: #ffedd5; }
.home-rate--rto .home-rate__ico { color: #dc2626; background: #fee2e2; }
.home-rate--exchange .home-rate__ico { color: #4f46e5; background: #e0e7ff; }
.home-rate--cancelled .home-rate__ico { color: #64748b; background: #e2e8f0; }
.home-rate--remaining .home-rate__ico { color: #0369a1; background: #e0f2fe; }

.home-rate__label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7b8ba8;
  line-height: 1.2;
}

.home-rate__value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.home-rate__count {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.home-top-skus {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: none;
  padding: 0.65rem 0.75rem 0.7rem;
}

.home-top-skus__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.home-top-skus__mode-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.1rem 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1.5px solid transparent;
}

.home-top-skus__mode-btn:hover {
  color: #334155;
}

.home-top-skus__mode-btn--active {
  color: #0f172a;
  border-bottom-color: #0f172a;
}

.home-chart__ico--skus {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.home-top-skus__empty {
  min-height: 72px;
}

.home-top-skus__table-wrap {
  overflow-x: auto;
  margin: 0;
  border: 1px solid #eef2f7;
  border-radius: 6px;
}

.home-top-skus__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.home-top-skus__th {
  padding: 0.35rem 0.55rem;
  text-align: left;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf5;
}

.home-top-skus__th--rank {
  width: 2rem;
  text-align: center;
}

.home-top-skus__th--sku {
  width: 28%;
  min-width: 6.5rem;
}

.home-top-skus__th--count {
  width: 7.5rem;
  text-align: right;
}

.home-top-skus__row--top3 .home-top-skus__rank {
  color: #b45309;
  font-weight: 800;
}

.home-top-skus__row:hover td {
  background: #f8fafc;
}

.home-top-skus__row:last-child td {
  border-bottom: none;
}

.home-top-skus__row td {
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.home-top-skus__rank {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.home-top-skus__product {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.home-top-skus__thumb {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid #e8edf5;
  background: #f8fafc;
}
.home-top-skus__thumb-btn {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.home-top-skus__thumb-btn .home-top-skus__thumb {
  display: block;
}

.home-top-skus__thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.home-top-skus__name {
  font-weight: 600;
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-top-skus__sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
  word-break: break-all;
}

.home-top-skus__count {
  text-align: right;
}

.home-top-skus__count-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 4.5rem;
}

.home-top-skus__count-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4338ca;
  font-variant-numeric: tabular-nums;
}

.home-top-skus__bar-track {
  width: 100%;
  max-width: 5rem;
  height: 3px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}

.home-top-skus__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a55 0%, #ff6b35 100%);
  min-width: 3px;
  transition: width 0.25s ease;
}

.home-trends {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .home-trends {
    grid-template-columns: 1fr 1fr;
  }
}

.home-chart {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  padding: 0.75rem 0.85rem 0.85rem;
}

.home-chart--line {
  min-height: 0;
}

.home-chart__empty--line {
  min-height: 110px;
}

.home-chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.65rem;
}

.home-chart__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.home-chart__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.home-chart__ico img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  display: block;
}

.home-chart__ico--returns {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.home-chart__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-1);
  letter-spacing: -0.01em;
}

.home-chart__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.home-chart__meta-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.home-chart__meta-plus {
  font-size: 0.7rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0 0.05rem;
}

.home-chart__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #e8edf5;
  background: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: #475569;
  letter-spacing: 0.01em;
}

.home-chart__chip--date {
  border-color: #ffd8c2;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
}

.home-chart__chip--tz {
  border-color: #e2e8f0;
  background: #fff;
  color: #64748b;
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-chart__chip--warn {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.home-chart--returns .home-chart__chip--date {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.home-chart__total {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #fff4ed;
  color: var(--color-primary-darker);
  border: 1px solid #ffe0cc;
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-chart__total--returns {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.home-chart--returns {
  border-color: #fed7aa;
  background:
    linear-gradient(180deg, #fffdfb 0%, #fffaf5 100%);
}

.home-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: -0.15rem 0 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
}

.home-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.home-chart__legend-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.06);
}

.home-chart__legend-swatch--delivered {
  background: #16a34a;
}

.home-chart__legend-swatch--failed {
  background: #ef4444;
}

.home-chart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 132px;
  border-radius: 10px;
  border: 1px dashed #e2e8f0;
  background: #fafbfc;
  font-size: 0.75rem;
  color: #64748b;
}

.home-chart__empty p {
  margin: 0;
}

.home-chart__plot {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 176px;
  padding: 0.55rem 0.45rem 0.35rem;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background:
    linear-gradient(to top, #e8edf5 1px, transparent 1px) 0 100% / 100% 120px no-repeat,
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent 29px,
      #f1f5f9 29px,
      #f1f5f9 30px
    ),
    linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
  scrollbar-width: thin;
}

.home-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 58px;
  min-width: 58px;
  max-width: 104px;
  transition: transform 0.15s ease;
}

.home-chart__col:hover {
  transform: translateY(-1px);
}

.home-chart__val {
  font-size: 0.68rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.home-chart__bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 120px;
}

.home-chart__bar {
  width: min(34px, 68%);
  min-height: 4px;
  border-radius: 7px 7px 3px 3px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 4px 10px rgb(15 23 42 / 0.12);
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.15s ease;
}

.home-chart__col:hover .home-chart__bar {
  filter: brightness(1.06) saturate(1.05);
}

.home-chart__bar--stack {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 4px;
  padding: 0;
}

.home-chart__bar-seg {
  width: 100%;
  min-height: 2px;
}

.home-chart__bar-seg--delivered {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
}

.home-chart__bar-seg--failed {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

.home-chart__label {
  margin-top: 0.4rem;
  font-size: 0.58rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
}

/* Line / trend charts (Orders & Returns) */
.line-chart {
  --line-accent: var(--color-primary);
  position: relative;
  width: 100%;
  padding: 0.35rem 0.2rem 0.15rem;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
}

.line-chart__svg {
  display: block;
  width: 100%;
  height: 168px;
  overflow: visible;
}

.line-chart__grid {
  stroke: #e8edf5;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.line-chart__area {
  fill: color-mix(in srgb, var(--line-accent) 16%, transparent);
  stroke: none;
}

.line-chart__line {
  fill: none;
  stroke: var(--line-accent);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--line-accent) 35%, transparent));
}

.line-chart__dot {
  fill: #fff;
  stroke: var(--line-accent);
  stroke-width: 2.25;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  transition: r 0.12s ease, fill 0.12s ease;
  filter: drop-shadow(0 1px 2px rgb(15 23 42 / 0.12));
}

.line-chart__dot--active {
  r: 5.5;
  fill: var(--line-accent);
}

.line-chart__tip {
  position: absolute;
  top: 0.35rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
  border: 1px solid #e8edf5;
  background: #fff;
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.12);
  font-size: 0.68rem;
  color: #64748b;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.line-chart__tip strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--line-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.line-chart__tip-date {
  display: block;
  margin-bottom: 0.08rem;
  font-weight: 600;
}

.line-chart__x {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding: 0 0.35rem 0.15rem;
}

.line-chart__x-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.home-chart--returns .line-chart {
  border-color: #f3e8d8;
  background: linear-gradient(180deg, #fffdfb 0%, #fffaf5 100%);
}

.home-spin {
  animation: home-spin 0.9s linear infinite;
}

@keyframes home-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Stale returns detail modal ===== */
.stale-modal-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.stale-modal-root .stale-modal-backdrop,
.stale-modal-root .stale-modal-panel {
  pointer-events: auto;
}

.stale-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(12 30 77 / 0.5);
  backdrop-filter: blur(2px);
}

.stale-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 1.5rem));
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgb(15 31 77 / 0.28);
}

.stale-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #1a2332;
  color: #fff;
}

.stale-modal-head__text {
  min-width: 0;
}

.stale-modal-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: break-word;
}

.stale-modal-sub {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stale-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.stale-modal-close:hover {
  background: rgb(255 255 255 / 0.14);
}

.stale-modal-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  background: #fff;
}

.stale-modal-muted {
  margin: 0;
  font-size: 0.875rem;
  color: #647196;
  text-align: center;
  padding: 1.5rem 0;
}

.stale-modal-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.stale-modal-picker__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f6;
  border-radius: 8px;
  background: #f8f9fc;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  max-width: 100%;
}

.stale-modal-picker__btn--active {
  border-color: #6b4fd8;
  background: #f3f0ff;
}

.stale-modal-picker__carrier {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1a2332;
}

.stale-modal-picker__meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: #647196;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.stale-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.stale-modal-copy-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: #6b4fd8;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.stale-modal-copy-all--ok {
  background: #059669;
}

.stale-modal-otp-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b4fd8;
  text-decoration: none;
}

.stale-modal-otp-link:hover {
  text-decoration: underline;
}

.stale-modal-awb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .stale-modal-awb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stale-modal-awb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.35rem;
  border: 1px solid #e8edf7;
  border-radius: 10px;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #1a2332;
  cursor: pointer;
  word-break: break-all;
  text-align: center;
  line-height: 1.25;
}

.stale-modal-awb:hover {
  border-color: #c4b5fd;
  background: #faf8ff;
}

/* ===== Sort & crop labels modal ===== */
.scl-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.scl-root[hidden] { display: none !important; }
.scl-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.42);
  backdrop-filter: blur(3px);
}
.scl-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: min(96vw, 1040px);
  max-height: min(92vh, 860px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 64px rgb(15 23 42 / 0.2);
}
.scl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  border-bottom: 1px solid #ffe8d6;
  flex-shrink: 0;
}
.scl-brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.scl-brand-text { min-width: 0; }
.scl-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}
.scl-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-1);
}
.scl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7c9e;
}
.scl-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8b4cc;
}
.scl-head-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.scl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fff;
  color: #3b4f7a;
  cursor: pointer;
}
.scl-icon-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}
.scl-icon-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.scl-icon-btn--sm { width: 26px; height: 26px; }
.scl-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0.9rem 1rem 1rem;
}
.scl-grid {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 0.9rem;
}
@media (min-width: 860px) {
  .scl-grid {
    flex-direction: row;
    align-items: stretch;
    min-height: 560px;
  }
}
.scl-col-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.scl-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 860px) {
  .scl-sidebar {
    width: 300px;
    flex-shrink: 0;
    max-height: 100%;
    overflow-y: auto;
  }
}
.scl-drop {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 1.75rem 1.25rem;
  border: 2px dashed #ffc9a8;
  border-radius: 14px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #fff4ed 0%, transparent 70%), #fffaf7;
  cursor: pointer;
}
@media (min-width: 860px) {
  .scl-drop { min-height: 280px; }
}
.scl-drop:hover,
.scl-drop.scl-drop--over {
  border-color: var(--color-primary);
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #ffe8d6 0%, transparent 70%), #fff4ed;
}
.scl-drop--has-files {
  min-height: 140px;
  flex: 0 0 auto;
}
.scl-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid #ffe0cc;
}
.scl-drop-title {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-1);
}
.scl-drop-hint {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: #6b7c9e;
}
.scl-drop-link { color: var(--color-primary); font-weight: 700; }
.scl-hidden { display: none; }
.scl-files {
  border: 1px solid #e4eaf5;
  border-radius: 12px;
  background: #fff;
  padding: 0.55rem 0.65rem;
}
.scl-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.scl-files-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #3b4f7a;
}
.scl-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.scl-link-btn:hover:not(:disabled) { text-decoration: underline; }
.scl-link-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.scl-link-btn--danger { color: #b42318; }
.scl-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 140px;
  overflow-y: auto;
}
.scl-file-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 9px;
  border: 1px solid #eef1f8;
  background: #fafbff;
}
.scl-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-1);
}
.scl-file-size {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: #6b7c9e;
}
.scl-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.scl-primary-btn:hover:not(:disabled) { filter: brightness(1.05); }
.scl-primary-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.scl-progress {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #ffe0cc;
  background: #fff4ed;
}
.scl-progress-track {
  height: 5px;
  border-radius: 999px;
  background: #ffe0cc;
  overflow: hidden;
}
.scl-progress-bar {
  height: 100%;
  width: 55%;
  border-radius: 999px;
  background: var(--color-primary);
  animation: scl-progress-pulse 1.1s ease-in-out infinite;
}
.scl-progress-label {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5b6b8c;
}
@keyframes scl-progress-pulse {
  0%, 100% { opacity: 0.65; transform: scaleX(0.92); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); }
}
.scl-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}
.scl-alert--ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.scl-alert--err { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }
.scl-section { display: flex; flex-direction: column; gap: 0.45rem; }
.scl-section-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7c9e;
}
.scl-seg {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: #f1f4fb;
  border: 1px solid #e4eaf5;
}
.scl-seg--wrap { flex-wrap: wrap; }
.scl-seg__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #5b6b8c;
  cursor: pointer;
  position: relative;
}
.scl-seg__btn input { position: absolute; opacity: 0; pointer-events: none; }
.scl-seg__btn--active {
  background: #fff;
  color: var(--color-primary-darker);
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.08);
}
.scl-choice-col { display: flex; flex-direction: column; gap: 0.35rem; }
.scl-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e4eaf5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.scl-choice input { margin: 0.15rem 0 0; accent-color: var(--color-primary); flex-shrink: 0; }
.scl-choice--active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.scl-choice__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.scl-choice__label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-1);
}
.scl-choice__hint {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  color: #6b7c9e;
}
.scl-beta-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  border: 1px solid #ffc9a8;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.scl-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #3b4f7a;
  cursor: pointer;
}
.scl-check input { accent-color: var(--color-primary); margin: 0.15rem 0 0; }
.scl-section--steps {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid #eef1f8;
}
.scl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.scl-step { display: flex; gap: 0.5rem; }
.scl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}
.scl-step-title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-text-1);
}
.scl-step-sub {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #6b7c9e;
}
.scl-previous {
  border: 1px solid #e8edf7;
  border-radius: 12px;
  background: #fafbff;
  padding: 0.65rem 0.75rem;
  flex-shrink: 0;
}
.scl-previous__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.scl-previous__title { font-size: 0.78rem; font-weight: 700; color: var(--color-text-1); }
.scl-previous__empty { margin: 0; font-size: 0.74rem; color: #6b7c9e; }
.scl-previous__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.scl-previous__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e8edf7;
}
.scl-previous__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.scl-previous__mp {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-darker);
}
.scl-previous__name {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scl-previous__status { font-size: 0.68rem; color: #6b7c9e; }
.scl-previous__status--err { color: #b91c1c; }
.scl-previous__time { font-size: 0.65rem; color: #8b9ab8; }
.scl-previous__dl {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid #ffc9a8;
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary-darker);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.scl-previous__dl:hover:not(:disabled) { background: var(--color-primary-light); }
.scl-previous__dl:disabled { opacity: 0.55; cursor: not-allowed; }
.scl-spin { animation: scl-spin 0.9s linear infinite; }
@keyframes scl-spin { to { transform: rotate(360deg); } }



/* ---- Payment Order Details modal (Angular ppdm parity) ---- */
.mp-modal__box--ppdm {
  width: min(860px, 100%);
  max-height: min(92vh, 880px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
}
.mp-modal__box--rdm {
  width: min(920px, 100%);
  max-height: min(90vh, 820px);
  padding: 1rem 1.25rem 1.25rem;
  overflow: auto;
  border-radius: 16px;
}
.ppdm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ppdm-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.ppdm-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.ppdm-close:hover { background: #f3f4f6; color: #111827; }
.ppdm-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.15rem 1.15rem;
}
.ppdm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}
.ppdm-spin,
.rdm-spin {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #cbd5e1;
  border-top-color: #64748b;
  border-radius: 50%;
  animation: ppdm-spin 0.85s linear infinite;
}
@keyframes ppdm-spin { to { transform: rotate(360deg); } }
.ppdm-warn {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.75rem;
  line-height: 1.4;
}
.ppdm-err {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.8125rem;
}
.ppdm-product {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.ppdm-product img,
.ppdm-product__ph,
.ppdm-product .pay-thumb-btn {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.ppdm-product .pay-thumb-btn {
  display: inline-flex;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.ppdm-product .pay-thumb-btn img {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}
.ppdm-product__ph { background: #f3f4f6; }
.ppdm-product__main { min-width: 0; flex: 1; }
.ppdm-product__name {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ppdm-product__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}
@media (max-width: 640px) {
  .ppdm-product__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ppdm-meta-label {
  display: block;
  font-size: 0.68rem;
  color: #9ca3af;
  margin-bottom: 0.1rem;
}
.ppdm-meta-val {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2937;
  word-break: break-all;
}
.ppdm-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
}
.ppdm-tag {
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
}
.ppdm-tag--rto {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.ppdm-tag--exchange {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
}
.ppdm-tag--cancel-order {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.ppdm-tag--resolve-hint {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.ppdm-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 700px) {
  .ppdm-cols { grid-template-columns: 1fr; }
}
.ppdm-col-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}
.ppdm-group {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed #e5e7eb;
}
.ppdm-group--net { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.ppdm-group-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}
.ppdm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.32rem 0;
  font-size: 0.84rem;
  color: #6b7280;
}
.ppdm-row > span:last-child {
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ppdm-row--bold,
.ppdm-row--bank { color: #111827; font-weight: 600; }
.ppdm-row--bold > span:last-child,
.ppdm-row--bank > span:last-child {
  font-weight: 800;
  font-size: 0.92rem;
}
.ppdm-amt--neg { color: #111827 !important; }
.ppdm-amt--bank { color: #111827 !important; font-weight: 800 !important; }
.ppdm-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.2rem;
  border-left: 2px solid #22c55e;
}
.ppdm-timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.05rem;
}
.ppdm-timeline li:last-child { padding-bottom: 0; }
.ppdm-dot {
  position: absolute;
  left: -0.4rem;
  top: 0.2rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #22c55e;
}
.ppdm-tl-body strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.ppdm-tl-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #6b7280;
}
.ppdm-tl-amt {
  margin-left: 0.2rem;
  font-weight: 600;
  color: #4b5563;
}
.ppdm-empty {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}
.ppdm-fallback-dates {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.ppdm-fallback-dates div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.ppdm-fallback-dates dt { margin: 0; color: #9ca3af; }
.ppdm-fallback-dates dd { margin: 0; font-weight: 600; color: #374151; }
.ppdm-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.72rem;
  color: #9ca3af;
}
.ppdm-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  flex-shrink: 0;
}
.ppdm-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-right: auto;
}
.ppdm-btn {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  font-family: inherit;
}
.ppdm-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ppdm-btn--cancel {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
.ppdm-btn--rto {
  color: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}
.ppdm-btn--paid {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

/* ---- Return Details modal (Angular rdm parity) ---- */
.rdm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.rdm__head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.rdm__head-actions { display: inline-flex; gap: 0.35rem; }
.rdm__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  font-family: inherit;
}
.rdm__icon-btn:hover:not(:disabled) {
  background: #f8fafc;
  color: var(--color-primary-darker, #c2410c);
}
.rdm__icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rdm__body { min-height: 4rem; }
.rdm__loading,
.rdm__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: #64748b;
  font-size: 0.9rem;
}
.rdm__err {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
}
.rdm__product {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}
.rdm__product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.rdm__product-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rdm__meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
.rdm__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .rdm__grid { grid-template-columns: 1fr; }
}
.rdm__panel {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.rdm__panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.rdm__dl { margin: 0; }
.rdm__dl > div {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.82rem;
}
.rdm__dl > div:last-child { border-bottom: none; }
.rdm__dl dt { color: #64748b; font-weight: 500; }
.rdm__dl dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}
.rdm-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}
.rdm-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
}
.rdm__courier,
.rdm__awb,
.rdm__pod {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  color: var(--color-primary-darker, #c2410c);
  text-decoration: none;
}
.rdm__pod { font-weight: 600; }
.rqc-open-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.rqc-box {
  max-width: 920px;
  width: min(920px, calc(100vw - 2rem));
}
.rqc-sub {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}
.rqc-body {
  padding: 0.75rem 1rem 1rem;
  max-height: min(72vh, 720px);
  overflow: auto;
}
.rqc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.rqc-card {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.rqc-card__preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #0f172a;
}
.rqc-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #0f172a;
}
.rqc-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}
.rdm__awb a { color: inherit; font-weight: 600; }
.rdm__awb a { color: inherit; font-weight: 600; }
.rdm__timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.35rem;
  border-left: 2px solid #e2e8f0;
}
.rdm__timeline li {
  position: relative;
  padding: 0 0 1rem 1rem;
}
.rdm__timeline li:last-child { padding-bottom: 0; }
.rdm__timeline strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}
.rdm__timeline span {
  font-size: 0.75rem;
  color: #64748b;
}
.rdm__dot {
  position: absolute;
  left: -0.4rem;
  top: 0.25rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #cbd5e1;
  border: 2px solid #fff;
}
.rdm__timeline-item--done .rdm__dot { background: #22c55e; }

/* Settings ? Show product image OFF */
body.oms-product-images-off .order-thumb-btn,
body.oms-product-images-off .order-thumb,
body.oms-product-images-off .returns-thumb-btn,
body.oms-product-images-off .returns-thumb,
body.oms-product-images-off .pay-thumb,
body.oms-product-images-off .pay-thumb-btn,
body.oms-product-images-off .pct-thumb-btn,
body.oms-product-images-off .pct-thumb-empty,
body.oms-product-images-off .lst-thumb,
body.oms-product-images-off .lst-thumb-btn,
body.oms-product-images-off .home-top-skus__thumb,
body.oms-product-images-off .home-top-skus__thumb-btn,
body.oms-product-images-off .ppdm-product > img,
body.oms-product-images-off .ppdm-product__ph,
body.oms-product-images-off .rdm__product > img,
body.oms-product-images-off .rdm__product .returns-thumb-btn,
body.oms-product-images-off .lookup-thumb,
body.oms-product-images-off .tb-lookup-thumb {
  display: none !important;
}

/* Shared product image preview modal */
body.oms-image-preview-open { overflow: hidden; }
.image-preview-root {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: rgb(15 23 42 / 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
  overflow: hidden;
}
.image-preview-root[hidden] { display: none !important; }
.image-preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.12s ease;
}
.image-preview-close:hover { background: rgb(255 255 255 / 0.28); }
.image-preview-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: min(92vw, 640px);
  cursor: default;
}
.image-preview-title {
  margin: 0;
  max-width: 100%;
  padding: 0 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-preview-img {
  display: block;
  max-width: min(92vw, 640px);
  max-height: min(82vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
}

/* Profit & Loss page */
.pl-page { display: flex; flex-direction: column; gap: 0.85rem; }
.pl-hero {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light, #fff7ed) 100%);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1rem;
}
.pl-hero__main { display: flex; align-items: center; gap: 0.7rem; }
.pl-hero__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9px;
  background: var(--gradient-primary, linear-gradient(135deg, #ff6b35, #e55a2b));
  color: #fff; flex-shrink: 0;
}
.pl-hero__title { margin: 0; font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; }
.pl-hero__sub { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--color-text-2); }
.pl-banner {
  margin: 0; padding: 0.65rem 0.85rem; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
}
.pl-banner--err { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.pl-banner--ok { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.pl-panel {
  border-radius: var(--radius); border: 1px solid var(--color-border);
  background: #fff; box-shadow: var(--shadow-sm); padding: 0.9rem 1rem;
}
.pl-filters__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
}
@media (max-width: 960px) {
  .pl-filters__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pl-filters__grid { grid-template-columns: 1fr; }
}
.pl-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.pl-field > span {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--color-text-2);
}
.pl-field input, .pl-field select {
  width: 100%; min-height: 2.35rem; padding: 0.4rem 0.65rem;
  border: 1px solid var(--color-border); border-radius: 8px;
  background: #fff; font: inherit; font-size: 0.875rem; color: var(--color-text-1);
}
.pl-field input:focus, .pl-field select:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-focus);
}
.pl-filters__actions { display: flex; align-items: end; }
.pl-filters__hint { margin: 0.7rem 0 0; font-size: 0.75rem; color: var(--color-text-2); }
.pl-section-head { margin-bottom: 0.75rem; }
.pl-section-title { margin: 0; font-size: 0.98rem; font-weight: 750; }
.pl-section-sub { margin: 0.2rem 0 0; font-size: 0.75rem; color: var(--color-text-2); }
.pl-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
}
.pl-status-card {
  border: 1px solid #e8edf5; border-radius: 12px; padding: 0.7rem 0.8rem;
  background: #f8fafc;
  width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.pl-status-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgb(15 23 42 / 0.08);
  transform: translateY(-1px);
}
.pl-status-card:focus-visible {
  outline: 2px solid #2563eb; outline-offset: 2px;
}
.pl-status-card--all { background: #eff6ff; border-color: #bfdbfe; }
.pl-status-card--rto { background: #fff7ed; border-color: #fed7aa; }
.pl-status-card--return { background: #fef2f2; border-color: #fecaca; }
.pl-status-card--exchange { background: #f5f3ff; border-color: #ddd6fe; }
.pl-status-card--delivered { background: #ecfdf5; border-color: #a7f3d0; }
.pl-status-card--pending_payment { background: #fffbeb; border-color: #fde68a; }
.pl-status-card--shipped { background: #eef2ff; border-color: #c7d2fe; }
.pl-status-card--cancelled { background: #f8fafc; border-color: #e2e8f0; }
.pl-status-card__label {
  margin: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #64748b;
}
.pl-status-card__count {
  margin: 0.25rem 0 0; font-size: 1.2rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em;
}
.pl-status-card__share, .pl-status-card__profit-share {
  margin: 0.1rem 0 0; font-size: 0.7rem; color: #64748b; font-weight: 600;
}
.pl-status-card__profit {
  margin: 0.45rem 0 0; font-size: 0.88rem; font-weight: 750; color: #0f766e;
}
.pl-cell-drill {
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 0.05rem;
  margin: 0; padding: 0.1rem 0.25rem; border: none; border-radius: 6px;
  background: transparent; cursor: pointer; font: inherit; color: inherit;
}
.pl-cell-drill:hover { background: #eff6ff; }
.pl-cell-drill:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.pl-table-wrap { overflow-x: auto; }
.pl-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 780px;
}
.pl-table th, .pl-table td {
  padding: 0.55rem 0.5rem; text-align: left; border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}
.pl-table th {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: #64748b; font-weight: 700; background: #f8fafc; white-space: nowrap;
}
.pl-table .pl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-table tfoot th {
  background: #f1f5f9; color: #0f172a; font-size: 0.78rem; text-transform: none; letter-spacing: 0;
}
.pl-row-drill { cursor: pointer; }
.pl-row-drill:hover { background: #fff7ed; }
.pl-cell-count { display: block; font-weight: 700; color: #0f172a; }
.pl-cell-pct { display: block; font-size: 0.68rem; color: #94a3b8; font-weight: 600; }
.pl-profit { color: #0f766e; font-weight: 700; }
.pl-profit--neg { color: #b91c1c; font-weight: 700; }
.pl-muted { display: block; margin-top: 0.1rem; font-size: 0.68rem; color: #94a3b8; }
.pl-mono { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; font-weight: 650; }
.pl-product { display: block; font-weight: 650; max-width: 16rem; }
.pl-empty { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--color-text-2); }
.pl-loading {
  margin: 0; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 600; color: var(--color-text-2);
}
.pl-detail-modal {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.pl-detail-modal[hidden] { display: none !important; }
.pl-detail-modal__backdrop {
  position: absolute; inset: 0; background: rgb(15 23 42 / 0.5); backdrop-filter: blur(2px);
}
.pl-detail-modal__box {
  position: relative; width: min(980px, 100%); max-height: min(88vh, 820px);
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid #e2e8f0; background: #fff;
  box-shadow: 0 24px 48px rgb(15 31 77 / 0.2); overflow: hidden;
}
.pl-detail-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid #f1f5f9;
}
.pl-detail-modal__title { margin: 0; font-size: 1rem; font-weight: 750; }
.pl-detail-modal__sub { margin: 0.2rem 0 0; font-size: 0.78rem; color: #64748b; }
.pl-detail-modal__close {
  border: none; background: transparent; color: #64748b; font-size: 1.4rem;
  width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer; line-height: 1;
}
.pl-detail-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.pl-detail-modal__body { padding: 0.85rem 1.1rem 1.1rem; overflow: auto; }
.pl-detail-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.65rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #eef2f7;
}
.pl-detail-pager[hidden] { display: none !important; }
.pl-detail-pager__meta {
  margin: 0; font-size: 0.78rem; font-weight: 650; color: #64748b;
}
.pl-detail-pager__btns { display: flex; gap: 0.45rem; }
.pl-detail-pager__btns .mp-btn { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
.pl-table--detail { min-width: 720px; }

.pl-filters__actions--pair { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; }
.pl-progress { margin-top: 0.85rem; }
.pl-progress__bar {
  height: 0.45rem; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.pl-progress__bar > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff6b35, #e55a2b);
  transition: width 0.35s ease;
}
.pl-progress__text {
  margin: 0.4rem 0 0; font-size: 0.78rem; font-weight: 600; color: var(--color-text-2);
}

/* ?? Inventory (in-OMS) ?? */
.inv-page { display: flex; flex-direction: column; gap: 0.9rem; }
.inv-hero {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f8fafc 100%);
}
.inv-hero__main {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem 1rem;
}
.inv-hero__brand { min-width: 0; flex: 1 1 14rem; }
.inv-hero__title { margin: 0; font-size: 1.2rem; font-weight: 780; color: #0f172a; line-height: 1.2; }
.inv-hero__sub {
  margin: 0.15rem 0 0; font-size: 0.75rem; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36rem;
}
.inv-hero__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; flex-shrink: 0; }
.inv-banner {
  margin: 0; padding: 0.65rem 0.85rem; border-radius: 10px;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: 0.82rem; font-weight: 600;
}
.inv-banner--err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.inv-banner--ok { background: #ecfdf5; color: #047857; border-color: #bbf7d0; }
.inv-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; flex-shrink: 0; }
.inv-tab {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.42rem 0.75rem; border-radius: 9px; border: 1px solid #e2e8f0;
  background: #fff; color: #475569; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.inv-tab:hover { background: #f8fafc; }
.inv-tab--active { background: #0f172a; color: #fff; border-color: #0f172a; }
.inv-tab__badge {
  padding: 0.1rem 0.4rem; border-radius: 999px; font-size: 0.68rem;
  background: #fed7aa; color: #9a3412;
}
.inv-tab--active .inv-tab__badge { background: #fb923c; color: #fff; }
.inv-panel {
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden;
}
.inv-subbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.65rem 1rem; padding: 0.75rem 1rem 0; border-bottom: 0;
}
.inv-status-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.inv-status-tabs--compact { margin-top: 0.15rem; }
.inv-status-tab {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.7rem; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #fff; color: #475569; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.inv-status-tab:hover { background: #f8fafc; }
.inv-status-tab--on { background: #0f172a; color: #fff; border-color: #0f172a; }
.inv-status-tab__count {
  min-width: 1.1rem; padding: 0.05rem 0.35rem; border-radius: 999px;
  background: #e2e8f0; color: #334155; font-size: 0.68rem; font-weight: 800;
  text-align: center;
}
.inv-status-tab--on .inv-status-tab__count { background: #334155; color: #fff; }
.inv-view-toggle {
  display: inline-flex; border: 1px solid #e2e8f0; border-radius: 9px; overflow: hidden;
}
.inv-view-btn {
  padding: 0.4rem 0.75rem; border: 0; background: #fff; color: #64748b;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.inv-view-btn + .inv-view-btn { border-left: 1px solid #e2e8f0; }
.inv-view-btn--on { background: #0f172a; color: #fff; }
.inv-listings-more {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-top: 1px solid #f1f5f9;
}
.inv-pill--archived { background: #f1f5f9; color: #475569; }
.inv-pill--oos { background: #ffedd5; color: #9a3412; }
.inv-pill--active { background: #dcfce7; color: #166534; }
.inv-table--listings { min-width: 980px; }
.inv-mp {
  display: inline-block; padding: 0.12rem 0.4rem; border-radius: 6px;
  background: #f1f5f9; color: #334155; font-size: 0.72rem; font-weight: 750; text-transform: capitalize;
}
.inv-oos-toolbar .inv-field:has(.inv-status-tabs) { min-width: 18rem; }
.inv-status-tabs--compact .inv-status-tab { padding: 0.28rem 0.55rem; font-size: 0.72rem; }
.inv-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.4rem 0.75rem; padding: 0.4rem 0.7rem;
  border-top: 1px solid #f1f5f9; background: #f8fafc;
}
.inv-pagination[hidden] { display: none !important; }
.inv-pagination p {
  margin: 0; font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8;
}
.inv-pagesize {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-left: auto; font-size: 0.68rem; font-weight: 700; color: #64748b;
}
.inv-pagesize select {
  height: 1.65rem; padding: 0 0.35rem; border: 1px solid #e2e8f0; border-radius: 6px;
  background: #fff; font-size: 0.72rem; font-weight: 700; color: #334155;
}
.inv-pagination__btns { display: flex; flex-wrap: wrap; gap: 0.18rem; }
.inv-page-btn {
  min-width: 1.65rem; height: 1.65rem; padding: 0 0.32rem; border-radius: 6px;
  border: 1px solid #e2e8f0; background: #fff; color: #475569;
  font-size: 0.7rem; font-weight: 700; cursor: pointer;
}
.inv-page-btn:hover:not(:disabled) { background: #f8fafc; }
.inv-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.inv-page-btn--on { background: #0f172a; color: #fff; border-color: #0f172a; }
.inv-page--compact { gap: 0.55rem; }
.inv-page--compact .inv-hero { padding: 0.45rem 0.7rem; border-radius: 10px; }
.inv-page--compact .inv-hero__title { font-size: 1rem; }
.inv-page--compact .inv-tab {
  padding: 0.28rem 0.55rem; border-radius: 7px; font-size: 0.72rem;
}
.inv-page--compact .inv-tab__badge { font-size: 0.6rem; padding: 0.05rem 0.3rem; }
.inv-page--compact .inv-btn { padding: 0.32rem 0.55rem; font-size: 0.72rem; border-radius: 7px; }
.inv-page--compact .inv-btn--sm { padding: 0.18rem 0.28rem; font-size: 0.68rem; }
.inv-page--compact .inv-subbar { padding: 0.45rem 0.7rem 0; gap: 0.4rem 0.7rem; }
.inv-page--compact .inv-status-tab { padding: 0.22rem 0.5rem; font-size: 0.7rem; }
.inv-page--compact .inv-status-tab__count { font-size: 0.6rem; min-width: 0.95rem; padding: 0 0.28rem; }
.inv-page--compact .inv-view-btn { padding: 0.22rem 0.55rem; font-size: 0.7rem; }
.inv-page--compact .inv-toolbar { padding: 0.5rem 0.7rem; gap: 0.45rem; }
.inv-page--compact .inv-field { min-width: 7.5rem; gap: 0.12rem; }
.inv-page--compact .inv-field span { font-size: 0.62rem; }
.inv-page--compact .inv-field input,
.inv-page--compact .inv-field select { padding: 0.32rem 0.5rem; font-size: 0.75rem; border-radius: 6px; }
.inv-page--compact .inv-table { font-size: 0.72rem; min-width: 820px; }
.inv-page--compact .inv-table th { padding: 0.35rem 0.45rem; font-size: 0.6rem; }
.inv-page--compact .inv-table td { padding: 0.32rem 0.45rem; }
.inv-page--compact .inv-master-thumb,
.inv-page--compact .inv-master-thumb--empty { width: 1.85rem; height: 1.85rem; border-radius: 6px; }
.inv-page--compact .inv-product-cell { gap: 0.4rem; }
.inv-page--compact .inv-td-product .inv-name {
  -webkit-line-clamp: 1; font-size: 0.74rem; font-weight: 700;
}
.inv-page--compact .inv-sku { font-size: 0.64rem; margin-top: 0; }
.inv-page--compact .inv-mapped-link { font-size: 0.64rem; margin-top: 0.05rem; }
.inv-page--compact .inv-listing-stats { font-size: 0.6rem; margin-top: 0.05rem; }
.inv-page--compact .inv-th-actions, .inv-page--compact .inv-td-actions { width: 7.2rem; }
.inv-page--compact .inv-actions { gap: 0.18rem; }
.inv-page--compact .inv-actions .inv-btn span { display: none; }
.inv-page--compact .inv-actions .inv-btn { min-width: 1.65rem; height: 1.65rem; padding: 0.15rem; }
.inv-page--compact .inv-ico { width: 12px; height: 12px; }
.inv-page--compact .inv-inline-num { padding: 0.2rem 0.3rem; font-size: 0.72rem; max-width: 4.5rem; }
.inv-page--compact .inv-cogs-sizes { padding: 0.15rem 0.3rem; }
.inv-page--compact .inv-cogs-sizes__val { font-size: 0.7rem; }
.inv-page--compact .inv-cogs-sizes__hint { font-size: 0.56rem; }
.inv-page--compact .inv-pill { font-size: 0.6rem; padding: 0.08rem 0.32rem; }
.inv-page--compact .inv-switch { font-size: 0.64rem; gap: 0.2rem; }
.inv-page--compact .inv-empty { padding: 1.1rem 0.75rem !important; font-size: 0.75rem; }
.inv-page--compact .inv-table-wrap { max-height: min(72vh, 640px); }
.inv-page--compact .inv-bulk-bar { padding: 0.4rem 0.7rem; gap: 0.4rem; }
.inv-page--compact .inv-banner { padding: 0.4rem 0.65rem; font-size: 0.75rem; }
.inv-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: end;
  padding: 0.85rem 1rem; border-bottom: 1px solid #f1f5f9;
}
.inv-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 9rem; }
.inv-field--grow { flex: 1 1 14rem; min-width: 12rem; }
.inv-field span { font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.03em; }
.inv-field input, .inv-field select {
  padding: 0.5rem 0.65rem; border-radius: 8px; border: 1px solid #e2e8f0;
  font-size: 0.85rem; background: #fff; color: #0f172a;
}
.inv-hint { margin: 0; font-size: 0.78rem; color: #64748b; align-self: center; }
.inv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.5rem 0.8rem; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #fff; color: #334155; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  text-decoration: none;
}
.inv-btn:hover:not(:disabled) { background: #f8fafc; }
.inv-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.inv-btn--primary { background: #ff6b35; border-color: #ff6b35; color: #fff; }
.inv-btn--primary:hover:not(:disabled) { background: #e55a2b; border-color: #e55a2b; }
.inv-btn--dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.inv-btn--dark:hover:not(:disabled) { background: #1e293b; }
.inv-btn--warn { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.inv-btn--sm { padding: 0.32rem 0.55rem; font-size: 0.72rem; }
.inv-btn--icon { gap: 0.3rem; }
.inv-ico { flex-shrink: 0; display: block; }
.inv-product-cell {
  display: flex; align-items: center; gap: 0.65rem; min-width: 0;
}
.inv-product-cell__text { min-width: 0; flex: 1; }
.inv-master-thumb-btn {
  display: inline-flex; padding: 0; border: 0; background: transparent; cursor: zoom-in;
  border-radius: 9px; flex-shrink: 0;
}
.inv-master-thumb {
  width: 2.75rem; height: 2.75rem; border-radius: 9px; object-fit: cover;
  border: 1px solid #e2e8f0; background: #f8fafc; display: block;
}
.inv-master-thumb--empty {
  width: 2.75rem; height: 2.75rem; border-radius: 9px;
  border: 1px solid #e2e8f0; background: #f1f5f9; display: inline-block; flex-shrink: 0;
}
.inv-table-wrap { overflow: auto; max-height: min(70vh, 720px); }
.inv-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 880px;
  font-size: 0.82rem;
}
.inv-table th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; padding: 0.65rem 0.75rem; background: #f8fafc;
  border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.03em; font-weight: 750;
}
.inv-table td { padding: 0.65rem 0.7rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #0f172a; }
.inv-table tr:hover td { background: #fafafa; }
.inv-th-check, .inv-td-check {
  width: 2.4rem; text-align: center; vertical-align: middle;
}
.inv-th-check input, .inv-td-check input {
  width: 0.95rem; height: 0.95rem; accent-color: #c2410c; cursor: pointer;
}
.inv-bulk-bar {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.65rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid #fed7aa;
  background: #fff7ed;
}
.inv-bulk-bar__count {
  font-size: 0.8rem; font-weight: 750; color: #9a3412;
  align-self: center; min-width: 6.5rem;
}
.inv-bulk-bar__cogs { min-width: 9rem; }
.inv-th-product, .inv-td-product { width: 26%; }
.inv-th-manage, .inv-td-manage { width: 5.5rem; }
.inv-th-stock, .inv-td-stock { width: 5.5rem; }
.inv-th-cogs, .inv-td-cogs { width: 8.5rem; vertical-align: middle; }
.inv-cogs-sizes {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem;
  width: 100%; padding: 0.28rem 0.45rem; border-radius: 8px;
  border: 1px solid #e2e8f0; background: #fff; cursor: pointer; text-align: right;
  font: inherit;
}
.inv-cogs-sizes:hover { border-color: #fdba74; background: #fff7ed; }
.inv-cogs-sizes--warn { border-color: #fdba74; background: #fff7ed; }
.inv-cogs-sizes__val {
  font-size: 0.8rem; font-weight: 750; color: #0f172a;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.inv-cogs-sizes__hint { font-size: 0.62rem; font-weight: 700; color: #c2410c; letter-spacing: 0.02em; }
.inv-cogs-fill {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.inv-cogs-fill .inv-field { flex: 1; min-width: 8rem; }
.inv-cogs-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
  max-height: min(52vh, 420px); overflow: auto; padding-right: 0.15rem;
}
@media (min-width: 520px) {
  .inv-cogs-grid { grid-template-columns: 1fr 1fr; }
}
.inv-cogs-grid__item {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.5rem 0.6rem; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc;
}
.inv-cogs-grid__item span {
  font-size: 0.68rem; font-weight: 750; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.inv-cogs-grid__item .inv-inline-num, .inv-cogs-grid__item .lst-input { width: 100%; }
.lst-cogs-by-size {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: 0.75rem; padding: 0.65rem 0.75rem;
  border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc;
}
.lst-cogs-by-size[hidden] { display: none !important; }
.lst-cogs-by-size__title {
  margin: 0; font-size: 0.72rem; font-weight: 750; color: #475569;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.lst-cogs-by-size__sum { margin: 0.15rem 0 0; font-size: 0.82rem; font-weight: 700; color: #0f172a; }
.lst-cogs-root { z-index: 1100; }
.inv-th-oos, .inv-td-oos { width: 6.5rem; }
.inv-th-actions, .inv-td-actions { width: 15rem; }
.inv-num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-empty { text-align: center !important; color: #94a3b8; padding: 2rem 1rem !important; }
.inv-td-product .inv-name {
  font-weight: 700; color: #0f172a;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.25; max-width: 100%;
  word-break: break-word;
}
.inv-sku {
  font-size: 0.72rem; color: #94a3b8; margin-top: 0.1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.inv-title-clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
  white-space: normal; word-break: break-word; max-width: 100%;
}
.inv-oos-listing__text .inv-name,
.inv-mapped-sku {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.inv-mapped-meta {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
  white-space: normal; word-break: break-word; max-width: 18rem;
}
.inv-mapped-link {
  display: inline-block; margin-top: 0.2rem; padding: 0;
  border: none; background: none; cursor: pointer;
  font-size: 0.72rem; font-weight: 750; color: #2563eb;
  text-decoration: underline; text-underline-offset: 2px;
}
.inv-mapped-link:hover { color: #1d4ed8; }
.inv-listing-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem;
  margin-top: 0.2rem; font-size: 0.68rem; font-weight: 700;
}
.inv-stat-sep { color: #cbd5e1; }
.inv-stat--archived { color: #64748b; }
.inv-stat--inactive { color: #b45309; }
.inv-stat--oos { color: #c2410c; }
.inv-muted { color: #94a3b8; }
.inv-avail--low { color: #b45309; font-weight: 750; }
.inv-avail--ok { color: #047857; font-weight: 700; }
.inv-pill {
  display: inline-flex; align-items: center; padding: 0.15rem 0.45rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 750;
}
.inv-pill--warn { background: #ffedd5; color: #9a3412; }
.inv-pill--ok { background: #dcfce7; color: #166534; }
.inv-switch { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; color: #64748b; cursor: pointer; }
.inv-inline-num {
  width: 100%; max-width: 5.5rem; box-sizing: border-box;
  padding: 0.35rem 0.45rem; border-radius: 7px; border: 1px solid #e2e8f0;
  text-align: right; font-size: 0.8rem; background: #fff;
}
.inv-inline-num:disabled { background: #f1f5f9; color: #94a3b8; }
.inv-inline-num--warn { border-color: #fdba74; background: #fff7ed; }
.inv-actions {
  display: flex; flex-wrap: nowrap; gap: 0.3rem; justify-content: flex-end; align-items: center;
}
.inv-actions .inv-btn--sm { white-space: nowrap; }
.inv-map-search {
  width: min(100%, 16rem); padding: 0.4rem 0.55rem; border-radius: 7px; border: 1px solid #e2e8f0; font-size: 0.8rem;
}
.inv-map-results {
  margin-top: 0.35rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
  max-height: 10rem; overflow: auto; box-shadow: 0 8px 20px rgb(15 23 42 / 0.08);
}
.inv-map-opt {
  display: block; width: 100%; text-align: left; padding: 0.45rem 0.6rem;
  border: none; background: transparent; cursor: pointer; font-size: 0.78rem; color: #0f172a;
}
.inv-map-opt:hover { background: #f8fafc; }
.inv-map-empty { padding: 0.55rem 0.65rem; font-size: 0.75rem; color: #94a3b8; }
.inv-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.inv-modal[hidden] { display: none !important; }
.inv-modal__backdrop {
  position: absolute; inset: 0; background: rgb(15 23 42 / 0.5); backdrop-filter: blur(2px);
}
.inv-modal__box {
  position: relative; width: min(420px, 100%);
  padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff;
  box-shadow: 0 24px 48px rgb(15 31 77 / 0.2);
}
.inv-modal__box--wide { width: min(720px, 100%); max-height: min(88vh, 780px); display: flex; flex-direction: column; }
.inv-modal__box--xl { width: min(980px, 100%); max-height: min(92vh, 860px); display: flex; flex-direction: column; }
.inv-modal__box--sm { width: min(400px, 100%); }
.inv-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.inv-modal__head-actions {
  display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
}
.inv-modal.inv-modal--full {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.inv-modal.inv-modal--full .inv-modal__box--xl {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  overflow: hidden;
}
.inv-modal.inv-modal--full .inv-oos-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}
.inv-modal.inv-modal--full .inv-modal__actions {
  margin-top: auto;
}
.inv-modal__close {
  border: none; background: transparent; color: #64748b; font-size: 1.4rem;
  width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer; line-height: 1; flex-shrink: 0;
}
.inv-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.inv-modal__box h2 { margin: 0; font-size: 1.05rem; font-weight: 750; }
.inv-modal__sub { margin: 0.35rem 0 0.9rem; font-size: 0.8rem; color: #64748b; }
.inv-modal__actions { display: flex; justify-content: flex-end; gap: 0.45rem; margin-top: 1rem; }
.inv-mapped-loading, .inv-mapped-empty {
  margin: 0.5rem 0; padding: 1.25rem 0.75rem; text-align: center;
  font-size: 0.85rem; color: #64748b;
}
.inv-mapped-toolbar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin: 0 0 0.55rem; padding: 0.35rem 0;
}
.inv-mapped-select-all {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: #334155; cursor: pointer; user-select: none;
}
.inv-mapped-select-all input { width: 0.95rem; height: 0.95rem; accent-color: #1d4ed8; }
.inv-mapped-sel-count { font-size: 0.78rem; color: #64748b; margin-right: auto; }
.inv-mapped-table-wrap {
  overflow: auto; max-height: min(50vh, 420px);
  border: 1px solid #e2e8f0; border-radius: 10px;
}
.inv-mapped-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 620px;
}
.inv-mapped-table th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; padding: 0.55rem 0.65rem; background: #f8fafc;
  border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.03em; font-weight: 750;
}
.inv-mapped-table td {
  padding: 0.55rem 0.65rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.inv-mapped-table__check { width: 2.25rem; text-align: center; }
.inv-mapped-table__check input { width: 0.95rem; height: 0.95rem; accent-color: #1d4ed8; cursor: pointer; }
.inv-mapped-table tr.inv-mapped-row--sel td { background: #eff6ff; }
.inv-mapped-table__act { text-align: right; width: 5.5rem; white-space: nowrap; }
.inv-mapped-sku-cell { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.inv-mapped-thumb {
  width: 2.25rem; height: 2.25rem; border-radius: 7px; object-fit: cover;
  border: 1px solid #e2e8f0; background: #f8fafc; flex-shrink: 0;
}
.inv-mapped-thumb--empty { display: inline-block; background: #f1f5f9; }
.inv-mapped-sku {
  font-weight: 750; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.inv-mapped-meta {
  font-size: 0.7rem; color: #94a3b8; margin-top: 0.1rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
  white-space: normal; word-break: break-word; max-width: 18rem;
}

.inv-oos-search { margin: 0 0 0.55rem; }
.inv-oos-search__input {
  width: 100%; box-sizing: border-box;
  padding: 0.65rem 0.85rem; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; font-size: 0.9rem; color: #0f172a; background: #fff;
}
.inv-oos-search__input:focus {
  outline: none; border-color: #c2410c; box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}
.inv-oos-head {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.inv-oos-master-thumb-btn,
.inv-oos-thumb-btn,
.inv-oos-thumb-sm-btn {
  display: inline-flex; padding: 0; border: 0; background: transparent; cursor: zoom-in;
  border-radius: 8px; flex-shrink: 0;
}
.inv-oos-master-thumb {
  width: 3.5rem; height: 3.5rem; border-radius: 10px; object-fit: cover;
  border: 1px solid #e2e8f0; background: #f8fafc; display: block;
}
.inv-oos-master-thumb--empty {
  width: 3.5rem; height: 3.5rem; border-radius: 10px;
  border: 1px dashed #cbd5e1; background: #f1f5f9; flex-shrink: 0;
}
.inv-oos-listing {
  display: flex; align-items: center; gap: 0.6rem; min-width: 0;
}
.inv-oos-listing__text { min-width: 0; }
.inv-oos-thumb {
  width: 2.5rem; height: 2.5rem; border-radius: 8px; object-fit: cover;
  border: 1px solid #e2e8f0; background: #f8fafc; display: block;
}
.inv-oos-thumb--empty {
  width: 2.5rem; height: 2.5rem; border-radius: 8px;
  border: 1px solid #e2e8f0; background: #f1f5f9; display: inline-block; flex-shrink: 0;
}
.inv-oos-thumb-sm {
  width: 2rem; height: 2rem; border-radius: 6px; object-fit: cover;
  border: 1px solid #e2e8f0; background: #f8fafc; display: block;
}
.inv-oos-thumb-sm--empty {
  width: 2rem; height: 2rem; border-radius: 6px;
  border: 1px solid #e2e8f0; background: #f1f5f9; display: inline-block; flex-shrink: 0;
}
.inv-oos-confirm-item {
  display: flex; align-items: center; gap: 0.55rem;
}
.inv-oos-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; margin-bottom: 0.45rem;
}
.inv-oos-table-wrap { overflow: auto; flex: 1; min-height: 0; border: 1px solid #e2e8f0; border-radius: 10px; }
.inv-oos-table { min-width: 760px; }
.inv-oos-check { width: 2.25rem; text-align: center; }
.inv-oos-check input { width: 0.95rem; height: 0.95rem; accent-color: #c2410c; cursor: pointer; }
.inv-mp-pill {
  display: inline-flex; padding: 0.12rem 0.4rem; border-radius: 999px;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}
.inv-mp-pill--meesho { background: #fdf2f8; color: #be185d; }
.inv-mp-pill--flipkart { background: #eff6ff; color: #1746a2; }
.inv-mp-pill--myntra { background: #fff1f2; color: #9f1239; }
.inv-mp-pill--citymall { background: #f0fdf4; color: #15803d; }
.inv-oos-live {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.55rem; padding: 0.45rem 0.65rem;
  border-radius: 8px; background: #fff7ed; border: 1px solid #fed7aa;
  font-size: 0.78rem; font-weight: 650; color: #9a3412;
}
.inv-oos-spinner {
  width: 0.95rem; height: 0.95rem; border-radius: 999px;
  border: 2px solid #fdba74; border-top-color: #c2410c;
  animation: inv-oos-spin 0.75s linear infinite; flex-shrink: 0;
}
.inv-oos-spinner--lg {
  width: 2.1rem; height: 2.1rem; border-width: 3px;
}
.inv-loading-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(2px);
}
.inv-loading-modal[hidden] { display: none !important; }
.inv-loading-modal__card {
  width: min(100%, 22rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 1.4rem 1.3rem 1.25rem; border-radius: 16px;
  background: #fff; border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.22);
  text-align: center;
}
.inv-loading-modal__title {
  margin: 0.4rem 0 0; font-size: 1.02rem; font-weight: 750; color: #0f172a;
}
.inv-loading-modal__sub {
  margin: 0; font-size: 0.8rem; color: #64748b;
}
@keyframes inv-oos-spin { to { transform: rotate(360deg); } }
.inv-oos-confirm-list {
  margin: 0 0 0.65rem; padding: 0; list-style: none;
  max-height: 10rem; overflow: auto;
  border: 1px solid #e2e8f0; border-radius: 8px;
}
.inv-oos-confirm-list li { padding: 0.4rem 0.55rem; border-bottom: 1px solid #f1f5f9; font-size: 0.8rem; }
.inv-oos-confirm-list li:last-child { border-bottom: none; }
.inv-oos-progress { display: flex; flex-direction: column; gap: 0.45rem; }
.inv-oos-progress__head { display: flex; align-items: center; gap: 0.5rem; }
.inv-oos-progress__detail { margin: 0; font-size: 0.78rem; color: #64748b; }
.inv-oos-progress__bar {
  height: 0.45rem; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.inv-oos-progress__fill {
  height: 100%; width: 0; background: linear-gradient(90deg, #f97316, #c2410c);
  transition: width 0.25s ease;
}

@media (max-width: 720px) {
  .inv-table { min-width: 780px; }
  .inv-hero__title { font-size: 1.1rem; }
  .inv-hero__sub { white-space: normal; }
  .inv-hero__main { align-items: stretch; }
  .inv-actions { flex-wrap: wrap; }
}

/* Sidebar beta / new badges */
.nav-beta-tag,
.nav-new-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.3rem;
  padding: 0.05rem 0.32rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.nav-new-tag {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

/* Accounting (Beta) placeholder */
.acc-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.acc-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.15rem 0.1rem;
}
.acc-col-set {
  position: relative;
  flex-shrink: 0;
}
.acc-col-set__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
}
.acc-col-set__btn:hover,
.acc-col-set__btn[aria-expanded="true"] {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.acc-col-set__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 16.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.12);
}
.acc-col-set__title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.acc-col-set__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #0f172a;
  cursor: pointer;
}
.acc-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.acc-hero__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.acc-hero__beta {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.acc-hero__sub {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #64748b;
}
.acc-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.acc-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
}
.acc-panel__title {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f172a;
}
.acc-panel__text {
  margin: 0;
  max-width: 34rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
}

/* Accounting (Beta) FY summary table */
.acc-banner {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 650;
}
.acc-banner--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.acc-banner--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.acc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.acc-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 10rem;
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.acc-field select,
.acc-field .acc-input {
  height: 2.15rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: #0f172a;
  text-transform: none;
  letter-spacing: normal;
}
.acc-field textarea.acc-input {
  height: auto;
  min-height: 7.5rem;
  padding: 0.55rem 0.7rem;
  resize: vertical;
  line-height: 1.45;
  font-weight: 500;
}
.acc-field--opening {
  min-width: 8.5rem;
}
.acc-run-btn {
  height: 2.15rem;
  border-radius: 10px;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0 0.9rem;
  cursor: pointer;
}
.acc-run-btn:hover {
  background: #0d9488;
}
.acc-toolbar__hint {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 650;
  color: #94a3b8;
}
.acc-table-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.acc-page .acc-table-wrap {
  overflow: auto;
  max-width: 100%;
}
.acc-page .acc-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 920px;
  font-size: 0.8rem;
}
.acc-page .acc-table.acc-table--breakup {
  min-width: 1480px;
}
.acc-page .acc-table th,
.acc-page .acc-table td {
  padding: 0.42rem 0.55rem;
  height: 2.55rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-page .acc-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 2.4rem;
  padding: 0.4rem 0.55rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}
.acc-page .acc-col-name {
  width: 9.5rem;
  max-width: 9.5rem;
}
.acc-page .acc-col-month {
  width: 7.25rem;
  max-width: 7.25rem;
}
.acc-page .acc-col-amt {
  width: 7.75rem;
  max-width: 7.75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.acc-page .acc-table td.acc-col-amt,
.acc-page .acc-table th.acc-col-amt {
  text-align: right;
}
.acc-page .acc-table td.acc-col-commission[data-acc-fee-month] {
  cursor: pointer;
}
.acc-page .acc-table td.acc-col-commission[data-acc-fee-month]:hover {
  background: #f0f9ff;
}
.acc-page .acc-table td[data-acc-rows-metric] {
  cursor: pointer;
}
.acc-page .acc-table td[data-acc-rows-metric]:hover {
  background: #fff7ed;
}
.acc-cell-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.04rem;
  line-height: 1.15;
}
.acc-cell-count {
  font-size: 0.64rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.01em;
}
.acc-modal--rows {
  max-width: min(96vw, 96rem);
  width: min(96vw, 96rem);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.acc-rows-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  flex: 1;
}
.acc-rows-search {
  display: block;
}
.acc-rows-search .acc-input {
  width: 100%;
}
.acc-rows-table-wrap {
  max-height: min(62vh, 38rem);
  overflow: auto;
}
.acc-rows-grid {
  min-width: max-content;
}
.acc-rows-grid th,
.acc-rows-grid td {
  white-space: nowrap;
  max-width: 12.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-rows-grid td.acc-rows-cell--wide {
  max-width: 22rem;
}
.acc-rows-grid thead th {
  white-space: nowrap;
}
.acc-rows-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #475569;
}
.acc-rows-pager .acc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.acc-modal--fees {
  max-width: 42rem;
}
.acc-fee-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.acc-fee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}
.acc-fee-chip strong {
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.acc-fee-note {
  margin: 0;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}
.acc-fee-table-wrap {
  max-height: 22rem;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.acc-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.acc-fee-table th,
.acc-fee-table td {
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}
.acc-fee-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}
.acc-fee-table .acc-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.acc-fee-name {
  font-weight: 650;
  color: #0f172a;
}
.acc-fee-bucket {
  display: inline-flex;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 750;
}
.acc-fee-bucket--ads {
  background: #fef3c7;
  color: #92400e;
}
.acc-fee-bucket--logistic {
  background: #e0f2fe;
  color: #075985;
}
.acc-fee-bucket--other_support {
  background: #f1f5f9;
  color: #334155;
}
.acc-fee-table tfoot td {
  font-weight: 800;
  background: #f8fafc;
  border-bottom: none;
}
.acc-page .acc-value-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-height: 0;
  height: 1.7rem;
  width: 100%;
}
.acc-page .acc-value-cell--rows {
  height: auto;
  min-height: 2.35rem;
  align-items: flex-end;
}
.acc-page .acc-get {
  height: 1.45rem;
  padding: 0 0.45rem;
  font-size: 0.64rem;
}
.acc-th {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.acc-get {
  height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}
.acc-get:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.acc-get--loaded {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.acc-get:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.acc-num { text-align: right; font-variant-numeric: tabular-nums; }
.acc-table thead th[data-metric] .acc-th { align-items: flex-end; }
.acc-cell { color: #0f172a; font-weight: 650; }
.acc-cell--muted { color: #94a3b8; font-weight: 600; }
.acc-cell--strong { font-weight: 800; }
.acc-month-year {
  margin-left: 0.2rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}
.acc-total-row td {
  background: #f8fafc;
  font-weight: 750;
  border-bottom: none;
  border-top: 1px solid #e2e8f0;
}
@media (max-width: 720px) {
  .acc-toolbar__hint { margin-left: 0; width: 100%; }
}

.acc-value-cell--payments {
  align-items: flex-end;
}
.acc-pay-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  line-height: 1.25;
}
.acc-pay-line {
  display: block;
  white-space: nowrap;
  font-size: 0.78rem;
}
.acc-pay-label {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}
.acc-value-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 1.7rem;
  width: 100%;
}
.acc-table td.acc-num .acc-get {
  flex-shrink: 0;
}
.acc-table thead th.acc-num {
  text-align: right;
}
.acc-field#acc-account-field {
  min-width: 12.5rem;
}
.acc-field#acc-account-field[hidden] {
  display: none !important;
}
.acc-busy-modal {
  position: fixed;
  inset: 0;
  z-index: 620;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.acc-busy-modal[hidden] {
  display: none !important;
}
.acc-busy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.52);
  backdrop-filter: blur(3px);
}
.acc-busy-modal__card {
  position: relative;
  width: min(100%, 24rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.6rem 1.4rem 1.35rem;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.24);
  text-align: center;
}
.acc-busy-modal__anim {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.35rem;
}
.acc-busy-modal__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 3px solid transparent;
}
.acc-busy-modal__ring--outer {
  border-top-color: #0f766e;
  border-right-color: #14b8a6;
  animation: acc-busy-spin 0.9s linear infinite;
}
.acc-busy-modal__ring--inner {
  inset: 0.45rem;
  border-bottom-color: #fb923c;
  border-left-color: #fdba74;
  animation: acc-busy-spin 1.15s linear infinite reverse;
}
.acc-busy-modal__doc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  animation: acc-busy-pulse 1.4s ease-in-out infinite;
}
.acc-busy-modal__title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.acc-busy-modal__sub {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 20rem;
}
.acc-busy-modal__bar {
  width: 100%;
  height: 0.4rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.acc-busy-modal__bar-fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6, #fb923c);
  background-size: 200% 100%;
  animation: acc-busy-bar 1.25s ease-in-out infinite;
}
.acc-busy-modal__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  margin: 0.55rem 0 0;
  padding: 0;
}
.acc-busy-modal__steps li {
  position: relative;
  padding: 0.4rem 0.2rem 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94a3b8;
}
.acc-busy-modal__steps li::before {
  content: '';
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 auto 0.3rem;
  border-radius: 999px;
  background: #cbd5e1;
}
.acc-busy-modal__steps li.is-active {
  color: #0f766e;
}
.acc-busy-modal__steps li.is-active::before {
  background: #0f766e;
  box-shadow: 0 0 0 4px rgb(15 118 110 / 0.16);
}
.acc-busy-modal__steps li.is-done {
  color: #64748b;
}
.acc-busy-modal__steps li.is-done::before {
  background: #14b8a6;
}
@keyframes acc-busy-spin {
  to { transform: rotate(360deg); }
}
@keyframes acc-busy-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.82; }
  50% { transform: scale(1); opacity: 1; }
}
@keyframes acc-busy-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* ?? Employees ?? */
.emp-page { display: flex; flex-direction: column; gap: 1rem; }
.emp-hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.emp-hero__eyebrow { margin: 0 0 0.25rem; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.emp-hero__title { margin: 0; font-size: 1.55rem; font-weight: 800; color: #0f172a; }
.emp-hero__sub { margin: 0.4rem 0 0; max-width: 40rem; font-size: 0.88rem; line-height: 1.45; color: #64748b; }
.emp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.55rem 0.9rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #334155; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.emp-btn:hover { background: #f8fafc; }
.emp-btn--primary { border: none; background: var(--gradient-primary, linear-gradient(135deg,#ff6b35,#ff8f1f)); color: #fff; }
.emp-btn--sm { padding: 0.35rem 0.6rem; font-size: 0.74rem; }
.emp-btn--danger { color: #b91c1c; border-color: #fecaca; }
.emp-btn--danger:hover { background: #fef2f2; }
.emp-banner { margin: 0; border-radius: 10px; padding: 0.65rem 0.85rem; font-size: 0.875rem; font-weight: 500; }
.emp-banner--ok { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.emp-banner--err { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.emp-panel { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; }
.emp-table-wrap { overflow: auto; }
.emp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.emp-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.emp-table td { padding: 0.8rem 1rem; border-bottom: 1px solid #f1f5f9; color: #0f172a; vertical-align: middle; }
.emp-empty { text-align: center; color: #94a3b8; padding: 2rem 1rem !important; }
.emp-code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.8rem; background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 6px; }
.emp-status { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.emp-status--on { background: #ecfdf5; color: #047857; }
.emp-status--off { background: #f1f5f9; color: #94a3b8; }
.emp-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; white-space: nowrap; }
.emp-modal { position: fixed; inset: 0; z-index: 640; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.emp-modal[hidden] { display: none !important; }
.emp-modal__backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.5); backdrop-filter: blur(2px); }
.emp-modal__card { position: relative; width: min(100%, 26rem); border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 24px 48px rgb(15 23 42 / 0.22); overflow: hidden; }
.emp-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid #e2e8f0; background: #fafbff; }
.emp-modal__head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.emp-modal__close { border: none; background: transparent; font-size: 1.4rem; line-height: 1; color: #64748b; cursor: pointer; }
.emp-modal__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.1rem 1.1rem; }
.emp-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.72rem; font-weight: 750; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.emp-field em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: normal; color: #94a3b8; }
.emp-input { height: 2.25rem; border-radius: 10px; border: 1px solid #e2e8f0; padding: 0 0.7rem; font: inherit; font-size: 0.9rem; font-weight: 650; color: #0f172a; text-transform: none; letter-spacing: normal; }
.emp-perms { margin: 0; padding: 0.75rem; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; display: flex; flex-direction: column; gap: 0.45rem; }
.emp-perms legend { padding: 0 0.25rem; font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; }
.emp-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 650; color: #0f172a; text-transform: none; letter-spacing: normal; cursor: pointer; }
.emp-modal__footer { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.25rem; }
body.oms-employee .nav-owner-only,
body.oms-employee .topbar-owner-only { display: none !important; }
.emp-actor-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: #ecfeff; color: #0e7490; font-size: 0.72rem; font-weight: 750; margin-left: 0.35rem; }

/* Ecommerce GST Reports */
.egr-page { display: flex; flex-direction: column; gap: 1rem; }
.egr-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.egr-report-field { min-width: 220px; }
.egr-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.egr-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}
.egr-prev-trigger {
  margin-left: auto;
}
.egr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.egr-empty { grid-column: 1 / -1; }

.egr-dl {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.egr-dl[hidden] { display: none !important; }
.egr-dl__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.55);
  backdrop-filter: blur(8px);
}
.egr-dl__card {
  position: relative;
  width: min(420px, 100%);
  padding: 1.6rem 1.4rem 1.35rem;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 10% 0%, #fff7ed 0%, transparent 48%),
    #fff;
  box-shadow: 0 28px 70px rgb(15 23 42 / 0.28);
  text-align: center;
}
.egr-dl__orb {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
}
.egr-dl__ring {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}
.egr-dl:not(.egr-dl--ok):not(.egr-dl--err) .egr-dl__ring {
  animation: egr-dl-spin 1.15s linear infinite;
}
.egr-dl__track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 6;
}
.egr-dl__progress {
  fill: none;
  stroke: #ff6b35;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 70 201;
}
.egr-dl--ok .egr-dl__progress {
  stroke: #16a34a;
  stroke-dasharray: 201;
  stroke-dashoffset: 0;
  animation: none;
}
.egr-dl--err .egr-dl__progress {
  stroke: #dc2626;
  stroke-dasharray: 201;
  stroke-dashoffset: 0;
  animation: none;
}
.egr-dl__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ea580c;
}
.egr-dl--ok .egr-dl__glyph { color: #16a34a; }
.egr-dl--err .egr-dl__glyph { color: #dc2626; }
.egr-dl__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.egr-dl__sub {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}
.egr-dl__steps {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  text-align: left;
}
.egr-dl__steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #94a3b8;
}
.egr-dl__steps li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
}
.egr-dl__steps li.is-active { color: #ea580c; }
.egr-dl__steps li.is-active::before {
  background: #ff6b35;
  box-shadow: 0 0 0 4px rgb(255 107 53 / 0.18);
}
.egr-dl__steps li.is-done { color: #16a34a; }
.egr-dl__steps li.is-done::before { background: #16a34a; }
.egr-dl__meta {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: #94a3b8;
}
.egr-dl__done {
  margin-top: 1rem;
}
@keyframes egr-dl-spin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

.egr-hero { display: flex; flex-direction: column; gap: 0.35rem; }
.egr-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}
.egr-sheet[hidden] { display: none !important; }
.egr-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(2px);
}
.egr-sheet__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  height: 100%;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  box-shadow: -18px 0 50px rgb(15 23 42 / 0.16);
}
.egr-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.egr-sheet__head-text { min-width: 0; }
.egr-sheet__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ea580c;
}
.egr-sheet__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 820;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.egr-sheet__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}
.egr-sheet__x {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.egr-sheet__x:hover { background: #f8fafc; color: #0f172a; }
.egr-sheet__err { margin: 0.75rem 1rem 0; }
.egr-sheet__body {
  flex: 1;
  overflow: auto;
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.egr-sheet__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.egr-sheet__state {
  margin: 2.2rem 0.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.egr-sheet__empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: #0f172a;
}
.egr-sheet__spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2.5px solid #fed7aa;
  border-top-color: #ea580c;
  animation: egr-spin 0.8s linear infinite;
}
@keyframes egr-spin { to { transform: rotate(360deg); } }

.egr-req {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(15 23 42 / 0.02);
}
.egr-req--ready { border-color: #d1fae5; }
.egr-req--pending { border-color: #fde68a; }
.egr-req--bad { border-color: #fecaca; }
.egr-req__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.egr-req__titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.egr-req__title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 780;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.egr-req__status {
  display: inline-flex;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}
.egr-req__status--ready {
  border-color: #86efac;
  background: #ecfdf5;
  color: #047857;
}
.egr-req__status--pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}
.egr-req__status--bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.egr-req__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.egr-req__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
}
.egr-req__chip-k {
  color: #94a3b8;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
}
.egr-req__dl {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.egr-req__dl--ready {
  border: none;
  background: var(--gradient-primary, linear-gradient(135deg, #ff6b35, #f7931e));
  color: #fff;
  box-shadow: 0 3px 10px rgb(255 107 53 / 0.22);
}
.egr-req__dl:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.egr-req__dl--ready:hover:not(:disabled) { filter: brightness(1.03); }
body.egr-sheet-open { overflow: hidden; }
@media (max-width: 720px) {
  .egr-prev-trigger { margin-left: 0; width: 100%; justify-content: center; }
  .egr-sheet__panel { width: 100vw; }
}

/* GST ZIP / multi-file viewer */
.egr-viewer {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
  overflow: hidden;
  min-height: min(70vh, 42rem);
}
.egr-viewer[hidden] { display: none !important; }
.egr-viewer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.egr-viewer__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.egr-viewer__sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
.egr-viewer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.egr-viewer__body {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.egr-viewer__files {
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: auto;
  max-height: min(68vh, 40rem);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.egr-viewer__file {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0.55rem 0.65rem;
  font: inherit;
  cursor: pointer;
  color: #0f172a;
}
.egr-viewer__file:hover { background: #fff; border-color: #e2e8f0; }
.egr-viewer__file.is-active {
  background: #fff;
  border-color: #fdba74;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}
.egr-viewer__file-name {
  font-size: 0.78rem;
  font-weight: 700;
  word-break: break-word;
  line-height: 1.3;
}
.egr-viewer__file-meta {
  font-size: 0.68rem;
  font-weight: 650;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.egr-viewer__preview {
  min-width: 0;
  min-height: min(68vh, 40rem);
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}
.egr-viewer__frame {
  width: 100%;
  height: min(68vh, 40rem);
  border: 0;
  background: #fff;
}
.egr-viewer__table-wrap {
  overflow: auto;
  height: min(68vh, 40rem);
  background: #fff;
}
.egr-viewer__table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}
.egr-viewer__table th,
.egr-viewer__table td {
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  padding: 0.35rem 0.55rem;
  text-align: left;
  white-space: nowrap;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.egr-viewer__table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  z-index: 1;
}
.egr-viewer__empty {
  margin: auto;
  padding: 2rem 1.25rem;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}
.egr-viewer__badge {
  display: inline-flex;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.egr-viewer__badge--pdf { background: #fee2e2; color: #b91c1c; }
.egr-viewer__badge--xlsx,
.egr-viewer__badge--xls { background: #dcfce7; color: #166534; }
.egr-viewer__badge--csv { background: #e0f2fe; color: #075985; }
.egr-viewer__badge--other { background: #f1f5f9; color: #475569; }
.egr-viewer__badge--sum { background: #ffedd5; color: #c2410c; }

.egr-sum {
  padding: 0.85rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.egr-sum__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.egr-sum__bar--after { margin: 0.65rem 1rem 1rem; }
.egr-sum__kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ea580c;
}
.egr-sum__title {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.egr-sum__section {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.egr-sum__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.45rem;
}
.egr-sum__card {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.egr-sum__card span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.egr-sum__card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.egr-sum__note {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
}
.egr-sum__files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.5rem;
}
.egr-sum__file {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.egr-sum__file h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}
.egr-sum__file p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.egr-sum__rates { overflow: auto; }
.egr-sum__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.egr-sum__table th,
.egr-sum__table td {
  padding: 0.4rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
}
.egr-sum__table th:first-child,
.egr-sum__table td:first-child { text-align: left; }
.egr-sum__table th {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
}

/* Scanning (in-OMS) */
.scn-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
}
.scn-page .inv-tab { text-decoration: none; }
.scn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 1rem;
  align-items: end;
}
.scn-field { min-width: 16rem; flex: 1 1 16rem; }
.scn-field--grow { flex: 1 1 22rem; }
.scn-input-row { display: flex; gap: 0.4rem; align-items: center; }
.scn-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}
.scn-submit-wrap { align-self: end; }
.scn-result {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
}
.scn-result[hidden] { display: none !important; }
.scn-result--warn { background: #fff7ed; border-color: #fed7aa; }
.scn-result--err { background: #fef2f2; border-color: #fecaca; }
.scn-result__img {
  width: 3.25rem; height: 3.25rem; object-fit: cover;
  border-radius: 8px; border: 1px solid #e2e8f0; background: #fff;
}
.scn-result p { margin: 0.2rem 0 0; font-size: 0.85rem; color: #475569; }
.scn-loss-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0 1rem 0.85rem;
}
.scn-loss-kpi {
  flex: 1 1 8rem;
  min-width: 7.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.scn-loss-kpi span {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.scn-loss-kpi strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  color: #0f172a;
}
.scn-loss-kpi--tot {
  background: #fef2f2;
  border-color: #fecaca;
}
.scn-loss-kpi--tot strong { color: #b91c1c; }
.scn-cb-table-wrap { padding: 0 1rem 1rem; }
.scn-page .num { text-align: right; font-variant-numeric: tabular-nums; }
.scn-page .inv-table .inv-empty { text-align: center; color: #64748b; }
.scn-qr { min-height: 220px; background: #0f172a; border-radius: 10px; overflow: hidden; }
.scn-page .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; }

/* Promotions (in-OMS, Inventory-like) */
.promo-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%, #f8fafc 100%);
}
.promo-page .inv-tab__badge { background: #bbf7d0; color: #14532d; }
.promo-page .inv-tab--active .inv-tab__badge { background: #34d399; color: #052e16; }
.promo-page .inv-pill:not(.inv-pill--warn):not(.inv-pill--ok):not(.inv-pill--down) {
  background: #f1f5f9;
  color: #475569;
}
.promo-page .inv-table tbody tr[data-master-id],
.promo-page .inv-table tbody tr[data-optin-id] { cursor: pointer; }
.promo-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
}
.promo-page .promo-table .inv-th-product,
.promo-page .promo-table .inv-td-product {
  width: auto;
}
.promo-page .promo-table th.inv-num,
.promo-page .promo-table td.inv-num {
  text-align: right;
  white-space: nowrap;
}
.promo-page .promo-table col.promo-col-master { width: auto; }
.promo-page .promo-table col.promo-col-check { width: 2.4rem; }
.promo-page .promo-table col.promo-col-account { width: 14%; }
.promo-optin-again-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0.85rem 0 0.5rem;
}
@media (min-width: 520px) {
  .promo-optin-again-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.promo-page .promo-table col.promo-col-status { width: 7.5rem; }
.promo-page .promo-table col.promo-col-dates { width: 11.5rem; }
.promo-page .promo-table col.promo-col-num { width: 6.75rem; }
.promo-page .promo-table col.promo-col-orders { width: 7.5rem; }
.promo-page .promo-table col.promo-col-grown { width: 6.5rem; }
.promo-page .promo-table col.promo-col-actions { width: 17.5rem; }
.promo-page .promo-table--optins col.promo-col-actions { width: 9.5rem; }
.promo-page .promo-table .inv-th-actions,
.promo-page .promo-table .inv-td-actions {
  width: auto;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  display: table-cell;
  vertical-align: middle;
}
.promo-row-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}
.promo-page .inv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.promo-page .inv-pill--down { background: #fee2e2; color: #991b1b; }
.promo-orders-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.promo-optin-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}
.promo-optin-fields .inv-field { min-width: 8.5rem; }
.promo-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #64748b;
}
.promo-pager[hidden] { display: none !important; }
.promo-mapped-tools {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.65rem;
  margin: 0 0 0.7rem;
}
.promo-mapped-tools[hidden] { display: none !important; }
.promo-mapped-tools__search { flex: 1; min-width: 12rem; }
.promo-mapped-formula {
  margin: 0 0 0.15rem; font-size: 0.75rem; color: #64748b; align-self: center;
}
.promo-mapped-formula strong { color: #0f172a; }
.promo-mapped-table {
  min-width: 1180px;
  table-layout: auto;
  border-collapse: collapse;
}
.promo-mapped-table th,
.promo-mapped-table td {
  vertical-align: middle;
}
.promo-mapped-table .inv-num {
  white-space: nowrap;
  text-align: right;
}
.promo-mapped-clip {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promo-mapped-table .inv-mapped-table__check { width: 2.4rem; text-align: center; }
.promo-mapped-row--on { background: #eff6ff; }
.promo-confirm-modal { z-index: 100; }
.promo-mapped-disc {
  width: 4.4rem; padding: 0.28rem 0.35rem; border-radius: 6px;
  border: 1px solid #e2e8f0; font: inherit; font-size: 0.78rem; text-align: right;
}
.promo-mapped-disc:focus { outline: 2px solid #bbf7d0; border-color: #34d399; }
.promo-net--ok { color: #166534; font-weight: 750; }
.promo-net--down { color: #991b1b; font-weight: 750; }

@media (max-width: 860px) {
  .egr-viewer__body { grid-template-columns: 1fr; }
  .egr-viewer__files {
    max-height: 11rem;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: row;
    overflow-x: auto;
  }
  .egr-viewer__file { min-width: 10rem; }
  .scn-field, .scn-field--grow { min-width: 100%; flex: 1 1 100%; }
}
