<style>
* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  display: flex;
  height: 100vh;
  background: #f4f6f9;
}

/* MENU */
#sidebar {
  width: 240px;
  background: #1e3a8a;
  color: #fff;
  display: flex;
  flex-direction: column;
}

#sidebar h1 {
  font-size: 16px;
  text-align: center;
  padding: 20px 10px;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

#sidebar a {
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

#sidebar a:hover {
  background: rgba(255,255,255,0.15);
}

/* CONTENU */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#header {
  background: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
}

#content {
  padding: 20px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px;
}

.stats {
  display: flex;
  gap: 20px;
}

.stat {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  flex: 1;
  text-align: center;
}

button {
  cursor: pointer;
}
/* ===== PAGE DEVIS (STRUCTURE FIXE + SCROLL) ===== */

.quote-editor {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /* ajuste si besoin */
}

/* Header devis */
.quote-header {
  background: #fff;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

/* Boutons */
.quote-actions {
  background: #f9f9f9;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

/* Zone scrollable */
.quote-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f4f6f9;
}
/* ===== TEXTE RICHE DEVIS ===== */

.text-toolbar {
  margin-bottom: 5px;
}

.text-toolbar button {
  margin-right: 4px;
  padding: 3px 6px;
  font-size: 12px;
}

.editable-text {
  border: 1px solid #ccc;
  padding: 6px;
  min-height: 60px;
  background: #fff;
}
/* ===== AFFICHAGE TEXTE DEVIS ===== */

.quote-description {
  white-space: pre-line;
  color: #333;
}

/* Gras bien visible */
.quote-description strong,
.quote-description b {
  font-weight: 700;
}

/* Titres / chapitres */
.quote-description h3,
.quote-description h4 {
  margin: 6px 0;
  font-weight: 700;
}

/* Listes propres */
.quote-description ul {
  margin: 6px 0 6px 20px;
}
/* ===== HEADER DEVIS COMPACT ===== */

.quote-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quote-header-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 10px;
}

.quote-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
}

.quote-card.full {
  grid-column: 1 / -1;
}

.quote-card label {
  font-size: 12px;
  color: #f97316;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.quote-value {
  font-size: 14px;
  color: #333;
}

.quote-card.status {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-weight: bold;
}

</style>