/* תמחור ודוח חיוב חודשי (שלב 13). העיצוב של public/billing.js.
   מדיניות האתר היא style-src 'self': כל העיצוב כאן, בלי style= בדף. הצבעים והמרווחים מגיעים מהמשתנים של style.css ו-v2.css,
   כדי שהתצוגה הכהה, הבהירה והמיתוג של הלקוח יחולו גם כאן.
   מספרים וסכומים: תמיד משמאל לימין ומיושרים לימין העמודה, בעברית ובאנגלית, כך שהאחדות והאגורות עומדות זו מתחת לזו. */
.bl-admin { display: grid; gap: var(--s4); margin-block-start: var(--s4); }
.bl-panel > p { margin-block: 0.4rem 0; }

/* כותרת של שורה (שם השירות) נראית כמו תא רגיל, ולא כמו כותרת העמודות. [scope="row"]: כדי לגבור גם על הכלל של התצוגה הבהירה */
.bl-table tbody th[scope="row"] { position: static; background: transparent; color: inherit; font: inherit; letter-spacing: normal; white-space: normal; }
.bl-table .bl-svc { min-width: 9rem; font-weight: 700; }
.bl-table .bl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-table .bl-num .sub { white-space: nowrap; }
.bl-table tbody tr:last-child th { border-bottom: 0; }

/* הדוח: הטבלה, ומתחתיה הסיכום. הסיכום צמוד לצד של עמודת הסכומים, והסכומים בו מיושרים לימין כמו בטבלה */
.bl-statement { display: grid; gap: var(--s3); }
.bl-totals { width: 100%; max-width: 24rem; margin: 0; margin-inline-start: auto; background: var(--panel-dark); border: 1px solid var(--border-dim); border-radius: 12px; }
.bl-totals .bl-sum { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }
.bl-totals .bl-sum:last-child { border-bottom: 0; }
.bl-totals dt { font-weight: 700; }
.bl-totals dd { min-width: 8rem; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.bl-totals .bl-total { border-top: 2px solid var(--border-bright); }

/* שדה של סכום או כמות: ספרות משמאל לימין, מיושרות לימין */
.bl-input { direction: ltr; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.bl-table td .bl-input { width: 8.5rem; min-width: 6.5rem; }
.field .bl-input { min-width: 7rem; }
