/* ================================================
   FICHIER : apps/gestion/style.css
   Styles spécifiques à l'outil de gestion des devis
   Complète apps/shared/style.css
   ================================================ */

/* ── Layout principal ────────────────────────── */
body { background: var(--grey); min-height: 100vh; }

.app  { display: flex; flex-direction: column; min-height: 100vh; }
.main { display: flex; gap: 0; flex: 1; }

/* ── Barre de navigation haute ───────────────── */
.topbar {
  background: var(--navy); color: white;
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-family: 'DM Serif Display', serif; font-size: 1.2rem; letter-spacing: .02em; }
.topbar-title span { color: var(--gold); }

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: 260px; min-width: 220px;
  background: var(--white); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.sidebar-header {
  padding: 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header h3 { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.devis-list { flex: 1; overflow-y: auto; }
.devis-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.devis-item:hover  { background: var(--light); }
.devis-item.active { background: var(--light); border-left: 3px solid var(--sky); }
.devis-item-ref    { font-weight: 600; font-size: .9rem; color: var(--navy); }
.devis-item-client { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.devis-item-date   { font-size: .75rem; color: var(--muted); }

/* ── Zone de contenu ─────────────────────────── */
.content { flex: 1; padding: 24px; overflow-y: auto; }

/* ── Barre de version ────────────────────────── */
.version-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding: 10px 16px;
  background: var(--light); border-radius: 7px;
  border: 1px solid var(--border); flex-wrap: wrap;
}
.version-badge { background: var(--navy); color: white; border-radius: 20px; padding: 3px 12px; font-size: .8rem; font-weight: 700; }

/* ── Tableau des prestations ─────────────────── */
.prestation-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.prestation-table th {
  background: var(--navy); color: white;
  padding: 9px 12px; text-align: left;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.prestation-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.prestation-table tr:hover td { background: var(--grey); }
.prestation-table input  { padding: 5px 8px; font-size: .85rem; width: 100%; }
.prestation-table select { padding: 5px 8px; font-size: .85rem; width: 100%; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .main    { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 200px; }
}
