/* QaydLab | قيد لاب — calculator pages (/calculators/*). Loaded AFTER /styles.css (brand tokens, header, footer,
   buttons, .sec/.kicker/.badge live there). Order: page head · hub cards · calculator layout · form · result ·
   our promo slot · explanation (prose, tables, FAQ) · print · responsive. */

/* the hidden attribute must win over the display rules below (.field, .rows div are flex) */
[hidden] { display: none !important; }

/* ---------- page head ---------- */
.chead { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); }
.chead__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 360px at 12% 30%, rgba(140, 195, 234, .32), transparent 70%), radial-gradient(420px 300px at 95% 0%, rgba(63, 180, 140, .12), transparent 70%); }
.chead .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs span[aria-hidden] { color: var(--line); }
.chead h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-weight: 700; }
.chead h1 .hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding-inline: .08em; }
.chead .lead { margin-top: 12px; max-width: 46em; }
.chead__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- hub ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ccard { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); }
.ccard__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--fog); color: var(--link); }
.ccard__ic svg { width: 30px; height: 30px; }
.ccard h3 { font-size: 1.15rem; font-weight: 700; }
.ccard p { color: var(--ink-2); font-size: .95rem; }
.ccard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.ccard__go { color: var(--link); font-weight: 600; font-size: .95rem; }
.ccard--soon { opacity: .72; }
.ccard--soon .ccard__ic { color: var(--ink-3); }
.cnote { margin-top: 28px; color: var(--ink-3); font-size: .9rem; }

/* ---------- calculator layout ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.calc__side { display: grid; gap: 18px; position: sticky; top: 92px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.panel__title .step { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: #fff; font-size: .9rem; flex: none; }

/* ---------- form ---------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > label, .field__label { font-weight: 600; font-size: .95rem; }
.field small { color: var(--ink-3); font-size: .82rem; line-height: 1.5; }
.inp { width: 100%; font: 500 1rem/1.4 var(--font); color: var(--ink); background: var(--fog); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .72em .9em; transition: border-color .2s, background .2s, box-shadow .2s; }
.inp:hover { border-color: var(--sky); }
.inp:focus { outline: none; border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 4px rgba(59, 143, 208, .15); }
.inp--money { position: relative; }
.money { position: relative; }
.money .inp { padding-inline-end: 3.6em; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.money__cur { position: absolute; inset-inline-end: .9em; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .9rem; pointer-events: none; }
input[type="date"].inp { direction: ltr; text-align: right; }
/* day/month/year date box (calc.js turns every date input into this) */
.dateinp { position: relative; }
.dateinp .inp--date { direction: ltr; text-align: right; padding-left: 2.8em; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dateinp .inp--date::placeholder { direction: rtl; }
.dateinp__btn { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 2.2em; height: 2.2em; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--blue); cursor: pointer; }
.dateinp__btn:hover, .dateinp__btn:focus-visible { background: rgba(59, 143, 208, .12); outline: none; }
.dateinp__btn svg { width: 1.2em; height: 1.2em; }
.dateinp__pick { position: absolute; left: 6px; bottom: 0; width: 2.2em; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.dateinp.is-bad .inp--date { border-color: #E06A6E; }
select.inp { appearance: none; -webkit-appearance: none; padding-inline-end: 2.4em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%234A5A66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left .9em center; }
/* segmented choice (two or three radio buttons that look like one switch) */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--fog); border: 1.5px solid var(--line); }
.seg label { flex: 1; position: relative; text-align: center; cursor: pointer; font-weight: 600; font-size: .95rem; padding: .55em .6em; border-radius: 9px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--card); color: var(--link); box-shadow: var(--shadow-sm); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 1px; }
.pair { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.formula-line { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); border: 1px dashed var(--line); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; display: grid; gap: 2px; }
.formula-line > div { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
/* journal entry under the result */
.jentry { margin-top: 18px; }
.jentry h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.jentry table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.jentry th, .jentry td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.jentry th { background: var(--fog); font-weight: 600; color: var(--ink-2); font-size: .82rem; }
.jentry th:not(:first-child) { text-align: left; }
.jentry td.n { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.jentry td small { display: block; color: var(--ink-3); font-size: .78rem; }
.jentry .cr { padding-inline-start: 26px; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.form__privacy { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--ink-3); }
.form__privacy svg { width: 18px; height: 18px; flex: none; color: var(--mint); }

/* ---------- result ---------- */
.res__label { color: var(--ink-2); font-weight: 500; }
.res__big { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.res__big .num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; color: var(--ink); line-height: 1.15; direction: ltr; unicode-bidi: isolate; }
.res__big .cur { color: var(--ink-3); font-weight: 600; }
.res__status { margin-top: 12px; }
.badge--part { background: rgba(255, 228, 92, .35); color: var(--warn); border-color: rgba(214, 170, 0, .4); }
.badge--none { background: rgba(230, 33, 23, .08); color: var(--red); border-color: rgba(230, 33, 23, .25); }
.res__note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--fog); color: var(--ink-2); font-size: .93rem; line-height: 1.7; border-inline-start: 3px solid var(--blue); }
.rows { margin-top: 18px; border-top: 1px dashed var(--line); }
.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.rows dt { color: var(--ink-2); }
.rows dd { margin: 0; font-weight: 600; direction: ltr; unicode-bidi: isolate; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows dd.ar { direction: rtl; text-align: left; white-space: normal; min-width: 0; }
.rows dt { flex: none; max-width: 55%; }
.rows .rows__total dt, .rows .rows__total dd { color: var(--ink); font-weight: 700; }
.res__empty { color: var(--ink-3); font-size: .95rem; margin-top: 10px; }
.res__err { margin-top: 10px; color: var(--red); font-weight: 500; }
.res__tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.res__tools .btn { flex: 1 1 auto; }
.res__tools svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- full-width schedule (depreciation) ---------- */
.sched { margin-top: 22px; }
.sched__scroll { overflow-x: auto; }
.sched__tbl { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.sched__tbl th, .sched__tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sched__tbl th:first-child, .sched__tbl td:first-child, .sched__tbl th:nth-child(2), .sched__tbl td:nth-child(2) { text-align: right; }
.sched__tbl thead th { background: var(--fog); font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.sched__tbl td { color: var(--ink-2); }
.sched__tbl td.dep { color: var(--ink); font-weight: 700; }
.sched__tbl tfoot th { font-weight: 700; color: var(--ink); border-bottom: 0; }
.sched__bar { display: block; height: 4px; border-radius: 4px; background: var(--fog); margin-top: 6px; overflow: hidden; }
.sched__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--blue)); border-radius: 4px; }

/* ---------- break-even: variable-cost lines, chart, what-if ---------- */
.vlines { display: grid; gap: 8px; }
.vline { display: grid; grid-template-columns: minmax(0, 1fr) 130px 40px; gap: 8px; align-items: center; }
.vline .inp--amt { direction: ltr; text-align: right; }
.vline__del { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-3); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.vline__del:hover { border-color: var(--red); color: var(--red); }
.vlines__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: .92rem; color: var(--ink-2); }
.vlines__foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.be-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.be-chart { margin: 0; }
.be-chart svg { width: 100%; height: auto; display: block; }
.be-sub { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.be-what { min-width: 0; }
.be-what th, .be-what td { white-space: normal; }
@media (max-width: 560px) { .be-what { font-size: .82rem; } .be-what th, .be-what td { padding: 8px 6px; } }
.be-what td.up { color: var(--red); font-weight: 600; }
.be-what td.down { color: var(--green); font-weight: 600; }
.be-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-top: 8px; font-size: .85rem; color: var(--ink-2); direction: rtl; }
.be-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-inline-end: 6px; }
@media (max-width: 900px) { .be-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .vline { grid-template-columns: minmax(0, 1fr) 100px 40px; } }

/* ---------- our promo slot (house ads now; one sponsor later — same box, same size) ---------- */
.slot { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--night); color: #fff; padding: 24px; min-height: 196px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.slot::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 120px 60px; opacity: .12; pointer-events: none; }
.slot > * { position: relative; }
.slot__kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.slot h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.slot p { color: rgba(255, 255, 255, .78); font-size: .93rem; }
.slot .btn { align-self: flex-start; margin-top: 4px; }
.slot .btn--primary { background: var(--mint); box-shadow: none; }
.slot .btn--primary:hover { background: #33a07c; }

/* ---------- explanation ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 700; margin: 42px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--link); font-weight: 500; }
.formula { margin: 16px 0; padding: 16px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 600; line-height: 2; }
.formula .num { direction: ltr; unicode-bidi: isolate; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); font-size: .95rem; }
.tbl th, .tbl td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--fog); font-weight: 700; color: var(--ink); }
.tbl td { color: var(--ink-2); }
.tbl .num { direction: ltr; unicode-bidi: isolate; font-weight: 600; color: var(--ink); }
.ex { margin: 16px 0; padding: 18px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ex h3 { margin-top: 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; }
.sources { font-size: .9rem; }
.disclaimer { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 228, 92, .22); color: var(--ink-2); font-size: .9rem; }

/* ---------- print report: hidden on screen; when printing it is the ONLY thing on the page (one A4) ---------- */
.preport { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body > *:not(main), main > *:not(.preport) { display: none !important; }
  .preport { display: flex; flex-direction: column; min-height: 297mm; padding: 13mm 16mm 9mm; color: var(--ink); font-size: 11pt; line-height: 1.6; }
  .preport__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 5mm; border-bottom: 3px solid var(--ink); position: relative; }
  .preport__head::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -3px; width: 34%; height: 3px; background: var(--mint); }
  .preport__brand { display: flex; align-items: center; gap: 3mm; }
  .preport__brand svg { width: 13mm; height: 13mm; }
  .preport__brand b { display: block; font-size: 14pt; }
  .preport__brand span { color: var(--ink-3); font-size: 9pt; }
  .preport__meta { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink-3); font-size: 9pt; }
  .preport__title { font-size: 20pt; font-weight: 700; margin-top: 6mm; }
  .preport__sub { color: var(--ink-2); font-size: 10pt; margin-top: 1mm; }
  .preport__empty { margin-top: 10mm; color: var(--ink-3); }
  .preport__hero { display: flex; justify-content: space-between; align-items: center; margin-top: 5mm; padding: 5mm 7mm; border-radius: 4mm; background: var(--fog); border: 1px solid var(--line); }
  .preport__label { display: block; color: var(--ink-2); font-size: 10pt; }
  .preport__big { display: block; font-size: 26pt; font-weight: 700; line-height: 1.25; }
  .preport__big small { font-size: 12pt; color: var(--ink-3); font-weight: 600; }
  .preport__stamp { border: 2.5px solid currentColor; border-radius: 3mm; padding: 2mm 5mm; font-weight: 700; font-size: 12pt; transform: rotate(-4deg); }
  .preport__stamp.is-full { color: var(--green); }
  .preport__stamp.is-partial { color: #a87800; }
  .preport__stamp.is-none { color: var(--red); }
  .preport__h { font-size: 12pt; font-weight: 700; margin: 5.5mm 0 2mm; color: var(--link); }
  .ptbl { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
  .ptbl th, .ptbl td { padding: 2mm 3mm; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
  .ptbl th { font-weight: 500; color: var(--ink-2); width: 42%; }
  .ptbl td { font-weight: 600; }
  .ptbl--calc td:last-child { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; width: 24%; }
  .ptbl__how { color: var(--ink-3); font-weight: 400 !important; font-size: 9.5pt; text-align: center !important; }
  .ptbl__total th, .ptbl__total td { background: var(--ink); color: #fff !important; font-weight: 700; border-bottom: 0; }
  .ptbl__total td:last-child { font-size: 12pt; }
  .preport__chart { margin: 3mm 0 0; }
  .preport__chart svg { width: 100%; height: auto; max-height: 64mm; display: block; }
  .preport__chart .be-legend { font-size: 8.5pt; }
  .ptbl--two th { width: 25%; white-space: nowrap; }
  .ptbl--two td { width: 25%; }
  .ptbl--sched { font-size: 9.5pt; }
  .ptbl--sched thead th { background: var(--fog); color: var(--ink-2); font-weight: 600; width: auto; font-size: 8.5pt; }
  .ptbl--sched th, .ptbl--sched td { padding: 1.6mm 2mm; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ptbl--sched th:first-child, .ptbl--sched td:first-child, .ptbl--sched th:nth-child(2), .ptbl--sched td:nth-child(2) { text-align: right; }
  .ptbl--sched td { font-weight: 500; }
  .ptbl--sched td.dep { font-weight: 700; }
  .ptbl--sched tfoot th { background: var(--ink); color: #fff; font-weight: 700; }
  .ptbl--sched tr { break-inside: avoid; }
  .ptbl--entry thead th { background: var(--fog); color: var(--ink-2); font-weight: 600; width: auto; font-size: 9.5pt; }
  .ptbl--entry td:not(:first-child) { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; width: 20%; }
  .ptbl--entry td:first-child { font-weight: 500; }
  .ptbl--entry thead th:not(:first-child) { text-align: left; }
  .ptbl--entry td small { display: block; color: var(--ink-3); font-size: 8.5pt; font-weight: 400; }
  .ptbl--entry .cr { padding-inline-start: 10mm; }
  .preport__note { margin-top: 4mm; padding: 3mm 4mm; border-inline-start: 3px solid var(--blue); background: var(--fog); font-size: 10pt; color: var(--ink-2); }
  .preport__small { margin-top: 3mm; font-size: 9pt; color: var(--ink-3); }
  .preport__foot { margin-top: auto; padding-top: 4mm; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 6mm; color: var(--ink-3); font-size: 8.5pt; }
}

/* ---------- responsive ---------- */
.inp, .seg label, .field { min-width: 0; }
.calc__side { grid-template-columns: minmax(0, 1fr); }
.jentry { overflow-x: auto; }
.formula-line > div { white-space: normal; }
@media (max-width: 560px) {
  .jentry table { font-size: .82rem; }
  .jentry th, .jentry td { padding: 7px 6px; }
  .jentry .cr { padding-inline-start: 14px; }
}
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__side { position: static; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .res__tools .btn { flex: 1 1 100%; }
}

/* ---------- progress billing (المستخلص): BOQ lines, certificate sheet, warnings ---------- */
.blines { display: grid; gap: 8px; }
.bline, .blines__head { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) 40px; gap: 8px; align-items: center; }
.blines__head { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.bline .inp--amt { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.bline .inp { padding-inline: .7em; }
.bcell { display: block; min-width: 0; }
.bcell span { display: none; font-size: .74rem; color: var(--ink-3); font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .blines__head { display: none; }
  .bline { grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .bline__name { grid-column: 1 / -1; }
  .bcell span { display: block; }
  .bline .vline__del { align-self: end; }
}
.more { border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.more summary { cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--link); }
.more__in { margin: 12px 0 8px; }
.res__warn { margin: 14px 0 0; padding: 10px 14px 10px 14px; padding-inline-start: 2em; border-radius: var(--r-sm); background: rgba(255, 228, 92, .3); color: var(--warn); font-size: .9rem; line-height: 1.7; }
.ipc-tbl { min-width: 560px; }
.ipc-tbl td:first-child { white-space: normal; }
.ipc-tbl th:nth-child(2), .ipc-tbl td:nth-child(2) { text-align: left; }
.ipc-tbl tr.minus td { color: var(--red); }
.ipc-tbl tr.minus td:first-child { color: var(--ink-2); }
.ipc-tbl tr.sub td { color: var(--ink-3); font-size: .88rem; }
.ipc-tbl tr.total td { background: var(--night); color: #fff; font-weight: 700; border-bottom: 0; }
.ipc-boq { min-width: 720px; }
.ipc-boq th:nth-child(2), .ipc-boq td:nth-child(2) { text-align: left; }
#entryBox { max-width: 780px; }
#entryBox .res__note { margin-top: 12px; }
@media print {
  .ptbl--ipc th:nth-child(2), .ptbl--ipc td:nth-child(2) { text-align: left; }
  .ptbl--ipc tr.minus td:not(:first-child) { color: var(--red); }
  .ptbl--ipc tr.sub td { color: var(--ink-3); }
  .ptbl--ipc tr.total td { background: var(--ink); color: #fff; font-weight: 700; }
  .ptbl--ipc td:first-child { white-space: normal; }
  /* the certificate page carries 4 tables: tighter rows so it stays one A4 */
  .ptbl--tight { font-size: 9.5pt; line-height: 1.35; }
  .ptbl--tight th, .ptbl--tight td { padding: 1.3mm 2.5mm; }
  .ptbl--tight.ptbl--entry td small { display: inline; margin-inline-start: 2mm; }
  .ptbl--tight.ptbl--entry td small::before { content: "· "; }
  #printReport { padding-top: 10mm; }
  #printReport .preport__hero { margin-top: 3mm; padding: 3mm 6mm; }
  #printReport .preport__title { margin-top: 4mm; }
  #printReport .preport__h { margin: 4mm 0 1.5mm; }
}

/* ===== end of service, Egypt ===== */
.rows__how { display: inline-block; margin-top: 2px; color: var(--ink-3); font-size: .8rem; font-weight: 400; unicode-bidi: isolate; }
.more > small { display: block; margin-top: 6px; color: var(--ink-3); font-size: .85rem; }
