/* 📘 شرح للدراسة:
   تصميم مركز الوثائق وصفحات الطباعة A4.
*/
/* SALAASA TECH — Document centre (screen + print) */
body[data-page="docs"] { background: #0b1120; }
body[data-page="docs"]::after { display: none; }
.doc-bar { position: sticky; top: 0; z-index: 50; background: rgba(10,15,28,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.doc-bar-in { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.doc-tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; order: 3; flex: 1 1 100%; justify-content: flex-start; scrollbar-width: thin; padding-bottom: 2px; }
.doc-tools { margin-inline-start: auto; }
.doc-tabs button { flex: none; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--text-2); border: 1px solid transparent; display: inline-flex; gap: 6px; align-items: center; }
.doc-tabs button svg { width: 16px; height: 16px; }
.doc-tabs button.on { background: rgba(217,169,62,.14); color: var(--gold-hi); border-color: rgba(217,169,62,.4); }
.doc-tools { display: flex; gap: 8px; align-items: center; }
.doc-select { height: 42px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); padding: 0 14px; font-weight: 700; font-size: 13.5px; color: var(--text); }
.doc-select option { background: #111a30; }
.doc-hint { max-width: 1400px; margin: 0 auto; padding: 0 16px 10px; font-size: 13px; color: var(--muted); }
.doc-stage { padding: 30px 16px 80px; display: flex; flex-direction: column; align-items: center; gap: 30px; }

/* ── paper ── */
.sheet {
  --ink: #0a0f1c; --ink2: #3b475e; --mute: #6b778c; --rule: #e3e8ef; --gold: #b8892b; --gold2: #d9a93e; --navy: #0a0f1c; --blue: #1f6fc0;
  width: 210mm; min-height: 297mm; background: #fff; color: var(--ink); position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); font-family: "Inter", "Cairo", sans-serif; font-size: 10.5pt; line-height: 1.5;
  display: flex; flex-direction: column;
}
.sheet[dir="rtl"] { font-family: "Cairo", "Tajawal", "Inter", sans-serif; }
.sheet.a5 { width: 148mm; min-height: 210mm; }
.sheet * { box-sizing: border-box; }
.sheet p { color: inherit; margin: 0 0 6px; }
.sheet h1, .sheet h2, .sheet h3 { color: var(--ink); font-family: inherit; letter-spacing: 0; }
[contenteditable] { outline: none; border-radius: 3px; transition: background-color .2s, box-shadow .2s; }
[contenteditable]:hover { background: rgba(217,169,62,.08); }
[contenteditable]:focus { background: rgba(217,169,62,.14); box-shadow: 0 0 0 1px rgba(217,169,62,.6); }
.sheet .bi { display: block; }
.sheet .bi .sec { display: block; font-size: .82em; color: var(--mute); font-weight: 500; }
.sheet .bi-inline .sec { color: var(--mute); font-weight: 500; }

/* header band */
.d-head { position: relative; background: linear-gradient(120deg, #0a0f1c 0%, #121b33 70%, #18233f 100%); color: #fff; padding: 9mm 12mm 8mm; display: flex; justify-content: space-between; align-items: center; gap: 8mm; }
.d-head::after { content: ""; position: absolute; inset: auto 0 0; height: 1.6mm; background: linear-gradient(90deg, #9c6f1c, #f2cf7a, #d9a93e, #2f8fe6); }
.d-brand { display: flex; gap: 4mm; align-items: center; }
.d-brand img { width: 20mm; height: 17mm; object-fit: contain; }
.d-brand b { display: block; font-family: "Cinzel", Georgia, serif; font-weight: 800; font-size: 17pt; letter-spacing: .08em; direction: ltr; text-align: start; color: #8dbbff; }
.d-brand small { display: block; font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 6.6pt; letter-spacing: .2em; color: #d9a93e; text-transform: uppercase; direction: ltr; }
.d-brand .ar { font-family: "Cairo", sans-serif; font-size: 9pt; color: #f2cf7a; letter-spacing: 0; text-transform: none; margin-top: 1mm; }
.d-title { text-align: end; }
.d-title h1 { color: #fff !important; font-size: 20pt; font-weight: 900; margin: 0; line-height: 1.15; }
.d-title h1 .sec { color: #f2cf7a; font-size: 10pt; font-weight: 600; display: block; }
.d-title .meta .sec { color: #a7b2c6; font-weight: 500; }
.d-title .meta { margin-top: 2mm; font-size: 9pt; color: #cbd5e1; display: grid; gap: .6mm; }
.d-title .meta b { color: #fff; font-family: "Inter", sans-serif; direction: ltr; unicode-bidi: isolate; }
.d-body { padding: 8mm 12mm; flex: 1; display: flex; flex-direction: column; gap: 5mm; }
.d-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.d-box { border: 1px solid var(--rule); border-radius: 3mm; padding: 4mm; background: #fbfcfe; }
.d-box h3 { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 2mm; font-weight: 800; }
.sheet[dir="rtl"] .d-box h3 { letter-spacing: 0; font-size: 9.5pt; }
.d-box .row { display: flex; gap: 2mm; font-size: 9.5pt; padding: .6mm 0; }
.d-box .row .k { color: var(--mute); min-width: 24mm; flex: none; }
.d-box .row .v { color: var(--ink); font-weight: 600; flex: 1; }

/* table */
.d-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 9.5pt; }
.d-table th { background: #0a0f1c; color: #fff; font-weight: 700; padding: 2.4mm 2.5mm; text-align: start; font-size: 8.5pt; }
.d-table th:first-child { border-start-start-radius: 2mm; } .d-table th:last-child { border-start-end-radius: 2mm; }
.d-table th .sec { display: block; color: #f2cf7a; font-weight: 500; font-size: 7.5pt; }
.d-table td { padding: 2.2mm 2.5mm; border-bottom: 1px solid var(--rule); vertical-align: top; }
.d-table tr:nth-child(even) td { background: #f8fafc; }
.d-table .n { text-align: end; font-family: "Inter", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.d-table .del { width: 7mm; text-align: center; }
.d-table .del button { color: #ef4444; font-weight: 800; font-size: 12pt; line-height: 1; padding: 0 1mm; }
.add-row { align-self: flex-start; font-size: 9pt; font-weight: 700; color: var(--blue); border: 1px dashed #9cc3ea; border-radius: 2mm; padding: 1.5mm 3mm; background: #f2f8fe; }
.d-totals { display: flex; justify-content: space-between; gap: 6mm; align-items: flex-start; }
.d-words { flex: 1; font-size: 9pt; color: var(--ink2); border-inline-start: 1mm solid var(--gold2); padding: 2mm 3mm; background: #fffaf0; border-radius: 0 2mm 2mm 0; }
.sheet[dir="rtl"] .d-words { border-radius: 2mm 0 0 2mm; }
.d-words b { display: block; color: var(--ink); font-size: 9.5pt; margin-top: 1mm; }
.d-sum { min-width: 70mm; border: 1px solid var(--rule); border-radius: 3mm; overflow: hidden; }
.d-sum .r { display: flex; justify-content: space-between; gap: 4mm; padding: 2mm 3.5mm; font-size: 9.5pt; border-bottom: 1px solid var(--rule); }
.d-sum .r b { font-family: "Inter", sans-serif; direction: ltr; unicode-bidi: isolate; }
.d-sum .r.total { background: #0a0f1c; color: #fff; font-weight: 800; font-size: 11pt; border: 0; }
.d-sum .r.total b { color: #f2cf7a; }
.d-sum label { display: inline-flex; gap: 1.5mm; align-items: center; cursor: pointer; }
.d-terms { font-size: 8.5pt; color: var(--ink2); }
.d-terms h3 { font-size: 9pt; margin: 0 0 1.5mm; color: var(--ink); }
.d-terms ol, .d-terms ul { margin: 0; padding-inline-start: 5mm; }
.d-terms li { margin-bottom: .8mm; }
.d-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; margin-top: auto; }
.d-sign .s { border-top: 1px dashed #94a3b8; padding-top: 2mm; min-height: 24mm; font-size: 9pt; color: var(--mute); }
.d-sign .s b { color: var(--ink); display: block; }
.stamp { position: absolute; inset-inline-end: 16mm; bottom: 38mm; width: 30mm; height: 30mm; border: 2px solid rgba(31,111,192,.35); border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 6.5pt; color: rgba(31,111,192,.5); font-weight: 800; transform: rotate(-12deg); letter-spacing: .05em; }
.d-foot { padding: 4mm 12mm; background: #f4f6fa; border-top: 1px solid var(--rule); font-size: 7.6pt; color: var(--mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2mm 6mm; }
.d-foot b { color: var(--ink2); font-family: "Inter", sans-serif; }
.d-foot .ltr { direction: ltr; unicode-bidi: isolate; }

/* report specifics */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5mm 4mm; font-size: 9pt; }
.checks label { display: flex; gap: 1.8mm; align-items: center; cursor: pointer; }
.checks input { accent-color: #b8892b; width: 3.6mm; height: 3.6mm; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.photo { aspect-ratio: 4/3; border: 1.5px dashed #cbd5e1; border-radius: 2.5mm; display: grid; place-items: center; font-size: 8.5pt; color: var(--mute); cursor: pointer; overflow: hidden; position: relative; background: #f8fafc; text-align: center; padding: 2mm; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo input { display: none; }
.lines { min-height: 18mm; font-size: 9.5pt; background-image: repeating-linear-gradient(180deg, transparent 0 6.4mm, #e8edf3 6.4mm 6.6mm); padding-top: 1mm; line-height: 6.6mm; }
.status-pill { display: inline-flex; gap: 2mm; flex-wrap: wrap; }
.status-pill label { border: 1px solid var(--rule); border-radius: 99px; padding: .8mm 3mm; font-size: 8.5pt; display: inline-flex; gap: 1.5mm; align-items: center; cursor: pointer; }

/* contract */
.art { font-size: 9.3pt; color: var(--ink2); }
.art h3 { font-size: 9.8pt; color: var(--ink); margin: 0 0 1mm; }
.art h3 i { font-style: normal; color: var(--gold); font-family: "Inter", sans-serif; margin-inline-end: 2mm; }
.art p { margin: 0 0 3mm; }

/* poster / notice */
.poster { background: radial-gradient(120% 80% at 50% 0%, #18233f 0%, #0a0f1c 60%); color: #fff; }
.poster .p-in { padding: 14mm 14mm 10mm; flex: 1; display: flex; flex-direction: column; gap: 6mm; }
.poster .p-logo { display: flex; justify-content: space-between; align-items: center; }
.poster .p-logo img { width: 18mm; }
.poster .p-logo b { font-family: "Cinzel", Georgia, serif; letter-spacing: .1em; font-weight: 800; font-size: 14pt; direction: ltr; color: #8dbbff; }
.poster .p-logo b span { color: #d9a93e; }
.poster .alert { background: linear-gradient(135deg, #ef4444, #b91c1c); border-radius: 5mm; padding: 8mm; text-align: center; box-shadow: 0 10mm 20mm rgba(239,68,68,.25); }
.poster .alert h1 { color: #fff !important; font-size: 30pt; font-weight: 900; margin: 0; line-height: 1.15; }
.poster .alert .sec { display: block; font-size: 15pt; color: #fee2e2; font-weight: 700; margin-top: 2mm; }
.poster .steps { display: grid; gap: 3.5mm; }
.poster .stp { display: grid; grid-template-columns: 14mm 1fr; gap: 4mm; align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(217,169,62,.3); border-radius: 4mm; padding: 3.5mm 4mm; }
.poster .stp .num { width: 14mm; height: 14mm; border-radius: 3.5mm; display: grid; place-items: center; background: linear-gradient(135deg, #f6d98a, #d9a93e); color: #0a0f1c; font-weight: 900; font-size: 17pt; font-family: "Inter", sans-serif; }
.poster .stp b { font-size: 14pt; display: block; color: #fff; }
.poster .stp span { font-size: 10pt; color: #cbd5e1; display: block; }
.poster .stp .sec { color: #f2cf7a; font-size: 9.5pt; }
.poster .call { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 6mm; align-items: center; background: #fff; color: #0a0f1c; border-radius: 5mm; padding: 6mm; }
.poster .call .big { font-family: "Inter", sans-serif; font-size: 24pt; font-weight: 900; direction: ltr; unicode-bidi: isolate; display: block; color: #0a0f1c; }
.poster .call small { font-size: 10pt; color: #3b475e; display: block; }
.poster .call img { width: 32mm; height: 32mm; }
.poster .civ { display: flex; justify-content: center; gap: 8mm; font-size: 10pt; color: #cbd5e1; }
.poster .civ b { color: #f2cf7a; font-family: "Inter", sans-serif; font-size: 13pt; }
.notice-hero { background: linear-gradient(135deg, #f6d98a, #d9a93e); border-radius: 5mm; padding: 9mm 8mm; color: #0a0f1c; }
.notice-hero h1 { color: #0a0f1c !important; font-size: 26pt; font-weight: 900; margin: 0 0 2mm; line-height: 1.2; }
.notice-hero p { font-size: 12pt; margin: 0; }
.notice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm; }
.notice-list div { background: rgba(255,255,255,.05); border: 1px solid rgba(217,169,62,.3); border-radius: 4mm; padding: 4mm; font-size: 11pt; color: #e2e8f0; }
.notice-list b { display: block; color: #f2cf7a; font-size: 12pt; margin-bottom: 1mm; }
.offer { text-align: center; border: 2px dashed #d9a93e; border-radius: 5mm; padding: 5mm; }
.offer b { font-size: 18pt; color: #f2cf7a; display: block; }
.offer span { font-size: 10.5pt; color: #cbd5e1; }

/* business cards */
.cards-sheet { padding: 10mm; display: grid; grid-template-columns: repeat(2, 85mm); gap: 6mm 10mm; justify-content: center; align-content: start; }
.bcard { width: 85mm; height: 55mm; border-radius: 3mm; overflow: hidden; position: relative; box-shadow: 0 0 0 .2mm #e2e8f0; }
.bcard.front { background: radial-gradient(120% 120% at 100% 0%, #18233f, #0a0f1c 65%); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2mm; }
.bcard.front img { width: 19mm; }
.bcard.front b { font-family: "Cinzel", Georgia, serif; letter-spacing: .1em; font-size: 13pt; font-weight: 800; direction: ltr; color: #8dbbff; }
.bcard.front b span { color: #d9a93e; }
.bcard.front small { font-size: 5.2pt; letter-spacing: .2em; color: #d9a93e; font-family: "Cinzel", Georgia, serif; font-weight: 600; }
.bcard.front::after { content: ""; position: absolute; inset: auto 0 0; height: 1.2mm; background: linear-gradient(90deg, #9c6f1c, #f2cf7a, #2f8fe6); }
.bcard.back { background: #fff; color: #0a0f1c; padding: 5mm 6mm; display: grid; grid-template-columns: 1fr 20mm; gap: 3mm; align-items: center; }
.bcard.back h3 { font-size: 11pt; margin: 0; }
.bcard.back .role { font-size: 7.5pt; color: #b8892b; font-weight: 700; margin-bottom: 2mm; }
.bcard.back .ln { font-size: 7.6pt; color: #3b475e; display: flex; gap: 1.5mm; align-items: center; margin-bottom: .6mm; }
.bcard.back .ln svg { width: 3mm; height: 3mm; color: #b8892b; flex: none; }
.bcard.back .ln span { direction: ltr; unicode-bidi: isolate; }
.bcard.back img { width: 20mm; height: 20mm; }
.cut-note { grid-column: 1 / -1; text-align: center; font-size: 8pt; color: #94a3b8; }

@page { size: A4; margin: 0; }
@media print {
  body[data-page="docs"] { background: #fff !important; }
  .no-print, .add-row, .d-table .del, .photo input { display: none !important; }
  .doc-stage { padding: 0; gap: 0; display: block; }
  .sheet { box-shadow: none; margin: 0; page-break-after: always; break-after: page; }
  [contenteditable]:hover, [contenteditable]:focus { background: none; box-shadow: none; }
  .photo:not(.has) { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media screen and (max-width: 860px) {
  .doc-stage { padding: 14px 0 60px; overflow-x: auto; align-items: flex-start; }
  .sheet { transform-origin: top left; }
  .doc-tabs { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .doc-tabs button { flex: none; }
}

/* watermark */
.sheet .wm { position: absolute; inset: 45mm 0 25mm; display: grid; place-items: center; align-content: center; gap: 4mm; pointer-events: none; z-index: 0; }
.sheet .wm img { width: 95mm; opacity: .055; filter: grayscale(.2); }
.sheet .wm span { font-family: "Cinzel", Georgia, serif; font-weight: 800; font-size: 26pt; letter-spacing: .14em; color: #1747b5; opacity: .05; }
.sheet > *:not(.wm) { position: relative; z-index: 1; }
.d-box, .d-sum, .d-words { background-color: rgba(251,252,254,.85); }
.doc-wm { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.doc-wm input { accent-color: #d9a93e; width: 16px; height: 16px; }
@media screen and (max-width: 600px) {
  .doc-tools { width: 100%; flex-wrap: wrap; margin: 0; }
  .doc-select { flex: 1; min-width: 0; }
  .lbl-reset, .doc-wm span { display: none; }
  .doc-hint { font-size: 12px; }
}

img[src*="logo-mark"] { object-fit: contain; }

/* v6 — access gate */
.doc-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: radial-gradient(700px 420px at 50% 30%, rgba(42,111,230,.18), transparent 70%), #0a0f1c; }
.doc-gate[hidden] { display: none; }
.docs-locked .doc-bar, .docs-locked .doc-stage { visibility: hidden; }
.doc-gate-card { width: min(440px, 100%); text-align: center; padding: 34px 26px; border-radius: 24px; border: 1px solid rgba(217,169,62,.3); background: linear-gradient(180deg, rgba(18,27,51,.9), rgba(10,15,28,.95)); box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: gateIn .6s cubic-bezier(.22,1,.36,1); }
@keyframes gateIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.doc-gate-card img { width: 120px; height: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(0 12px 30px rgba(42,111,230,.4)); }
.doc-gate-card h1 { font-family: var(--font-brand); font-size: 18px; letter-spacing: .08em; color: #9cc4ff; margin: 0 0 16px; }
.doc-gate-lock { width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 14px; background: rgba(217,169,62,.12); color: var(--gold); }
.doc-gate-lock svg { width: 22px; height: 22px; }
.doc-gate[data-state="checking"] .doc-gate-lock { animation: gatePulse 1.2s ease-in-out infinite; }
@keyframes gatePulse { 50% { opacity: .45; } }
.doc-gate-card p { color: var(--text-2, #cbd5e1); line-height: 1.8; margin: 0 0 18px; }
@media print { .doc-gate { display: none !important; } }

/* v12 — client link bar (documents ↔ client account) */
.doc-client { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 1280px; margin: 8px auto 0; padding: 8px 16px; }
.doc-client:empty { display: none; }
.dc-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2, #b9c3d6); font-weight: 700; font-size: 14px; }
.dc-pick svg { width: 18px; height: 18px; color: var(--gold, #d9a93e); }
.dc-pick select { min-width: 220px; }
.doc-client .btn[disabled] { opacity: .45; pointer-events: none; }
.dc-msg { font-size: 13px; color: var(--muted, #8b97ad); }
.dc-msg.ok { color: #4ade80; } .dc-msg.err { color: #f87171; }
@media print { .doc-client { display: none !important; } }

/* ═════ v16: tap-to-fill widgets — on screen: big touch targets; on paper: clean ☐ / ☒ boxes ═════ */
.bxg, .chg { display: inline-flex; flex-wrap: wrap; gap: 1.6mm 2mm; }
.bx, .ch { -webkit-appearance: none; appearance: none; font: inherit; font-size: 8.8pt; color: var(--ink2); background: #fff; border: 1px solid var(--rule); border-radius: 99px; padding: 1mm 3mm 1mm 2.4mm; display: inline-flex; align-items: center; gap: 1.6mm; cursor: pointer; transition: background .15s, border-color .15s, color .15s; line-height: 1.35; }
.sheet[dir="rtl"] .bx, .sheet[dir="rtl"] .ch { padding: 1mm 2.4mm 1mm 3mm; }
.bx i, .ch i { width: 3.4mm; height: 3.4mm; border: 1.3px solid #9aa6b8; border-radius: .7mm; flex: none; position: relative; background: #fff; }
.bx i { border-radius: 50%; }
.bx.on, .ch.on { border-color: var(--gold2); background: linear-gradient(180deg, #fffaf0, #fdf1d8); color: var(--ink); font-weight: 700; }
.bx.on i, .ch.on i { border-color: var(--gold); background: var(--gold); }
.bx.on i::after, .ch.on i::after { content: ""; position: absolute; inset: 0; background: center/72% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2l-8 8' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.bx:hover, .ch:hover { border-color: var(--gold2); }
.bxg.status-row, .status-row .bxg { gap: 2mm; }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2mm; }
.status-row h3 { width: 100%; }
.tmi, .sli { font: inherit; font-size: 9pt; font-weight: 700; color: var(--ink); border: 1px solid var(--rule); border-radius: 1.5mm; padding: .4mm 1.5mm; background: #fff; }
.numg { display: inline-flex; align-items: center; gap: 1.5mm; }
.numg button, .qb { width: 6mm; height: 6mm; border-radius: 50%; border: 1px solid var(--rule); background: #fff; color: var(--gold); font-weight: 900; cursor: pointer; line-height: 1; padding: 0; }
td.q { white-space: nowrap; }
td.q .qb { width: 5mm; height: 5mm; font-size: 9pt; margin: 0 1mm; vertical-align: middle; }
.row-tools { display: flex; gap: 3mm; align-items: center; flex-wrap: wrap; margin-top: 2mm; }
.row-tools .add-row { margin: 0; }
.cat-pick select { font: inherit; font-size: 9pt; font-weight: 700; color: var(--ink); border: 1.5px dashed var(--gold2); border-radius: 2mm; padding: 1.6mm 3mm; background: #fffaf0; cursor: pointer; max-width: 120mm; }

/* 18-point maintenance sheet */
.pm-tools { display: flex; gap: 2mm; align-items: center; flex-wrap: wrap; margin: 3mm 0 1mm; font-size: 8.5pt; color: var(--mute); }
.pm-tools button { font: inherit; font-weight: 800; font-size: 8.8pt; border: 1px solid #1e8449; color: #1e8449; background: #effaf2; border-radius: 99px; padding: 1.2mm 4mm; cursor: pointer; }
.pm-tools button[data-clearpts] { border-color: var(--rule); color: var(--ink2); background: #fff; }
.d-table.pm { margin-top: 1mm; }
.d-table.pm th, .d-table.pm td { padding: 1.1mm 1.6mm; font-size: 8.8pt; }
.d-table.pm th.c, .d-table.pm td.c { text-align: center; width: 13mm; }
.d-table.pm th.ok { color: #1e8449; } .d-table.pm th.adj { color: #1f6fc0; } .d-table.pm th.watch { color: #b7791f; } .d-table.pm th.nok { color: #c0392b; } .d-table.pm th.na { color: var(--mute); }
.d-table.pm tr.grp td { background: linear-gradient(90deg, rgba(217,169,62,.16), rgba(217,169,62,.03)); font-weight: 800; color: var(--ink); font-size: 8.6pt; padding: 1mm 2mm; }
.d-table.pm td.n { color: var(--mute); font-family: "Inter", sans-serif; font-weight: 700; }
.bx.sq { border: 0; background: none; padding: .6mm; border-radius: 1mm; }
.bx.sq i { width: 4.2mm; height: 4.2mm; border-radius: 1mm; }
.bx.sq.on { background: none; }
.bx.sq.ok.on i { background: #1e8449; border-color: #1e8449; } .bx.sq.adj.on i { background: #1f6fc0; border-color: #1f6fc0; }
.bx.sq.watch.on i { background: #d69e2e; border-color: #b7791f; } .bx.sq.nok.on i { background: #c0392b; border-color: #c0392b; } .bx.sq.na.on i { background: #94a3b8; border-color: #94a3b8; }
.pm-sum { display: grid; grid-template-columns: auto 1fr auto; gap: 4mm; align-items: center; margin: 3mm 0; padding: 3mm 4mm; border: 1px solid var(--rule); border-radius: 3mm; background: #fbfcfe; }
.pm-sum .seal { border: 1.6px solid var(--sc); color: var(--sc); border-radius: 2.5mm; padding: 2mm 4mm; text-align: center; min-width: 40mm; }
.pm-sum .seal b { display: block; font-size: 11pt; font-weight: 900; }
.pm-sum .seal small { font-size: 7.5pt; color: var(--mute); }
.pm-sum .cnt { display: flex; gap: 3mm; flex-wrap: wrap; font-size: 8.5pt; color: var(--ink2); }
.pm-sum .cnt span { display: inline-flex; align-items: baseline; gap: 1mm; }
.pm-sum .cnt b { font-family: "Inter", sans-serif; font-size: 13pt; font-weight: 800; }
.pm-sum .cnt .ok b { color: #1e8449; } .pm-sum .cnt .adj b { color: #1f6fc0; } .pm-sum .cnt .watch b { color: #b7791f; } .pm-sum .cnt .nok b { color: #c0392b; } .pm-sum .cnt .none b { color: #94a3b8; }
.pm-sum .nxt { text-align: center; }
.pm-sum .nxt small { display: block; font-size: 7.5pt; color: var(--mute); }
.pm-sum .nxt b { display: block; font-size: 12pt; font-weight: 900; color: var(--ink); font-family: "Inter", sans-serif; margin-bottom: 1mm; }
.pm-sheet .d-box { margin-top: 2.5mm; }
.pm-sheet .d-grid2 .d-box { margin-top: 0; }
.pm-sheet .chg .ch { font-size: 8.4pt; }

/* paper: no pill backgrounds, crisp checkbox marks, unchosen options stay visible but quiet */
@media print {
  .bx, .ch { border-color: transparent; background: none !important; padding: .3mm 1.5mm; }
  .bx:not(.on), .ch:not(.on) { color: #8a94a6; }
  .tmi, .sli { border: 0; padding: 0; -webkit-appearance: none; appearance: none; background: none; }
  .tmi::-webkit-calendar-picker-indicator { display: none; }
}
.doc-snapshot .bx, .doc-snapshot .ch { cursor: default; }


/* v16.1: setup panels (screen only) + key/value strip */
.d-box.pick { background: linear-gradient(180deg, #fffdf7, #fff8e8); border: 1px dashed rgba(184,137,43,.55); }
.d-box.pick h3 { margin-bottom: 2.4mm; }
.prow { display: flex; align-items: center; flex-wrap: wrap; gap: 2mm 3mm; padding: 1.2mm 0; }
.prow + .prow { border-top: 1px dotted rgba(184,137,43,.25); }
.prow > span:not(.bxg):not(.chg):not(.numg) { font-size: 8.4pt; font-weight: 800; color: var(--mute); min-width: 22mm; }
.phint { margin: 2mm 0 0; font-size: 8.4pt; color: var(--ink2); }
.phint b { color: var(--gold); font-size: 10pt; }
.d-box.kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(34mm, 1fr)); gap: 3mm; }
.kv span { display: block; font-size: 8pt; color: var(--mute); }
.kv b { font-size: 10.5pt; color: var(--ink); }
.d-table.pl tr.off td { color: #b3bccb; background: #fafbfd; }
.at-sheet .d-table td .bxg { gap: 1mm; }
.at-sheet .d-table td .bx { font-size: 8pt; padding: .6mm 2mm; }
.d-table.pm td .sec { font-size: 7.6pt; color: var(--mute); }
.art > div { font-size: 9.5pt; line-height: 1.75; color: var(--ink2); }

@media print {
  .d-box.pick { display: none; }
  .d-box.pick:has(.prow:not(.no-print)) { display: block; background: none; border-style: solid; border-color: var(--rule); }
  /* 18-point sheet fits two A4 pages */
  .pm-sheet .d-table.pm th, .pm-sheet .d-table.pm td { padding: .55mm 1.4mm; font-size: 8.2pt; }
  .pm-sheet .d-table.pm tr.grp td { padding: .6mm 2mm; }
  .pm-sheet .bx.sq { padding: 0; }
  .pm-sheet .bx.sq i { width: 3.6mm; height: 3.6mm; }
  .pm-sheet .d-box { padding: 2.6mm 3.4mm; }
  .pm-sheet .pm-sum { margin: 2mm 0; padding: 2mm 3mm; break-inside: avoid; }
  .pm-sheet .d-sign { break-inside: avoid; }
  .d-table tr { break-inside: avoid; }
}
@media print {
  html, body { background: #fff !important; }
  body::before, body::after { display: none !important; }
  .sheet { min-height: 296mm; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  #stPreviewBar { display: none !important; }
}
@media print {
  .d-body { gap: 3.2mm; padding: 6mm 11mm; }
  .d-head { padding: 7mm 11mm 6mm; }
  .d-sign .s { min-height: 18mm; }
  .sheet { min-height: 290mm; }
  /* multi-choice lists print only what was ticked (a dash when nothing was) */
  .chg .ch:not(.on) { display: none; }
  .chg:not(:has(.ch.on))::after { content: "—"; color: #8a94a6; }
}
@media print {
  .lines { min-height: 0 !important; }
  .lines:has(> [data-f]:empty) { display: none; }
  .d-box { padding: 3mm 3.6mm; }
}
.pr-only { display: none; }
@media print { .tmi { display: none !important; } .pr-only { display: inline; } }
.doc-snapshot .pr-only { display: inline; }

/* v16.1: phone — the form fills the screen (no shrinking), large touch targets; paper layout is unchanged */
@media screen {
  .sheet.fluid { width: 100%; min-height: 0; border-radius: 14px; }
  .sheet.fluid .d-head { flex-wrap: wrap; padding: 18px 16px 16px; gap: 12px; }
  .sheet.fluid .d-body { padding: 14px 12px; gap: 12px; }
  .sheet.fluid .d-grid2, .sheet.fluid .d-sign { grid-template-columns: 1fr; display: grid; }
  .sheet.fluid .d-box { padding: 12px; }
  .sheet.fluid .bx, .sheet.fluid .ch { font-size: 14px; padding: 8px 14px 8px 11px; gap: 8px; }
  .sheet.fluid .bx i, .sheet.fluid .ch i { width: 18px; height: 18px; }
  .sheet.fluid .bx.sq { padding: 6px; }
  .sheet.fluid .bx.sq i { width: 24px; height: 24px; border-radius: 6px; }
  .sheet.fluid .d-table.pm th, .sheet.fluid .d-table.pm td { font-size: 12.5px; padding: 6px 3px; }
  .sheet.fluid .d-table.pm th.c, .sheet.fluid .d-table.pm td.c { width: auto; }
  .sheet.fluid .d-table.pm th.c { font-size: 10.5px; }
  .sheet.fluid .d-table.pm td .sec { display: block; }
  .sheet.fluid .pm-sum { grid-template-columns: 1fr; text-align: center; }
  .sheet.fluid .pm-sum .cnt { justify-content: center; }
  .sheet.fluid .pm-tools button { font-size: 14px; padding: 10px 18px; }
  .sheet.fluid .numg button, .sheet.fluid .qb { width: 34px; height: 34px; font-size: 18px; }
  .sheet.fluid .tmi, .sheet.fluid .sli, .sheet.fluid .cat-pick select { font-size: 15px; padding: 8px 10px; max-width: 100%; }
  .sheet.fluid .d-table:not(.pm) { display: block; overflow-x: auto; }
  .sheet.fluid .prow > span:not(.bxg):not(.chg):not(.numg) { min-width: 100%; font-size: 12px; }
  .sheet.fluid .d-box .row { flex-wrap: wrap; font-size: 14px; }
  .sheet.fluid .kvs { grid-template-columns: 1fr 1fr; }
  .sheet.fluid .photos { grid-template-columns: 1fr 1fr 1fr; }
  .sheet.fluid .wm { display: none; }
}
@media screen and (max-width: 760px) {
  .doc-bar { position: relative !important; top: auto !important; }
  .doc-hint { display: none; }
  .doc-tabs { gap: 6px; padding-bottom: 4px; }
}
/* saved copy shown in the client account looks exactly like paper */
.doc-snapshot .bx, .doc-snapshot .ch { border-color: transparent; background: none !important; padding: .3mm 1.5mm; pointer-events: none; }
.doc-snapshot .bx:not(.on), .doc-snapshot .ch:not(.on) { color: #8a94a6; }
.doc-snapshot .chg .ch:not(.on) { display: none; }
.doc-snapshot .chg:not(:has(.ch.on))::after { content: "—"; color: #8a94a6; }
.doc-snapshot .lines:has(> [data-f]:empty) { display: none; }
.doc-snapshot .photo:not(.has) { display: none; }

/* ═════ v16.2: fleet maintenance — lift tiles, inspection map, summary for the association ═════ */
.st-ok { --c: #1e8449; --bg: #e9f7ee; } .st-adj { --c: #1f6fc0; --bg: #e8f1fb; } .st-watch { --c: #c98a12; --bg: #fdf4e1; }
.st-nok { --c: #c0392b; --bg: #fcebea; } .st-na { --c: #94a3b8; --bg: #f1f4f8; } .st-none { --c: #b6c0cf; --bg: #f6f8fb; }
.pm-panel { width: 210mm; max-width: 100%; margin: 0 auto 18px; background: linear-gradient(180deg, #121a2c, #0c1322); border: 1px solid rgba(217,169,62,.32); border-radius: 18px; padding: 16px 18px; color: #e8edf5; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.pm-panel h3 { margin: 0; font-size: 16px; color: #f0c85a; }
.pm-panel p { margin: 4px 0 0; color: #94a3b8; font-size: 13px; }
.pp-top { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.pp-prog { min-width: 130px; text-align: center; }
.pp-prog b { display: block; font: 800 22px/1 "Inter", sans-serif; color: #fff; }
.pp-prog span { font-size: 11.5px; color: #94a3b8; }
.pp-prog em { display: block; height: 6px; border-radius: 9px; margin-top: 6px; background: linear-gradient(90deg, #d9a93e var(--p), rgba(148,163,184,.2) var(--p)); }
.pp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.pp-row > span:not(.bxg):not(.numg) { font-size: 12.5px; font-weight: 800; color: #cbd5e1; }
.pm-panel .bx { background: rgba(255,255,255,.06); color: #e8edf5; border-color: rgba(148,163,184,.3); font-size: 13px; }
.pm-panel .bx.on { background: rgba(217,169,62,.2); border-color: #d9a93e; color: #fff; }
.pm-panel .bx i { background: transparent; }
.pm-panel .numg b { color: #fff; font: 800 16px "Inter", sans-serif; min-width: 26px; text-align: center; }
.pm-panel .numg button { background: rgba(255,255,255,.08); border-color: rgba(148,163,184,.3); color: #f0c85a; width: 30px; height: 30px; }
.ltiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin-top: 14px; }
.ltile { position: relative; aspect-ratio: 1; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 14%, #0c1322); color: #fff; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; font-family: "Inter", sans-serif; transition: transform .15s, box-shadow .15s; }
.ltile b { font-size: 18px; font-weight: 800; line-height: 1; }
.ltile i { font-style: normal; font-size: 12px; color: var(--c); font-weight: 900; line-height: 1; }
.ltile.st-none i { color: #64748b; }
.ltile small { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.ltile:hover { transform: translateY(-2px); }
.ltile.cur { box-shadow: 0 0 0 3px #d9a93e, 0 10px 24px rgba(217,169,62,.25); transform: translateY(-2px); }
.pp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; color: #94a3b8; }
.pp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pp-legend i { width: 16px; height: 16px; border-radius: 5px; background: var(--c); color: #fff; font-style: normal; font-size: 10px; font-weight: 900; display: grid; place-items: center; }
.pp-bulk button { font: inherit; font-size: 12.5px; font-weight: 800; border-radius: 99px; padding: 8px 14px; cursor: pointer; border: 1px solid rgba(30,132,73,.7); background: rgba(30,132,73,.16); color: #b8f0cd; }
.pp-bulk button[data-copyacts] { border-color: rgba(47,143,230,.6); background: rgba(47,143,230,.14); color: #bfe0ff; }
.pp-bulk button.ghost { border-color: rgba(148,163,184,.35); background: transparent; color: #cbd5e1; }
.pp-scope { padding-top: 12px; border-top: 1px dashed rgba(217,169,62,.3); }
.lift-badge { display: inline-block; background: linear-gradient(90deg, #d9a93e, #f2cf7a); color: #0a0f1c !important; font-weight: 900; border-radius: 99px; padding: .4mm 3mm; }
.lift-no { font: 900 13pt "Inter", sans-serif; color: var(--gold); }
.pm-editor { outline: 3px dashed rgba(217,169,62,.6); outline-offset: 6px; }
.pm-editor::before { content: "✎ وضع الإدخال — هذه الصفحة لا تُطبع، التقرير الشامل أسفلها"; position: absolute; top: -34px; inset-inline-start: 0; z-index: 3; font: 700 12px "Tajawal", sans-serif; color: #f0c85a; }
.pm-focus { box-shadow: 0 0 0 3px #d9a93e, 0 20px 50px rgba(0,0,0,.3); }
/* summary for the association */
.fl-kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.5mm; }
.fl-kpi > div { border-radius: 2.5mm; padding: 2.6mm 2mm; text-align: center; background: var(--bg); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.fl-kpi b { display: block; font: 900 17pt/1.05 "Inter", sans-serif; color: var(--c); }
.fl-kpi span { font-size: 8pt; color: var(--ink2); font-weight: 700; }
.fl-concl { margin: 0; font-size: 10pt; line-height: 1.8; color: var(--ink); }
.hm { width: 100%; border-collapse: separate; border-spacing: .5mm; font-size: 7.6pt; table-layout: fixed; }
.hm th { font: 800 7.6pt "Inter", sans-serif; color: var(--ink2); width: var(--cw); text-align: center; }
.hm th.pt, .hm td.pt { width: auto; text-align: start; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline-end: 1.5mm; }
.hm tr.grp td { font-weight: 800; color: var(--gold); font-size: 7.4pt; padding-top: 1mm; }
.hm td { text-align: center; padding: 0; }
.hc { display: grid; place-items: center; height: 4.2mm; border-radius: 1mm; background: var(--bg); color: var(--c); font-weight: 900; font-size: 7.6pt; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.hc.st-ok { background: #1e8449; color: #fff; border-color: #1e8449; }
.hc.st-adj { background: #1f6fc0; color: #fff; border-color: #1f6fc0; }
.hc.st-watch { background: #e3a21a; color: #fff; border-color: #c98a12; }
.hc.st-nok { background: #c0392b; color: #fff; border-color: #c0392b; }
.hc.big { height: 5.4mm; font-size: 9pt; }
.hm tfoot td.pt { font-weight: 800; color: var(--ink); }
.pp-legend.print { color: var(--ink2); font-size: 7.8pt; margin-top: 2mm; }
.pp-legend.print i { width: 3.6mm; height: 3.6mm; font-size: 7pt; border-radius: 1mm; }
.pp-legend.print .st-none i { background: #e2e8f0; color: #94a3b8; }
.fl-exs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm; }
.fl-ex { border-radius: 2.5mm; padding: 2.6mm 3mm; background: var(--bg); border-top: 1.2mm solid var(--c); }
.fl-ex h4 { margin: 0 0 1.5mm; font-size: 9.4pt; color: var(--c); display: flex; align-items: center; gap: 1.5mm; }
.fl-ex h4 i { width: 4.4mm; height: 4.4mm; border-radius: 1mm; background: var(--c); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 8pt; }
.fl-ex h4 small { color: var(--mute); font-weight: 700; }
.fl-ex ul { margin: 0; padding-inline-start: 4mm; font-size: 8.4pt; line-height: 1.6; color: var(--ink); }
.fl-ex p { margin: 0; font-size: 8.6pt; color: var(--mute); }
.fl-tbl td, .fl-tbl th { font-size: 8.4pt; padding: 1mm 1.6mm; }
.fl-tbl td.sm { font-size: 7.8pt; color: var(--ink2); }
.pill { display: inline-block; border-radius: 99px; padding: .3mm 2.4mm; font-size: 7.8pt; font-weight: 800; background: var(--bg); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); white-space: nowrap; }
@media print {
  .fl-sheet .d-box { break-inside: avoid; }
  .fl-sheet .fl-map { break-inside: avoid; }
  .pm-focus { box-shadow: none; }
}
@media screen and (max-width: 760px) {
  .pm-panel { border-radius: 14px; padding: 14px 12px; }
  .pp-top { flex-direction: column; align-items: stretch; }
  .ltiles { grid-template-columns: repeat(5, 1fr); }
  .sheet.fluid .fl-kpi { grid-template-columns: repeat(3, 1fr); }
  .sheet.fluid .fl-exs { grid-template-columns: 1fr; }
  .sheet.fluid .fl-map .hm { min-width: 520px; }
  .sheet.fluid .fl-map { overflow-x: auto; }
  .sheet.fluid .fl-tbl { display: block; overflow-x: auto; }
  .pm-editor::before { top: -26px; font-size: 11px; }
}
@media print {
  .fl-exs, .fl-ex, .fl-kpi { break-inside: avoid; }
  .fl-note:has([data-f]:empty) { display: none; }
}
.doc-snapshot .fl-note:has([data-f]:empty) { display: none; }

/* ═════ v16.3 ═════ */
/* footer: legal ids + document reference + verification QR */
.d-foot { align-items: center; flex-wrap: nowrap; }
.d-foot .df-l { display: flex; flex-wrap: wrap; gap: 1mm 5mm; flex: 1; }
.d-foot .df-ref { flex-basis: 100%; color: var(--ink2); }
.d-foot .df-qr { width: 13mm; height: 13mm; flex: none; background: #fff; padding: .8mm; border-radius: 1mm; }
/* entry page label in each language */
.pm-editor:lang(fr)::before { content: "✎ Mode saisie — cette page n’est pas imprimée ; le rapport global est en dessous"; }
.pm-editor:lang(en)::before { content: "✎ Entry mode — this page is not printed; the fleet report is below"; }
.pp-note { margin: 8px 0 0 !important; font-size: 12px !important; color: #f0c85a !important; }
/* company details window */
.co-ov { position: fixed; inset: 0; z-index: 9999; background: rgba(5,8,15,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.co-box { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: linear-gradient(180deg, #121a2c, #0b111e); border: 1px solid rgba(217,169,62,.35); border-radius: 18px; padding: 18px; color: #e8edf5; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.co-box h3 { margin: 0 0 4px; color: #f0c85a; }
.co-box p { margin: 0 0 12px; color: #94a3b8; font-size: 13px; }
.co-box label { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; color: #cbd5e1; }
.co-box input { font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(148,163,184,.3); background: rgba(255,255,255,.05); color: #fff; }
.co-box input:focus { outline: 2px solid #d9a93e; border-color: transparent; }
.co-act { display: flex; gap: 8px; margin-top: 6px; }
.co-msg { margin-top: 10px !important; color: #b8f0cd !important; }
/* business cards v2 */
.card-pick { margin: 6mm 8mm 0 !important; }
.cards-sheet .bcard { box-shadow: 0 0 0 .2mm #cbd5e1; }
.bcard.front { gap: 1.6mm; }
.bcard .bc-glow { position: absolute; inset: -30% -10% auto auto; width: 60mm; height: 60mm; border-radius: 50%; background: radial-gradient(circle, rgba(217,169,62,.28), transparent 65%); pointer-events: none; }
.bcard.front img { width: 16mm; position: relative; }
.bcard.front .bc-svc { display: flex; gap: 1.6mm; align-items: center; font-size: 5.6pt; color: #cbd5e1; margin-top: 1mm; position: relative; }
.bcard.front .bc-svc i { font-style: normal; color: #d9a93e; font-size: 4pt; }
.bcard.back { grid-template-columns: 1fr 21mm; padding: 4.6mm 5mm 5.4mm; }
.bcard.back h3 { font-size: 11.5pt; font-weight: 900; line-height: 1.2; }
.bcard.back .role { font-size: 7pt; margin-bottom: 2.2mm; line-height: 1.3; }
.bcard.back .role .sec { display: block; font-size: 6.2pt; color: #8a94a6; font-weight: 600; }
.bcard.back .ln { font-size: 7.2pt; margin-bottom: .7mm; }
.bc-qr { text-align: center; }
.bc-qr img { width: 20mm; height: 20mm; display: block; margin: 0 auto 1mm; }
.bc-qr small { font-size: 5.2pt; color: #6b778c; line-height: 1.2; display: block; }
.bc-bar { position: absolute; inset: auto 0 0; height: 1.4mm; background: linear-gradient(90deg, #9c6f1c, #f2cf7a, #d9a93e, #2f8fe6); }
/* white */
.bcard.front.t-white { background: #fff; color: #0a0f1c; box-shadow: inset 0 0 0 .25mm #e2e8f0; }
.bcard.front.t-white b { color: #0a0f1c; }
.bcard.front.t-white small { color: #b8892b; }
.bcard.front.t-white .bc-svc { color: #3b475e; }
.bcard.front.t-white .bc-glow { background: radial-gradient(circle, rgba(217,169,62,.16), transparent 65%); }
/* tech blue */
.bcard.front.t-tech { background: linear-gradient(135deg, #0b3a75 0%, #1f6fc0 55%, #2f8fe6 100%); }
.bcard.front.t-tech b { color: #fff; }
.bcard.front.t-tech small { color: #cfe6ff; }
.bcard.front.t-tech .bc-glow { background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); }
.bcard.front.t-tech::after { background: linear-gradient(90deg, #cfe6ff, #fff, #d9a93e); }
.bcard.back.t-tech .role, .bcard.back.t-tech .ln svg { color: #1f6fc0; }
.bcard.back.t-tech .bc-bar { background: linear-gradient(90deg, #0b3a75, #2f8fe6); }
.bcard.back.t-navy { background: linear-gradient(180deg, #fff, #fbf8f1); }
/* duplex: 10 per A4 page, touching cards, exact cut grid */
.cards-sheet.duplex { grid-template-columns: repeat(2, 85mm); gap: 0; padding: 11mm 20mm 0; }
.cards-sheet.duplex .bcard { border-radius: 0; box-shadow: 0 0 0 .1mm #cbd5e1; }
.cards-sheet.duplex.backs { direction: rtl; }
.cards-sheet.duplex.backs .bcard { direction: ltr; }
.sheet[dir="rtl"] .cards-sheet.duplex.backs { direction: ltr; }
.sheet[dir="rtl"] .cards-sheet.duplex.backs .bcard { direction: rtl; }
.card-sheet > .cut-note { text-align: center; font-size: 8pt; color: #94a3b8; margin: 3mm 0 0; }
@media print { .card-pick { display: none !important; } }
/* v16.5: lift choice — count stepper on screen, only the chosen lift on paper */
.lift-v { display: flex; flex-wrap: wrap; align-items: center; gap: 2mm; }
.lift-n { display: inline-flex; align-items: center; gap: 1.5mm; padding-inline-end: 2mm; border-inline-end: 1px dashed var(--rule); }
.lift-n small { font-size: 7.5pt; color: var(--mute); }
@media print { .lift-v .bx:not(.on) { display: none; } }
.doc-snapshot .lift-v .bx:not(.on) { display: none; }
/* v16.5: delivery bar — account / WhatsApp / PDF */
.dc-wa { font: inherit; font-size: 12.5px; font-weight: 700; color: #b8f0cd; background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.4); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.dc-wa .miss, .dc-wa span.miss { color: #fcd34d; }
.dc-wa-btn { background: #1fa855 !important; color: #fff !important; border-color: #1fa855 !important; }
.dc-wa-btn:disabled { opacity: .45; }
.dc-wa-btn svg { color: #fff; }
.dc-sep { flex-basis: 100%; height: 0; }
.dc-msg a { color: #7ee2a8; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; margin-inline-start: 6px; }
/* v16.7: official numbering */
.numnote { display: block; font-size: 7pt; font-weight: 600; color: #f0c85a; opacity: .85; }
.docno.tmp { color: #f6e3b0; }
.dc-new { font: inherit; font-size: 12px; font-weight: 800; margin-inline-start: 8px; border: 1px solid rgba(217,169,62,.5); background: rgba(217,169,62,.12); color: #f0c85a; border-radius: 99px; padding: 4px 10px; cursor: pointer; }
