@import url("https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css");

:root {
  color-scheme: dark;
  --background: #090b10;
  --panel: #11151d;
  --line: #222936;
  --muted: #8791a2;
  --green: #a3e635;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: #f4f6fa;
  font-family: Arial, Helvetica, sans-serif;
}
button, input, select { font: inherit; }
::selection { background: #a3e635; color: #111; }
.panel {
  background: linear-gradient(145deg, rgba(19,24,34,.98), rgba(14,18,26,.98));
  border: 1px solid var(--line);
  border-radius: 15px;
}
.muted { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.stat-table th {
  color: #7f899a; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; text-align: right; padding: 13px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stat-table td {
  padding: 15px 14px; border-bottom: 1px solid rgba(34,41,54,.72);
  text-align: right; font-size: 12px; white-space: nowrap;
}
.stat-table tbody tr:last-child td { border-bottom: 0; }
.stat-table tbody tr:hover { background: rgba(255,255,255,.025); }

/* Édition inline */
.editable { cursor: pointer; border-bottom: 1px dashed #3a4557; }
.editable:hover { color: #a3e635; }
.cell-input {
  width: 70px; background: #0b1017; border: 1px solid #a3e635;
  color: #fff; border-radius: 4px; padding: 2px 4px; text-align: right;
  font-size: 12px; outline: none;
}
.cell-input.name { width: 160px; text-align: left; }

/* Modale */
.modal-overlay {
  position: fixed; inset: 0; z-index: 30; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px); padding: 1rem;
}
.modal-box {
  width: 100%; max-width: 440px; border-radius: 16px;
  border: 1px solid #303a49; background: #131923;
  padding: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}