:root {
  --seller-bg: #f4f5f7;
  --seller-surface: #ffffff;
  --seller-border: #e5e7eb;
  --seller-text: #111827;
  --seller-muted: #6b7280;
  --seller-primary: #e53935;
  --seller-primary-hover: #c62828;
  --seller-sidebar: #f9fafb;
  --seller-radius: 10px;
  --seller-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --seller-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --seller-sidebar-width: 268px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body.seller-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--seller-bg);
  color: var(--seller-text);
  font-family: var(--seller-font);
}

body.seller-body:not(:has(.login-page)) {
  height: 100%;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.seller-flash-stack {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  pointer-events: none;
}

.seller-flash-toast {
  pointer-events: auto;
  min-width: min(380px, 92vw);
  max-width: min(480px, 92vw);
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 22px 56px rgba(17, 24, 39, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--seller-text);
  animation: seller-flash-in 0.28s ease;
}

.seller-flash-toast.is-leaving {
  animation: seller-flash-out 0.28s ease forwards;
}

.seller-flash-toast__icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.seller-flash-toast__text {
  flex: 1;
}

.seller-flash-toast--success {
  border-color: #cdebdc;
  background: #f3fbf7;
}

.seller-flash-toast--success .seller-flash-toast__icon {
  color: #2b9a67;
}

.seller-flash-toast--error {
  border-color: #f5cdca;
  background: #fff6f5;
}

.seller-flash-toast--error .seller-flash-toast__icon {
  color: #d63a30;
}

.seller-flash-toast--warning {
  border-color: #f6e3b3;
  background: #fffaf0;
}

.seller-flash-toast--warning .seller-flash-toast__icon {
  color: #c98712;
}

.seller-flash-toast--info,
.seller-flash-toast--default {
  border-color: #d5e3f8;
  background: #f5f9ff;
}

.seller-flash-toast--info .seller-flash-toast__icon,
.seller-flash-toast--default .seller-flash-toast__icon {
  color: #3b6fd8;
}

@keyframes seller-flash-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes seller-flash-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.seller-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  min-height: 0;
  width: 100%;
}

.seller-sidebar {
  width: var(--seller-sidebar-width);
  flex-shrink: 0;
  align-self: stretch;
  padding: 0;
  border-right: 1px solid var(--seller-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.seller-sidebar .sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border-bottom: 1px solid #ececea;
}

.seller-sidebar .sidebar__logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--seller-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px -6px rgba(229, 57, 53, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.seller-sidebar .sidebar__title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  line-height: 1.1;
}

.seller-sidebar .sidebar__subtitle {
  font-size: 11px;
  color: #8b919c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.seller-sidebar .sidebar__nav {
  padding: 14px 12px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}

.seller-sidebar .sidebar__nav::-webkit-scrollbar {
  width: 6px;
}

.seller-sidebar .sidebar__nav::-webkit-scrollbar-thumb {
  background: #dedbd5;
  border-radius: 6px;
}

.seller-sidebar .sidebar__section {
  padding: 14px 12px 6px;
  font-size: 10.5px;
  color: #9aa0a8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.seller-sidebar .sidebar__section:first-child {
  padding-top: 6px;
}

.seller-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #444954;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin: 1px 0;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.seller-sidebar .nav-link i {
  width: 18px;
  height: 18px;
  font-size: 17px;
  color: #8b919c;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
}

.seller-sidebar .nav-link:hover {
  background: #f6f5f2;
  color: #111827;
}

.seller-sidebar .nav-link:hover i {
  color: #5f6570;
}

.seller-sidebar .nav-link.active {
  background: rgba(229, 57, 53, 0.08);
  color: #111827;
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.12);
}

.seller-sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--seller-primary);
  border-radius: 0 3px 3px 0;
}

.seller-sidebar .nav-link.active i {
  color: var(--seller-primary);
}

.seller-sidebar .nav-link .badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  background: #f1efeb;
  color: #6b6f78;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

.seller-sidebar .nav-link.active .badge {
  background: #fff;
  color: var(--seller-primary);
}

.seller-sidebar .nav-link .badge.is-hot {
  background: var(--seller-primary);
  color: #fff;
}

.seller-sidebar .sidebar__foot {
  padding: 14px;
  border-top: 1px solid #ececea;
}

.seller-sidebar .user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ececea;
  box-shadow: var(--seller-shadow);
}

.seller-sidebar .user-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--seller-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.seller-sidebar .user-card__name {
  color: #111827;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.seller-sidebar .user-card__meta {
  color: #8b919c;
  font-size: 11.5px;
}

.seller-sidebar .user-card__chev {
  margin-left: auto;
  color: #9aa0a8;
}

.seller-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.seller-topbar.topbar {
  min-height: 66px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #ececea;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.seller-topbar .topbar__title {
  font-size: 15px;
  color: #6b6f78;
  font-weight: 500;
  white-space: nowrap;
}

.seller-topbar .topbar__search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.seller-topbar .topbar__search input {
  width: 100%;
  background: #fbfaf8;
  border: 1px solid #ececea;
  border-radius: 10px;
  padding: 9px 14px 9px 38px;
  font-size: 13.5px;
  color: #14161a;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.seller-topbar .topbar__search input:focus {
  border-color: var(--seller-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.seller-topbar .topbar__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a8;
  font-size: 15px;
}

.seller-topbar .topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-topbar .icon-btn,
.seller-topbar a.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #ececea;
  background: #fff;
  color: #2a2d35;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.seller-topbar .icon-btn:hover,
.seller-topbar a.icon-btn:hover {
  background: #fbfaf8;
  border-color: #e3e2df;
}

.seller-topbar .icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--seller-primary);
  box-shadow: 0 0 0 2px #fff;
}

.seller-topbar .btn-ghost {
  background: #fff;
  border: 1px solid #ececea;
  color: #2a2d35;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.seller-topbar .btn-ghost:hover {
  background: #fbfaf8;
  border-color: #e3e2df;
  color: #14161a;
}

.topbar-notifications {
  position: relative;
}

.topbar-notifications__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  z-index: 40;
  overflow: hidden;
}

.topbar-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0efec;
  font-size: 14px;
}

.topbar-notifications__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--seller-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-notifications__list {
  max-height: 360px;
  overflow-y: auto;
}

.topbar-notifications__item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f4f1;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.topbar-notifications__item:hover {
  background: #fbfaf8;
}

.topbar-notifications__item.is-unread {
  background: #fff7f7;
}

.topbar-notifications__title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #14161a;
  margin-bottom: 2px;
}

.topbar-notifications__meta {
  display: block;
  font-size: 11.5px;
  color: #8b9099;
  margin-bottom: 4px;
}

.topbar-notifications__excerpt {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4b5563;
}

.topbar-notifications__empty {
  padding: 24px 16px;
  text-align: center;
  color: #8b9099;
  font-size: 13px;
}

.topbar-notifications__foot {
  padding: 12px 16px;
  border-top: 1px solid #f0efec;
  background: #fbfaf8;
}

.topbar-notifications__foot a {
  font-size: 13px;
  font-weight: 600;
  color: var(--seller-primary);
  text-decoration: none;
}

.topbar-notifications__foot a:hover {
  text-decoration: underline;
}

.seller-notifications-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.seller-notifications-tabs__item {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--seller-border);
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.seller-notifications-tabs__item.is-active {
  background: #fff7f7;
  border-color: #fecaca;
  color: var(--seller-primary);
}

.seller-notifications-list {
  display: grid;
  gap: 10px;
}

.seller-notifications-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--seller-shadow);
}

.seller-notifications-item.is-unread {
  border-color: #fecaca;
  background: #fff7f7;
}

.seller-notifications-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.seller-notifications-item__head strong {
  font-size: 14px;
}

.seller-notifications-item__head time {
  font-size: 12px;
  color: #8b9099;
  white-space: nowrap;
}

.seller-notifications-item p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.seller-notifications-item--empty {
  text-align: center;
  color: #8b9099;
}

.seller-notification-view__content {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
}

.seller-btn-secondary {
  background: #fff;
  border: 1px solid var(--seller-border);
  color: #374151;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.seller-content {
  padding: 1.5rem;
  flex: 1;
  min-height: 0;
  background: #f6f5f2;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.seller-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.seller-page-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.seller-page-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--seller-muted);
}

.seller-card,
.seller-table-card,
.seller-stat-card {
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  box-shadow: var(--seller-shadow);
}

.seller-card {
  padding: 1.15rem;
}

.seller-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-stat-card {
  padding: 1rem;
}

.seller-stat-label {
  color: var(--seller-muted);
  font-size: 0.875rem;
}

.seller-stat-value {
  margin-top: 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.seller-stat-hint {
  margin-top: 0.35rem;
  color: var(--seller-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.seller-toolbar,
.seller-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.seller-search {
  width: min(420px, 100%);
  border: 1px solid var(--seller-border);
  border-radius: var(--seller-radius);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
}

.seller-filter-input {
  border: 1px solid var(--seller-border);
  border-radius: var(--seller-radius);
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: var(--seller-text);
  font: inherit;
  font-size: 0.875rem;
}

.seller-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--seller-radius);
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.seller-btn-primary {
  background: var(--seller-primary);
  border-color: var(--seller-primary);
  color: #fff;
}

.seller-btn-primary:hover {
  background: var(--seller-primary-hover);
  border-color: var(--seller-primary-hover);
}

.seller-btn-secondary {
  background: #fff;
  border-color: var(--seller-border);
  color: var(--seller-text);
}

.seller-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--seller-border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

a.seller-pill:hover {
  background: #f9fafb;
  color: var(--seller-text);
}

.seller-pill.is-active {
  background: rgba(229, 57, 53, 0.08);
  border-color: rgba(229, 57, 53, 0.2);
  color: var(--seller-primary);
}

.seller-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--seller-primary);
  color: #fff;
  font-weight: 800;
}

.seller-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.seller-table th,
.seller-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--seller-border);
  text-align: left;
}

.seller-table th {
  color: var(--seller-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fafbfc;
}

.seller-table tr:last-child td {
  border-bottom: 0;
}

.seller-order-thumb {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--seller-border);
  object-fit: cover;
  background: #f3f4f6;
}

.seller-order-thumbs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.seller-order-sku-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seller-order-sku-stack__item {
  line-height: 1.25;
  min-height: 2.35rem;
}

.seller-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.72rem;
  font-weight: 600;
}

.seller-badge--new { background: #e8edff; color: #312e81; }
.seller-badge--delayed { background: #ffedd5; color: #c2410c; }

.seller-order-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.seller-order-status .seller-badge {
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  padding: 0.18rem 0.5rem;
  letter-spacing: 0.01em;
}

.seller-order-status .seller-badge::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

.seller-order-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.seller-order-actions .seller-btn {
  white-space: nowrap;
  padding: 0.38rem 0.6rem;
  font-size: 0.78rem;
}
.seller-badge--packed { background: #fef3c7; color: #92400e; }
.seller-badge--dispatched { background: #e0f2fe; color: #0369a1; }
.seller-badge--delivered { background: #dcfce7; color: #166534; }
.seller-badge--cancelled { background: #fee2e2; color: #991b1b; }
.seller-badge--simple { background: #eef2ff; color: #3730a3; }
.seller-badge--bundle { background: #fce7f3; color: #9d174d; }
.seller-badge--digital { background: #e0f2fe; color: #0369a1; }
.seller-badge--service { background: #ecfdf5; color: #047857; }


.seller-table__sub {
  margin-top: 0.15rem;
  color: var(--seller-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.seller-table-card .tbl-foot {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--seller-border);
}

.seller-toolbar--orders {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.seller-toolbar--orders .seller-toolbar__filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.seller-toolbar--orders .seller-toolbar__filters .seller-search {
  flex: 1 1 160px;
  min-width: 120px;
  width: auto;
  max-width: none;
}

.seller-toolbar--orders .seller-toolbar__filters .order-date-range {
  flex: 0 0 auto;
}

.seller-toolbar--orders .seller-toolbar__filters .order-date-range__trigger {
  min-width: 9.5rem;
  max-width: 11rem;
}

.seller-toolbar--orders .seller-toolbar__filters .seller-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.seller-toolbar--orders .seller-toolbar__bulk {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.seller-toolbar--orders .seller-toolbar__bulk .seller-btn {
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.seller-toolbar--orders .order-toolbar-bulk__form {
  flex: 0 0 auto;
}

.seller-toolbar__bulk-count {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.order-toolbar-bulk__form {
  margin: 0;
  display: inline-flex;
}

.order-bulk-result-modal__icon.is-success {
  background: var(--ok-50);
  color: var(--ok);
}

.order-bulk-result-modal__icon.is-warning {
  background: var(--warn-50);
  color: var(--warn);
}

.order-bulk-result-modal__icon.is-error {
  background: var(--brand-50);
  color: var(--brand);
}

.order-bulk-result-modal__error-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.order-bulk-result-modal__error-list li + li {
  margin-top: 0.35rem;
}

body.order-bulk-result-open {
  overflow: hidden;
}

.order-date-range {
  position: relative;
}

.order-date-range__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 11.5rem;
  max-width: 16rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: var(--seller-radius);
  background: #fff;
  color: var(--seller-text);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
}

.order-date-range__trigger:hover,
.order-date-range.is-open .order-date-range__trigger {
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.08);
}

.order-date-range.has-value .order-date-range__trigger {
  color: #111827;
  font-weight: 600;
}

.order-date-range__trigger i:first-child {
  color: var(--seller-primary);
}

.order-date-range__trigger span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-date-range__chev {
  color: var(--seller-muted);
  font-size: 0.72rem;
  transition: transform 0.15s ease;
}

.order-date-range.is-open .order-date-range__chev {
  transform: rotate(180deg);
}

.order-date-range__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 40;
  width: min(320px, 92vw);
  padding: 0.85rem;
  border: 1px solid var(--seller-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.order-date-range__presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.order-date-range__body--side {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.order-date-range--side-presets .order-date-range__panel {
  width: min(540px, 96vw);
}

.order-date-range__body--side .order-date-range__presets {
  display: flex;
  flex-direction: column;
  flex: 0 0 8.5rem;
  gap: 0.35rem;
  margin-bottom: 0;
}

.order-date-range__body--side .order-date-range__preset {
  width: 100%;
  text-align: left;
}

.order-date-range__body--side .order-date-range__calendar {
  flex: 1 1 auto;
  min-width: 0;
}

.order-date-range__preset {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--seller-border);
  border-radius: 8px;
  background: #fff;
  color: var(--seller-text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.order-date-range__preset:hover,
.order-date-range__preset.is-on {
  border-color: rgba(229, 57, 53, 0.35);
  background: rgba(229, 57, 53, 0.06);
  color: var(--seller-primary);
}

.order-date-range__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.order-date-range__month {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.order-date-range__hint {
  margin: 0 0 0.55rem;
  color: var(--seller-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.order-date-range.is-open.is-selecting-end .order-date-range__hint,
.order-date-range__hint {
  color: var(--seller-muted);
}

.order-date-range__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--seller-muted);
  cursor: pointer;
}

.order-date-range__nav-btn:hover {
  background: #f3f4f6;
  color: var(--seller-text);
}

.order-date-range__weekdays,
.order-date-range__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
}

.order-date-range__weekdays {
  margin-bottom: 0.35rem;
}

.order-date-range__weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--seller-muted);
}

.order-date-range__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--seller-text);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.order-date-range__day.is-empty {
  pointer-events: none;
}

.order-date-range__day:hover {
  background: #f3f4f6;
}

.order-date-range__day.is-today {
  font-weight: 700;
  color: var(--seller-primary);
}

.order-date-range__day.is-in-range {
  border-radius: 0;
  background: rgba(229, 57, 53, 0.1);
}

.order-date-range__day.is-start,
.order-date-range__day.is-end {
  background: var(--seller-primary);
  color: #fff;
  font-weight: 700;
}

.order-date-range__day.is-awaiting-end {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--seller-primary);
}

.order-date-range__day.is-hover-range {
  border-radius: 0;
  background: rgba(229, 57, 53, 0.16);
}

.order-date-range__day.is-hover-end {
  background: rgba(229, 57, 53, 0.55);
  color: #fff;
  font-weight: 700;
}

.order-date-range__day.is-start {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.order-date-range__day.is-end {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.order-date-range__day.is-start.is-end {
  border-radius: 8px;
}

.order-date-range__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--seller-border);
}

.order-date-range__clear,
.order-date-range__today,
.order-date-range__apply {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.order-date-range__clear,
.order-date-range__today {
  color: var(--seller-muted);
}

.order-date-range__clear:hover,
.order-date-range__today:hover {
  color: var(--seller-text);
}

.order-date-range__apply {
  margin-left: auto;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--seller-primary);
  color: #fff;
}

.order-date-range__apply:hover {
  background: var(--seller-primary-hover);
}

.seller-orders-page .seller-toolbar--orders {
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  background: var(--seller-surface);
  box-shadow: var(--seller-shadow);
}

.seller-orders-page .order-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1rem;
  padding: 4px;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  background: var(--seller-surface);
  box-shadow: var(--seller-shadow);
}

.seller-orders-page .order-status-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.seller-orders-page .order-status-bar__item:hover {
  color: #374151;
  background: #f9fafb;
}

.seller-orders-page .order-status-bar__item.is-active {
  background: #eef2f6;
  color: #111827;
}

.seller-orders-page .order-status-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.seller-orders-page .order-status-bar__dot.is-all { background: #64748b; }
.seller-orders-page .order-status-bar__dot.is-new { background: #6366f1; }
.seller-orders-page .order-status-bar__dot.is-packed { background: #f59e0b; }
.seller-orders-page .order-status-bar__dot.is-dispatched { background: #0ea5e9; }
.seller-orders-page .order-status-bar__dot.is-delivered { background: #22c55e; }
.seller-orders-page .order-status-bar__dot.is-cancelled { background: #ef4444; }
.seller-orders-page .order-status-bar__dot.is-rto { background: #ec4899; }

.seller-orders-page .order-status-bar__label {
  line-height: 1.2;
}

.seller-orders-page .order-status-bar__item.is-active .order-status-bar__label {
  font-weight: 700;
  color: #111827;
}

.seller-orders-page .order-status-bar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.seller-orders-page .order-status-bar__item.is-active .order-status-bar__count {
  background: #1e293b;
  color: #fff;
}

.order-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7f7;
}

.order-bulk-bar__count {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.order-bulk-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-bulk-bar__form {
  margin: 0;
}

.seller-table--selectable .seller-table__select-col {
  width: 44px;
  text-align: center;
  vertical-align: middle;
}

.seller-table--selectable .seller-table__select-col input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.seller-table--selectable tbody tr:has(.order-row-checkbox:checked) {
  background: #fffbeb;
}

.seller-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seller-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--seller-border);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.seller-status-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seller-status-chip.is-on {
  border-color: rgba(229, 57, 53, 0.28);
  background: rgba(229, 57, 53, 0.08);
  color: var(--seller-primary);
}

.seller-bookmark-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  background: var(--seller-surface);
  box-shadow: var(--seller-shadow);
}

.seller-bookmark-panel .seller-section-head {
  position: relative;
}

.seller-bookmark-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.seller-bookmark-grid::-webkit-scrollbar {
  display: none;
}

.seller-bookmark-scroller {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seller-bookmark-scroller__viewport {
  flex: 1;
  min-width: 0;
}

.seller-bookmark-scroller__btn {
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--seller-border);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.seller-bookmark-scroller__btn:hover:not(:disabled) {
  border-color: rgba(229, 57, 53, 0.35);
  color: var(--seller-primary);
  background: rgba(229, 57, 53, 0.04);
}

.seller-bookmark-scroller__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.seller-bookmark-scroller:not(.has-overflow) .seller-bookmark-scroller__btn {
  display: none;
}

.seller-bookmark-grid > .seller-bookmark-card {
  flex: 0 0 calc((100% - 1.5rem) / 3);
  min-width: calc((100% - 1.5rem) / 3);
}

.seller-bookmark-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 4.5rem;
  border: 1px solid var(--seller-border);
  border-radius: 10px;
  background: #fff;
  color: var(--seller-text);
  overflow: hidden;
}

.seller-bookmark-card__link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.75rem;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.seller-bookmark-card__link:hover {
  background: rgba(229, 57, 53, 0.04);
}

.seller-bookmark-card:hover,
.seller-bookmark-card.is-active {
  border-color: rgba(229, 57, 53, 0.3);
  background: rgba(229, 57, 53, 0.06);
}

.seller-bookmark-card__delete {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.seller-bookmark-card__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  border-left: 1px solid var(--seller-border);
}

.seller-bookmark-card__edit-btn,
.seller-bookmark-card__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--seller-primary);
  cursor: pointer;
}

.seller-bookmark-card__edit-btn {
  border-right: 1px solid var(--seller-border);
}

.seller-bookmark-card__edit-btn:hover,
.seller-bookmark-card__delete-btn:hover {
  background: rgba(229, 57, 53, 0.1);
}

.seller-bookmark-card__delete {
  border-left: 0;
}

.order-bookmark-drawer__sort {
  max-width: 8rem;
}

.seller-bookmark-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.seller-bookmark-actions .seller-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.seller-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: 8px;
  background: #fff;
  color: var(--seller-text);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.seller-filter-pill i {
  color: var(--seller-primary);
}

.order-bookmark-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(20, 22, 26, 0.42);
  backdrop-filter: blur(3px);
}

.order-bookmark-drawer-backdrop.is-open {
  display: block;
}

body.order-bookmark-drawer-open {
  overflow: hidden;
}

.order-bookmark-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  border-left: 1px solid var(--seller-border);
  background: #fff;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.order-bookmark-drawer-backdrop.is-open .order-bookmark-drawer {
  transform: translateX(0);
}

.order-bookmark-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--seller-border);
}

.order-bookmark-drawer__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.order-bookmark-drawer__sub {
  margin: 0.35rem 0 0;
  color: var(--seller-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.order-bookmark-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--seller-muted);
  cursor: pointer;
}

.order-bookmark-drawer__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--seller-text);
}

.order-bookmark-drawer__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.1rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.order-bookmark-drawer__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.order-bookmark-drawer__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--seller-muted);
}

.order-bookmark-drawer__label .req {
  color: var(--seller-primary);
}

.order-bookmark-drawer__date-grid,
.order-bookmark-drawer__status-grid {
  display: grid;
  gap: 0.45rem;
}

.order-bookmark-drawer__date-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-bookmark-drawer__status-grid {
  grid-template-columns: 1fr;
}

.order-bookmark-drawer__date-option,
.order-bookmark-drawer__status-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: 10px;
  background: #fff;
  color: var(--seller-text);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.order-bookmark-drawer__date-option input,
.order-bookmark-drawer__status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-bookmark-drawer__date-option.is-on,
.order-bookmark-drawer__status-option.is-on {
  border-color: rgba(229, 57, 53, 0.35);
  background: rgba(229, 57, 53, 0.06);
}

.order-bookmark-drawer__hint {
  margin: 0;
  color: var(--seller-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.order-bookmark-drawer__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--seller-border);
}

.seller-bookmark-save {
  position: relative;
}

.seller-bookmark-save > summary {
  list-style: none;
  cursor: pointer;
}

.seller-bookmark-save > summary::-webkit-details-marker {
  display: none;
}

.seller-bookmark-save__form {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  width: min(360px, 92vw);
  padding: 0.85rem;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--seller-shadow);
}

.seller-bookmark-save__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--seller-muted);
}

.seller-bookmark-save__row {
  display: flex;
  gap: 0.5rem;
}

.seller-bookmark-save__row .seller-search {
  flex: 1 1 auto;
  width: auto;
}

.seller-bookmark-save__hint {
  margin: 0.55rem 0 0;
  color: var(--seller-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.seller-bookmark-empty {
  margin: 0;
  color: var(--seller-muted);
  font-size: 0.875rem;
}

.seller-bookmark-card strong,
.seller-bookmark-card small {
  display: block;
}

.seller-bookmark-card strong {
  font-size: 0.8125rem;
  font-weight: 700;
}

.seller-bookmark-card small {
  margin-top: 0.2rem;
  color: var(--seller-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.seller-bookmark-card b {
  display: inline-flex;
  min-width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--seller-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.seller-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-dashboard-panel {
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  box-shadow: var(--seller-shadow);
  padding: 1rem;
  overflow: hidden;
}

.seller-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.seller-section-head h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.seller-section-head p {
  margin: 0.2rem 0 0;
  color: var(--seller-muted);
  font-size: 0.78rem;
}

.seller-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.seller-shortcut-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.seller-shortcut-card:hover {
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.seller-shortcut-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(229, 57, 53, 0.1);
  color: var(--seller-primary);
  font-weight: 800;
}

.seller-shortcut-card strong {
  display: block;
  color: var(--seller-text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.seller-shortcut-card small {
  display: block;
  margin-top: 0.15rem;
  color: var(--seller-muted);
  font-size: 0.72rem;
}

.seller-dashboard-panel--alert {
  position: relative;
  border-left: 4px solid #f59e0b;
}

.seller-alert-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fffbeb;
  color: #d97706;
  font-weight: 800;
}

.seller-alert-value {
  margin: 0.35rem 0 1rem;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
}

.seller-alert-link {
  display: inline-flex;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.seller-dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-dashboard-status-grid--metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seller-dashboard-metrics {
  margin-bottom: 1rem;
}

.seller-dashboard-range {
  margin-bottom: 0.75rem;
}

.seller-toolbar--dashboard-range,
.seller-toolbar--dashboard-metrics {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}

.seller-toolbar--dashboard-range .order-date-range {
  position: relative;
}

.seller-stat-card--wallet {
  border-color: rgba(229, 57, 53, 0.15);
}

.seller-status-card {
  position: relative;
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  box-shadow: var(--seller-shadow);
  padding: 1rem;
}

a.seller-status-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.seller-status-card:hover {
  border-color: var(--seller-primary);
}

.seller-status-dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d1d5db;
}

.seller-status-card--red .seller-status-dot {
  background: var(--seller-primary);
}

.seller-status-card--amber .seller-status-dot {
  background: #f59e0b;
}

.seller-status-card--blue .seller-status-dot {
  background: #3b82f6;
}

.seller-status-card--green .seller-status-dot {
  background: #10b981;
}

.seller-dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-trend-chart {
  height: 18rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 1rem;
  padding: 1rem 0.75rem 0.25rem;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background:
    repeating-linear-gradient(to top, transparent 0, transparent 46px, #eef0f3 47px),
    linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.seller-trend-point {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.seller-trend-bar {
  position: relative;
  width: min(42px, 70%);
  min-height: 1rem;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #ef4444 0%, var(--seller-primary) 100%);
  box-shadow: 0 8px 16px rgba(229, 57, 53, 0.18);
}

.seller-trend-bar span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  color: var(--seller-text);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.seller-trend-label {
  color: var(--seller-muted);
  font-size: 0.75rem;
}

.seller-product-list {
  display: grid;
  gap: 0.65rem;
}

.seller-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: 10px;
  background: #fff;
}

.seller-product-row strong,
.seller-product-row small {
  display: block;
}

.seller-product-row strong {
  font-size: 0.8125rem;
}

.seller-product-row small {
  margin-top: 0.18rem;
  color: var(--seller-muted);
  font-size: 0.72rem;
}

.seller-product-row b {
  color: var(--seller-primary);
  font-size: 1rem;
}

.seller-products-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seller-products-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.seller-products-summary-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  background: var(--seller-surface);
  box-shadow: var(--seller-shadow);
}

.seller-products-summary-dot {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: transparent;
}

.seller-products-summary-card--green .seller-products-summary-dot {
  background: #10b981;
}

.seller-products-summary-card--amber .seller-products-summary-dot {
  background: #f59e0b;
}

.seller-products-summary-card--blue .seller-products-summary-dot {
  background: #3b82f6;
}

.seller-products-summary-card:not(.seller-products-summary-card--neutral) .seller-stat-label {
  padding-left: 0.8rem;
}

.seller-products-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seller-products-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.seller-products-tab span {
  display: inline-flex;
  min-width: 1.35rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
}

.seller-products-tab.is-active {
  border-color: rgba(229, 57, 53, 0.22);
  background: rgba(229, 57, 53, 0.08);
  color: var(--seller-primary);
}

.seller-products-tab.is-active span {
  background: #fff;
  color: var(--seller-primary);
}

.seller-products-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.seller-products-search {
  display: flex;
  flex: 1;
  min-width: 260px;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--seller-border);
  border-radius: 10px;
  background: #fff;
  color: var(--seller-muted);
  box-shadow: var(--seller-shadow);
}

.seller-products-search input {
  width: 100%;
  min-height: 2.5rem;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
}

.seller-products-filter,
.seller-products-view-toggle button {
  min-height: 2.5rem;
  border: 1px solid var(--seller-border);
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--seller-shadow);
}

.seller-products-filter {
  padding: 0 0.85rem;
}

.seller-products-view-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.2rem;
  border: 1px solid var(--seller-border);
  border-radius: 10px;
  background: #fff;
}

.seller-products-view-toggle button {
  min-height: 2rem;
  padding: 0 0.55rem;
  border: 0;
  box-shadow: none;
  color: var(--seller-muted);
}

.seller-products-view-toggle button.is-active {
  background: #f3f4f6;
  color: var(--seller-text);
}

.seller-products-table-card {
  overflow: hidden;
  border: 1px solid var(--seller-border);
  border-radius: 12px;
  background: var(--seller-surface);
  box-shadow: var(--seller-shadow);
}

.seller-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.seller-products-table th,
.seller-products-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--seller-border);
  text-align: left;
  vertical-align: middle;
}

.seller-products-table th {
  background: #fafbfc;
  color: var(--seller-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seller-products-table tr:last-child td {
  border-bottom: 0;
}

.seller-products-table input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  accent-color: var(--seller-primary);
}

.seller-products-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 16rem;
}

.seller-products-thumb {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f1efeb;
  color: #6b7280;
  font-size: 1rem;
}

.seller-products-product-cell strong,
.seller-products-product-cell small {
  display: block;
}

.seller-products-product-cell strong {
  color: var(--seller-text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.seller-products-product-cell small {
  margin-top: 0.12rem;
  color: var(--seller-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
}

.seller-products-price {
  font-weight: 800;
}

.seller-products-old-price {
  margin-left: 0.25rem;
  color: #9ca3af;
  font-size: 0.75rem;
  text-decoration: line-through;
}

.seller-products-stock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 7rem;
}

.seller-products-stock span {
  min-width: 2.5rem;
  color: var(--seller-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.seller-products-stock span.is-low {
  color: #b45309;
}

.seller-products-stock i {
  position: relative;
  display: block;
  width: 3.6rem;
  height: 0.18rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f6;
}

.seller-products-stock b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--seller-primary);
}

.seller-products-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.seller-products-status::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
}

.seller-products-status--active {
  background: #ecfdf5;
  color: #047857;
}

.seller-products-status--sent-for-approval {
  background: #eff6ff;
  color: #1d4ed8;
}

.seller-products-status--draft {
  background: #f3f4f6;
  color: #4b5563;
}

.seller-products-status--revision {
  background: #fffbeb;
  color: #b45309;
}

.seller-products-status--disabled {
  background: #fef2f2;
  color: #dc2626;
}

.seller-products-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.seller-products-actions button,
.seller-products-actions a {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--seller-border);
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}

.seller-products-actions button:hover,
.seller-products-actions a:hover {
  background: #f9fafb;
  color: var(--seller-text);
}

.seller-products-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--seller-border);
  color: var(--seller-muted);
  font-size: 0.8125rem;
}

.seller-products-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.seller-products-pagination button {
  min-width: 2rem;
  height: 2rem;
  border: 1px solid var(--seller-border);
  border-radius: 8px;
  background: #fff;
  color: var(--seller-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.seller-products-pagination button.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.seller-product-shell {
  padding-bottom: 6.5rem;
}

.seller-product-view-shell {
  padding-bottom: 2rem;
}

.seller-product-view-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.seller-product-view-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.seller-product-view {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .seller-product-view {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .seller-product-view__aside {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

.seller-product-view__main,
.seller-product-view__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.seller-product-view__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.seller-product-view__meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 0;
}

.seller-product-view__meta-inline div {
  min-width: 0;
}

.seller-product-view__meta-inline dt {
  margin: 0 0 0.2rem;
  color: var(--seller-muted, #6b7280);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seller-product-view__meta-inline dd {
  margin: 0;
  color: var(--seller-text, #111827);
  font-size: 0.9375rem;
  font-weight: 600;
}

.seller-product-view__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.seller-product-view__media-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seller-product-view__description {
  color: var(--seller-text, #111827);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.seller-product-view__description p {
  margin: 0 0 0.75rem;
}

.seller-product-view__description p:last-child {
  margin-bottom: 0;
}

.seller-product-view__dl {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.seller-product-view__dl--compact {
  gap: 0.7rem;
}

.seller-product-view__dl-row {
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 520px) {
  .seller-product-view__dl-row {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
}

.seller-product-view__dl dt {
  margin: 0;
  color: var(--seller-muted, #6b7280);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seller-product-view__dl dd {
  margin: 0;
  color: var(--seller-text, #111827);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.seller-product-view__price {
  font-size: 1.125rem;
  font-weight: 650;
}

.seller-product-view__tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.seller-product-view__tag-list li {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
}

.seller-product-view__inventory-table-wrap {
  overflow-x: auto;
}

.seller-product-view__inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.seller-product-view__inventory-table th,
.seller-product-view__inventory-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--seller-product-card-border, #d9dbdd);
  text-align: left;
}

.seller-product-view__inventory-table th {
  color: var(--seller-muted, #6b7280);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seller-product-view__inventory-table tr:last-child th,
.seller-product-view__inventory-table tr:last-child td {
  border-bottom: none;
}

.seller-product-page-header {
  margin-bottom: 1.25rem;
}

.seller-product-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  color: var(--seller-muted);
  font-size: 0.8125rem;
}

.seller-product-breadcrumb__link {
  color: var(--seller-primary);
  font-weight: 600;
}

.seller-product-breadcrumb__sep {
  color: #d1d5db;
}

.seller-product-breadcrumb__current {
  color: var(--seller-muted);
}

.seller-product-page-title {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.seller-product-page-sub {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: var(--seller-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.seller-product-editor {
  --seller-product-accent: var(--seller-primary);
  --seller-product-accent-soft: rgba(229, 57, 53, 0.14);
  --seller-product-card-border: #d9dbdd;
  --seller-product-card-radius: 14px;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .seller-product-editor {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .seller-product-editor__aside {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

.seller-product-editor__main,
.seller-product-editor__aside {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.5rem;
}

.seller-product-editor__aside {
  gap: 1.1rem;
}

.seller-product-card {
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid var(--seller-product-card-border);
  border-radius: var(--seller-product-card-radius);
  background: var(--seller-surface);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(16, 24, 40, 0.05);
}

.seller-product-card--aside {
  padding: 1.15rem 1.35rem 1.35rem;
}

.seller-product-card--muted {
  background: linear-gradient(180deg, #fbfbfc 0%, #f6f7f8 100%);
}

.seller-product-card__heading {
  margin: 0 0 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ebebeb;
  color: #1a1c1e;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.seller-product-card__hint {
  margin: 0 0 1rem;
  color: #6d7175;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.seller-product-description-editor__source {
  display: none !important;
}

.seller-product-description-editor__quill {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--seller-product-card-border, #d9dbdd);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.seller-product-description-editor__quill .ql-toolbar {
  border: none;
  border-bottom: 1px solid #ebebeb;
  background: #fbfbfc;
  font-family: var(--seller-font, 'Inter', system-ui, sans-serif);
}

.seller-product-description-editor__quill .ql-container {
  border: none;
  font-family: var(--seller-font, 'Inter', system-ui, sans-serif);
  font-size: 0.9375rem;
  min-height: 11rem;
}

.seller-product-description-editor__quill .ql-editor {
  min-height: 11rem;
  line-height: 1.55;
  color: var(--seller-text, #111827);
}

.seller-product-description-editor__quill.ql-focused,
.seller-product-description-editor:focus-within .seller-product-description-editor__quill {
  border-color: var(--seller-primary, #111827);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.04),
    0 0 0 1px var(--seller-primary, #111827),
    0 0 0 3px rgba(17, 24, 39, 0.12);
}

.seller-product-description-editor .seller-product-card__hint--tight {
  margin-top: 0.5rem;
}

.seller-product-select-multi {
  width: 100%;
  min-height: 10.5rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: inherit;
  border: 1px solid var(--seller-product-card-border, #d9dbdd);
  border-radius: 12px;
  background: #fff;
  color: var(--seller-text, #111827);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background-color 0.14s ease;
}

.seller-product-select-multi:hover {
  border-color: #9ca3af;
}

.seller-product-select-multi:focus {
  outline: none;
  border-color: var(--seller-primary, #111827);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.04),
    0 0 0 1px var(--seller-primary, #111827),
    0 0 0 3px rgba(17, 24, 39, 0.12);
}

.seller-product-select-multi option {
  padding: 0.35rem 0.25rem;
}

.seller-product-select-multi--compact {
  min-height: 7.5rem;
}

.seller-product-categories .seller-product-card__heading {
  margin-bottom: 0.35rem;
}

.seller-product-field--subs {
  margin-top: 0.85rem;
}

.seller-image-preview-link {
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--seller-border, #e5e7eb);
  line-height: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.seller-image-preview-link:hover {
  border-color: #93c5fd;
}

.seller-image-preview-img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.seller-image-preview-img--extra {
  width: 90px;
  height: 90px;
}

.seller-product-media-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.seller-product-media-item--extra {
  margin-bottom: 0;
}

.seller-product-media-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--seller-muted, #6b7280);
  cursor: pointer;
  user-select: none;
}

.seller-product-media-remove input {
  margin: 0;
  cursor: pointer;
}

.seller-product-required {
  color: #b91c1c;
  font-weight: 700;
  margin-left: 0.15rem;
}

.seller-product-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border: 1px dashed var(--seller-border, #e5e7eb);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--seller-muted, #6b7280);
  text-align: center;
  padding: 0.25rem;
}

.seller-product-label--spaced {
  margin-top: 0.75rem;
}

.seller-product-extra-images-preview {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seller-product-extra-images-preview .seller-product-media-item {
  gap: 0.35rem;
}

.seller-product-card__hint--tight {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.seller-product-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.seller-product-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 1.25rem;
}

@media (min-width: 640px) {
  .seller-product-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-product-field-grid--dimensions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.seller-product-field-grid--pricing {
  gap: 1rem 1.15rem;
}

.seller-product-field-grid > * {
  min-width: 0;
}

.seller-product-field {
  width: 100%;
  min-width: 0;
}

.seller-product-field .seller-field-hint {
  margin: 0.35rem 0 0;
  color: #6d7175;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.hsn-field__control {
  position: relative;
}

.hsn-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 16rem;
  overflow: auto;
  background: #fff;
  border: 1px solid #e3e5e7;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.hsn-suggest__item,
.hsn-suggest__empty {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.hsn-suggest__empty {
  color: #6d7175;
  cursor: default;
}

.hsn-suggest__item.is-active,
.hsn-suggest__item:hover {
  background: #f6f6f7;
}

.hsn-suggest__code {
  display: block;
  font-weight: 650;
  color: #202223;
}

.hsn-suggest__desc {
  display: block;
  margin-top: 0.1rem;
  color: #6d7175;
  font-size: 0.78rem;
  line-height: 1.35;
}

.seller-product-field .seller-product-input.is-readonly {
  background: #f6f6f7;
  color: #5c5f62;
  cursor: default;
}

.seller-product-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #5c5f62;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.seller-product-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c4cdd5;
  border-radius: 12px;
  background: #fff;
  color: var(--seller-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background-color 0.14s ease;
}

.seller-product-input:hover {
  border-color: #9ca0a4;
}

.seller-product-input:focus {
  outline: none;
  border-color: var(--seller-product-accent);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.04),
    0 0 0 1px var(--seller-product-accent),
    0 0 0 4px var(--seller-product-accent-soft);
}

.seller-product-input::placeholder {
  color: #8c9196;
}

select.seller-product-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d7175' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

.seller-product-input[type="number"]::-webkit-outer-spin-button,
.seller-product-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.seller-product-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.seller-product-textarea {
  min-height: 8.5rem;
  resize: vertical;
  padding-top: 0.7rem;
}

.seller-product-textarea--small {
  min-height: 5.5rem;
}

.seller-product-pricing__subheading {
  margin: 0 0 0.75rem;
  color: #5c5f62;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seller-product-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: -1.5rem;
  padding: 16px 1.5rem;
  border: 1px solid #ececea;
  border-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #fff;
  box-shadow:
    0 -4px 16px rgba(15, 23, 42, 0.06),
    0 -1px 0 #ececea;
}

.seller-product-form-footer__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #6b6f78;
  line-height: 1.4;
  min-width: 0;
}

.seller-product-form-footer__hint i {
  color: #1f8a5b;
  font-size: 15px;
  flex-shrink: 0;
}

.seller-product-form-footer__btns {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.seller-product-form-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 6.5rem;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.seller-product-form-footer__btn--ghost {
  background: #fff;
  border-color: #ececea;
  color: #14161a;
}

.seller-product-form-footer__btn--ghost:hover {
  background: #fbfaf8;
  border-color: #e3e2df;
  color: #14161a;
}

.seller-product-form-footer__btn--primary {
  background: var(--seller-primary);
  border-color: var(--seller-primary);
  color: #fff;
}

.seller-product-form-footer__btn--primary:hover {
  background: var(--seller-primary-hover);
  border-color: var(--seller-primary-hover);
  color: #fff;
}

@media (max-width: 900px) {
  .seller-product-form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1rem;
  }

  .seller-product-form-footer__btns {
    margin-left: 0;
    justify-content: flex-end;
  }
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(229, 57, 53, 0.16), transparent 34rem),
    var(--seller-bg);
}

.login-card {
  width: min(440px, 100%);
  border: 1px solid var(--seller-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  padding: 2rem;
}

.login-card .message {
  border-radius: 12px;
  border: 1px solid;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.login-card .message::before {
  content: "!";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.login-card .message.error {
  color: #8f1d17;
  background: #fff4f3;
  border-color: #f5cdca;
}

.login-card .message.error::before {
  color: #fff;
  background: #d63a30;
}

.login-card .message.success {
  color: #16643f;
  background: #eefaf4;
  border-color: #cdebdc;
}

.login-card .message.success::before {
  content: "✓";
  color: #fff;
  background: #2b9a67;
}

.login-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-subtitle {
  margin: 0.45rem 0 1.35rem;
  color: var(--seller-muted);
}

.seller-form-field {
  margin-bottom: 1rem;
}

.seller-form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.seller-form-field .seller-field-hint,
.seller-profile-card__section-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.seller-form-field input.is-readonly,
.seller-form-field input[readonly] {
  background: var(--surface-2, #f5f4f1);
  color: var(--muted);
  cursor: not-allowed;
}

.seller-profile-card {
  margin-bottom: 1.25rem;
}

.seller-profile-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.seller-profile-card__avatar {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.seller-profile-card__name {
  margin: 0;
  font-size: 1.125rem;
}

.seller-profile-card__role {
  margin: 0.25rem 0 0;
  color: var(--seller-muted, var(--muted));
}

.seller-profile-card__section-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.seller-profile-card--password {
  margin-top: 0;
}

.seller-profile-form__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.seller-form-field input,
.seller-form-field textarea,
.seller-form-field select {
  width: 100%;
  border: 1px solid var(--seller-border);
  border-radius: var(--seller-radius);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
}

.report-grid {
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #14161a;
  --ink-2: #2a2d35;
  --muted: #6b6f78;
  --muted-2: #9aa0a8;
  --line: #ececea;
  --line-2: #e3e2df;
  --brand: #e8473a;
  --brand-50: #fdece9;
  --brand-100: #fbd9d3;
  --ok: #1f8a5b;
  --ok-50: #e6f4ec;
  --warn: #c98a1a;
  --warn-50: #fbf2e0;
  --info: #2f5fd1;
  --info-50: #e8eefb;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.report-card {
  min-height: 268px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px -12px rgba(20, 22, 26, 0.08);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.report-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 12px 40px -16px rgba(20, 22, 26, 0.18);
  color: var(--ink);
  transform: translateY(-1px);
}

.report-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.report-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.report-card__icon.icon-brand {
  background: var(--brand-50);
  color: var(--brand);
}

.report-card__icon.icon-info {
  background: var(--info-50);
  color: var(--info);
}

.report-card__icon.icon-ok {
  background: var(--ok-50);
  color: var(--ok);
}

.report-card__pin {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.report-card__pin:hover,
.report-card__pin.is-pinned {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--brand);
}

.report-card__title {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.report-card__sub {
  min-height: 40px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.report-card__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.report-card__metric-value {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.report-card__metric-label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.report-card__spark {
  width: 100%;
  height: 44px;
  display: block;
  margin: 0 0 18px;
}

.report-card__segments {
  display: flex;
  gap: 6px;
  margin: 14px 0 18px;
  align-items: stretch;
  height: 38px;
}

.report-card__segment {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.report-card__segment--ok {
  flex: 7;
  background: linear-gradient(180deg, #e6f4ec, #d2ecdd);
  color: var(--ok);
}

.report-card__segment--warn {
  flex: 2;
  background: linear-gradient(180deg, #fbf2e0, #f5e4bf);
  color: var(--warn);
}

.report-card__segment--brand {
  flex: 1;
  background: linear-gradient(180deg, #fdece9, #fbd9d3);
  color: var(--brand);
}

.report-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.report-card__foot-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.report-card__foot-meta i {
  color: var(--muted-2);
  font-size: 13px;
}

.report-card__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.page-products.page-reports-sales-sku .mb-4 {
  margin-bottom: 1.5rem;
}

.page-products.page-reports-sales-sku .report-range-picker {
  margin-bottom: 1.25rem;
}

.page-products.page-reports-sales-sku .inv-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
  flex-wrap: wrap;
}

.page-products.page-reports-sales-sku .inv-tabs a {
  background: transparent;
  border: 0;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.page-products.page-reports-sales-sku .inv-tabs a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.page-products.page-reports-sales-sku .inv-tabs a.is-on {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.page-products.page-reports-sales-sku .report-date-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.page-products.page-reports-sales-sku .report-date-toolbar__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1 1 auto;
}

.page-products.page-reports-sales-sku .report-date-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.page-products.page-reports-sales-sku .report-date-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products.page-reports-sales-sku .report-date-field input[type="date"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  min-height: 42px;
}

.page-products.page-reports-sales-sku .report-date-field input[type="date"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-products.page-reports-sales-sku .report-table-card {
  padding: 0;
  overflow: hidden;
}

.page-products.page-reports-sales-sku .card__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.page-products.page-reports-sales-sku .card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-products.page-reports-sales-sku .card__sub {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.page-products.page-reports-sales-sku .report-table-scroll {
  overflow-x: auto;
}

.page-products.page-reports-sales-sku .report-sku-table th.right,
.page-products.page-reports-sales-sku .report-sku-table td.right {
  text-align: right;
}

.page-products.page-reports-sales-sku .sku-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--brand-100);
}

.page-products.page-reports-sales-sku .sku-pill i {
  font-size: 11px;
  opacity: 0.6;
}

.page-products.page-reports-inventory-movement .report-movement-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.page-products.page-reports-inventory-movement .report-movement-toolbar .report-filter-toolbar {
  flex: 1 1 420px;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  min-width: 0;
}

.page-products.page-reports-inventory-movement .report-movement-toolbar .report-direction-tabs {
  flex: 0 0 auto;
  margin-left: auto;
  margin-bottom: 0;
}

.page-products.page-reports-inventory-movement .report-filter-toolbar .report-date-field--search {
  flex: 1 1 240px;
  min-width: min(100%, 220px);
  max-width: 420px;
  margin: 0;
}

.page-products.page-reports-inventory-movement .report-filter-toolbar .inv-search {
  position: relative;
  width: 100%;
}

.page-products.page-reports-inventory-movement .report-filter-toolbar .inv-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px 10px 40px;
  font-size: 13.5px;
  color: var(--ink);
  min-height: 42px;
  outline: none;
}

.page-products.page-reports-inventory-movement .report-filter-toolbar .inv-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-products.page-reports-inventory-movement .report-filter-toolbar .inv-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 16px;
  pointer-events: none;
}

.page-products .crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.page-products .crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.page-products .crumbs a:hover {
  color: var(--ink);
}

.page-products .crumbs i {
  font-size: 13px;
  color: var(--muted-2);
}

.page-inventory .mb-4 {
  margin-bottom: 1.5rem;
}

.page-inventory .inv-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-top: 14px;
  margin-bottom: 20px;
  width: fit-content;
  flex-wrap: wrap;
}

.page-inventory .inv-tabs button,
.page-inventory .inv-tabs a {
  background: transparent;
  border: 0;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.page-inventory .inv-tabs button .count,
.page-inventory .inv-tabs a .count {
  font-size: 11px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.page-inventory .inv-tabs button:hover,
.page-inventory .inv-tabs a:hover {
  color: var(--ink);
}

.page-inventory .inv-tabs button.is-on,
.page-inventory .inv-tabs a.is-on {
  background: var(--ink);
  color: #fff;
}

.page-inventory .inv-tabs button.is-on .count,
.page-inventory .inv-tabs a.is-on .count {
  background: #ffffff20;
  color: #fff;
}

.page-inventory .prod__placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
}

.page-inventory-history .inv-history-table td {
  vertical-align: middle;
}

.page-inventory .bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px 10px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px -12px rgba(20, 22, 26, 0.08);
}

.page-inventory .bulk-bar__count {
  font-size: 13.5px;
  font-weight: 600;
}

.page-inventory .bulk-bar__sep {
  width: 1px;
  height: 18px;
  background: #ffffff20;
  margin: 0 6px;
}

.page-inventory .bulk-bar__btn {
  background: #ffffff14;
  border: 1px solid #ffffff20;
  color: #fff;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-inventory .bulk-bar__btn:hover {
  background: #ffffff22;
}

.page-inventory .bulk-bar__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-inventory .bulk-bar__close {
  margin-left: auto;
  color: #c4c7cc;
  background: transparent;
  border: 0;
}

.page-inventory .inv-table-card {
  padding: 0;
  overflow: visible;
}

.page-inventory .inv-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-inventory .inv-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.page-inventory .inv-table thead th:last-child,
.page-inventory .inv-table tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 188px;
  width: 188px;
  background: #fff;
  box-shadow: -8px 0 12px -8px rgba(20, 22, 26, 0.2);
}

.page-inventory .inv-table thead th:last-child {
  background: var(--surface-2);
  z-index: 3;
}

.page-inventory .inv-product-head td:last-child {
  background: #f8f9fb;
}

.page-inventory .inv-table tbody tr.is-dirty td:last-child {
  background: #fff8f1;
}

.page-inventory .inv-table tbody tr.is-dirty:hover td:last-child {
  background: #fff3e3;
}

.page-inventory .inv-single-wh-row.is-dirty td {
  background: #fff8f1;
}

.page-inventory .inv-single-wh-row.is-dirty:hover td {
  background: #fff3e3;
}

.page-inventory .inv-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-inventory .inv-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}

.page-inventory .inv-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-inventory .inv-table tbody tr:hover td {
  background: var(--surface-2);
}

.page-inventory .inv-table tbody tr.is-dirty td {
  background: #fff8f1;
}

.page-inventory .inv-table tbody tr.is-dirty:hover td {
  background: #fff3e3;
}

.page-inventory .inv-single-wh-row td {
  background: #fff;
}

.page-inventory .inv-single-wh-row:hover td {
  background: var(--surface-2);
}

.page-inventory .inv-expand-spacer {
  width: 36px;
  padding: 0;
}

.page-inventory .inv-product-head td {
  background: #f8f9fb;
  border-bottom: 1px solid var(--line-2);
  font-weight: 500;
}

.page-inventory .inv-product-head:hover td {
  background: #f3f4f6;
}

.page-inventory .inv-wh-row td {
  background: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-inventory .inv-ids,
.page-inventory-history .inv-ids,
.page-reports-inventory-movement .inv-ids {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.page-inventory .inv-ids__dsin,
.page-inventory-history .inv-ids__dsin,
.page-reports-inventory-movement .inv-ids__dsin {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.page-inventory .sku-pill--compact,
.page-inventory-history .sku-pill--compact,
.page-reports-inventory-movement .sku-pill--compact {
  max-width: 100%;
  font-size: 11.5px;
  padding: 3px 8px;
}

.page-inventory .wh-pill--compact {
  font-size: 12px;
  padding: 4px 9px;
}

.page-inventory .stock-cell__bar--compact {
  margin-top: 4px;
}

.page-inventory .inv-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}

.page-inventory .inv-expand:hover {
  background: var(--surface-2);
}

.page-inventory .wh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12.5px;
  font-weight: 600;
}

.page-inventory .inv-total-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-inventory .inv-wh-count {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-2);
}

.page-inventory .inv-total-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
}

.page-inventory .id-cell {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.page-inventory .sku-pill,
.page-inventory-history .sku-pill,
.page-reports-inventory-movement .sku-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--brand-100);
}

.page-inventory .sku-pill i,
.page-inventory-history .sku-pill i,
.page-reports-inventory-movement .sku-pill i {
  font-size: 11px;
  opacity: 0.6;
}

.page-inventory .sku-pill .copy,
.page-inventory-history .sku-pill .copy,
.page-reports-inventory-movement .sku-pill .copy {
  opacity: 0;
  transition: opacity 0.15s;
  cursor: pointer;
  color: var(--brand);
  font-size: 11px;
}

.page-inventory .inv-table tr:hover .sku-pill .copy,
.page-inventory-history .inv-history-table tr:hover .sku-pill .copy,
.page-reports-inventory-movement .inv-history-table tr:hover .sku-pill .copy {
  opacity: 1;
}

.page-inventory .prod {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
}

.page-inventory .inv-col-product {
  width: 56px;
}

.page-inventory .prod-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  line-height: 0;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.page-inventory .prod-thumb-link:hover {
  opacity: 0.92;
  box-shadow: 0 0 0 2px var(--brand-50);
}

.page-inventory .prod-thumb-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.page-inventory .prod--image-only {
  max-width: none;
}

.page-inventory .prod__image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #f2efe9, #e8e3d8);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04);
}

.page-inventory .prod__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2efe9, #e8e3d8);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 17px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.page-inventory .prod__name {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.page-inventory .prod__meta {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 3px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-inventory .prod__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-inventory .stock-cell {
  min-width: 180px;
}

.page-inventory .stock-cell__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.page-inventory .stock-cell__num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ok);
}

.page-inventory .stock-cell__num.is-low {
  color: var(--warn);
}

.page-inventory .stock-cell__num.is-out {
  color: var(--brand);
}

.page-inventory .stock-cell__cap {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.page-inventory .stock-cell__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ok-50);
  color: var(--ok);
}

.page-inventory .stock-cell__tag.is-low {
  background: var(--warn-50);
  color: var(--warn);
}

.page-inventory .stock-cell__tag.is-out {
  background: var(--brand-50);
  color: var(--brand);
}

.page-inventory .stock-cell__bar {
  width: 160px;
  height: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.page-inventory .stock-cell__bar > span {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: 999px;
}

.page-inventory .stock-cell__bar > span.is-low {
  background: var(--warn);
}

.page-inventory .stock-cell__bar > span.is-out {
  background: var(--brand);
}

.page-inventory .stepper {
  display: inline-flex;
  align-items: center;
  flex: 0 0 132px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.page-inventory .stepper:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-inventory .stepper button {
  width: 38px;
  height: 38px;
  background: var(--surface-2);
  border: 0;
  color: var(--ink-2);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.page-inventory .stepper button:first-child {
  border-right: 1px solid var(--line);
}

.page-inventory .stepper button:last-child {
  border-left: 1px solid var(--line);
}

.page-inventory .stepper button:hover {
  background: #f0eee9;
  color: var(--ink);
}

.page-inventory .stepper input {
  flex: 1;
  width: 100%;
  border: 0;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  background: transparent;
  font-variant-numeric: tabular-nums;
  padding: 0;
  height: 38px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.page-inventory .stepper input::-webkit-outer-spin-button,
.page-inventory .stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.page-inventory .delta-hint {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  height: 14px;
}

.page-inventory .delta-hint.is-up {
  color: var(--ok);
}

.page-inventory .delta-hint.is-down {
  color: var(--brand);
}

.page-inventory .inv-line-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.page-inventory .inv-line-actions__qty {
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
}

.page-inventory .inv-line-actions__btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}

.page-inventory .inv-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.page-inventory .inv-head-actions__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.page-inventory .inv-head-actions__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.page-inventory .inv-save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.4);
}

.page-inventory .inv-save-bar[hidden] {
  display: none !important;
}

.page-inventory .inv-save-bar__msg {
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-inventory .inv-save-bar__msg i {
  color: #ff8a7e;
  flex-shrink: 0;
}

.page-inventory .inv-save-bar__btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.page-inventory .inv-save-bar__discard {
  background: transparent;
  border: 1px solid #ffffff20;
  color: #fff;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.page-inventory .inv-save-bar__discard:hover {
  background: #ffffff10;
}

.page-inventory .inv-save-bar__save {
  background: #fff;
  color: var(--ink);
  border: 0;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.page-inventory .inv-save-bar__save:hover {
  background: #f1eee9;
}

.page-inventory .inv-save-bar__save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .page-inventory .inv-save-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 8px;
  }

  .page-inventory .inv-save-bar__btns {
    margin-left: 0;
    justify-content: flex-end;
  }
}

.page-inventory .icon-btn-sm {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.page-inventory .icon-btn-sm:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.page-inventory .inv-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-inventory .inv-search {
  position: relative;
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}

.page-inventory .inv-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 54px 11px 40px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.page-inventory .inv-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-inventory .inv-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 16px;
}

.page-inventory .inv-search kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
}

.page-inventory .kpi-link {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.page-inventory .kpi-link:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}

.page-inventory .kpi__chev {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--muted-2);
  font-size: 14px;
}

.page-inventory .tip {
  background: linear-gradient(135deg, #1a1d23 0%, #0d0f12 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.page-inventory .tip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(232, 71, 58, 0.2), transparent 55%);
  pointer-events: none;
}

.page-inventory .tip__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 71, 58, 0.18);
  color: #ff8a7e;
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
  position: relative;
}

.page-inventory .tip__title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  position: relative;
}

.page-inventory .tip__sub {
  font-size: 13px;
  color: #b5b8be;
  margin-top: 2px;
  position: relative;
}

.page-inventory .tip__cta {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.page-inventory .tip__close {
  background: transparent;
  border: 0;
  color: #7f848e;
  position: relative;
}

.page-inventory .inv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

.page-inventory .inv-foot__rows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-inventory .inv-foot select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 28px 5px 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.page-batches {
  --violet: #6a45c9;
  --violet-50: #efe9fb;
}

.page-batches .batches-card {
  padding: 0;
  overflow: visible;
}

.page-batches .batch-table tbody tr {
  position: relative;
  z-index: 0;
}

.page-batches .batch-table tbody tr:has(.batch-row-menu.is-open) {
  z-index: 30;
}

.page-batches .batch-table tbody td:last-child {
  overflow: visible;
}

.page-batches .card__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-batches .card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.page-batches .card__sub {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.page-batches .batch-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.page-batches .batch-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-batches .batch-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}

.page-batches .batch-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-batches .batch-table tbody tr:hover td {
  background: var(--surface-2);
}

.page-batches .batch-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-batches .batch-id__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  text-decoration: none;
}

.page-batches a.batch-id__num:hover {
  background: #f8fafc;
  color: var(--ink);
}

.page-batches .batch-table__empty {
  color: var(--muted);
  padding: 1.5rem 1rem;
  text-align: center;
}

.page-batches .batch-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-batches .batch-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-batches .batch-status.is-new {
  color: var(--brand);
  background: var(--brand-50);
}

.page-batches .batch-status.is-ready {
  color: var(--info);
  background: var(--info-50);
}

.page-batches .batch-status.is-packed {
  color: var(--violet);
  background: var(--violet-50);
}

.page-batches .batch-status.is-dispatched {
  color: var(--warn);
  background: var(--warn-50);
}

.page-batches .batch-status.is-delivered {
  color: var(--ok);
  background: var(--ok-50);
}

.page-batches .orders-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-batches .orders-count__num {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-batches .orders-count__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.page-batches .orders-count__sub {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 1px;
}

.page-batches .ts {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.page-batches .printlog__txt {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}

.page-batches .printlog__txt strong {
  color: var(--ink-2);
  font-weight: 600;
}

.page-batches .printlog__none {
  font-size: 12.5px;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-batches .batch-print-btn {
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-batches .row-actions-end {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.page-batches .icon-btn-sm {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.page-batches .icon-btn-sm:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.page-batches .batch-row-menu {
  position: relative;
}

.page-batches .batch-row-menu__panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 240px;
  max-width: min(280px, 92vw);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.35);
}

.page-batches .batch-row-menu.is-open-up .batch-row-menu__panel {
  top: auto;
  bottom: calc(100% + 6px);
}

.page-batches .batch-row-menu.is-open .batch-row-menu__panel {
  display: block;
}

.page-batches .batch-row-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.page-batches .batch-row-menu__item:hover {
  background: var(--surface-2);
}

.page-batches .batch-row-menu__hint {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.batch-advance-modal__errors {
  padding-top: 0;
}

.batch-advance-modal__error-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #b91c1c;
  font-size: 13px;
}

body.batch-advance-open {
  overflow: hidden;
}

.page-batches .batch-foot {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

.page-finance {
  --violet: #6a45c9;
  --violet-50: #efe9fb;
}

.page-finance .page-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-finance .finance-range-form {
  margin: 0;
  position: relative;
}

.page-finance .finance-range-form .order-date-range {
  position: relative;
}

.page-finance .finance-range-form .order-date-range__panel {
  right: 0;
  left: auto;
  z-index: 50;
  width: min(540px, 96vw);
}

.page-finance .order-date-range__trigger--ghost {
  min-width: 10.5rem;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
  font-weight: 500;
}

.page-finance .order-date-range__trigger--ghost:hover,
.page-finance .order-date-range.is-open .order-date-range__trigger--ghost {
  border-color: var(--line-2);
  background: var(--surface-2);
  box-shadow: none;
}

.page-finance .finance-range-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.page-finance .finance-range-select__face {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.page-finance .finance-range-select__label {
  font-weight: 500;
  color: var(--ink);
}

.page-finance .finance-range-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.page-finance .finance-range-select select:focus,
.page-finance .finance-range-select select:focus-visible {
  outline: none;
  box-shadow: none;
}

.page-finance .finance-range-select:focus-within {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.page-finance .finance-range-select__chev {
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

.page-finance .finance-date-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: -8px 0 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.page-finance .finance-date-toolbar__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  flex: 1 1 auto;
}

.page-finance .finance-date-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.page-finance .finance-date-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-finance .finance-date-field input[type="date"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  min-height: 42px;
}

.page-finance .finance-date-field input[type="date"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-finance .fin-subnav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-finance .fin-subnav::-webkit-scrollbar {
  display: none;
}

.page-finance .fin-subnav button,
.page-finance .fin-subnav a {
  background: transparent;
  border: 0;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}

.page-finance .fin-subnav button:hover,
.page-finance .fin-subnav a:hover {
  color: var(--ink);
}

.page-finance .fin-subnav button.is-on,
.page-finance .fin-subnav a.is-on {
  color: var(--ink);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.page-finance .fin-subnav button .count,
.page-finance .fin-subnav a .count {
  font-size: 11px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.page-finance .fin-subnav button.is-on .count,
.page-finance .fin-subnav a.is-on .count {
  background: var(--brand-50);
  color: var(--brand);
}

.page-finance .fin-pane {
  display: none;
}

.page-finance .fin-pane.is-on {
  display: block;
}

.page-finance .balance-hero {
  background: radial-gradient(120% 90% at 100% 0%, rgba(232, 71, 58, 0.06), transparent 55%), linear-gradient(135deg, #ffffff 0%, #fbfaf8 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 1px 0 rgba(20, 22, 26, 0.03);
  border-radius: 18px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.page-finance .balance-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-finance .balance-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 71, 58, 0.18);
}

.page-finance .balance-hero__amount {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.page-finance .balance-hero__amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.page-finance .balance-hero__delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-50);
  padding: 3px 9px;
  border-radius: 999px;
}

.page-finance .balance-hero__row {
  display: flex;
  gap: 28px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.page-finance .bh-stat__label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-finance .bh-stat__value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-finance .bh-stat__value.is-credit {
  color: var(--ok);
}

.page-finance .bh-stat__value.is-debit {
  color: var(--brand);
}

.page-finance .bh-actions {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.page-finance .bh-actions__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.page-finance .bh-actions__btn:hover {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}

.page-finance .bh-actions__btn.is-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-finance .bh-actions__btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

.page-finance .bh-actions__btn.is-primary .bh-actions__btn-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.page-finance .bh-actions__btn-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.page-finance .bh-actions__btn-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}

.page-finance .bh-actions__btn.is-primary .bh-actions__btn-sub,
.page-finance .bh-actions__btn.is-primary .bh-actions__btn-chev {
  color: #ffffffcc;
}

.page-finance .bh-actions__btn-chev {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 13px;
}

.page-finance .wallet-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.page-finance .wallet-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-finance .wallet-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.page-finance .wkpi-credit { background: var(--ok-50); color: var(--ok); }
.page-finance .wkpi-debit { background: var(--brand-50); color: var(--brand); }
.page-finance .wkpi-info { background: var(--info-50); color: var(--info); }
.page-finance .wkpi-warn { background: var(--warn-50); color: var(--warn); }

.page-finance .wallet-kpi__label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.page-finance .wallet-kpi__value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.page-finance .wallet-kpi__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

.page-reports-settlement-summary .settlement-summary__segments {
  margin-bottom: 22px;
}

.page-reports-settlement-summary .settlement-summary__card {
  margin-bottom: 22px;
}

.page-reports-settlement-summary .settlement-summary__card:last-child {
  margin-bottom: 0;
}

.page-reports-settlement-summary .settlement-summary__empty {
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
}

.page-finance .finance-card {
  padding: 0;
  overflow: hidden;
}

.page-finance .card__head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.page-finance .card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-finance .card__sub {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.page-finance .finance-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-finance .fin-toolbar__search {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
}

.page-finance .fin-toolbar__search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}

.page-finance .fin-toolbar__search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-finance .fin-toolbar__search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 15px;
}

.page-finance .txn-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.page-finance .txn-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-finance .txn-table thead th.right,
.page-finance .txn-table td.right {
  text-align: right;
}

.page-finance .txn-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}

.page-finance .txn-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-finance .txn-table tbody tr:hover td {
  background: var(--surface-2);
}

.page-finance .txn-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.page-finance .txn-date {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.page-finance .txn-date small {
  display: block;
  color: var(--muted-2);
  font-size: 11.5px;
  margin-top: 2px;
}

.page-finance .amt {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page-finance .amt.zero {
  color: var(--muted-2);
  font-weight: 500;
}

.page-finance .amt.credit { color: var(--ok); }
.page-finance .amt.debit { color: var(--brand); }
.page-finance .amt.balance { color: var(--ink); }

.page-finance .narr {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-finance .narr__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.page-finance .ni-rto { background: #e6f4ec; color: var(--ok); }
.page-finance .ni-delivered { background: var(--info-50); color: var(--info); }
.page-finance .ni-withdraw { background: var(--brand-50); color: var(--brand); }
.page-finance .ni-fee { background: var(--warn-50); color: var(--warn); }
.page-finance .ni-credit { background: var(--violet-50); color: var(--violet); }

.page-finance .narr__title {
  font-weight: 600;
  color: var(--ink);
  font-size: 13.5px;
}

.page-finance .narr__sub {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

.page-finance .finance-foot {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

.page-finance .finance-card .tbl-foot {
  background: var(--surface);
}

.page-finance .finance-type-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  min-height: 38px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
}

.page-finance .finance-type-select select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
}

.page-finance .settle-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.page-finance .next-settle {
  background: linear-gradient(135deg, var(--brand-50), #fff);
  border: 1px solid var(--brand-100);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.page-finance .next-settle__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}

.page-finance .next-settle__label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  font-weight: 600;
  margin-bottom: 4px;
}

.page-finance .next-settle__amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}

.page-finance .next-settle__sub {
  font-size: 13.5px;
  color: var(--ink-2);
}

.page-finance .next-settle__cta {
  margin-left: auto;
}

.page-finance .btn-ghost.btn-ghost--sm {
  padding: 6px 12px;
  font-size: 12.5px;
  gap: 6px;
}

.page-finance .settle-breakdown-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
}

.page-finance .settle-breakdown-table {
  margin-top: 0;
}

.page-finance .settle-breakdown-table tfoot td {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.page-finance .settle-breakdown-empty {
  margin: 0;
  color: var(--ink-2);
}

.page-finance .settlement-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.page-finance .settlement-detail__head {
  padding: 20px 22px;
  align-items: flex-start;
  gap: 16px;
}

.page-finance .settlement-detail__head-copy {
  min-width: 0;
}

.page-finance .settlement-detail__head .cycle-status {
  flex-shrink: 0;
  margin-top: 2px;
}

.page-finance .settlement-detail__back {
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}

.page-finance .settlement-detail__body {
  padding: 20px 22px 22px;
}

.page-finance .settlement-detail__kpis {
  margin-bottom: 0;
  gap: 16px;
}

.page-finance .settlement-detail__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.page-finance .settlement-detail__table-wrap {
  padding-bottom: 6px;
}

.page-finance .settlement-detail__table thead th,
.page-finance .settlement-detail__table tbody td {
  padding-left: 22px;
  padding-right: 22px;
}

.page-finance .settlement-detail__table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.page-finance .settlement-detail__table tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.page-finance .settlement-detail__empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .page-finance .settlement-detail__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-finance .settlement-detail__head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-finance .settlement-detail__head .cycle-status,
  .page-finance .settlement-detail__back {
    align-self: flex-start;
    margin-top: 0;
  }

  .page-finance .settlement-detail__body {
    padding: 16px;
  }

  .page-finance .settlement-detail__kpis {
    grid-template-columns: 1fr;
  }

  .page-finance .settlement-detail__table-wrap {
    overflow-x: auto;
  }

  .page-finance .settlement-detail__table {
    min-width: 760px;
  }
}

.page-finance .bank-card {
  background: linear-gradient(135deg, #1a1d23 0%, #0d0f12 100%);
  color: #fff;
  border-radius: 16px;
  padding: 22px;
}

.page-finance .bank-card__chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0c869, #a87b22);
  margin-bottom: 14px;
}

.page-finance .bank-card__bank {
  font-size: 11.5px;
  color: #9aa0a8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.page-finance .bank-card__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 6px 0 14px;
}

.page-finance .bank-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.page-finance .bank-card__name {
  font-size: 13px;
  font-weight: 600;
}

.page-finance .bank-card__role {
  font-size: 11.5px;
  color: #9aa0a8;
}

.page-finance .bank-card__edit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-finance .cycle-status,
.page-finance .doc-tag,
.page-finance .sales-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.page-finance .cycle-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-finance .cycle-status.paid,
.page-finance .sales-chip {
  color: var(--ok);
  background: var(--ok-50);
}

.page-finance .cycle-status.scheduled,
.page-finance .doc-tag.is-promo {
  color: var(--info);
  background: var(--info-50);
}

.page-finance .cycle-status.hold,
.page-finance .doc-tag.is-rto,
.page-finance .sales-chip.is-pending {
  color: var(--warn);
  background: var(--warn-50);
}

.page-finance .cycle-status.processing,
.page-finance .doc-tag.is-adjust,
.page-finance .sales-chip.is-return {
  color: var(--violet);
  background: var(--violet-50);
}

.page-finance .doc-tag.is-return,
.page-finance .sales-chip.is-rto {
  color: var(--brand);
  background: var(--brand-50);
}

.page-finance .cn-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-help {
  --violet: #6a45c9;
  --violet-50: #efe9fb;
}

.page-help .help-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.page-help .help-kpi__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-help .help-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.page-help .hk-open { background: var(--brand-50); color: var(--brand); }
.page-help .hk-review { background: var(--info-50); color: var(--info); }
.page-help .hk-resolved { background: var(--ok-50); color: var(--ok); }
.page-help .hk-time { background: var(--warn-50); color: var(--warn); }

.page-help .help-kpi__label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.page-help .help-kpi__value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.page-help .help-kpi__delta {
  font-size: 11.5px;
  color: var(--ok);
  margin-left: 8px;
  font-weight: 600;
}

.page-help .help-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}

.page-help .help-card {
  padding: 0;
  overflow: hidden;
}

.page-help .card__head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.page-help .card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-help .card__sub {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.page-help .ticket-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
}

.page-help .ticket-tabs a {
  background: transparent;
  border: 0;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.page-help .ticket-tabs a:hover {
  color: var(--ink);
}

.page-help .ticket-tabs a.is-on {
  background: var(--ink);
  color: #fff;
}

.page-help .ticket-tabs a .count {
  font-size: 10.5px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}

.page-help .ticket-tabs a.is-on .count {
  background: #ffffff20;
  color: #fff;
}

.page-help .ticket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.page-help .ticket-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-help .ticket-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}

.page-help .ticket-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-help .ticket-table tbody tr:hover td {
  background: var(--surface-2);
}

.page-help .tck-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-help .tck-id small {
  display: block;
  color: var(--muted-2);
  font-weight: 500;
  font-size: 11px;
  margin-top: 2px;
}

.page-help .tck-subj__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-help .ticket-link {
  color: inherit;
  text-decoration: none;
}

.page-help .tck-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.page-help .tck-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-help .tck-status.open { color: var(--brand); background: var(--brand-50); }
.page-help .tck-status.review { color: var(--info); background: var(--info-50); }
.page-help .tck-status.awaiting { color: var(--warn); background: var(--warn-50); }
.page-help .tck-status.resolved { color: var(--ok); background: var(--ok-50); }
.page-help .tck-status.closed { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }

.page-help .tck-prio {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-help .tck-prio.high { background: var(--brand-50); color: var(--brand); }
.page-help .tck-prio.med { background: var(--warn-50); color: var(--warn); }
.page-help .tck-prio.low { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

.page-help .tck-agent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-help .tck-agent__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.page-help .tck-agent__avatar.is-brand { background: var(--brand); }
.page-help .tck-agent__avatar.is-violet { background: var(--violet); }
.page-help .tck-agent__avatar.is-ok { background: var(--ok); }
.page-help .tck-agent__avatar.is-unassigned { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--muted-2); }

.page-help .tck-agent__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.page-help .tck-agent__name small,
.page-help .txn-date small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}

.page-help .txn-date {
  font-size: 13px;
  color: var(--ink-2);
}

.page-help .txn-date small.is-warn {
  color: var(--warn);
  font-weight: 600;
}

.page-help .help-foot {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

.page-help .side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.page-help .side-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.page-help .side-card__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
}

.page-help .channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}

.page-help .channel:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--ink);
}

.page-help .channel__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.page-help .ch-chat { background: var(--brand-50); color: var(--brand); }
.page-help .ch-call { background: var(--ok-50); color: var(--ok); }
.page-help .ch-mail { background: var(--info-50); color: var(--info); }
.page-help .ch-wa { background: #e6f4ec; color: #1f8a5b; }

.page-help .channel__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-help .channel__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.page-help .channel__status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-50);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-help .channel__status.is-off {
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.page-help .channel__chev {
  margin-left: auto;
  color: var(--muted-2);
}

.page-help .faq-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.page-help .faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-help .faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  gap: 12px;
}

.page-help .faq-item__q:hover {
  color: var(--brand);
}

.page-help .faq-item__q i {
  color: var(--muted-2);
  font-size: 14px;
}

.page-help .side-card--urgent {
  background: linear-gradient(135deg, #1a1d23 0%, #0d0f12 100%);
  color: #fff;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.page-help .side-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(232, 71, 58, 0.2), transparent 55%);
  pointer-events: none;
}

.page-help .side-card__content {
  position: relative;
}

.page-help .side-card--urgent .side-card__title {
  color: #fff;
}

.page-help .side-card--urgent .side-card__sub {
  color: #b5b8be;
}

.page-help .side-card--urgent .btn-primary {
  width: 100%;
  justify-content: center;
}

.page-create-ticket {
  --violet: #6a45c9;
  --violet-50: #efe9fb;
}

.page-create-ticket .ct-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.page-create-ticket .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.page-create-ticket .form-card__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.page-create-ticket .form-card__head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.page-create-ticket .form-card__head p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.page-create-ticket .form-card__body {
  padding: 22px 24px 24px;
}

.page-create-ticket .field {
  margin-bottom: 18px;
}

.page-create-ticket .field:last-child {
  margin-bottom: 0;
}

.page-create-ticket .field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.page-create-ticket .field__label small {
  color: var(--muted-2);
  font-weight: 500;
  margin-left: 6px;
}

.page-create-ticket .field__hint {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 6px;
}

.page-create-ticket .field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.page-create-ticket .input,
.page-create-ticket .textarea,
.page-create-ticket .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.page-create-ticket .textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.page-create-ticket .input:focus,
.page-create-ticket .textarea:focus,
.page-create-ticket .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-create-ticket .select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239aa0a8'><path d='M3.5 6 8 10.5 12.5 6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.page-create-ticket .cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.page-create-ticket .cat-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.page-create-ticket .cat-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-create-ticket .cat-tile:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.page-create-ticket .cat-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.page-create-ticket .ct-orders { background: var(--brand-50); color: var(--brand); }
.page-create-ticket .ct-payments { background: var(--ok-50); color: var(--ok); }
.page-create-ticket .ct-catalog { background: var(--info-50); color: var(--info); }
.page-create-ticket .ct-account { background: var(--violet-50); color: var(--violet); }

.page-create-ticket .cat-tile__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-create-ticket .cat-tile__sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}

.page-create-ticket .cat-tile.is-on {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(232, 71, 58, 0.1);
}

.page-create-ticket .cat-tile.is-on .cat-tile__title {
  color: var(--brand-700);
}

.page-create-ticket .prio-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-create-ticket .prio-pill {
  position: relative;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-create-ticket .prio-pill input {
  position: absolute;
  opacity: 0;
}

.page-create-ticket .prio-pill:hover {
  background: var(--surface-2);
}

.page-create-ticket .prio-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.page-create-ticket .prio-pill.is-low .dot { background: var(--muted); }
.page-create-ticket .prio-pill.is-med .dot { background: var(--warn); }
.page-create-ticket .prio-pill.is-high .dot { background: var(--brand); }

.page-create-ticket .prio-pill.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.page-create-ticket .prio-pill.is-on .dot {
  background: #fff;
}

.page-create-ticket .drop {
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: block;
}

.page-create-ticket .drop:hover {
  border-color: var(--brand);
  background: #fff8f6;
}

.page-create-ticket .drop__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--muted);
  margin: 0 auto 10px;
}

.page-create-ticket .drop__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-create-ticket .drop__title strong {
  color: var(--brand);
}

.page-create-ticket .drop__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.page-create-ticket .attach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.page-create-ticket .attach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.page-create-ticket .attach__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.page-create-ticket .att-img { background: var(--info-50); color: var(--info); }
.page-create-ticket .att-pdf { background: var(--brand-50); color: var(--brand); }

.page-create-ticket .attach__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.page-create-ticket .attach__meta {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 1px;
}

.page-create-ticket .attach__del {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.page-create-ticket .attach__del:hover {
  color: var(--brand);
  border-color: var(--brand-100);
  background: var(--brand-50);
}

.page-create-ticket .form-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-create-ticket .form-foot__hint {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-create-ticket .form-foot__btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.page-create-ticket .form-foot__btns .btn-ghost,
.page-create-ticket .form-foot__btns .btn-primary {
  min-width: 118px;
  justify-content: center;
  white-space: nowrap;
}

.page-create-ticket .side-tip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.page-create-ticket .side-tip__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-create-ticket .side-tip__title i {
  color: var(--brand);
}

.page-create-ticket .side-tip__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.page-create-ticket .help-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-create-ticket .help-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-create-ticket .help-list a:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--brand);
}

.page-create-ticket .help-list a i:last-child {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 12px;
}

.page-create-ticket .sla-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.page-create-ticket .sla-cell {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.page-create-ticket .sla-cell__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.page-create-ticket .sla-cell__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.page-create-ticket .preview-card {
  background: linear-gradient(135deg, #1a1d23 0%, #0d0f12 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.page-create-ticket .preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(232, 71, 58, 0.18), transparent 55%);
  pointer-events: none;
}

.page-create-ticket .preview-card__head,
.page-create-ticket .preview-card__title,
.page-create-ticket .preview-card__rows {
  position: relative;
}

.page-create-ticket .preview-card__head {
  font-size: 11px;
  color: #ff8a7e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-create-ticket .preview-card__title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.page-create-ticket .preview-card__rows {
  font-size: 12.5px;
  color: #b5b8be;
  line-height: 1.6;
}

.page-create-ticket .preview-card__rows strong {
  color: #fff;
  font-weight: 600;
}

.page-ticket-view {
  --violet: #6a45c9;
  --violet-50: #efe9fb;
}

.page-ticket-view .ticket-view-head {
  margin-bottom: 18px;
}

.page-ticket-view .tv-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: start;
}

.page-ticket-view .tv-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 1px 0 rgba(20, 22, 26, 0.03);
}

.page-ticket-view .tv-banner__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.page-ticket-view .tv-banner__id {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 3px 9px;
  border-radius: 999px;
}

.page-ticket-view .tv-banner__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.page-ticket-view .tv-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.page-ticket-view .tv-banner__meta-cell .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.page-ticket-view .tv-banner__meta-cell .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-ticket-view .is-ok {
  color: var(--ok);
}

.page-ticket-view .tck-status,
.page-ticket-view .tck-prio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.page-ticket-view .tck-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-ticket-view .tck-status.review {
  color: var(--info);
  background: var(--info-50);
}

.page-ticket-view .tck-status.open {
  color: var(--brand);
  background: var(--brand-50);
}

.page-ticket-view .tck-status.awaiting {
  color: var(--warn);
  background: var(--warn-50);
}

.page-ticket-view .tck-status.resolved {
  color: var(--ok);
  background: var(--ok-50);
}

.page-ticket-view .tck-status.closed {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.page-ticket-view .tck-prio.high {
  background: var(--brand-50);
  color: var(--brand);
}

.page-ticket-view .tck-prio.med {
  background: var(--warn-50);
  color: var(--warn);
}

.page-ticket-view .tck-prio.low {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.page-ticket-view .conv-card,
.page-ticket-view .ticket-side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.page-ticket-view .conv-card__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-ticket-view .conv-card__head h2 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.page-ticket-view .conv-card__head .sub {
  font-size: 12.5px;
  color: var(--muted);
}

.page-ticket-view .thread {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-ticket-view .msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.page-ticket-view .msg__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.page-ticket-view .msg__avatar.is-brand {
  background: var(--brand);
}

.page-ticket-view .msg__bubble {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.page-ticket-view .msg.is-mine .msg__bubble {
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.page-ticket-view .msg__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.page-ticket-view .msg__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-ticket-view .msg__role {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.page-ticket-view .msg__role.is-agent {
  background: var(--info-50);
  color: var(--info);
  border-color: transparent;
}

.page-ticket-view .msg__role.is-seller {
  background: var(--brand-50);
  color: var(--brand);
  border-color: transparent;
}

.page-ticket-view .msg__time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted-2);
}

.page-ticket-view .msg__body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

.page-ticket-view .msg__body p {
  margin: 0 0 8px;
}

.page-ticket-view .msg__body p:last-child {
  margin-bottom: 0;
}

.page-ticket-view .msg__body strong {
  color: var(--ink);
  font-weight: 600;
}

.page-ticket-view .msg__attach {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-ticket-view .msg__attach a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
}

.page-ticket-view .msg__attach a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.page-ticket-view .composer {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  background: var(--surface-2);
}

.page-ticket-view .composer__tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 10px;
}

.page-ticket-view .composer__tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-ticket-view .composer__tab.is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.page-ticket-view .composer__box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.page-ticket-view .composer__box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-ticket-view .composer textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
  background: transparent;
  padding: 6px 8px;
}

.page-ticket-view .composer__bar {
  display: flex;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.page-ticket-view .composer__icons {
  display: flex;
  gap: 4px;
}

.page-ticket-view .composer__icons button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

.page-ticket-view .composer__icons button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.page-ticket-view .composer__send {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.page-ticket-view .ticket-side-card {
  padding: 18px 20px;
  margin-bottom: 16px;
}

.page-ticket-view .side-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.page-ticket-view .dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.page-ticket-view .dl-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-ticket-view .dl-row__label {
  color: var(--muted);
}

.page-ticket-view .dl-row__val {
  color: var(--ink-2);
  font-weight: 500;
  text-align: right;
}

.page-ticket-view .agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.page-ticket-view .agent-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.page-ticket-view .agent-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-ticket-view .agent-card__role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.page-ticket-view .order-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}

.page-ticket-view .order-mini__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--info-50);
  color: var(--info);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.page-ticket-view .order-mini__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-ticket-view .order-mini__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  font-family: "JetBrains Mono", monospace;
}

.page-ticket-view .order-mini__chev {
  margin-left: auto;
  color: var(--muted-2);
}

.page-settings {
  --violet: #6a45c9;
  --violet-50: #efe9fb;
}

.page-settings .set-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.page-settings .set-nav {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-settings .set-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.page-settings .set-nav a i {
  color: var(--muted-2);
  font-size: 15px;
  width: 18px;
}

.page-settings .set-nav a:hover,
.page-settings .set-nav a.is-on {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.page-settings .set-nav a.is-on {
  font-weight: 600;
}

.page-settings .set-nav a.is-on i {
  color: var(--brand);
}

.page-settings .set-nav__group {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  padding: 14px 12px 6px;
}

.page-settings .sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.page-settings .sec__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.page-settings .sec__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.page-settings .sec-business {
  background: var(--brand-50);
  color: var(--brand);
}

.page-settings .sec-contact {
  background: var(--info-50);
  color: var(--info);
}

.page-settings .sec-address {
  background: var(--violet-50);
  color: var(--violet);
}

.page-settings .sec-bank {
  background: var(--ok-50);
  color: var(--ok);
}

.page-settings .sec-prefs {
  background: var(--warn-50);
  color: var(--warn);
}

.page-settings .sec__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.page-settings .sec__sub {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 0;
}

.page-settings .sec__verified {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ok-50);
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.page-settings .sec__verified.is-pending {
  background: var(--warn-50);
  color: var(--warn);
}

.page-settings .sec__body {
  padding: 22px;
}

.page-settings .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.page-settings .field {
  display: flex;
  flex-direction: column;
}

.page-settings .field.col-span-2 {
  grid-column: span 2;
}

.page-settings .field__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-settings .field__label .req {
  color: var(--brand);
  font-weight: 700;
}

.page-settings .field__label .opt {
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.page-settings .field__hint {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 6px;
}

.page-settings .field__hint.is-err {
  color: var(--brand);
}

.page-settings .field__hint.is-ok {
  color: var(--ok);
}

.page-settings .pickup-pin-field {
  margin-top: 0.25rem;
}

.page-settings .pickup-pin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.page-settings .pickup-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-2);
}

.page-settings .pickup-pin-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.page-settings .pickup-pin-coords {
  font-size: 0.8rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.page-settings .pickup-pin-map {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #e5e7eb;
  z-index: 1;
}

.page-settings .pickup-pin-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.page-settings .input,
.page-settings .textarea,
.page-settings .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.page-settings .input.is-mono,
.page-settings .input-group input.is-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.page-settings .input:focus,
.page-settings .textarea:focus,
.page-settings .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-settings .select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239aa0a8'><path d='M3.5 6 8 10.5 12.5 6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.page-settings .input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.page-settings .input-group:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-settings .input-group__addon {
  padding: 0 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  border-right: 1px solid var(--line);
}

.page-settings .input-group input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}

.page-settings .input-group__verify {
  border: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  border-left: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.page-settings .input-group__verify:hover {
  background: var(--brand-50);
}

.page-settings .logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-settings .logo-row__avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 16px -8px rgba(232, 71, 58, 0.5);
}

.page-settings .logo-row__copy {
  flex: 1;
}

.page-settings .logo-row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-settings .logo-row__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.page-settings .logo-row__btns {
  display: flex;
  gap: 8px;
}

.page-settings .cheque-drop {
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  display: block;
}

.page-settings .cheque-drop__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  margin: 0 auto 8px;
}

.page-settings .cheque-drop__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-settings .cheque-drop__title strong {
  color: var(--brand);
}

.page-settings .cheque-drop__sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

.page-settings .bank-preview {
  background: linear-gradient(135deg, #14161a 0%, #1c1f25 100%);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  margin-top: 18px;
}

.page-settings .bank-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(232, 71, 58, 0.18), transparent 55%);
  pointer-events: none;
}

.page-settings .bank-preview__chip,
.page-settings .bank-preview__bank,
.page-settings .bank-preview__num,
.page-settings .bank-preview__foot {
  position: relative;
}

.page-settings .bank-preview__chip {
  width: 32px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f0c869, #a87b22);
  margin-bottom: 12px;
}

.page-settings .bank-preview__bank {
  font-size: 11px;
  color: #9aa0a8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.page-settings .bank-preview__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 4px 0 12px;
}

.page-settings .bank-preview__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.page-settings .bank-preview__name {
  font-size: 12.5px;
  font-weight: 600;
}

.page-settings .bank-preview__role {
  font-size: 11px;
  color: #9aa0a8;
}

.page-settings .bank-preview__ifsc {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #c4c7cc;
}

.page-settings .prefs-fields {
  margin-bottom: 20px;
}

.page-settings .toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.page-settings .toggle-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-settings .toggle-row__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

.page-settings .toggle-row__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-settings .toggle-row__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

.page-settings .toggle-row__switch {
  margin-left: auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
  border: 0;
  padding: 0;
}

.page-settings .toggle-row__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.page-settings .toggle-row__switch.is-on {
  background: var(--brand);
}

.page-settings .toggle-row__switch.is-on::after {
  transform: translateX(16px);
}

.page-settings .save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.4);
}

.page-settings .save-bar__msg {
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-settings .save-bar__msg i {
  color: #ff8a7e;
}

.page-settings .save-bar__btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.page-settings .save-bar__discard {
  background: transparent;
  border: 1px solid #ffffff20;
  color: #fff;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
}

.page-settings .save-bar__discard:hover {
  background: #ffffff10;
}

.page-settings .save-bar__save {
  background: #fff;
  color: var(--ink);
  border: 0;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-settings .save-bar__save:hover {
  background: #f1eee9;
}

.page-users {
  --violet: #6a45c9;
  --violet-50: #efe9fb;
}

.page-users .um-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.page-users .um-kpi__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-users .um-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.page-users .uk-total {
  background: var(--brand-50);
  color: var(--brand);
}

.page-users .uk-active {
  background: var(--ok-50);
  color: var(--ok);
}

.page-users .uk-invited {
  background: var(--info-50);
  color: var(--info);
}

.page-users .uk-roles {
  background: var(--violet-50);
  color: var(--violet);
}

.page-users .um-kpi__label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.page-users .um-kpi__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.page-users .um-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-users .um-search {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.page-users .um-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.page-users .um-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-users .um-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 16px;
}

.page-users .um-btn-caret {
  font-size: 11px;
}

.page-users .um-tabs-wrap {
  margin-left: auto;
}

.page-users .um-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
}

.page-users .um-tabs button,
.page-users .um-tabs a {
  background: transparent;
  border: 0;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.page-users .um-tabs button:hover,
.page-users .um-tabs a:hover {
  color: var(--ink);
}

.page-users .um-tabs button.is-on,
.page-users .um-tabs a.is-on {
  background: var(--ink);
  color: #fff;
}

.page-users .um-tabs button .count,
.page-users .um-tabs a .count {
  font-size: 10.5px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}

.page-users .um-tabs button.is-on .count,
.page-users .um-tabs a.is-on .count {
  background: #ffffff20;
  color: #fff;
}

.page-users .um-card {
  padding: 0;
  overflow: hidden;
}

.page-users .um-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.page-users .um-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-users .um-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink-2);
}

.page-users .um-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-users .um-table tbody tr:hover td {
  background: var(--surface-2);
}

.page-users .um-select-col {
  width: 40px;
}

.page-users .um-email-col {
  width: 240px;
}

.page-users .um-role-col {
  width: 160px;
}

.page-users .um-status-col {
  width: 130px;
}

.page-users .um-active-col {
  width: 160px;
}

.page-users .um-actions-col {
  width: 110px;
  text-align: right;
}

.page-users .user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-users .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.page-users .av-brand {
  background: var(--brand);
}

.page-users .av-info {
  background: var(--info);
}

.page-users .av-ok {
  background: var(--ok);
}

.page-users .av-violet {
  background: var(--violet);
}

.page-users .av-warn {
  background: var(--warn);
}

.page-users .av-slate {
  background: #5a606b;
}

.page-users .user-avatar.is-online::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--ok);
  border: 2px solid var(--surface);
  border-radius: 50%;
}

.page-users .user-cell__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.page-users .user-cell__meta {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-users .user-cell__meta .you {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
}

.page-users .email-cell {
  font-size: 13.5px;
  color: var(--ink-2);
}

.page-users .email-cell small,
.page-users .last-active small {
  display: block;
  color: var(--muted-2);
  font-size: 11.5px;
  margin-top: 2px;
}

.page-users .role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.page-users .role-pill i {
  font-size: 12px;
}

.page-users .role-pill.is-owner {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: transparent;
}

.page-users .role-pill.is-admin {
  background: var(--violet-50);
  color: var(--violet);
  border-color: transparent;
}

.page-users .role-pill.is-ops {
  background: var(--info-50);
  color: var(--info);
  border-color: transparent;
}

.page-users .role-pill.is-finance {
  background: var(--ok-50);
  color: var(--ok);
  border-color: transparent;
}

.page-users .role-pill.is-catalog {
  background: var(--warn-50);
  color: var(--warn);
  border-color: transparent;
}

.page-users .stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.page-users .stat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-users .stat.active {
  color: var(--ok);
  background: var(--ok-50);
}

.page-users .stat.invited {
  color: var(--info);
  background: var(--info-50);
}

.page-users .stat.disabled {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.page-users .last-active {
  font-size: 13px;
  color: var(--ink-2);
}

.page-users .row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.page-users .row-actions form {
  display: inline-flex;
}

.page-users .row-actions button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.page-users .row-actions a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
}

.page-users .row-actions button:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-2);
}

.page-users .row-actions a:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-2);
}

.page-users .row-actions button.is-danger:hover {
  background: var(--brand-50);
  color: var(--brand);
  border-color: var(--brand-100);
}

.page-user-edit {
  padding-bottom: 5.5rem;
}

.page-user-edit .user-edit-float-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: calc(100vw - 2rem);
  padding: 0.45rem 0.5rem;
  border: 1px solid #d9dbdd;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.08),
    0 10px 24px -4px rgba(15, 23, 42, 0.12);
}

@media (min-width: 981px) {
  .page-user-edit .user-edit-float-bar {
    left: calc(50% + var(--seller-sidebar-width) / 2);
  }
}

.page-user-edit .user-edit-float-bar__discard,
.page-user-edit .user-edit-float-bar__save {
  min-width: 6.5rem;
  padding: 0.58rem 1.15rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.page-users .um-foot {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

.page-users .um-foot strong {
  color: var(--ink);
}

.page-users .um-foot a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.modal-backdrop-um {
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #14161a;
  --ink-2: #2a2d35;
  --muted: #6b6f78;
  --muted-2: #9aa0a8;
  --line: #ececea;
  --line-2: #e3e2df;
  --brand: #e53935;
  --brand-700: #b8281d;
  --brand-50: #fdece9;
  --ok: #1f8a5b;
  --ok-50: #e6f4ec;
  --warn: #c98a1a;
  --warn-50: #fbf2e0;
  --info: #2f5fd1;
  --info-50: #e8eefb;
  --violet: #6a45c9;
  --violet-50: #efe9fb;
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-backdrop-um.is-open {
  display: flex;
}

.modal-um {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.modal-um__head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.modal-um__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
}

.modal-um__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.modal-um__sub {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.45;
}

.modal-um__close {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 4px;
  cursor: pointer;
  margin-left: auto;
  font-size: 16px;
}

.modal-um__close:hover {
  color: var(--ink);
}

.modal-um__body {
  padding: 20px 24px;
}

.modal-field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field-label .req {
  color: var(--brand);
}

.field-label small {
  color: var(--muted-2);
  font-weight: 500;
}

.modal-um__input,
.modal-um__textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-um__input:focus,
.modal-um__textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.modal-um__hint {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 6px;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.role-tile input {
  position: absolute;
  opacity: 0;
}

.role-tile:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
}

.role-tile__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.role-tile__icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.rti-admin {
  background: var(--violet-50);
  color: var(--violet);
}

.rti-ops {
  background: var(--info-50);
  color: var(--info);
}

.rti-fin {
  background: var(--ok-50);
  color: var(--ok);
}

.rti-cat {
  background: var(--warn-50);
  color: var(--warn);
}

.role-tile__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.role-tile__sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.role-tile.is-on {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(232, 71, 58, 0.1);
}

.role-tile.is-on .role-tile__name {
  color: var(--brand-700);
}

.modal-um__textarea {
  font-size: 13.5px;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  line-height: 1.5;
}

.modal-um__foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-um__foot-hint {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-um__foot-btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.modal-um .btn-ghost,
.modal-um .btn-primary {
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.modal-um .btn-ghost {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line);
}

.modal-um .btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-2);
}

.modal-um .btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 16px -10px rgba(229, 57, 53, 0.7);
}

.modal-um .btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.seller-content:has(.page-products) {
  padding: 0;
  background: #f6f5f2;
}

.page-products {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #14161a;
  --ink-2: #2a2d35;
  --muted: #6b6f78;
  --muted-2: #9aa0a8;
  --line: #ececea;
  --line-2: #e3e2df;
  --brand: #e53935;
  --brand-600: #c62828;
  --brand-700: #b8281d;
  --brand-50: #fdece9;
  --brand-100: #fbd9d3;
  --ok: #1f8a5b;
  --ok-50: #e6f4ec;
  --warn: #c98a1a;
  --warn-50: #fbf2e0;
  --info: #2f5fd1;
  --info-50: #e8eefb;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.04), 0 1px 0 rgba(20, 22, 26, 0.03);
  padding: 28px 32px 56px;
  max-width: 1480px;
  width: 100%;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.page-products .row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.page-products .g-3 > * {
  padding: 0.5rem;
}

.page-products .mb-3 {
  margin-bottom: 1rem;
}

.page-products .col-md-6,
.page-products .col-xl-3 {
  width: 100%;
}

.page-products .page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-products .page-head__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 6px;
}

.page-products .page-head__sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.page-products .page-head__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.page-products .btn-primary,
.page-products .btn-ghost {
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.page-products .btn-primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  padding: 9px 16px;
}

.page-products .btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.page-products .btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 9px 14px;
}

.page-products .btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--ink);
}

.page-products .kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.page-products .kpi__label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.page-products .kpi__label .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-50);
}

.page-products .kpi__label .pulse.is-warn {
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-50);
}

.page-products .kpi__label .pulse.is-info {
  background: var(--info);
  box-shadow: 0 0 0 4px var(--info-50);
}

.page-products .kpi__label .pulse.is-ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-50);
}

.page-products .kpi__value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-products .kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.page-products .kpi__delta.up {
  color: var(--ok);
  background: var(--ok-50);
}

.page-products .kpi__foot {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-products .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-products .chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.page-products .chip:hover {
  background: var(--surface-2);
}

.page-products .chip__count {
  font-weight: 600;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.page-products .chip.is-active {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--brand-700);
}

.page-products .chip.is-active .chip__count {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand-100);
}

.page-products .toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-products .toolbar__search {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.page-products .toolbar__search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.page-products .toolbar__search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.page-products .toolbar__search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 16px;
}

.page-products .products-toolbar {
  margin-bottom: 18px;
}

.page-products .products-toolbar__select {
  appearance: none;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 32px 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M4.427 6.427l3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 6H4.604a.25.25 0 0 0-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 160px;
}

.page-products .products-toolbar__select:hover,
.page-products .products-toolbar__select:focus {
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%234b5563' d='M4.427 6.427l3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 6H4.604a.25.25 0 0 0-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border-color: var(--line-2);
  color: var(--ink);
}

.page-products .products-toolbar__select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
  outline: none;
}

.page-products .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-products .tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.page-products .tbl thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.page-products .tbl thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.page-products .tbl thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.page-products .tbl tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}

.page-products .tbl tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .tbl tbody tr:hover td {
  background: var(--surface-2);
}

.page-products .form-check-input {
  width: 1em;
  height: 1em;
  margin: 0;
  vertical-align: middle;
}

.page-products .product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-products .product-cell__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2efe9, #e8e3d8);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-products .product-cell__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .product-cell__name {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.page-products .product-cell__sku {
  font-size: 11.5px;
  color: var(--muted-2);
  font-family: "JetBrains Mono", monospace;
  margin-top: 2px;
}

.page-products .price {
  font-weight: 600;
  color: var(--ink);
}

.page-products .price__mrp {
  font-size: 11.5px;
  color: var(--muted-2);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 4px;
}

.page-products .bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 6px;
}

.page-products .bar > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

.page-products .stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-products .stock-pill .bar {
  width: 60px;
  margin: 0;
  height: 5px;
}

.page-products .stock-pill.low {
  color: var(--warn);
}

.page-products .stock-pill.out {
  color: var(--brand);
}

.page-products .stock-pill.low .bar > span {
  background: var(--warn);
}

.page-products .stock-pill.out .bar > span {
  background: var(--brand);
}

.page-products .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.page-products .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-products .status.active {
  color: var(--ok);
  background: var(--ok-50);
}

.page-products .status.draft {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.page-products .status.approval {
  color: var(--info);
  background: var(--info-50);
}

.page-products .status.revision {
  color: var(--warn);
  background: var(--warn-50);
}

.page-products .status.disabled {
  color: var(--brand);
  background: var(--brand-50);
}

.page-products .action-btns {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.page-products .action-btns button,
.page-products .action-btns a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-products .action-btns a.action-btns__edit {
  width: auto;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-2);
}

.page-products .action-btns__more.is-hidden {
  display: none !important;
}

/* Table footer + pagination — design/styles.css */
.tbl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

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

.tbl-foot__pager button,
.tbl-foot__pager .tbl-pager-btn {
  min-width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  font-family: inherit;
  box-sizing: border-box;
}

.tbl-foot__pager button:hover,
.tbl-foot__pager .tbl-pager-btn:hover:not(.is-disabled):not(.is-on):not(.is-ellipsis) {
  background: var(--surface-2);
}

.tbl-foot__pager button.is-on,
.tbl-foot__pager .tbl-pager-btn.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tbl-foot__pager .tbl-pager-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.tbl-foot__pager .tbl-pager-btn.is-ellipsis {
  border-color: transparent;
  background: transparent;
  cursor: default;
  min-width: auto;
  padding: 0 4px;
  color: var(--muted);
}

.tbl-foot .inv-foot__rows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tbl-foot .inv-foot__rows select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 28px 5px 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.page-products .tbl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.page-products .tbl-foot__pager {
  display: flex;
  gap: 4px;
  align-items: center;
}

.page-products .tbl-foot__pager button {
  min-width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0 9px;
}

.page-products .tbl-foot__pager button:hover {
  background: var(--surface-2);
}

.page-products .tbl-foot__pager button.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.page-products .text-muted {
  color: var(--muted);
}

@media (min-width: 768px) {
  .page-products .col-md-6 {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .page-products .col-xl-3 {
    width: 25%;
  }
}

@media (max-width: 980px) {
  .seller-shell {
    display: block;
    overflow-y: auto;
  }

  .seller-sidebar {
    display: none;
  }

  .seller-main,
  .seller-content {
    min-height: auto;
    overflow: visible;
  }

  .seller-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-dashboard-hero,
  .seller-dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .seller-dashboard-status-grid,
  .seller-dashboard-status-grid--metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-products-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-products-toolbar {
    flex-wrap: wrap;
  }

  .seller-products-view-toggle {
    margin-left: 0;
  }
}

/* Bulk product upload */
.page-products-import .bu-inline-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--brand-700);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.page-products-import .bu-revision-label {
  color: var(--warn);
  font-weight: 600;
}

.page-products-import .bu-result-card {
  margin-bottom: 22px;
  overflow: hidden;
}

.page-products-import .bu-result-card__body {
  padding: 22px 24px 24px;
}

.page-products-import .bu-result-card--ok {
  border-color: #c8e6d6;
  background: linear-gradient(180deg, #f7fcf9 0%, var(--surface) 100%);
}

.page-products-import .bu-result-card--warn {
  border-color: #f0ddb8;
  background: linear-gradient(180deg, #fffbf3 0%, var(--surface) 100%);
}

.page-products-import .bu-result-card--neutral {
  border-color: var(--line);
  background: var(--surface);
}

.page-products-import .bu-result-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.page-products-import .bu-result-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.page-products-import .bu-result-card--ok .bu-result-card__icon {
  background: var(--ok-50);
  color: var(--ok);
}

.page-products-import .bu-result-card--warn .bu-result-card__icon {
  background: var(--warn-50);
  color: var(--warn);
}

.page-products-import .bu-result-card--neutral .bu-result-card__icon {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.page-products-import .bu-result-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-products-import .bu-result-card__sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  max-width: 52rem;
}

.page-products-import .bu-result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-products-import .bu-result-stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-products-import .bu-result-card--ok .bu-result-stat,
.page-products-import .bu-result-card--warn .bu-result-stat {
  background: rgba(255, 255, 255, 0.72);
}

.page-products-import .bu-result-stat.is-warn {
  border-color: #f0ddb8;
  background: var(--warn-50);
}

.page-products-import .bu-result-stat.is-warn .bu-result-stat__value {
  color: var(--warn);
}

.page-products-import .bu-result-stat__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-products-import .bu-result-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-products-import .bu-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}

.page-products-import .bu-steps {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.page-products-import .bu-step {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.page-products-import .bu-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 20px;
  height: 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.page-products-import .bu-step:not(:first-child) {
  padding-left: 30px;
}

.page-products-import .bu-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  flex-shrink: 0;
}

.page-products-import .bu-step.is-on .bu-step__num {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-products-import .bu-step.is-done .bu-step__num {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.page-products-import .bu-step__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}

.page-products-import .bu-step__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1px;
}

.page-products-import .bu-step.is-on .bu-step__title {
  color: var(--brand-700);
}

.page-products-import .products-import-form {
  margin: 0;
  padding-bottom: 5rem;
}

.page-products-import .bu-upload-card {
  margin-bottom: 18px;
  overflow: hidden;
}

.page-products-import .bu-upload-card .card__head {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.page-products-import .bu-upload-card .card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.page-products-import .bu-upload-card .card__sub {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
  line-height: 1.45;
}

.page-products-import .bu-upload-card .card__body {
  padding: 20px 22px 22px;
}

.page-products-import .bu-columns-card .card__head,
.page-products-import .bu-errors-card .card__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.page-products-import .bu-columns-card .card__title,
.page-products-import .bu-errors-card .card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.page-products-import .bu-columns-card .card__sub,
.page-products-import .bu-errors-card .card__sub {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
  line-height: 1.45;
}

.page-products-import .dropzone__file-input,
.page-products-import #product-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-products-import .bu-upload-card .card__body {
  position: relative;
}

.page-products-import .bu-upload-card .card__body > .input.file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page-products-import .bu-upload-card .card__body > .input.file label {
  display: none;
}

.page-products-import .dropzone {
  display: block;
  border: 2px dashed var(--line-2);
  border-radius: 16px;
  padding: 0;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.page-products-import .dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 48px 32px 40px;
  box-sizing: border-box;
}

.page-products-import .dropzone:hover,
.page-products-import .dropzone.is-drag {
  border-color: var(--brand);
  background: #fff8f6;
}

.page-products-import .dropzone__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--brand);
  margin: 0 0 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.page-products-import .dropzone__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.35;
}

.page-products-import .dropzone__title strong {
  color: var(--brand);
}

.page-products-import .dropzone__sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.4;
}

.page-products-import .dropzone__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  pointer-events: none;
}

.page-products-import .dropzone__meta {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 18px;
  padding-top: 4px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.page-products-import .dropzone__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-products-import .file-row[hidden],
.page-products-import #bu-dropzone[hidden] {
  display: none !important;
}

.page-products-import .file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.page-products-import .file-row__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ok-50);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.page-products-import .file-row__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-products-import .file-row__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.page-products-import .file-row__ready {
  color: var(--ok);
  font-weight: 600;
}

.page-products-import .file-row__bar {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  width: 120px;
}

.page-products-import .file-row__bar > span {
  display: block;
  height: 100%;
  background: var(--ok);
  width: 100%;
  border-radius: 999px;
}

.page-products-import .file-row__del {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.page-products-import .file-row__del:hover {
  color: var(--brand);
  border-color: var(--brand-100);
  background: var(--brand-50);
}

.page-products-import .bu-columns-card,
.page-products-import .bu-errors-card {
  margin-top: 0;
  margin-bottom: 18px;
}

.page-products-import .col-card {
  padding: 0;
  overflow: hidden;
}

.page-products-import .col-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.page-products-import .col-table thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.page-products-import .col-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.page-products-import .col-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products-import .col-name {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-products-import .col-req {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand);
  letter-spacing: 0.04em;
}

.page-products-import .col-opt {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.page-products-import .col-desc {
  color: var(--muted);
  font-size: 12.5px;
}

.page-products-import .rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.page-products-import .rail-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products-import .rail-card__title i {
  color: var(--brand);
}

.page-products-import .rail-card__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.page-products-import .dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 8px;
}

.page-products-import .dl-btn:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--ink);
}

.page-products-import .dl-btn:last-child {
  margin-bottom: 0;
}

.page-products-import .dl-btn__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.page-products-import .dli-tpl {
  background: var(--ok-50);
  color: var(--ok);
}

.page-products-import .dli-exp {
  background: var(--info-50);
  color: var(--info);
}

.page-products-import .dl-btn__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-products-import .dl-btn__sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}

.page-products-import .dl-btn__chev {
  margin-left: auto;
  color: var(--muted-2);
}

.page-products-import .rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-products-import .rule {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

.page-products-import .rule i {
  color: var(--ok);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.page-products-import .rule i.is-warn {
  color: var(--warn);
}

.page-products-import .rule code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--brand-700);
}

.page-products-import .tax-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.page-products-import .tax-chip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.page-products-import .submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 -4px 16px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.page-products-import .submit-bar__hint {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-products-import .submit-bar__hint i {
  color: var(--ok);
}

.page-products-import .submit-bar__btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.page-products-import .rail-card--help {
  background: linear-gradient(135deg, #1a1d23 0%, #0d0f12 100%);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.page-products-import .rail-card--help::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(232, 71, 58, 0.2), transparent 55%);
  pointer-events: none;
}

.page-products-import .rail-card__help-inner {
  position: relative;
}

.page-products-import .rail-card--help .rail-card__title {
  color: #fff;
}

.page-products-import .rail-card--help .rail-card__title i {
  color: #ff8a7e;
}

.page-products-import .rail-card--help .rail-card__sub {
  color: #b5b8be;
}

.page-products-import .bu-help-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .page-products-import .bu-grid {
    grid-template-columns: 1fr;
  }

  .page-products-import .bu-steps {
    flex-direction: column;
  }

  .page-products-import .bu-step:not(:last-child)::after {
    display: none;
  }

  .page-products-import .bu-step:not(:first-child) {
    padding-left: 18px;
  }

  .page-products-import .submit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-products-import .submit-bar__btns {
    margin-left: 0;
    justify-content: flex-end;
  }

  .page-products-import .bu-result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-products-import .bu-result-stats {
    grid-template-columns: 1fr;
  }

  .page-products-import .bu-result-card__body {
    padding: 18px 16px 20px;
  }
}

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

  .seller-dashboard-status-grid,
  .seller-dashboard-status-grid--metrics,
  .seller-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .seller-products-summary-grid {
    grid-template-columns: 1fr;
  }

  .seller-page-header,
  .seller-toolbar,
  .page-products .page-head,
  .page-products .tbl-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .page-products {
    padding: 20px;
  }
}

.page-inventory .inv-col-location {
  width: 210px;
  min-width: 210px;
  vertical-align: top;
}

.page-inventory .inv-location {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 188px;
  max-width: 100%;
  min-width: 0;
}

.page-inventory .inv-location__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.page-inventory .inv-location__field span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #6b7280);
}

.page-inventory .inv-location__input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink, #111);
}

.page-inventory .inv-location .btn-ghost {
  align-self: flex-start;
  padding: 6px 10px;
  font-size: 12px;
}

.page-inventory .inv-toolbar .seller-select {
  min-width: 180px;
  max-width: 260px;
}
