/* ─── DossiersListView — styles partagés ─────────────────────────────────── */

/* Toolbar */
.dlv-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dlv-view-toggle {
  display: flex;
  gap: 3px;
  background: rgba(0,0,0,0.25);
  border-radius: 9px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.12);
}

.dlv-search {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  padding: 7px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 150ms;
}
.dlv-search:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }

.dlv-count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* KPIs */
.dlv-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dlv-kpi {
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  min-width: 80px;
}

.dlv-kpi-val {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.dlv-kpi-label {
  font-size: 0.68rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* Vue Tableau */
.dlv-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dlv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  background: #fff;
  min-width: 800px;
}

.dlv-thead-row {
  background: #f1f5f9;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.dlv-th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.dlv-td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.dlv-td-client { max-width: 180px; }

.dlv-row { transition: background 80ms; }

/* Vue Cartes */
.dlv-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.dlv-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 150ms, box-shadow 150ms;
}

.dlv-card--hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.dlv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 6px;
  flex-wrap: wrap;
}

.dlv-card-body {
  padding: 10px 12px;
  flex: 1;
}

.dlv-card-footer {
  padding: 6px 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  background: #fafafa;
}

.dlv-card-actions {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  border-top: 1px solid #f1f5f9;
}

/* Badges */
.dlv-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Boutons actions */
.dlv-btn {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 100ms;
}
.dlv-btn:hover { opacity: 0.8; }

.dlv-btn-primary {
  background: #1e40af;
  color: #fff;
  border-color: #1e40af;
}

.dlv-btn-ghost {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.dlv-btn-warning {
  background: #faf5ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}

/* Empty state */
.dlv-empty {
  padding: 3rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
  .dlv-cards-grid { grid-template-columns: 1fr; }
  .dlv-search { max-width: 100%; }
  .dlv-kpi { min-width: 65px; padding: 6px 10px; }
  .dlv-kpi-val { font-size: 1.1rem; }
}
