/* Généré par gen-style-app.js — ne pas modifier à la main (voir en-tête du générateur) */

/* ── style.css : 82 règles ── */
body.style-app #login-overlay { flex-direction: column; }
body.style-app .login-right { width: 100%; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
body.style-app .login-card { box-shadow: 0 20px 60px rgba(0,0,0,.3); }
body.style-app .mobile-tabs { display: none !important; }
body.style-app .db-search-bar,
body.style-app .db-filter-bar { order: 2; }
body.style-app .db-block { order: 1; }
body.style-app .mobile-home-fab { display: flex;
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #fff;
    font-size: 22px;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    z-index: 500; }
body.style-app .mobile-home-fab.hidden { display: none !important; }
body.style-app .mobile-grid { display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc; }
body.style-app .mobile-grid-btns { display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; }
body.style-app .mobile-grid-btn { display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    cursor: pointer;
    transition: background .12s, border-color .12s; }
body.style-app .mobile-grid-btn:active { background: #f1f5f9; border-color: #cbd5e1; }
body.style-app .mobile-grid-btn-round { aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid #2563eb;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(37,99,235,.18);
    padding: 8px; }
body.style-app .mobile-grid-btn-round:active { background: #dbeafe; border-color: #1d4ed8; }
body.style-app .mobile-grid-btn-round .mobile-grid-icon { font-size: 30px; }
body.style-app .mobile-grid-btn-round .mobile-grid-label { color: #1d4ed8; }
body.style-app .mobile-grid-btn-wide { grid-column: 1 / -1; flex-direction: row; padding: 16px; }
body.style-app .mobile-grid-icon { font-size: 28px; line-height: 1; }
body.style-app .mobile-grid-btn-wide .mobile-grid-icon { font-size: 22px; }
body.style-app .mobile-grid-label { font-size: 13px; font-weight: 700; color: #1e293b; text-align: center; }
body.style-app .mobile-grid-close { width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #dc2626;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer; }
body.style-app .mobile-grid-close:active { background: #b91c1c; }
body.style-app .crisis-info-row { display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #1e293b; }
body.style-app .crisis-info-row:last-child { border-bottom: none; }
body.style-app .mobile-tab { flex: 1;
    padding: 10px 4px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s, border-bottom .15s;
    border-bottom: 3px solid transparent;
    white-space: nowrap; }
body.style-app .mobile-tab.active { color: #38bdf8;
    border-bottom: 3px solid #38bdf8;
    background: rgba(56,189,248,.07); }
body.style-app .mobile-collapse-btn { flex: 0 0 36px;
    font-size: 14px;
    border-left: 1px solid #334155; }
body.style-app .main-layout { flex-direction: column;
    overflow: auto; }
body.style-app .panel-left { width: 100% !important;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    max-height: none;
    overflow-y: visible; }
body.style-app .panel-right { overflow: auto;
    min-height: 300px; }
body.style-app .panel-left.mobile-hidden,
body.style-app .panel-right.mobile-hidden,
body.style-app .mobile-grid.mobile-hidden { display: none !important; }
body.style-app .crisis-header { padding: 4px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px; }
body.style-app .header-left { display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%; }
body.style-app .header-right { display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: flex-end; }
body.style-app #screen-closed .btn-logout-header { display: inline-block !important; }
body.style-app .crisis-header-name { font-size: 14px;
    font-weight: 700; }
body.style-app .mobile-collapse-btn { flex: 0 0 44px !important;
    font-size: 16px !important;
    color: #94a3b8 !important;
    border-left: 1px solid #334155;
    transition: transform .2s; }
body.style-app .mobile-collapsed .mobile-collapse-btn { transform: rotate(180deg); color: #38bdf8 !important; }
body.style-app #mobile-collapsible-zone,
body.style-app #journal-header-collapsible { overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
    max-height: 400px;
    opacity: 1; }
body.style-app .mobile-collapsed #mobile-collapsible-zone,
body.style-app .mobile-collapsed #journal-header-collapsible { max-height: 0 !important;
    opacity: 0;
    pointer-events: none; }
body.style-app .helpers-strip { flex-wrap: wrap;
    padding: 6px 12px;
    gap: 6px; }
body.style-app .helper-input { width: 120px;
    flex: 1;
    min-width: 100px; }
body.style-app .btn-helper-add { flex-shrink: 0; }
body.style-app .entry { flex-wrap: wrap;
    gap: 6px;
    padding: 10px 10px; }
body.style-app .entry-time { width: auto;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    order: 1; }
body.style-app .entry-date { font-size: 10px; }
body.style-app .entry-time-val { font-size: 11px; }
body.style-app .entry-badge { order: 2;
    font-size: 10px; }
body.style-app .entry-text { order: 3;
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
    font-size: 13px; }
body.style-app .entry-done-btn,
body.style-app .btn-entry-wa,
body.style-app .entry-edit-btn { order: 4;
    opacity: 1 !important; }
body.style-app .btn-entry-wa { opacity: 1 !important; }
body.style-app .journal-header { flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 12px 0; }
body.style-app .journal-header > div:first-child { width: 100%;
    padding-bottom: 6px; }
body.style-app .journal-header > div:last-child { width: 100%;
    margin-left: 0 !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 0; }
body.style-app .journal-header > div:last-child > .journal-count,
body.style-app .journal-header > div:last-child > .next-reunion-badge { display: inline-flex; }
body.style-app .journal-actions-bar { width: calc(100% + 24px);
    margin-left: -12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    scrollbar-width: none; }
body.style-app .journal-actions-bar::-webkit-scrollbar { display: none; }
body.style-app .btn-meeting-report,
body.style-app .btn-ai-history,
body.style-app .btn-checkpoint-toggle,
body.style-app .btn-noise-toggle,
body.style-app .btn-trash-toggle,
body.style-app .btn-activity-log,
body.style-app .btn-classify-transcripts { font-size: 11px;
    padding: 5px 9px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 5px; }
body.style-app .btn-meeting-report { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
body.style-app .btn-activity-log { border: 1px solid #e2e8f0; }
body.style-app .crisis-timer { font-size: 40px; }
body.style-app .modal-box { width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    max-height: 90vh;
    overflow-y: auto; }
body.style-app .modal-overlay { align-items: flex-end !important; }
body.style-app .db-row { flex-wrap: wrap;
    gap: 4px 6px;
    padding: 8px 6px;
    align-items: center; }
body.style-app .db-time { order: 1; flex-shrink: 0; }
body.style-app .entry-badge.db-type-badge { order: 2; flex-shrink: 0; }
body.style-app .db-code-badge { order: 3; flex-shrink: 0; font-size: 10px; }
body.style-app .db-author-badge { order: 4; flex-shrink: 0; font-size: 10px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.style-app .db-text { order: 5; width: 100%; flex-basis: 100%; font-size: 13px; line-height: 1.5; }
body.style-app .db-inline-edit { order: 5; width: 100%; flex-basis: 100%; }
body.style-app .db-edited-badge { order: 5; font-size: 10px; }
body.style-app .btn-action-done,
body.style-app .btn-alert-resolve,
body.style-app .db-ack-btn { order: 6; flex-shrink: 0; font-size: 11px; padding: 4px 8px; }
body.style-app .db-assign-btn,
body.style-app .db-assign-badge { order: 7; flex-shrink: 0; font-size: 11px; }
body.style-app .btn-entry-wa.db-wa { order: 8; flex-shrink: 0; }
body.style-app .db-doneby { order: 9; flex-shrink: 0; font-size: 11px; }
body.style-app .db-edit-btn,
body.style-app .db-dup-btn,
body.style-app .db-del-btn,
body.style-app .btn-split-entry.db-hover-btn,
body.style-app .btn-merge-entry { opacity: 1 !important;
    order: 10;
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 6px; }
body.style-app .db-block { margin-bottom: 10px; border-radius: 8px; }
body.style-app .db-block-title { font-size: 13px; padding: 8px 10px; }
body.style-app #dashboard-view { padding: 8px; }
body.style-app .db-search-row { padding: 6px 8px; }
body.style-app .db-member-filter { flex-wrap: wrap; gap: 4px; padding: 4px 8px; }
body.style-app .db-member-chip { font-size: 11px; padding: 3px 8px; }

/* ── pilotage-tuiles.css : 10 règles ── */
body.style-app .checkpoint-banner-inner { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
body.style-app .checkpoint-text { flex: 1 1 calc(100% - 52px); min-width: 0; }
body.style-app .checkpoint-text span { font-size: 14px; line-height: 1.4; }
body.style-app .checkpoint-actions { flex: 1 1 100%; }
body.style-app .checkpoint-actions button { flex: 1; min-height: 46px; font-size: 15px; }
body.style-app #journal-list button { min-height: 40px; min-width: 40px; }
body.style-app .btn-back-startup { min-height: 44px; padding: 10px 16px !important; font-size: 15px !important; }
body.style-app #login-overlay a[data-on-click*="openPinForgotModal"] { display: inline-block; padding: 12px 0; font-size: 14px !important; }
body.style-app .admin-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 0; padding: 6px 12px; font-size: 13px !important; border: 1px solid #e2e8f0; border-radius: 10px; }
body.style-app #rgpd-footer a { display: inline-block; padding: 5px 2px; }

/* ── dashboard.html : 12 règles ── */
body.style-app .stats-row { grid-template-columns: repeat(2,1fr); }
body.style-app .db-header { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
body.style-app .db-header h1 { font-size: 13px; }
body.style-app .db-header-right { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
body.style-app .btn-back { font-size: 11px; padding: 5px 9px; }
body.style-app .db-body { padding: 16px 10px; }
body.style-app .active-crisis-card { flex-wrap: wrap; padding: 14px 16px; }
body.style-app .active-crisis-card > div { flex: 1 1 calc(100% - 60px) !important; }
body.style-app .active-crisis-card .btn-join-crisis { flex: 1 1 100%; justify-content: center; text-align: center; font-size: 16px; padding: 14px; }
body.style-app .active-crisis-name { font-size: 18px; }
body.style-app .stats-row { grid-template-columns: 1fr; }
body.style-app #stat-card-open { text-align: center; }

/* ── Style application sur grand écran (Fred, 26/09/2026 ; tuiles et pastilles réduites d'environ 20 % le 27/09) : même fonctionnement que le téléphone, mise en
   page élargie — 4 tuiles côte à côte, pastilles de l'équipe en ligne juste en dessous, grille de la crise
   sur 4 colonnes. Ne s'applique qu'au-delà de 769 px (sur téléphone, rien ne change). ── */
@media (min-width: 769px) {
  body.style-app .main-layout, body.style-app #panel-right, body.style-app #panel-left { max-width: 1400px; margin-left: auto; margin-right: auto; }
  body.style-app #mobile-grid { max-width: 1400px; margin: 0 auto; }
  body.style-app #mobile-grid .mobile-grid-btns { grid-template-columns: repeat(4, 1fr) !important; gap: 18px !important; }
  body.style-app #mobile-grid .mobile-grid-btn { min-height: 145px; font-size: 16px; }
  body.style-app #mobile-grid .mobile-grid-btn-round { border-radius: 26px !important; aspect-ratio: auto !important; width: auto !important; height: auto !important; }
  body.style-app #mobile-grid .mobile-grid-btn-wide { grid-column: span 2; }
  body.style-app .pt-root { max-width: 1400px; margin: 0 auto; }
  body.style-app .pt-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  body.style-app .pt-tile { min-height: 190px; padding: 18px; }
  body.style-app .pt-tile.pt-wide { grid-column: auto; }
  body.style-app .pt-n { font-size: 64px; }
  body.style-app .pt-l { font-size: 14px; }
  body.style-app .pt-s { font-size: 14px; }
  body.style-app .pt-team { order: 3; }
  body.style-app .pt-mine { order: 4; }
  body.style-app .pt-foot { order: 5; }
  body.style-app .pt-avs { flex-wrap: wrap; overflow: visible; gap: 12px; }
  body.style-app .pt-av-c { width: 48px; height: 48px; font-size: 15px; }
  body.style-app .pt-person { max-width: 900px; }
  body.style-app .pt-sheet { left: 50%; right: auto; width: min(760px, 96vw); transform: translate(-50%, 105%); border-radius: 22px 22px 0 0; }
  body.style-app .pt-sheet.open { transform: translate(-50%, 0); }
  body.style-app #dashboard-view.pt-root { display: flex; flex-direction: column; }
}

/* Accueil (liste des crises) en style application sur grand écran */
@media (min-width: 701px) {
  body.style-app .db-body { max-width: 900px; }
}

/* Saisie, journal et pilotage sur toute la largeur utile (le panneau de saisie de l'ordinateur est étroit) */
@media (min-width: 769px) {
  body.style-app .main-layout { display: block !important; max-width: 1400px; margin: 0 auto; }
  body.style-app #panel-left, body.style-app #panel-right { width: 100% !important; max-width: 1000px; margin: 0 auto; }
  body.style-app #dashboard-view.pt-root { max-width: 1400px; }
  body.style-app #panel-right:has(#dashboard-view.pt-root:not(.hidden)) { max-width: 1400px; }
}
@media (min-width: 769px) {
  body.style-app #mobile-grid { width: 100% !important; max-width: 1200px !important; padding-left: 24px; padding-right: 24px; }
}
