/* css/operations.css - Operations & Labor, Doc Templates workspace, shared template blocks, Vendor RFQ print sheet */

/* ---- Operating expenses & overhead KPIs ---- */
.ops-kpi { border: 1px solid #e2e8f0; border-radius: 0.5rem; background: #f8fafc; padding: 0.6rem 0.75rem; }
.ops-kpi-hot { background: #ecfdf5; border-color: #6ee7b7; }
.ops-kpi-l { color: #64748b; font-weight: 600; line-height: 1.15; margin-bottom: 0.25rem; }
.ops-kpi-v { font-size: 1.25rem; font-weight: 800; color: #0f172a; }

/* ---- State licenses card + invoice layout configurator ---- */
.dt-card { border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #fff; padding: 1rem; }
.dt-lic-line { font-size: 10px; color: #334155; }

/* ---- Doc Templates workspace ---- */
.dt-pill { padding: 0.35rem 0.9rem; border-radius: 9999px; border: 1px solid #cbd5e1; background: #fff; color: #475569; font-weight: 700; }
.dt-pill:hover { background: #f1f5f9; }
.dt-pill-on, .dt-pill-on:hover { background: #0f2942; border-color: #0f2942; color: #fff; }

/* Shared by the live preview, the Bid proposal / Invoice / RFQ print sheets */
.doc-brand-line { font-size: 10px; color: #475569; }
.doc-intro { margin: 0 0 10px; white-space: pre-wrap; }
.doc-terms { margin-top: 14px; border-top: 1px solid #94a3b8; padding-top: 6px; font-size: 9.5px; color: #334155; white-space: pre-wrap; }
.doc-terms h4 { margin: 0 0 3px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #475569; }

.dt-preview { font-size: 11px; line-height: 1.4; color: #0f172a; }
.dt-preview .dtp-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #0f2942; padding-bottom: 10px; margin-bottom: 12px; }
.dt-preview .dtp-co { font-size: 18px; font-weight: 800; }
.dt-preview .dtp-doc { text-align: right; }
.dt-preview .dtp-doc h1 { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: .04em; text-transform: uppercase; }
.dt-preview .dtp-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.dt-preview .dtp-table th, .dt-preview .dtp-table td { border: 1px solid #94a3b8; padding: 3px 5px; }
.dt-preview .dtp-table th { background: #e2e8f0; font-size: 9px; text-transform: uppercase; text-align: left; }
.dt-preview .dtp-box { border: 1px solid #94a3b8; padding: 8px; min-height: 50px; }
.dt-preview .dtp-total { width: 55%; margin: 10px 0 0 auto; border-collapse: collapse; }
.dt-preview .dtp-total td { border-top: 2px solid #0f172a; border-bottom: 2px solid #0f172a; padding: 5px 6px; font-weight: 800; }
.dt-preview .dtp-foot { margin-top: 14px; font-size: 9px; color: #475569; text-align: center; }

/* ---- Vendor RFQ print sheet (built by modProjectEstimating.js; never visible on screen) ---- */
#rfq-print-sheet { display: none; }

@media print {
  @page { size: letter portrait; margin: 0.6in; }

  body.rfq-printing { background: #fff !important; overflow: visible !important; height: auto !important; }
  body.rfq-printing * { visibility: hidden !important; }
  body.rfq-printing #rfq-print-sheet,
  body.rfq-printing #rfq-print-sheet * { visibility: visible !important; }
  body.rfq-printing #rfq-print-sheet {
    display: block !important;
    position: absolute; left: 0; top: 0; width: 100%;
    color: #0f172a; font-family: 'Inter', Arial, sans-serif; font-size: 11px; line-height: 1.35;
  }
  #rfq-print-sheet .rfq-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #0f2942; padding-bottom: 10px; margin-bottom: 12px; }
  #rfq-print-sheet .rfq-co { font-size: 18px; font-weight: 800; }
  #rfq-print-sheet .rfq-doc { text-align: right; }
  #rfq-print-sheet .rfq-doc h1 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: .04em; text-transform: uppercase; }
  #rfq-print-sheet .rfq-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  #rfq-print-sheet .rfq-box { border: 1px solid #94a3b8; padding: 6px 8px; }
  #rfq-print-sheet .rfq-box h4 { margin: 0 0 3px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #475569; }
  #rfq-print-sheet table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
  #rfq-print-sheet th, #rfq-print-sheet td { border: 1px solid #94a3b8; padding: 4px 5px; }
  #rfq-print-sheet th { background: #e2e8f0 !important; font-size: 9px; text-transform: uppercase; text-align: left; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #rfq-print-sheet td.num, #rfq-print-sheet th.num { text-align: right; white-space: nowrap; }
  #rfq-print-sheet td.fill { min-width: 90px; height: 22px; }
  #rfq-print-sheet tr { page-break-inside: avoid; }
  #rfq-print-sheet thead { display: table-header-group; }
  #rfq-print-sheet .rfq-foot { margin-top: 18px; font-size: 9px; color: #475569; text-align: center; }
}
