/* Comptabilité — mobile : nav + tableaux déroulants */

@media (max-width: 900px) {
  .shell-main { padding: 1rem; overflow-x: hidden; min-width: 0; }
  .shell-header {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .shell-actions #eco-dots-anchor,
  .shell-actions .live-dot { display: none; }

  .compta-hero { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .compta-split { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .vc-mobile-drawer {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: #fff;
  }
  .vc-mobile-drawer summary {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    list-style: none;
    color: var(--teal);
  }
  .vc-mobile-drawer summary::-webkit-details-marker { display: none; }
  .vc-mobile-drawer-body { padding: 0 1rem 1rem; overflow-x: auto; }

  .data-table { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody tr {
    display: block;
    margin-bottom: 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem;
    background: #fff;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border: none;
    font-size: 0.82rem;
    text-align: right;
  }
  .data-table td::before {
    content: attr(data-label);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
  }
  .data-table td.vc-actions { justify-content: flex-start; flex-wrap: wrap; }
  .data-table td.vc-actions::before { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .cfg-split { grid-template-columns: 1fr; }
  .panel { overflow-x: auto; }
  .notif-panel { left: 0.75rem; right: 0.75rem; max-width: none; }
}

@media (max-width: 520px) {
  .compta-hero,
  .kpi-grid { grid-template-columns: 1fr; }
}