/* Kisii Print Solutions - admin area.
   The Inno dashboard's layout (side menu, top bar, white cards, segmented controls)
   in the KPS colours taken from the logo and the old admin pages:
   cyan #22ACE2, magenta #EA098D, yellow #F4EC27, black. Poppins, like the website. */

:root {
  --blue: #22ACE2;
  --blue-dark: #1489B8;
  --blue-soft: #E6F6FC;
  --pink: #EA098D;
  --pink-dark: #C40775;
  --pink-soft: #FDE7F3;
  --yellow: #F4EC27;
  --yellow-soft: #FDFBD9;
  --ink: #111418;
  --text: #212529;
  --muted: #6C757D;
  --line: #DEE2E6;
  --line-strong: #CED4DA;
  --bg: #F4FAFD;
  --card: #FFFFFF;
  --up: #198754;
  --up-soft: #E3F4EA;
  --down: #DC3545;
  --down-soft: #FBE7E9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17, 20, 24, .04), 0 4px 16px rgba(17, 20, 24, .05);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side-w: 232px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.kps { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--font); }
h1, h2, h3, p { margin: 0; }
a { color: var(--pink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; width: var(--side-w); flex: none;
  display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line);
  padding: 16px 12px; overflow-y: auto; z-index: 40;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 8px 14px; text-decoration: none; }
.brand img { display: block; width: 148px; height: auto; }
.brand-tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); background: var(--pink-soft); border-radius: 999px; padding: 1px 10px; }
.nav { display: grid; gap: 2px; }
.nav a, .side-foot a {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.nav a:hover, .side-foot a:hover { background: var(--blue-soft); color: var(--ink); }
.nav a.on { background: var(--pink); color: #fff; }
.nav a.on .ico { color: #fff; }
.nav a .ico, .side-foot a .ico { color: var(--muted); }
.nav-sep { margin: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 24px; background: var(--blue); color: #fff;
}
.top h1 { font-size: 20px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 10px; }
.who { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--pink); color: #fff; text-decoration: none; font-weight: 500; max-width: 220px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who:hover { background: var(--yellow); color: var(--ink); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.top .btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.top .btn.light:hover { background: var(--yellow); border-color: var(--yellow); }

.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 24px 48px; display: grid; gap: 20px; align-content: start; }
.content.wide { max-width: 1480px; }

@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  .side.open { transform: none; }
  .side-scrim { position: fixed; inset: 0; background: rgba(17, 20, 24, .35); z-index: 35; }
  .menu-btn { display: inline-flex; }
  .top { padding: 10px 14px; }
  .top h1 { font-size: 17px; }
  .who span { display: none; }
  .who { padding: 0 10px; }
  .content { padding: 16px 12px 40px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* ---------------------------------------------------------------- flash */
.flash { padding: 11px 14px; border-radius: 8px; border: 1px solid; font-weight: 500; }
.flash.ok { background: var(--up-soft); border-color: #B7E1C6; color: #0F5132; }
.flash.info { background: var(--blue-soft); border-color: #B5E3F5; color: #0B4F6C; }
.flash.warn { background: var(--yellow-soft); border-color: #EDE38A; color: #5C5200; }
.flash.bad { background: var(--down-soft); border-color: #F1B8BE; color: #842029; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 16px; font-weight: 600; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 20px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; display: block; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue); }
.kpi.pink::before { background: var(--pink); }
.kpi.yellow::before { background: var(--yellow); }
.kpi.ink::before { background: var(--ink); }
.kpi.red::before { background: var(--down); }
.kpi .label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.kpi .value { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 3px; }
.kpi .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
a.kpi:hover { border-color: var(--pink); }
.delta.up { color: var(--up); font-weight: 600; }
.delta.down { color: var(--down); font-weight: 600; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid var(--pink); border-radius: 8px; background: var(--pink); color: #fff;
  font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn:focus-visible, .ghost:focus-visible, .nav a:focus-visible, input:focus-visible, select:focus-visible, .who:focus-visible { outline: 3px solid rgba(34, 172, 226, .45); outline-offset: 2px; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.sm, .ghost.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.danger { background: var(--down); border-color: var(--down); }
.btn.danger:hover { background: #B02A37; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text);
  font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ghost:hover { border-color: var(--pink); color: var(--pink); }
.ghost.danger:hover { border-color: var(--down); color: var(--down); background: var(--down-soft); }
.linkish { background: none; border: 0; padding: 0; color: var(--pink); font-weight: 500; cursor: pointer; text-decoration: none; }
.linkish:hover { text-decoration: underline; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.inline { display: inline; margin: 0; }

/* segmented control (Inno dashboard) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.seg a, .seg button { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; cursor: pointer; }
.seg a:hover, .seg button:hover { color: var(--text); }
.seg .on { background: var(--pink); color: #fff; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 500; }
.field .help { font-weight: 400; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea, .toolbar input, .toolbar select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  font: 400 14px var(--font); width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34, 172, 226, .2); outline: none; }
.field .err { color: var(--down); font-weight: 500; font-size: 12.5px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.toolbar .field { flex: 1 1 160px; }
.toolbar .field.grow { flex: 3 1 240px; }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; background: #F8FAFB; text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #EEF1F3; vertical-align: middle; }
.tbl tbody tr:hover td { background: #FAFCFD; }
.tbl tfoot td { font-weight: 700; background: #F8FAFB; border-bottom: 0; }
.tbl .cust { font-weight: 500; }
.tbl td.chk, .tbl th.chk { width: 36px; padding-right: 0; }
.tbl tr.unpaid td { background: #FFF7FB; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.cash { background: var(--up-soft); color: #0F5132; }
.badge.paybill { background: var(--blue-soft); color: #0B4F6C; }
.badge.unpaid { background: var(--pink-soft); color: #A10561; }
.badge.grey { background: #EEF1F3; color: var(--muted); }
.badge.on { background: var(--up-soft); color: #0F5132; }
.badge.off { background: var(--down-soft); color: #842029; }
.badge.admin { background: var(--ink); color: #fff; }

/* bulk bar */
.bulk { position: sticky; bottom: 12px; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.bulk select { height: 34px; border-radius: 6px; border: 0; padding: 0 8px; color: var(--text); }
.bulk .count { font-weight: 600; margin-right: auto; }

/* bars (dashboard) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; height: 100%; }
.bar .stack { width: 100%; max-width: 38px; display: flex; flex-direction: column-reverse; border-radius: 5px 5px 0 0; overflow: hidden; min-height: 2px; background: #EEF1F3; }
.bar .stack i { display: block; }
.bar .lbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bar.today .lbl { color: var(--pink); font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.c-cash { background: #198754; } .c-paybill { background: var(--blue); } .c-unpaid { background: var(--pink); }
.split { display: grid; gap: 10px; }
.split-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.split-row .track { height: 10px; border-radius: 999px; background: #EEF1F3; overflow: hidden; }
.split-row .track i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.split-row:nth-child(2) .track i { background: var(--pink); }
.split-row:nth-child(3) .track i { background: #C9B800; }
.split-row:nth-child(4) .track i { background: var(--ink); }

/* key reveal */
.secret { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px; border: 2px dashed var(--pink); border-radius: 10px; background: var(--pink-soft); }
.secret code { flex: 1 1 280px; font: 600 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; color: var(--ink); background: #fff; padding: 10px 12px; border-radius: 6px; border: 1px solid #F4B5D8; }
code.k { font: 500 12.5px ui-monospace, SFMono-Regular, Consolas, monospace; background: #F1F3F5; padding: 2px 6px; border-radius: 4px; }
.qr { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr img, .qr svg { display: block; width: 180px; height: 180px; }
.steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.log { margin: 0; padding: 12px; background: #0F1720; color: #CFE8F5; border-radius: 8px; font: 12px/1.6 ui-monospace, Consolas, monospace; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
details.more summary { cursor: pointer; color: var(--pink); font-weight: 500; }

/* ---------------------------------------------------------------- sign-in */
.auth-body { min-height: 100vh; background: linear-gradient(180deg, var(--blue) 0, var(--blue) 240px, var(--bg) 240px); }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(17, 20, 24, .14); overflow: hidden; }
.auth-head { display: flex; justify-content: center; align-items: center; padding: 22px; background: var(--ink); border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--blue) 0 33%, var(--pink) 33% 66%, var(--yellow) 66%) 1; }
.auth-head img { height: 44px; width: auto; }
.auth-body-in { padding: 26px 26px 28px; display: grid; gap: 16px; }
.auth-body-in h1 { font-size: 21px; font-weight: 600; }
.auth-sub { margin-top: -10px; font-size: 13.5px; }
.auth .btn { width: 100%; height: 44px; font-size: 15px; }
.auth-foot { margin-top: 16px; font-size: 13px; }
.auth-foot a { color: var(--muted); text-decoration: none; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: #F1F3F5; font-size: 12px; font-weight: 600; cursor: pointer; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 22px !important; font-weight: 600 !important; height: 52px !important; }
.meter { height: 6px; border-radius: 999px; background: #EEF1F3; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--down); transition: width .15s; }

/* ---------------------------------------------------------------- print (statements) */
.print-only { display: none !important; }
@media print {
  body.kps { background: #fff; font-size: 12px; }
  .side, .top, .no-print, .bulk, .flash, .side-scrim { display: none !important; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; }
  .print-only { display: block !important; }
  .print-only.statement-head { display: flex !important; }
  .tbl th { background: #EA098D !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tbl tr.unpaid td { background: none; }
  a { color: inherit; text-decoration: none; }
}
.statement-head { display: none; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 3px solid var(--pink); }
.statement-head img { width: 150px; height: auto; }
.statement-head h2 { font-size: 18px; }

/* day picker (dashboard) */
.daybar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.daybar-form { display: flex; gap: 8px; align-items: center; }
.daybar-form input { height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; font: 400 14px var(--font); background: #fff; }
.daybar-note { margin-left: auto; }

/* Wide tables with a form beside them: the form drops below on laptop screens. */
@media (max-width: 1480px) { .grid3.stack-lg { grid-template-columns: 1fr; } .grid3.stack-lg > .card:last-child .card-body > .form { max-width: 560px; } }

/* Add / Edit work pop-up */
dialog.wd { width: min(900px, 96vw); height: min(780px, 92vh); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(17, 20, 24, .3); overflow: hidden; }
dialog.wd[open] { display: flex; flex-direction: column; }
dialog.wd::backdrop { background: rgba(17, 20, 24, .45); }
.wd-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; background: var(--blue); color: #fff; }
.wd-head h2 { font-size: 17px; font-weight: 600; margin-right: auto; }
.wd-head .ghost { background: rgba(255, 255, 255, .15); border-color: transparent; color: #fff; }
.wd-head .ghost:hover { background: #fff; color: var(--ink); }
.wd-note { font-size: 13px; font-weight: 600; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 3px 12px; }
.wd-note:empty { display: none; }
.wd-x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--pink); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.wd-x:hover { background: var(--yellow); color: var(--ink); }
.wd iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
body.in-popup { padding: 18px 20px 28px; background: #fff; }
@media (max-width: 600px) { dialog.wd { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; } body.in-popup { padding: 12px; } }

/* ---------------------------------------------------------------- Overview (Inno dashboard layout) */
.ov-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ov-label { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; margin: 0; }
.stepper .step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 18px; }
.stepper .step:hover { background: var(--blue-soft); }
.stepper .step.off { color: #CED4DA; }
.stepper input { height: 30px; border: 0; font: 600 13px var(--font); padding: 0 6px; background: transparent; }
.kpis.k8 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1400px) { .kpis.k8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.k8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis.k8 .kpi { padding: 12px 12px 12px 16px; }
.kpis.k8 .value { font-size: 21px; }
.value-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ring { width: 38px; height: 38px; flex: none; }
.bad-text { color: #C40775; }
.good-text { color: var(--up); }
.accent { color: var(--pink) !important; font-weight: 600; }
.delta.flat { color: var(--muted); font-weight: 500; }
.ov-grid { display: grid; gap: 20px; grid-auto-flow: row dense; }
.ov-grid.g3 { grid-template-columns: 1fr 1fr 1.25fr; }
.ov-grid.g3b { grid-template-columns: 1.25fr 1.25fr .85fr; }
.ov-grid > *, .grid2 > *, .grid3 > *, .kpis > *, .stock-grid > * { min-width: 0; }
@media (max-width: 1250px) { .ov-grid.g3, .ov-grid.g3b { grid-template-columns: 1fr 1fr; } .ov-grid.g3 > :last-child, .ov-grid.g3b > :nth-child(2) { grid-column: 1 / -1; } }
@media (max-width: 800px) { .ov-grid.g3, .ov-grid.g3b { grid-template-columns: 1fr; } }
.card-head h2.cap { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mini-select { height: 30px; border: 1px solid var(--pink); color: var(--pink); border-radius: 6px; padding: 0 8px; font: 600 12.5px var(--font); background: #fff; }
.hbars { display: grid; gap: 12px; align-content: start; }
.hbar { display: grid; grid-template-columns: minmax(70px, 1fr) 1.2fr auto 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 12px; border-radius: 4px; background: #EEF1F3; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--pink), #F47DBF); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar .small { text-align: right; }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.donut { width: 190px; height: 190px; flex: none; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend-list li { display: flex; gap: 8px; align-items: flex-start; }
.legend-list i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.legend-list li > span { display: grid; }
.legend-list small { color: var(--muted); font-size: 12px; }
.tbl.compact td, .tbl.compact th { padding: 8px 8px; }
.tbl.compact .cust a { color: inherit; text-decoration: none; font-weight: 600; }
.tbl.compact .cust a:hover { color: var(--pink); }
.up-case { text-transform: uppercase; font-weight: 600; font-size: 12.5px; }
.spark { width: 60px; height: 20px; display: block; }
svg.lines { width: 100%; height: auto; display: block; }
.owe-total { display: grid; gap: 2px; margin-bottom: 14px; }
.owe-total b { font-size: 22px; }
.owe-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-top: 1px solid #EEF1F3; color: inherit; text-decoration: none; font-size: 13.5px; }
.owe-row:hover span:first-child { color: var(--pink); }
.owe-row .track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: #EEF1F3; overflow: hidden; }
.owe-row .track i { display: block; height: 100%; background: var(--pink); border-radius: 999px; }
.insights { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; }
.insights .ins { display: grid; gap: 3px; padding: 16px 18px; border-left: 1px solid var(--line); align-content: start; }
.insights .ins:first-child { border-left: 0; }
.ins-k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.insights b { font-size: 19px; }
.insights b a { color: inherit; text-decoration: none; }
@media (max-width: 1100px) { .insights { grid-template-columns: repeat(2, 1fr); } .insights .ins { border-left: 0; border-top: 1px solid var(--line); } }
.foot { text-align: left; }
@media print { .ov-controls { display: none; } .ov-grid, .kpis { break-inside: avoid; } }
.ghost.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.value-row { justify-content: flex-start; align-items: center; margin-top: 4px; }
.value-row .hint { margin: 0; line-height: 1.35; }
.legend-list { min-width: 150px; }
.legend-list small { white-space: nowrap; }
.ov-grid .tbl.compact { font-size: 12.5px; }
.ov-grid .tbl.compact th { font-size: 11px; letter-spacing: .03em; }

/* Works tables, the Inno dashboard way: payment as coloured text, small Edit / Delete chips. */
.works-tbl th { background: #F1F4F6; }
.works-tbl .unit { color: var(--muted); font-size: 11.5px; }
.works-tbl .pay { font-weight: 600; }
.works-tbl .pay-unpaid { color: #C40775; }
.works-tbl .pay-mpesa { color: var(--blue-dark); }
.works-tbl .pay-cash { color: var(--text); font-weight: 500; }
.works-tbl tr.unpaid td { background: transparent; }
.works-tbl .cust a { color: inherit; text-decoration: none; }
.works-tbl .cust a:hover { color: var(--pink); text-decoration: underline; }
.row-actions.start { justify-content: flex-start; }
.act { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 5px; font: 600 12px var(--font); text-decoration: none; cursor: pointer; border: 1px solid; }
.act.edit { background: var(--up-soft); border-color: #B7E1C6; color: #0F5132; }
.act.edit:hover { background: #0F5132; color: #fff; }
.act.del { background: var(--down-soft); border-color: #F1B8BE; color: #842029; }
.act.del:hover { background: #842029; color: #fff; }
.day-card .card-head h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 700; }
.page-head .sub { color: var(--muted); font-style: italic; }
.page-head .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-head .tools input { height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; font: 500 14px var(--font); background: #fff; }

/* Customers + customer statement (Inno dashboard layout) */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; background: #fff; }
.chip:hover { border-color: var(--pink); color: var(--pink); }
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.cust-tbl .cust b { font-weight: 600; }
details.dups > summary { list-style: none; cursor: pointer; border-bottom: 0; }
details.dups > summary::-webkit-details-marker { display: none; }
details.dups[open] > summary { border-bottom: 1px solid var(--line); }
.cust-head { display: grid; gap: 2px; }
.cust-head .eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cust-head .eyebrow::after { content: ""; display: block; width: 26px; height: 3px; background: var(--pink); border-radius: 2px; margin-top: 5px; }
.cust-head h2 { font-size: 24px; font-weight: 700; }
.mini-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mini-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mini-kpis > div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mini-kpis.three > div { border: 0; padding: 0 6px; }
.mini-kpis span { font-size: 12px; color: var(--muted); }
.mini-kpis b { font-size: 17px; }
.mini-kpis b.big { font-size: 22px; }
@media (max-width: 700px) { .mini-kpis { grid-template-columns: repeat(2, 1fr); } .mini-kpis.three { grid-template-columns: 1fr; } }
.panel { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; gap: 12px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.statement { border-color: #F4B5D8; background: #FFF8FC; }
.csec { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.csec small { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 6px; }
.st-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.st-form .field { flex: 1 1 150px; }
.st-form .seg button { height: 32px; }
.st-sum { font-size: 13.5px; }
.ghost.wa { border-color: #25D366; color: #128C4A; }
.ghost.wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.deduct { display: grid; grid-template-columns: 1fr 160px auto; gap: 10px; align-items: end; }
.deduct .cpreview { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.deduct .cpreview.ok { color: #0F5132; }
.deduct .cpreview.warn { color: #5C5200; }
.deduct .cpreview.bad { color: #842029; }
@media (max-width: 600px) { .deduct { grid-template-columns: 1fr; } }
body.cust-pop { display: grid; gap: 14px; align-content: start; }
.cust-page { display: grid; gap: 16px; }
@media print { body.cust-pop .mini-kpis, body.cust-pop .statement, body.cust-pop .cust-head { display: none; } }

/* Always the light KPS look, even when the phone or computer is in dark mode: without this,
   pop-ups switch to white text while the boxes stay white, so typed text disappears. */
:root { color-scheme: light; }
dialog, .wd, input, select, textarea, option { color: var(--text); }
/* Pop-ups stay white with dark text even when the browser or the page around them is dark. */
dialog { background: #fff; color: var(--text); color-scheme: light; }
dialog input, dialog select, dialog textarea { background: #fff; }
input, select, textarea { background-color: #fff; }
input::placeholder, textarea::placeholder { color: #8A929A; opacity: 1; }
input:disabled, select:disabled { color: var(--muted); background-color: #F1F3F5; }
.deduct input, .deduct select { height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: 500 15px var(--font); }
.deduct input:focus, .deduct select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34, 172, 226, .2); outline: none; }
.deduct .cpreview.bad { color: #A10561; font-weight: 500; }
.deduct .cpreview.ok { color: #0F5132; font-weight: 500; }
.deduct .cpreview.warn { color: #6B5E00; font-weight: 500; }

/* Stock (Inno dashboard layout) */
.stock-kpis { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.stock-kpis .kpi { padding: 12px 12px 12px 16px; }
.stock-kpis .value { font-size: 21px; }
.stock-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .stock-grid { grid-template-columns: 1fr; } }
.stock-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 520px) { .stock-tables { grid-template-columns: 1fr; } }
.stock-side { display: grid; gap: 20px; position: sticky; top: 84px; }
.sline { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #EEF1F3; }
.sline:first-child { border-top: 0; }
.sname { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; }
.sname i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex: none; }
.sline .chips { gap: 6px; }
.schip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: #F8FAFB; font: 500 12.5px var(--font); color: var(--muted); cursor: pointer; }
.schip b { color: var(--ink); font-weight: 700; }
.schip em { font-style: normal; font-size: 11px; color: var(--muted); }
.schip:hover { border-color: var(--pink); }
.schip.low { background: var(--yellow-soft); border-color: #EDE38A; } .schip.low b { color: #6B5E00; }
.schip.out { background: var(--pink-soft); border-color: #F4B5D8; } .schip.out b { color: #A10561; }
.schip.unknown { border-style: dashed; }
.schip.na { cursor: default; opacity: .6; }
.warn-text { color: #6B5E00; }
.low-row { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 8px 0; border: 0; border-top: 1px solid #EEF1F3; background: none; font: 500 13.5px var(--font); text-align: left; cursor: pointer; color: var(--text); }
.low-row:first-of-type { border-top: 0; }
.low-row:hover span { color: var(--pink); }
.moves { max-height: 560px; overflow: auto; }
.badge.k-add { background: var(--up-soft); color: #0F5132; }
.badge.k-use { background: var(--blue-soft); color: #0B4F6C; }
.badge.k-return { background: #E7F1FF; color: #0A3E7A; }
.badge.k-waste { background: var(--pink-soft); color: #A10561; }
.badge.k-count { background: var(--yellow-soft); color: #5C5200; }
dialog.sdlg { width: min(480px, 94vw); max-height: 92vh; border: 0; border-radius: 14px; padding: 0; box-shadow: 0 24px 70px rgba(17, 20, 24, .3); overflow-x: hidden; overflow-y: auto; box-sizing: border-box; }
dialog.sdlg * { box-sizing: border-box; min-width: 0; }
dialog.sdlg::backdrop { background: rgba(17, 20, 24, .45); }
dialog.sdlg form { padding: 0 20px 20px; }
.sd-head { display: flex; align-items: center; justify-content: space-between; margin: 0 -20px 4px; padding: 12px 14px 12px 20px; background: var(--blue); color: #fff; }
.sd-head h2 { font-size: 17px; }
#sdKind label { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
#sdKind label, .pay-seg label { position: relative; }
#sdKind input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
#sdKind label:has(input:checked) { background: var(--pink); color: #fff; }
#sdKind label:has(input:focus-visible) { outline: 3px solid rgba(34, 172, 226, .45); }
.seg#sdKind { justify-self: start; }
@media print { .stock-side { position: static; } .schip { border: 1px solid #ccc; } }

/* Settings: material costs */
.cost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 18px 24px; }
@media (max-width: 560px) { .cost-grid { grid-template-columns: 1fr; } }
.cost-table { display: grid; gap: 8px; align-content: start; }
.cost-table th { width: 120px; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); background: none; position: static; }
.cost-cells { display: flex; gap: 8px; flex-wrap: wrap; }
.cost-cell { display: grid; gap: 2px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cost-cell input { width: 92px; height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; font: 500 14px var(--font); }
.cost-cell input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(34, 172, 226, .2); }
.cost-cell input::placeholder { color: #B0B7BE; }
#usage .kpis { margin: 0; }

/* Expenses */
.pay-seg { justify-self: start; }
.pay-seg label { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.pay-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pay-seg label:has(input:checked) { background: var(--pink); color: #fff; }
.pay-seg label:has(input:focus-visible) { outline: 3px solid rgba(34, 172, 226, .45); }
.works-tbl tr.is-exp td { background: #FFFBEA; }
.works-tbl tr.will-pay td { background: #eaf7f0; }
.works-tbl .part-tag { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: #e6f6ee; color: #137a45; font-size: 11.5px; font-weight: 700; }
.works-tbl .part-note { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.works-tbl .wexp { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 11.5px; font-weight: 700; }
.expense-form .chips .chip { cursor: pointer; }

/* Duplicates & merge */
.merge-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; display: grid; gap: 10px; }
.merge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.merge-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; min-width: 0; }
.merge-item.row { justify-content: space-between; cursor: default; }
.merge-item span { display: grid; min-width: 0; }
.merge-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-item small { color: var(--muted); font-size: 12px; }
.merge-item .owes { color: var(--pink); font-weight: 700; white-space: nowrap; }
.merge-item a { color: inherit; text-decoration: none; }

/* No sideways scrolling anywhere */
.main { overflow-x: clip; } /* clip, not hidden: keeps the sidebar sticky */
dialog.wd, dialog.wd iframe { overflow-x: hidden; }

/* Small screens: every table becomes a stack of cards (labels come from the column headings). */
@media (max-width: 760px) {
  .tbl-wrap { overflow-x: visible; }
  .tbl, .tbl tbody, .tbl tfoot, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; padding: 8px 12px; background: #fff; box-shadow: 0 1px 2px rgba(17, 20, 24, .04); }
  .card-body.flush .tbl tr, .panel.flush .tbl tr { margin: 10px; width: auto; }
  .tbl td { display: flex; justify-content: flex-end; align-items: baseline; gap: 4px; padding: 5px 0; border: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
  .tbl td::before { content: attr(data-label); flex: 0 0 auto; margin-right: auto; padding-right: 12px; align-self: center; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; text-align: left; }
  .tbl td:not([data-label])::before, .tbl td[data-label=""]::before { display: none; }
  .tbl td:not([data-label]), .tbl td[data-label=""] { justify-content: flex-start; text-align: left; }
  .tbl tr { position: relative; }
  .tbl td.chk { position: absolute; top: 8px; right: 12px; width: auto; padding: 0; }
  .tbl td.chk + td { padding-right: 34px; }
  .works-tbl td.rn { display: none; }
  .works-tbl td.rn + td { padding-right: 34px; }
  .tbl td.num { text-align: right; }
  .tbl tbody tr:hover td, .tbl tr.unpaid td, .works-tbl tr.will-pay td { background: transparent; }
  .tbl tr.unpaid { border-left: 4px solid var(--pink); }
  .works-tbl tr.will-pay { background: #eaf7f0; }
  .tbl tfoot tr { background: #F8FAFB; }
  .tbl tfoot td { background: transparent; }
  .tbl .row-actions { justify-content: flex-end; flex-wrap: wrap; }
  .merge-list { grid-template-columns: 1fr; }
}

/* The same cards for any table too wide for its box (set by kps-admin.js), so nothing scrolls sideways */
.tbl.as-cards, .tbl.as-cards tbody, .tbl.as-cards tfoot, .tbl.as-cards tr, .tbl.as-cards td { display: block; width: 100%; }
.tbl.as-cards thead { display: none; }
.tbl.as-cards tr { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; padding: 8px 12px; background: #fff; box-shadow: 0 1px 2px rgba(17, 20, 24, .04); }
.card-body.flush .tbl.as-cards tr, .panel.flush .tbl.as-cards tr { margin: 10px; width: auto; }
.tbl.as-cards td { display: flex; justify-content: flex-end; align-items: baseline; gap: 4px; padding: 5px 0; border: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.tbl.as-cards td::before { content: attr(data-label); flex: 0 0 auto; margin-right: auto; padding-right: 12px; align-self: center; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; text-align: left; }
.tbl.as-cards td:not([data-label])::before, .tbl.as-cards td[data-label=""]::before { display: none; }
.tbl.as-cards td:not([data-label]), .tbl.as-cards td[data-label=""] { justify-content: flex-start; text-align: left; }
.tbl.as-cards tr { position: relative; }
.tbl.as-cards td.chk { position: absolute; top: 8px; right: 12px; width: auto; padding: 0; }
.tbl.as-cards td.chk + td { padding-right: 34px; }
.works-tbl.as-cards td.rn { display: none; }
.works-tbl.as-cards td.rn + td { padding-right: 34px; }
.tbl.as-cards td.num { text-align: right; }
.tbl.as-cards tbody tr:hover td, .tbl.as-cards tr.unpaid td, .works-tbl.as-cards tr.will-pay td { background: transparent; }
.tbl.as-cards tr.unpaid { border-left: 4px solid var(--pink); }
.works-tbl.as-cards tr.will-pay { background: #eaf7f0; }
.tbl.as-cards tfoot tr { background: #F8FAFB; }
.tbl.as-cards tfoot td { background: transparent; }
.tbl.as-cards .row-actions { justify-content: flex-end; flex-wrap: wrap; }

/* Compact cards for small summary tables: the first column is the title, the numbers sit side by side. */
.tbl.compact.as-cards tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 2px 8px; padding: 8px 10px; margin: 6px 0; }
.card-body.flush .tbl.compact.as-cards tr { margin: 6px 10px; }
.tbl.compact.as-cards td { display: grid; justify-items: start; justify-content: start; text-align: left; padding: 2px 0; gap: 0; }
.tbl.compact.as-cards td::before { margin: 0; padding: 0; font-size: 10px; }
.tbl.compact.as-cards td:first-child { grid-column: 1 / -1; font-weight: 700; padding-bottom: 4px; border-bottom: 1px solid #EEF1F3; margin-bottom: 2px; }
.tbl.compact.as-cards td:first-child::before { display: none; }
@media (max-width: 760px) {
  .tbl.compact tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 2px 8px; padding: 8px 10px; margin: 6px 0; }
  .tbl.compact td { display: grid; justify-items: start; justify-content: start; text-align: left; padding: 2px 0; gap: 0; }
  .tbl.compact td::before { margin: 0; padding: 0; font-size: 10px; }
  .tbl.compact td:first-child { grid-column: 1 / -1; font-weight: 700; padding-bottom: 4px; border-bottom: 1px solid #EEF1F3; margin-bottom: 2px; }
  .tbl.compact td:first-child::before { display: none; }
}

/* Scrollbars in the KPS colours: slim pink thumb on a light track */
html, .side, dialog, .tbl-wrap, .moves, .card-body, #pvBody { scrollbar-width: thin; scrollbar-color: var(--pink) #F1F3F5; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F1F3F5; }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 999px; border: 2px solid #F1F3F5; }
::-webkit-scrollbar-thumb:hover { background: #C4077A; }
::-webkit-scrollbar-corner { background: #F1F3F5; }
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: #F7B7DA; border: 0; }
.side::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* Merging many groups */
.merge-bulk { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px rgba(17, 20, 24, .06); }
.grp-pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; cursor: pointer; }
.merge-progress { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; }
.merge-progress .bar { flex: 1; height: 8px; background: #F1F3F5; border-radius: 999px; overflow: hidden; }
.merge-progress .bar i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .25s ease; }
.merge-progress span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.merge-box.busy { opacity: .55; pointer-events: none; }
.merge-box.failed { border-color: var(--pink); background: #FFF5FA; }
.merge-box.merged { background: #eaf7f0; border-color: #B7E1C6; }
.merge-done { margin: 0; color: #0F5132; }
.merge-note { margin: 0; color: var(--pink); font-weight: 600; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .merge-progress .bar i { transition: none; } }
