/* lot_pages.css — StockMaster Pro (Lots 2/3/4 UI harmonisation)
   Objectif: rendre les nouvelles pages (Lots/Pilotage/Kits/Réservations/Emplacements)
   cohérentes avec le design existant (classes .sect-*, .tbl, .inp, .btn).
*/

/* Header actions alignment */
.sect-hdr{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.sect-hdr .sect-sub{font-size:12px;color:var(--text-muted);margin-top:2px;}
.sect-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}

/* Analytics layout */
.an-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;}
.an-card{grid-column:span 12;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:12px;box-shadow:var(--shadow-sm);}
.an-col6{grid-column:span 6;}
@media (max-width: 900px){.an-col6{grid-column:span 12;}}

.an-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:end;}
.an-toolbar-left{display:flex;gap:12px;flex-wrap:wrap;align-items:end;}
.an-field{display:flex;flex-direction:column;gap:6px;}
.an-h4{margin:0 0 10px 0;font-size:14px;}

.an-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
@media (max-width: 900px){.an-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 520px){.an-kpi-grid{grid-template-columns:1fr;}}

.kpi{background:rgba(255,255,255,0.03);border:1px solid var(--border);border-radius:12px;padding:10px;}
.kpi-lbl{font-size:12px;color:var(--text-muted);}
.kpi-val{font-size:18px;font-weight:700;margin-top:4px;}

/* Tables within new pages: ensure consistent spacing */
#kitsPage .table-wrap, #reservationsPage .table-wrap, #analyticsPage .table-wrap{overflow:auto;}

/* Small helpers */
.tbl td:last-child, .tbl th:last-child{text-align:right;}
