/* ============================================================
   OFFICEA — Documents IA — styles v5
   Palette : navy #1a2942, ocre #b8843f, ivoire #f5f1e8
   ============================================================ */

/* ─── 1. ZONE UPLOAD : bouton unique central ──────────────── */
.docs-upload-zone {
  background: linear-gradient(135deg, #ffffff 0%, #faf6ec 100%);
  border: 2px dashed rgba(184, 132, 63, 0.35);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  margin: 0 0 24px;
  transition: border-color 0.2s, background 0.2s;
}
.docs-upload-zone.is-dragover {
  border-color: #b8843f;
  background: linear-gradient(135deg, #fff7e8 0%, #ffe8d0 100%);
}

/* Variante épurée : pas de cadre pointillé ni fond, juste le bouton héro pleine largeur */
.docs-upload-zone-bare {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 20px;
}

.docs-upload-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #1a2942;
  margin: 0 0 6px;
}
.docs-upload-title em {
  color: #b8843f;
  font-style: italic;
}
.docs-upload-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #6a6558;
  margin: 0 0 20px;
}

/* Le gros bouton "Ajouter" */
#docs-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #b8843f 0%, #9d6f30 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 28px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 132, 63, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
#docs-add-btn:hover {
  box-shadow: 0 6px 20px rgba(184, 132, 63, 0.38);
}
#docs-add-btn:active {
  transform: scale(0.97);
}
#docs-add-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-upload-hint {
  font-size: 11px;
  color: #8a8474;
  margin: 16px 0 0;
  font-style: italic;
}
@media (hover: none) and (pointer: coarse) {
  .docs-upload-hint { display: none; }
}

/* ─── 2. CARTES "EN COURS DE TRAITEMENT" ──────────────────── */
.docs-proc-card {
  background: #ffffff;
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(26, 41, 66, 0.04);
  transition: transform 0.15s, border-color 0.2s;
}
.docs-proc-card.is-ready {
  cursor: pointer;
  border-color: #b8843f;
}
.docs-proc-card.is-ready:hover {
  transform: translateY(-2px);
}
.docs-proc-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f5f1e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}
.docs-proc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.docs-proc-info {
  flex: 1;
  min-width: 0;
}
.docs-proc-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a2942;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.docs-proc-status {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #6a6558;
  line-height: 1.4;
}
.docs-proc-status.is-ok { color: #2e7d32; }
.docs-proc-status.is-warn { color: #b86a00; }
.docs-proc-status.is-error { color: #b8442e; }
.docs-err-detail {
  font-family: 'Consolas', monospace;
  font-size: 10px;
  opacity: 0.7;
}

/* ─── 3. CARTES STATS PAR CATÉGORIE ("Vue d'ensemble") ──── */
.docs-category-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}
@media (min-width: 480px) {
  .docs-category-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
.docs-cat-card {
  background: #ffffff;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(26, 41, 66, 0.04);
  -webkit-tap-highlight-color: transparent;
}
.docs-cat-card:hover:not(.is-empty) {
  border-color: #b8843f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 132, 63, 0.15);
}
.docs-cat-card:active:not(.is-empty) {
  transform: scale(0.97);
}
.docs-cat-card.is-empty {
  opacity: 0.5;
  cursor: default;
}
.docs-cat-icon {
  font-size: 28px;
  line-height: 1;
}
.docs-cat-label {
  font-size: 10.5px;
  color: #6a6558;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}
.docs-cat-count {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a2942;
  line-height: 1;
}
.docs-cat-card.is-empty .docs-cat-count {
  color: #b8843f;
  opacity: 0.5;
}

/* ─── 4. FILTRES ──────────────────────────────────────────── */
.docs-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 16px;
}
.docs-filters input,
.docs-filters select {
  background: #ffffff;
  border: 1px solid #e0d7c0;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #1a2942;
  outline: none;
  min-width: 0;
  flex: 1 1 140px;
}
.docs-filters input:focus,
.docs-filters select:focus {
  border-color: #b8843f;
}

/* ─── 5. LISTE / TABLEAU ─────────────────────────────────── */
.docs-list-wrap {
  background: #ffffff;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26, 41, 66, 0.04);
}
.docs-list-head {
  background: #f5f1e8;
  padding: 12px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6a6558;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e8e0d0;
}
.docs-list-scroll {
  overflow-x: hidden;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.docs-table th {
  text-align: left;
  padding: 10px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: #6a6558;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e8e0d0;
  background: #faf7f0;
}
.docs-table td {
  padding: 12px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #1a2942;
  border-bottom: 1px solid #f0e9d8;
  vertical-align: top;
}
.docs-table tr:hover td {
  background: #faf7f0;
}
.docs-cell-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.docs-cell-summary {
  color: #6a6558;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.5;
}
.docs-cell-actions {
  white-space: nowrap;
}
.docs-link {
  color: #b8843f;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
}
.docs-link:hover {
  text-decoration: underline;
}
.docs-badge-cat {
  display: inline-block;
  background: #f5f1e8;
  color: #1a2942;
  border: 1px solid #e8e0d0;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.docs-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8a8474;
  font-style: italic;
  font-size: 13px;
}

/* ─── 6. MODALE VALIDATION ───────────────────────────────── */
.docs-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.docs-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.docs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 41, 66, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.docs-modal-card {
  position: relative;
  background: #f5f1e8;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -8px 40px rgba(26, 41, 66, 0.25);
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-overflow-scrolling: touch;
  font-family: 'Inter', system-ui, sans-serif;
}
.docs-modal.is-open .docs-modal-card {
  transform: translateY(0);
}
@media (min-width: 720px) {
  .docs-modal {
    align-items: center;
    padding: 24px;
  }
  .docs-modal-card {
    border-radius: 14px;
    transform: translateY(20px) scale(0.98);
  }
  .docs-modal.is-open .docs-modal-card {
    transform: translateY(0) scale(1);
  }
}
html.docs-modal-open,
html.docs-modal-open body {
  overflow: hidden;
}

.docs-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 41, 66, 0.08);
  border: none;
  color: #1a2942;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.docs-modal-close:hover {
  background: rgba(26, 41, 66, 0.16);
}

.docs-modal-preview {
  margin: 0 0 18px;
  text-align: center;
}
.docs-modal-preview-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  border: 1px solid #e8e0d0;
}
.docs-modal-preview-pdf {
  background: #ffffff;
  border: 1px solid #e8e0d0;
  border-radius: 8px;
  padding: 20px;
  font-size: 14px;
  color: #6a6558;
}

.docs-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  color: #1a2942;
  text-align: center;
  margin: 0 0 16px;
}
.docs-modal-title em {
  color: #b8843f;
  font-style: italic;
}

.docs-modal-ai {
  font-size: 12.5px;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.docs-modal-ai-ok {
  background: #eff6ee;
  border-left: 3px solid #2e7d32;
  color: #1f5e23;
}
.docs-modal-ai-warn {
  background: #fff7e0;
  border-left: 3px solid #b86a00;
  color: #6e4400;
}

.docs-modal-field {
  margin: 0 0 14px;
}
.docs-modal-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a6558;
  font-weight: 600;
  margin-bottom: 6px;
}
.docs-modal-field input,
.docs-modal-field select,
.docs-modal-field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e0d7c0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #1a2942;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.docs-modal-field input:focus,
.docs-modal-field select:focus,
.docs-modal-field textarea:focus {
  border-color: #b8843f;
}
.docs-modal-field textarea {
  resize: vertical;
  min-height: 60px;
}
.docs-modal-field small {
  display: block;
  font-size: 11px;
  color: #8a8474;
  margin-top: 4px;
  font-style: italic;
}

.docs-modal-expense {
  background: linear-gradient(135deg, #fff8e8 0%, #ffeed0 100%);
  border-left: 3px solid #b8843f;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.docs-modal-expense-title {
  font-size: 13px;
  font-weight: 600;
  color: #8a5a00;
  margin-bottom: 6px;
}
.docs-modal-expense-detail {
  font-size: 12.5px;
  color: #6e4400;
  line-height: 1.6;
}

.docs-modal-error {
  background: #fdecea;
  color: #b8442e;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  margin: 0 0 16px;
}

.docs-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.docs-btn-primary,
.docs-btn-ghost {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
}
.docs-btn-primary {
  background: #1a2942;
  color: #f5f1e8;
  border: none;
}
.docs-btn-primary:hover {
  background: #0f1a2a;
}
.docs-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.docs-btn-ghost {
  background: transparent;
  color: #1a2942;
  border: 1px solid #1a2942;
}
.docs-btn-ghost:hover {
  background: rgba(26, 41, 66, 0.05);
}

/* ─── 7. BOUTONS D'ACTION DANS LA LISTE ──────────────────── */
.docs-action-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.docs-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.docs-action:hover {
  background: #f5f1e8;
  border-color: #e8e0d0;
}
.docs-action-open:hover { background: #fff7e8; border-color: #b8843f33; }
.docs-action-edit:hover { background: #eef2fa; border-color: #1a294233; }
.docs-action-del:hover  { background: #fdecea; border-color: #b8442e33; }

/* ─── 8. TRI DES COLONNES ────────────────────────────────── */
.docs-table th[data-sort] {
  user-select: none;
  transition: background 0.15s;
}
.docs-table th[data-sort]:hover {
  background: #f0e9d8;
}
.sort-arrow {
  color: #b8843f;
  font-weight: 700;
  margin-left: 2px;
}

/* ─── 9. MODALE CONFIRMATION SUPPRESSION ─────────────────── */
.docs-modal-card-confirm {
  text-align: center;
  max-width: 440px;
}
.docs-modal-confirm-icon {
  font-size: 48px;
  line-height: 1;
  margin: 8px 0 12px;
}
.docs-modal-confirm-text {
  font-size: 15px;
  color: #1a2942;
  margin: 0 0 16px;
  line-height: 1.5;
}
.docs-modal-confirm-meta {
  font-size: 12px;
  color: #6a6558;
  font-style: italic;
}
.docs-modal-confirm-info {
  background: #eff6ee;
  border-left: 3px solid #2e7d32;
  color: #1f5e23;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  border-radius: 6px;
  margin: 0 0 16px;
}
.docs-btn-danger {
  background: #b8442e;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  transition: background 0.15s;
}
.docs-btn-danger:hover {
  background: #962f1d;
}
.docs-btn-danger:disabled {
  opacity: 0.6;
  cursor: wait;
}

.docs-modal-edit-sub {
  text-align: center;
  margin: -8px 0 16px;
  font-size: 13px;
}

/* ============================================================
   MODALE VALIDATION — Bloc events détectés par l'IA (Session B)
   ============================================================ */
.docs-modal-events {
  background: linear-gradient(135deg, #faf6ed 0%, #f5f1e8 100%);
  border: 1px solid #e8d4a8;
  border-left: 4px solid #b8843f;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 12px 0;
}
.docs-modal-events-title {
  font-size: 13px;
  font-weight: 600;
  color: #b8843f;
  margin-bottom: 8px;
}
.docs-modal-events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.docs-modal-events-list li {
  background: white;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ede5d3;
  font-size: 13px;
  color: #1a2332;
  list-style: none;
}
.docs-event-meta {
  font-size: 12px;
  color: #5a6478;
}
.docs-modal-events-help {
  font-size: 11px;
  color: #8a8474;
  font-style: italic;
  margin: 8px 0 0;
}

/* ============================================================
   MODALE VALIDATION — Events éditables (Session B v2)
   ============================================================ */
.docs-modal-events-list .docs-event-item {
  background: white;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ede5d3;
  list-style: none;
  margin-bottom: 8px;
}
.docs-event-row {
  margin-bottom: 8px;
}
.docs-event-row:last-child {
  margin-bottom: 0;
}
.docs-event-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8474;
  font-weight: 600;
  margin-bottom: 4px;
}
.docs-event-item input[type="text"],
.docs-event-item input[type="date"],
.docs-event-item input[type="time"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d9cfb8;
  border-radius: 4px;
  background: #faf6ed;
  font-size: 13px;
  font-family: inherit;
  color: #1a2332;
  min-height: 38px;
}
.docs-event-item input:focus {
  outline: none;
  border-color: #b8843f;
  background: white;
}
.docs-event-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.docs-event-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5a6478;
  font-weight: 500;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.docs-event-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #b8843f;
  cursor: pointer;
  margin: 0;
}

/* ============================================================
   DUAL BOUTONS CAMERA / GALERIE (Fire & Forget)
   ============================================================ */
.docs-upload-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 12px 0 8px;
}

.docs-upload-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  background: #1a2942;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.1s;
}

.docs-upload-btn:hover { background: #2a3a52; }
.docs-upload-btn:active { transform: scale(0.97); }

/* Bouton unique "Ajout intelligent" — même identité dorée que le dashboard */
.docs-upload-btn-main {
  width: 100%;
  flex: 1 1 100%;
  text-align: center;
  line-height: 1.3;
  padding: 16px 14px;
}
.docs-upload-btn-main svg { flex-shrink: 0; }

/* ── Bouton héro doré (aligné sur .home-quick-upload du dashboard) ── */
.docs-upload-btn-hero {
  width: 100%;
  flex: 1 1 100%;
  margin: 0;
  background: linear-gradient(135deg, var(--ocre, #b8843f) 0%, var(--ocre-soft, #cfa063) 100%);
  border: none;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(184, 132, 63, 0.25);
  transition: transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.docs-upload-btn-hero:hover { box-shadow: 0 6px 20px rgba(184, 132, 63, 0.35); }
.docs-upload-btn-hero:active { transform: scale(0.98); }
.docs-upload-btn-hero-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}
.docs-upload-btn-hero-text { flex: 1; min-width: 0; }
.docs-upload-btn-hero-title {
  font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.15;
  display: block;
}
.docs-upload-btn-hero-sub {
  font-size: 12.5px;
  margin: 0;
  opacity: 0.92;
  line-height: 1.25;
  display: block;
}
.docs-upload-btn-hero-arrow {
  font-size: 22px;
  opacity: 0.85;
  flex-shrink: 0;
}

.docs-upload-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .docs-upload-btn {
    font-size: 13px;
    padding: 12px 8px;
  }
  .docs-upload-btn span {
    white-space: nowrap;
  }
  /* Le bouton unique a un texte long : on autorise le retour à la ligne */
  .docs-upload-btn-main span {
    white-space: normal;
  }
}

/* ============================================================
   LIGNES FINES + SWIPE iOS (Documents)
   ============================================================ */
.docs-row {
  background: white;
  border-bottom: 1px solid #ede5d3;
  width: 100%;
  display: table-row;
}
.docs-row:last-child { border-bottom: none; }

.docs-row-cell {
  padding: 0 !important;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  word-break: break-all;
}

.docs-swipe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.docs-swipe-content {
  position: relative;
  z-index: 2;
  background: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  width: 100%;
  box-sizing: border-box;
  touch-action: pan-y;
}

.docs-swipe-content:active {
  background: #faf6ed;
}

.docs-row-date {
  font-size: 12px;
  color: #6a6478;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 78px;
}

.docs-row-cat {
  font-size: 18px;
  flex-shrink: 0;
}

.docs-row-name {
  flex: 1;
  font-size: 14px;
  color: #1a2942;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.docs-row-arrow {
  font-size: 18px;
  color: #b8843f;
  flex-shrink: 0;
  font-weight: 300;
}

/* ── Panneau actions cachées (révélé au swipe) ── */
.docs-swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 120px;
  display: flex;
  z-index: 1;
}

.docs-swipe-btn {
  flex: 1;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.docs-swipe-edit {
  background: #b8843f;
  color: white;
}
.docs-swipe-edit:active { opacity: 0.85; }

.docs-swipe-del {
  background: #b8493f;
  color: white;
}
.docs-swipe-del:active { opacity: 0.85; }

/* ── Cacher l'ancien header de table en mobile ── */
.docs-table thead {
  display: none;
}

/* ── Sur desktop, garder un look table ── */
@media (min-width: 769px) {
  .docs-swipe-content {
    padding: 10px 14px;
  }
  .docs-row-name {
    font-size: 13px;
  }
}
