/* @portee: admin */
/* Tableau de bord (accueil du back-office) */
.dash-tabs { position: relative; }
.dash-grid { display: grid; gap: 1rem; }
.dash-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.dash-panel .panel-header { flex-shrink: 0; }
.dash-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dash-chart { flex: 1; min-height: 220px; }
.dash-pad { padding: .9rem 1.1rem; }
.dash-sub { padding: .9rem 1.1rem .35rem; font-size: .75rem; font-weight: 750; color: var(--text-3); letter-spacing: .01em; }
.dash-spark { width: 100%; height: 18px; margin-top: .15rem; display: block; }
.dash-spark polyline { fill: none; stroke: var(--brand); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dash-todo { display: flex; flex-direction: column; gap: .45rem; padding: .8rem; }
.dash-todo-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s var(--ease), background .15s; }
.dash-todo-item:hover { border-color: var(--line-strong); background: var(--bg-hover); transform: translateX(2px); }
.dash-todo-item b { display: block; font-size: .88rem; }
.dash-todo-item small { display: block; color: var(--text-3); font-size: .76rem; }
.dash-todo-item.is-warning { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); background: color-mix(in srgb, var(--warning-soft) 55%, transparent); }
.dash-todo-count { font-size: 1.35rem; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.icon-box.tone-info { background: var(--info-soft); color: var(--info); }
.icon-box.tone-warning { background: var(--warning-soft); color: var(--warning); }
.icon-box.tone-orange { background: var(--orange-soft); color: var(--orange); }
.icon-box.tone-muted { background: var(--muted-soft); color: var(--text-2); }
.dash-time { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3rem; color: var(--brand-ink); }
.dash-date { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: var(--r-sm); background: var(--bg-sunken); border: 1px solid var(--line); line-height: 1; flex-shrink: 0; }
.dash-date b { font-size: 1.05rem; } .dash-date small { font-size: .66rem; color: var(--text-3); text-transform: capitalize; }
.dash-funnel { display: flex; flex-direction: column; gap: .7rem; }
.dash-funnel-row { display: grid; grid-template-columns: 9rem 1fr 3rem 3rem; gap: .75rem; align-items: center; font-size: .88rem; }
.dash-funnel-label { font-weight: 650; color: var(--text-2); }
.dash-funnel-bar { height: 1.6rem; background: var(--bg-sunken); border-radius: 8px; overflow: hidden; }
.dash-funnel-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand-700), var(--brand)); transition: width .8s var(--ease); }
.dash-funnel-row b { text-align: right; font-variant-numeric: tabular-nums; }
.min-w-0 { min-width: 0; } .nowrap { white-space: nowrap; }
@media (min-width: 1024px) {
  .dash-tabs { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding-right: 2px; }
  .dash-grid { min-height: 100%; }
  .dash-grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(250px, 1fr) minmax(250px, 1fr); }
  .dash-grid-main > :nth-child(1) { grid-column: 1 / 3; }
  .dash-grid-main > :nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
  .dash-grid-main > :nth-child(3) { grid-column: 1; grid-row: 2; }
  .dash-grid-main > :nth-child(4) { grid-column: 2; grid-row: 2; }
  .dash-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr); }
  .dash-grid-3 .dash-span-2 { grid-column: span 2; }
  .dash-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(300px, 1fr); }
  .dash-chart { min-height: 0; }
}
@media (max-width: 1023px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-chart { min-height: 260px; }
  .dash-body.fit-scroll { max-height: 420px; overflow: auto; }
  .dash-funnel-row { grid-template-columns: 7rem 1fr 2.4rem; } .dash-funnel-rate { display: none; }
}
.dash-domaines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .35rem .9rem; align-content: start; padding: .2rem 0; }
.dash-dom { display: flex; align-items: center; gap: .7rem; padding: .5rem .45rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none !important; transition: background .15s; }
.dash-dom:hover { background: var(--bg-hover); }
.dash-dom-ic { width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 1.1rem; }
.dash-dom-bar { display: block; height: .4rem; margin-top: .35rem; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.dash-dom-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
