/*
 * SaloCart V4.3.1 — Seller dashboard CSS stability hotfix
 * Loaded last so the Seller Command Center and Business Cycle remain readable
 * even when older UI layers have been cached by a mobile browser/PWA.
 */
.seller-dashboard,
.seller-dashboard *{box-sizing:border-box}
.seller-dashboard .container-xxl{min-width:0}
.seller-dashboard .workspace-hero,
.seller-dashboard .seller-status-banner,
.seller-dashboard .seller-metric-grid,
.seller-dashboard .seller-action-strip,
.seller-dashboard .seller-dashboard-section,
.seller-dashboard .seller-cycle-section{min-width:0}

/* Safe visible fallback for the Seller header and status banner. */
.seller-dashboard .seller-status-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:18px 20px;border:1px solid rgba(8,122,87,.22);border-radius:22px;background:linear-gradient(135deg,rgba(234,249,241,.95),rgba(255,255,255,.98));box-shadow:0 8px 24px rgba(9,51,38,.05)}
.seller-dashboard .seller-status-banner>div{min-width:0}
.seller-dashboard .seller-status-banner .section-kicker{display:inline-flex;color:#087a57;font-size:.68rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase}
.seller-dashboard .seller-status-banner h2{margin:5px 0 4px;color:var(--sc-ink,#10251c);font-family:var(--font-display,Sora,system-ui,sans-serif);font-size:1.08rem;font-weight:800;letter-spacing:-.03em}
.seller-dashboard .seller-status-banner p{max-width:780px;margin:0;color:var(--sc-muted,#65736c);font-size:.76rem;line-height:1.55}
.seller-dashboard .seller-status-banner.is-verified{border-color:rgba(8,122,87,.3);background:linear-gradient(135deg,rgba(223,247,234,.98),rgba(255,255,255,.98))}

/* Metric and action blocks never collapse into each other. */
.seller-dashboard .seller-metric-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.seller-dashboard .seller-metric-card{min-width:0!important;min-height:104px}
.seller-dashboard .seller-metric-card>div{min-width:0}
.seller-dashboard .seller-metric-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seller-dashboard .seller-action-strip{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.seller-dashboard .seller-action-strip>button{min-width:0!important}
.seller-dashboard .seller-action-strip strong,
.seller-dashboard .seller-action-strip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Independent section stacking prevents overlap after async rendering. */
.seller-dashboard .seller-dashboard-section{position:relative;display:block;clear:both;width:100%;min-width:0;margin-top:18px;overflow:visible}
.seller-dashboard .seller-insights-grid{clear:both;margin-top:0}
.seller-dashboard .seller-insights-grid>[class*="col-"]{min-width:0}
.seller-dashboard .seller-section-head{display:flex!important;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}
.seller-dashboard .seller-section-head>div{min-width:0}
.seller-dashboard .seller-section-head h2{overflow-wrap:anywhere}

/* Deal manager and buyer activity layouts are resilient when existing cached styles are incomplete. */
.seller-dashboard .seller-deal-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0;margin-top:14px}
.seller-dashboard .seller-deal-card{min-width:0!important;height:100%}
.seller-dashboard .seller-deal-body{min-width:0}
.seller-dashboard .seller-deal-card h3,
.seller-dashboard .seller-deal-card p,
.seller-dashboard .seller-deal-card dd{overflow-wrap:anywhere}
.seller-dashboard .seller-deal-actions{margin-top:auto}
.seller-dashboard .seller-order-list{display:grid;gap:9px;min-width:0}
.seller-dashboard .seller-order-row{min-width:0!important}
.seller-dashboard .seller-order-person,
.seller-dashboard .seller-order-summary{min-width:0}
.seller-dashboard .seller-order-person strong,
.seller-dashboard .seller-order-person small,
.seller-dashboard .seller-order-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Business-cycle cards remain separated and tappable. */
.seller-dashboard .seller-cycle-section{padding:18px;border:1px solid var(--sc-line,#e7ece9);border-radius:24px;background:var(--sc-surface,#fff);box-shadow:0 8px 24px rgba(10,50,38,.04)}
.seller-dashboard .seller-cycle-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0;margin-top:14px}
.seller-dashboard .seller-cycle-step{min-width:0!important;min-height:88px}
.seller-dashboard .seller-cycle-step>span:nth-child(2){min-width:0}
.seller-dashboard .seller-cycle-step strong,
.seller-dashboard .seller-cycle-step small,
.seller-dashboard .seller-cycle-step b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seller-dashboard .seller-cycle-focus{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;margin-top:10px}
.seller-dashboard .seller-cycle-focus article{min-width:0}
.seller-dashboard .seller-cycle-focus article>div{min-width:0}
.seller-dashboard .seller-cycle-focus strong,
.seller-dashboard .seller-cycle-focus em{overflow-wrap:anywhere}

/* Modal modules: avoid clipped controls and horizontally overflowing rows. */
.seller-module-sheet .modal-dialog,.seller-module-sheet .modal-content{max-width:100%}
.seller-module-sheet .seller-inventory-row,.seller-module-sheet .seller-fulfillment-card,.seller-module-sheet .seller-history-row,.seller-module-sheet .seller-case-row{min-width:0}
.seller-module-sheet .seller-inventory-copy,.seller-module-sheet .seller-fulfillment-card>*,.seller-module-sheet .seller-history-row>div,.seller-module-sheet .seller-case-row>div{min-width:0}

html[data-theme="dark"] .seller-dashboard .seller-status-banner{border-color:rgba(86,203,157,.2);background:linear-gradient(135deg,rgba(10,58,43,.92),rgba(18,32,27,.98))}
html[data-theme="dark"] .seller-dashboard .seller-status-banner .section-kicker{color:#87e8bd}
html[data-theme="dark"] .seller-dashboard .seller-status-banner h2{color:var(--sc-ink,#f4faf6)}
html[data-theme="dark"] .seller-dashboard .seller-status-banner p{color:var(--sc-muted,#b5c8bc)}
html[data-theme="dark"] .seller-dashboard .seller-cycle-section{border-color:var(--sc-line,#2d4238);background:var(--sc-surface,#17271f);box-shadow:none}

@media (max-width:1199.98px){
  .seller-dashboard .seller-metric-grid,.seller-dashboard .seller-action-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .seller-dashboard .seller-deal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .seller-dashboard .seller-cycle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767.98px){
  .seller-dashboard .seller-status-banner{align-items:flex-start;flex-direction:column;padding:15px;border-radius:18px}
  .seller-dashboard .seller-status-banner .btn-sc,.seller-dashboard .seller-status-banner .btn-sc-light{width:100%;min-height:42px}
  .seller-dashboard .seller-metric-grid{gap:8px;margin-top:12px}
  .seller-dashboard .seller-metric-card{min-height:92px;padding:11px;border-radius:16px}
  .seller-dashboard .seller-metric-card strong{font-size:.95rem}
  .seller-dashboard .seller-action-strip{gap:8px;margin-top:12px}
  .seller-dashboard .seller-action-strip>button{grid-template-columns:34px minmax(0,1fr) auto;min-height:64px;padding:9px;border-radius:15px}
  .seller-dashboard .seller-action-icon{width:34px;height:34px;border-radius:10px}
  .seller-dashboard .seller-dashboard-section{margin-top:14px}
  .seller-dashboard .seller-cycle-section{padding:13px;border-radius:19px}
  .seller-dashboard .seller-section-head{align-items:center}
  .seller-dashboard .seller-section-head p{font-size:.66rem}
  .seller-dashboard .seller-deal-grid{grid-template-columns:1fr;gap:10px}
  .seller-dashboard .seller-cycle-grid{grid-template-columns:1fr;gap:8px}
  .seller-dashboard .seller-cycle-focus{grid-template-columns:1fr;gap:8px}
  .seller-dashboard .seller-order-row{grid-template-columns:minmax(0,1fr) auto 18px;gap:7px;padding:10px}
}
@media (max-width:390px){
  .seller-dashboard .seller-metric-grid{grid-template-columns:1fr 1fr}
  .seller-dashboard .seller-metric-card{gap:7px;padding:10px}
  .seller-dashboard .seller-metric-card>span{width:31px;height:31px;flex-basis:31px}
  .seller-dashboard .seller-action-strip{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .seller-dashboard *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
