/*!
 * NammaBilling POS – 1.0.0
 * @author    Namma Billing Pvt. Ltd.
 * @copyright © 2026 Namma Billing Pvt. Ltd. All rights reserved.
 * @license   Proprietary – Envato Regular / Extended Licence. See LICENSE.txt
 */
/* NammaBilling POS - app styles (on top of Bootstrap 5) */
:root {
  --nb-ink: #1c2541;        /* sidebar, headings */
  --nb-ink-2: #2b3863;
  --nb-marigold: #f4a300;   /* brand mark, "you are here" */
  --nb-leaf: #0e7c66;       /* primary action */
  --nb-leaf-dark: #0a604f;
  --nb-paper: #f4f5f8;      /* page background */
  --nb-line: #dce0e8;
  --nb-text: #1f2430;
  --nb-muted: #586174;
  --nb-danger: #b42318;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--nb-text);
  --bs-body-bg: var(--nb-paper);
  --bs-border-color: var(--nb-line);
  --bs-link-color: #0e7c66;
  --bs-link-hover-color: #0a604f;
  --bs-link-color-rgb: 14, 124, 102;
  --bs-link-hover-color-rgb: 10, 96, 79;
  --bs-primary: var(--nb-leaf);
  --bs-primary-rgb: 14, 124, 102;
  --bs-focus-ring-color: rgba(244, 163, 0, .45);
}
body { font-size: .9375rem; }
.num, .table td.num, .table th.num { font-variant-numeric: tabular-nums; text-align: right; }
h1, .h1 { font-size: 1.45rem; font-weight: 650; color: var(--nb-ink); margin: 0; }
h2, .h2 { font-size: 1.1rem; font-weight: 650; color: var(--nb-ink); }
.text-muted, .form-text { color: var(--nb-muted) !important; }

/* buttons */
.btn-primary { --bs-btn-bg: var(--nb-leaf); --bs-btn-border-color: var(--nb-leaf); --bs-btn-hover-bg: var(--nb-leaf-dark); --bs-btn-hover-border-color: var(--nb-leaf-dark); --bs-btn-active-bg: var(--nb-leaf-dark); --bs-btn-disabled-bg: #7aa79d; --bs-btn-disabled-border-color: #7aa79d; font-weight: 600; }
.btn-outline-primary { --bs-btn-color: var(--nb-leaf); --bs-btn-border-color: var(--nb-leaf); --bs-btn-hover-bg: var(--nb-leaf); --bs-btn-hover-border-color: var(--nb-leaf); --bs-btn-active-bg: var(--nb-leaf-dark); }
.btn, .form-control, .form-select { min-height: 40px; }
.form-control, .form-select { background-color: #fff; }
.form-control:disabled, .form-select:disabled { background-color: #eef0f4; }
.btn-sm { min-height: 32px; }
:focus-visible { outline: 3px solid var(--nb-marigold) !important; outline-offset: 2px; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--nb-marigold); box-shadow: 0 0 0 .2rem rgba(244, 163, 0, .3); }
.form-check-input:checked { background-color: var(--nb-leaf); border-color: var(--nb-leaf); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .3rem; }
.required::after { content: " *"; color: var(--nb-danger); }

/* shell */
.nb-shell { display: flex; min-height: 100vh; }
.nb-side { width: 248px; flex: 0 0 248px; background: var(--nb-ink); color: #c9d1e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nb-brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.nb-brand:hover { color: #fff; }
.nb-mark { width: 34px; height: 40px; flex: 0 0 34px; background: var(--nb-marigold); color: var(--nb-ink); display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 87.5% 100%, 75% 86%, 62.5% 100%, 50% 86%, 37.5% 100%, 25% 86%, 12.5% 100%, 0 86%); padding-bottom: 4px; }
.nb-brand small { display: block; font-weight: 500; font-size: .72rem; color: #9aa6c4; }
.nb-nav { padding: .25rem .6rem 1rem; }
.nb-nav .nb-group { font-size: .75rem; color: #8592b3; padding: 1rem .6rem .35rem; font-weight: 600; }
/* menu groups as dropdowns: the label lines up with the menu text, a chevron on the right, badges added up while closed */
.nb-nav button.nb-group { display: flex; align-items: center; gap: .5rem; width: 100%; margin-top: .45rem; padding: .5rem .6rem .5rem calc(.6rem + 3px); border: 0; border-radius: 6px; background: transparent;
  color: #8592b3; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer; }
.nb-nav button.nb-group:hover { background: var(--nb-ink-2); color: #d5dbeb; }
.nb-nav button.nb-group.here { color: #fff; }   /* the group of the page you are on */
.nb-nav button.nb-group:focus-visible { outline: 2px solid var(--nb-marigold); outline-offset: -2px; }
.nb-nav button.nb-group .nb-group-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-nav button.nb-group .bi { font-size: .8rem; transition: transform .15s ease; }
.nb-nav button.nb-group.shut .bi { transform: rotate(-90deg); }
.nb-nav .nb-group-badge { display: none; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #f5a524; color: #1b2133; font-size: .7rem; line-height: 1.25rem; text-align: center; letter-spacing: 0; }
.nb-nav button.nb-group.shut .nb-group-badge { display: inline-block; }
.nb-nav .nb-groupbody { padding-bottom: .15rem; }
@media (prefers-reduced-motion: reduce) { .nb-nav button.nb-group .bi { transition: none; } }
.nb-nav a { display: flex; align-items: center; gap: .65rem; color: #d5dbeb; text-decoration: none; padding: .55rem .6rem; border-radius: 6px; border-left: 3px solid transparent; }
.nb-nav a i { font-size: 1.05rem; width: 1.2rem; text-align: center; color: #9aa6c4; }
.nb-nav a:hover { background: var(--nb-ink-2); color: #fff; }
.nb-nav a .nb-navbadge { margin-left: auto; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: #f5a524; color: #1b2133; font-size: .72rem; font-weight: 700; line-height: 1.35rem; text-align: center; }
.nb-nav a.active { background: var(--nb-ink-2); color: #fff; border-left-color: var(--nb-marigold); font-weight: 600; }
.nb-nav a.active i { color: var(--nb-marigold); }
.nb-side-foot { margin-top: auto; padding: .9rem 1.1rem; font-size: .78rem; color: #8592b3; border-top: 1px solid #2b3560; }
.nb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nb-top { background: #fff; border-bottom: 1px solid var(--nb-line); padding: .55rem 1.25rem; display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 20; }
.nb-top .nb-biz { font-weight: 650; color: var(--nb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.nb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--nb-ink); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; overflow: hidden; flex: none; }
.nb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nb-content { padding: 1.25rem; max-width: 1280px; width: 100%; }
.nb-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nb-pagehead p { margin: .2rem 0 0; color: var(--nb-muted); }

/* panels and tables */
.nb-panel { background: #fff; border: 1px solid var(--nb-line); border-radius: 8px; }
.nb-panel-head { padding: .85rem 1rem; border-bottom: 1px solid var(--nb-line); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.nb-panel-body { padding: 1rem; }
.nb-panel .table { margin: 0; }
.table > :not(caption) > * > * { padding: .6rem .8rem; }
.table thead th { font-size: .8rem; color: var(--nb-muted); font-weight: 600; background: #f8f9fb; border-bottom-width: 1px; white-space: nowrap; }
.table td { vertical-align: middle; }
.nb-clamp { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.nb-filter .form-control { max-width: 280px; }

/* stat strip on dashboards: values read like a bill total */
.nb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--nb-line); border-radius: 8px; background: #fff; }
.nb-stat { padding: .9rem 1rem; border-right: 1px dashed var(--nb-line); }
.nb-stat:last-child { border-right: 0; }
.nb-stat .v { font-size: 1.5rem; font-weight: 700; color: var(--nb-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.nb-stat .l { font-size: .82rem; color: var(--nb-muted); }

/* status chips: colour + text, never colour alone */
.nb-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.nb-chip.ok { color: #0a604f; background: #e3f4ef; border-color: #b6e0d4; }
.nb-chip.off { color: #5b6475; background: #eef0f4; border-color: #d5d9e2; }
.nb-chip.bad { color: #8f1d14; background: #fde9e7; border-color: #f5c2bc; }
.nb-chip.warn { color: #7a4c00; background: #fff3d6; border-color: #f3d48a; }
.nb-chip.info { color: #1d4f86; background: #e6f0fb; border-color: #b9d3f0; }

/* checklist */
.nb-check { list-style: none; padding: 0; margin: 0; }
.nb-check li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--nb-line); }
.nb-check li:last-child { border-bottom: 0; }
.nb-check .bi-check-circle-fill { color: var(--nb-leaf); }
.nb-check .bi-circle { color: #a3abbd; }
.nb-check .done span { color: var(--nb-muted); text-decoration: line-through; }

/* permission grid */
.nb-perm-group { border: 1px solid var(--nb-line); border-radius: 8px; padding: .75rem 1rem; height: 100%; }
.nb-perm-group legend { float: left; width: 100%; }
.nb-perm-group legend + * { clear: left; }

/* banners */
.nb-banner { padding: .55rem 1.25rem; font-size: .88rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nb-banner.warn { background: #fff3d6; color: #6b4300; border-bottom: 1px solid #f3d48a; }
.nb-banner.bad { background: #fde9e7; color: #8f1d14; border-bottom: 1px solid #f5c2bc; font-weight: 600; }
.nb-banner.imp { background: var(--nb-marigold); color: var(--nb-ink); font-weight: 600; }

/* auth pages: the card is a printed bill */
.nb-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 460px); background: var(--nb-ink); }
.nb-auth-side { color: #dfe5f3; padding: 3rem; display: flex; flex-direction: column; justify-content: center; max-width: 560px; margin-left: auto; }
.nb-auth-side h1 { color: #fff; font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; }
.nb-auth-side ul { padding-left: 1.1rem; color: #b9c3dc; }
.nb-auth-side li { margin-bottom: .4rem; }
.nb-auth-main { background: var(--nb-paper); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
/* Task 58: the left panel – words, a promotion picture, or words over a picture; colour set by the super admin */
.nb-auth { background: var(--auth-bg, var(--nb-ink)); }
.nb-auth-side.mode-image { max-width: none; margin: 0; padding: 2rem; align-items: center; justify-content: center; }
.nb-auth-promo { display: block; max-width: 100%; max-height: calc(100vh - 4rem); object-fit: contain; border-radius: 10px; }
.nb-auth-promo-link { display: block; border-radius: 10px; }
.nb-auth-promo-link:focus-visible { outline: 3px solid var(--nb-marigold); outline-offset: 4px; }
.nb-auth-side.mode-both { max-width: none; margin: 0; background-size: cover; background-position: center; position: relative; padding: 3rem max(3rem, calc(50% - 280px)); }
.nb-auth-side.mode-both::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 28, .82), rgba(10, 14, 28, .45)); }
.nb-auth-side.mode-both .nb-auth-words { position: relative; max-width: 520px; }
.nb-auth-side.mode-both li { color: #e8ecf6; }
.nb-auth-forgot { font-size: .85rem; }
.nb-receipt { width: 100%; max-width: 400px; background: #fff; padding: 1.75rem 1.75rem 2.25rem; box-shadow: 0 1px 0 var(--nb-line), 0 12px 30px rgba(28, 37, 65, .12);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px)); }
.nb-receipt.wide { max-width: 560px; }
.nb-receipt-head { text-align: center; border-bottom: 1px dashed #b9c0cf; padding-bottom: 1rem; margin-bottom: 1.25rem; }
.nb-receipt-head .nb-mark { margin: 0 auto .5rem; }
/* Task 57: the brand mark can be letters (up to 3) or an uploaded logo picture */
.nb-mark.sm { font-size: .78rem; letter-spacing: -.02em; }
.nb-mark-img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.nb-mark-wrap { display: flex; justify-content: center; margin: 0 auto .5rem; }
.nb-mark-wrap .nb-mark { margin: 0; }
.nb-mark-wrap .nb-mark-img { width: 56px; height: 56px; flex-basis: 56px; }
.nb-receipt-head h2 { margin: 0; font-size: 1.2rem; }
.nb-receipt-head p { margin: .2rem 0 0; color: var(--nb-muted); font-size: .88rem; }
.nb-receipt-foot { border-top: 1px dashed #b9c0cf; margin-top: 1.25rem; padding-top: .9rem; text-align: center; font-size: .88rem; color: var(--nb-muted); }

@media (max-width: 991.98px) {
  .nb-side { position: fixed; left: 0; top: 0; z-index: 1045; transform: translateX(-100%); transition: transform .2s ease; }
  .nb-side.open { transform: none; }
  .nb-content { padding: 1rem; }
  .nb-auth { grid-template-columns: 1fr; }
  .nb-auth-side { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nb-side { transition: none; } }
.nb-backdrop { display: none; }
.nb-side.open + .nb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1040; }
@media print { .nb-side, .nb-top, .nb-banner { display: none !important; } }

/* Task 3: toggles and focused inputs */
.form-control:focus, .form-select:focus { background-color: #fff; }
.btn-check:checked + .btn-outline-secondary { background: var(--nb-ink); border-color: var(--nb-ink); color: #fff; }
.btn-check + .btn-outline-secondary { --bs-btn-color: var(--nb-text); --bs-btn-border-color: var(--nb-line); --bs-btn-hover-bg: #eef0f4; --bs-btn-hover-color: var(--nb-text); --bs-btn-hover-border-color: var(--nb-line); }
.nb-variant:nth-child(even) { background: #fafbfc; }

/* Task 5: big "New bill" button in the menu */
.nb-billbtn { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .25rem 0 .6rem; padding: .6rem; border-radius: 8px; background: var(--nb-marigold); color: var(--nb-ink); font-weight: 700; text-decoration: none; }
.nb-billbtn:hover { background: #ffb81f; color: var(--nb-ink); }
.pur-table td { vertical-align: middle; }
.pur-table td:first-child { min-width: 10rem; }
.pur-price td { background: #fbf8ef; border-top: 0; }
/* Task 12: report tabs and tables */
.nb-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--nb-line); overflow-x: auto; scrollbar-width: thin; }
.nb-tabs a { padding: .55rem .9rem; color: var(--nb-muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; margin-bottom: -1px; }
.nb-tabs a:hover { color: var(--nb-ink); }
.nb-tabs a.active { color: var(--nb-ink); border-bottom-color: var(--bs-primary); }
.nb-tabs a:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.rpt-wrap { max-height: 70vh; }
.rpt-table thead th { position: sticky; top: 0; z-index: 1; }
.rpt-table tfoot th { background: #f8f9fb; border-top: 2px solid var(--nb-line); position: sticky; bottom: 0; }
.rpt-table td:first-child { min-width: 9rem; }
/* Task 13: offer form */
.offer-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem; }
.offer-type { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--nb-line); border-radius: 8px; padding: .7rem .8rem; cursor: pointer; background: #fff; }
.offer-type:has(input:checked) { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary); }
.offer-type input { margin-top: .25rem; }
.offer-type small { display: block; color: var(--nb-muted); }
.offer-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .1rem .8rem; max-height: 220px; overflow: auto; }
.day-pill:has(input:checked) { background: var(--bs-primary); color: #fff; border-color: var(--bs-primary); }
.day-pill input:focus-visible + * , .day-pill:focus-within { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
/* Task 14: weighing-scale label layout */
.scale-demo { font: 600 1.5rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.scale-demo span { padding: 0 .1rem; border-radius: 3px; }
.scale-demo .p, .scale-demo .p-l { background: #e8eefc; } .scale-demo .c, .scale-demo .c-l { background: #e3f4ef; }
.scale-demo .w, .scale-demo .w-l { background: #fff3d6; } .scale-demo .k { background: #eef0f4; }
.scale-demo .small { font: 400 .8rem/1.5 var(--bs-body-font-family); letter-spacing: 0; }
.scale-demo .small span { padding: 0 .25rem; }

/* Task 34: messages from the super admin (banner + pop-up) and the communicator */
.nb-notice-body { overflow-wrap: anywhere; }
.nb-notice-body img { max-width: 100%; height: auto; border-radius: 6px; }
.nb-notice-body p:last-child, .nb-notice-body ul:last-child { margin-bottom: 0; }
.nb-notice-body table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
.nb-notice-body td, .nb-notice-body th { border: 1px solid var(--nb-line); padding: .3rem .5rem; }
.nb-notice-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.nb-notice-head { border-bottom-width: 3px; }
.nb-notice-info { border-bottom-color: #4a6fd1; } .nb-notice-success { border-bottom-color: var(--nb-leaf); }
.nb-notice-warning { border-bottom-color: var(--nb-marigold); } .nb-notice-danger { border-bottom-color: var(--nb-danger); }
.cm-groups { display: flex; flex-wrap: wrap; gap: .4rem; }
.cm-group { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--nb-line); background: #fff; color: var(--nb-text); border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; font-weight: 600; min-height: 36px; }
.cm-group:hover { border-color: var(--nb-leaf); }
.cm-group[aria-pressed="true"] { background: #e3f4ef; border-color: var(--nb-leaf); color: var(--nb-leaf-dark); }
.cm-group[disabled] { opacity: .55; }
.cm-group .badge { background: #eef0f4; color: var(--nb-muted); font-weight: 600; }
.cm-shops { max-height: 260px; overflow: auto; border: 1px solid var(--nb-line); border-radius: 8px; background: #fff; }
.cm-shop { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-bottom: 1px solid #eef0f4; margin: 0; cursor: pointer; min-height: 44px; }
.cm-shop:last-child { border-bottom: 0; }
.cm-shop:hover { background: #f7f8fa; }
.cm-shop .cm-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-shop .cm-meta { font-size: .78rem; color: var(--nb-muted); margin-left: auto; text-align: right; white-space: nowrap; }
.cm-way { border: 1px solid var(--nb-line); border-radius: 8px; padding: .65rem .8rem; height: 100%; background: #fff; }
.cm-way.is-off { background: #f7f8fa; }
.cm-tags .btn { font-family: var(--bs-font-monospace); font-size: .8rem; }
.cm-hist .cm-snip { color: var(--nb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cm-hist .cm-title { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .cm-shop .cm-meta { display: none; } }
.min-w-0 { min-width: 0; }

/* Task 35: plan parts, locked parts */
.pm-mod { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--nb-line); border-radius: 8px; padding: .6rem .75rem; height: 100%; cursor: pointer; background: #fff; margin: 0; }
.pm-mod:hover { border-color: var(--nb-leaf); }
.pm-mod:has(input:checked) { background: #f1faf7; border-color: #b6e0d4; }
.pm-mod > .bi { font-size: 1.1rem; color: var(--nb-leaf); margin-top: .1rem; }
.nb-side .nb-locked { opacity: .78; }
.nb-side .nb-locked .bi-lock-fill { margin-left: auto; font-size: .75rem; }
.lk-hero { display: flex; gap: 1rem; align-items: flex-start; }
.lk-hero .lk-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #fff3d6; color: #7a4c00; font-size: 1.6rem; flex: none; }
.pl-mods { columns: 2 220px; column-gap: 1.25rem; padding-left: 0; list-style: none; margin: 0; }
.pl-mods li { break-inside: avoid; padding: .2rem 0; }
.pl-bar { height: 6px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.pl-bar > span { display: block; height: 100%; background: var(--nb-leaf); }
.pl-bar.warn > span { background: var(--nb-marigold); } .pl-bar.bad > span { background: var(--nb-danger); }

/* Task 37: notes and files */
.dn-body { white-space: pre-line; overflow-wrap: anywhere; }
.dn-done .dn-body { color: var(--nb-muted); text-decoration: line-through; }
.dn-thumb { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex: none; border: 1px solid var(--nb-line); display: block; }
.dn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dn-icon { width: 44px; text-align: center; flex: none; }
.dn-panel .btn-sm { min-height: 32px; }

/* module control: Setup › Modules */
.md-list { list-style: none; margin: 0; padding: 0; }
.md-row { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: .75rem 1rem; align-items: center; padding: .85rem 1rem; border-top: 1px solid var(--nb-line); }
.md-row:first-child { border-top: 0; }
.md-icon { width: 2.5rem; height: 2.5rem; border-radius: .6rem; display: grid; place-items: center; background: #e3f4ef; color: var(--nb-leaf-dark); font-size: 1.15rem; }
.md-row.is-off .md-icon { background: #eef0f4; color: var(--nb-muted); }
.md-name { font-weight: 600; color: var(--nb-text); }
.md-row.is-off .md-name { color: var(--nb-muted); }
.md-about { font-size: .875rem; color: var(--nb-muted); }
.md-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; margin-top: .3rem; }
.md-act { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; max-width: 16rem; }
.md-buy { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.md-buy .form-select { width: auto; max-width: 11rem; }
.md-switch { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; padding: .35rem .25rem; min-height: 44px; font-weight: 600; color: var(--nb-text); cursor: pointer; }
.md-track { position: relative; width: 2.75rem; height: 1.5rem; border-radius: 999px; background: #c5cbd6; transition: background-color .15s; }
.md-knob { position: absolute; top: .1875rem; left: .1875rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.md-switch[aria-checked="true"] .md-track { background: var(--nb-leaf); }
.md-switch[aria-checked="true"] .md-knob { transform: translateX(1.25rem); }
.md-switch .md-state { min-width: 1.75rem; text-align: left; }
.md-switch:focus-visible { outline: 3px solid var(--nb-marigold); outline-offset: 2px; border-radius: .4rem; }
@media (prefers-reduced-motion: reduce) { .md-track, .md-knob { transition: none; } }
@media (max-width: 575.98px) {
  .md-row { grid-template-columns: 2.25rem 1fr; }
  .md-act { grid-column: 2; align-items: flex-start; max-width: none; }
  .md-buy { justify-content: flex-start; }
}

/* Task 50: salon appointment board */
.sb-scroll { overflow-x: auto; }
.sb-board { display: grid; grid-template-columns: 4rem repeat(var(--cols), minmax(9.5rem, 1fr)); position: relative; min-width: 100%; }
.sb-head { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--nb-line); padding: .55rem .5rem; font-weight: 600; font-size: .9rem; height: 2.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-times, .sb-col { position: relative; height: var(--h); }
.sb-times span { position: absolute; right: .4rem; transform: translateY(-50%); font-size: .75rem; color: var(--nb-muted); }
.sb-times span:first-child { transform: none; }
.sb-col { border-left: 1px solid var(--nb-line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(96px - 1px), #eef0f4 calc(96px - 1px), #eef0f4 96px); }
.sb-slot { position: absolute; left: 0; right: 0; display: block; }
.sb-slot:hover { background: rgba(14, 124, 102, .08); }
.sb-appt { position: absolute; left: 3px; right: 3px; z-index: 1; border-radius: .45rem; padding: .2rem .45rem; font-size: .78rem; line-height: 1.25; overflow: hidden; text-decoration: none; color: var(--nb-text); border-left: 4px solid; background: #e6f0fb; border-color: #3b7bd1; }
.sb-appt b, .sb-appt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-appt span { color: var(--nb-muted); }
.sb-appt:hover, .sb-appt:focus-visible { box-shadow: 0 2px 8px rgba(28, 37, 65, .2); z-index: 3; }
.sb-appt:focus-visible { outline: 3px solid var(--nb-marigold); outline-offset: 1px; }
.st-arrived, .st-in_service { background: #e3f4ef; border-color: var(--nb-leaf); }
.st-requested { background: #fff3d6; border-color: #e0a100; }
.st-done { background: #eef0f4; border-color: #9aa3b2; }
.st-cancelled, .st-no_show { background: #fbeeed; border-color: #d9a29c; text-decoration: line-through; opacity: .7; }
.sb-now { position: absolute; left: 4rem; right: 0; height: 0; border-top: 2px solid #d64545; z-index: 2; pointer-events: none; }
.sb-key { display: inline-block; padding: 0 .4rem; border-radius: .3rem; border-left: 4px solid; margin-right: .35rem; }
/* appointment form */
.ap-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; padding: .5rem 0; border-top: 1px dashed var(--nb-line); }
.ap-c1 { flex: 2 1 16rem; min-width: 0; } .ap-c2 { flex: 1 1 9rem; min-width: 0; } .ap-c3 { flex: 0 0 2.5rem; }
.ap-row:first-child { border-top: 0; }
.ap-c3 { padding-top: 1.75rem; }
.ap-cust { display: flex; gap: .75rem; align-items: center; }
.ap-list { position: absolute; z-index: 5; left: 0; right: 0; list-style: none; margin: .25rem 0 0; padding: .25rem 0; background: #fff; border: 1px solid var(--nb-line); border-radius: .5rem; box-shadow: 0 6px 18px rgba(28, 37, 65, .12); max-height: 16rem; overflow: auto; }
.ap-list li { padding: .45rem .75rem; cursor: pointer; }
.ap-list li:hover { background: #f1f5f9; }
.ap-times { display: flex; flex-wrap: wrap; gap: .35rem; }
@media (min-width: 1200px) { .ap-when { position: sticky; top: 1rem; } }

/* Task 51: gym */
.gy-search { display: flex; gap: .5rem; align-items: center; position: relative; }
.gy-search > i { position: absolute; left: .9rem; font-size: 1.3rem; color: var(--nb-muted); pointer-events: none; }
.gy-search input { padding-left: 2.6rem; }
.gy-card { border-left: 6px solid var(--nb-line); }
.gy-card.gy-ok { border-left-color: var(--nb-leaf); }
.gy-card.gy-warn { border-left-color: #e0a100; }
.gy-card.gy-bad { border-left-color: var(--nb-danger); }
.gy-card.gy-info { border-left-color: #3b7bd1; }
.gy-state { font-size: 2.6rem; line-height: 1; }
.gy-ok .gy-state { color: var(--nb-leaf); } .gy-warn .gy-state { color: #b07d00; } .gy-bad .gy-state { color: var(--nb-danger); } .gy-info .gy-state { color: #3b7bd1; }
.gy-chart { width: 100%; height: 160px; color: var(--nb-leaf); }
.gy-bar { display: block; height: .6rem; border-radius: 999px; background: var(--nb-leaf); min-width: 4px; }
/* Task 52: hotel room board */
.ht-floor { font-size: .8rem; font-weight: 700; color: var(--nb-muted); margin: .9rem 0 .4rem; }
.ht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.ht-room { position: relative; display: flex; flex-direction: column; gap: .1rem; min-height: 7.2rem; padding: .6rem .7rem; border: 1px solid var(--nb-line); border-top: 5px solid var(--nb-leaf); border-radius: .6rem; background: #fff; color: inherit; text-decoration: none; }
.ht-room:hover, .ht-room:focus-within { box-shadow: 0 4px 14px rgba(28, 37, 65, .12); }
.ht-room .n { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.ht-room .t { font-size: .78rem; color: var(--nb-muted); }
.ht-room .g { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-room .s { font-size: .78rem; }
.ht-room > a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: .6rem; }
.ht-room > a.stretched { color: inherit; text-decoration: none; }
.ht-room > a.stretched:focus-visible { outline: none; } .ht-room:has(a.stretched:focus-visible) { outline: 3px solid #3b7bd1; outline-offset: 2px; }
.ht-room.in { border-top-color: #3b7bd1; background: #f3f8fe; }
.ht-room.due { border-top-color: #e0a100; }
.ht-room.late { border-top-color: var(--nb-danger); }
.ht-room.dirty { border-top-color: #b07d00; background: repeating-linear-gradient(135deg, #fff, #fff 8px, #fffaf0 8px, #fffaf0 16px); }
.ht-room.fix { border-top-color: #8a93a6; background: #f3f4f7; color: #5b6475; }
.ht-room details { position: relative; z-index: 2; margin-top: auto; align-self: flex-start; }
.ht-room details summary { list-style: none; cursor: pointer; font-size: .78rem; color: var(--nb-leaf-dark); font-weight: 600; }
.ht-room details summary::-webkit-details-marker { display: none; }
.ht-room details[open] .ht-menu { display: flex; }
.ht-menu { display: none; flex-direction: column; position: absolute; left: 0; top: 1.4rem; min-width: 9.5rem; background: #fff; border: 1px solid var(--nb-line); border-radius: .5rem; box-shadow: 0 6px 18px rgba(28, 37, 65, .14); padding: .25rem; z-index: 6; }
.ht-menu button { text-align: left; font-size: .85rem; padding: .35rem .5rem; border: 0; background: none; border-radius: .35rem; }
.ht-menu button:hover, .ht-menu button:focus-visible { background: #f1f5f9; }
.ht-legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: var(--nb-muted); }
.ht-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: .2rem; margin-right: .3rem; vertical-align: -1px; }
.ht-bill td, .ht-bill th { padding: .45rem .6rem; }
.ht-total { font-size: 1.6rem; font-weight: 800; }
.doc-stay { font-size: inherit; }
@media print { .ht-noprint { display: none !important; } .ht-reg { font-size: 10px; } .ht-reg td, .ht-reg th { padding: 2px 4px !important; } }
/* Task 54: projects – progress bar and task board */
.pj-bar { height: .55rem; border-radius: 999px; background: #e6e9ef; overflow: hidden; min-width: 5rem; }
.pj-bar > span { display: block; height: 100%; background: var(--nb-leaf); }
.pj-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 767.98px) { .pj-board { grid-template-columns: 1fr; } }
.pj-col { background: #f4f6f9; border-radius: .6rem; padding: .6rem; min-height: 6rem; }
.pj-col h3 { font-size: .85rem; font-weight: 700; margin: .1rem .2rem .6rem; display: flex; justify-content: space-between; }
.pj-task { background: #fff; border: 1px solid var(--nb-line); border-radius: .5rem; padding: .55rem .65rem; margin-bottom: .5rem; }
.pj-task.late { border-left: 4px solid var(--nb-danger); }
.pj-task .t { font-weight: 600; overflow-wrap: anywhere; }
.pj-task .m { font-size: .78rem; color: var(--nb-muted); }
.pj-task .mv { display: flex; gap: .25rem; margin-top: .4rem; flex-wrap: wrap; }
.pj-task .mv button { font-size: .75rem; padding: .1rem .5rem; }

/* Task 59: offline billing screen */
.ob-body { background: var(--nb-paper); min-height: 100vh; }
.ob-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .5rem 1rem; background: var(--nb-ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.ob-top .nb-brand { color: #fff; }
.ob-title { display: flex; flex-direction: column; line-height: 1.15; }
.ob-title .small { color: #b9c3dc; }
.ob-net { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.ob-net .bi { font-size: .55rem; }
.ob-net.on .bi { color: #4ade80; }
.ob-net.off { background: #fde68a; color: #1b2133; }
.ob-net.off .bi { color: #b45309; }
.ob-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 1rem; padding: 1rem; max-width: 1400px; margin: 0 auto; }
.ob-results { margin: .5rem 0 0; max-height: calc(100vh - 180px); overflow: auto; }
.ob-res { display: flex; gap: .75rem; align-items: center; padding: .55rem .75rem; background: #fff; border: 1px solid var(--nb-line); border-radius: 6px; margin-bottom: .35rem; cursor: pointer; }
.ob-res.sel, .ob-res:hover { border-color: var(--nb-leaf); box-shadow: inset 3px 0 0 var(--nb-leaf); }
.ob-lines-wrap { max-height: 42vh; overflow: auto; }
.ob-lines-wrap input[type=number] { max-width: 6rem; margin-left: auto; }
.ob-total { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ob-toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); background: #1b2133; color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 2000; max-width: 92vw; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.ob-toast.bad { background: #b42318; }
.ob-receipt { display: none; }
@media (max-width: 767.98px) { .ob-main { grid-template-columns: 1fr; padding: .6rem; } .ob-results { max-height: 40vh; } .ob-top { gap: .4rem; } }
@media print {
  body.ob-body > *:not(.ob-receipt) { display: none !important; }
  .ob-receipt { display: block; width: 72mm; font: 12px/1.35 monospace; color: #000; }
  .ob-receipt table { width: 100%; } .ob-receipt .r { text-align: right; white-space: nowrap; vertical-align: bottom; } .ob-receipt hr { border-top: 1px dashed #000; margin: 4px 0; }
}
/* Task 59: installable app – install banner, update prompt, offline strip */
.pwa-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 1990; width: min(560px, calc(100vw - 1.5rem)); background: #fff; color: var(--nb-ink); border: 1px solid var(--nb-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(28, 37, 65, .2); padding: .75rem .9rem; display: flex; gap: .75rem; align-items: center; }
.pwa-bar .bi { font-size: 1.4rem; color: var(--nb-leaf); }
.pwa-off { position: fixed; top: 0; left: 0; right: 0; z-index: 1995; background: #fde68a; color: #1b2133; font-size: .85rem; padding: .35rem 1rem; text-align: center; }
.pwa-off a { color: inherit; font-weight: 600; }
/* Task 63: affiliates */
.aff-switch { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .75rem 1rem; border: 1px solid #f3d48a; background: #fff8e6; color: #5c3b00; border-radius: 8px; }
.aff-switch.on { border-color: #b6e0d4; background: #eef8f4; color: #0a4a3d; }
.aff-switch > .bi { font-size: 1.4rem; }
.aff-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.aff-filters a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--nb-line); border-radius: 999px; background: #fff; color: var(--nb-ink); text-decoration: none; font-size: .86rem; font-weight: 600; min-height: 36px; }
.aff-filters a span { font-weight: 500; color: var(--nb-muted); font-variant-numeric: tabular-nums; }
.aff-filters a.active { background: var(--nb-ink); border-color: var(--nb-ink); color: #fff; }
.aff-filters a.active span { color: #cfd6e6; }
.aff-filters a:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.aff-code { font-family: var(--bs-font-monospace); font-size: .8rem; background: #eef0f4; padding: 0 .35rem; border-radius: 4px; }
.aff-ck { width: 2.25rem; }
.aff-warn { color: #8a5300; font-weight: 600; }
.aff-ck .form-check-input { width: 1.2rem; height: 1.2rem; }
.aff-link { display: flex; gap: .5rem; flex-wrap: wrap; }
.aff-link input { flex: 1 1 16rem; font-family: var(--bs-font-monospace); font-size: .85rem; }
.aff-savebar { display: flex; justify-content: flex-end; gap: .5rem; position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(transparent, var(--nb-paper) 35%); }
@media (max-width: 767.98px) {
  .aff-table thead { display: none; }
  .aff-table tr { display: grid; grid-template-columns: 2.25rem 1fr; gap: .15rem .5rem; padding: .7rem .75rem; border-bottom: 1px solid var(--nb-line); }
  .aff-table td { border: 0; padding: 0; text-align: left !important; background: transparent !important; box-shadow: none !important; }
  .aff-table td.aff-ck { grid-row: span 8; }
  .aff-table td[data-label] { display: flex; justify-content: space-between; gap: .75rem; }
  .aff-table td[data-label]::before { content: attr(data-label); color: var(--nb-muted); font-size: .82rem; font-weight: 400; }
  .aff-table td[data-label="Affiliate"], .aff-table td[data-label="Code"] { display: block; margin-bottom: .3rem; }
  .aff-table td[data-label="Affiliate"]::before, .aff-table td[data-label="Code"]::before { content: none; }
  .aff-table td[data-label] > span { text-align: right; }
  .aff-table td:last-child { grid-column: 2; margin-top: .35rem; }
  .aff-table td:last-child .btn { width: 100%; min-height: 40px; }
}
.aff-pub-top { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--nb-ink); color: #fff; }
.aff-pub-top .nb-brand { color: #fff; }
.aff-pub-main { max-width: 1140px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.aff-points li { display: flex; gap: .65rem; margin-bottom: .75rem; }
.aff-points .bi { font-size: 1.2rem; color: var(--nb-leaf); }
.aff-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }
/* Task 64: profile photo */
.pf-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--nb-ink); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 700; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--nb-line); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
#pfFile:focus-visible + label.btn { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
/* Task 65: coupons */
.cp-box { min-width: 15rem; max-width: 22rem; }
.cf-box .cf-list { max-height: 15rem; overflow: auto; border: 1px solid var(--nb-line); border-radius: 6px; padding: .4rem .6rem; }
.aff-mono { font-family: var(--bs-font-monospace); letter-spacing: .04em; }
/* ---------- Task 66: Look & theme (data-lk-* on <html>, set by App\Services\Look) ---------- */
@font-face { font-family: "NB Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NB Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "NB Inter"; src: url("../fonts/inter-700.woff") format("woff"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "NB Poppins"; src: url("../fonts/poppins-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NB Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "NB Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 700 800; font-display: swap; }
/* the theme colour on buttons, links, ticks and the menu marker */
html[data-lk-btn="1"] { --nb-leaf: var(--lk-c); --nb-leaf-dark: var(--lk-cd); --bs-primary-rgb: var(--lk-rgb); --bs-link-color: var(--lk-c); --bs-link-hover-color: var(--lk-cd);
  --bs-link-color-rgb: var(--lk-rgb); --bs-link-hover-color-rgb: var(--lk-rgb); }
html[data-lk-btn="1"] .btn-primary { --bs-btn-disabled-bg: rgba(var(--lk-rgb), .55); --bs-btn-disabled-border-color: transparent; }
/* fonts (Roboto and Tamil use the fonts already on the phone or computer) */
html[data-lk-font="inter"] { --bs-body-font-family: "NB Inter", "Segoe UI", system-ui, sans-serif; }
html[data-lk-font="poppins"] { --bs-body-font-family: "NB Poppins", "Segoe UI", system-ui, sans-serif; }
html[data-lk-font="roboto"] { --bs-body-font-family: Roboto, "Roboto Flex", "Segoe UI", system-ui, sans-serif; }
html[data-lk-font="tamil"] { --bs-body-font-family: "Noto Sans Tamil", "Noto Sans Tamil UI", "Nirmala UI", Latha, "Tamil Sangam MN", "Segoe UI", system-ui, sans-serif; }
/* text size and spacing */
html[data-lk-size="small"] body { font-size: .875rem; }
html[data-lk-size="large"] body { font-size: 1.0625rem; }
html[data-lk-size="large"] h1, html[data-lk-size="large"] .h1 { font-size: 1.6rem; }
html[data-lk-spacing="compact"] .nb-content { padding: .85rem; }
html[data-lk-spacing="compact"] .nb-panel-body { padding: .7rem .85rem; }
html[data-lk-spacing="compact"] .nb-panel-head { padding: .6rem .85rem; }
html[data-lk-spacing="compact"] .table > :not(caption) > * > * { padding: .38rem .6rem; }
html[data-lk-spacing="compact"] .nb-nav a { padding: .4rem .6rem; }
html[data-lk-spacing="compact"] .nb-stat { padding: .6rem .8rem; }
/* corners */
html[data-lk-corners="sharp"] { --bs-border-radius: 0; --bs-border-radius-sm: 0; --bs-border-radius-lg: 0; --lk-r: 0; }
html[data-lk-corners="soft"] { --bs-border-radius: .5rem; --bs-border-radius-sm: .4rem; --bs-border-radius-lg: .75rem; --lk-r: 12px; }
html[data-lk-corners="round"] { --bs-border-radius: .75rem; --bs-border-radius-sm: .6rem; --bs-border-radius-lg: 1rem; --lk-r: 18px; }
html[data-lk-corners="sharp"] .nb-panel, html[data-lk-corners="sharp"] .nb-stats, html[data-lk-corners="soft"] .nb-panel, html[data-lk-corners="soft"] .nb-stats,
html[data-lk-corners="round"] .nb-panel, html[data-lk-corners="round"] .nb-stats { border-radius: var(--lk-r); }
html[data-lk-corners="sharp"] .nb-nav a, html[data-lk-corners="sharp"] .btn, html[data-lk-corners="sharp"] .form-control, html[data-lk-corners="sharp"] .form-select { border-radius: 0; }
html[data-lk-corners="round"] .btn { border-radius: 999px; }
/* cards */
html[data-lk-cards="shadow"] .nb-panel, html[data-lk-cards="shadow"] .nb-stats { border-color: transparent; box-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 14px rgba(16, 24, 40, .06); }
html[data-lk-cards="border"] .nb-panel, html[data-lk-cards="border"] .nb-stats { border: 1.5px solid #c9cfdb; }
html[data-lk-cards="flat"] .nb-panel, html[data-lk-cards="flat"] .nb-stats { border-color: transparent; box-shadow: none; background: #fff; }
/* page background */
html[data-lk-bg="white"] { --nb-paper: #fff; }
html[data-lk-bg="white"][data-lk-cards="flat"] .nb-panel, html[data-lk-bg="white"][data-lk-cards="flat"] .nb-stats { border-color: var(--nb-line); }
html[data-lk-bg="tint"] body { background: linear-gradient(rgba(var(--lk-rgb), .06), rgba(var(--lk-rgb), .06)), #f7f8fa; background-attachment: fixed; }
/* menu */
html[data-lk-menu="colour"] .nb-side { background: var(--lk-cd); }
html[data-lk-menu="gradient"] .nb-side { background: linear-gradient(170deg, var(--lk-c), var(--lk-cd) 55%, #111827); }
html[data-lk-menu="colour"] .nb-nav a:hover, html[data-lk-menu="colour"] .nb-nav a.active, html[data-lk-menu="colour"] .nb-nav button.nb-group:hover,
html[data-lk-menu="gradient"] .nb-nav a:hover, html[data-lk-menu="gradient"] .nb-nav a.active, html[data-lk-menu="gradient"] .nb-nav button.nb-group:hover { background: rgba(255, 255, 255, .14); }
html[data-lk-menu="colour"] .nb-nav a, html[data-lk-menu="gradient"] .nb-nav a, html[data-lk-menu="colour"] .nb-nav a i, html[data-lk-menu="gradient"] .nb-nav a i { color: rgba(255, 255, 255, .9); }
html[data-lk-menu="colour"] .nb-nav .nb-group, html[data-lk-menu="gradient"] .nb-nav .nb-group, html[data-lk-menu="colour"] .nb-brand small, html[data-lk-menu="gradient"] .nb-brand small,
html[data-lk-menu="colour"] .nb-side-foot, html[data-lk-menu="gradient"] .nb-side-foot { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .18); }
html[data-lk-menu="light"] .nb-side { background: #fff; color: var(--nb-text); border-right: 1px solid var(--nb-line); }
html[data-lk-menu="light"] .nb-brand, html[data-lk-menu="light"] .nb-brand:hover { color: var(--nb-ink); }
html[data-lk-menu="light"] .nb-brand small, html[data-lk-menu="light"] .nb-side-foot { color: var(--nb-muted); border-color: var(--nb-line); }
html[data-lk-menu="light"] .nb-nav .nb-group, html[data-lk-menu="light"] .nb-nav button.nb-group { color: var(--nb-muted); }
html[data-lk-menu="light"] .nb-nav button.nb-group.here { color: var(--nb-ink); }
html[data-lk-menu="light"] .nb-nav a { color: var(--nb-text); }
html[data-lk-menu="light"] .nb-nav a i { color: var(--nb-muted); }
html[data-lk-menu="light"] .nb-nav a:hover, html[data-lk-menu="light"] .nb-nav button.nb-group:hover { background: rgba(var(--lk-rgb), .08); color: var(--nb-ink); }
html[data-lk-menu="light"] .nb-nav a.active { background: rgba(var(--lk-rgb), .12); color: var(--lk-cd); border-left-color: var(--lk-c); }
html[data-lk-menu="light"] .nb-nav a.active i { color: var(--lk-c); }
/* top bar */
html[data-lk-top="colour"] .nb-top { background: var(--lk-cd); border-bottom-color: transparent; color: #fff; }
html[data-lk-top="colour"] .nb-top .nb-biz, html[data-lk-top="colour"] .nb-top > .btn, html[data-lk-top="colour"] .nb-top .dropdown > .btn, html[data-lk-top="colour"] .nb-top .dropdown > .btn small { color: #fff !important; }
html[data-lk-top="colour"] .nb-top .btn-outline-primary { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .6); --bs-btn-hover-bg: rgba(255, 255, 255, .15); --bs-btn-hover-border-color: #fff; }
html[data-lk-top="colour"] .nb-top .nb-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
/* the Look page: ready-made looks and colour circles */
.lk-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.lk-preset { position: relative; border: 2px solid var(--nb-line); border-radius: 10px; background: #fff; padding: .6rem; cursor: pointer; text-align: left; width: 100%; }
.lk-preset:hover { border-color: #b8c0d0; }
.lk-preset[aria-pressed="true"] { border-color: var(--nb-leaf); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .18); }
.lk-preset[aria-pressed="true"]::after { content: "\F26E"; font-family: bootstrap-icons; position: absolute; top: .35rem; right: .45rem; color: var(--nb-leaf); font-size: 1.1rem; }
.lk-mini { display: grid; grid-template-columns: 28% 1fr; grid-template-rows: 12px 1fr; height: 62px; border-radius: 6px; overflow: hidden; margin-bottom: .45rem; border: 1px solid var(--nb-line); }
.lk-mini .s { grid-row: 1 / 3; }
.lk-mini .t { background: #fff; border-bottom: 1px solid #e6e9ef; }
.lk-mini .b { display: flex; align-items: center; gap: 6px; padding: 6px; }
.lk-mini .b i { display: block; height: 14px; flex: 1; background: #fff; border-radius: 3px; border: 1px solid #e6e9ef; }
.lk-mini .b em { display: block; height: 10px; width: 22px; border-radius: 3px; }
.lk-preset b { display: block; font-size: .9rem; color: var(--nb-ink); }
.lk-preset span.d { display: block; font-size: .78rem; color: var(--nb-muted); line-height: 1.3; }
.lk-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.lk-sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--nb-line); cursor: pointer; display: grid; place-items: center; color: #fff; padding: 0; }
.lk-sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--nb-ink); }
.lk-sw[aria-checked="true"]::before { content: "\F26E"; font-family: bootstrap-icons; font-size: 1rem; }
.lk-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #eef0f4; border-radius: 9px; }
.lk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lk-seg label { padding: .35rem .75rem; border-radius: 7px; font-size: .88rem; cursor: pointer; color: var(--nb-text); min-height: 34px; display: flex; align-items: center; }
.lk-seg input:checked + label { background: #fff; color: var(--nb-leaf); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.lk-seg input:focus-visible + label { outline: 2px solid var(--nb-marigold); outline-offset: 1px; }
.lk-live { position: sticky; top: 64px; z-index: 5; }
/* Task 67: businesses list */
.bz-filters { justify-content: flex-start; }
.bz-search { position: relative; flex: 1 1 18rem; min-width: 14rem; }
.bz-search .bi { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--nb-muted); }
.bz-search .form-control { padding-left: 2.2rem; }
.bz-auto { width: auto; max-width: 13rem; flex: 0 1 auto; }
.bz-sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.bz-sort .bi { font-size: .7rem; opacity: .55; }
.bz-sort.on { color: var(--nb-ink); }
.bz-sort.on .bi { opacity: 1; color: var(--nb-leaf); }
.bz-sort:hover { color: var(--nb-ink); }
.bz-ico { width: 34px; padding-left: 0; padding-right: 0; }
.bz-table tr.bz-off td { background: #fbf6f6; }
@media (min-width: 768px) { .bz-table td[data-label="Owner"] { min-width: 14rem; } .bz-table td[data-label="Business"] { min-width: 12rem; } }
@media (max-width: 767.98px) {
  .bz-auto { max-width: none; flex: 1 1 45%; }
  .bz-table tr { grid-template-columns: 1fr; }
  .bz-table td[data-label] > span { max-width: 68%; }
  .aff-table td[data-label="Business"] { display: block; margin-bottom: .3rem; }
  .aff-table td[data-label="Business"]::before { content: none; }
  .bz-table td:last-child .btn.bz-ico { width: auto; flex: 1; }
  .bz-table td:last-child { display: flex; gap: .4rem; grid-column: auto; }
  .bz-table td:last-child .dropdown { flex: 1; }
  .bz-table td:last-child .dropdown .btn { width: 100%; }
}
/* Task 68: module switches on the super admin's shop page */
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .5rem; }
.mc-item { border: 1px solid var(--nb-line); border-radius: 8px; padding: .55rem .7rem; background: #fafbfc; }
.mc-item.on { background: #fff; border-color: rgba(var(--bs-primary-rgb), .35); }
.mc-item .form-check { padding-left: 2.9em; } .mc-item .form-check-input { margin-left: -2.9em; width: 2.3em; height: 1.25em; margin-top: .12em; cursor: pointer; }
.mc-item .form-check-label { cursor: pointer; }
.mc-why { margin-top: .15rem; padding-left: 2.9em; }
.mc-till { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; padding-left: 2.9em; }
.mc-till .form-control { max-width: 10rem; }
.mc-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; background: #c4cad6; }
.mc-dot.plan { background: #0e7c66; } .mc-dot.free { background: #1d4ed8; } .mc-dot.block { background: #b42318; } .mc-dot.owner { background: #b45309; }
.mc-group legend { color: var(--nb-ink); }
/* Task 69: plan cards and the plan form */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.pl-card { background: #fff; border: 1px solid var(--nb-line); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.pl-card.pop { border: 2px solid var(--nb-leaf); }
.pl-card.off { background: #f8f9fb; }
.pl-card.off .pl-price b { color: var(--nb-muted); }
.pl-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.pl-tags:empty { display: none; }
.pl-price b { font-size: 1.6rem; color: var(--nb-ink); font-variant-numeric: tabular-nums; }
.pl-nums { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--nb-line); border-radius: 8px; margin: 0; }
.pl-nums > div { padding: .45rem .6rem; border-right: 1px dashed var(--nb-line); min-width: 0; }
.pl-nums > div:last-child { border-right: 0; }
.pl-nums dt { font-size: .72rem; color: var(--nb-muted); font-weight: 500; order: 2; }
.pl-nums dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-nums > div { display: flex; flex-direction: column-reverse; }
.pl-lim { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; margin: 0; font-size: .85rem; }
.pl-lim > div { display: flex; justify-content: space-between; gap: .5rem; }
.pl-lim dt { font-weight: 400; color: var(--nb-muted); }
.pl-lim dd { margin: 0; font-weight: 600; }
.pl-mods { display: flex; flex-wrap: wrap; gap: .3rem; }
.pl-mod { font-size: .75rem; background: #eef0f4; border-radius: 5px; padding: .15rem .45rem; color: var(--nb-text); }
.pl-mod.all { background: #e3f4ef; color: #0a604f; font-weight: 600; }
.pl-mod.more { background: transparent; border: 1px dashed var(--nb-line); }
.pl-actions { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--nb-line); }
.pl-modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem; }
.pl-modgrid .pm-mod { align-items: center; padding: .45rem .6rem; }
.pl-opt { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--nb-line); border-radius: 8px; padding: .6rem .75rem; height: 100%; cursor: pointer; margin: 0; }
.pl-opt:has(input:checked) { background: #f1faf7; border-color: #b6e0d4; }
.pl-opt .form-check-input { margin-top: .2rem; flex: none; }
.pl-preview { position: sticky; top: 76px; }
.pl-card.pv { box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
.pl-pvlist { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.pl-pvlist li { padding: .2rem 0 .2rem 1.4rem; position: relative; }
.pl-pvlist li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; color: var(--nb-leaf); }
/* Task 70: super admin overview */
.dz-sec { font-size: .8rem; font-weight: 700; color: var(--nb-muted); margin: 0 0 .5rem; }
.dz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.dz-card { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--nb-line); border-radius: 10px; padding: .85rem 1rem; color: inherit; text-decoration: none; min-width: 0; }
a.dz-card:hover { border-color: rgba(var(--bs-primary-rgb), .45); }
.dz-card .l { display: block; font-size: .82rem; color: var(--nb-muted); font-weight: 600; }
.dz-card b { display: block; font-size: 1.45rem; color: var(--nb-ink); font-variant-numeric: tabular-nums; line-height: 1.25; }
.dz-card .s { display: block; font-size: .8rem; color: var(--nb-muted); }
.dz-ico { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 8px; display: grid; place-items: center; background: #e6f0fb; color: #1d4f86; font-size: 1.05rem; }
.dz-ico.ok { background: #e3f4ef; color: #0a604f; } .dz-ico.warn { background: #fff3d6; color: #7a4c00; } .dz-ico.bad { background: #fde9e7; color: #8f1d14; } .dz-ico.info { background: #efe9fb; color: #5b21b6; }
.dz-svg { width: 100%; height: auto; display: block; overflow: visible; }
.dz-grid { stroke: #e8ebf0; stroke-width: 1; }
.dz-base { stroke: #c9cfdb; stroke-width: 1; }
.dz-ax { font-size: 11px; fill: var(--nb-muted); }
.dz-bar { fill: var(--nb-leaf); opacity: .85; }
.dz-bar.now { opacity: 1; }
.dz-hit { fill: transparent; cursor: default; outline: none; }
.dz-hit.on, .dz-hit:focus-visible { fill: rgba(28, 37, 65, .05); }
.dz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dz-line.dash { stroke-dasharray: 5 4; }
.dz-line.s1, .dz-key.s1 { stroke: #2a78d6; } .dz-line.s2, .dz-key.s2 { stroke: #eb6834; }
.dz-dot { stroke: #fff; stroke-width: 2; pointer-events: none; }
.dz-dot.s1 { fill: #2a78d6; } .dz-dot.s2 { fill: #eb6834; }
.dz-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: .35rem; }
.dz-key.s1 { border-color: #2a78d6; } .dz-key.s2 { border-color: #eb6834; border-top-style: dashed; }
.dz-tip { position: fixed; z-index: 1080; background: var(--nb-ink); color: #fff; font-size: .8rem; padding: .45rem .6rem; border-radius: 6px; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.dz-meter { display: block; height: 4px; background: #eef0f4; border-radius: 2px; margin-top: .3rem; max-width: 12rem; }
.dz-meter i { display: block; height: 100%; background: rgba(var(--bs-primary-rgb), .55); border-radius: 2px; }
.dz-plans td { vertical-align: top; }
@media (min-width: 768px) { .sb-table td[data-label="Status"] { min-width: 8.5rem; } .sb-table td[data-label="Payment"] { min-width: 8rem; } }
.nb-panel .table-responsive { position: relative; }   /* visually-hidden text inside a wide table stays inside it */
.sb-req { min-width: 9rem; }
/* Task 72: Manage modules */
.sm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; }
.sm-stat { text-align: left; background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: .7rem; padding: .7rem 1rem; display: flex; flex-direction: column; gap: .1rem; color: inherit; }
.sm-stat b { font-size: 1.5rem; line-height: 1.1; }
.sm-stat span { color: var(--bs-secondary-color); font-size: .88rem; }
.sm-stat:hover { border-color: var(--bs-primary); }
.sm-stat.active { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary) inset; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1rem; }
.sm-card { background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color); border-top: 4px solid #c9ced8; border-radius: .7rem; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.sm-card.installed { border-top-color: #12a17b; }
.sm-card.update { border-top-color: #2a78d6; }
.sm-card.removed { border-top-color: #d64545; }
.sm-card .h6 { font-weight: 700; overflow-wrap: anywhere; }
.sm-desc { margin: 0; font-size: .92rem; color: var(--bs-secondary-color); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sm-use { background: var(--bs-tertiary-bg); border-radius: .5rem; padding: .55rem .7rem; font-size: .85rem; display: grid; gap: .15rem; }
.sm-mods summary, .sm-block summary { cursor: pointer; font-size: .85rem; color: var(--bs-secondary-color); }
.sm-block summary { color: #8a5a00; }
.sm-block ul { padding-left: 1rem; margin-top: .3rem; }
.sm-block code { font-size: .78rem; word-break: break-all; }
.sm-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding-top: .3rem; }
