/* GMAO Simple — feuille de style (thème clair, couleur principale bleue)
   Aucune ressource externe : fonctionne hors connexion. */
:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-soft: #eff4ff;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --text: #1c2434;
  --muted: #5d6b82;
  --border: #dde3ec;
  --border-strong: #c5cedb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  /* statuts */
  --late-bg: #fde8e7; --late-fg: #b42318; --late-bd: #f7b4ae;
  --waiting-bg: #fff0dc; --waiting-fg: #b54708; --waiting-bd: #fcc98b;
  --planned-bg: #e0eaff; --planned-fg: #1d4ed8; --planned-bd: #a9c1ff;
  --progress-bg: #d9f4f7; --progress-fg: #0e7090; --progress-bd: #95dbe6;
  --done-bg: #dcf7e5; --done-fg: #067647; --done-bd: #93dcb0;
  --muted-bg: #eef0f3; --muted-fg: #535f71; --muted-bd: #d0d5dd;
  --config-bg: #efe9ff; --config-fg: #6334c9; --config-bd: #cdbdf7;
  --attention-bg: #fff8d6; --attention-fg: #8a6100; --attention-bd: #f5de7a;
  --sidebar-w: 256px;
  font-size: 15px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.45;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; font-weight: 650; }
h3 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .mt-s { margin-top: .5rem; }
.hidden { display: none !important; }

/* ---------------- Layout ---------------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30;
}
.brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem .8rem; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.brand-name { font-weight: 750; font-size: 1.08rem; color: var(--primary-dark); }
.brand-version { font-size: .72rem; color: var(--muted); }
.site-box {
  margin: 0 .8rem .6rem; padding: .75rem; background: var(--primary-soft); border: 1px solid #cddcff;
  border-radius: var(--radius);
}
.site-box label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary-dark); font-weight: 700; margin-bottom: .35rem; }
.site-box select { width: 100%; font-weight: 650; background: #fff; }
.site-box .user-line { margin-top: .55rem; font-size: .85rem; color: var(--muted); }
.site-box .user-line strong { color: var(--text); }
.nav-title { padding: .6rem 1.2rem .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; }
.nav { list-style: none; margin: 0; padding: 0 .6rem; }
.nav a {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 8px;
  color: var(--text); font-weight: 550; margin-bottom: 2px;
}
.nav a:hover { background: #f0f3f8; text-decoration: none; }
.nav a.active { background: var(--primary); color: #fff; }
.nav svg { width: 19px; height: 19px; flex: 0 0 19px; stroke: currentColor; }
.sidebar-foot { margin-top: auto; padding: .8rem 1rem 1rem; border-top: 1px solid var(--border); font-size: .88rem; }
.sidebar-foot a { display: block; padding: .3rem 0; color: var(--muted); }
.main { flex: 1; min-width: 0; padding: 1.4rem 1.8rem 3rem; }
.topbar { display: none; }

/* ---------------- Page header / tabs ---------------- */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap; }
.page-header .crumb { font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.page-header .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid var(--border); margin-bottom: 1.1rem; }
.tabs a {
  padding: .65rem 1rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent;
  margin-bottom: -2px; white-space: nowrap; border-radius: 6px 6px 0 0;
}
.tabs a:hover { color: var(--text); background: #eaeef5; text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.subtabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.subtabs a { padding: .4rem .8rem; border-radius: 999px; background: #e8ecf3; color: var(--text); font-size: .88rem;
  font-weight: 550; }
.subtabs a.active { background: var(--primary-dark); color: #fff; }
.subtabs a:hover { text-decoration: none; filter: brightness(.97); }

/* ---------------- Cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem;
  flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .95rem 1rem;
  box-shadow: var(--shadow); border-left: 5px solid var(--muted-bd); color: var(--text); display: block; }
.kpi:hover { text-decoration: none; border-color: var(--border-strong); }
.kpi .v { font-size: 1.85rem; font-weight: 750; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: .88rem; font-weight: 550; }
.kpi .s { color: var(--muted); font-size: .78rem; }
.kpi.k-late { border-left-color: var(--late-fg); } .kpi.k-late .v { color: var(--late-fg); }
.kpi.k-waiting { border-left-color: #f79009; } .kpi.k-waiting .v { color: var(--waiting-fg); }
.kpi.k-planned { border-left-color: var(--primary); } .kpi.k-planned .v { color: var(--primary); }
.kpi.k-done { border-left-color: #17b26a; } .kpi.k-done .v { color: var(--done-fg); }
.kpi.k-attention { border-left-color: #eaaa08; } .kpi.k-attention .v { color: var(--attention-fg); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px;
  padding: .55rem 1.05rem; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff;
  color: var(--text); font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: #f4f6fa; text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: #079455; border-color: #079455; color: #fff; }
.btn-success:hover { background: #067647; }
.btn-warning { background: #f79009; border-color: #f79009; color: #fff; }
.btn-warning:hover { background: #dc6803; }
.btn-danger { background: #fff; border-color: var(--late-bd); color: var(--late-fg); }
.btn-danger:hover { background: var(--late-bg); }
.btn-danger-solid { background: #d92d20; border-color: #d92d20; color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--primary); }
.btn-sm { min-height: 34px; padding: .35rem .7rem; font-size: .86rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.3rem; font-size: 1.02rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* ---------------- Forms ---------------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date],
input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: .5rem .7rem; border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; font: inherit; color: var(--text);
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #c7d7fe; border-color: var(--primary); }
input[disabled], select[disabled], textarea[disabled] { background: #f2f4f7; color: var(--muted); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary); vertical-align: middle; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem 1.1rem; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field.required label::after { content: " *"; color: var(--late-fg); }
.field .help { color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.field .errors { color: var(--late-fg); font-size: .84rem; margin-top: .25rem; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--late-fg); }
.field.check { display: flex; align-items: center; gap: .55rem; padding-top: 1.6rem; }
.field.check label { margin: 0; }
.checklist { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }
.checklist label { font-weight: 500; display: flex; gap: .4rem; align-items: center; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.form-actions { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; padding-top: 1rem;
  border-top: 1px solid var(--border); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .4rem; color: var(--primary-dark); }

/* ---------------- Filters ---------------- */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: .9rem; }
.filters .f { display: flex; flex-direction: column; min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.filters .f.wide { flex: 2 1 240px; max-width: 380px; }
.filters .f label { font-size: .78rem; font-weight: 650; color: var(--muted); margin-bottom: .2rem; }
.filters .f-actions { display: flex; gap: .4rem; }

/* ---------------- Tables ---------------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { background: #f5f7fb; text-align: left; font-weight: 650; color: #344054; padding: .55rem .5rem;
  border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; z-index: 1; font-size: .84rem; }
table.data td { padding: .5rem .5rem; border-bottom: 1px solid #edf0f5; vertical-align: top; }
table.data td.title-col { min-width: 170px; }
table.data th:first-child, table.data td:first-child { padding-left: .75rem; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: #f7f9ff; }
table.data tr.clickable { cursor: pointer; }
table.data tr.selected td { background: #e3ebff !important; box-shadow: inset 0 0 0 9999px rgba(29,78,216,.04); }
table.data tr.selected td:first-child { box-shadow: inset 4px 0 0 var(--primary); }
table.data tr.row-late td { background: #fff7f6; }
table.data tr.row-late td:first-child { box-shadow: inset 4px 0 0 var(--late-fg); }
table.data tr.row-forecast td { color: var(--muted); font-style: italic; background: repeating-linear-gradient(
  -45deg, #fbfcfe, #fbfcfe 8px, #f5f7fb 8px, #f5f7fb 16px); }
table.data tr.row-muted td { color: var(--muted); }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 2.2rem 1rem !important; }
.table-meta { display: flex; justify-content: space-between; align-items: center; margin: .5rem 0; color: var(--muted);
  font-size: .86rem; flex-wrap: wrap; gap: .5rem; }
.pagination { display: flex; gap: .3rem; align-items: center; justify-content: center; margin-top: .8rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .35rem .7rem; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; font-size: .88rem; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------- Badges ---------------- */
.badge { display: inline-block; padding: .16rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 700;
  letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.b-late { background: var(--late-bg); color: var(--late-fg); border-color: var(--late-bd); }
.b-waiting { background: var(--waiting-bg); color: var(--waiting-fg); border-color: var(--waiting-bd); }
.b-planned { background: var(--planned-bg); color: var(--planned-fg); border-color: var(--planned-bd); }
.b-progress { background: var(--progress-bg); color: var(--progress-fg); border-color: var(--progress-bd); }
.b-done { background: var(--done-bg); color: var(--done-fg); border-color: var(--done-bd); }
.b-muted { background: var(--muted-bg); color: var(--muted-fg); border-color: var(--muted-bd); }
.b-config { background: var(--config-bg); color: var(--config-fg); border-color: var(--config-bd); }
.b-attention { background: var(--attention-bg); color: var(--attention-fg); border-color: var(--attention-bd); }
.b-forecast { background: #fff; color: var(--muted); border: 1px dashed var(--border-strong); }
.late-tag { color: var(--late-fg); font-weight: 700; white-space: nowrap; }

/* ---------------- Alerts ---------------- */
.messages { margin-bottom: 1rem; display: grid; gap: .5rem; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; display: flex; gap: .6rem;
  align-items: flex-start; font-weight: 500; }
.alert::before { font-weight: 800; }
.alert-success { background: var(--done-bg); border-color: var(--done-bd); color: #05603a; }
.alert-success::before { content: "✓"; }
.alert-error { background: var(--late-bg); border-color: var(--late-bd); color: #912018; }
.alert-error::before { content: "!"; }
.alert-warning { background: var(--attention-bg); border-color: var(--attention-bd); color: #7a4d00; }
.alert-warning::before { content: "!"; }
.alert-info { background: var(--primary-soft); border-color: #cddcff; color: var(--primary-dark); }
.alert-info::before { content: "i"; }
.alert-config { background: var(--config-bg); border-color: var(--config-bd); color: #4a1fb8; }
.note { padding: .7rem .9rem; border-radius: 8px; background: var(--attention-bg); border: 1px solid var(--attention-bd);
  color: #6f4e00; font-size: .9rem; }
.note-info { background: var(--primary-soft); border-color: #cddcff; color: var(--primary-dark); }
.note-config { background: var(--config-bg); border-color: var(--config-bd); color: #4a1fb8; }

/* ---------------- Detail layouts ---------------- */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem 1.2rem; margin: 0; }
.dl div { min-width: 0; }
.dl dt { font-size: .78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dl dd { margin: .1rem 0 0; font-weight: 550; overflow-wrap: anywhere; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
.split.side { grid-template-columns: minmax(0, 1fr) 300px; }
.split.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
fieldset { min-width: 0; }
.panel { border: 2px solid var(--primary); border-radius: var(--radius); background: #fff; margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(29, 78, 216, .12); scroll-margin-top: 1rem; }
.panel-head { background: var(--primary-soft); padding: .8rem 1.1rem; border-radius: 8px 8px 0 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid #cddcff; }
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 1rem 1.1rem; }
.panel-placeholder { margin-top: 1rem; padding: 1rem; border: 2px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--muted); text-align: center; background: #fafbfd; }

/* ---------------- Execution ---------------- */
.task { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: .85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .6rem; background: #fff; }
.task.done { background: #f3fcf6; border-color: var(--done-bd); }
.task .t-label { font-weight: 650; }
.task .t-meta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .25rem; font-size: .84rem; color: var(--muted); }
.task .hse { color: var(--waiting-fg); font-weight: 600; }
.task textarea { min-height: 42px; margin-top: .5rem; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 56px; height: 30px; border-radius: 999px; background: #cfd6e1; position: relative;
  transition: background .15s; flex: 0 0 56px; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.switch input:checked + .track { background: #17b26a; }
.switch input:checked + .track::after { left: 29px; }
.switch .state { font-weight: 700; font-size: .85rem; min-width: 58px; }
.progress { height: 10px; background: #e7ebf1; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: #17b26a; }

/* ---------------- Planning weekly ---------------- */
.week { margin-bottom: 1.2rem; }
.week-title { display: flex; justify-content: space-between; align-items: baseline; background: var(--primary-dark);
  color: #fff; padding: .6rem 1rem; border-radius: var(--radius) var(--radius) 0 0; }
.week-title h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.week-group { border: 1px solid var(--border); border-top: none; background: #fff; }
.week-group:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.week-group h3 { margin: 0; padding: .55rem 1rem; background: #f5f7fb; border-bottom: 1px solid var(--border);
  font-size: .95rem; display: flex; justify-content: space-between; }

/* ---------------- Login ---------------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem;
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%); }
.login-card { width: 100%; max-width: 410px; background: #fff; border-radius: 14px; padding: 2rem 1.8rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.login-card .brand { padding: 0 0 1.2rem; justify-content: center; }
.login-card .field { margin-bottom: 1rem; }

/* ---------------- Responsive (tablette) ---------------- */
@media (max-width: 1100px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.side, .split.halves { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s;
    box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; }
  .backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 25; }
  .topbar { display: flex; align-items: center; gap: .8rem; position: sticky; top: 0; z-index: 20; background: #fff;
    border-bottom: 1px solid var(--border); padding: .6rem 1rem; }
  .topbar .site { font-weight: 700; color: var(--primary-dark); }
  .main { padding: 1rem 1rem 3rem; }
}
@media (max-width: 640px) {
  .form-grid, .form-grid.cols-2 { grid-template-columns: 1fr; }
  .filters .f { max-width: none; }
  h1 { font-size: 1.3rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .kpi .v { font-size: 1.5rem; }
  .page-header { flex-wrap: wrap; }
}
@media print {
  .sidebar, .topbar, .tabs, .filters, .btn, .form-actions { display: none !important; }
  .main { padding: 0; }
}

/* Saisie rapide des relevés (liste des compteurs) */
table.meters-entry input[type="text"], table.meters-entry input[type="date"] { padding: .35rem .5rem; font-size: .92rem; }
table.data tr.row-error td { background: #fdecea; }
table.data tr.row-error td:first-child { box-shadow: inset 4px 0 0 var(--late-fg); }
.cell-error { color: var(--late-fg); font-size: .88rem; font-weight: 600; white-space: normal; }
.quick .btn { white-space: normal; text-align: center; min-width: 0; line-height: 1.25; }

/* Documents des plans et des OT */
.doc-slot { border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; background: #fafbff; }
.doc-slot h3 { margin-top: 0; }
.doc-upload { display: grid; gap: .45rem; margin-top: .6rem; }
.doc-upload input[type="file"] { font-size: .9rem; }
.doc-buttons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
details summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.audit-val { min-width: 12rem; }
/* Saisie des relevés sur téléphone : une carte par compteur */
@media (max-width: 640px) {
  table.meters-entry thead { display: none; }
  table.meters-entry, table.meters-entry tbody, table.meters-entry tr, table.meters-entry td { display: block; width: 100%; }
  table.meters-entry tr { border-bottom: 1px solid var(--border); padding: .5rem .2rem; }
  table.meters-entry td, table.meters-entry td.num { border: none; padding: .2rem .5rem; text-align: left; }
  table.meters-entry td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem;
    font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  table.meters-entry input[type="text"], table.meters-entry input[type="date"] { width: 100% !important; min-width: 0 !important; }
}

/* Écran de suppression (identique pour tous les éléments) */
.delete-card { max-width: 980px; }
.delete-mode { padding: .7rem .9rem; border-radius: 8px; border-left: 4px solid; }
.delete-mode.hard { background: #fdecea; border-color: var(--late-fg); }
.delete-mode.soft { background: #fff5e6; border-color: #b54708; }
.delete-h { font-size: .95rem; margin: 0 0 .4rem; }
.delete-h-removed { color: var(--late-fg); }
.delete-h-kept { color: #067647; }
.delete-list { margin: 0; padding-left: 1.2rem; }
.delete-list li { margin-bottom: .3rem; }
table.data tr.clickable:focus-visible td { background: #eef3ff; } table.data tr.clickable:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
/* Import / export */
.import-counts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.import-steps { padding-left: 1.2rem; }
.import-steps li { margin-bottom: .35rem; }
/* Mention de l'auteur (discrète) */
.credit { font-size: .72rem; color: #98a2b3; margin-top: .6rem; }
.login-wrap { width: 100%; max-width: 410px; }
.credit-login { text-align: center; margin: .9rem 0 0; color: rgba(255,255,255,.6); }
@media print { .credit { display: none; } }
