:root {
  --font-family-base: "Poppins", sans-serif;
  --c-primary: #0f172a;
  --c-secondary: #334155;
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-border: #e2e8f0;
  --c-text: #0f172a;
  --c-muted: #64748b;
  --c-accent: #2563eb;
  --c-success-bg: #ecfdf5;
  --c-success-text: #047857;
  --c-warning-bg: #fffbeb;
  --c-warning-text: #b45309;
  --c-error-bg: #fef2f2;
  --c-error-text: #b91c1c;
  --c-info-bg: #eff6ff;
  --c-info-text: #1d4ed8;
  --c-neutral-bg: #f1f5f9;
  --c-neutral-text: #475569;
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-button: 11px;
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-medium: 0 18px 40px rgba(15, 23, 42, 0.12);
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: 14px;
  line-height: 1.42;
  color: var(--c-text);
  background: radial-gradient(circle at top right, #e8eefc 0, transparent 40%), var(--c-bg);
}

body.app-compact-mode .card {
  padding: 12px;
}

body.app-compact-mode .data-table th,
body.app-compact-mode .data-table td {
  padding: 7px 8px;
  font-size: 12px;
}

body.app-compact-mode .kpi-card {
  min-height: 88px;
}

body.app-dark-mode {
  --c-bg: #0f172a;
  --c-surface: #111c31;
  --c-border: #22314e;
  --c-text: #e2e8f0;
  --c-muted: #94a3b8;
  background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.32) 0, transparent 40%), #0f172a;
}

body.app-dark-mode .topbar,
body.app-dark-mode .filter-bar,
body.app-dark-mode .report-filter-panel,
body.app-dark-mode .card,
body.app-dark-mode .table-container,
body.app-dark-mode .input,
body.app-dark-mode .select,
body.app-dark-mode .btn,
body.app-dark-mode .icon-btn {
  background: #111c31;
  color: #e2e8f0;
  border-color: #22314e;
}

body.app-dark-mode .data-table tbody tr:hover {
  background: #17253e;
}

body.app-dark-mode .settings-helper-alert {
  background: #17253e;
  border-color: #2d3f63;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #0a1224 0%, #101a31 100%);
  color: #d7e1f0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  padding: 20px 16px;
}

.sidebar.collapsed {
  width: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin-bottom: 16px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, #2563eb, #0ea5e9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: #8da3c3;
}

.workspace-switcher {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 8px 18px;
}

.workspace-label {
  font-size: 11px;
  color: #9fb0ca;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workspace-name {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
}

.menu-section-title {
  padding: 10px 10px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #90a5c3;
}

.menu-item,
.submenu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  margin: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-align: left;
  font-size: 13px;
}

.menu-item:hover,
.submenu-item:hover {
  background: rgba(148, 163, 184, 0.18);
}

.menu-item.active,
.submenu-item.active {
  background: rgba(37, 99, 235, 0.22);
  color: #e7f0ff;
}

.menu-item.active .menu-icon,
.menu-item:hover .menu-icon {
  color: #dbeafe;
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #afc0d8;
  flex: 0 0 22px;
}

.menu-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submenu {
  margin-left: 28px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition), opacity var(--transition);
}

.submenu.open {
  max-height: 520px;
  opacity: 1;
}

.submenu-item {
  color: #b8c6da;
  font-size: 12.8px;
}

.menu-chevron {
  transition: transform var(--transition);
}

.menu-item.open .menu-chevron {
  transform: rotate(180deg);
}

.sidebar-bottom {
  margin-top: 20px;
  padding: 12px 8px 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  position: relative;
}

.profile-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(46, 67, 111, 0.56);
  box-shadow: 0 10px 24px rgba(4, 10, 28, 0.22);
  color: #f8fafc;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.profile-card:hover {
  background: rgba(61, 86, 136, 0.56);
  border-color: rgba(191, 219, 254, 0.28);
}

.profile-card.active {
  background: #2e436f;
  border-color: rgba(191, 219, 254, 0.44);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #334155, #1e293b);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(140deg, #2c3d5e, #1f2f4d);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}

.profile-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #23365a;
}

.profile-identity {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: #f8fafc;
}

.profile-role {
  margin-top: 3px;
  font-size: 13px;
  color: #afc0d8;
}

.profile-branch {
  margin-top: 3px;
  font-size: 11px;
  color: #8ea2c3;
}

.profile-chevron {
  color: #afc0d8;
  font-size: 15px;
}

.profile-popover {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 10px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  z-index: 20;
}

.profile-popover-head {
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-pop-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, #334155, #1e293b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 44px;
}

.profile-pop-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.profile-pop-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.profile-pop-meta {
  margin-top: 3px;
  font-size: 11px;
  color: #94a3b8;
}

.profile-pop-section {
  display: grid;
  border-top: 1px solid #f1f5f9;
}

.profile-pop-section:first-of-type {
  border-top: 0;
}

.profile-pop-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  border-radius: 12px;
  margin: 4px 6px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.profile-pop-item:hover {
  background: linear-gradient(90deg, #eef5ff 0%, #f8fbff 100%);
  color: #1d4ed8;
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px #dbe7fb;
}

.profile-pop-item:active {
  transform: translateX(0);
  background: #e7f0ff;
}

.profile-pop-item:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.profile-pop-item.danger {
  color: #b91c1c;
}

.profile-pop-item.danger:hover {
  background: linear-gradient(90deg, #fff1f1 0%, #fff7f7 100%);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.profile-pop-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  transition: transform 180ms ease, color 180ms ease;
}

.profile-pop-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-pop-item:hover .profile-pop-icon {
  transform: scale(1.08);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#topbar[data-route="user-role"] {
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

#topbar[data-route="user-role"] .top-left {
  flex: 1 1 380px;
  min-width: 0;
}

#topbar[data-route="user-role"] .top-right {
  flex: 1 1 520px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#topbar[data-route="user-role"] .search-box {
  width: 100%;
  min-width: 0;
}

#topbar[data-route="user-role"] .top-right .select {
  min-width: 160px;
  max-width: 220px;
}

#topbar[data-route="user-role"] .top-right .icon-btn {
  white-space: nowrap;
}

.search-box {
  min-width: 360px;
  width: min(44vw, 560px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-size: 13px;
}

.search-box:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.4);
}

.search-box:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.icon-btn,
.btn {
  border: 1px solid #d3ddeb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn.primary {
  border-color: #1e50d8;
  background: linear-gradient(135deg, #2f6bff 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.3);
}

.icon-btn:hover,
.btn:hover {
  transform: translateY(-1.5px);
  border-color: #b9c9e6;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.btn:active,
.icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-label {
  line-height: 1;
}

.btn.primary .btn-icon {
  color: rgba(255, 255, 255, 0.96);
}

.btn:not(.primary):hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: #1d4ed8;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #3a78ff 0%, #2459e4 100%);
}

.content {
  padding: 20px 24px 28px;
  overflow: auto;
}

.page {
  display: grid;
  gap: 16px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.title-block h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title-block p {
  margin: 6px 0 0;
  color: var(--c-muted);
  font-size: 14px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--c-muted);
}

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

.marketplace-page .page-header .header-actions {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.marketplace-page .page-header .header-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  gap: 6px;
}

.marketplace-page .page-header .header-actions .btn .btn-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.marketplace-page .page-header .header-actions .btn .btn-icon svg {
  width: 14px;
  height: 14px;
}

.stok-produk-page .page-header .header-actions {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.stok-produk-page .page-header .header-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 10px;
  min-height: 36px;
  gap: 6px;
}

.stok-produk-page .page-header .header-actions .btn .btn-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.stok-produk-page .page-header .header-actions .btn .btn-icon svg {
  width: 16px;
  height: 16px;
}

.filter-bar {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.input,
.select {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--radius-input);
  padding: 9px 12px;
  font-size: 13px;
  min-height: 40px;
}

.input {
  min-width: 220px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--c-border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--c-surface);
}

.pill.active {
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
  background: var(--c-info-bg);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.kpi-card {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d6deea;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(47, 107, 255, 0.08) 0%, rgba(47, 107, 255, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6bff 0%, #0ea5e9 55%, #10b981 100%);
  opacity: 0.82;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #bfd0ee;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.kpi-title {
  color: #5f7391;
  font-size: 13px;
  font-weight: 600;
}

.kpi-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0a1833;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kpi-trend {
  font-size: 12px;
  color: #0f8a63;
  font-weight: 600;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.alert.warning {
  background: var(--c-warning-bg);
  color: var(--c-warning-text);
}

.alert.error {
  background: var(--c-error-bg);
  color: var(--c-error-text);
}

.alert.info {
  background: var(--c-info-bg);
  color: var(--c-info-text);
}

.alert.success {
  background: var(--c-success-bg);
  color: var(--c-success-text);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
  text-align: left;
}

.data-table th {
  color: var(--c-muted);
  font-weight: 600;
  font-size: 12px;
}

.data-table .num {
  text-align: right;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.data-table tbody tr.expanded {
  background: #f4f8ff;
}

.product-main-row {
  transition: background 170ms ease;
}

.product-main-row.expanded {
  background: #eef4ff;
}

.product-list-table tr.is-selected > td {
  background: #eef5ff !important;
}

.group-main-row {
  transition: background 170ms ease;
}

.group-main-row.expanded {
  background: #eef4ff;
}

.group-main-row.is-selected {
  background: #f8fbff;
}

.group-master-table th,
.group-master-table td {
  text-align: left;
  vertical-align: middle;
}

.group-master-table th:nth-child(6),
.group-master-table td:nth-child(6),
.group-master-table th:nth-child(7),
.group-master-table td:nth-child(7),
.group-master-table th:nth-child(8),
.group-master-table td:nth-child(8) {
  text-align: center;
}

.group-master-table .num {
  text-align: center;
}

.group-barang-page .card,
.group-barang-page .table-container {
  min-width: 0;
}

.group-barang-page .table-container {
  overflow-x: hidden;
}

.group-barang-page .group-master-table {
  table-layout: fixed;
  width: 100%;
}

.group-barang-page .group-master-table > thead > tr > th,
.group-barang-page .group-master-table > tbody > tr.group-main-row > td {
  padding: 10px 8px;
  white-space: nowrap;
}

.group-barang-page .group-master-table > tbody > tr.group-main-row > td {
  overflow: hidden;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(1),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(1) {
  width: 3%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(2),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(2) {
  width: 4%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(3),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(3) {
  width: 20%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(4),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(4) {
  width: 11%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(5),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(5) {
  width: 19%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(6),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(6),
.group-barang-page .group-master-table > thead > tr > th:nth-child(7),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(7),
.group-barang-page .group-master-table > thead > tr > th:nth-child(8),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(8) {
  width: 7%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(9),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(9) {
  width: 6%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(10),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(10) {
  width: 8%;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(11),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(11) {
  width: 8%;
}

.group-barang-page .group-master-table .product-name-link,
.group-barang-page .group-master-table .mono {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(11) {
  font-size: 12px;
}

.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(3),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(4),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(5),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(11) {
  text-overflow: ellipsis;
}

.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(2),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(6),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(7),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(8),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(9),
.group-barang-page .group-master-table > tbody > tr.group-main-row > td:nth-child(10) {
  text-overflow: clip;
}

.group-barang-page .group-master-table > thead > tr > th:nth-child(4),
.group-barang-page .group-master-table > thead > tr > th:nth-child(6),
.group-barang-page .group-master-table > thead > tr > th:nth-child(10) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}

.group-barang-page .group-master-table .product-name-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.group-barang-page .group-master-table .group-name-truncate,
.group-barang-page .group-master-table .group-product-truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.group-barang-page .group-master-table td:nth-child(3) .sohub-item-name-compact,
.group-barang-page .group-master-table td:nth-child(5) .sohub-item-name-compact {
  display: inline-block;
  max-width: 100%;
  cursor: help;
}

.group-row-check,
[data-group-select-all] {
  width: 16px;
  height: 16px;
  accent-color: #2f6bff;
  cursor: pointer;
}

.product-detail-row td {
  padding: 0;
  border-bottom: 0;
  background: #f8fbff;
}

.group-detail-row td {
  padding: 0;
  border-bottom: 0;
  background: #f8fbff;
}

.product-row-dropdown {
  margin: 10px 12px 14px;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  overflow: visible;
  animation: productDropdownIn 180ms ease;
}

.group-row-dropdown {
  margin: 10px 12px 14px;
  border: 1px solid #dbe6f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  overflow: visible;
  animation: productDropdownIn 180ms ease;
}

@keyframes productDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prd-dd-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #dbe6f7;
  background: #fff;
}

.prd-dd-head-left {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.prd-dd-head-left h3 {
  margin: 0;
  font-size: 21px;
}

.prd-dd-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

.prd-dd-meta span {
  border: 1px solid #dbe6f7;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fbff;
}

.prd-dd-head-right {
  min-width: 320px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.prd-dd-badges {
  display: flex;
  gap: 6px;
}

.prd-dd-sync {
  color: #64748b;
  font-size: 12px;
}

.prd-dd-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  position: relative;
  z-index: 5;
}

.prd-mini-stat {
  border: 1px solid #dbe6f7;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.prd-mini-stat span {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prd-mini-stat b {
  font-size: 16px;
  color: #0f172a;
}

.prd-dd-variants {
  padding: 6px 16px 0;
  position: relative;
  z-index: 30;
}

.prd-dd-variant-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.prd-dd-variant-head h4 {
  margin: 0;
  font-size: 15px;
}

.prd-dd-table-wrap {
  max-height: 520px;
  background: #fff;
  position: relative;
  z-index: 35;
}

.table-container.prd-dd-table-wrap {
  overflow-x: auto !important;
  overflow-y: auto !important;
}

.prd-dd-table {
  overflow: visible;
}

.prd-dd-table thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 40;
}

.prd-dd-table tbody tr {
  position: relative;
  z-index: 1;
}

.prd-dd-table tbody tr:hover {
  z-index: 80;
}

.prd-dd-table .chip {
  display: inline-flex;
  margin-right: 4px;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
}

.price-range-cell {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 170px;
  z-index: 2;
}

.price-range-cell:hover {
  z-index: 200;
}

.price-range-cell .price-tooltip,
.marketplace-range-cell .mp-tooltip {
  display: none !important;
}

.price-range-main {
  font-weight: 700;
  color: #0f172a;
}

.price-range-hint {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 270px;
  border: 1px solid #dbe6f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
  padding: 10px 11px;
  display: none;
  z-index: 9999;
  pointer-events: none;
}

.price-range-cell:hover .price-tooltip {
  display: block;
}

.price-tip-title {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
}

.price-tip-row:first-of-type {
  border-top: 0;
}

.price-tip-row b {
  color: #0f172a;
}

.marketplace-range-cell {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 155px;
  z-index: 2;
}

.marketplace-range-cell:hover {
  z-index: 200;
}

.mp-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 290px;
  border: 1px solid #dbe6f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
  padding: 10px 11px;
  display: none;
  z-index: 9999;
  pointer-events: none;
}

.marketplace-range-cell:hover .mp-tooltip {
  display: block;
}

.hover-float-tooltip {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: min(320px, calc(100vw - 16px));
  border: 1px solid #dbe6f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.2);
  padding: 10px 11px;
  z-index: 2147483000;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.hover-float-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.mp-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
}

.mp-tip-row:first-of-type {
  border-top: 0;
}

.mp-tip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.mp-tip-badge.success {
  background: #ecfdf5;
  color: #047857;
}

.mp-tip-badge.warning {
  background: #fffbeb;
  color: #b45309;
}

.mp-tip-badge.error {
  background: #fef2f2;
  color: #b91c1c;
}

.mp-tip-badge.neutral {
  background: #f1f5f9;
  color: #475569;
}

.prd-dd-footer {
  border-top: 1px solid #dbe6f7;
  padding: 12px 16px;
  background: #fff;
  display: block;
  position: sticky;
  bottom: 0;
  z-index: 120;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.05);
}

.product-footer-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.product-footer-actions .btn {
  flex: 1 1 220px;
  justify-content: center;
  white-space: nowrap;
}

.product-footer-actions .btn.primary {
  flex: 1 1 260px;
}

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #0f172a;
  cursor: pointer;
}

.link-btn:hover {
  color: #1d4ed8;
}

.product-name-link {
  font-weight: 600;
  text-align: left;
}

.expand-indicator {
  display: inline-block;
  width: 13px;
  margin-right: 6px;
  color: #64748b;
}

.row-action-sep {
  color: #94a3b8;
  margin: 0 5px;
}

.hide-col {
  display: none;
}

.table-container {
  overflow: auto;
  border: 1px solid var(--c-border);
  border-radius: 14px;
}

.status,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 9px;
  font-weight: 600;
}

.status.success {
  background: var(--c-success-bg);
  color: var(--c-success-text);
}

.status.warning {
  background: var(--c-warning-bg);
  color: var(--c-warning-text);
}

.status.error {
  background: var(--c-error-bg);
  color: var(--c-error-text);
}

.status.info {
  background: var(--c-info-bg);
  color: var(--c-info-text);
}

.status.neutral {
  background: var(--c-neutral-bg);
  color: var(--c-neutral-text);
}

.marketplace-presence {
  display: inline-grid;
  gap: 6px;
  min-width: 166px;
  white-space: normal;
  position: relative;
  z-index: 2;
  cursor: help;
}

.marketplace-presence-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.summary-dot.live {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.summary-dot.partial {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.summary-dot.offline {
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.14);
}

.marketplace-presence-channels {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 7px;
  border: 1px solid #dbe4f3;
  background: #f8fbff;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  line-height: 1;
}

.mp-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #94a3b8;
}

.mp-chip.uploaded {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.mp-chip.uploaded .mp-dot {
  background: #10b981;
}

.mp-chip.pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.mp-chip.pending .mp-dot {
  background: #f59e0b;
}

.mp-chip.failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.mp-chip.failed .mp-dot {
  background: #ef4444;
}

.mp-chip.missing {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.mp-chip.missing .mp-dot {
  background: #94a3b8;
}

.marketplace-presence .marketplace-presence-tooltip {
  display: none !important;
}

.marketplace-presence-row {
  align-items: center;
}

.marketplace-presence-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.marketplace-presence-store {
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
}

.marketplace-presence-row small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.2;
}

.product-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid #d5deea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  vertical-align: middle;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 700;
}

.product-thumb.no-image .product-thumb-fallback {
  display: inline-flex;
}

.product-thumb-sm {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.product-thumb-lg {
  width: 92px;
  height: 92px;
  border-radius: 12px;
}

.product-thumb-lg .product-thumb-fallback {
  font-size: 24px;
}

.product-url-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-url-media .input.url-valid {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.product-url-media .input.url-invalid {
  border-color: #fecaca;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.image-url-feedback {
  margin-top: -2px;
  font-size: 12px;
  color: #64748b;
}

.image-url-feedback.is-success {
  color: #047857;
}

.image-url-feedback.is-error {
  color: #b91c1c;
}

.image-url-preview-wrap,
.image-gallery-preview-wrap {
  border: 1px dashed #cbd5e1;
  background: #f8fbff;
  border-radius: 12px;
  padding: 10px;
  min-height: 76px;
}

.image-url-preview-empty {
  color: #64748b;
  font-size: 12px;
}

.image-url-preview-item {
  display: inline-flex;
}

.image-gallery-preview-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.image-gallery-preview-item {
  display: inline-flex;
}

.product-media-note {
  margin: 0;
  grid-column: span 2;
  font-size: 12px;
  color: #64748b;
}

.split {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 340px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
}

.tab.active {
  border-color: rgba(37, 99, 235, 0.44);
  color: #1d4ed8;
  background: var(--c-info-bg);
}

.stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step {
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  background: #fff;
}

.step.active {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1d4ed8;
}

.bulk-actions {
  display: none;
  position: sticky;
  bottom: 10px;
  z-index: 25;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-medium);
}

.bulk-actions.visible {
  display: flex;
}

.timeline {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 10px;
}

.timeline li {
  color: #334155;
  font-size: 13px;
}

.empty-state {
  text-align: center;
  padding: 30px 16px;
  color: var(--c-muted);
}

.upload-zone {
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: #f8fbff;
  padding: 24px;
  text-align: center;
  color: #334155;
}

.attribute-list {
  display: grid;
  gap: 8px;
}

.attribute-item {
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.attribute-item:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.attribute-item.active {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.attribute-main {
  display: grid;
  gap: 3px;
}

.attribute-main strong {
  font-size: 14px;
}

.attribute-meta {
  font-size: 12px;
  color: #64748b;
}

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

.attribute-action {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.attribute-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.attribute-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.attribute-info-grid > div {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.attribute-info-grid .label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.attribute-values {
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.attribute-values-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.group-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-import-page {
  background: #f6f8fc;
}

.product-list-page {
  min-height: calc(100dvh - 124px);
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.product-kpi-grid {
  gap: 12px;
}

.product-kpi-card {
  min-height: 126px;
  padding: 12px 14px;
  display: grid;
  align-content: space-between;
  gap: 6px;
}

.product-kpi-card .kpi-title {
  font-size: 12.5px;
}

.product-kpi-card .kpi-value {
  font-size: 34px;
  line-height: 1.05;
}

.product-kpi-card .kpi-trend {
  font-size: 11.5px;
}

.product-kpi-breakdown {
  display: grid;
  gap: 3px;
  font-size: 11.5px;
  color: #536983;
}

.product-kpi-breakdown span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-kpi-breakdown span b {
  color: #0f172a;
  font-weight: 700;
}

.product-kpi-breakdown-mp {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
}

.product-list-page > section:last-of-type {
  min-height: 0;
}

.product-list-page > section:last-of-type .card {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.product-list-page .table-container {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
}

.product-list-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.product-list-table th,
.product-list-table td {
  padding: 9px 8px;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: middle;
}

.product-list-table th {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.product-list-table th:nth-child(1),
.product-list-table td:nth-child(1) {
  width: 38px;
  text-align: center;
}

.product-list-table th:nth-child(2),
.product-list-table td:nth-child(2) {
  width: 62px;
}

.product-list-table th:nth-child(8),
.product-list-table td:nth-child(8),
.product-list-table th:nth-child(9),
.product-list-table td:nth-child(9),
.product-list-table th:nth-child(10),
.product-list-table td:nth-child(10),
.product-list-table th:nth-child(11),
.product-list-table td:nth-child(11) {
  text-align: right;
}

.product-list-table th:nth-child(3),
.product-list-table td:nth-child(3),
.product-list-table th:nth-child(4),
.product-list-table td:nth-child(4),
.product-list-table th:nth-child(5),
.product-list-table td:nth-child(5),
.product-list-table th:nth-child(6),
.product-list-table td:nth-child(6),
.product-list-table th:nth-child(7),
.product-list-table td:nth-child(7),
.product-list-table th:nth-child(14),
.product-list-table td:nth-child(14),
.product-list-table th:nth-child(15),
.product-list-table td:nth-child(15) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-list-table td:nth-child(3) .product-name-link {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-table td:nth-child(3) .product-name-link .expand-indicator {
  flex: 0 0 auto;
}

.product-list-table td:nth-child(15) {
  font-size: 11.5px;
}

.product-list-table td:nth-child(15) .row-action-sep {
  margin: 0 4px;
}

.product-list-table .status {
  font-size: 10.5px;
  padding: 4px 8px;
}

@media (max-width: 1680px) {
  .product-list-table th:nth-child(7),
  .product-list-table td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 1520px) {
  .product-list-table th:nth-child(6),
  .product-list-table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 1380px) {
  .product-list-table th:nth-child(5),
  .product-list-table td:nth-child(5) {
    display: none;
  }
}

.product-add-page {
  background: #f6f8fc;
}

.product-add-stepper {
  justify-content: space-between;
  gap: 10px;
}

.product-add-stepper .step {
  border-radius: 999px;
  border: 1px solid #dbe5f7;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.product-add-stepper .step.active {
  border-color: #2f6bff;
  background: #e9f1ff;
  color: #1d4ed8;
}

.product-add-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.product-add-main {
  display: grid;
  gap: 12px;
}

.product-form-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-add-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.sticky-side-card {
  position: sticky;
  top: 86px;
}

.product-add-footer {
  position: sticky;
  bottom: 10px;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfe0ff;
  background: #eef5ff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.group-import-stepper-wrap {
  border-radius: 18px;
}

.group-import-page .import-stepper {
  justify-content: space-between;
  gap: 10px;
}

.group-import-page .import-stepper .step {
  border-radius: 999px;
  border: 1px solid #dbe5f7;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.group-import-page .import-stepper .step.active {
  border-color: #2f6bff;
  background: #e9f1ff;
  color: #1d4ed8;
}

.group-import-main {
  grid-template-columns: 1.2fr 0.8fr;
}

.group-upload-zone {
  min-height: 220px;
  border-width: 1.6px;
  border-style: dashed;
}

.group-upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, #dbeafe, #bfdbfe);
  border: 1px solid #bfdbfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 auto;
}

.group-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.group-import-page .group-import-mapping-wrap .table-container {
  overflow-x: hidden;
}

.group-import-page .group-import-mapping-wrap .data-table {
  table-layout: fixed;
  width: 100%;
}

.group-import-page .group-import-mapping-wrap .data-table th,
.group-import-page .group-import-mapping-wrap .data-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.group-import-page .group-import-mapping-wrap .data-table th:nth-child(1),
.group-import-page .group-import-mapping-wrap .data-table td:nth-child(1) {
  width: 10%;
}

.group-import-page .group-import-mapping-wrap .data-table th:nth-child(2),
.group-import-page .group-import-mapping-wrap .data-table td:nth-child(2) {
  width: 45%;
}

.group-import-page .group-import-mapping-wrap .data-table th:nth-child(3),
.group-import-page .group-import-mapping-wrap .data-table td:nth-child(3) {
  width: 16%;
}

.group-import-page .group-import-mapping-wrap .data-table th:nth-child(4),
.group-import-page .group-import-mapping-wrap .data-table td:nth-child(4) {
  width: 10%;
}

.group-import-page .group-import-mapping-wrap .data-table th:nth-child(5),
.group-import-page .group-import-mapping-wrap .data-table td:nth-child(5) {
  width: 8%;
}

.group-import-page .group-import-mapping-wrap .data-table th:nth-child(6),
.group-import-page .group-import-mapping-wrap .data-table td:nth-child(6) {
  width: 11%;
}

.group-import-page .group-import-mapping-wrap .data-table .select {
  width: 100%;
  min-width: 0;
}

.product-import-page .product-import-validation-wrap {
  overflow-x: hidden;
}

.product-import-page .product-import-validation-table {
  width: 100%;
  table-layout: fixed;
}

.product-import-page .product-import-validation-table th,
.product-import-page .product-import-validation-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.product-import-page .product-import-validation-table th:nth-child(1),
.product-import-page .product-import-validation-table td:nth-child(1) {
  width: 4%;
}

.product-import-page .product-import-validation-table th:nth-child(2),
.product-import-page .product-import-validation-table td:nth-child(2) {
  width: 48%;
}

.product-import-page .product-import-validation-table th:nth-child(3),
.product-import-page .product-import-validation-table td:nth-child(3) {
  width: 8%;
}

.product-import-page .product-import-validation-table th:nth-child(4),
.product-import-page .product-import-validation-table td:nth-child(4) {
  width: 8%;
}

.product-import-page .product-import-validation-table th:nth-child(5),
.product-import-page .product-import-validation-table td:nth-child(5) {
  width: 16%;
}

.product-import-page .product-import-validation-table th:nth-child(6),
.product-import-page .product-import-validation-table td:nth-child(6) {
  width: 16%;
}

.group-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-result-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.group-barang-page .page-header .header-actions {
  gap: 14px;
}

.group-barang-page .page-header .header-actions .btn {
  height: auto;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  gap: 10px;
}

.group-barang-page .page-header .header-actions .btn .btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.group-barang-page .page-header .header-actions .btn .btn-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.group-barang-page .page-header .header-actions .btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-color: #2f6bff;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.24);
}

.group-barang-page .page-header .header-actions .btn.primary:hover {
  background: linear-gradient(135deg, #3373f0 0%, #4a8cff 100%);
  box-shadow: 0 12px 24px rgba(47, 107, 255, 0.28);
}

.group-barang-page .page-header .header-actions .btn.primary:active {
  background: linear-gradient(135deg, #2259d6 0%, #3878e6 100%);
  transform: scale(0.98);
}

.group-barang-page .page-header .header-actions .btn:not(.primary) {
  background: #ffffff;
  border-color: #d9e2f1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.group-barang-page .page-header .header-actions .btn:not(.primary):hover {
  background: #f8fbff;
  border-color: #bfcee8;
  color: #0b2d67;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}

.group-barang-page .page-header .header-actions .btn:not(.primary):active {
  background: #eef4ff;
  transform: scale(0.98);
}

.group-barang-page .page-header .header-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.group-barang-page .page-header .header-actions .btn.is-loading .btn-icon {
  animation: btnSpin 0.9s linear infinite;
}

@keyframes btnSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.group-card {
  border-radius: 18px;
  border: 1px solid var(--c-border);
  display: grid;
  gap: 8px;
  min-height: 220px;
}

.group-card.active {
  border-color: #2f6bff;
  background: #eff6ff;
}

.group-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.group-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.group-icon.fashion {
  background: #e0e7ff;
  color: #4338ca;
}

.group-icon.elec {
  background: #e0f2fe;
  color: #0369a1;
}

.group-icon.beauty {
  background: #fce7f3;
  color: #be185d;
}

.group-icon.home {
  background: #d1fae5;
  color: #047857;
}

.group-icon.grocery {
  background: #fef3c7;
  color: #b45309;
}

.group-card h3 {
  margin: 0;
  font-size: 18px;
}

.group-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.group-meta {
  font-size: 12px;
  color: #334155;
}

.group-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.pagination-info {
  font-size: 12px;
  color: #64748b;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.category-tree {
  display: grid;
  gap: 8px;
}

.tree-node {
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 12px;
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.tree-node:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.tree-node.active {
  border-color: #1e3a8a;
  background: linear-gradient(120deg, #1e3a8a, #1d4ed8);
  color: #e5efff;
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.24);
}

.tree-node.level-1 {
  margin-left: 20px;
}

.tree-node.level-2 {
  margin-left: 38px;
}

.tree-name {
  font-size: 13px;
  font-weight: 600;
}

.tree-count {
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
}

.tree-node.active .tree-count {
  background: rgba(255, 255, 255, 0.2);
  color: #e5efff;
}

.category-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.category-info-grid > div {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.category-info-grid .label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-products {
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.category-product-list {
  display: grid;
  gap: 8px;
}

.category-product-row {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
}

.brand-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brand-card {
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
  transition: all var(--transition);
}

.brand-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-soft);
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.brand-logo.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 11px;
}

.brand-logo.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.brand-logo.emerald {
  background: #d1fae5;
  color: #047857;
}

.brand-logo.slate {
  background: #e2e8f0;
  color: #334155;
}

.brand-logo.violet {
  background: #ede9fe;
  color: #5b21b6;
}

.brand-card-main h3 {
  margin: 0;
  font-size: 16px;
}

.brand-card-main p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.brand-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.supplier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supplier-tabs .tab {
  padding: 7px 9px;
  font-size: 12px;
}

.warehouse-list {
  display: grid;
  gap: 12px;
}

.warehouse-card {
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.warehouse-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-soft);
}

.warehouse-card.active {
  border-color: #1d4ed8;
  background: #eff6ff;
}

.warehouse-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.warehouse-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.warehouse-card h3 {
  margin: 0;
  font-size: 17px;
}

.warehouse-code {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.warehouse-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.warehouse-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.warehouse-tabs {
  margin-top: 4px;
}

.unit-page-wrap {
  display: grid;
  justify-items: center;
}

.unit-card {
  width: min(980px, 100%);
}

.datahub-page {
  background: #f6f8fc;
}

.datahub-type-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.datahub-type-card {
  border-radius: 18px;
  min-height: 186px;
  display: grid;
  gap: 8px;
  border: 1px solid #e2e8f0;
}

.datahub-type-card.active {
  border-color: #2f6bff;
  background: #eff6ff;
}

.datahub-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  font-weight: 800;
  font-size: 12px;
}

.datahub-type-card h3 {
  margin: 0;
  font-size: 17px;
}

.datahub-type-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.datahub-meta {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.datahub-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.datahub-stepper .step {
  cursor: pointer;
}

.datahub-dropzone {
  min-height: 200px;
  display: grid;
  place-content: center;
  gap: 8px;
  border-width: 1.5px;
}

.datahub-info-panel {
  border-radius: 16px;
}

.datahub-template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.datahub-template-card {
  border-radius: 18px;
  min-height: 190px;
  display: grid;
  gap: 8px;
}

.report-page {
  background: #f6f8fc;
}

.report-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 74px;
  z-index: 21;
}

.report-date {
  min-width: 260px;
  font-weight: 600;
}

.report-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-kpi {
  min-height: 104px;
}

.report-kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.report-kpi-value {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin-top: 8px;
}

.report-kpi-note {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.report-marketplace-finance-page .report-kpi-grid {
  gap: 12px;
}

.report-marketplace-finance-page {
  height: calc(100vh - 116px);
  max-height: calc(100vh - 116px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.report-marketplace-finance-page .page-header {
  margin-bottom: 0;
  gap: 10px;
}

.report-marketplace-finance-page .title-block h1 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.report-marketplace-finance-page .title-block p {
  font-size: 16px;
  margin-top: 4px;
}

.report-marketplace-finance-page .breadcrumb {
  margin-bottom: 2px;
}

.report-marketplace-finance-page .header-actions .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.report-marketplace-finance-page .report-kpi {
  min-height: 90px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 11px 14px;
  border: 1px solid #d6deea;
  background:
    radial-gradient(125% 110% at 100% 0%, rgba(47, 107, 255, 0.09) 0%, rgba(47, 107, 255, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.report-marketplace-finance-page .report-kpi::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6bff 0%, #0ea5e9 55%, #10b981 100%);
  opacity: 0.85;
}

.report-marketplace-finance-page .report-kpi:hover {
  transform: translateY(-2px);
  border-color: #bfd0ee;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.report-marketplace-finance-page .report-kpi-label {
  color: #5f7391;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 700;
}

.report-marketplace-finance-page .report-kpi-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a1833;
  text-shadow: none;
  margin-top: 3px;
  line-height: 1.1;
}

.report-marketplace-finance-page .report-kpi-note {
  margin-top: 3px;
  font-size: 11px;
  color: #0f8a63;
  font-weight: 600;
}

.finance-unified-panel {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
}

.finance-summary-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.finance-diagram-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.finance-diagram-panel-head h3 {
  margin: 0;
  font-size: 16px;
  color: #10223f;
}

.finance-diagram-panel-head span {
  font-size: 12px;
  color: #64748b;
}

.finance-diagram-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.report-visual-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.report-main-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.report-chart-card h3,
.report-alert-card h3 {
  margin: 0;
  font-size: 16px;
}

.report-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.report-chart-head span {
  font-size: 12px;
  color: #64748b;
}

.report-insight-card h4 {
  margin: 0;
  font-size: 14px;
}

.report-insight-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
}

.finance-donut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finance-donut-card {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid #d8e3f5;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(37, 99, 235, 0.09) 0%, rgba(37, 99, 235, 0) 48%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.finance-donut-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-height: 64px;
}

.finance-donut-head h3 {
  margin: 0;
  font-size: 13px;
  color: #10223f;
}

.finance-donut-head span {
  font-size: 11px;
  color: #64748b;
}

.finance-donut-body {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  align-items: center;
}

.finance-donut-chart {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.finance-donut-chart::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), inset 0 0 0 1px #e2e8f0;
}

.finance-donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  text-align: center;
  padding: 0 16px;
}

.finance-donut-center strong {
  font-size: 11px;
  line-height: 1.25;
  color: #0f172a;
}

.finance-donut-center small {
  font-size: 10px;
  color: #64748b;
}

.finance-donut-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.finance-donut-legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #334155;
}

.finance-donut-legend .label {
  display: grid;
  gap: 2px;
}

.finance-donut-legend .label small {
  font-size: 10px;
  color: #64748b;
}

.finance-donut-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(148, 163, 184, 0.28);
}

.finance-donut-legend b {
  color: #0f172a;
  font-size: 11px;
}

.finance-table-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.finance-table-head h3 {
  margin: 0;
  font-size: 14px;
  color: #10223f;
}

.finance-table-head span {
  font-size: 11px;
  color: #64748b;
}

.finance-table td.empty {
  text-align: center;
  color: #64748b;
  font-style: italic;
  padding: 20px 10px;
}

.finance-table .tone-pos {
  color: #0f8a63;
  font-weight: 600;
}

.finance-table .tone-neg {
  color: #b42318;
  font-weight: 600;
}

.finance-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  min-height: 0;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
}

.report-marketplace-finance-page .report-filter-panel {
  top: 68px;
  padding: 10px;
  border-radius: 14px;
}

.report-marketplace-finance-page .report-filter-panel .select,
.report-marketplace-finance-page .report-filter-panel .input,
.report-marketplace-finance-page .report-filter-panel .btn {
  min-height: 36px;
  font-size: 12px;
  padding: 7px 10px;
}

.report-marketplace-finance-page .data-table th,
.report-marketplace-finance-page .data-table td {
  padding: 8px 10px;
  font-size: 12px;
}

.report-marketplace-finance-page .data-table th {
  font-size: 11px;
}

.num {
  text-align: right;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions .btn {
  padding: 6px 8px;
  font-size: 11px;
}

.sales-page {
  background: #f6f8fc;
}

.sales-hub-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.sohub-kpi-card .sohub-kpi-sales {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cfe0ff;
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: #334155;
}

.sohub-kpi-card .sohub-kpi-sales span {
  display: block;
  color: #475569;
  font-weight: 600;
  line-height: 1.2;
}

.sohub-kpi-card .sohub-kpi-sales b {
  display: block;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.sales-hub-page {
  gap: 10px;
  min-width: 0;
  width: 100%;
  font-weight: 400;
}

.sales-hub-page .page-header h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sales-hub-page .page-header p {
  font-size: 14px;
  font-weight: 500;
  color: #607089;
}

.sales-hub-page .kpi-card {
  padding: 14px 16px;
}

.sales-hub-page .kpi-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sales-hub-page .kpi-title {
  font-size: 13px;
  font-weight: 600;
  color: #607089;
}

.sales-hub-page .kpi-trend {
  font-size: 12px;
  font-weight: 500;
}

.sales-hub-page .sohub-kpi-sales span {
  font-weight: 500;
}

.sales-hub-page .sohub-kpi-sales b {
  font-weight: 700;
}

.sales-hub-page .btn {
  font-weight: 600;
}

.sales-hub-page .status {
  font-weight: 600;
}

.sales-hub-page .sohub-bulk-summary b {
  font-weight: 600;
}

.sales-hub-page .sohub-table th {
  font-weight: 600;
  color: #5f7391;
}

.sales-hub-page .sohub-table td {
  font-weight: 450;
  color: #25324a;
}

.sales-hub-page .sohub-table td b {
  font-weight: 600;
}

.dashboard-page .kpi-card {
  padding: 14px 16px;
}

.dashboard-page .kpi-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-page .kpi-title {
  font-size: 13px;
  font-weight: 600;
  color: #607089;
}

.dashboard-page .kpi-trend {
  font-size: 12px;
  font-weight: 500;
}

.sohub-marketplace-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sohub-marketplace-logo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  background: #f8fbff;
  border: 1px solid #d9e6fb;
  overflow: hidden;
}

.sohub-marketplace-logo img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}

.sohub-marketplace-logo--fallback {
  background: linear-gradient(180deg, #f2f6ff 0%, #e5edff 100%);
  color: #2f6bff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sales-hub-page .sohub-table .sub-cell,
.sales-hub-page .sohub-table .sub-cell.sub-code {
  font-weight: 500;
  color: #657892;
}

.pencairan-page {
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.pencairan-page .page-header h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.pencairan-page .page-header p {
  font-size: 14px;
  color: #607089;
}

.pencairan-page .page-header .header-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.pencairan-page .kpi-card {
  min-height: 128px;
  padding: 14px 16px;
}

.pencairan-page .kpi-value {
  font-size: clamp(20px, 1.45vw, 28px);
  line-height: 1.18;
  word-break: break-word;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.pencairan-page .kpi-title {
  font-size: 13px;
  font-weight: 600;
  color: #607089;
}

.pencairan-page .kpi-trend {
  font-size: 12px;
  font-weight: 500;
}

.pencairan-page .sohub-kpi-sales span {
  font-weight: 500;
}

.pencairan-page .sohub-kpi-sales b {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}

.pencairan-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pencairan-page .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.pencairan-page .filter-bar > .input:first-child {
  flex: 1 1 280px;
  min-width: 220px;
}

.pencairan-page .filter-bar > .select,
.pencairan-page .filter-bar > .input:not(:first-child) {
  flex: 1 1 150px;
  min-width: 120px;
}

.pencairan-page .filter-bar .tabs {
  width: 100%;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pencairan-page .card,
.pencairan-page .table-container,
.pencairan-page .data-table {
  min-width: 0;
}

.pencairan-page .table-container {
  overflow-x: auto;
}

.pencairan-page .data-table {
  width: 100%;
  table-layout: auto;
}

.pencairan-page .data-table th,
.pencairan-page .data-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
  padding: 10px 8px;
}

.pencairan-page .data-table td .mono {
  font-size: 11.8px;
}

.pencairan-page .data-table th:first-child,
.pencairan-page .data-table td:first-child {
  white-space: nowrap;
}

.pencairan-page .data-table tbody tr[data-pencairan-row] {
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pencairan-page .data-table tbody tr[data-pencairan-row]:hover {
  background: rgba(47, 107, 255, 0.05);
}

.pencairan-page .data-table tbody tr.pencairan-row-unlinked {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.11), rgba(239, 68, 68, 0.04));
}

.pencairan-page .data-table tbody tr.pencairan-row-unlinked:hover {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.16), rgba(251, 113, 133, 0.07));
}

.pencairan-page .data-table tbody tr.is-selected {
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.08), rgba(14, 165, 233, 0.04));
  box-shadow: inset 3px 0 0 #2f6bff;
}

.pencairan-page .data-table tbody tr.is-selected.pencairan-row-unlinked {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.16), rgba(251, 113, 133, 0.07));
  box-shadow: inset 3px 0 0 #2f6bff;
}

.pencairan-page .data-table tbody tr.is-checked > td {
  background: #eef5ff;
}

.pencairan-order-cell {
  padding-left: 10px !important;
  text-align: left;
  cursor: pointer;
}

.pencairan-order-text {
  min-width: 0;
  display: block;
}

.pencairan-order-text b {
  font-size: 12.8px;
  line-height: 1.2;
  white-space: nowrap;
}

.pencairan-order-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.pencairan-order-main .mono {
  flex: 0 0 auto;
}

.pencairan-link-indicator {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  position: relative;
  flex: 0 0 11px;
}

.pencairan-link-indicator::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
}

.pencairan-link-indicator.unlinked {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.pencairan-link-indicator.unlinked::after {
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.pencairan-link-indicator.linked {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pencairan-link-indicator.linked::after {
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.pencairan-inline-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pencairan-marketplace-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.pencairan-marketplace-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.pencairan-marketplace-logo-fallback {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  display: inline-block;
}

.pencairan-bulk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 93;
  background: rgba(2, 6, 23, 0.46);
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.pencairan-bulk-modal {
  width: min(760px, calc(100vw - 40px));
  border-radius: 16px;
  border: 1px solid #d4e2fb;
  background: #f9fbff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.pencairan-bulk-modal-head {
  padding: 14px 16px;
  border-bottom: 1px solid #dbe7fb;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pencairan-bulk-modal-head h3 {
  margin: 0;
  font-size: 22px;
}

.pencairan-bulk-modal-head p {
  margin: 4px 0 0;
  color: #64748b;
}

.pencairan-bulk-modal-body {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pencairan-bulk-modal-body label {
  display: grid;
  gap: 6px;
}

.pencairan-bulk-modal-body span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.pencairan-bulk-modal-foot {
  border-top: 1px solid #dbe7fb;
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fff;
}

.pencairan-page .pencairan-dd-row td {
  padding: 0;
  border-bottom: 0;
  background: #f7faff;
}

.pencairan-dd {
  border-top: 1px solid #d7e4fb;
  border-bottom: 1px solid #d7e4fb;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  padding: 10px;
}

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

.pencairan-dd-head h4 {
  margin: 0;
  font-size: 16px;
}

.pencairan-dd-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
}

.pencairan-dd-body .card {
  box-shadow: none;
  border-color: #d8e5fb;
  padding: 14px;
}

.pencairan-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.pencairan-detail-card {
  padding: 12px;
  border-radius: 16px;
  border-color: #dbe5f4;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.pencairan-detail-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.pencairan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pencairan-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.pencairan-hero-stat {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.pencairan-hero-stat span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.pencairan-hero-stat b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: #0f172a;
}

.pencairan-hero-stat small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}

.pencairan-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pencairan-amount-highlight {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #eff6ff;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.34) 0%, rgba(125, 211, 252, 0) 36%),
    linear-gradient(135deg, #0f3c87 0%, #2563eb 56%, #0ea5e9 100%);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.2);
}

.pencairan-amount-highlight span,
.pencairan-amount-highlight small {
  display: block;
}

.pencairan-amount-highlight span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(219, 234, 254, 0.86);
  font-weight: 700;
}

.pencairan-amount-highlight b {
  display: block;
  margin-top: 2px;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-weight: 700;
}

.pencairan-amount-highlight small {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.pencairan-info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pencairan-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.pencairan-info-row span {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pencairan-info-row b {
  font-size: 13px;
  color: #0f172a;
  font-weight: 400;
  line-height: 1.35;
  word-break: break-word;
}

.pencairan-product-block {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.pencairan-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.pencairan-product-head h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.pencairan-product-block .table-container {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.pencairan-product-block .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
}

.pencairan-product-block .data-table th,
.pencairan-product-block .data-table td {
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.pencairan-product-block .data-table td:nth-child(2),
.pencairan-product-block .data-table th:nth-child(2) {
  white-space: normal;
}

.pencairan-page .data-table td.num,
.pencairan-page .data-table th.num {
  text-align: right;
}

.pencairan-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.pencairan-detail-layout > div {
  min-width: 0;
}

.pencairan-page .card > h3,
.pencairan-page .card > h4 {
  letter-spacing: -0.015em;
}

.pencairan-page .timeline li {
  font-size: 13px;
  line-height: 1.5;
  color: #44546f;
}

.pencairan-page .settings-helper-alert p {
  margin: 4px 0 0;
}

.pencairan-import-backdrop {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(2, 6, 23, 0.44);
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}

.pencairan-import-modal {
  width: min(1260px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  border-radius: 18px;
  border: 1px solid #cbdcf9;
  background: #f8fbff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.pencairan-import-head {
  padding: 16px 18px;
  border-bottom: 1px solid #dbe7fb;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pencairan-import-head h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.018em;
}

.pencairan-import-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.pencairan-import-modal .stepper {
  padding: 10px 16px;
  border-bottom: 1px solid #dbe7fb;
  background: #fff;
}

.pencairan-import-context {
  padding: 10px 16px;
  border-bottom: 1px solid #dbe7fb;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pencairan-import-context-item {
  border: 1px solid #d9e5fb;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pencairan-import-context-item span {
  font-size: 11px;
  color: #64748b;
}

.pencairan-import-context-item b {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.so-import-summary-bar.compact {
  gap: 8px;
}

.so-import-summary-bar.compact .so-import-summary-item {
  min-height: auto;
  padding: 8px 10px;
}

.so-import-summary-bar.compact .so-import-summary-item span {
  font-size: 11px;
}

.so-import-summary-bar.compact .so-import-summary-item b {
  font-size: 15px;
}

.pencairan-import-body {
  padding: 12px 16px;
  overflow: auto;
  min-height: 0;
}

.pencairan-import-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pencairan-import-foot {
  border-top: 1px solid #dbe7fb;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pencairan-import-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pencairan-nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.pencairan-nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.import-posting-visual {
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 45%, #eef2ff 100%);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.12);
}

.import-posting-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.import-posting-head b {
  font-size: 14px;
  font-weight: 700;
}

.import-posting-pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 rgba(37, 99, 235, 0.45);
  animation: importPulse 1.4s ease-in-out infinite;
}

.import-posting-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(59, 130, 246, 0.16);
}

.import-posting-track span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 40%, #22d3ee 75%, #3b82f6 100%);
  background-size: 220% 100%;
  animation: importProgressFlow 1.15s linear infinite;
}

.import-posting-visual p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #334155;
}

@keyframes importPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.42);
    transform: scale(0.95);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    transform: scale(1);
  }
}

@keyframes importProgressFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@media (max-width: 980px) {
  .pencairan-import-backdrop {
    padding: 12px;
  }

  .pencairan-import-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .pencairan-import-head h3 {
    font-size: 21px;
  }

  .pencairan-import-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pencairan-bulk-modal-body {
    grid-template-columns: 1fr;
  }

  .pencairan-import-target-grid {
    grid-template-columns: 1fr;
  }

  .pencairan-detail-grid {
    grid-template-columns: 1fr;
  }

  .pencairan-hero-grid,
  .pencairan-info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pencairan-info-row {
    gap: 4px;
  }

  .pencairan-amount-highlight {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .pencairan-info-list {
    grid-template-columns: 1fr;
  }
}

.sohub-workflow-wrap {
  padding: 14px;
}

.sohub-workflow-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.sohub-flow-chip {
  border: 1px solid #dbe7fb;
  background: #f8fbff;
  color: #1e293b;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sohub-flow-chip:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.sohub-flow-chip.active {
  border-color: #2563eb;
  background: #e9f1ff;
  color: #1d4ed8;
}

.sohub-flow-chip span {
  font-size: 12px;
  font-weight: 600;
}

.sohub-flow-chip b {
  font-size: 12px;
}

.sohub-flow-chip.tone-success {
  background: #ecfdf5;
}

.sohub-flow-chip.tone-warning {
  background: #fffbeb;
}

.sohub-flow-chip.tone-error {
  background: #fef2f2;
}

.sohub-flow-chip.tone-info {
  background: #eff6ff;
}

.sohub-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  align-items: center;
}

.sohub-view-tabs {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

.sohub-search {
  min-width: 0;
  width: 100%;
}

.sohub-filter-bar .input,
.sohub-filter-bar .select {
  width: 100%;
  min-width: 0;
}

.sohub-filter-bar .input::placeholder {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sohub-date-filter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 0.9fr) minmax(170px, 1fr);
  gap: 8px;
  align-items: center;
}

.sohub-date-filter .input,
.sohub-date-filter .select {
  width: 100%;
  min-width: 0;
}

.sohub-date-trigger,
.sohub-date-value {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}

.sohub-date-trigger {
  justify-content: space-between;
}

.sohub-date-trigger-label {
  font-weight: 700;
}

.sohub-date-trigger-caret {
  font-size: 12px;
  color: #64748b;
}

.sohub-date-value {
  justify-content: flex-start;
  color: #334155;
}

.sohub-date-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1601;
  width: min(540px, calc(100vw - 40px));
  max-height: min(82vh, 540px);
  overflow: auto;
  border: 1px solid #dbe5f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.sohub-date-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(1px);
}

.sohub-date-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sohub-date-popover-head h5 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.sohub-date-close {
  min-height: 28px;
  min-width: 28px;
  width: 28px;
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  justify-content: center;
  color: #64748b;
}

.sohub-date-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sohub-date-mode-tabs .tab {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #d7e3f4;
  background: #f8fbff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.sohub-date-mode-tabs .tab:hover {
  border-color: #bcd0ec;
  background: #f3f8ff;
}

.sohub-date-mode-tabs .tab.active {
  border-color: #7ea8ff;
  background: #e9f1ff;
  color: #1d4ed8;
}

.sohub-date-range-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sohub-date-range-grid label,
.sohub-date-year-row label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.sohub-date-month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sohub-date-month-grid .btn {
  min-height: 34px;
  justify-content: center;
  padding: 6px 8px;
  font-size: 12px;
}

.sohub-filter-reset {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.sohub-table-card {
  padding: 6px;
  overflow: hidden;
}

.sohub-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dbe7fb;
  background: #f8fbff;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 8px 12px;
}

.sohub-bulk-actions:not(.active) {
  opacity: 0.85;
}

.sohub-bulk-summary {
  display: grid;
  gap: 2px;
  color: #0f172a;
}

.sohub-bulk-summary b {
  font-size: 15px;
}

.sohub-bulk-summary small {
  color: #64748b;
  font-size: 12px;
}

.sohub-bulk-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sohub-check-col,
.sohub-check-cell {
  width: 44px;
  text-align: center;
}

.sohub-row-check,
[data-so-select-all] {
  width: 16px;
  height: 16px;
  accent-color: #2f6bff;
  cursor: pointer;
}

.stock-row-check,
[data-stock-select-all] {
  width: 16px;
  height: 16px;
  accent-color: #2f6bff;
  cursor: pointer;
}

.sohub-table tr.is-selected > td {
  background: #eef5ff !important;
}

.stock-table tr.is-selected > td {
  background: #eef5ff !important;
}

.sohub-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px 8px;
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
  flex-wrap: wrap;
}

.sohub-page-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
}

.sohub-page-info b {
  color: #0f172a;
}

.sohub-inline-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sohub-page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sohub-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.sohub-page-size {
  min-width: 74px;
  height: 34px;
}

.sohub-page-numbers {
  display: inline-flex;
  gap: 6px;
}

.sohub-page-numbers .btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
}

.btn.danger {
  border-color: #f5c2c7;
  color: #b42318;
  background: #fff5f6;
}

.btn.danger:hover {
  background: #ffe9eb;
  border-color: #ee9ca7;
}

.sohub-table .sub-cell {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #64748b;
}

.sohub-table .sub-cell.sub-code {
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: #475569;
  letter-spacing: 0.01em;
}

.sohub-sla-note {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sohub-status-cell {
  display: grid;
  gap: 1px;
  align-content: start;
}

.sohub-status-cell .status {
  width: fit-content;
}

.sohub-sla-note--warning {
  color: #b45309;
}

.sohub-sla-note--info {
  color: #1d4ed8;
}

.sohub-sla-note--success {
  color: #047857;
}

.sohub-sla-note--danger {
  color: #b91c1c;
}

.sohub-row-actions {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 122px;
}

.sohub-detail-actions {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sohub-row-actions .sohub-action-btn {
  width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 10px;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sohub-detail-actions .sohub-action-btn {
  width: auto;
  min-width: 148px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sohub-btn-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  opacity: 0.92;
}

.sohub-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sohub-row-actions .sohub-action-btn:hover {
  transform: translateY(-1px);
}

.sohub-row-actions .sohub-action-btn:active {
  transform: translateY(0);
}

.sohub-row-actions .sohub-action-flow {
  border-color: #c7d2fe;
  color: #1e40af;
  background: linear-gradient(180deg, #eef2ff 0%, #e5edff 100%);
}

.sohub-row-actions .sohub-action-flow:hover {
  border-color: #a5b4fc;
  background: linear-gradient(180deg, #e4ebff 0%, #dae5ff 100%);
}

.sohub-detail-actions .sohub-action-flow {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: linear-gradient(180deg, #eff6ff 0%, #e7f0ff 100%);
}

.sohub-row-actions .sohub-action-resi {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: linear-gradient(180deg, #f8fbff 0%, #ecf4ff 100%);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.sohub-row-actions .sohub-action-resi:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f0f7ff 0%, #e3efff 100%);
}

.sohub-row-actions .sohub-action-resi:disabled {
  border-color: #dbe7fb;
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.sohub-row-actions .sohub-action-so {
  border-color: #dbe7fb;
  color: #334155;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sohub-row-actions .sohub-action-so:hover {
  border-color: #c7d8f4;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
}

.sohub-detail-actions .sohub-action-resi,
.sohub-detail-actions .sohub-action-so {
  border-color: #cbd5e1;
  color: #334155;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sohub-row-actions .sohub-action-chat {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: linear-gradient(180deg, #eff6ff 0%, #e8f1ff 100%);
}

.sohub-row-actions .sohub-action-chat:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #e7f1ff 0%, #dfeeff 100%);
}

.sohub-detail-actions .sohub-action-chat {
  border-color: #c7d2fe;
  color: #3730a3;
  background: linear-gradient(180deg, #eef2ff 0%, #e7ecff 100%);
}

.sohub-row-actions .sohub-action-wa {
  border-color: #bbf7d0;
  color: #047857;
  background: linear-gradient(180deg, #f0fdf4 0%, #e7f9ef 100%);
}

.sohub-row-actions .sohub-action-wa:hover {
  border-color: #86efac;
  background: linear-gradient(180deg, #e8faef 0%, #def7e7 100%);
}

.sohub-detail-actions .sohub-action-wa {
  border-color: #a7f3d0;
  color: #065f46;
  background: linear-gradient(180deg, #ecfdf5 0%, #e4f9ee 100%);
}

.sohub-row-actions .sohub-action-wa:disabled {
  border-color: #dbe7fb;
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.sohub-table tbody tr[data-so-row] {
  cursor: pointer;
}

.sohub-table tbody tr[data-so-row]:hover > td {
  background: #f8fbff;
}

.sohub-expand {
  border: 1px solid #dbe7fb;
  background: #f8fbff;
  color: #1e3a8a;
  border-radius: 8px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  line-height: 1;
}

.sohub-table tr.is-expanded > td {
  background: #f8fbff;
}

.sohub-detail-row td {
  padding: 0 !important;
  background: #f8fbff;
}

.sohub-detail-wrap {
  border-top: 1px solid #dbe7fb;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.sohub-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.sohub-detail-head h4 {
  margin: 0;
  font-size: 17px;
}

.sohub-detail-head p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
}

.sohub-detail-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
}

.sohub-detail-kpis > div {
  position: relative;
  overflow: hidden;
  border: 1px solid #d3e2fb;
  border-radius: 12px;
  padding: 8px 10px 10px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 62%, #eef5ff 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 160ms ease;
}

.sohub-detail-kpis span {
  display: block;
  font-size: 9px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.sohub-detail-kpis b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.sohub-detail-kpis b.sohub-kpi-money {
  white-space: nowrap;
  font-size: 16px;
  letter-spacing: 0;
}

.sohub-detail-kpis b.sohub-kpi-money--sm {
  font-size: 15px;
}

.sohub-detail-kpis b.sohub-kpi-money--xs {
  font-size: 14px;
}

.sohub-detail-kpis > div::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6bff 0%, #38bdf8 45%, #10b981 100%);
  opacity: 0.92;
}

.sohub-detail-kpis > div:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.sohub-detail-kpis > div:last-child {
  border-color: #b8e8d4;
  background: linear-gradient(160deg, #ffffff 0%, #f1fbf6 62%, #eafaf1 100%);
}

.sohub-item-table-wrap {
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  overflow: auto;
  max-height: 280px;
  background: #fff;
}

.sohub-item-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sohub-item-table th,
.sohub-item-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.sohub-item-table tr {
  vertical-align: middle;
}

.sohub-item-table th:first-child,
.sohub-item-table td:first-child {
  width: 27%;
  min-width: 220px;
  max-width: 300px;
  padding-left: 14px;
  padding-right: 18px;
}

.sohub-item-table th:nth-child(3),
.sohub-item-table td:nth-child(3) {
  width: 190px;
  min-width: 190px;
  padding-left: 16px;
}

.sohub-item-table th:nth-child(4),
.sohub-item-table td:nth-child(4) {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

.sohub-item-table th:nth-child(2),
.sohub-item-table td:nth-child(2) {
  padding-right: 18px;
}

.sohub-item-table th:not(:first-child),
.sohub-item-table td:not(:first-child) {
  white-space: nowrap;
}

.sohub-item-table td:nth-child(9) {
  white-space: normal;
}

.sohub-item-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}

.sohub-item-table td .mono {
  font-weight: 500;
  color: #1e293b;
}

.sohub-item-product {
  display: grid;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
}

.sohub-copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.sohub-copy-inline .sohub-item-name-compact {
  flex: 1;
  min-width: 0;
}

.sohub-copy-btn {
  width: 22px;
  height: 22px;
  border: 1px solid #cddaf2;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: #45628f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 140ms ease;
  flex: 0 0 auto;
  padding: 0;
}

.sohub-copy-btn:hover {
  border-color: #8db2ff;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
}

.sohub-copy-btn:active {
  transform: translateY(0);
}

.sohub-copy-btn .sohub-btn-icon {
  width: 12px;
  height: 12px;
  margin-right: 0;
}

.sohub-copy-btn--sub {
  width: 20px;
  height: 20px;
}

.sohub-item-product b {
  font-size: 12px;
  font-weight: 400;
  color: #0f172a;
}

.sohub-item-name-compact {
  display: block;
  width: 100%;
  cursor: help;
}

.sohub-item-name-text {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 1.28;
  white-space: normal;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: calc(1.28em * 3);
  word-break: break-word;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.sohub-item-product small {
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sohub-name-tooltip {
  display: none;
  max-width: min(460px, calc(100vw - 24px));
  white-space: normal;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
}

.sohub-detail-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: start;
}

.sohub-detail-foot.sohub-detail-foot--triple {
  grid-template-columns: 1fr 1fr 1.1fr;
}

.sohub-insight-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 2px 0;
}

.sohub-insight-toolbar .btn {
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  border: 1px solid #c6d7f7;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: #1e3a8a;
}

.sohub-insight-toolbar .btn.primary {
  border-color: #2f6bff;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.sohub-insight-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.48) 0%, rgba(15, 23, 42, 0.62) 100%);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sohub-insight-modal {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid #bfd5ff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fafdff 0%, #f6faff 100%);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.3);
  animation: sohubInsightPop 200ms ease;
}

.sohub-insight-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #dbe7fb;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  position: sticky;
  top: 0;
  z-index: 1;
}

.sohub-insight-modal-head h5 {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
}

.sohub-insight-modal-body {
  padding: 12px;
}

.sohub-insight-card {
  margin: 0;
}

@keyframes sohubInsightPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timeline-wrap,
.sohub-detail-meta {
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.timeline-wrap h5 {
  margin: 0 0 6px;
  font-size: 12px;
}

.sohub-detail-meta p {
  margin: 0 0 4px;
  color: #334155;
  font-size: 12px;
}

.sohub-detail-meta h5 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #0f172a;
}

.sohub-detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sohub-detail-overview-item {
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}

.sohub-detail-overview-item--full {
  grid-column: 1 / -1;
}

.sohub-detail-overview-item span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.sohub-detail-overview-item b {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  word-break: break-word;
}

.sohub-buyer-note-block {
  margin-top: 8px;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
}

.sohub-buyer-note-block span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.sohub-buyer-note-block p {
  margin: 4px 0 0;
  color: #334155;
  line-height: 1.35;
  font-size: 12px;
}

.sohub-note-editor {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.sohub-note-editor label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sohub-note-textarea {
  min-height: 64px;
  resize: vertical;
  font-size: 12px;
}

.sohub-detail-foot .timeline {
  gap: 6px;
  padding-left: 14px;
}

.sohub-detail-foot .timeline li {
  font-size: 12px;
  line-height: 1.3;
}

.sohub-note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sohub-note-meta small {
  color: #64748b;
  font-size: 12px;
}

.sohub-import-center {
  display: grid;
  gap: 12px;
  border-color: #cfe0ff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.08);
  min-width: 0;
}

.sohub-import-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  min-width: 0;
}

.sohub-template-center {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.sohub-import-center > *,
.sohub-import-grid > *,
.sohub-template-center > * {
  min-width: 0;
}

.sales-hub-page .sohub-import-center .table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sales-hub-page .sohub-import-center .data-table {
  width: 100%;
  table-layout: fixed;
}

.sales-hub-page .sohub-import-center .data-table th,
.sales-hub-page .sohub-import-center .data-table td {
  white-space: normal;
  word-break: break-word;
}

.sales-hub-page .sohub-import-center .data-table .select,
.sales-hub-page .sohub-import-center .data-table .input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sales-hub-page .sohub-import-center .header-actions {
  min-width: 0;
}

.sales-hub-page .sohub-import-center .upload-zone {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.so-import-summary-bar {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.so-import-summary-item {
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  padding: 9px 10px;
  background: #ffffff;
  display: grid;
  gap: 2px;
}

.so-import-summary-item span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.so-import-summary-item b {
  font-size: 22px;
  line-height: 1.1;
  color: #0f172a;
}

.so-import-summary-item.tone-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.so-import-summary-item.tone-warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.so-import-summary-item.tone-error {
  background: #fef2f2;
  border-color: #fecaca;
}

.so-import-summary-item.tone-info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.so-import-summary-item.tone-neutral {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.so-import-preview-inline {
  padding: 10px 12px;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.so-import-preview-btn {
  min-width: 172px;
}

.so-import-preview-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 23, 0.42);
  display: grid;
  place-items: center;
  padding: 28px;
  backdrop-filter: blur(2px);
}

.so-import-preview-modal {
  width: min(1380px, calc(100vw - 72px));
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 72px);
  border-radius: 16px;
  border: 1px solid #c8d8f8;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.24);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.so-import-preview-head {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.so-import-preview-head h4 {
  margin: 0;
  font-size: 19px;
}

.so-import-preview-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.so-import-preview-body {
  padding: 10px 14px 14px;
  min-height: 0;
}

.so-import-preview-body .table-container {
  max-height: calc(100vh - 250px);
  overflow: auto;
  border-radius: 14px;
}

.so-import-preview-body .data-table {
  min-width: 1100px;
}

@media (max-width: 1280px) {
  .so-import-preview-modal-backdrop {
    padding: 16px;
  }

  .so-import-preview-modal {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  .so-import-preview-body .table-container {
    max-height: calc(100vh - 220px);
  }
}

.sohub-template-center.focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), 0 12px 28px rgba(15, 23, 42, 0.1);
}

.sohub-template-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.sohub-template-head h4 {
  margin: 0;
  font-size: 18px;
}

.sohub-template-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.so-template-quick-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #dbe7fb;
}

.so-template-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: center;
}

.so-template-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.so-template-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.so-template-card {
  border-radius: 16px;
  border-color: #dbe7fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: grid;
  gap: 10px;
}

.so-template-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #0f172a;
}

.so-template-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.so-template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.so-template-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #bfd4fb;
  background: linear-gradient(140deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.so-template-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.so-template-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.so-template-meta span {
  border: 1px solid #dbe7fb;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  text-align: center;
}

.so-template-notes {
  display: grid;
  gap: 4px;
}

.so-template-notes small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.so-template-help {
  border-style: dashed;
  border-color: #c6d7f8;
  background: #fbfdff;
}

.so-template-help h5 {
  margin: 0 0 8px;
  font-size: 15px;
}

.sohub-template-table th,
.sohub-template-table td {
  font-size: 12px;
  padding: 9px 10px;
  white-space: normal;
  word-break: break-word;
}

.sales-hub-page .sohub-table {
  table-layout: fixed;
  width: 100%;
}

.sales-hub-page .sohub-table th,
.sales-hub-page .sohub-table td {
  padding: 8px 7px;
  font-size: 12px;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}

.sales-hub-page .sohub-table td > .status {
  margin: 0 4px 4px 0;
}

.sales-hub-page .sohub-table .mono {
  font-size: 12px;
}

.sales-hub-page .sohub-inline-print-resi {
  margin-top: 8px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: linear-gradient(180deg, #f8fbff 0%, #ecf4ff 100%);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sales-hub-page .sohub-inline-print-resi svg {
  width: 13px;
  height: 13px;
}

.sales-hub-page .sohub-inline-print-resi:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f0f7ff 0%, #e3efff 100%);
  transform: translateY(-1px);
}

.sales-hub-page .table-container {
  overflow-x: hidden;
}

.sales-hub-page .filter-bar {
  min-width: 0;
}

.sales-hub-page .row-actions {
  gap: 4px;
}

.sales-hub-page .row-actions .btn {
  padding: 5px 7px;
  font-size: 11px;
}

.sales-hub-page .sohub-filter-bar .input,
.sales-hub-page .sohub-filter-bar .select {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 12.5px;
}

@media (max-width: 1440px) {
  .sales-hub-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sohub-workflow-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sohub-filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sohub-search {
    grid-column: 1 / -1;
  }

  .sohub-filter-bar .input,
  .sohub-filter-bar .select {
    max-width: 100%;
  }

  .sohub-date-filter {
    grid-template-columns: minmax(100px, 0.9fr) minmax(130px, 1fr);
  }

  .sohub-date-popover {
    width: min(94vw, 460px);
    max-height: min(86vh, 500px);
    padding: 12px;
  }

  .sohub-detail-head,
  .sohub-detail-foot {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sohub-detail-kpis {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }

  .sohub-detail-overview-grid {
    grid-template-columns: 1fr;
  }

  .sohub-import-grid {
    grid-template-columns: 1fr;
  }

  .sales-hub-page .page-header h1 {
    font-size: 34px;
  }

  .sohub-template-head {
    align-items: flex-start;
  }

  .so-template-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .so-template-quick-grid .btn {
    grid-column: span 1;
  }

  .so-template-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .sales-hub-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-kpi-grid > .product-kpi-card {
    grid-column: span 6 !important;
  }

  .pencairan-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sohub-workflow-bar,
  .sohub-filter-bar,
  .sohub-detail-kpis {
    grid-template-columns: 1fr;
  }

  .pencairan-page .filter-bar,
  .pencairan-detail-layout {
    grid-template-columns: 1fr;
  }

  .sohub-date-filter {
    grid-template-columns: 1fr;
  }

  .sohub-date-popover {
    width: min(360px, calc(100vw - 34px));
  }

  .sohub-date-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sohub-date-range-grid {
    grid-template-columns: 1fr;
  }

  .sohub-item-table th:first-child,
  .sohub-item-table td:first-child {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
  }

  .sohub-view-tabs {
    width: 100%;
  }

  .sales-hub-page .sohub-table {
    table-layout: auto;
  }

  .so-template-quick-grid {
    grid-template-columns: 1fr;
  }

  .so-template-card-grid {
    grid-template-columns: 1fr;
  }

  .so-template-library-head {
    align-items: flex-start;
  }
}

.sales-workflow .step {
  background: #f8fafc;
  border-color: #dbe5f7;
}

.sales-workflow .step.active {
  background: #e8f0ff;
  border-color: #2f6bff;
  color: #1d4ed8;
}

.so-hero {
  display: grid;
  gap: 12px;
  border-color: #d7e3fb;
  background: linear-gradient(160deg, #ffffff, #f5f9ff);
}

.so-hero-main h3 {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.so-hero-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1730;
}

.so-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.so-hero-meta > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.sales-chip {
  border-color: #dbe7fb;
  background: #f8fbff;
  color: #1e3a8a;
  font-weight: 600;
}

.shipment-summary span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.shipment-summary b {
  margin-top: 4px;
  display: inline-block;
  color: #0f172a;
}

.settings-page {
  background: #f6f8fc;
}

.settings-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 14px;
}

.settings-nav-panel {
  border-radius: 20px;
  position: sticky;
  top: 76px;
  height: fit-content;
}

.settings-nav-group {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.settings-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 4px 6px;
}

.settings-nav-item {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #334155;
  transition: all var(--transition);
}

.settings-nav-item:hover {
  background: #f8fbff;
  border-color: #dbe7fb;
}

.settings-nav-item.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 600;
}

.settings-nav-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b8da9;
  flex: 0 0 26px;
}

.settings-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-nav-item.active .settings-nav-icon {
  color: #1d4ed8;
}

.settings-main-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-x: hidden;
}

.settings-section-card {
  border-radius: 18px;
}

.settings-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.settings-section-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
}

.settings-section-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-field {
  display: grid;
  gap: 6px;
}

.settings-field span {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.settings-preview-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.settings-preview-card h4 {
  margin: 0;
  font-size: 13px;
}

.settings-preview-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}

.settings-preview-inline {
  border: 1px dashed #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
  color: #1e3a8a;
  padding: 10px 12px;
  font-size: 13px;
}

.settings-toggle-list {
  display: grid;
  gap: 8px;
}

.settings-toggle-row {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-toggle-row b {
  font-size: 13px;
}

.settings-toggle-row p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.settings-switch {
  width: 46px;
  height: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.settings-switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}

.settings-switch.on {
  background: #2f6bff;
  border-color: #1d4ed8;
}

.settings-switch.on span {
  transform: translateX(20px);
}

.settings-helper-panel {
  border-radius: 18px;
  position: sticky;
  top: 76px;
  height: fit-content;
}

.settings-helper-panel h3 {
  margin-top: 0;
}

.settings-helper-kpi {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.settings-helper-kpi > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.settings-helper-kpi span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.settings-helper-alert {
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  margin-top: 10px;
}

.settings-helper-alert b {
  font-size: 12px;
}

.settings-helper-alert p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #475569;
}

.settings-helper-alert.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.settings-helper-alert.danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.settings-channel-grid,
.settings-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-access-card {
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.role-access-parent,
.role-access-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.role-access-parent {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.role-access-children {
  display: grid;
  gap: 6px;
  padding-left: 2px;
}

.is-hidden-hpp-cell,
.is-hidden-hpp-block {
  display: none !important;
}

.page-user-role {
  overflow-x: hidden;
}

.page-user-role .grid,
.page-user-role .card,
.page-user-role .table-container,
.page-user-role .settings-grid {
  min-width: 0;
}

.page-user-role .data-table {
  width: 100%;
  table-layout: fixed;
}

.page-user-role .data-table th,
.page-user-role .data-table td {
  white-space: normal;
  word-break: break-word;
}

.user-access-settings-layout {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

.user-access-top-grid,
.user-access-mid-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  align-items: start;
}

.user-access-mid-grid {
  grid-template-columns: 1fr;
}

.user-access-settings-layout .grid,
.user-access-settings-layout .card,
.user-access-settings-layout .table-container,
.user-access-settings-layout .settings-grid,
.user-access-settings-layout .header-actions {
  min-width: 0;
}

.user-access-settings-layout .user-access-side-card .settings-grid {
  grid-template-columns: 1fr;
}

.user-access-settings-layout .user-access-main-card {
  padding: 12px 14px;
}

.user-access-settings-layout .user-access-main-card > h3 {
  margin: 0 0 8px !important;
  font-size: 16px;
  line-height: 1.2;
}

.user-access-settings-layout .user-access-main-card .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.user-access-settings-layout .user-access-main-card .settings-field {
  gap: 4px;
}

.user-access-settings-layout .user-access-main-card .settings-field span {
  font-size: 11px;
}

.user-access-settings-layout .user-access-main-card .input,
.user-access-settings-layout .user-access-main-card .select {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.user-access-settings-layout .user-access-main-card .settings-helper-alert {
  margin-top: 8px;
  padding: 8px 10px;
}

.user-access-settings-layout .user-access-main-card .settings-helper-alert p {
  font-size: 11.5px;
  line-height: 1.32;
}

.user-access-top-grid .settings-grid {
  grid-template-columns: 1fr !important;
  gap: 7px;
}

.user-access-top-grid .settings-field {
  width: 100%;
}

.user-access-top-grid .settings-helper-alert {
  margin-top: 10px;
}

.user-access-top-grid .header-actions {
  justify-content: flex-start;
}

.user-access-settings-layout .table-container {
  max-width: 100%;
  overflow-x: auto;
}

.user-access-settings-layout .data-table {
  width: 100%;
  table-layout: fixed;
}

.user-access-settings-layout .data-table th,
.user-access-settings-layout .data-table td {
  white-space: normal;
  word-break: break-word;
}

.user-access-role-table-wrap .data-table {
  table-layout: fixed;
}

.user-access-role-table-wrap .table-container {
  overflow-x: hidden;
}

.user-access-role-table-wrap .data-table th,
.user-access-role-table-wrap .data-table td {
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.28;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  vertical-align: middle;
}

.user-access-role-table-wrap .data-table th {
  font-size: 10.5px;
}

.user-access-role-table-wrap .data-table th:nth-child(1),
.user-access-role-table-wrap .data-table td:nth-child(1) {
  width: 19%;
}

.user-access-role-table-wrap .data-table th:nth-child(2),
.user-access-role-table-wrap .data-table td:nth-child(2) {
  width: 41%;
}

.user-access-role-table-wrap .data-table th:nth-child(3),
.user-access-role-table-wrap .data-table td:nth-child(3) {
  width: 15%;
}

.user-access-role-table-wrap .data-table th:nth-child(4),
.user-access-role-table-wrap .data-table td:nth-child(4) {
  width: 12%;
}

.user-access-role-table-wrap .data-table th:nth-child(5),
.user-access-role-table-wrap .data-table td:nth-child(5) {
  width: 13%;
}

.user-access-role-table-wrap .status {
  font-size: 9.5px;
  padding: 2px 7px;
}

.user-access-compact-btn {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 10.5px;
  max-width: 94px;
  width: 100%;
  white-space: normal;
  line-height: 1.15;
}

.user-access-user-table-wrap .table-container {
  overflow-x: hidden;
}

.user-access-user-table-wrap .data-table {
  table-layout: fixed;
}

.user-access-user-table-wrap .data-table th,
.user-access-user-table-wrap .data-table td {
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  vertical-align: middle;
}

.user-access-user-table-wrap .data-table th {
  font-size: 11px;
  font-weight: 700;
  color: #5f7391;
}

.user-access-user-table-wrap .data-table tbody tr {
  height: 64px;
}

.user-access-user-table-wrap .data-table td:nth-child(1),
.user-access-user-table-wrap .data-table td:nth-child(4) {
  font-weight: 600;
}

.user-access-user-table-wrap .data-table th:nth-child(1),
.user-access-user-table-wrap .data-table td:nth-child(1) {
  width: 13%;
  white-space: nowrap;
}

.user-access-user-table-wrap .data-table th:nth-child(2),
.user-access-user-table-wrap .data-table td:nth-child(2) {
  width: 17%;
  white-space: nowrap;
}

.user-access-user-table-wrap .data-table th:nth-child(3),
.user-access-user-table-wrap .data-table td:nth-child(3) {
  width: 24%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155;
  font-size: 10.8px;
}

.user-access-user-table-wrap .data-table th:nth-child(4),
.user-access-user-table-wrap .data-table td:nth-child(4) {
  width: 13%;
  white-space: nowrap;
}

.user-access-user-table-wrap .data-table th:nth-child(5),
.user-access-user-table-wrap .data-table td:nth-child(5) {
  width: 14%;
  white-space: nowrap;
}

.user-access-user-table-wrap .data-table th:nth-child(6),
.user-access-user-table-wrap .data-table td:nth-child(6) {
  width: 9%;
  text-align: center;
}

.user-access-user-table-wrap .data-table th:nth-child(7),
.user-access-user-table-wrap .data-table td:nth-child(7) {
  width: 11%;
  text-align: center;
  white-space: nowrap;
}

.user-access-user-table-wrap .status {
  font-size: 9.5px;
  padding: 2px 7px;
}

.user-access-user-table-wrap .data-table td:nth-child(7) .btn {
  min-width: 34px;
  min-height: 30px;
  padding: 4px;
  font-size: 10.5px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.user-access-icon-btn {
  border-radius: 10px;
}

.user-access-icon-btn .btn-icon {
  width: 14px;
  height: 14px;
  margin: 0;
}

.user-access-icon-btn .btn-icon svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1320px) {
  .page-user-role > .grid {
    grid-template-columns: 1fr !important;
  }

  .user-access-top-grid,
  .user-access-mid-grid {
    grid-template-columns: 1fr;
  }

  .user-access-settings-layout .user-access-main-card .settings-grid {
    grid-template-columns: 1fr;
  }

  #topbar[data-route="user-role"] .top-right {
    justify-content: flex-start;
  }
}

.settings-channel-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-mapping-table-wrap {
  overflow-x: hidden;
}

.settings-mapping-table {
  table-layout: fixed;
  width: 100%;
}

.settings-mapping-table th,
.settings-mapping-table td {
  padding: 8px 8px;
  font-size: 11.5px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
}

.settings-mapping-table th:nth-child(1),
.settings-mapping-table td:nth-child(1) {
  width: 14%;
}

.settings-mapping-table th:nth-child(2),
.settings-mapping-table td:nth-child(2) {
  width: 20%;
}

.settings-mapping-table th:nth-child(3),
.settings-mapping-table td:nth-child(3),
.settings-mapping-table th:nth-child(4),
.settings-mapping-table td:nth-child(4) {
  width: 22%;
}

.settings-mapping-table th:nth-child(5),
.settings-mapping-table td:nth-child(5) {
  width: 12%;
}

.settings-mapping-table th:nth-child(6),
.settings-mapping-table td:nth-child(6) {
  width: 10%;
  text-align: center;
}

.settings-mapping-table .select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 11px;
}

.settings-savebar {
  display: none;
  position: sticky;
  bottom: 10px;
  z-index: 25;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 14px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-medium);
}

.settings-savebar.visible {
  display: flex;
}

.profile-page {
  background: #f6f8fc;
}

.profile-page .tabs {
  gap: 10px;
}

.profile-page .tabs .tab {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #d4ddeb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #0f172a;
  font-weight: 600;
  padding: 10px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.profile-page .tabs .tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.profile-page .tabs .tab:hover {
  transform: translateY(-1px);
  border-color: #b7c9e8;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.profile-page .tabs .tab:hover::before {
  opacity: 1;
}

.profile-page .tabs .tab:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.profile-page .tabs .tab.active {
  border-color: #7fb0ff;
  color: #1d4ed8;
  background: linear-gradient(180deg, #eef5ff, #e4efff);
  box-shadow: 0 12px 22px rgba(47, 107, 255, 0.2);
}

.profile-summary {
  text-align: center;
}

.profile-summary-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(140deg, #334155, #1f2f4d);
  color: #fff;
  display: grid;
  place-content: center;
  font-size: 30px;
  font-weight: 800;
}

.profile-summary h3 {
  margin: 0;
  font-size: 24px;
}

.profile-summary p {
  margin: 5px 0 12px;
  color: #64748b;
}

.marketplace-page {
  background: #f6f8fc;
  min-width: 0;
  width: 100%;
}

.marketplace-page .marketplace-kpi-card {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.marketplace-page .marketplace-kpi-card:hover {
  border-color: #c7d9f8;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.marketplace-page .marketplace-kpi-card.active {
  border-color: #6fa4ff;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.14);
}

.marketplace-page .marketplace-product-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.marketplace-page .marketplace-product-table th,
.marketplace-page .marketplace-product-table td {
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #e7edf7;
}

.marketplace-page .marketplace-product-table th {
  font-size: 13px;
  color: #60738f;
  font-weight: 650;
  letter-spacing: 0.005em;
  background: #f8fbff;
  position: sticky;
  top: 0;
  z-index: 2;
  line-height: 1.2;
}

.marketplace-page .marketplace-product-table td {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.3;
  font-weight: 400;
}

.marketplace-page .marketplace-product-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.marketplace-page .marketplace-product-table tbody tr:hover td {
  background: #f3f8ff;
}

.marketplace-page .marketplace-product-table tbody tr.is-selected td {
  background: #eaf2ff !important;
}

.marketplace-page .marketplace-product-table td:nth-child(1),
.marketplace-page .marketplace-product-table td:nth-child(2),
.marketplace-page .marketplace-product-table td:nth-child(3),
.marketplace-page .marketplace-product-table td:nth-child(4),
.marketplace-page .marketplace-product-table td:nth-child(5),
.marketplace-page .marketplace-product-table td:nth-child(7),
.marketplace-page .marketplace-product-table td:nth-child(11),
.marketplace-page .marketplace-product-table td:nth-child(12),
.marketplace-page .marketplace-product-table td:nth-child(13),
.marketplace-page .marketplace-product-table td:nth-child(14),
.marketplace-page .marketplace-product-table td:nth-child(15) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marketplace-page .marketplace-product-table td:nth-child(6) {
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
}

.marketplace-page .marketplace-product-table td:nth-child(8),
.marketplace-page .marketplace-product-table td:nth-child(9),
.marketplace-page .marketplace-product-table td:nth-child(10) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.marketplace-page .marketplace-product-table .status {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
}

.marketplace-page .marketplace-product-table .mono {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.marketplace-page .marketplace-product-table .sohub-row-check,
.marketplace-page .marketplace-product-table [data-marketplace-product-select-all] {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.marketplace-page .card,
.marketplace-page .table-container,
.marketplace-page .filter-bar {
  min-width: 0;
  width: 100%;
}

.marketplace-page .table-container {
  overflow-x: hidden;
}

.marketplace-page .marketplace-product-table th:nth-child(n + 7),
.marketplace-page .marketplace-product-table td:nth-child(n + 7) {
  display: none;
}

.marketplace-page .marketplace-product-table th:nth-child(1) {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.marketplace-page .marketplace-product-table th:nth-child(2) {
  width: 30%;
}

.marketplace-page .marketplace-product-table th:nth-child(3) {
  width: 18%;
}

.marketplace-page .marketplace-product-table th:nth-child(4) {
  width: 16%;
}

.marketplace-page .marketplace-product-table th:nth-child(5) {
  width: 26%;
}

.marketplace-page .marketplace-product-table th:nth-child(6) {
  width: 10%;
  text-align: right;
}

.marketplace-page .marketplace-product-table td:nth-child(1) {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.marketplace-page .filter-bar > .input {
  min-width: 250px;
}

.marketplace-page .filter-bar > .select {
  min-width: 145px;
  max-width: 220px;
}

#topbar[data-route="mapping-produk"] {
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

#topbar[data-route="mapping-produk"] .top-left {
  flex: 1 1 360px;
  min-width: 0;
}

#topbar[data-route="mapping-produk"] .top-right {
  flex: 1 1 520px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#topbar[data-route="mapping-produk"] .search-box {
  width: 100%;
  min-width: 0;
}

#topbar[data-route="mapping-produk"] .top-right .select {
  min-width: 170px;
  max-width: 240px;
}

#topbar[data-route="mapping-produk"] .top-right .icon-btn {
  white-space: nowrap;
}

.marketplace-channel-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.marketplace-store-picker {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #d8e4f6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.marketplace-store-picker-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.marketplace-store-picker-head h3 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
}

.marketplace-store-picker-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.marketplace-store-pill-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.marketplace-store-pill {
  border: 1px solid #d8e4f6;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.marketplace-store-pill:hover {
  border-color: #bfd3f8;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.marketplace-store-pill.active {
  border-color: #6fa4ff;
  background: #f3f8ff;
  box-shadow: 0 12px 24px rgba(47, 107, 255, 0.12);
}

.marketplace-store-pill-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid #c8daf7;
  background: linear-gradient(140deg, #e8f0ff, #d5e6ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 38px;
}

.marketplace-store-pill-logo.all {
  background: linear-gradient(140deg, #dbeafe, #bfdbfe);
}

.marketplace-store-pill-body {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1;
}

.marketplace-store-pill-body b {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
}

.marketplace-store-pill-body small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
}

.marketplace-channel-card {
  border-radius: 18px;
  display: grid;
  gap: 8px;
}

.marketplace-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.marketplace-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, #dbeafe, #bfdbfe);
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.marketplace-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.marketplace-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.marketplace-channel-card h3 {
  margin: 0;
  font-size: 17px;
}

.marketplace-channel-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.marketplace-store-title {
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.marketplace-channel-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.marketplace-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.marketplace-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #dbe6f7;
  background: #f8fbff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.marketplace-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 12px;
}

.marketplace-stat-row span {
  color: #64748b;
}

.marketplace-stat-row b {
  color: #0f172a;
}

.marketplace-error {
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
}

.marketplace-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.marketplace-compare > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.marketplace-compare span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.marketplace-monitor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.pricing-page {
  background: #f6f8fc;
}

.harga-produk-page {
  min-width: 0;
  width: 100%;
}

.harga-produk-page > * {
  min-width: 0;
}

.harga-produk-page .grid,
.harga-produk-page .split,
.harga-produk-page .card,
.harga-produk-page .table-container,
.harga-produk-page .data-table {
  min-width: 0;
}

.harga-produk-page .split {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
  gap: 10px;
  align-items: start;
}

.harga-produk-page .pricing-drawer-preview {
  padding: 12px;
}

.harga-produk-page .pricing-drawer-preview h3 {
  font-size: 24px;
  line-height: 1.12;
}

.harga-produk-page .filter-bar {
  gap: 7px;
}

.harga-produk-page .filter-bar .pricing-search {
  min-width: 220px;
  flex: 1 1 250px;
}

.harga-produk-page .filter-bar .select {
  min-width: 108px;
  flex: 1 1 118px;
  padding: 8px 10px;
  font-size: 12px;
}

.harga-produk-page .table-container {
  overflow-x: hidden;
}

.harga-produk-page .data-table {
  table-layout: fixed;
  width: 100%;
}

.harga-produk-page .data-table th,
.harga-produk-page .data-table td {
  padding: 8px 8px;
  font-size: 12px;
  line-height: 1.26;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.harga-produk-page .data-table th:nth-child(1),
.harga-produk-page .data-table td:nth-child(1) {
  width: 155px;
}

.harga-produk-page .data-table th:nth-child(2),
.harga-produk-page .data-table td:nth-child(2) {
  width: 92px;
}

.harga-produk-page .data-table th:nth-child(3),
.harga-produk-page .data-table td:nth-child(3) {
  width: 92px;
}

.harga-produk-page .data-table th:nth-child(4),
.harga-produk-page .data-table td:nth-child(4) {
  width: 84px;
}

.harga-produk-page .data-table th:nth-child(5),
.harga-produk-page .data-table td:nth-child(5),
.harga-produk-page .data-table th:nth-child(6),
.harga-produk-page .data-table td:nth-child(6),
.harga-produk-page .data-table th:nth-child(7),
.harga-produk-page .data-table td:nth-child(7),
.harga-produk-page .data-table th:nth-child(8),
.harga-produk-page .data-table td:nth-child(8),
.harga-produk-page .data-table th:nth-child(9),
.harga-produk-page .data-table td:nth-child(9),
.harga-produk-page .data-table th:nth-child(10),
.harga-produk-page .data-table td:nth-child(10),
.harga-produk-page .data-table th:nth-child(11),
.harga-produk-page .data-table td:nth-child(11) {
  width: 84px;
}

.harga-produk-page .row-actions {
  gap: 4px;
  flex-wrap: nowrap;
}

.harga-produk-page .row-actions .btn {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
}

@media (max-width: 1440px) {
  .harga-produk-page .split {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 270px) !important;
  }

  .harga-produk-page .data-table th,
  .harga-produk-page .data-table td {
    font-size: 11.5px;
    padding: 7px 7px;
  }
}

@media (max-width: 1200px) {
  .harga-produk-page .split {
    grid-template-columns: 1fr !important;
  }
}

.pricing-search {
  min-width: 320px;
}

.muted {
  color: #64748b;
}

.price-main {
  font-weight: 800;
  color: #0f172a;
}

.price-stack {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid #dbe7fb;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 600;
}

.price-change {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 9px;
}

.price-change.up {
  background: #ecfdf5;
  color: #047857;
}

.price-change.down {
  background: #fef2f2;
  color: #b91c1c;
}

.price-change.flat {
  background: #f1f5f9;
  color: #475569;
}

.pricing-drawer-preview h4 {
  margin: 14px 0 8px;
  font-size: 13px;
}

.pricing-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pricing-stat-grid > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.pricing-stat-grid span {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pricing-stat-grid b {
  font-size: 15px;
  line-height: 1.2;
}

.pricing-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0 10px;
}

.pricing-promo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-card {
  border-radius: 18px;
  min-height: 210px;
  display: grid;
  gap: 10px;
}

.promo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.promo-card-top h3 {
  margin: 0;
  font-size: 17px;
}

.promo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 12px;
  color: #475569;
}

.promo-meta b {
  color: #0f172a;
}

.inventory-page .filter-bar {
  border-radius: 16px;
}

.inventory-page .filter-bar .input:first-child {
  min-width: 320px;
}

.stok-produk-page {
  min-width: 0;
  width: 100%;
}

.stok-produk-page > * {
  min-width: 0;
}

.stok-produk-page .page-header {
  gap: 10px;
}

.stok-produk-page .title-block h1 {
  font-size: 28px;
}

.stok-produk-page .title-block p {
  font-size: 13px;
}

.stok-produk-page .grid[style*="repeat(5"] {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px;
}

.stok-produk-page .kpi-card {
  min-height: 96px;
  padding: 11px 13px;
}

.stok-produk-page .kpi-title {
  font-size: 12px;
}

.stok-produk-page .kpi-value {
  font-size: 24px;
}

.stok-produk-page .kpi-trend {
  font-size: 11px;
}

.stok-produk-page .filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(6, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
}

.stok-produk-page .filter-bar .input,
.stok-produk-page .filter-bar .select {
  min-width: 0;
  width: 100%;
}

.stok-produk-page .filter-bar .pills {
  grid-column: 1 / -1;
}

.stok-produk-page .card,
.stok-produk-page .table-container {
  min-width: 0;
}

.stok-produk-page .table-container {
  overflow-x: hidden;
}

.stok-produk-page .stock-table {
  width: 100%;
  table-layout: fixed;
}

.stok-produk-page .stock-table th,
.stok-produk-page .stock-table td {
  padding: 9px 8px;
  font-size: 12px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.stok-produk-page .stock-table th {
  font-size: 11px;
}

.stok-produk-page .stock-table th:nth-child(1),
.stok-produk-page .stock-table td:nth-child(1) {
  width: 36px;
  text-align: center;
}

.stok-produk-page .stock-table th:nth-child(2),
.stok-produk-page .stock-table td:nth-child(2) {
  width: 26%;
}

.stok-produk-page .stock-table th:nth-child(3),
.stok-produk-page .stock-table td:nth-child(3) {
  width: 10%;
  white-space: nowrap;
}

.stok-produk-page .stock-table th:nth-child(4),
.stok-produk-page .stock-table td:nth-child(4) {
  width: 7%;
  white-space: nowrap;
}

.stok-produk-page .stock-table th:nth-child(5),
.stok-produk-page .stock-table td:nth-child(5) {
  width: 17%;
}

.stok-produk-page .stock-table td small {
  font-size: 11px;
  line-height: 1.3;
}

@media (max-width: 1480px) {
  .stok-produk-page .grid[style*="repeat(5"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .stok-produk-page .filter-bar {
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 1024px) {
  .stok-produk-page .grid[style*="repeat(5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stok-produk-page .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stok-produk-page .filter-bar .input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .stok-produk-page .grid[style*="repeat(5"] {
    grid-template-columns: 1fr !important;
  }

  .stok-produk-page .filter-bar {
    grid-template-columns: 1fr;
  }
}

.stock-update-modern {
  border: 1px solid #d8e6ff;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 52%, #f1f7ff 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
}

.stock-update-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stock-update-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stock-update-hero-card {
  border: 1px solid #d7e4fb;
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.stock-update-hero-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.stock-update-hero-card b {
  font-size: 18px;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-update-hero-card small {
  font-size: 12px;
  color: #5b6f8e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-update-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stock-update-step {
  border: 1px solid #d8e6fb;
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
}

.stock-update-step i {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #c5d8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
}

.stock-update-step b {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 2px;
}

.stock-update-step p {
  margin: 0;
  font-size: 12px;
  color: #5f738e;
  line-height: 1.38;
}

.stock-update-step.is-active {
  border-color: #3b82f6;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.14);
}

.stock-update-controls {
  border: 1px solid #d7e4fb;
  border-radius: 14px;
  background: #fff;
  padding: 11px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 10px 12px;
  align-items: end;
}

.stock-update-control {
  display: grid;
  gap: 6px;
}

.stock-update-control span {
  font-size: 12px;
  font-weight: 700;
  color: #4b5f7a;
}

.stock-update-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stock-update-actions .btn {
  min-width: 160px;
}

.stock-update-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 22px;
}

.stock-update-popup {
  width: min(1320px, calc(100vw - 44px));
  max-height: calc(100vh - 48px);
  border-radius: 20px;
  border: 1px solid #d6e4fb;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  padding: 16px;
  overflow: auto;
}

.stock-update-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stock-update-popup-head h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.stock-mapping-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 22px;
}

.stock-mapping-popup {
  width: min(1320px, calc(100vw - 44px));
  max-height: calc(100vh - 48px);
  border-radius: 20px;
  border: 1px solid #d6e4fb;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  padding: 16px;
  overflow: auto;
}

.stock-mapping-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stock-mapping-popup-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.stock-mapping-popup-head p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.42;
  color: #5b6d88;
}

.stock-mapping-popup-table {
  margin-top: 10px;
}

.stock-mapping-popup .data-table .select {
  min-width: 190px;
  background: #fff;
}

.stock-mapping-popup-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d9e6fb;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0), #f4f8ff 40%);
}

.inventory-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.inventory-table .data-table td,
.inventory-table .data-table th {
  padding-top: 16px;
  padding-bottom: 16px;
}

.stock-row td {
  vertical-align: top;
}

.diff-positive {
  color: #10b981;
  font-weight: 700;
}

.diff-negative {
  color: #ef4444;
  font-weight: 700;
}

.diff-zero {
  color: #64748b;
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.qty-in {
  color: #10b981;
  font-weight: 700;
}

.qty-out {
  color: #ef4444;
  font-weight: 700;
}

.ledger-row {
  cursor: pointer;
}

.ledger-row.expanded {
  background: #eef4ff;
}

.ledger-detail-row td {
  background: #f8fbff;
  border-top: 0;
}

.ledger-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 2px;
}

.ledger-detail-grid > div {
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.po-hero {
  display: grid;
  gap: 12px;
  border-color: #d7e3fb;
  background: linear-gradient(160deg, #ffffff, #f6f9ff);
}

.po-hero-main h3 {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.po-hero-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1730;
}

.po-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.po-hero-meta > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.po-sticky-total {
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 8px;
  z-index: 3;
}

.po-sticky-total b {
  font-size: 18px;
  color: #1e3a8a;
}

.progress {
  width: 100%;
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #059669);
}

.drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--c-border);
  box-shadow: var(--shadow-medium);
  z-index: 45;
  transition: right var(--transition);
  padding: 18px;
  overflow: auto;
}

.drawer.open {
  right: 0;
}

.drawer-marketplace-manual {
  width: 680px;
  max-width: min(680px, 100vw);
  padding: 20px 20px 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

.mm-drawer-wrap {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 34px);
}

.mm-head h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.mm-head p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4b5f7a;
  max-width: 92%;
}

.mm-form-card {
  border-radius: 18px;
  border: 1px solid #d8e5fb;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.mm-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #2f6bff;
  text-transform: uppercase;
  margin-top: 2px;
}

.mm-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.mm-form-grid--ops {
  margin-top: 2px;
}

.mm-col-4 {
  grid-column: span 4;
}

.mm-col-5 {
  grid-column: span 5;
}

.mm-col-6 {
  grid-column: span 6;
}

.mm-col-7 {
  grid-column: span 7;
}

.mm-col-8 {
  grid-column: span 8;
}

.mm-field {
  gap: 5px;
}

.mm-field span {
  font-size: 13px;
  font-weight: 700;
  color: #42536b;
}

.mm-field--warehouse {
  min-width: 0;
}

.mm-field--status {
  min-width: 0;
}

.drawer-marketplace-manual .mm-field .input,
.drawer-marketplace-manual .mm-field .select {
  height: 50px;
  border-radius: 14px;
  border-color: #d4e1f5;
  background: #fff;
  font-size: 14px;
  padding: 0 14px;
}

.drawer-marketplace-manual .mm-field .input::placeholder {
  color: #90a0b5;
}

.drawer-marketplace-manual .mm-field .input:focus,
.drawer-marketplace-manual .mm-field .select:focus {
  border-color: #2f6bff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.mm-helper {
  margin-top: 2px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
  padding: 12px 14px;
}

.mm-helper h4 {
  margin: 0;
  font-size: 15px;
  color: #15233d;
}

.mm-helper p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.42;
  color: #4c5e78;
}

.mm-actions {
  position: sticky;
  bottom: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: 1px solid #d4e3fa;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(7px);
  padding: 8px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.mm-actions .btn {
  height: 44px;
  border-radius: 12px;
  min-width: 130px;
}

.mm-actions .btn.primary {
  min-width: 190px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 44;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  z-index: 60;
}

.toast {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

.chart-box {
  min-height: 220px;
  border: 1px dashed #bfdbfe;
  border-radius: 12px;
  background: repeating-linear-gradient(
    -45deg,
    #eff6ff,
    #eff6ff 8px,
    #f8fbff 8px,
    #f8fbff 16px
  );
  display: grid;
  place-content: center;
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
}

.mobile-menu {
  display: none;
}

.app-shell.auth-mode {
  grid-template-columns: 1fr;
}

.app-shell.auth-mode .sidebar,
.app-shell.auth-mode .topbar {
  display: none;
}

.app-shell.auth-mode .content {
  padding: 0;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 38%, #f8fafc 100%);
}

.login-branding {
  padding: 56px 64px;
  display: grid;
  align-items: center;
}

.login-brand-wrap {
  max-width: 620px;
}

.login-kicker {
  margin: 0 0 12px;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

.login-brand-wrap h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.login-sub {
  margin: 14px 0 0;
  color: #475569;
  max-width: 540px;
  font-size: 15px;
}

.login-preview {
  margin-top: 28px;
  border: 1px solid #dbe6fb;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.12);
}

.login-preview-top {
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fbff, #f1f5f9);
}

.login-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.login-preview-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.login-mock-card {
  height: 92px;
  border-radius: 12px;
  background: linear-gradient(120deg, #dbeafe, #bfdbfe);
}

.login-mock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.login-mock-grid div {
  height: 58px;
  border-radius: 10px;
  background: #e2e8f0;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 36px;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid #dbe5f7;
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.login-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.login-card p {
  margin: 8px 0 16px;
  color: #64748b;
  font-size: 14px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 90px 1fr;
  }

  .sidebar .hide-collapse {
    display: none;
  }

  .submenu {
    display: none;
  }

  .search-box {
    min-width: 0;
    width: 45vw;
  }

  .split {
    grid-template-columns: 1fr;
  }

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

  .datahub-type-grid,
  .datahub-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-visual-grid,
  .report-main-grid {
    grid-template-columns: 1fr;
  }

  .finance-donut-grid {
    grid-template-columns: 1fr;
  }

  .finance-diagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .po-hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .so-hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav-panel,
  .settings-helper-panel {
    position: static;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-branding {
    padding: 24px 18px 8px;
  }

  .login-brand-wrap h1 {
    font-size: 30px;
  }

  .login-panel {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar {
    padding: 10px 12px;
  }

  .content {
    padding: 14px;
  }

  .search-box {
    width: 100%;
  }

  .top-left {
    flex: 1;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .filter-bar {
    top: 120px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .datahub-type-grid,
  .datahub-template-grid {
    grid-template-columns: 1fr;
  }

  .pricing-promo-grid {
    grid-template-columns: 1fr;
  }

  .group-card-grid {
    grid-template-columns: 1fr;
  }

  .group-import-main {
    grid-template-columns: 1fr;
  }

  .product-list-page {
    min-height: auto;
    grid-template-rows: none;
  }

  .product-list-page > section:last-of-type .card {
    height: auto;
    grid-template-rows: none;
  }

  .product-list-page .table-container {
    height: auto;
  }

  .product-add-layout {
    grid-template-columns: 1fr;
  }

  .sticky-side-card {
    position: static;
  }

  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-kpi-grid > .product-kpi-card {
    grid-column: span 12 !important;
  }

  .report-filter-panel {
    top: 120px;
  }

  .finance-donut-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .finance-table-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .finance-diagram-grid {
    grid-template-columns: 1fr;
  }

  .po-hero-meta {
    grid-template-columns: 1fr;
  }

  .so-hero-meta {
    grid-template-columns: 1fr;
  }

  .settings-grid,
  .settings-channel-grid,
  .settings-role-grid,
  .role-access-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-channel-grid,
  .marketplace-monitor-row,
  .marketplace-compare {
    grid-template-columns: 1fr;
  }

  .stock-update-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-update-flow {
    grid-template-columns: 1fr;
  }

  .stock-update-controls {
    grid-template-columns: 1fr;
  }

  .stock-update-actions {
    justify-content: flex-start;
  }

  .stock-update-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .stock-update-popup-backdrop {
    padding: 10px;
  }

  .stock-update-popup {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
    padding: 12px;
  }

  .stock-update-popup-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-update-popup-head h3 {
    font-size: 24px;
  }

  .stock-mapping-popup-backdrop {
    padding: 10px;
  }

  .stock-mapping-popup {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
    padding: 12px;
  }

  .stock-mapping-popup-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stock-mapping-popup-head h3 {
    font-size: 24px;
  }

  .stock-mapping-popup-head p {
    font-size: 14px;
  }

  .stock-mapping-popup .data-table .select {
    min-width: 150px;
  }

  .drawer-marketplace-manual {
    width: 100vw;
    max-width: 100vw;
    padding: 14px 14px 12px;
  }

  .mm-head h3 {
    font-size: 24px;
  }

  .mm-head p {
    font-size: 14px;
    max-width: 100%;
  }

  .mm-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mm-col-4,
  .mm-col-5,
  .mm-col-6,
  .mm-col-7,
  .mm-col-8 {
    grid-column: auto;
  }

  .mm-actions {
    flex-wrap: wrap;
  }

  .mm-actions .btn,
  .mm-actions .btn.primary {
    width: 100%;
    min-width: 0;
  }

  .settings-savebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
