body.portal-dashboard-open{background:#f8f7f4!important;color:#102b48!important;--bs-body-color:#102b48;--bs-body-bg:#f8f7f4;--bs-secondary-color:#53677b;--bs-border-color:#dce5ec}

/* Photo-led catalog; keep the live action ahead of the order queue on mobile. */
#dashboard .workspace-grid { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.8fr); }
#dashboard .workspace-live { border-radius: 20px; padding: 28px; background: radial-gradient(ellipse at top right, #174558, #081d32 75%); }
.workspace-live header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
#workspace-products-count { font-size: 24px; font-weight: 750; line-height: 1.35; max-width: 20ch; }
#workspace-delivery { font-size: 14px; color: #cedfea; }
#dashboard .workspace-live .btn-primary { font-weight: 750; min-height: 48px; }
#dashboard .workspace-surface { border-radius: 20px; }
#dashboard .workspace-product { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; border-radius: 14px; overflow: hidden; }
#dashboard .workspace-product img, #dashboard .workspace-photo-placeholder { width: 100%; height: 180px; border-radius: 0; object-fit: cover; }
.workspace-product-copy { padding: 16px; }
.workspace-product-price { display: block; color: #102b48; font-size: 22px; font-weight: 800; line-height: 1.4; margin-top: 6px; }
.workspace-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.workspace-grid-empty { grid-column: 1 / -1; }
.workspace-catalog-item { border: 1px solid #dce5ec; border-radius: 16px; overflow: hidden; min-width: 0; background: #fff; }
.workspace-catalog-photo { aspect-ratio: 4 / 3; background: #eef3f5; display: grid; place-items: center; }
.workspace-catalog-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.workspace-catalog-photo > span { font-size: 48px; color: #567788; }
.workspace-catalog-copy { padding: 18px; overflow-wrap: anywhere; }
#dashboard .workspace-catalog-copy .product-title { font-size: 16px; font-weight: 750; line-height: 1.5; margin: 0; }
.workspace-catalog-meta { font-size: 12px; margin: 6px 0 0; }
.workspace-catalog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
#dashboard .workspace-catalog-actions .btn { min-width: 96px; }
#dashboard .portal-module-head--catalog .portal-counts { display: flex !important; flex-wrap: wrap; gap: 12px 24px !important; }
#dashboard .portal-module-head--catalog .portal-counts > span { display: flex !important; flex-direction: row !important; align-items: baseline; gap: 8px; min-width: 0; width: auto; padding: 0; }
#dashboard .portal-module-head--catalog .portal-counts strong { font-size: 18px; }
#dashboard .portal-module-head--catalog .card-body { padding: 22px; }
#dashboard #catalog-form-card { align-self: flex-start; }
#dashboard #catalog-form-card .card-body { align-content: start; }
@media(max-width:1000px) {
  #dashboard .workspace-grid { grid-template-columns: 1fr; }
  #dashboard .workspace-catalog #workspace-products { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media(max-width:600px) {
  #dashboard .workspace-live { padding: 22px; }
  #dashboard .workspace-catalog #workspace-products { grid-template-columns: 1fr; }
  #dashboard .workspace-product { flex-direction: row; align-items: center; }
  #dashboard .workspace-product img, #dashboard .workspace-photo-placeholder { width: 100px; height: 126px; }
  .workspace-product-copy { padding: 12px; min-width: 0; }
}
#dashboard .sidebar-nav,#dashboard .sidebar-nav .simplebar-content-wrapper{background:#081d32!important}#dashboard .top-header .navbar{background:#fff!important}#dashboard .top-header input::placeholder{color:#53677b!important;opacity:1}#dashboard .sidebar-wrapper .menu-title{color:#e8f4fc!important}.workspace-priority:has(#workspace-retry){background:#ffeadf}.workspace-home h1{font-weight:800}
#dashboard .main-wrapper{background:#f8f7f4}#dashboard .top-header{background:#fff!important;border-bottom:1px solid #dce5ec}#dashboard .top-header a,#dashboard .top-header input{color:#102b48!important}#dashboard .sidebar-wrapper,#dashboard .sidebar-header,#dashboard .sidebar-bottom{background:#081d32!important;color:#fff}#dashboard .sidebar-wrapper a,#dashboard .sidebar-wrapper h5{color:#e8f4fc!important}#dashboard .sidebar-wrapper .mm-active>a{background:#173f56!important;border-left:3px solid #22def0}#dashboard .sidebar-nav{height:calc(100% - 190px);overflow:auto}
#dashboard .card{background:#fff!important;color:#102b48!important;box-shadow:none!important;border:1px solid #dce5ec!important;border-radius:14px!important}#dashboard .card h2,#dashboard .card h3,#dashboard .card h4,#dashboard .card h5,#dashboard .card h6{color:#102b48!important}#dashboard .text-secondary,#dashboard .portal-review-copy,#dashboard .portal-review-helper{color:#53677b!important}#dashboard .form-control,#dashboard .form-select{background:#fff!important;color:#102b48!important;border:1px solid #aabcca!important}#dashboard .btn-primary{background:#22def0!important;color:#081d32!important;border-color:#22def0!important;box-shadow:none!important}#dashboard .btn-filter{background:#fff!important;color:#13526b!important;border-color:#bdcdd8!important}#dashboard .btn{border-radius:9px!important;min-height:44px}#dashboard .table{--bs-table-bg:#fff;--bs-table-color:#102b48;color:#102b48}#dashboard .table td,#dashboard .table th{color:#102b48!important}#dashboard .portal-dashboard-summary-card,#dashboard .portal-dashboard-side-col{display:none!important}#dashboard .portal-dashboard-live-col{width:100%}#dashboard [data-dashboard-panel=live] .portal-dashboard-live-meta{background:#f2f7fa!important}
.workspace-home{max-width:1400px;margin:auto}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.workspace-heading h1{font-size:30px;letter-spacing:-.035em;margin:0 0 6px;color:#102b48}.workspace-heading p{color:#53677b;margin:0}.workspace-priority{padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff4dd;border:1px solid #f0deb4;border-radius:12px;margin-bottom:20px;color:#59421b}.workspace-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px;margin-bottom:20px}.workspace-surface{background:white;border:1px solid #dce5ec;border-radius:12px;padding:22px;min-width:0}.workspace-surface>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.workspace-home h2{font-size:20px;font-weight:750;margin:0}.workspace-table-scroll{overflow-x:auto}.workspace-home table{width:100%;border-collapse:collapse;font-size:14px}.workspace-home td,.workspace-home th{padding:16px 10px;border-bottom:1px solid #e5ebef;text-align:left}.workspace-home th{color:#53677b;font-size:12px;font-weight:600}.workspace-status{display:inline-block;background:#e7f4f8;color:#125970;padding:5px 10px;border-radius:7px;font-size:12px}.workspace-live{background:#081d32;border-radius:12px;padding:24px;color:#e2eff6;display:flex;flex-direction:column;gap:16px}.workspace-live h2{color:white}.workspace-live p{margin:0}.workspace-live #workspace-live-status{align-self:flex-start;background:#284255;padding:4px 10px;border-radius:6px;font-size:12px}.workspace-live .btn-primary{margin-top:auto}.workspace-empty{padding:32px 8px;text-align:center}.workspace-empty h3{font-size:19px}.workspace-empty p{color:#53677b;max-width:360px;margin:12px auto 20px}.workspace-catalog #workspace-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.workspace-product{display:flex;align-items:center;text-align:left;gap:14px;background:#fff;border:1px solid #dce5ec;border-radius:9px;padding:12px;color:#102b48;min-width:0}.workspace-product:hover{border-color:#147b94}.workspace-product img,.workspace-photo-placeholder{width:62px;height:76px;object-fit:cover;border-radius:6px;background:#eef3f5;flex-shrink:0}.workspace-photo-placeholder{display:grid;place-items:center;color:#567788;font-size:28px}.workspace-product strong,.workspace-product small{display:block;overflow-wrap:anywhere}.workspace-product small{color:#53677b;margin-top:5px}.workspace-home :focus-visible{outline:3px solid #087f98;outline-offset:3px}
#dashboard .main-wrapper .card p,#dashboard .main-wrapper .card small,#dashboard .main-wrapper .card label,#dashboard .portal-live-actions__label,#dashboard .portal-live-link-helper,#dashboard .portal-counts span,#dashboard .portal-counts strong{color:#53677b!important}#dashboard .portal-review-kicker,#dashboard .portal-link{color:#096c83!important}#dashboard .status-pill.is-info{background:#e0f3f8!important;color:#095c75!important}#dashboard .status-pill.is-warning{background:#fff0d3!important;color:#795017!important}#dashboard .status-pill.is-success{background:#dff5e8!important;color:#14623f!important}#dashboard .status-pill.is-danger{background:#ffe8e4!important;color:#993729!important}#dashboard .portal-counts--hero{margin-top:14px!important;gap:16px!important}#dashboard .top-header .search-bar input::placeholder{color:#53677b!important}
@media(max-width:1000px){.workspace-grid{grid-template-columns:1fr}.workspace-catalog #workspace-products{grid-template-columns:1fr}.workspace-heading h1{font-size:25px}}@media(max-width:520px){.workspace-heading,.workspace-priority{align-items:stretch;flex-direction:column}.workspace-surface{padding:16px}.workspace-home td,.workspace-home th{padding:12px 6px;font-size:12px}.workspace-home h2{font-size:18px}}

/* The workspace is light even when the legacy template keeps its dark theme. */
#dashboard {
  --workspace-ink: #102b48;
  --workspace-muted: #53677b;
  --workspace-soft: #eef4f7;
  --workspace-border: #bdcdd8;
}
#dashboard .main-content :is(
  .product-title, .portal-summary-card strong, .portal-action-guidance strong,
  .portal-orders-guide strong, .portal-catalog-helper-card__title,
  .portal-dashboard-pulse-card strong, .portal-status-card__value,
  .portal-catalog-helper-chip, .portal-product-details summary,
  .portal-inline-stats .stat-block strong, .portal-status-list .status-row strong
) {
  color: var(--workspace-ink) !important;
}
#dashboard .main-content :is(
  .portal-summary-card span, .portal-summary-card small,
  .portal-review-title span, .portal-review-meta,
  .portal-action-guidance span, .portal-orders-guide span,
  .portal-kpi-note, .portal-empty, .portal-inline-stats .stat-block span,
  .portal-status-list .status-row, .portal-dashboard-pulse-card span,
  .portal-dashboard-pulse-card small, .portal-dashboard-mini-card__copy,
  .portal-dashboard-live-meta p, .portal-status-card__label,
  .portal-status-card__helper, .portal-status-summary p,
  .portal-filter-banner__copy, .portal-insights-kpi-helper,
  .portal-insights-section-copy
) {
  color: var(--workspace-muted) !important;
}
#dashboard .portal-data-card .table tbody td::before,
#dashboard .main-content .form-control::placeholder {
  color: var(--workspace-muted) !important;
  opacity: 1 !important;
}
#dashboard .main-content :is(
  .portal-summary-card, .portal-product-fallback, .portal-orders-guide,
  .portal-onboarding-step, .portal-filter-banner, .portal-catalog-helper-card
) {
  color: var(--workspace-ink) !important;
  background: var(--workspace-soft) !important;
  border-color: var(--workspace-border) !important;
}
#dashboard .main-content .portal-quick-filter-chip {
  color: var(--workspace-ink) !important;
  background: #fff !important;
  border-color: var(--workspace-border) !important;
  min-height: 44px;
}
#dashboard .main-content .portal-quick-filter-chip:is(.is-active, :hover) {
  background: #dff3f7 !important;
  border-color: #087f98 !important;
}
#dashboard .main-content :is(.selltok-badge, .selltok-badge strong) {
  color: #125970 !important;
  background: #e7f4f8;
}
#dashboard .main-content input::file-selector-button {
  color: var(--workspace-ink);
  background: var(--workspace-soft);
}
#dashboard .main-content :focus-visible {
  outline: 3px solid #087f98;
  outline-offset: 3px;
}
