/* DevisVox — Factures — styles.css
   Toutes les règles scopées par #factures-mobile-page
*/

#factures-mobile-page {
  position: relative;
  --fac-success: #10B981;
  --fac-warning: #F59E0B;
  --fac-danger:  #DC2626;
  --fac-text:    #0F172A;
  --fac-text2:   #475569;
  --fac-text3:   #94A3B8;
  --fac-border:  #E2E8F0;
  --fac-border2: #CBD5E1;
  --fac-bg:      #F9FAFB;
  --fac-bg2:     #F1F5F9;
  --fac-r-sm:    14px;
  --fac-r-md:    18px;
  --fac-tr:      .18s ease;

  display: flex; flex-direction: column; height: 100%;
  background: var(--fac-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--fac-text); overflow: hidden;
}

#factures-mobile-page .fac-ph      { padding: 10px 20px 8px; border-bottom: 1px solid var(--fac-border); flex-shrink: 0; }
#factures-mobile-page .fac-title   { font-size: 21px; font-weight: 800; color: var(--fac-text); letter-spacing: -0.3px; line-height: 1.1; }
#factures-mobile-page .fac-filters { display: flex; gap: 6px; margin-top: 6px; }
#factures-mobile-page .fac-filter-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; border: 1.5px solid var(--fac-border2); background: #fff; cursor: pointer; font-family: inherit; transition: background var(--fac-tr), border-color var(--fac-tr); }
#factures-mobile-page .fac-filter-btn.active { background: #0F172A; border-color: #0F172A; }
#factures-mobile-page .fac-filter-btn.active .fac-fn,
#factures-mobile-page .fac-filter-btn.active .fac-fv { color: #fff; }
#factures-mobile-page .fac-fn { font-size: 9px; font-weight: 700; color: var(--fac-text3); text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
#factures-mobile-page .fac-fv { font-size: 12px; font-weight: 700; color: var(--fac-text2); line-height: 1; white-space: nowrap; }
#factures-mobile-page .fac-fchev { font-size: 9px; }

#factures-mobile-page .fac-body   { flex: 1; overflow-y: auto; padding: 14px 14px 0; }
#factures-mobile-page .fac-body::-webkit-scrollbar { display: none; }

#factures-mobile-page .fac-sw     { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--fac-border); border-radius: 12px; padding: 0 12px; height: 44px; margin-bottom: 12px; }
#factures-mobile-page .fac-search-input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--fac-text); outline: none; font-family: inherit; }

#factures-mobile-page .fac-list   { display: flex; flex-direction: column; }
#factures-mobile-page .fac-row    { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--fac-border); cursor: pointer; gap: 12px; transition: background var(--fac-tr); }
#factures-mobile-page .fac-row:last-child { border-bottom: none; }
#factures-mobile-page .fac-row:active { background: var(--fac-bg2); border-radius: 10px; }
#factures-mobile-page .fac-row-left  { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
#factures-mobile-page .fac-num    { font-size: 11px; font-weight: 700; color: var(--fac-text3); }
#factures-mobile-page .fac-client { font-size: 15px; font-weight: 700; color: var(--fac-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#factures-mobile-page .fac-desc   { font-size: 12px; color: var(--fac-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#factures-mobile-page .fac-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
#factures-mobile-page .fac-amount { font-size: 15px; font-weight: 800; color: var(--fac-text); }
#factures-mobile-page .fac-date   { font-size: 11px; color: var(--fac-text3); }

#factures-mobile-page .fac-badge  { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
#factures-mobile-page .fac-ok     { background: #DCFCE7; color: #166534; }
#factures-mobile-page .fac-wa     { background: #FEF9C3; color: #854D0E; }

/* Bottom Sheet → voir design v2/design_v2/shared.css (.v2-bs-*) */
