/* Tune Tech Business Platform — design system v8 */
:root {
  --accent: #0F6B4F; --accent-ink: #ffffff; --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --bg: #f3f5f7; --card: #ffffff; --ink: #14202b; --mut: #667585; --line: #e3e8ee; --line-strong: #c9d2dc;
  --ok: #178a5b; --ok-soft: #e4f6ec; --warn: #b7791f; --warn-soft: #fff4de; --bad: #c0392b; --bad-soft: #fdeceb;
  --info: #2f6bff; --info-soft: #e8efff;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(20,32,43,.05), 0 6px 20px -8px rgba(20,32,43,.12);
  --font: "Inter", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 236px; --topbar: 58px; --bottombar: 62px;
}
[data-theme="dark"] {
  --bg: #0f1418; --card: #171d23; --ink: #e8edf2; --mut: #8b9aab; --line: #262f38; --line-strong: #364252;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, #171d23);
  --ok-soft: #133426; --warn-soft: #3a2d10; --bad-soft: #3d1a17; --info-soft: #172544;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -10px rgba(0,0,0,.6);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 10px; }
.mut { color: var(--mut); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 600; } .r { text-align: right; } .c { text-align: center; }
.nowrap { white-space: nowrap; } .mono { font-variant-numeric: tabular-nums; }
.pos-neg.neg { color: var(--bad); } .pos-neg.pos { color: var(--ok); } .pos-neg.warn { color: var(--warn); }
.hide { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); padding: 14px 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 20px; }
.brand .name { font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand .sub { font-size: 12px; color: var(--mut); }
.navg { margin-top: 10px; }
.navg .gl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); padding: 8px 10px 4px; }
.navi { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.navi:hover { background: var(--bg); text-decoration: none; }
.navi.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.navi .ic { width: 22px; text-align: center; font-size: 16px; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.topbar .title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .icbtn { position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.topbar .icbtn:hover { background: var(--bg); border-color: var(--line); }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.content { padding: 18px 16px 90px; max-width: 1240px; }
.bottombar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 14px 12px calc(var(--bottombar) + 24px); }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottombar); background: var(--card); border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--mut); background: none; border: 0; font-family: inherit; min-width: 0; padding: 0 2px; }
  /* a long name must never make the bar two rows tall */
  .bottombar .lb { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottombar .ic { font-size: 20px; }
  .bottombar .active { color: var(--accent); font-weight: 600; }
}
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 18px 18px 0 0; z-index: 51; max-height: 82vh; overflow-y: auto; padding: 10px 14px 24px; transform: translateY(100%); transition: transform .22s ease; }
.sheet.open { transform: none; } .sheet-bg.open { display: block; }
.sheet .handle { width: 60px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto; }
.sheet .handle-hit { display: block; width: 100%; padding: 8px 0 12px; background: none; border: 0; cursor: pointer; }
.sheet .navi { padding: 12px 10px; font-size: 15px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; margin-bottom: 8px; }
.sheet .sheet-head .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sheet-close { flex: 0 0 auto; background: none; border: 1px solid var(--line); border-radius: 9px; width: 34px; height: 34px; font-size: 16px; line-height: 1; color: var(--mut); cursor: pointer; font-family: inherit; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; }
body.sheet-lock { overflow: hidden; }

/* ---------- cards / grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.flat { box-shadow: none; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.tint { background: var(--accent-soft); border-color: transparent; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1; min-width: 140px; }
.row > .auto { flex: 0 0 auto; min-width: 0; }
/* On a phone two fields side by side leave ~154px each: wide enough for a box, far
   too narrow to READ a line like "Maternity · Bed N1 — 1,200.00" in a dropdown.
   One field per line below this width. Buttons (.auto) stay where they are. */
@media (max-width: 480px) { .row > *:not(.auto) { flex: 1 1 100%; min-width: 100%; } }
.stack { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.kpi:hover { text-decoration: none; border-color: var(--line-strong); }
.kpi .l { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; }
.kpi .v { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--mut); margin-top: 2px; }
.kpi.warn .v { color: var(--warn); } .kpi.bad .v { color: var(--bad); } .kpi.ok .v { color: var(--ok); } .kpi.accent .v { color: var(--accent); }

/* ---------- buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--mut); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 20px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--mut); margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); transform: scale(1.15); margin-right: 6px; }
textarea { min-height: 84px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; cursor: pointer; padding: 6px 0; }
.check input { margin: 0; }
.field { margin-bottom: 12px; }
.help { font-size: 12px; color: var(--mut); margin-top: 4px; }
.inline-form { display: inline; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click:hover td { background: var(--bg); cursor: pointer; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td input, .tbl td select { padding: 7px 9px; font-size: 14px; }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* price list on a computer: the service column takes the room, boxes stay tidy */
.tbl.priced td.svc { min-width: 230px; }
.tbl.priced td input[type=number] { width: 104px; }
.tbl.priced td input:not([type=number]) { width: 100%; min-width: 150px; }
@media (max-width: 700px) {
  .tbl.cards thead { display: none; }
  .tbl.cards tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; padding: 6px 10px; background: var(--card); }
  .tbl.cards td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 5px 0; text-align: right; }
  .tbl.cards td::before { content: attr(data-l); color: var(--mut); font-size: 12px; text-align: left; flex: 0 0 40%; }
  .tbl.cards td.full { display: block; text-align: left; } .tbl.cards td.full::before { display: none; }
  /* a price list on a phone: label left, a full-width box right */
  .tbl.cards.priced td { align-items: center; }
  .tbl.cards.priced td input { width: 100%; max-width: 190px; }
  .tbl.cards.priced td.svc { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
  .savebar { position: sticky; bottom: calc(var(--bottombar) + 8px); z-index: 20; padding: 8px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
  .savebar .btn { width: 100%; }
}

/* ---------- tags / status ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--mut); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tag.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip.on, .chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); text-decoration: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- toasts / alerts ---------- */
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(94vw, 460px); }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--card); font-weight: 500; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: pop .18s ease; }
.toast.ok { background: var(--ok); color: #fff; } .toast.error { background: var(--bad); color: #fff; } .toast.info { background: var(--info); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-weight: 500; margin-bottom: 12px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); } .notice.bad { background: var(--bad-soft); color: var(--bad); } .notice.ok { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; padding: 34px 16px; color: var(--mut); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* ---------- mini charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--mut); }
.bars .bar i { display: block; width: 100%; max-width: 44px; background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 3px; opacity: .85; }
.bars .bar b { font-size: 10px; color: var(--ink); font-weight: 600; }
.meter { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; background: var(--accent); }

/* ---------- timeline ---------- */
.timeline { display: flex; gap: 0; margin: 12px 0; }
.timeline .st { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--mut); }
.timeline .st::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); margin: 0 auto 6px; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline .st::after { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.timeline .st:last-child::after { display: none; }
.timeline .st.done { color: var(--accent); font-weight: 600; } .timeline .st.done::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline .st.done::after { background: var(--accent); }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 14px; align-items: start; }
.pos .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos .tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); user-select: none; }
.pos .tile:hover { border-color: var(--accent); }
.pos .tile.out { opacity: .45; }
.pos .tile .n { font-weight: 600; font-size: 14px; line-height: 1.25; }
.pos .tile .p { font-weight: 700; color: var(--accent); }
.pos .tile .s { font-size: 12px; color: var(--mut); }
.pos .tile .promo { font-size: 11px; color: var(--warn); font-weight: 700; }
.cart { position: sticky; top: calc(var(--topbar) + 12px); }
.cart .lines { max-height: 40vh; overflow-y: auto; }
.cart .line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart .qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.cart .qty button { width: 32px; height: 32px; border: 0; background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer; }
.cart .qty input { width: 54px; text-align: center; border: 0; border-radius: 0; padding: 6px 2px; }
.cart .total { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.paybtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 6px; }
.paybtns .btn { padding: 9px 4px; font-size: 13px; min-width: 0; overflow: hidden; }
.paybtns .btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 900px) {
  .pos { grid-template-columns: 1fr; }
  .cart { position: fixed; left: 0; right: 0; bottom: var(--bottombar); top: auto; z-index: 35; background: var(--card); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 10px 14px; max-height: 75vh; overflow-y: auto; transform: translateY(calc(100% - 64px)); transition: transform .2s ease; box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
  .cart.open { transform: none; }
  .cart .lines { max-height: 30vh; }
  .pos .items { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .content.pos-page { padding-bottom: 150px; }
}

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 50vh; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chatbar { display: flex; gap: 8px; position: sticky; bottom: calc(var(--bottombar) + 8px); background: var(--bg); padding-top: 8px; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }

/* ---------- login / landing ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, var(--accent-soft), transparent), var(--bg); }
.auth .box { width: min(420px, 100%); }
.hero { padding: 60px 20px 40px; text-align: center; background: linear-gradient(180deg, var(--accent-soft), transparent); }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin-bottom: 12px; }
.hero p { font-size: 18px; color: var(--mut); max-width: 640px; margin: 0 auto 20px; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.types .t { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.types .t .ic { font-size: 30px; } .types .t .n { font-weight: 700; margin-top: 6px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.landing-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 1100px; margin: 0 auto; }

/* ---------- portal (customer app) ---------- */
.portal-top { position: sticky; top: 0; z-index: 30; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.portal-top .n { font-weight: 700; font-size: 17px; flex: 1; }
.portal-top a { color: var(--accent-ink); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ptile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.ptile .n { font-weight: 600; line-height: 1.25; } .ptile .p { font-weight: 700; color: var(--accent); }
.ptile .old { text-decoration: line-through; color: var(--mut); font-weight: 400; font-size: 12px; margin-left: 4px; }
.cartbar { position: fixed; bottom: calc(var(--bottombar) + 8px); left: 12px; right: 12px; z-index: 36; }
.has-cartbar { padding-bottom: 150px !important; }
.promo-card { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.promo-card .t { font-weight: 700; font-size: 16px; } .promo-card .d { opacity: .9; font-size: 13px; margin-top: 4px; }

/* ---------- print ---------- */
.receipt { width: 300px; margin: 0 auto; font-family: "Courier New", ui-monospace, monospace; font-size: 12.5px; color: #000; background: #fff; padding: 8px; }
.receipt .cen { text-align: center; } .receipt .line { border-top: 1px dashed #000; margin: 6px 0; }
.receipt table { width: 100%; border-collapse: collapse; } .receipt td { padding: 2px 0; vertical-align: top; }
@media print {
  body { background: #fff; } .sidebar, .topbar, .bottombar, .noprint, .toasts { display: none !important; }
  .content { padding: 0; max-width: none; } .card { box-shadow: none; border: 0; page-break-inside: avoid; }
  .receipt { width: 100%; }
}
.print-only { display: none; } @media print { .print-only { display: block; } }

/* ---------- v9: branding, branches, Ethiopia ---------- */
.brand .logo.img { object-fit: cover; background: #fff; border: 1px solid var(--line); }
.brand .logo.big { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.sel-branch { width: 100%; font-size: 13px; padding: 8px 10px; }
@media (max-width: 900px) { .hide-sm { display: none !important; } }
.receipt img.logo { max-width: 120px; max-height: 70px; display: block; margin: 0 auto 4px; }
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.labels .lab { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 6px; text-align: center; background: #fff; color: #000; page-break-inside: avoid; }
.labels .lab .n { font-size: 12px; font-weight: 600; line-height: 1.2; min-height: 28px; }
.labels .lab .p { font-size: 14px; font-weight: 800; }
.labels .lab svg { max-width: 100%; height: auto; }
.quote-doc { background: #fff; color: #000; padding: 24px; max-width: 800px; margin: 0 auto; font-size: 14px; }
.quote-doc table { width: 100%; border-collapse: collapse; } .quote-doc th, .quote-doc td { border: 1px solid #ccc; padding: 6px 8px; }
.pm-ref { margin-top: 8px; }
.et-date { font-family: var(--font); }
@media print { .labels { gap: 4px; } .labels .lab { border-color: #ccc; } .sidebar, .topbar, .bottombar, .noprint { display: none !important; } .content { padding: 0 !important; } .quote-doc { padding: 0; } }
.types label.t input[type=radio] { display: none; }
.types label.t:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }

/* locked service cards */
.card.mutbox { opacity: .72; }
.card.mutbox:hover { opacity: 1; }

/* ---------- v11.5: vendor branding (BRAND=...) and hotel photos ---------- */
.brand .logo.img.vendor { object-fit: contain; background: #000; border: 0; }
.poweredby { display: flex; align-items: center; justify-content: center; gap: 6px; }
.poweredby img { height: 18px; width: 18px; border-radius: 5px; object-fit: contain; background: #000; }
.portal-hero { border-radius: var(--radius); min-height: 150px; margin: 0 0 14px; display: flex; align-items: flex-end;
  color: #fff; background: var(--accent); box-shadow: var(--shadow); overflow: hidden; }
.portal-hero .hero-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; }
.portal-hero img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,.7); }
.portal-hero .hero-ic { font-size: 36px; }
.portal-hero .hero-n { font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.portal-hero .hero-s { font-size: 12px; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
