/* ============================================
   IMMOCHECK — STYLES
   Design : Refined minimal, warm neutrals
   Fonts  : DM Serif Display + DM Sans
   ============================================

   TABLE DES MATIÈRES
   01. Reset & Base
   02. Variables CSS
   03. Typographie utilitaire
   04. Marque (brand-mark)
   05. Formulaires
   06. Boutons
   07. Layout principal (app, sidebar, topbar)
   08. Auth (connexion, inscription, reset)
   09. Cards & surfaces
   10. Composants UI (pills, toast, modal, empty-state, filtres)
   11. Dashboard
   12. Properties
   13. Inspections / EDL
   14. Contacts
   15. Documents & Drive
   16. Wizard EDL
   17. Responsive
   ============================================ */


/* ============================================
   01. RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

em { font-family: 'DM Serif Display', serif; font-style: italic; }


/* ============================================
   02. VARIABLES CSS
   ============================================ */

:root {
  /* Couleurs de surface */
  --bg:        #F7F5F2;
  --surface:   #FFFFFF;
  --surface-2: #F0EDE8;
  --border:    #E5E0D8;
  --border-2:  #D4CEC4;

  /* Texte */
  --text:   #1A1714;
  --text-1: #1A1714;
  --text-2: #6B6460;
  --text-3: #9B9491;

  /* Couleurs sémantiques */
  --accent:       #2D5A3D;
  --accent-light: #E8F0EA;
  --accent-2:       #C8763A;
  --accent-2-light: #FDF0E6;
  --danger:       #C0392B;
  --danger-light: #FDEDEC;
  --warning:       #E67E22;
  --warning-light: #FEF9E7;
  --success:       #27AE60;
  --success-light: #EAFAF1;
  --primary: #2D5A3D;

  /* Layout */
  --sidebar-w: 240px;

  /* Radius */
  --radius:    10px;
  --radius-sm:  6px;
  --radius-lg: 16px;

  /* Ombres */
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);

  /* Transition */
  --transition: 180ms cubic-bezier(.4,0,.2,1);
}


/* ============================================
   03. TYPOGRAPHIE & UTILITAIRES
   ============================================ */

.hidden { display: none !important; }

.flex           { display: flex; }
.gap-1          { gap: 8px; }
.gap-2          { gap: 16px; }
.gap-3          { gap: 24px; }
.align-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.w-full         { width: 100%; }

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.section-sub {
  color: var(--text-2);
  font-size: .875rem;
  margin-bottom: 24px;
}
.label-sm {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.page-loading {
  padding: 40px;
  text-align: center;
  color: var(--text-3);
}


/* ============================================
   04. MARQUE
   ============================================ */

.brand-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2.5px solid rgba(255,255,255,.7);
  border-radius: 3px;
}
.brand-mark.sm { width: 26px; height: 26px; border-radius: 6px; }
.brand-mark.sm::after { inset: 5px; border-width: 2px; }


/* ============================================
   05. FORMULAIRES
   ============================================ */

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  transition: var(--transition);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px var(--accent-light);
}
.field textarea { min-height: 80px; resize: vertical; }

.field-row   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-2); cursor: pointer; }
.checkbox-label input { width: auto; accent-color: var(--accent); }

.link-small { font-size: .8rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.link-small:hover { text-decoration: underline; }

/* Messages de formulaire */
.form-msg         { font-size: .85rem; margin-bottom: 10px; }
.form-msg.error   { color: var(--danger); }
.form-msg.success { color: var(--success); }
.form-hint        { font-size: .8rem; color: var(--text-3); text-align: center; margin-top: 14px; }

/* Champ en erreur */
.input-error { border-color: var(--danger) !important; }

/* Input code d'accès locataire */
.input-code {
  letter-spacing: .14em;
  font-family: monospace;
  font-size: 1.1rem;
  text-align: center;
}


/* ============================================
   06. BOUTONS
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { background: #234a30; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(45,90,61,.3); }
.btn-primary.full    { width: 100%; }
.btn-primary.sm      { padding: 7px 14px; font-size: .8rem; }
.btn-primary.xs      { padding: 4px 10px; font-size: .75rem; }
.btn-primary.danger  { background: var(--danger); }
.btn-primary.warning { background: var(--warning); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--border); }
.btn-secondary.sm  { padding: 6px 12px; font-size: .8rem; }
.btn-secondary.xs  { padding: 4px 10px; font-size: .75rem; }
.btn-secondary.full{ width: 100%; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--border); }
.btn-icon svg   { width: 16px; height: 16px; }

.btn-link-sm {
  font-size: .8rem;
  color: var(--text-3);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Comptes démo */
.demo-accounts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.demo-accounts p { font-size: .8rem; color: var(--text-3); margin-bottom: 10px; }
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-btns button {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}
.demo-btns button:hover { border-color: var(--accent); color: var(--accent); }


/* ============================================
   07. LAYOUT PRINCIPAL
   ============================================ */

.app { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
}
.sidebar-brand {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
}
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.nav-item svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-item:hover  { background: var(--surface-2); }
.nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

.sidebar-bottom { padding: 12px 10px; border-top: 1px solid var(--border); }
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.user-profile:hover { background: var(--surface-2); }

.avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info span  { display: block; font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info small { color: var(--text-3); font-size: .72rem; }

.logout-btn { background: none; border: none; cursor: pointer; color: var(--text-3); padding: 4px; border-radius: 4px; display: flex; }
.logout-btn:hover { color: var(--danger); }
.logout-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Main ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-w));
  max-width: 100%;
}
.topbar {
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.topbar-title   { font-family: 'DM Serif Display', serif; font-size: 1.1rem; font-weight: 400; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.page-content { flex: 1; padding: 28px; overflow-y: auto; }

/* Overlay sidebar mobile */
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.35); }
.sidebar-overlay.visible { display: block; }


/* ============================================
   08. AUTH
   ============================================ */

.auth-screen { min-height: 100vh; display: flex; }

.auth-left {
  width: 52%;
  background: var(--accent);
  color: white;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.auth-left::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.03);
}

.auth-brand               { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand .brand-mark   { background: rgba(255,255,255,.2); }
.auth-brand .brand-name   { font-family: 'DM Serif Display', serif; font-size: 1.3rem; letter-spacing: -.01em; }
.auth-hero                { position: relative; z-index: 1; }
.auth-hero h1             { font-family: 'DM Serif Display', serif; font-size: 3rem; line-height: 1.1; margin-bottom: 20px; font-weight: 400; }
.auth-hero h1 em          { color: rgba(255,255,255,.7); }
.auth-hero p              { color: rgba(255,255,255,.75); font-size: .95rem; max-width: 380px; }
.auth-stats               { display: flex; gap: 40px; position: relative; z-index: 1; }
.auth-stats .stat span    { display: block; font-family: 'DM Serif Display', serif; font-size: 1.8rem; }
.auth-stats .stat small   { color: rgba(255,255,255,.6); font-size: .8rem; }

.auth-right {
  flex: 1;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
}

.auth-tabs     { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; width: fit-content; margin-bottom: 32px; }
.auth-tab      { padding: 8px 20px; border: none; background: none; border-radius: 7px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: .875rem; font-weight: 500; color: var(--text-2); transition: var(--transition); }
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.auth-form h2  { font-family: 'DM Serif Display', serif; font-size: 1.8rem; font-weight: 400; margin-bottom: 6px; }
.form-sub      { color: var(--text-2); margin-bottom: 28px; font-size: .9rem; }

/* Page reset-password */
.auth-screen--centered { justify-content: center; align-items: center; }
.reset-wrapper     { width: 100%; max-width: 420px; padding: 24px; }
.reset-brand       { text-align: center; margin-bottom: 32px; }
.reset-brand .brand-mark  { margin: 0 auto 12px; }
.reset-brand .brand-name  { font-size: 1.4rem; font-weight: 700; }
.reset-card        { padding: 28px; }
.reset-title       { margin-bottom: 6px; font-size: 1.3rem; }
.reset-error       { color: var(--danger); text-align: center; padding: 20px; }
.reset-back        { display: block; text-align: center; margin-top: 16px; }
.reset-success     { text-align: center; padding: 20px; }
.reset-success-icon  { font-size: 2.5rem; margin-bottom: 12px; }
.reset-success-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }


/* ============================================
   09. CARDS & SURFACES
   ============================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title  { font-family: 'DM Serif Display', serif; font-size: 1.05rem; font-weight: 400; }

/* Progress bar */
.progress-wrap { background: var(--surface-2); border-radius: 6px; height: 6px; overflow: hidden; }
.progress-bar  { height: 100%; background: var(--accent); border-radius: 6px; transition: width .4s ease; }


/* ============================================
   10. COMPOSANTS UI
   ============================================ */

/* ── Pills ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.pill.green  { background: var(--success-light); color: var(--success); }
.pill.orange { background: var(--accent-2-light); color: var(--accent-2); }
.pill.red    { background: var(--danger-light);   color: var(--danger); }
.pill.grey   { background: var(--surface-2);      color: var(--text-3); }
.pill.blue   { background: #EBF5FB;               color: #2980b9; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--text); color: white; padding: 12px 20px;
  border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast--fade   { opacity: 0; transition: opacity .3s; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  backdrop-filter: blur(3px);
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 90%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-header h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; font-weight: 400; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--text-3); line-height: 1; padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state svg { width: 48px; height: 48px; stroke: var(--border-2); fill: none; stroke-width: 1.5; margin-bottom: 16px; }
.empty-state h3  { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--text-2); margin-bottom: 6px; }
.empty-state p   { font-size: .875rem; }

/* ── Filtres & recherche ── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 200px; padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .875rem;
  background: var(--surface); outline: none; transition: var(--transition);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.filter-select {
  padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: .875rem;
  background: var(--surface); outline: none; cursor: pointer;
}

/* ── Boutons filtre type (Documents, Contacts, Charges) ── */
.doc-type-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.doc-type-btn:hover  { border-color: var(--border-2); color: var(--text); }
.doc-type-btn.active { border-color: transparent; color: white; background: var(--accent); }

/* ── Fil d'ariane ── */
.breadcrumb-bar {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 20px;
  background: var(--surface-2); border-radius: 10px;
  padding: 4px 8px; flex-wrap: wrap;
}
.breadcrumb-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: 7px; padding: 6px 12px;
  font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.breadcrumb-sep     { color: var(--text-3); padding: 0 4px; font-size: 1rem; }
.breadcrumb-current { font-weight: 700; font-size: .9rem; color: var(--text-1); padding: 6px 8px; }

/* ── Photo upload ── */
.photo-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 20px; text-align: center;
  cursor: pointer; transition: var(--transition);
}
.photo-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.photo-zone p     { font-size: .82rem; color: var(--text-3); margin-top: 6px; }

.photo-previews {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px; justify-content: flex-start; align-items: flex-start;
}
.photo-thumb-wrap {
  position: relative; width: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.photo-thumb-wrap .photo-thumb {
  width: 76px; height: 76px;
  object-fit: cover; border-radius: 6px;
  border: 1.5px solid var(--border);
  cursor: zoom-in; transition: opacity .15s; display: block;
}
.photo-thumb-wrap .photo-thumb:hover { opacity: .82; }
.photo-thumb-del {
  position: absolute; top: -6px; right: -2px;
  width: 22px; height: 22px;
  background: var(--danger); color: #fff;
  border: 2px solid white; border-radius: 50%;
  font-size: .65rem; font-weight: 700;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.photo-thumb-wrap:hover .photo-thumb-del { opacity: 1; }
.photo-legende-input {
  width: 64px; font-size: .6rem; padding: 2px 4px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface-2); color: var(--text-1);
  text-align: center; line-height: 1.2; outline: none;
  transition: border-color .15s;
}
.photo-legende-input::placeholder { color: var(--text-3); font-style: italic; }
.photo-legende-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(45,90,61,.12); }


/* ============================================
   11. DASHBOARD
   ============================================ */

.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.dashboard-row  { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.green::before  { background: var(--accent); }
.stat-card.orange::before { background: var(--accent-2); }
.stat-card.red::before    { background: var(--danger); }
.stat-card.blue::before   { background: #3498db; }

.stat-label { font-size: .75rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.stat-value { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--text); line-height: 1; }
.stat-delta { font-size: .78rem; color: var(--text-3); margin-top: 6px; }
.stat-delta.up   { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* Stat cards locataire (cliquables, sans bordure colorée) */
.stat-card--neutre { background: var(--surface); border: 1px solid var(--border); }
.stat-card--link   { cursor: pointer; }
.stat-label--muted { color: var(--text-3); }
.stat-value--dark  { color: var(--text-1); }
.stat-sub          { font-size: .78rem; color: var(--text-3); margin-top: 6px; }
.stat-sub--muted   { font-size: .78rem; color: var(--text-3); margin-top: 4px; }

/* Quick actions */
.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.qa-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.qa-item:hover { background: var(--border); transform: translateX(3px); }
.qa-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qa-icon svg    { width: 18px; height: 18px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qa-icon.green  { background: var(--accent); }
.qa-icon.orange { background: var(--accent-2); }
.qa-icon.blue   { background: #3498db; }
.qa-icon--accent2 { background: var(--accent-2-light); }
.qa-text span   { display: block; font-size: .85rem; font-weight: 600; }
.qa-text small  { color: var(--text-3); font-size: .75rem; }

/* EDL en attente (dashboard) */
.dash-edl-row    { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; flex-wrap: wrap; }
.dash-edl-info   { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash-edl-text   { min-width: 0; }
.dash-edl-addr   { font-weight: 600; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-edl-meta   { font-size: .78rem; color: var(--text-3); }
.dash-edl-list   { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.dash-empty-msg  { padding: 24px; text-align: center; color: var(--text-3); font-size: .875rem; }
.dash-logement-addr  { font-size: 1.05rem; font-weight: 600; }
.dash-logement-since { font-size: .82rem; color: var(--text-3); margin-top: 4px; }


/* ============================================
   12. PROPERTIES
   ============================================ */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.property-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.property-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.property-img {
  height: 80px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.property-info { padding: 14px 16px; }
.property-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.property-address { font-size: .8rem; color: var(--text-2); }
.property-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
}


/* ============================================
   13. INSPECTIONS / EDL
   ============================================ */

.inspections-list { display: flex; flex-direction: column; gap: 12px; }
.edl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition); cursor: pointer;
}
.edl-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.edl-type-badge {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; flex-shrink: 0;
}
.edl-type-badge.entree { background: var(--success-light); color: var(--success); }
.edl-type-badge.sortie { background: var(--accent-2-light); color: var(--accent-2); }
.edl-info    { flex: 1; }
.edl-addr    { font-weight: 600; font-size: .9rem; }
.edl-meta    { font-size: .8rem; color: var(--text-2); margin-top: 2px; }
.edl-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Bandeau filtre EDL */
.edl-filter-banner   { background: var(--surface-2); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: .85rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.edl-filter-label    { color: var(--text-2); }
.edl-filter-actions  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.edl-back-link       { font-size: .8rem; font-weight: 500; }

/* Statut signature */
.edl-sig-status { font-size: .8rem; margin-top: 4px; }
.edl-room-count { float: right; font-size: .78rem; color: var(--text-3); }

/* Warnings type EDL */
.edl-warning         { border-radius: 8px; padding: 10px 14px; font-size: .82rem; }
.edl-warning.danger  { background: #fdf2f2; border: 1px solid rgba(192,57,43,.3); color: var(--danger); }
.edl-warning.warning { background: #fffbf0; border: 1px solid rgba(230,126,34,.3); color: var(--warning); }
.edl-warning.success { background: #f0fdf4; border: 1px solid rgba(39,174,96,.25); color: var(--success); }


/* ============================================
   14. CONTACTS
   ============================================ */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: var(--transition);
}
.contact-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.contact-header  { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-avatar  { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: white; flex-shrink: 0; }
.contact-name    { font-weight: 600; font-size: .9rem; }
.contact-role    { font-size: .75rem; color: var(--text-3); }
.contact-detail  { font-size: .8rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; word-break: break-all; }


/* ============================================
   15. DOCUMENTS & DRIVE
   ============================================ */

.documents-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.doc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: var(--transition); cursor: pointer;
}
.doc-card:hover { border-color: var(--accent-2); box-shadow: var(--shadow); }
.doc-icon    { font-size: 2rem; }
.doc-name    { font-weight: 600; font-size: .875rem; }
.doc-sub     { font-size: .78rem; color: var(--text-3); }
.doc-footer  { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 8px; flex-wrap: wrap; }

/* Onglets documents */
.doc-tabs {
  display: flex; gap: 6px;
  background: var(--surface-2); padding: 5px; border-radius: 12px;
  width: fit-content; margin-bottom: 28px;
}
.doc-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 28px; border: none; background: none; border-radius: 9px;
  cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: .9rem;
  font-weight: 500; color: var(--text-2); transition: var(--transition); white-space: nowrap;
}
.doc-tab .tab-icon { font-size: 1.4rem; }
.doc-tab.active    { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }

/* Pills type document */
.doc-type-pill { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 20px; margin-bottom: 4px; }
.doc-card-header { display: flex; gap: 12px; align-items: flex-start; }
.doc-icon-wrap   { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-meta        { font-size: .78rem; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 5px 10px; }
.doc-date        { font-size: .75rem; color: var(--text-3); }

/* Drive */
.drive-folders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.drive-folder-card  { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: var(--transition); min-width: 0; }
.drive-folder-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.drive-docs-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.drive-doc-card     { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: var(--transition); }
.drive-doc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.doc-icon-large { font-size: 2.4rem; }
.doc-nom        { font-size: .8rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; word-break: break-word; }
.doc-meta-sm    { font-size: .72rem; color: var(--text-3); width: 100%; }
.doc-actions    { display: flex; gap: 6px; width: 100%; justify-content: center; margin-top: 4px; }

/* Onglets Charges */
.charges-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--surface-2); padding: 4px; border-radius: 10px;
  width: 100%; margin-bottom: 24px;
}
.charges-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 6px; border: none; background: none; border-radius: 7px;
  cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: .78rem;
  font-weight: 500; color: var(--text-2); transition: var(--transition);
  line-height: 1.2; text-align: center;
}
.charges-tab .tab-icon { font-size: 1.1rem; }
.charges-tab.active    { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Cards charges */
.charges-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.charge-card    { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; }
.charge-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.charge-cat     { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.charge-montant { font-size: 1.3rem; font-weight: 700; margin: 4px 0; }
.charge-desc    { font-size: .82rem; color: var(--text-2); margin-bottom: 8px; }
.charge-footer  { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-3); flex-wrap: wrap; gap: 6px; }

/* Tableaux récap charges */
.recap-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.recap-table th { background: var(--accent); color: white; padding: 8px 12px; text-align: left; font-size: .82rem; }
.recap-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: .875rem; }
.recap-table .total-row td { font-weight: 700; background: var(--surface-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.solde-box { border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.solde-box.positif { background: var(--accent-2-light); border: 1.5px solid var(--accent-2); }
.solde-box.negatif { background: var(--success-light);  border: 1.5px solid var(--success); }
.index-table    { width: 100%; border-collapse: collapse; }
.index-table th { background: var(--accent); color: white; padding: 8px 12px; font-size: .82rem; text-align: left; }
.index-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: .875rem; }
.index-source   { font-size: .72rem; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.index-source.edl { background: var(--accent-light); color: var(--accent); }


/* ============================================
   16. WIZARD EDL (PLEIN ÉCRAN)
   ============================================ */

.edl-wizard { position: fixed; inset: 0; background: var(--bg); z-index: 900; overflow-y: auto; }
.wizard-topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }

.wizard-context-bar {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 24px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); font-size: .8rem;
  min-width: 0; overflow: hidden;
}
.wizard-context-info {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; min-width: 0; flex-wrap: nowrap; overflow: hidden;
}
.wizard-context-type    { flex-shrink: 0; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.wizard-context-address { font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wizard-context-detail  { color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.wizard-context-tenant  { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.wizard-steps {
  display: flex; gap: 6px; flex: 1; justify-content: center;
  padding: 10px 24px; border-bottom: 1px solid var(--border);
}
.wizard-topbar-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px; gap: 12px;
}
.wizard-step {
  display: flex; align-items: center; gap: 6px; padding: 5px 14px;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-3); cursor: pointer;
  transition: var(--transition);
}
.wizard-step.active { background: var(--accent); color: white; }
.wizard-step.done   { background: var(--accent-light); color: var(--accent); }
.wizard-step .step-num {
  width: 18px; height: 18px; border-radius: 50%; background: currentColor;
  color: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800;
}
.wizard-step.active .step-num { background: rgba(255,255,255,.3); color: white; }

.wizard-body         { max-width: 800px; margin: 0 auto; padding: 32px 24px; }
.wizard-section-title{ font-family: 'DM Serif Display', serif; font-size: 1.5rem; margin-bottom: 6px; }
.wizard-section-sub  { color: var(--text-2); margin-bottom: 28px; font-size: .875rem; }

/* Pièces */
.room-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.room-header  { padding: 14px 18px; background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; cursor: pointer; flex-wrap: wrap; gap: 8px; }
.room-header-left  { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.room-header-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.room-body    { padding: 16px 18px; overflow: visible; }

/* Tableau éléments */
.items-table-wrap { overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.items-table th { text-align: left; font-size: .72rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px; }
.items-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.items-table tr:last-child td { border-bottom: none; }
.items-table input,
.items-table select { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); font-size: .82rem; font-family: 'DM Sans', sans-serif; }
.items-table input:focus,
.items-table select:focus { outline: none; border-color: var(--accent); }

/* État éléments */
.state-select { appearance: none; padding: 5px 28px 5px 10px; border-radius: 6px; font-weight: 600; font-size: .78rem; cursor: pointer; }
.state-neuf           { background: var(--success-light); color: var(--success); border: 1px solid rgba(39,174,96,.2); }
.state-bon            { background: #EBF5FB; color: #2980b9; border: 1px solid rgba(52,152,219,.2); }
.state-usage          { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(230,126,34,.2); }
.state-mauvais        { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(192,57,43,.2); }
.state-non_fonctionnel{ background: #F5EEF8; color: #7D3C98; border: 1px solid rgba(125,60,152,.2); }

/* Compteurs */
.meters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.meter-card  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.meter-icon  { font-size: 1.8rem; margin-bottom: 10px; }
.meter-type  { font-weight: 600; font-size: .875rem; margin-bottom: 12px; }
.meter-input-wrap { display: flex; align-items: center; gap: 8px; }
.meter-input-wrap input { flex: 1; }
.meter-unit  { font-size: .8rem; color: var(--text-3); }

/* Clés */
.keys-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.key-item  { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; }
.key-counter { display: flex; align-items: center; gap: 6px; }
.key-counter button { width: 22px; height: 22px; border: 1px solid var(--border); background: var(--surface); border-radius: 4px; cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.key-counter span   { font-weight: 700; min-width: 20px; text-align: center; }


/* ============================================
   17. RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-row  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Auth */
  .auth-left  { display: none; }
  .auth-right { padding: 32px 24px; }

  /* Sidebar en overlay */
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); transition: transform 220ms cubic-bezier(.4,0,.2,1); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; width: 100%; }
  .menu-toggle  { display: flex; }

  /* Layout */
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .page-content   { padding: 16px; }
  .field-row-2    { grid-template-columns: 1fr; }
  .meters-grid    { grid-template-columns: 1fr; }
  .doc-tabs       { width: 100%; }
  .doc-tab        { flex: 1; padding: 10px 8px; font-size: .82rem; }
  .drive-folders-grid { display: flex; flex-direction: column; gap: 10px; }
  .drive-docs-grid    { grid-template-columns: repeat(2, 1fr); }
  .charges-tabs   { grid-template-columns: repeat(2, 1fr); }
  .photo-thumb-del    { opacity: 1; }
  .photo-thumb-wrap   { width: 76px; }
  .photo-thumb-wrap .photo-thumb { width: 72px; height: 72px; }

  /* Modal */
  .modal { width: 96%; max-height: 92vh; }
  .modal-body { padding: 16px; }

  /* Wizard topbar — 3 lignes */
  .wizard-topbar         { flex-direction: column; align-items: stretch; }
  .wizard-context-bar    { order: 0; padding: 8px 14px; justify-content: center; }
  .wizard-context-info   { flex-wrap: wrap; }
  .wizard-context-detail,
  .wizard-context-tenant { display: none; }
  .wizard-steps          { order: 1; width: 100%; overflow-x: auto; justify-content: flex-start; padding: 10px 14px; gap: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .wizard-steps::-webkit-scrollbar { display: none; }
  .wizard-step           { padding: 5px 12px; font-size: .75rem; white-space: nowrap; flex-shrink: 0; }
  .wizard-topbar-actions { order: 2; padding: 8px 14px; }
  .wizard-body           { padding: 20px 14px; }

  /* Tableau éléments — compact mobile */
  .items-table-wrap { overflow-x: visible; }
  .items-table      { min-width: unset; }
  .items-table thead { display: none; }
  .items-table tbody { display: block; }
  .items-table tr {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    grid-template-rows: auto auto auto;
    gap: 4px 6px; padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .items-table tr:last-child { border-bottom: none; }
  .items-table td { display: block; padding: 0; border: none; min-width: 0; overflow: hidden; }
  .items-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .items-table td:nth-child(1) input { font-weight: 600; font-size: .85rem; padding: 5px 8px; width: 100%; }
  .items-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .items-table td:nth-child(2) select { width: auto; font-size: .75rem; padding: 5px 22px 5px 8px; }
  .items-table td:nth-child(6) { grid-column: 3 / 5; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; }
  .items-table td:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .items-table td:nth-child(3) input { font-size: .8rem; padding: 4px 8px; width: 100%; }
  .items-table td:nth-child(4) { grid-column: 3 / 5; grid-row: 2; display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: .75rem; color: var(--text-3); }
  .items-table td:nth-child(4)::before { content: 'Nett.'; }
  .items-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px; overflow: visible; }
  .items-table td:nth-child(5) .btn-icon { flex-shrink: 0; }
  .items-table td:nth-child(5) .photo-previews { flex: 1; margin-top: 0; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .dashboard-grid    { grid-template-columns: 1fr; }
  .properties-grid   { grid-template-columns: 1fr; }
  .contacts-grid     { grid-template-columns: 1fr; }
  .documents-list    { grid-template-columns: 1fr; }
  .topbar            { padding: 0 14px; }
  .page-content      { padding: 12px; }
  .wizard-body       { padding: 16px 12px; }
  .btn-primary,
  .btn-secondary     { font-size: .82rem; padding: 8px 14px; }
  .edl-card          { flex-wrap: wrap; gap: 8px; }
  .edl-actions       { width: 100%; justify-content: flex-end; }
  .charges-tabs      { grid-template-columns: repeat(2, 1fr); }
  .doc-tab           { padding: 10px 6px; font-size: .75rem; }
}
