/* ===== Tableau de bord repensé — shell-54 ===== */
#view-dashboard{
  --dash-blue:#2563eb;
  --dash-green:#059669;
  --dash-orange:#d97706;
  --dash-red:#dc2626;
  --dash-purple:#7c3aed;
  --dash-cyan:#0891b2;
}

.dashboard-hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  overflow:hidden;
  margin-bottom:18px;
  padding:24px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 8%,rgba(255,255,255,.17),transparent 27%),
    linear-gradient(135deg,#073b38 0%,#0f766e 58%,#159a8f 100%);
  box-shadow:0 18px 38px rgba(15,118,110,.18);
}
.dashboard-hero::after{
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  right:-110px;
  bottom:-165px;
  border:42px solid rgba(255,255,255,.06);
  border-radius:50%;
  pointer-events:none;
}
.dashboard-hero-copy{position:relative;z-index:1;max-width:680px}
.dashboard-eyebrow,.dashboard-section-kicker{
  display:block;
  margin-bottom:5px;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.dashboard-eyebrow{color:#bdf6ee}
.dashboard-hero h2{margin:0 0 7px;font-size:clamp(1.35rem,2.4vw,2rem);letter-spacing:-.035em}
.dashboard-hero p{margin:0;color:rgba(255,255,255,.82);line-height:1.55}
.dashboard-hero p strong{color:#fff}
.dashboard-quick-actions{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4,minmax(76px,1fr));
  gap:9px;
  flex:0 0 auto;
}
.dashboard-quick-btn{
  display:grid;
  justify-items:center;
  gap:7px;
  min-width:82px;
  padding:12px 10px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:15px;
  color:#fff;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(8px);
  font-size:.77rem;
  font-weight:800;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}
.dashboard-quick-btn:hover{transform:translateY(-2px);background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.38)}
.dashboard-quick-btn:focus-visible{outline:3px solid rgba(255,255,255,.42);outline-offset:2px}
.dashboard-quick-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

#view-dashboard .dashboard-primary-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
#view-dashboard .dashboard-primary-kpis .dashboard-kpi{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:start;
  gap:13px;
  min-height:142px;
  padding:18px;
  border-top:0;
  border-radius:18px;
  overflow:hidden;
  isolation:isolate;
}
#view-dashboard .dashboard-primary-kpis .dashboard-kpi::after{
  right:-36px;
  bottom:-50px;
  width:130px;
  height:130px;
  opacity:.06;
}
#view-dashboard .dashboard-primary-kpis .stat-value{grid-column:span 2}
.dashboard-kpi-icon{
  display:grid!important;
  place-items:center!important;
  width:46px;
  height:46px;
  min-height:0!important;
  border-radius:14px;
  background:color-mix(in srgb,currentColor 11%,transparent);
  color:inherit!important;
}
.dashboard-kpi-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dashboard-kpi-copy{min-width:0}
#view-dashboard .dashboard-primary-kpis .dashboard-kpi-copy>span{
  display:block;
  min-height:0;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  line-height:1.3;
}
#view-dashboard .dashboard-primary-kpis .dashboard-kpi-copy>strong{
  display:block;
  margin:8px 0 5px;
  color:var(--text);
  font-size:clamp(1.7rem,2.6vw,2.25rem);
  line-height:1;
  letter-spacing:-.045em;
  overflow-wrap:anywhere;
}
#view-dashboard .dashboard-primary-kpis .stat-value .dashboard-kpi-copy>strong{font-size:clamp(1.45rem,2.2vw,2rem)}
.dashboard-kpi-copy small{display:block;color:var(--muted);font-size:.7rem;line-height:1.35}
.dashboard-kpi.actionable-card{cursor:pointer}
.dashboard-kpi.actionable-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,currentColor 28%,var(--border));box-shadow:0 14px 28px rgba(15,23,42,.09)}
.dashboard-kpi.actionable-card:focus-visible{outline:3px solid color-mix(in srgb,currentColor 24%,transparent);outline-offset:2px}
.dashboard-primary-kpis .stat-medicines{color:var(--dash-blue);background:linear-gradient(145deg,var(--card),color-mix(in srgb,var(--dash-blue) 5%,var(--card)))}
.dashboard-primary-kpis .stat-value{color:var(--dash-purple);background:linear-gradient(145deg,var(--card),color-mix(in srgb,var(--dash-purple) 5%,var(--card)))}
.dashboard-primary-kpis .stat-urgent{color:var(--dash-red);background:linear-gradient(145deg,var(--card),color-mix(in srgb,var(--dash-red) 5%,var(--card)))}
.dashboard-primary-kpis .stat-necessary{color:var(--dash-orange);background:linear-gradient(145deg,var(--card),color-mix(in srgb,var(--dash-orange) 6%,var(--card)))}
.dashboard-primary-kpis .stat-satisfactory{color:var(--dash-green);background:linear-gradient(145deg,var(--card),color-mix(in srgb,var(--dash-green) 5%,var(--card)))}
.dashboard-primary-kpis .stat-expiry{color:#b77900;background:linear-gradient(145deg,var(--card),color-mix(in srgb,#f59e0b 6%,var(--card)))}
.dashboard-primary-kpis .stat-expired{color:#b91c1c;background:linear-gradient(145deg,var(--card),color-mix(in srgb,#ef4444 5%,var(--card)))}

.dashboard-health-panel{
  margin-bottom:18px;
  padding:21px 22px;
  border-radius:19px;
  overflow:hidden;
}
.dashboard-health-main{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.dashboard-section-kicker{color:var(--primary)}
.dashboard-health-main h2,.dashboard-panel-head h2,.dashboard-priority-panel .panel-head h2,.dashboard-breakdown h2{margin:0;font-size:1.05rem}
.dashboard-health-main p{margin:6px 0 0;color:var(--muted);font-size:.82rem}
.dashboard-health-score-wrap{display:flex;align-items:center;gap:11px;flex-wrap:wrap;justify-content:flex-end}
#dashboardHealthScore{font-size:1.75rem;letter-spacing:-.05em}
.dashboard-health-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.7rem;font-weight:850;white-space:nowrap}
.dashboard-health-status.good{background:#dcfce7;color:#166534}
.dashboard-health-status.warning{background:#fef3c7;color:#92400e}
.dashboard-health-status.danger{background:#fee2e2;color:#991b1b}
.dashboard-health-status.neutral{background:var(--bg-soft);color:var(--muted)}
.dashboard-health-track{display:flex;width:100%;height:13px;overflow:hidden;margin:20px 0 13px;border-radius:999px;background:var(--bg-soft)}
.dashboard-health-track span{display:block;height:100%;transition:width .35s ease}
.dashboard-health-track .urgent{background:var(--dash-red)}
.dashboard-health-track .necessary{background:#f59e0b}
.dashboard-health-track .satisfactory{background:var(--dash-green)}
.dashboard-health-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dashboard-health-legend button{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--text);
  background:var(--card-2);
  font-size:.74rem;
}
.dashboard-health-legend button:hover{border-color:var(--primary);background:var(--bg-soft)}
.dashboard-health-legend button i{width:9px;height:9px;border-radius:50%}
.dashboard-health-legend button i.urgent{background:var(--dash-red)}
.dashboard-health-legend button i.necessary{background:#f59e0b}
.dashboard-health-legend button i.satisfactory{background:var(--dash-green)}
.dashboard-health-legend button strong{margin-left:3px;font-size:.82rem}

#dashboardOperationalSlot{margin-bottom:18px}
#dashboardOperationalSlot:empty,#dashboardBreakdownSlot:empty{display:none}
#view-dashboard .v11-operational-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0;
}
#view-dashboard .v11-operational-kpis .stat-card{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-height:108px;
  padding:15px;
  border-top:0;
  border-radius:16px;
}
#view-dashboard .v11-operational-kpis .stat-card::after{width:76px;height:76px;right:-24px;bottom:-30px;opacity:.06}
.dashboard-operational-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,currentColor 11%,transparent)}
.dashboard-operational-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dashboard-operational-copy span{display:block;min-height:0!important;color:var(--muted);font-size:.72rem!important;font-weight:800;line-height:1.3}
.dashboard-operational-copy strong{display:block;margin:5px 0 0!important;font-size:1.42rem!important;line-height:1!important}
.dashboard-operational-copy small{display:block;margin-top:5px;color:var(--muted);font-size:.65rem}

.dashboard-activity-grid{grid-template-columns:minmax(0,1.45fr) minmax(310px,.75fr);gap:18px;margin:0 0 18px}
#view-dashboard .dashboard-chart-panel,#view-dashboard .dashboard-recent-panel{padding:0;overflow:hidden}
.dashboard-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 19px}
.dashboard-panel-head>div:first-child{min-width:0}
.dashboard-panel-head .dashboard-section-kicker{margin-bottom:4px}
.dashboard-chart-panel canvas{display:block;width:calc(100% - 24px);max-width:none;margin:2px 12px 12px}
.dashboard-chart-totals{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dashboard-chart-totals span{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;background:var(--bg-soft);font-size:.7rem;color:var(--muted);white-space:nowrap}
.dashboard-chart-totals span i{width:8px;height:8px;border-radius:50%}
.dashboard-chart-totals span.entry i{background:#10b981}.dashboard-chart-totals span.exit i{background:#f97316}
.dashboard-chart-totals strong{color:var(--text);font-size:.78rem}
.dashboard-recent-panel .activity-list{padding:0 18px 8px}
.dashboard-recent-panel .activity-item{padding:12px 0}
.dashboard-text-action{align-self:center;border:0;background:transparent;color:var(--primary);font-size:.75rem;font-weight:850;white-space:nowrap}
.dashboard-text-action:hover{text-decoration:underline}

.dashboard-lower-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);gap:18px;margin-bottom:18px}
.dashboard-watch-panel,.dashboard-priority-panel{overflow:hidden}
.dashboard-watch-head{align-items:center}
.dashboard-panel-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.dashboard-collapse-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:11px;
  color:var(--text);
  background:var(--card-2);
  font-size:.72rem;
  font-weight:850;
  white-space:nowrap;
}
.dashboard-collapse-button:hover{border-color:var(--primary);background:var(--bg-soft);color:var(--primary)}
.dashboard-collapse-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .24s ease}
.dashboard-watch-panel.is-collapsed .dashboard-collapse-button svg{transform:rotate(-90deg)}
.dashboard-watch-collapsible{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .25s ease,opacity .2s ease}
.dashboard-watch-collapsible.is-collapsed{grid-template-rows:0fr;opacity:0}
.dashboard-watch-collapsible-inner{min-height:0;overflow:hidden}
.dashboard-watch-table{max-height:430px}
.dashboard-watch-table thead{position:sticky;top:0;z-index:1}
.dashboard-watch-table table{min-width:650px}
.dashboard-priority-list{display:grid;gap:9px;padding:13px}
.dashboard-priority-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  padding:11px;
  border:1px solid var(--border);
  border-radius:13px;
  color:var(--text);
  background:var(--card-2);
  text-align:left;
}
.dashboard-priority-item:hover{border-color:color-mix(in srgb,var(--priority-color,var(--primary)) 45%,var(--border));background:var(--bg-soft)}
.dashboard-priority-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:color-mix(in srgb,var(--priority-color,var(--primary)) 12%,transparent);color:var(--priority-color,var(--primary));font-weight:900}
.dashboard-priority-item strong,.dashboard-priority-item small{display:block}
.dashboard-priority-item strong{font-size:.78rem}.dashboard-priority-item small{margin-top:3px;color:var(--muted);font-size:.69rem;line-height:1.3}
.dashboard-priority-arrow{color:var(--muted);font-size:1rem}
.dashboard-priority-item.danger{--priority-color:var(--dash-red)}
.dashboard-priority-item.warning{--priority-color:var(--dash-orange)}
.dashboard-priority-item.info{--priority-color:var(--dash-blue)}
.dashboard-priority-item.success{--priority-color:var(--dash-green)}
.dashboard-priority-empty{display:grid;justify-items:center;gap:8px;padding:31px 18px;text-align:center;color:var(--muted)}
.dashboard-priority-empty span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#dcfce7;color:#166534;font-size:1.3rem;font-weight:900}
.dashboard-priority-empty strong{color:var(--text);font-size:.88rem}
.dashboard-priority-empty p{margin:0;font-size:.75rem;line-height:1.45}

.dashboard-breakdown{margin-top:0;overflow:hidden;border-radius:19px}
.dashboard-breakdown-layout{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(0,1.35fr);gap:20px;padding:18px 20px 21px}
.dashboard-breakdown-group h3{margin:0 0 11px;font-size:.82rem}
.dashboard-source-list{display:grid;gap:8px}
.dashboard-source-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px 12px;border:1px solid var(--border);border-radius:12px;background:var(--card-2)}
.dashboard-source-item span,.dashboard-source-item small{display:block}.dashboard-source-item span{font-size:.76rem;font-weight:800}.dashboard-source-item small{margin-top:3px;color:var(--muted);font-size:.68rem}.dashboard-source-item strong{align-self:center;font-size:.9rem}
.dashboard-program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dashboard-program-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid var(--border);border-radius:12px;background:var(--card-2)}
.dashboard-program-item span{min-width:0;font-size:.73rem;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-program-item strong{font-size:.75rem;white-space:nowrap}

body.dark .dashboard-hero{background:radial-gradient(circle at 88% 8%,rgba(255,255,255,.09),transparent 27%),linear-gradient(135deg,#082f2d,#0f5f59 58%,#0f766e)}
body.dark .dashboard-health-status.good{background:#153f2e;color:#86efac}
body.dark .dashboard-health-status.warning{background:#463517;color:#fcd34d}
body.dark .dashboard-health-status.danger{background:#4a2025;color:#fca5a5}
body.dark .dashboard-priority-empty span{background:#153f2e;color:#86efac}

@media(max-width:1180px){
  .dashboard-hero{align-items:flex-start;flex-direction:column}
  .dashboard-quick-actions{width:100%;grid-template-columns:repeat(4,1fr)}
  #view-dashboard .dashboard-primary-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  #view-dashboard .dashboard-primary-kpis .stat-value{grid-column:span 2}
  .dashboard-activity-grid,.dashboard-lower-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  #view-dashboard .dashboard-primary-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  #view-dashboard .dashboard-primary-kpis .stat-value{grid-column:span 1}
  #view-dashboard .v11-operational-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-breakdown-layout{grid-template-columns:1fr}
}
@media(max-width:650px){
  .dashboard-hero{gap:17px;padding:18px 16px;border-radius:17px}
  .dashboard-hero h2{font-size:1.35rem}
  .dashboard-hero p{font-size:.78rem}
  .dashboard-quick-actions{gap:7px}
  .dashboard-quick-btn{min-width:0;padding:10px 5px;border-radius:12px;font-size:.67rem}
  .dashboard-quick-btn svg{width:20px;height:20px}
  #view-dashboard .dashboard-primary-kpis{gap:9px!important;margin-bottom:12px!important}
  #view-dashboard .dashboard-primary-kpis .dashboard-kpi{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:9px!important;
    min-height:116px!important;
    padding:12px!important;
    border-radius:14px!important;
  }
  .dashboard-kpi-icon{width:36px;height:36px;border-radius:11px}
  .dashboard-kpi-icon svg{width:19px;height:19px}
  #view-dashboard .dashboard-primary-kpis .dashboard-kpi-copy>span{font-size:.68rem!important}
  #view-dashboard .dashboard-primary-kpis .dashboard-kpi-copy>strong{margin:7px 0 4px!important;font-size:1.5rem!important}
  #view-dashboard .dashboard-primary-kpis .stat-value .dashboard-kpi-copy>strong{font-size:1.12rem!important;line-height:1.15!important}
  .dashboard-kpi-copy small{font-size:.6rem}
  .dashboard-health-panel{padding:16px 14px;margin-bottom:12px;border-radius:15px}
  .dashboard-health-main{gap:12px}
  .dashboard-health-main h2{font-size:.95rem}
  .dashboard-health-main p{font-size:.7rem}
  .dashboard-health-score-wrap{display:grid;justify-items:end;gap:5px}
  #dashboardHealthScore{font-size:1.42rem}
  .dashboard-health-status{font-size:.61rem;padding:5px 7px}
  .dashboard-health-track{margin:15px 0 10px;height:11px}
  .dashboard-health-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .dashboard-health-legend button{justify-content:center;padding:7px 5px;font-size:.62rem}
  .dashboard-health-legend button strong{font-size:.7rem}
  #dashboardOperationalSlot{margin-bottom:12px}
  #view-dashboard .v11-operational-kpis{gap:9px!important;margin-bottom:0!important}
  #view-dashboard .v11-operational-kpis .stat-card{grid-template-columns:34px minmax(0,1fr)!important;min-height:86px!important;padding:11px!important;border-radius:14px!important}
  .dashboard-operational-icon{width:34px;height:34px;border-radius:10px}.dashboard-operational-icon svg{width:18px;height:18px}
  .dashboard-operational-copy span{font-size:.62rem!important}.dashboard-operational-copy strong{font-size:1.14rem!important}.dashboard-operational-copy small{display:none}
  .dashboard-activity-grid{gap:12px;margin-bottom:12px}
  .dashboard-panel-head{padding:14px 14px;gap:10px;flex-wrap:wrap}
  .dashboard-chart-totals{width:100%;justify-content:flex-start}
  .dashboard-chart-panel canvas{width:calc(100% - 10px);margin:0 5px 8px;height:230px!important}
  .dashboard-recent-panel .activity-list{padding:0 13px 6px}
  .dashboard-lower-grid{gap:12px;margin-bottom:12px}
  .dashboard-watch-head{align-items:flex-start}
  .dashboard-panel-actions{width:100%;justify-content:space-between}
  .dashboard-collapse-button{min-height:32px;padding:6px 9px;font-size:.68rem}
  .dashboard-watch-table{max-height:390px}
  .dashboard-priority-list{padding:10px}
  .dashboard-breakdown-layout{padding:14px;gap:16px}
  .dashboard-program-grid{grid-template-columns:1fr}
}
@media(max-width:390px){
  .dashboard-quick-btn span{font-size:.61rem}
  #view-dashboard .dashboard-primary-kpis .dashboard-kpi{grid-template-columns:1fr!important;gap:7px!important;min-height:124px!important}
  .dashboard-kpi-icon{width:34px;height:34px}
  .dashboard-health-main{display:grid}.dashboard-health-score-wrap{justify-items:start}
}
@media print{
  .dashboard-hero,.dashboard-quick-actions,.dashboard-priority-panel,.dashboard-text-action{display:none!important}
}

.read-only-mode .dashboard-quick-btn.entry,
.read-only-mode .dashboard-quick-btn.exit,
.read-only-mode .dashboard-quick-btn.inventory{display:none}
.dashboard-operational-icon{min-height:0!important;color:inherit!important}

/* ===== Correctifs shell-54 =====
   1) Afficher la liste complète des stocks à surveiller.
   2) Centrer réellement les pictogrammes des indicateurs opérationnels. */
.dashboard-watch-table{
  max-height:none!important;
  overflow-x:auto;
  overflow-y:visible!important;
}
.dashboard-watch-collapsible:not(.is-collapsed),
.dashboard-watch-collapsible:not(.is-collapsed) .dashboard-watch-collapsible-inner{
  overflow:visible;
}

#view-dashboard .v11-operational-kpis .stat-card > .dashboard-operational-icon{
  display:grid!important;
  place-items:center!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  padding:0!important;
  line-height:0!important;
}
#view-dashboard .v11-operational-kpis .stat-card > .dashboard-operational-icon svg{
  display:block;
  width:21px!important;
  height:21px!important;
  margin:auto!important;
}

@media(max-width:650px){
  .dashboard-watch-table{max-height:none!important}
  #view-dashboard .v11-operational-kpis .stat-card > .dashboard-operational-icon{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
  }
  #view-dashboard .v11-operational-kpis .stat-card > .dashboard-operational-icon svg{
    width:18px!important;
    height:18px!important;
  }
}

/* ===== Navigation filtre stock & priorité des alertes — shell-54 ===== */
.dashboard-stock-return-bar{
  display:flex;
  align-items:center;
  gap:12px;
  flex:1 1 100%;
  width:100%;
  margin:0;
  padding:9px 11px;
  border:1px solid rgba(15,118,110,.22);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(15,118,110,.10),rgba(14,165,233,.06));
}
.dashboard-stock-return-bar.hidden{display:none!important}
.dashboard-stock-return-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
}
.dashboard-stock-return-btn svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.dashboard-stock-return-context{
  color:var(--muted);
  font-size:.8rem;
  font-weight:700;
}
.dashboard-watch-group td{
  padding:10px 14px!important;
  border-bottom:1px solid var(--border)!important;
}
.dashboard-watch-group td,
.dashboard-watch-group td span{
  font-weight:800;
}
.dashboard-watch-group td{
  display:table-cell;
}
.dashboard-watch-group td span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.dashboard-watch-group td span::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
}
.dashboard-watch-group td strong{
  float:right;
  min-width:28px;
  padding:2px 8px;
  border-radius:999px;
  text-align:center;
  font-size:.75rem;
}
.dashboard-watch-group-urgent td{
  background:rgba(220,38,38,.08);
  color:#b91c1c;
}
.dashboard-watch-group-urgent td span::before{background:#dc2626}
.dashboard-watch-group-urgent td strong{background:rgba(220,38,38,.13)}
.dashboard-watch-group-necessary td{
  background:rgba(217,119,6,.09);
  color:#b45309;
}
.dashboard-watch-group-necessary td span::before{background:#d97706}
.dashboard-watch-group-necessary td strong{background:rgba(217,119,6,.14)}
body.dark .dashboard-watch-group-urgent td{color:#fca5a5;background:rgba(239,68,68,.12)}
body.dark .dashboard-watch-group-necessary td{color:#fcd34d;background:rgba(245,158,11,.12)}
.dashboard-watch-product-row.dashboard-watch-urgent td:first-child{font-weight:800}

@media (max-width:720px){
  .dashboard-stock-return-bar{
    grid-column:1/-1;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:8px;
    background:var(--card);
  }
  .dashboard-stock-return-btn{width:100%}
  .dashboard-stock-return-context{text-align:center;font-size:.7rem}
}
