/* ═══════════════════════════════════════════════════════════════
   css/factura-documento.css — Estilos del DOCUMENTO de factura / nota de entrega (.fx-sheet)
   Se carga como <link id="fx-sheet-css"> y también se inyecta en el iframe de impresión (fxPrint).
   No lo fusiones con styles.css: la impresión necesita este archivo por separado.
═══════════════════════════════════════════════════════════════ */
  .fx-sheet{width:100%;max-width:800px;margin:0 auto;background:#fff;color:#334155;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;font-size:16px;line-height:normal;padding:20px;box-sizing:border-box;}
  .fx-sheet *{box-sizing:border-box;}
  .fx-sheet table{width:100%;border-collapse:collapse;}
  /* Neutraliza las reglas globales del dashboard (tbody td / thead th usan texto claro) */
  .fx-sheet td,.fx-sheet th{color:#334155;font-size:inherit;padding:0;vertical-align:top;text-transform:none;letter-spacing:normal;}
  .fx-sheet tr,.fx-sheet tr:hover{border:0;background:none;}
  .fx-sheet .fx-hdr td{vertical-align:top;}
  .fx-sheet .fx-stamp{display:inline-block;border:2px solid #16a34a;color:#16a34a;font-size:16px;font-weight:700;padding:3px 10px;border-radius:4px;text-transform:uppercase;letter-spacing:1px;margin-bottom:10px;}
  .fx-sheet .fx-stamp.pend{border-color:#d97706;color:#d97706;}
  .fx-sheet .fx-doctype{font-size:16px;font-weight:700;}
  .fx-sheet .fx-dates{margin-top:5px;font-size:11px;}
  .fx-sheet .fx-co{text-align:right;font-size:11px;line-height:1.4;}
  .fx-sheet .fx-logo{display:block;max-width:180px;height:auto;margin:0 0 4px auto;}
  .fx-sheet .fx-billed{margin:15px 0 20px;border-top:1px solid #e2e8f0;padding-top:10px;font-size:12px;line-height:1.4;}
  .fx-sheet .fx-billed-title{font-weight:700;margin-bottom:3px;color:#475569;}
  .fx-sheet .fx-billed td{border:none;padding:0;vertical-align:top;}
  .fx-sheet table.fx-data{margin-bottom:15px;}
  .fx-sheet .fx-data th{background:#f1f5f9;border:1px solid #cbd5e1;padding:6px 8px;text-align:left;font-weight:700;font-size:11px;color:#334155;}
  .fx-sheet .fx-data td{border:1px solid #cbd5e1;padding:6px 8px;font-size:12px;color:#334155;}
  .fx-sheet .fx-r{text-align:right;}
  .fx-sheet .fx-tot td{font-weight:700;}
  .fx-sheet .fx-tot-main td{font-size:13px;background:#f8fafc;}
  .fx-sheet .fx-bcv td{font-size:11px;font-style:italic;background:#f8fafc;}
  .fx-sheet .fx-pay{margin-top:18px;border:1px solid #cbd5e1;border-radius:6px;padding:12px 14px;page-break-inside:avoid;break-inside:avoid;}
  .fx-sheet .fx-pay-title{font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:#1a3a8f;border-bottom:1px solid #cbd5e1;padding-bottom:5px;margin-bottom:10px;}
  .fx-sheet .fx-pay-grid{display:flex;gap:16px;flex-wrap:wrap;}
  .fx-sheet .fx-pay-m{flex:1 1 280px;display:flex;gap:12px;align-items:center;min-width:0;}
  .fx-sheet .fx-pay-m .t{font-size:11px;font-weight:700;color:#0d1b4b;margin-bottom:3px;}
  .fx-sheet .fx-pay-m .d{font-size:10.5px;line-height:1.55;color:#334155;word-break:break-all;}
  .fx-sheet .fx-pay-qr{width:92px;height:92px;flex-shrink:0;border:1px solid #e2e8f0;}
  .fx-sheet .fx-pay-qr svg{width:100%;height:100%;display:block;}
  .fx-sheet .fx-pay-note{font-size:10px;color:#475569;margin-top:10px;}
  .fx-sheet .fx-foot{margin-top:25px;border-top:1px solid #cbd5e1;padding-top:8px;font-size:9px;color:#64748b;text-align:center;line-height:1.3;}
