/* 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: 252px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 58px;
  --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%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  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.75rem;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  flex-shrink: 0;
}
.sidebar-brand img {
  border-radius: 8px;
  object-fit: contain;
  max-height: 42px;
  width: auto;
  flex-shrink: 0;
}
.sidebar-brand-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.sidebar-app {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.sidebar-collapse-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  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-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.5rem;
  gap: 0.2rem;
  flex: 1;
  overflow: auto;
}
.sidebar-nav a,
.sidebar-nav-action {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
  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: 18px;
  height: 18px;
  object-fit: contain;
}
.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: 16px;
  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.55rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgb(255 255 255 / 0.85);
  font-weight: 600;
  font-size: 0.92rem;
  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;
  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.5rem;
  padding-left: 1.35rem;
  font-size: 0.86rem;
}
.sidebar-nav-sub__ico {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  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: 1rem 1rem 1.25rem;
  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.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  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 {
  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.65rem;
  padding-right: 0.65rem;
}
.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: 200px;
    max-width: min(280px, calc(100vw - var(--sidebar-width) - 24px));
    margin: 0;
    padding: 0.45rem;
    border-radius: 12px;
    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.65rem;
    width: 100%;
    margin: 0;
    padding: 0.6rem 0.75rem;
    padding-left: 0.75rem;
    white-space: nowrap;
    border-radius: 8px;
    font-size: 0.875rem;
    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: 16px;
    height: 16px;
    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.9rem;
    padding-right: 0.9rem;
  }
  /* 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: 18px;
  height: 18px;
  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;
}
.tb-lookup-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 1rem;
}
.tb-lookup-overlay__backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / 0.45); }
.tb-lookup-overlay__box {
  position: relative;
  width: min(30rem, 100%);
  max-height: 75vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.25);
}
.tb-lookup-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
}
.tb-lookup-overlay__title { margin: 0; font-size: 0.95rem; font-weight: 800; color: var(--color-text-1); }
.tb-lookup-overlay__close { border: none; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--color-text-2); }
.tb-lookup-overlay__body { padding: 0.6rem 0.5rem 0.9rem; }
.tb-lookup-status { margin: 0.5rem 0.6rem; font-size: 0.82rem; color: var(--color-text-2); }
.tb-lookup-status--err { color: #b91c1c; font-weight: 600; }
.tb-lookup-fallback { display: inline-block; margin: 0 0.6rem; font-size: 0.8rem; font-weight: 700; color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.tb-lookup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.tb-lookup-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.tb-lookup-item__link:hover { background: var(--color-surface-2); }
.tb-lookup-item__main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.tb-lookup-item__main strong { font-size: 0.85rem; color: var(--color-text-1); }
.tb-lookup-item__sub { font-size: 0.74rem; color: var(--color-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.tb-lookup-item__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; flex-shrink: 0; }
.tb-lookup-item__awb { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.72rem; color: var(--color-text-2); }
.tb-lookup-item__status { font-size: 0.7rem; font-weight: 700; color: var(--color-primary-dark); }

.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: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* 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-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-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-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;
}
.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 {
  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-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-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-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-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; }

/* 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__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-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; }
.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; }

.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; }
.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; }
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-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; }
.mp-row-btn--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

.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(280px, 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-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-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-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-upload-ok { margin: 0; font-size: 0.72rem; font-weight: 700; color: #047857; }
.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; }
}

/* —— 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(6, 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__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 { height: 34px; padding: 0 0.5rem; border-radius: 8px; border: 1px solid #e5e7eb; background: #f9fafb; font-size: 0.75rem; font-weight: 600; }
.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; }
.acc-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-focus); }
.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--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-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; }
.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-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-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--color-text-1); }
.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; }
.lst-hero__actions { display: flex; gap: 0.5rem; }
.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-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-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); }
.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-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-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-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: 0.9rem; }
.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; }

/* ===== Home dashboard ===== */
.home-page {
  padding-bottom: 1.25rem;
}

.home-hero {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%);
  box-shadow: none;
  padding: 0.65rem 0.75rem;
}

.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.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: none;
  overflow: hidden;
}

.home-hero__eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c9e;
}

.home-hero__title {
  margin: 0.05rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-1);
}

.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: var(--color-text-2);
}

.home-hero__field select,
.home-hero__field input[type='date'] {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font-size: 0.8125rem;
  background: #fff;
  font-family: inherit;
  color: var(--color-text-1);
}

.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 var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  background: #fff;
  color: var(--color-text-2);
  cursor: pointer;
}

.home-hero__preset:hover:not(:disabled) {
  border-color: #c7d2fe;
  color: #4338ca;
}

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

.home-hero__preset--active {
  border-color: #ffc9a8;
  background: #fff4ed;
  color: var(--color-primary-darker);
}

.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-banner {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}

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

.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(6, minmax(0, 1fr));
  gap: 0.5rem;
}

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

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

.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.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e8edf5;
  background: #fafbfd;
}

.home-mp-dispatch__dot {
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.3rem;
  border-radius: 999px;
}

.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.1rem 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.home-kpi {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #e8edf5;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-kpi--link:hover {
  border-color: #c7d2fe;
  background: #fafbff;
  box-shadow: none;
}

.home-kpi--primary {
  border-color: #d4dcfa;
  background: #f8f9ff;
}

.home-kpi--returns-delivered {
  border-color: #d1fae5;
  background: #f7fdf9;
}

.home-kpi--stale {
  border-color: #fed7aa;
  background: #fffbf7;
}

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

.home-kpi--interactive:hover {
  border-color: #fdba74;
  box-shadow: none;
  background: #fff7ed;
}

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

.home-kpi__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 5px;
}

.home-kpi__ico--orders {
  background: #eef3ff;
  color: #3b5bdb;
}

.home-kpi__ico--accounts {
  background: #fff7ed;
  color: #ea580c;
}

.home-kpi__ico--paid {
  background: #ecfdf5;
  color: #059669;
}

.home-kpi__ico--unpaid {
  background: #fef3c7;
  color: #d97706;
}

.home-kpi__ico--returns-delivered {
  background: #dcfce7;
  color: #16a34a;
}

.home-kpi__ico--stale {
  background: #ffedd5;
  color: #ea580c;
}

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

.home-kpi__value {
  margin: 0;
  font-size: 1.15rem;
  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.25rem 0.4rem;
  margin-top: 0.25rem;
  font-size: 0.65rem;
}

.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;
}

.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(5, 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.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e8edf5;
  background: #fafbfd;
}

.home-rate--delivered {
  border-color: #bbf7d0;
  background: #f7fdf9;
}

.home-rate--return {
  border-color: #fed7aa;
  background: #fffbf7;
}

.home-rate--rto {
  border-color: #fecaca;
  background: #fff8f8;
}

.home-rate--exchange {
  border-color: #c7d2fe;
  background: #f8f9ff;
}

.home-rate--cancelled {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.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;
}

.home-rate--return .home-rate__ico {
  color: #ea580c;
}

.home-rate--rto .home-rate__ico {
  color: #dc2626;
}

.home-rate--exchange .home-rate__ico {
  color: #4f46e5;
}

.home-rate--cancelled .home-rate__ico {
  color: #64748b;
}

.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: 1.1rem;
  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: #fef9c3;
  color: #ca8a04;
  border-color: #fde68a;
}

.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: 1;
  -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.65rem;
  height: 1.65rem;
  border-radius: 7px;
  background: #fff4ed;
  color: var(--color-primary);
  border: 1px solid #ffe0cc;
  flex-shrink: 0;
}

.home-chart__ico--returns {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
}

.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; }
.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;
}
.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__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-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-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);
}
