/* CablePro / NetPro - the two edition themes and the trade styles on top of the shared iPOS app.css.
 * CablePro: dark indigo with a warm yellow accent. NetPro: deep navy with a bright cyan accent.
 * html gets .ed-cable / .ed-isp from js/edition.js before anything renders. */
:root, html.ed-cable { --brand: #4c3a9e; --brand-2: #241b4d; --brand-soft: #efecfb; --gold: #fbbf24; --accent: #fbbf24; --accent-2: #d97706; --edbar: #1b1440; }
html.ed-isp { --brand: #0e7490; --brand-2: #0b2545; --brand-soft: #e3f4fa; --gold: #22d3ee; --accent: #22d3ee; --accent-2: #0891b2; --edbar: #0b2545; }
.sidenav { background: var(--edbar); }
.shopbar { background: var(--edbar); }
b.dr, .dr { color: #b45309; }
b.cr, .cr { color: #0e7490; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.neg { color: var(--bad); }
.calc { background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; }
.calc .kv { grid-template-columns: 1fr auto; gap: 4px 16px; }
.calc .kv div:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.calc .big { font-size: 20px; font-weight: 800; color: var(--brand-2); }
.lines td { padding: 4px; vertical-align: middle; }
.lines input, .lines select { min-height: 36px; padding: 4px 6px; }
.lines .w-s { width: 90px; } .lines .w-m { width: 130px; }
.a4 .gp-box { border: 2px solid #000; padding: 10px; margin-top: 14px; }
.a4 .tot2 { width: 50%; margin-left: auto; }
[dir=rtl] .a4 .tot2 { margin-left: 0; margin-right: auto; }

.small { font-size: 13px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
label.f.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--brand-soft); }
tr.tot td { border-top: 2px solid var(--line); }
.banner.info { background: var(--brand-soft); color: var(--brand); }
.nbadge { margin-left: auto; background: #f2b705; color: #16202e; border-radius: 99px; font-size: 11.5px; padding: 1px 7px; }
.bottomnav .nbadge { position: absolute; margin: 0 0 0 18px; }
.req-alert { border-left: 4px solid #f2b705; }
.req-card { border-left: 4px solid #f2b705; }
.bk-head .card { margin-bottom: 0; }
.bk-head { margin-bottom: 16px; }

/* ac-list used inline (guest finder), and as buttons */
#gFound.ac-list { position: static; box-shadow: none; margin-bottom: 10px; }
.ac-list:empty { display: none; }
button.ac-row { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; justify-content: flex-start; }
#gsr button.ac-row { border-bottom: 1px solid var(--line); border-radius: 0; }


.btn.wa { background: #1fa855; color: #fff; border-color: #1fa855; }
/* settings */
.room-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 6px 10px; cursor: pointer; font: inherit; }
.chip.off { opacity: .5; text-decoration: line-through; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin: 0; }
.more-item svg { width: 28px; height: 28px; color: var(--brand); }

/* ---------- print ---------- */
.a4-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
.a4-head img { width: 60px; height: 60px; object-fit: contain; }
.a4-head h1 { font-size: 20px; margin: 0; }
.a4-head > div { flex: 1; }
.a4-head h2 { text-align: right; font-size: 16px; margin: 0; }
.a4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; line-height: 1.5; }
.a4 table.reg th { text-align: left; background: #f3f3f3; text-transform: none; font-size: 12.5px; color: #000; }
.a4 table.folio td, .a4 table.folio th { border: 1px solid #999; }
.a4.land { max-width: none; }
.a4 table.reg-list td, .a4 table.reg-list th { font-size: 10.5px; padding: 3px 4px; text-transform: none; color: #000; }
@media print {
  .a4.land { width: 277mm; }
  .a4 .tablewrap { overflow: visible; }
}

@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar h1 { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-chip { display: none !important; }
  #topActions { flex-basis: 100%; order: 5; }
  #topActions:empty { display: none; }
  .a4-grid { grid-template-columns: 1fr; }
  .bk-head { grid-template-columns: 1fr; }
}

/* Urdu (right to left) prints */
.a4.ur { font-size: 14px; line-height: 1.9; }
[dir=rtl] .right, [dir=rtl] th.right, [dir=rtl] td.right { text-align: left; }
[dir=rtl] th, [dir=rtl] td { text-align: right; }
[dir=rtl] .a4-head h2 { text-align: left; }
.rcpt.ur .lr span:last-child { direction: ltr; unicode-bidi: embed; }

.a5 { max-width: 132mm; font-size: 12.5px; }
.a5 .a4-head img { width: 44px; height: 44px; }
.a5 .a4-head h1 { font-size: 17px; }
.sig2 { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; align-items: flex-end; }
.sig2 div:last-child { border-top: 1px solid #000; padding-top: 4px; min-width: 150px; text-align: center; }
.cutline { margin: 22px 0; color: #555; white-space: nowrap; overflow: hidden; }
.job h3 { margin-top: 0; }
/* ---------- 26.10.6 additions ---------- */
.nbadge.rq { background: #ef4444; color: #fff; }
.branch-sel { width: auto; min-height: 34px; padding: 4px 8px; }
/* main + side panel (bill / summary); one column on phones, summary under the form */
.split { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .calc { position: static !important; }
}

/* ---- CablePro / NetPro: items, areas, connections ---- */
.catdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.bchip { display: inline-block; padding: 1px 8px; margin: 1px 2px 1px 0; border-radius: 99px; font-size: 12px; background: #e3f4fa; color: #0c4a6e; border: 1px solid #ade0f0; white-space: nowrap; }
.bchip.warn { background: var(--warn-soft); color: var(--warn); border-color: #f3d29b; }
.bchip.bad { background: var(--bad-soft); color: var(--bad); border-color: #f0b6b1; }
.bchip.ok { background: var(--ok-soft); color: var(--ok); border-color: #b9e0cd; }
.warnc { color: var(--warn); font-weight: 600; }
.bar:has(> i) { display: block; width: 100%; height: 9px; background: #dcebf2; border-radius: 5px; overflow: hidden; margin: 6px 0 3px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.alertrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.alertrow:last-child { border-bottom: 0; }
.alertrow:hover { background: var(--brand-soft); }
.alertrow i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.alertrow.bad i { background: var(--bad); } .alertrow.warn i { background: #f59e0b; } .alertrow.ok i { background: var(--ok); }
.hv-row { display: grid; grid-template-columns: 80px 1fr 170px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.hv-m { font-weight: 700; }
.hv-bar { background: #dcebf2; border-radius: 6px; height: 14px; overflow: hidden; }
.hv-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hv-v { text-align: right; font-variant-numeric: tabular-nums; }
.lines .w-l { width: 290px; }
.stat.bad { border-left: 4px solid var(--bad); } .stat.warn { border-left: 4px solid #f59e0b; } .stat.ok { border-left: 4px solid var(--ok); }
@media print { .bchip { border: 0; background: none; padding: 0; } }

/* Smart tools hub */
.smartgrid { gap: 12px; }
.smartcard { display: flex; align-items: flex-start; gap: 14px; text-decoration: none; color: inherit; padding: 16px; }
.smartcard > svg { width: 30px; height: 30px; flex: none; color: var(--brand); margin-top: 2px; }
.smartcard > span { display: flex; flex-direction: column; gap: 2px; }
.smartcard b { font-size: 16px; }
.smartcard:hover { border-color: var(--brand); }

/* ---- returns form, party photo, labels ---- */
.fk-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; padding: 8px; border: 1px solid var(--line, #dde3ea); border-radius: 10px; background: #fafcfd; }
.fk-line .fk-item { flex: 1 1 260px; min-width: 0; }
.fk-line .fk-b { flex: 0 1 170px; min-width: 0; }
.fk-line .fk-q, .fk-line .fk-r { flex: 0 0 84px; width: 84px; }
.pt-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; float: right; margin: 0 0 8px 10px; border: 1px solid var(--line, #dde3ea); }
textarea[name=slabs] { width: 100%; font-family: inherit; }
.warnc { color: #b26a00; }

/* ---- v26.10.20.9: touch item tiles, camera scan and voice on the sale screens ---- */
.pk { margin: 0 0 10px; }
.pk[hidden] { display: none; }
.pk-cats { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin-bottom: 8px; }
.pk-cats button { flex: none; white-space: nowrap; }
.pk-grid { max-height: 250px; overflow-y: auto; padding: 2px; }
.pk .prod { position: relative; touch-action: manipulation; }
.pk-n { position: absolute; top: 6px; right: 6px; background: var(--brand); color: #fff; border-radius: 99px; font-size: 12px; font-weight: 700; font-style: normal; padding: 1px 8px; }
.pk .prodgrid.big .prod .pk-n { top: 8px; right: 8px; }
.pos-find { min-width: 0; }

/* ---- phone collection screen (one-hand door cards) ---- */
.mp-drop { background: var(--card, #fff); border: 1px solid var(--line, #dde3ea); border-radius: 16px; margin: 10px 12px; padding: 10px 12px; }
.mp-drop.done { border-color: var(--accent); background: var(--brand-soft); }
.mp-drop-t { display: flex; align-items: flex-start; gap: 10px; }
.mp-drop-t .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mp-drop-t .t b { font-size: 16px; }
.mp-drop-t .t small { color: var(--muted, #637083); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.mp-seqno { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft, #e3f4fa); color: var(--brand-2, #0c4a6e); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-top: 2px; }
.mp-drop-r { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; }
.mp-cnt { display: flex; flex-direction: column; gap: 2px; }
.mp-cnt small { font-size: 11.5px; color: var(--muted, #637083); }
.mp-step.big { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line, #dde3ea); border-radius: 12px; overflow: hidden; }
.mp-step.big button { width: 46px; height: 46px; border: 0; background: #f2f7fa; font-size: 24px; font-weight: 700; color: var(--brand-2, #0c4a6e); touch-action: manipulation; }
.mp-step.big b { min-width: 34px; text-align: center; font-size: 17px; }
.mp-rs { flex: 1; min-width: 0; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed var(--accent-2, #0891b2); background: #fff; border-radius: 12px; font: inherit; color: var(--brand-2, #0c4a6e); touch-action: manipulation; }
.mp-rs.on { border-style: solid; background: #e3f4fa; }
.mp-rs small { font-size: 11px; color: var(--muted, #637083); }
.mp-rs b { font-size: 15px; }
.mp-card2 { background: var(--card, #fff); border: 1px solid var(--line, #dde3ea); border-radius: 14px; margin: 10px 12px; padding: 12px; }
.mp-card2 .r { display: flex; gap: 8px; margin-top: 8px; }
.mp-ico { color: var(--brand); display: inline-flex; }
.mp-ico svg { width: 24px; height: 24px; }

/* service area module rows */
.rowx { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.feat-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
