/* ==========================================================================
   SiteBuildIndia Portal v2 — design system (v2.1)
   Identity from the logo + invoice template: navy ink, a cyan→blue→violet→magenta
   signature sweep used sparingly (top hairline, active nav, one hero figure per page),
   white surfaces on a cool canvas. Headings & figures: Plus Jakarta Sans. Body: Inter.
   ========================================================================== */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url('../fonts/jakarta-500.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url('../fonts/jakarta-600.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url('../fonts/jakarta-700.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url('../fonts/jakarta-800.woff2') format('woff2'); }

:root {
  --ink: #1b1846;          /* logo navy — headings, primary text */
  --ink-2: #4a4870;        /* secondary text */
  --muted: #8a89a6;        /* captions */
  --line: #e7e7f1;         /* hairlines */
  --line-2: #d8d8e8;       /* input borders */
  --canvas: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f9f9fd;
  --tint: #f1f0fe;         /* violet-tinted hover / selected */

  --blue: #2f5bea;
  --cyan: #16bfe6;
  --violet: #6a3de8;
  --magenta: #c23bd4;
  --primary: #4a36d9;      /* indigo-violet between blue and violet */
  --primary-hover: #3b29bd;
  --primary-soft: #efedff;

  --green: #0e9f6e;  --green-soft: #e3f6ee;
  --amber: #c97a06;  --amber-soft: #fdf3e1;
  --red: #dc3545;    --red-soft: #fdecee;
  --sky: #0b8fb3;    --sky-soft: #e2f5fa;
  --violet-soft: #f2ebff;
  --pink-soft: #fbe9fb;

  --sweep: linear-gradient(90deg, #16bfe6 0%, #2f5bea 34%, #6a3de8 68%, #c23bd4 100%);
  --hero: linear-gradient(115deg, #2a2580 0%, #4a36d9 55%, #6a3de8 100%);
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(27, 24, 70, .05);
  --sh-2: 0 2px 6px rgba(27, 24, 70, .05), 0 12px 28px -18px rgba(27, 24, 70, .25);
  --sh-3: 0 24px 60px -24px rgba(27, 24, 70, .45);
  --sidebar-w: 260px;
  --topbar-h: 62px;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-head: 'Jakarta', 'Inter', system-ui, sans-serif;

  /* legacy aliases used by pages */
  --text: var(--ink); --text-2: var(--ink-2); --border: var(--line); --border-strong: var(--line-2);
  --bg: var(--canvas); --success: var(--green); --warning: var(--amber); --danger: var(--red); --info: var(--sky);
  --success-soft: var(--green-soft); --warning-soft: var(--amber-soft); --danger-soft: var(--red-soft); --info-soft: var(--sky-soft);
  --indigo-500: var(--primary); --violet-600: var(--violet); --navy-800: var(--ink); --grad-brand: var(--sweep);
  --radius-lg: var(--r-lg); --radius: var(--r); --shadow: var(--sh-2); --shadow-lg: var(--sh-3); --shadow-sm: var(--sh-1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink); font-family: var(--f-head); letter-spacing: -0.015em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.svg-i { flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(74, 54, 217, .35); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- App frame ---------- */
.app { min-height: 100vh; }
.app::before { content: ''; position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--sweep); z-index: 80; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease; }
.sidebar-brand { padding: 22px 22px 14px; display: block; }
.sidebar-brand img.wordmark { height: 40px; width: auto; display: block; }
.sidebar-brand .b-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.sidebar-brand .b-name, .sidebar-brand img:not(.wordmark) { display: none; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 14px 16px; scrollbar-width: thin; scrollbar-color: #dcdcea transparent; }
.nav-group { margin-top: 16px; }
.nav-group-title { font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 0 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 13.8px; position: relative; }
.nav-link .svg-i { color: #9a99b8; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link:hover .svg-i { color: var(--primary); }
.nav-link.active { background: var(--tint); color: var(--ink); font-weight: 650; }
.nav-link.active .svg-i { color: var(--primary); }
.nav-link.active::before { content: ''; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.sidebar-foot { padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.sidebar-user .u-name { font-weight: 650; font-size: 13px; color: var(--ink); }
.sidebar-user .u-role { font-size: 11.5px; color: var(--muted); }
.sidebar-user .icon-btn { background: #fff !important; border-color: var(--line) !important; color: var(--ink-2) !important; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(245, 246, 251, .88); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .menu-btn { display: none; }
.topbar-title { font-weight: 700; font-family: var(--f-head); font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search { margin-left: auto; position: relative; width: min(400px, 38vw); }
.topbar-search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 12px 0 38px; font: inherit; color: var(--ink); }
.topbar-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 54, 217, .12); }
.topbar-search .svg-i { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; position: relative; }
.icon-btn:hover { color: var(--primary); border-color: #cfcbf5; }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
.content { padding: 26px 28px 40px; flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; }
.page-head .crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.page-head .crumbs a { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--primary); }
.page-head .sub { color: var(--ink-2); margin-top: 6px; font-size: 14px; max-width: 760px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.backdrop { display: none; }

/* Modal (popup) mode: the same pages render inside an iframe without the frame */
body.is-modal { background: var(--surface); }
body.is-modal .app::before { display: none; }
body.is-modal .main { margin-left: 0; }
body.is-modal .content { padding: 20px 22px 28px; max-width: none; }
body.is-modal .page-head { margin-bottom: 16px; }
body.is-modal .page-head h1 { font-size: 20px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-width: 0; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .row > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h3 { display: flex; align-items: center; gap: 9px; }
.card-head h3 .svg-i { color: var(--primary); }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); } .text-2 { color: var(--ink-2); } .small { font-size: 12.8px; } .tiny { font-size: 11.8px; }
.text-right { text-align: right; } .text-center { text-align: center; } .nowrap { white-space: nowrap; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.text-success { color: var(--green); } .text-danger { color: var(--red); } .text-warning { color: var(--amber); }
.fig { font-family: var(--f-head); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Summary strip (key figures of a module) ---------- */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-bottom: 18px; overflow: hidden; }
.summary .s-item { padding: 15px 16px; border-right: 1px solid var(--line); min-width: 0; position: relative; display: block; color: inherit; }
.summary .s-item:last-child { border-right: 0; }
a.s-item:hover { background: var(--surface-2); color: inherit; }
.summary .s-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.summary .s-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.summary .s-value { font-family: var(--f-head); font-size: clamp(18px, 1.55vw, 24px); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary .s-foot { font-size: 12px; color: var(--muted); margin-top: 2px; }
.summary .s-item.hero { background: var(--hero); color: #fff; border-right-color: transparent; }
.summary .s-item.hero .s-label, .summary .s-item.hero .s-foot { color: rgba(255, 255, 255, .78); }
.summary .s-item.hero .s-label .dot { background: var(--cyan); }
.dot-green { background: var(--green) !important; } .dot-red { background: var(--red) !important; } .dot-amber { background: var(--amber) !important; }
.dot-blue { background: var(--blue) !important; } .dot-violet { background: var(--violet) !important; } .dot-cyan { background: var(--cyan) !important; } .dot-magenta { background: var(--magenta) !important; }

/* KPI tiles (dashboard + legacy pages) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; position: relative; overflow: hidden; display: block; color: var(--ink); box-shadow: var(--sh-1); min-width: 0; }
a.kpi:hover { border-color: #cfcbf5; box-shadow: var(--sh-2); color: var(--ink); }
.kpi .k-label { color: var(--ink-2); font-size: 12.8px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi .k-value { font-family: var(--f-head); font-size: 25px; font-weight: 800; margin-top: 8px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-foot { font-size: 12px; color: var(--muted); margin-top: 3px; }
.kpi .k-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.kpi.accent, .kpi.hero { background: var(--hero); color: #fff; border-color: transparent; }
.kpi.accent .k-label, .kpi.accent .k-foot, .kpi.hero .k-label, .kpi.hero .k-foot { color: rgba(255, 255, 255, .8); }
.kpi.accent .k-icon, .kpi.hero .k-icon { background: rgba(255, 255, 255, .16) !important; color: #fff !important; }
.tone-indigo { background: var(--primary-soft); color: var(--primary); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-cyan { background: var(--sky-soft); color: var(--sky); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-pink { background: var(--pink-soft); color: var(--magenta); }

/* ---------- Module overview tiles (dashboard) ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); box-shadow: var(--sh-1); min-width: 0; }
.module:hover { border-color: #cfcbf5; box-shadow: var(--sh-2); color: var(--ink); }
.module .m-head { display: flex; align-items: center; gap: 11px; }
.module .m-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.module .m-title { font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.module .m-go { margin-left: auto; color: var(--muted); }
.module:hover .m-go { color: var(--primary); }
.module .m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.module .m-stat { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.module .m-stat b { display: block; font-family: var(--f-head); font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module .m-stat span { font-size: 11.5px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; text-decoration: none; line-height: 1; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(74, 54, 217, .35), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-brand { background: linear-gradient(100deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 6px 16px -8px rgba(74, 54, 217, .7); }
.btn-brand:hover { filter: brightness(1.07); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0b855c; color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #f2c5ca; }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-warning { background: #fff; color: var(--amber); border-color: #f1d6a6; }
.btn-warning:hover { background: var(--amber); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.8px; border-radius: 9px; }
.btn-xs { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn-icon { width: 34px; padding: 0; }
.btn-sm.btn-icon { width: 32px; } .btn-xs.btn-icon { width: 27px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.8px; font-weight: 600; line-height: 1.65; white-space: nowrap; background: #eeeef6; color: var(--ink-2); vertical-align: middle; }
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-green { background: var(--green-soft); color: var(--green); }
.b-amber { background: var(--amber-soft); color: #a86400; }
.b-red { background: var(--red-soft); color: var(--red); }
.b-indigo { background: var(--primary-soft); color: var(--primary); }
.b-cyan { background: var(--sky-soft); color: var(--sky); }
.b-violet { background: var(--violet-soft); color: var(--violet); }
.b-pink { background: var(--pink-soft); color: var(--magenta); }
.b-gray { background: #eeeef6; color: var(--ink-2); }
.b-dark { background: var(--ink); color: #fff; }
.b-gst { background: linear-gradient(100deg, #e3f4fd, #efe8ff); color: #3c2bb8; box-shadow: inset 0 0 0 1px #d6d0fb; }
/* Billing entity tag: "SiteBuildIndia Tech (GST)" */
.co-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.co-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.co-tag.gst { background: #efeaff; color: #4128c8; }
.co-tag.gst::before { background: linear-gradient(135deg, var(--violet), var(--magenta)); }
.co-tag.non { background: #e6f5fb; color: #0a7697; }
.co-tag.non::before { background: linear-gradient(135deg, var(--cyan), var(--blue)); }

/* ---------- Tables (never scroll sideways) ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th a { color: inherit; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: #fbfbff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; }
.table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
.table .t-title { font-weight: 650; color: var(--ink); }
.table .t-sub { font-size: 12.3px; color: var(--muted); margin-top: 1px; }
.table a.t-title:hover { color: var(--primary); }
.table-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
tr.row-muted td { opacity: .62; }
tr[data-href] { cursor: pointer; }
.cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell > div { min-width: 0; }
/* Column priority: hide secondary columns on narrower screens instead of scrolling */
@media (max-width: 1380px) { .col-xl, .col-lg { display: none !important; } }
@media (max-width: 1180px) { .col-lg, .col-md { display: none !important; } }
@media (max-width: 980px) { .col-md { display: none !important; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2, .form-grid .full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, .label { display: block; font-weight: 600; font-size: 12.8px; color: var(--ink-2); margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; padding: 0 12px; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a89a6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 54, 217, .13); }
.input[readonly] { background: var(--surface-2); }
.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(220, 53, 69, .1) !important; }
.field-error { color: var(--red); font-size: 12px; margin-top: 5px; font-weight: 500; }
.help { color: var(--muted); font-size: 12px; margin-top: 5px; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.input-group .addon:first-child { border-radius: 10px 0 0 10px; border-right: 0; }
.input-group .addon:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.input-group .input:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group .input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-weight: 500; color: var(--ink); }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.radio-card { position: relative; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; display: block; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .rc-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.radio-card .rc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(74, 54, 217, .1); }
.radio-card.disabled { opacity: .5; cursor: not-allowed; }
.form-section { padding-top: 6px; margin-top: 18px; border-top: 1px dashed var(--line); }
.form-section > h4 { font-size: 13.5px; color: var(--ink); margin: 12px 0 12px; font-family: var(--f-head); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.calc-box { background: linear-gradient(135deg, #f4f6ff, #f8f3ff); border: 1px solid #e3e0fb; border-radius: 12px; padding: 14px 16px; }
.calc-box .calc-row { display: flex; justify-content: space-between; padding: 3px 0; font-variant-numeric: tabular-nums; }
.calc-box .calc-row.total { border-top: 1px solid #dcd8fb; margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 16px; font-family: var(--f-head); }
/* Toggle switch: <label class="switch"><input type="checkbox"><span></span> Label</label> */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 23px; border-radius: 999px; background: #d4d3e4; position: relative; transition: background .15s; flex-shrink: 0; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + span { background: linear-gradient(100deg, var(--blue), var(--violet)); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 3px solid rgba(74, 54, 217, .35); outline-offset: 2px; }

/* ---------- Filter bar ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.filters .input, .filters .select { height: 36px; width: auto; min-width: 140px; font-size: 13.3px; }
.filters .search-input { min-width: 220px; flex: 1; max-width: 360px; }
.filters .f-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.filters details.more { position: relative; }
.filters details.more > summary { list-style: none; cursor: pointer; }
.filters details.more > summary::-webkit-details-marker { display: none; }
.filters .more-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; width: 100%; padding: 12px 0 2px; }
.filters .more-panel .field label { font-size: 12px; margin-bottom: 4px; }
.filters .more-panel .input, .filters .more-panel .select { width: 100%; min-width: 0; }
.filter-break { flex-basis: 100%; height: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 12.8px; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { background: rgba(27, 24, 70, .07); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.chip.active .count { background: rgba(255, 255, 255, .2); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 13px 14px; font: inherit; font-weight: 600; color: var(--ink-2); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; background: none; display: inline-flex; gap: 7px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { background: #eeeef6; color: var(--ink-2); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.tab.active .count { background: var(--primary-soft); color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Key-value ---------- */
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 14px; }
.kv dt { color: var(--muted); font-size: 12.8px; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Avatars (colour derived from the name) ---------- */
.avatar { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); flex-shrink: 0; font-family: var(--f-head); }
.avatar.lg { width: 60px; height: 60px; border-radius: 16px; font-size: 21px; }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }
.av-0 { background: linear-gradient(135deg, #16bfe6, #2f5bea); } .av-1 { background: linear-gradient(135deg, #2f5bea, #6a3de8); }
.av-2 { background: linear-gradient(135deg, #6a3de8, #c23bd4); } .av-3 { background: linear-gradient(135deg, #c23bd4, #e2557a); }
.av-4 { background: linear-gradient(135deg, #0e9f6e, #16bfe6); } .av-5 { background: linear-gradient(135deg, #f59e0b, #e2557a); }
.av-6 { background: linear-gradient(135deg, #1b1846, #4a36d9); } .av-7 { background: linear-gradient(135deg, #0b8fb3, #6a3de8); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid; margin-bottom: 14px; font-weight: 500; }
.alert-success { background: var(--green-soft); border-color: #b9e8d4; color: #07603f; }
.alert-error, .alert-danger { background: var(--red-soft); border-color: #f5c6cb; color: #9b1c27; }
.alert-warning { background: var(--amber-soft); border-color: #f3dcae; color: #864c00; }
.alert-info { background: var(--sky-soft); border-color: #bce6f2; color: #075f78; }
.alert .x { margin-left: auto; cursor: pointer; opacity: .6; background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; }
.toasts { position: fixed; right: 18px; top: 74px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toasts .alert { box-shadow: var(--sh-3); margin: 0; animation: toastIn .25s ease; }
@keyframes toastIn { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 44px 20px; color: var(--ink-2); }
.empty-state .empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 420px; margin: 0 auto 14px; }

/* ---------- Modal + quick-view popup ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px 16px; background: rgba(27, 24, 70, .42); backdrop-filter: blur(3px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-dialog { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; box-shadow: var(--sh-3); animation: modalIn .18s ease; position: relative; }
.modal-dialog::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 18px 18px 0 0; background: var(--sweep); }
.modal-dialog.lg { max-width: 800px; }
.modal-dialog.sm { max-width: 430px; }
@keyframes modalIn { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 18px 18px; flex-wrap: wrap; }
.qv { position: fixed; inset: 0; z-index: 160; display: none; background: rgba(27, 24, 70, .42); backdrop-filter: blur(3px); }
.qv.open { display: block; }
.qv-panel { position: absolute; top: 3vh; bottom: 3vh; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100vw - 32px)); background: #fff; border-radius: 18px; box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden; animation: modalIn .18s ease; }
.qv-panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sweep); z-index: 2; }
.qv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.qv-bar .qv-title { font-weight: 700; font-family: var(--f-head); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qv iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.qv-loading { position: absolute; top: 60px; left: 0; right: 0; text-align: center; color: var(--muted); }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); padding: 6px; z-index: 90; display: none; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--tint); color: var(--primary); }
.dropdown-menu .danger { color: var(--red); }
.dropdown-menu .sep { height: 1px; background: var(--line); margin: 5px 0; }
.notif-menu { width: 340px; max-height: 420px; overflow-y: auto; }
.notif-item { display: block; padding: 10px; border-radius: 8px; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--tint); }
.notif-item .n-title { font-weight: 600; color: var(--ink); font-size: 13px; }
.notif-item .n-msg { color: var(--ink-2); font-size: 12.5px; }
.notif-item .n-time { color: var(--muted); font-size: 11.5px; }

/* ---------- Autocomplete ---------- */
.ac-wrap { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); z-index: 95; max-height: 300px; overflow-y: auto; padding: 4px; }
.ac-item { padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.ac-item:hover, .ac-item.hl { background: var(--primary-soft); }
.ac-item .t { font-weight: 600; } .ac-item .s { font-size: 12px; color: var(--muted); }
.ac-selected { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; background: var(--surface-2); }
.ac-selected .clear { margin-left: auto; cursor: pointer; color: var(--muted); background: none; border: 0; font-size: 18px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .t-dot { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); border: 2px solid #fff; box-shadow: 0 0 0 1px #d9d5fb; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.timeline .t-head { font-weight: 600; font-size: 13px; }
.timeline .t-meta { color: var(--muted); font-size: 12px; }
.timeline .t-body { color: var(--ink-2); margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Profile header (customer / project) ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px 22px 18px; flex-wrap: wrap; position: relative; }
.profile-head .p-name { font-size: 22px; font-weight: 800; font-family: var(--f-head); letter-spacing: -0.02em; }
.profile-head .p-meta { color: var(--ink-2); display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; margin-top: 6px; }
.profile-head .p-meta span { display: inline-flex; gap: 6px; align-items: center; }
.profile-head .p-meta .svg-i { color: var(--muted); }
.profile-cover { height: 74px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: radial-gradient(60% 140% at 0% 0%, rgba(22, 191, 230, .55), rgba(22, 191, 230, 0) 60%), radial-gradient(60% 160% at 100% 0%, rgba(194, 59, 212, .5), rgba(194, 59, 212, 0) 60%), var(--hero); }
.profile-cover + .profile-head { margin-top: -38px; }
.profile-cover + .profile-head .avatar.lg { box-shadow: 0 0 0 4px #fff; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.mini-stats > div { padding: 14px 20px; border-right: 1px solid var(--line); min-width: 0; }
.mini-stats > div:last-child { border-right: 0; }
.mini-stats .ms-label { font-size: 12px; color: var(--muted); }
.mini-stats .ms-value { font-size: 18.5px; font-weight: 800; font-family: var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.progress { height: 6px; background: #ececf6; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--sweep); border-radius: 999px; }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: 12.8px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pager .pager-info { padding: 0; }
.pager-links { display: flex; gap: 4px; flex-wrap: wrap; }
.per-page { display: inline-flex; align-items: center; gap: 6px; }
.per-page a { padding: 3px 9px; border-radius: 7px; color: var(--ink-2); font-weight: 600; border: 1px solid transparent; }
.per-page a:hover { border-color: var(--line-2); color: var(--ink); }
.per-page a.on { background: var(--ink); color: #fff; }

/* ---------- Auth pages ---------- */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; }
.auth-art { position: relative; overflow: hidden; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(70% 55% at 0% 0%, rgba(22, 191, 230, .55), rgba(22, 191, 230, 0) 62%), radial-gradient(60% 55% at 100% 100%, rgba(194, 59, 212, .6), rgba(194, 59, 212, 0) 62%), linear-gradient(150deg, #241f74 0%, #3b2bc4 52%, #5b33d6 100%); }
.auth-art .art-logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); }
.auth-art .art-logo img { height: 34px; display: block; }
.auth-art h2 { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.15; max-width: 470px; letter-spacing: -0.025em; }
.auth-art p { color: rgba(255, 255, 255, .82); max-width: 460px; font-size: 15.5px; margin-top: 14px; }
.auth-art .feat { display: flex; gap: 12px; align-items: center; color: #fff; margin-top: 14px; font-weight: 500; }
.auth-art .feat .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; }
.auth-art .glow-grid { display: none; }
.auth-art .preview { margin-top: 28px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 16px 18px; max-width: 440px; backdrop-filter: blur(6px); }
.auth-art .preview .pv-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.auth-art .preview .pv-row:last-child { border-bottom: 0; }
.auth-art .preview .pv-row b { font-family: var(--f-head); }
.auth-art .copy { color: rgba(255, 255, 255, .6); font-size: 12px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.auth-panel::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sweep); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { height: 44px; margin-bottom: 30px; }
.auth-card h1 { font-size: 27px; margin-bottom: 6px; }
.auth-card .lead { color: var(--ink-2); margin-bottom: 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .input { height: 46px; border-radius: 12px; }
.auth-card .btn-block { height: 48px; border-radius: 12px; font-size: 14.5px; }
.otp-inputs { display: flex; gap: 8px; justify-content: space-between; margin: 8px 0 18px; }
.otp-inputs input { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 800; border: 1.5px solid var(--line-2); border-radius: 14px; font-family: var(--f-head); color: var(--ink); }
.otp-inputs input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(74, 54, 217, .13); }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }

/* ---------- Documents / money ---------- */
.doc-preview { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.money-big { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-family: var(--f-head); }
.hero-band { background: var(--hero); color: #fff; border-radius: 14px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-band .hb-label { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.hero-band .hb-value { font-family: var(--f-head); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }

/* ---------- Charts ---------- */
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 220px; }
.bar-list .bl-row { display: grid; grid-template-columns: minmax(0, 160px) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.bar-list .bl-bar { height: 8px; background: #ececf6; border-radius: 999px; overflow: hidden; }
.bar-list .bl-bar span { display: block; height: 100%; background: var(--sweep); }

/* ---------- Settings layout ---------- */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; position: sticky; top: 80px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.settings-nav a .svg-i { color: #9a99b8; }
.settings-nav a:hover { background: var(--surface-2); color: var(--ink); }
.settings-nav a.active { background: var(--tint); color: var(--primary); }
.settings-nav a.active .svg-i { color: var(--primary); }
.settings-nav .sn-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ---------- Customer portal ---------- */
.portal-body { background: var(--canvas); }
.portal-top { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.portal-top::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sweep); }
.portal-top .inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 22px; height: 68px; }
.portal-top .logo { height: 36px; }
.portal-nav { display: flex; gap: 2px; margin-left: 18px; }
.portal-nav a { padding: 9px 13px; border-radius: 10px; color: var(--ink-2); font-weight: 600; display: inline-flex; gap: 7px; align-items: center; }
.portal-nav a .svg-i { color: #9a99b8; }
.portal-nav a:hover { background: var(--surface-2); color: var(--ink); }
.portal-nav a.active { background: var(--tint); color: var(--primary); }
.portal-nav a.active .svg-i { color: var(--primary); }
.portal-content { max-width: 1200px; margin: 0 auto; padding: 26px 22px 96px; }
.portal-hero { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 30px 32px; margin-bottom: 20px;
  background: radial-gradient(55% 120% at 0% 0%, rgba(22, 191, 230, .55), rgba(22, 191, 230, 0) 60%), radial-gradient(50% 140% at 100% 100%, rgba(194, 59, 212, .55), rgba(194, 59, 212, 0) 62%), linear-gradient(130deg, #241f74, #3b2bc4 55%, #5b33d6); }
.portal-hero h1 { color: #fff; font-size: 28px; }
.portal-hero p { color: rgba(255, 255, 255, .84); margin: 8px 0 0; max-width: 620px; }
.portal-hero .hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.portal-hero .hero-stat { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 12px 16px; min-width: 150px; }
.portal-hero .hero-stat b { display: block; font-family: var(--f-head); font-size: 22px; font-weight: 800; }
.portal-hero .hero-stat span { font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.bottom-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .settings-nav a { white-space: nowrap; }
  .settings-nav .sn-sub { display: none; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--sh-3); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(27, 24, 70, .4); z-index: 55; }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar-search { display: none; }
  .content { padding: 18px 16px 32px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .portal-nav { display: none; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 50; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
  .bottom-nav a.active { color: var(--primary); }
  .qv-panel { top: 0; bottom: 0; width: 100vw; border-radius: 0; }
}
@media (max-width: 640px) {
  h1 { font-size: 20px; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 13px; }
  .kpi .k-value { font-size: 18px; }
  .kpi .k-foot { font-size: 11px; }
  .kpi .k-label { font-size: 12px; gap: 6px; }
  .kpi .k-icon { display: none; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary .s-item { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .summary .s-item:nth-child(2n) { border-right: 0; }
  .summary .s-value { font-size: 18px; }
  .modules { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .filters .input, .filters .select, .filters .search-input { min-width: 0; width: 100%; max-width: none; flex: 1 1 100%; }
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .table.responsive td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
  .table.responsive td.td-main { display: block; text-align: left; }
  .table.responsive td.td-main::before { display: none; }
  .table.responsive td[class*="col-"] { display: none !important; }
  .table.responsive tfoot { display: block; }
  .table-actions { justify-content: flex-start; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
  .otp-inputs input { width: 44px; height: 54px; }
  .mini-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .portal-hero { padding: 22px 20px; border-radius: 18px; }
  .portal-hero h1 { font-size: 22px; }
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .page-actions, .no-print, .filters, .bottom-nav, .app::before { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.auth-card .logo { display: none; }
@media (max-width: 900px) { .auth-card .logo { display: block; } }

/* == leads / customers (workstream A) == */
.more-panel[data-more-panel] { display: none; }
.filters:has(details.more[open]) > .more-panel[data-more-panel] { display: grid; }
.filters details.more[open] > summary { background: var(--tint); border-color: #cfcbf5; color: var(--primary); }
.ld-src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px 2px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 11%, #fff); white-space: nowrap; }
.ld-src::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cu-head-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; align-self: flex-start; padding-top: 44px; }
.cu-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cu-co-list { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cu-portal { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: linear-gradient(135deg, #f7f8ff, #fbf7ff); }
.cu-portal .cp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cu-portal .cp-title { font-family: var(--f-head); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cu-portal .cp-meta { color: var(--ink-2); font-size: 12.8px; margin-top: 8px; }
.cu-portal .cp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ld-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ld-head .ld-title { font-family: var(--f-head); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ld-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.ld-req { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 900px) { .cu-head-actions { padding-top: 0; margin-left: 0; } }

/* == portal (customer) == */
.pt-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; position: relative; }
.pt-hero-row .pt-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-hero .btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.portal-hero .btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.portal-hero .btn-white { background: #fff; color: var(--ink); }
.portal-hero .btn-white:hover { background: #f1f0fe; color: var(--primary); }
.portal-hero .pt-eyebrow { font-size: 13px; color: rgba(255, 255, 255, .78); font-weight: 500; }
.portal-hero .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-hero .hero-stat { min-width: 0; }
.portal-hero .hero-stat b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-hero .hero-stat small { display: block; font-size: 11.8px; color: rgba(255, 255, 255, .72); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-hero .hero-stat.alert-stat { background: rgba(255, 255, 255, .95); color: var(--ink); }
.portal-hero .hero-stat.alert-stat span, .portal-hero .hero-stat.alert-stat small { color: var(--ink-2); }
.portal-hero .hero-stat.alert-stat b { color: var(--red); }
.pt-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.pt-sec h2 { font-size: 19px; }
.pt-sec .pt-sub { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.pt-sec > a { font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.pt-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-action { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--ink); box-shadow: var(--sh-1); min-width: 0; }
.pt-action:hover { border-color: #cfcbf5; box-shadow: var(--sh-2); color: var(--ink); }
.pt-action .pa-ic { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pt-action b { display: block; font-family: var(--f-head); font-size: 15px; }
.pt-action span { font-size: 12.5px; color: var(--muted); }
.pt-action .pa-go { margin-left: auto; color: var(--muted); }
.pt-action:hover .pa-go { color: var(--primary); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); display: flex; flex-direction: column; overflow: hidden; min-width: 0; position: relative; }
.pt-card:hover { border-color: #cfcbf5; box-shadow: var(--sh-2); }
.pt-card::before { content: ''; height: 4px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.pt-card.t-service::before { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.pt-card.t-module::before { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.pt-card.is-inactive { opacity: .72; }
.pt-card.is-inactive::before { background: #d4d3e4; }
.pt-card .pc-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pt-card .pc-top { display: flex; align-items: flex-start; gap: 12px; }
.pt-card .pc-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pt-card .pc-title { font-family: var(--f-head); font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.pt-card a.pc-title:hover { color: var(--primary); }
.pt-card .pc-no { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pt-card .pc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-card .pc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pt-card .pc-row { background: var(--surface-2); border-radius: 10px; padding: 8px 11px; min-width: 0; }
.pt-card .pc-row span { display: block; font-size: 11.5px; color: var(--muted); }
.pt-card .pc-row b { display: block; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-card .pc-row small { display: block; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-card .pc-foot { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.pt-card .pc-foot .pc-link { font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.pt-card .pc-mods { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-card .pc-mods a { font-size: 12px; background: var(--violet-soft); color: var(--violet); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.pt-list { list-style: none; margin: 0; padding: 4px 0; }
.pt-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.pt-list li:last-child { border-bottom: 0; }
.pt-list .pl-ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pt-list .pl-main { flex: 1; min-width: 0; }
.pt-list .pl-title { font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pt-list a.pl-title:hover { color: var(--primary); }
.pt-list .pl-sub { font-size: 12.3px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-list .pl-amt { font-family: var(--f-head); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.pt-list .pl-amt small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 11.5px; color: var(--muted); }
.pt-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pt-paybox { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(135deg, #f4f6ff, #f8f3ff); border-top: 1px solid #e3e0fb; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.pt-paybox .svg-i { color: var(--primary); }
.pt-chat { display: flex; flex-direction: column; gap: 14px; }
.pt-msg { display: flex; gap: 10px; max-width: 88%; }
.pt-msg .pm-bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 11px 14px; min-width: 0; }
.pt-msg .pm-head { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.pt-msg .pm-head small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.pt-msg .pm-text { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.pt-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.pt-msg.mine .pm-bubble { background: linear-gradient(135deg, #efedff, #f5efff); border-color: #dcd6fb; border-radius: 16px 4px 16px 16px; }
.pt-msg .avatar { width: 34px; height: 34px; font-size: 12px; }
.pt-support-av { background: #fff; border: 1px solid var(--line); border-radius: 11px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.pt-support-av img { width: 26px; height: 26px; object-fit: contain; }
.pt-domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pt-dom { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pt-dom .pd-name { font-family: var(--f-head); font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.pt-dom .pd-ns { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; padding: 8px 11px; white-space: pre-line; overflow-wrap: anywhere; }
.pt-dom .pd-exp { display: flex; align-items: center; gap: 10px; }
.pt-dom .pd-exp .progress { flex: 1; }
.pt-cover { height: 96px; border-radius: 18px 18px 0 0; background: radial-gradient(60% 140% at 0% 0%, rgba(22, 191, 230, .55), rgba(22, 191, 230, 0) 60%), radial-gradient(60% 160% at 100% 0%, rgba(194, 59, 212, .5), rgba(194, 59, 212, 0) 60%), var(--hero); }
.pt-cover + .profile-head { margin-top: -44px; }
.pt-cover + .profile-head .avatar.lg { box-shadow: 0 0 0 4px #fff; }
.pt-cover + .profile-head .p-name { margin-top: 30px; }
.pt-user-btn { display: inline-flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.pt-user-btn:hover { border-color: #cfcbf5; }
.pt-user-btn .pu-name { font-weight: 650; font-size: 13px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.pt-footer a { color: var(--ink-2); }
.pt-cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pt-cat-cards .radio-card .rc-title .svg-i { color: var(--primary); }
.pt-steps { display: grid; gap: 10px; }
.pt-steps .ps { display: flex; gap: 12px; align-items: flex-start; }
.pt-steps .ps-n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; flex-shrink: 0; }
@media (max-width: 1080px) {
  .portal-hero .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pt-actions { grid-template-columns: 1fr; }
  .pt-user-btn .pu-name { display: none; }
  .portal-top .inner { height: 60px; padding: 0 16px; }
  .portal-top .logo { height: 30px; }
  .portal-content { padding: 18px 16px 96px; }
}
@media (max-width: 640px) {
  .pt-grid, .pt-domains { grid-template-columns: 1fr; }
  .portal-hero .hero-stats { gap: 8px; }
  .portal-hero .hero-stat { padding: 10px 12px; }
  .portal-hero .hero-stat b { font-size: 17px; }
  .pt-msg { max-width: 100%; }
  .pt-list li { padding: 11px 14px; }
}

/* == projects / billing lists (workstream B) == */
.filters details.more[open] { flex-basis: 100%; }
.filters details.more[open] > summary { margin-bottom: 2px; }
.pj-sum .summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pj-sum .summary .s-value { font-size: 21px; }
@media (max-width: 1280px) { .pj-sum .summary .s-item { border-bottom: 1px solid var(--line); } .pj-sum .summary .s-value { font-size: 19px; } }
@media (max-width: 960px) { .pj-sum .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pj-sum .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pj-table td .cell .fw-600:hover { color: var(--primary) !important; }
.pj-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-bottom: 18px; }
.pj-head .profile-head { align-items: flex-start; }
.pj-head .pj-icon { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 0 4px #fff; flex-shrink: 0; }
.pj-head .pj-icon.t-project { background: linear-gradient(135deg, #2f5bea, #6a3de8); }
.pj-head .pj-icon.t-module { background: linear-gradient(135deg, #6a3de8, #c23bd4); }
.pj-head .pj-icon.t-service { background: linear-gradient(135deg, #16bfe6, #2f5bea); }
.pj-head .pj-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-self: center; }
.pj-head .pj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pj-inv-rcpts { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.pj-inv-rcpts a, .pj-inv-rcpts span { font-size: 12.3px; }
.pj-renew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pj-renew .rb { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.pj-renew .rb span { display: block; font-size: 12px; color: var(--muted); }
.pj-renew .rb b { display: block; font-family: var(--f-head); font-size: 16px; margin-top: 2px; }
@media (max-width: 980px) { .pj-renew { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iv-doc { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; }
.iv-doc::before { content: ''; display: block; height: 4px; background: var(--sweep); }
.iv-doc .iv-in { padding: 28px 32px 30px; }
.iv-doc .iv-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.iv-doc .iv-logo { height: 46px; }
.iv-doc .iv-title { font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: .2em; text-align: right; }
.iv-doc .iv-meta { text-align: right; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.7; }
.iv-doc .iv-meta b { color: var(--ink); }
.iv-doc .iv-stamp { display: inline-block; margin-top: 8px; padding: 3px 12px; border: 1.5px solid var(--red); color: var(--red); border-radius: 6px; font-weight: 700; font-size: 11.5px; letter-spacing: .18em; }
.iv-doc .iv-stamp.paid { border-color: var(--green); color: var(--green); }
.iv-doc .iv-stamp.part { border-color: var(--amber); color: var(--amber); }
.iv-doc .iv-stamp.void { border-color: var(--muted); color: var(--muted); }
.iv-doc .iv-rule { border-top: 1px solid var(--line); margin: 18px 0; }
.iv-doc .iv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.iv-doc .iv-lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #5b3fe0; margin-bottom: 4px; }
.iv-doc .iv-name { font-family: var(--f-head); font-size: 17px; font-weight: 700; }
.iv-doc .iv-line { color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.iv-doc .iv-ref { margin: 18px 0 12px; background: #f1f1f8; border-left: 3px solid var(--primary); padding: 9px 14px; color: var(--ink-2); font-size: 13px; }
.iv-doc table.iv-items { width: 100%; border-collapse: collapse; }
.iv-doc .iv-items th { font-size: 11px; letter-spacing: .12em; color: var(--muted); text-align: left; padding: 8px 8px 9px; border-bottom: 2px solid var(--ink); }
.iv-doc .iv-items td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.iv-doc .iv-items .r { text-align: right; white-space: nowrap; }
.iv-doc .iv-totals { margin-left: auto; width: min(420px, 100%); margin-top: 8px; }
.iv-doc .iv-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 8px; font-size: 13.5px; }
.iv-doc .iv-totals .less { color: var(--green); }
.iv-doc .iv-totals .strong { font-weight: 700; border-top: 1px solid var(--line-2); }
.iv-doc .iv-words { margin-top: 10px; color: var(--ink-2); font-size: 13px; }
@media (max-width: 640px) { .iv-doc .iv-in { padding: 20px 16px; } .iv-doc .iv-parties { grid-template-columns: 1fr; } .iv-doc .iv-title, .iv-doc .iv-meta { text-align: left; } }

/* == renewals / expenses / domains (rn-) == */
.rn-more-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rn-more-toggle:not(:checked) ~ .more-panel { display: none; }
.rn-more-toggle:checked + label.btn { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.rn-more-toggle:focus-visible + label.btn { outline: 3px solid rgba(74, 54, 217, .35); outline-offset: 2px; }
.filters .more-panel { flex-basis: 100%; }
.rn-table .table-actions form { display: inline-flex; }
.rn-bill-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); text-align: center; }
.rn-bill-preview img { display: block; max-width: 100%; max-height: 520px; margin: 0 auto; }
.rn-bill-preview iframe { width: 100%; height: 520px; border: 0; display: block; background: #fff; }
.rn-days { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.rn-days.bad { background: var(--red-soft); color: var(--red); }
.rn-days.warn { background: var(--amber-soft); color: #a86400; }
.rn-days.ok { background: var(--green-soft); color: var(--green); }
.rn-days.na { background: #eeeef6; color: var(--ink-2); }

/* == reports == */
.rp-printhead { display: none; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); }
.rp-stack > .summary { margin-bottom: 0; }
.rp-card { overflow: hidden; }
.rp-table tr.rp-strong td { font-weight: 700; background: var(--surface-2); color: var(--ink); }
.rp-companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.rp-co { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; position: relative; }
.rp-co::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.rp-co.gst::before { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.rp-co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; }
.rp-co-name { font-family: var(--f-head); font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.rp-co-big { font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rp-co-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rp-co-grid > div { padding: 11px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.rp-co-grid > div:nth-child(3n) { border-right: 0; }
.rp-co-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.rp-co-grid span { display: block; font-size: 12px; color: var(--muted); }
.rp-co-grid b { font-family: var(--f-head); font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-section { margin-bottom: 26px; }
.rp-section-title { display: flex; align-items: center; gap: 9px; margin: 8px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rp-section > * + * { margin-top: 16px; }
@media (max-width: 640px) { .rp-co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-co-grid > div:nth-child(3n) { border-right: 1px solid var(--line); } .rp-co-grid > div:nth-child(2n) { border-right: 0; } }
@media print {
  .rp-noprint, .pager, .per-page { display: none !important; }
  .rp-printhead { display: flex !important; }
  .rp-card, .rp-co, .summary { break-inside: avoid; border: 1px solid var(--line) !important; }
  .rp-section { break-before: page; }
  .rp-section:first-of-type { break-before: auto; }
  .chart-box { height: 230px; }
  .col-xl, .col-lg, .col-md { display: table-cell !important; }
  .table th, .table td { padding: 6px 8px; font-size: 11px; }
}
.pj-head .pj-body { min-width: 0; flex: 1; padding-top: 44px; }
.pj-head .pj-actions { align-self: flex-start; padding-top: 46px; }
@media (max-width: 640px) { .pj-head .pj-actions { padding-top: 0; margin-left: 0; } }
/* == portal (customer) — layout fixes == */
.pt-card .pc-foot { flex-wrap: nowrap; }
.pt-card .pc-foot .co-tag { flex-shrink: 0; }
.pt-card .pc-foot .pc-link { flex: 1 1 auto; justify-content: flex-end; max-width: none; }
.pt-card .pc-foot .btn { flex-shrink: 0; }
.pt-paybox { flex-wrap: nowrap; align-items: flex-start; }
.pt-paybox > div { flex: 1; min-width: 0; }
@media (max-width: 1080px) { .pt-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .pt-list li { flex-wrap: wrap; row-gap: 6px; }
  .pt-list .pl-main { flex: 1 1 calc(100% - 52px); }
  .pt-list .pl-amt { text-align: left; margin-left: 48px; margin-right: auto; }
  .pt-card .pc-foot { flex-wrap: wrap; }
  .pt-card .pc-foot .pc-link { justify-content: flex-start; flex-basis: 100%; order: 3; }
}
.pt-ph-main { flex: 1; min-width: 0; }
.pt-cover + .profile-head .pt-ph-main .p-name { margin-top: 30px; }
@media (max-width: 640px) {
  .pt-cover + .profile-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pt-cover + .profile-head .pt-ph-main { width: 100%; }
  .pt-cover + .profile-head .pt-ph-main .p-name { margin-top: 4px; font-size: 20px; }
  .pt-ph-act, .pt-ph-act .btn { width: 100%; }
}
/* == customer / lead profile (workstream A) == */
.cu-ph-text { padding-top: 40px; }
.cu-tabs-wrap .tabs { flex-wrap: wrap; row-gap: 0; }

.portal-body .input[type=file] { padding: 6px 8px; height: auto; }
.portal-body .input[type=file]::file-selector-button { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); border-radius: 8px; padding: 6px 12px; margin-right: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.card > .pt-paybox:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.cu-email { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
@media (max-width: 640px) { .cu-email { max-width: 60vw; } }

/* == audit (activity log) == */
.au-more { border-top: 1px dashed var(--line); margin-top: 4px; }
.au-table td { vertical-align: top; }
.au-diff { margin-top: 8px; }
.au-diff > summary { cursor: pointer; color: var(--primary); font-size: 12.5px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.au-diff > summary::-webkit-details-marker { display: none; }
.au-diff > summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
.au-diff[open] > summary::before { transform: rotate(90deg); }
.au-diff-table { width: 100%; margin-top: 8px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12.8px; }
.au-diff-table th { background: var(--surface-2); text-align: left; padding: 6px 10px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.au-diff-table td { padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.au-diff-table td:first-child { font-weight: 600; color: var(--ink-2); width: 28%; }
.au-old { background: #fff6f6; color: #9b1c27; }
.au-new { background: #f1fbf6; color: #07603f; }
.au-pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; max-height: 240px; overflow: auto; margin: 6px 0 0; }
.au-restore { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.au-filters details.more, .st-filters details.more { display: inline-block; }
.pt-card .pc-foot .pc-link { display: block; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-card .pc-foot .pc-link .svg-i { vertical-align: -2px; }
@media (max-width: 640px) { .pt-card .pc-foot .pc-link { text-align: left; } }
.pt-card .pc-site { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--primary); min-width: 0; }
.pt-card .pc-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-card .pc-site .svg-i:last-child { color: var(--muted); }

/* == users == */
.us-role { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.us-role.super { background: var(--ink); color: #fff; }
.us-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.us-pw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--tint); border: 1px dashed #c9c3f7; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }

/* == roles == */
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); display: flex; flex-direction: column; overflow: hidden; }
.rl-card.sys { border-color: #d6d0fb; }
.rl-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 12px; }
.rl-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); flex-shrink: 0; }
.rl-card.sys .rl-icon { background: linear-gradient(135deg, var(--ink), var(--primary)); }
.rl-name { font-family: var(--f-head); font-weight: 800; font-size: 16px; }
.rl-cover { padding: 0 18px 14px; flex: 1; }
.rl-groups { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.rl-chip { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eeeef6; color: var(--ink-2); }
.rl-chip.full { background: var(--primary-soft); color: var(--primary); }
.rl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.rl-people { display: flex; align-items: center; gap: 4px; min-width: 0; }
.rl-people .avatar { margin-right: -8px; box-shadow: 0 0 0 2px #fff; }
.rl-people .avatar:last-of-type { margin-right: 6px; }
/* == invoices list (workstream B) == */
.iv-no{white-space:nowrap}
.iv-co{margin-top:4px}
/* == roles (fix) == */
.rl-people > .small { margin-left: 12px; white-space: nowrap; }
@media (max-width: 640px) { .summary .co-tag { white-space: normal; max-width: 100%; } }
/* == settings == */
.st-hub .settings-nav { padding: 10px; }
.st-hub .settings-nav a { align-items: flex-start; line-height: 1.3; }
.st-hub .settings-nav a .svg-i { margin-top: 1px; flex: none; }
.st-nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.st-main { min-width: 0; }
.st-main > .tab-panel { padding: 0; }
.st-sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.st-sec-head > div { flex: 1; min-width: 0; }
.st-sec-head h2 { font-size: 19px; margin: 0 0 3px; }
.st-sec-head p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 760px; }
.st-sec-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--hero); box-shadow: 0 8px 18px -10px rgba(74, 54, 217, .7); }
.st-h4 { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.st-h4:first-child, .alert + .st-h4 { margin-top: 4px; padding-top: 0; border-top: 0; }
.st-h4 .svg-i { color: var(--primary); }
.st-cos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.st-co { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; display: flex; flex-direction: column; }
.st-co::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.st-co.gst::before { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.st-co-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px; }
.st-co-logo { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 18px; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 10px 22px -12px rgba(47, 91, 234, .8); }
.st-co.gst .st-co-logo { background: linear-gradient(135deg, var(--violet), var(--magenta)); box-shadow: 0 10px 22px -12px rgba(194, 59, 212, .8); }
.st-co-id { flex: 1; min-width: 0; }
.st-co-name { font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.2; }
.st-co-legal { color: var(--muted); font-size: 12.5px; margin: 2px 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-co-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--amber) calc(var(--p) * 1%), var(--line) 0); }
.st-ring.full { background: conic-gradient(var(--green) 100%, var(--line) 0); }
.st-ring span { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: 13px; }
.st-checks { list-style: none; margin: 0; padding: 4px 20px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.st-checks li { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.st-checks li > div { min-width: 0; }
.st-checks strong { display: block; font-size: 13px; }
.st-checks li > div > span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ck { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.st-checks li.ok .st-ck { background: var(--green-soft); color: var(--green); }
.st-checks li.miss .st-ck { background: var(--amber-soft); color: var(--amber); }
.st-checks li.miss strong { color: var(--ink-2); }
.st-co-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--surface-2); margin-top: auto; }
.st-co-stats > div { padding: 10px 14px; border-right: 1px solid var(--line); min-width: 0; }
.st-co-stats > div:last-child { border-right: 0; }
.st-co-stats span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.st-co-stats strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-co-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.st-num { padding: 22px; }
.st-anatomy { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 6px; padding: 22px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--line-2); }
.st-part { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.st-part code { font-family: var(--f-head); font-weight: 800; font-size: 26px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 2px solid currentColor; letter-spacing: .01em; }
.st-part span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.st-slash { font-family: var(--f-head); font-weight: 800; font-size: 26px; color: var(--muted); padding-top: 10px; }
.st-part.p1, .st-pill.p1 { color: var(--blue); }
.st-part.p2, .st-pill.p2 { color: var(--sky); }
.st-part.p3, .st-pill.p3 { color: var(--violet); }
.st-part.p4, .st-pill.p4 { color: var(--magenta); }
.st-num-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 20px; }
.st-num-grid h4 { margin: 0 0 6px; }
.st-num-grid p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.st-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint); }
.st-num-examples { margin-top: 22px; }
.st-num-examples h4 { margin: 0 0 8px; }
.st-list { padding: 4px 0; }
.st-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.st-item:last-child { border-bottom: 0; }
.st-item:hover { background: var(--surface-2); }
.st-item-form { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.st-item-form .input, .st-item-form .select { height: 36px; }
.st-name { flex: 1 1 180px; min-width: 140px; }
.st-order { width: 64px; flex: none; }
.st-status { width: auto; flex: none; }
.st-used { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 58px; }
.st-del-gap { width: 34px; flex: none; }
.st-color { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
.st-color::-webkit-color-swatch-wrapper { padding: 4px; }
.st-color::-webkit-color-swatch { border: 0; border-radius: 6px; }
.st-add { flex-wrap: nowrap; }
.st-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.st-two > .card { margin: 0; }
.st-two-main { grid-template-columns: minmax(0, 1fr) 300px; }
.st-foot-note { margin-right: auto; }
@media (max-width: 1360px) {
  .st-co-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-co-stats > div:nth-child(2) { border-right: 0; }
  .st-co-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  .st-cos, .st-two, .st-two-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .st-checks, .st-num-grid { grid-template-columns: 1fr; }
  .st-part code, .st-slash { font-size: 19px; }
  .st-part code { padding: 6px 9px; }
  .st-co-head { flex-wrap: wrap; }
  .st-add { flex-wrap: wrap; }
  .st-sec-head { flex-wrap: wrap; }
}
/* == settings (refine) == */
.st-checks li > div > span { white-space: normal; overflow-wrap: anywhere; }
.st-co-stats, .st-co-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-co-stats > div:nth-child(3) { border-right: 0; }
.st-co-stats > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.st-co-stats > .st-co-last { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.st-co-stats > .st-co-last strong { font-size: 13px; }
@media (max-width: 1360px) {
  .st-co-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-co-stats > div:nth-child(2) { border-right: 1px solid var(--line); }
}
.st-two .st-item-form { flex-wrap: nowrap; }
.st-two .st-name { flex: 1 1 100px; min-width: 0; }
.st-two .st-used { min-width: 0; }
.st-item { padding-left: 14px; padding-right: 14px; }
@media (max-width: 640px) { .st-two .st-item-form { flex-wrap: wrap; } .st-two .st-name { flex-basis: 100%; } }
@media (max-width: 1500px) { .st-two.st-cats { grid-template-columns: 1fr; } .st-cats .st-item-form { flex-wrap: nowrap; } .st-cats .st-name { flex: 1 1 200px; } }
.st-status { min-width: 112px; }
/* == tickets == */
.tk-cust { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tk-who { display: inline-flex; align-items: center; gap: 8px; }
.tk-flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--red); background: var(--red-soft); }
.tk-table tr.tk-replied td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tk-check { align-self: end; padding-bottom: 8px; }
/* == ticket detail == */
.tk-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-bottom: 18px; overflow: hidden; }
.tk-facts > div { padding: 12px 16px; border-right: 1px solid var(--line); min-width: 0; }
.tk-facts > div:last-child { border-right: 0; }
.tk-facts span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.tk-facts strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-text { white-space: pre-wrap; word-break: break-word; }
.tk-thread { display: flex; flex-direction: column; gap: 16px; }
.tk-msg { display: flex; gap: 10px; align-items: flex-start; }
.tk-msg.staff { flex-direction: row-reverse; }
.tk-bubble { max-width: 82%; border-radius: 14px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tk-msg.cust .tk-bubble { border-top-left-radius: 4px; }
.tk-msg.staff .tk-bubble { background: var(--primary-soft); border-color: transparent; border-top-right-radius: 4px; }
.tk-msg.internal .tk-bubble { background: var(--amber-soft); border: 1px dashed var(--amber); }
.tk-meta { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.tk-co { margin-top: 4px; }
@media (max-width: 900px) { .tk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk-facts > div { border-bottom: 1px solid var(--line); } .tk-facts > div:nth-child(2n) { border-right: 0; } }
.tk-facts strong span { display: inline-flex; font-size: inherit; text-transform: none; letter-spacing: 0; margin: 0; color: inherit; }
.tk-facts strong .text-muted, .tk-facts strong .tiny { color: var(--muted); font-weight: 500; }
.tk-facts strong .tiny { font-size: 12px; }
.tk-facts strong .avatar { display: inline-grid; }
/* == profile == */
.pf-hero { overflow: hidden; margin-bottom: 18px; }
.pf-hero .profile-cover + .profile-head .p-name { margin-top: 34px; }
.pf-id { min-width: 0; }
.pf-id .us-role { display: inline-flex; }
.pf-cos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--surface-2); }
.pf-facts > div { padding: 12px 20px; border-right: 1px solid var(--line); min-width: 0; }
.pf-facts > div:last-child { border-right: 0; }
.pf-facts span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pf-facts strong { display: block; font-family: var(--f-head); font-size: 17px; margin: 2px 0; }
.pf-facts em { display: block; font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-show { cursor: pointer; }
.pf-events { list-style: none; margin: 0; padding: 6px 0; }
.pf-events li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.pf-events li:last-child { border-bottom: 0; }
.pf-events li > div { flex: 1; min-width: 0; }
.pf-ev-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.pf-ev-ic.t-green { background: var(--green-soft); color: var(--green); }
.pf-ev-ic.t-red { background: var(--red-soft); color: var(--red); }
.pf-ev-ic.t-violet { background: var(--violet-soft); color: var(--violet); }
@media (max-width: 900px) { .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-facts > div { border-bottom: 1px solid var(--line); } .pf-facts > div:nth-child(2n) { border-right: 0; } }
@media (max-width: 640px) { .pf-hero .profile-head { flex-direction: column; align-items: flex-start; } .pf-hero .profile-cover + .profile-head .p-name { margin-top: 0; } }
/* == search == */
.sr-box { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 10px 10px 10px 18px; margin-bottom: 14px; position: relative; overflow: hidden; }
.sr-box::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sweep); }
.sr-box > .svg-i { color: var(--primary); flex: none; }
.sr-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; background: transparent; color: var(--ink); padding: 8px 0; }
.sr-jump { margin-bottom: 16px; }
.sr-jump .chip .svg-i { color: var(--muted); }
.sr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sr-sec { margin: 0; scroll-margin-top: 80px; }
.sr-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--tint); color: var(--primary); vertical-align: middle; }
.sr-list { padding: 4px 0; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); color: inherit; }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--surface-2); text-decoration: none; }
.sr-dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.sr-main { flex: 1; min-width: 0; }
.sr-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-amt { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-left: 4px; }
.sr-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-co { margin-top: 4px; }
.sr-badge { flex: none; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.sr-item mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 1180px) { .sr-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sr-box input { font-size: 15px; } .sr-item { flex-wrap: wrap; } .sr-badge { width: 100%; justify-content: flex-start; padding-left: 42px; } }
.sr-grid { display: block; columns: 2; column-gap: 18px; }
.sr-grid > .sr-sec { break-inside: avoid; margin: 0 0 18px; display: block; width: 100%; }
@media (max-width: 1180px) { .sr-grid { columns: 1; } }

/* ==========================================================================
   v2.2 colour theme — multi-colour, logo-led (owner: "complete white ho gya, I need multi color")
   ========================================================================== */
:root {
  --c-indigo: #4a36d9; --c-indigo-50: #efedff;
  --c-blue: #2f5bea;   --c-blue-50: #e9efff;
  --c-violet: #7a3fe6; --c-violet-50: #f3ecff;
  --c-cyan: #0aa4c8;   --c-cyan-50: #e2f7fc;
  --c-pink: #cf3aa5;   --c-pink-50: #fdeaf6;
  --c-green: #0e9f6e;  --c-green-50: #e3f7ee;
  --c-red: #e5484d;    --c-red-50: #fdecee;
  --c-amber: #d98a07;  --c-amber-50: #fff4df;
  --c-orange: #ef6a2b; --c-orange-50: #ffefe6;
  --c-teal: #0f9f94;   --c-teal-50: #e0f6f4;
  --c-slate: #64708b;  --c-slate-50: #eef0f6;
}
/* colourful canvas */
body:not(.is-modal):not(.portal-body):not(.auth2) {
  background:
    radial-gradient(900px 420px at 18% -8%, rgba(22, 191, 230, .16), transparent 60%),
    radial-gradient(800px 420px at 100% -10%, rgba(194, 59, 212, .14), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(74, 54, 217, .08), transparent 60%),
    #f4f4fb;
  background-attachment: fixed;
}
.topbar { background: rgba(255, 255, 255, .72); }

/* ---- Gradient sidebar ---- */
.sidebar {
  border-right: 0;
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(22, 191, 230, .45), transparent 60%),
    radial-gradient(120% 45% at 100% 100%, rgba(194, 59, 212, .55), transparent 60%),
    linear-gradient(180deg, #1f1a72 0%, #2f23ad 48%, #4a2ccb 100%);
  color: #fff;
}
.sidebar-brand { margin: 16px 14px 6px; padding: 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.sidebar-brand img.wordmark { height: 34px; }
.sidebar-brand .b-sub { color: #6b6a92; margin-top: 4px; }
.nav-group-title { color: rgba(255, 255, 255, .55); }
.nav-link { color: rgba(255, 255, 255, .86); padding: 7px 10px; }
.nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-link.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.nav-link.active::before { left: -14px; background: linear-gradient(180deg, #22d3ee, #f472d0); }
.nav-ic { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255, 255, 255, .1); }
.nav-link .svg-i, .nav-link:hover .svg-i, .nav-link.active .svg-i { color: #fff; }
.nc-indigo .nav-ic { background: rgba(129, 140, 248, .35); } .nc-blue .nav-ic { background: rgba(96, 165, 250, .38); }
.nc-violet .nav-ic { background: rgba(167, 139, 250, .4); }  .nc-cyan .nav-ic { background: rgba(34, 211, 238, .38); }
.nc-pink .nav-ic { background: rgba(244, 114, 182, .4); }    .nc-green .nav-ic { background: rgba(52, 211, 153, .38); }
.nc-red .nav-ic { background: rgba(248, 113, 113, .42); }    .nc-amber .nav-ic { background: rgba(251, 191, 36, .4); }
.nc-orange .nav-ic { background: rgba(251, 146, 60, .42); }  .nc-teal .nav-ic { background: rgba(45, 212, 191, .38); }
.nc-slate .nav-ic { background: rgba(203, 213, 225, .3); }
.nav-link.active .nav-ic { background: #fff; }
.nc-indigo.active .svg-i { color: var(--c-indigo) !important; } .nc-blue.active .svg-i { color: var(--c-blue) !important; }
.nc-violet.active .svg-i { color: var(--c-violet) !important; } .nc-cyan.active .svg-i { color: var(--c-cyan) !important; }
.nc-pink.active .svg-i { color: var(--c-pink) !important; }     .nc-green.active .svg-i { color: var(--c-green) !important; }
.nc-red.active .svg-i { color: var(--c-red) !important; }       .nc-amber.active .svg-i { color: var(--c-amber) !important; }
.nc-orange.active .svg-i { color: var(--c-orange) !important; } .nc-teal.active .svg-i { color: var(--c-teal) !important; }
.nc-slate.active .svg-i { color: var(--c-slate) !important; }
.nav-badge { background: #ff4d6d; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.sidebar-nav { scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.sidebar-foot { border-top-color: rgba(255, 255, 255, .12); }
.sidebar-user { background: rgba(255, 255, 255, .1); }
.sidebar-user .u-name { color: #fff; }
.sidebar-user .u-role { color: rgba(255, 255, 255, .65); }

/* ---- Summary strip: every figure in its own colour ---- */
.summary { gap: 12px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.summary .s-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--sh-1); overflow: hidden; }
.summary .s-item:last-child { border-right: 1px solid var(--line); }
.summary .s-item::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; }
.summary .s-item .s-label .dot { display: none; }
.summary .s-item.hero { border: 0; box-shadow: 0 14px 30px -16px rgba(74, 54, 217, .8); }
.summary .s-item.hero .s-label .dot { display: inline-block; }
a.s-item:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.s-blue { background: linear-gradient(160deg, var(--c-blue-50), #fff 72%) !important; }     .s-blue::before { background: var(--c-blue); }     .s-blue .s-value { color: var(--c-blue); }
.s-violet { background: linear-gradient(160deg, var(--c-violet-50), #fff 72%) !important; } .s-violet::before { background: var(--c-violet); } .s-violet .s-value { color: var(--c-violet); }
.s-cyan { background: linear-gradient(160deg, var(--c-cyan-50), #fff 72%) !important; }     .s-cyan::before { background: var(--c-cyan); }     .s-cyan .s-value { color: var(--c-cyan); }
.s-magenta { background: linear-gradient(160deg, var(--c-pink-50), #fff 72%) !important; }  .s-magenta::before { background: var(--c-pink); }  .s-magenta .s-value { color: var(--c-pink); }
.s-green { background: linear-gradient(160deg, var(--c-green-50), #fff 72%) !important; }   .s-green::before { background: var(--c-green); }   .s-green .s-value { color: var(--c-green); }
.s-red { background: linear-gradient(160deg, var(--c-red-50), #fff 72%) !important; }       .s-red::before { background: var(--c-red); }       .s-red .s-value { color: var(--c-red); }
.s-amber { background: linear-gradient(160deg, var(--c-amber-50), #fff 72%) !important; }   .s-amber::before { background: var(--c-amber); }   .s-amber .s-value { color: #b97300; }

/* ---- Module tiles: own colour each ---- */
.module { position: relative; overflow: hidden; }
.module::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; }
.module .m-icon { color: #fff !important; box-shadow: 0 8px 18px -10px rgba(27, 24, 70, .6); }
.m-indigo::before, .m-indigo .m-icon { background: linear-gradient(135deg, #6366f1, #4a36d9); }
.m-violet::before, .m-violet .m-icon { background: linear-gradient(135deg, #a855f7, #6a3de8); }
.m-cyan::before, .m-cyan .m-icon { background: linear-gradient(135deg, #22d3ee, #0a8fc0); }
.m-green::before, .m-green .m-icon { background: linear-gradient(135deg, #34d399, #0e9f6e); }
.m-red::before, .m-red .m-icon { background: linear-gradient(135deg, #fb7185, #e5484d); }
.m-amber::before, .m-amber .m-icon { background: linear-gradient(135deg, #fbbf24, #e08a07); }
.m-pink::before, .m-pink .m-icon { background: linear-gradient(135deg, #f472b6, #c026d3); }
.m-indigo .m-stat { background: var(--c-indigo-50); } .m-indigo .m-stat b { color: var(--c-indigo); }
.m-violet .m-stat { background: var(--c-violet-50); } .m-violet .m-stat b { color: var(--c-violet); }
.m-cyan .m-stat { background: var(--c-cyan-50); }     .m-cyan .m-stat b { color: #087f9c; }
.m-green .m-stat { background: var(--c-green-50); }   .m-green .m-stat b { color: var(--c-green); }
.m-red .m-stat { background: var(--c-red-50); }       .m-red .m-stat b { color: var(--c-red); }
.m-amber .m-stat { background: var(--c-amber-50); }   .m-amber .m-stat b { color: #b06e00; }
.m-pink .m-stat { background: var(--c-pink-50); }     .m-pink .m-stat b { color: var(--c-pink); }

/* ---- Colour accents elsewhere ---- */
.table th { background: #f4f3ff; color: #5b54a6; }
.card-head { background: linear-gradient(180deg, #fbfbff, #fff); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.chip.active { background: linear-gradient(100deg, var(--c-blue), var(--c-violet)); border-color: transparent; }
.tab.active { color: var(--c-violet); border-bottom: 3px solid; border-image: linear-gradient(90deg, #22d3ee, #6a3de8, #c23bd4) 1; }
.page-head h1 { background: linear-gradient(90deg, #1b1846 0%, #3b2bc4 55%, #8a2fd0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.is-modal .page-head h1 { background: none; color: var(--ink); }
.kpi:not(.accent):not(.hero) { background: linear-gradient(160deg, #f6f5ff, #fff 70%); }
@media (max-width: 640px) {
  .summary { gap: 8px; }
  .summary .s-item { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
}
@media print { .sidebar { display: none !important; } .page-head h1 { color: #1b1846; background: none; } }
/* Selected menu item: solid white pill so it is obvious which section you are in */
.nav-link.active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }
.nav-link.active .nav-ic { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.nav-link.active .svg-i { color: #fff !important; }
.nc-blue.active .nav-ic { background: linear-gradient(135deg, #3b82f6, #2f5bea); } .nc-violet.active .nav-ic { background: linear-gradient(135deg, #a855f7, #7a3fe6); }
.nc-cyan.active .nav-ic { background: linear-gradient(135deg, #22d3ee, #0a8fc0); } .nc-pink.active .nav-ic { background: linear-gradient(135deg, #f472b6, #cf3aa5); }
.nc-green.active .nav-ic { background: linear-gradient(135deg, #34d399, #0e9f6e); } .nc-red.active .nav-ic { background: linear-gradient(135deg, #fb7185, #e5484d); }
.nc-amber.active .nav-ic { background: linear-gradient(135deg, #fbbf24, #d98a07); } .nc-orange.active .nav-ic { background: linear-gradient(135deg, #fb923c, #ef6a2b); }
.nc-teal.active .nav-ic { background: linear-gradient(135deg, #2dd4bf, #0f9f94); } .nc-slate.active .nav-ic { background: linear-gradient(135deg, #94a3b8, #64708b); }
.nav-link.active .nav-badge { box-shadow: none; }
/* Customer portal gets the same colourful canvas */
body.portal-body {
  background:
    radial-gradient(900px 420px at 10% -8%, rgba(22, 191, 230, .16), transparent 60%),
    radial-gradient(800px 420px at 100% -10%, rgba(194, 59, 212, .14), transparent 60%),
    #f4f4fb;
  background-attachment: fixed;
}

/* ================= v2.3 Login redesign ================= */
body.auth2 { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; position: relative; overflow-x: hidden;
  background: linear-gradient(135deg, #0e0b3a 0%, #1d1670 45%, #2b1580 100%); }
.a2-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; }
.a2-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; animation: a2float 16s ease-in-out infinite alternate; }
.a2-bg .b1 { width: 520px; height: 520px; background: #16bfe6; top: -160px; left: -120px; }
.a2-bg .b2 { width: 560px; height: 560px; background: #c23bd4; bottom: -220px; right: -140px; animation-delay: -5s; }
.a2-bg .b3 { width: 380px; height: 380px; background: #f59e0b; bottom: -120px; left: 18%; opacity: .45; animation-delay: -9s; }
.a2-bg .b4 { width: 340px; height: 340px; background: #22c55e; top: 8%; right: 22%; opacity: .35; animation-delay: -3s; }
@keyframes a2float { to { transform: translate(40px, 30px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .a2-bg i { animation: none; } }
.a2-shell { position: relative; z-index: 1; width: 100%; max-width: 1120px; min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.a2-show { position: relative; padding: 38px 42px; display: flex; flex-direction: column; gap: 26px; color: #fff;
  background: radial-gradient(80% 60% at 0% 0%, rgba(22,191,230,.45), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(194,59,212,.5), transparent 60%), linear-gradient(155deg, rgba(59,43,196,.55), rgba(106,61,232,.35)); }
.a2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a2-show .art-logo { background: #fff; border-radius: 14px; padding: 9px 13px; display: inline-block; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.a2-show .art-logo img { height: 32px; display: block; }
.a2-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.a2-copy h2 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; max-width: 480px; }
.a2-copy h2 span { background: linear-gradient(90deg, #67e8f9, #f0abfc 55%, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a2-copy p { color: rgba(255,255,255,.8); font-size: 15px; margin-top: 12px; max-width: 440px; }
.a2-stack { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin-top: auto; }
.a2-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); animation: a2in .7s cubic-bezier(.2,.8,.2,1) both; }
.a2-card-1 { margin-left: 34px; animation-delay: .12s; } .a2-card-2 { margin-left: 12px; animation-delay: .24s; }
@keyframes a2in { from { opacity: 0; transform: translateY(14px); } }
.a2-card strong { display: block; font-size: 14px; font-family: var(--f-head); }
.a2-card div span { display: block; font-size: 12.5px; color: var(--muted); }
.a2-card div { flex: 1; min-width: 0; }
.a2-card em { width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: inline-flex; align-items: center; justify-content: center; }
.a2-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.a2-ic.c-cyan { background: linear-gradient(135deg, #06b6d4, #2f5bea); } .a2-ic.c-violet { background: linear-gradient(135deg, #6366f1, #a855f7); } .a2-ic.c-pink { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.a2-foot { color: rgba(255,255,255,.6); font-size: 12px; }
.a2-form { background: #fff; display: flex; align-items: center; justify-content: center; padding: 44px 40px; position: relative; }
.a2-form::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sweep); }
.auth2 .auth-card { width: 100%; max-width: 380px; }
.auth2 .auth-card .logo { display: none; height: 40px; margin: 0 auto 22px; }
.auth2 .auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px;
  background: linear-gradient(90deg, #1e1b4b, #4a36d9 60%, #c23bd4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth2 .auth-card .lead { color: var(--ink-2); margin-bottom: 26px; font-size: 14.5px; }
.auth2 .auth-card label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.auth2 .auth-card .input { height: 50px; border-radius: 14px; border: 1.5px solid #e4e4f3; background-color: #f8f8fe; font-size: 15px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.auth2 .auth-card .input:focus { background-color: #fff; border-color: #6a3de8; box-shadow: 0 0 0 4px rgba(106,61,232,.14); outline: none; }
.auth2 .auth-card input[type=email], .auth2 .auth-card input[type=password], .auth2 .auth-card input.pw-shown { padding-left: 46px; background-repeat: no-repeat; background-position: 15px center; background-size: 18px; }
.auth2 .auth-card input[type=email] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3de8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.auth2 .auth-card input[type=password], .auth2 .auth-card input.pw-shown { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c23bd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); padding-right: 48px; }
.pw-wrap { position: relative; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pw-eye:hover { background: #f0eefe; color: #6a3de8; }
.auth2 .auth-card .btn-block { height: 52px !important; border-radius: 14px; font-size: 15px; font-weight: 700; border: 0; color: #fff;
  background: linear-gradient(100deg, #2f5bea 0%, #6a3de8 55%, #c23bd4 100%); background-size: 160% 100%; box-shadow: 0 14px 30px -12px rgba(106,61,232,.65); transition: background-position .3s, transform .15s; }
.auth2 .auth-card .btn-block:hover { background-position: 100% 0; transform: translateY(-1px); }
.auth2 .auth-card a { color: #4a36d9; font-weight: 600; }
.auth2 .otp-inputs input { border-radius: 14px; border: 1.5px solid #e4e4f3; background: #f8f8fe; }
.auth2 .otp-inputs input:focus { background: #fff; border-color: #6a3de8; box-shadow: 0 0 0 4px rgba(106,61,232,.14); }
.a2-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.a2-trust span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.a2-trust .t-otp { background: #ede9fe; color: #6d28d9; } .a2-trust .t-enc { background: #e0f2fe; color: #0369a1; } .a2-trust .t-log { background: #fce7f3; color: #be185d; }
@media (max-width: 900px) {
  body.auth2 { padding: 20px 16px; align-items: flex-start; }
  .a2-shell { grid-template-columns: 1fr; min-height: 0; max-width: 460px; margin: 0 auto; border-radius: 24px; }
  .a2-show { display: none; }
  .a2-form { padding: 34px 22px 28px; }
  .auth2 .auth-card .logo { display: block; }
  .auth2 .auth-card h1 { text-align: center; font-size: 26px; } .auth2 .auth-card .lead { text-align: center; }
  .a2-trust { justify-content: center; }
}
@media (max-width: 380px) { .otp-inputs input { width: 42px; height: 52px; font-size: 20px; } }

/* ---- Customer profile completeness ---- */
.pf-ring { --p: 0; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#f59e0b calc(var(--p) * 1%), #ececf6 0); }
.pf-ring.low { background: conic-gradient(#ef4444 calc(var(--p) * 1%), #ececf6 0); }
.pf-ring.full { background: conic-gradient(#16a34a 100%, #ececf6 0); }
.pf-ring > span { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: 10.5px; color: var(--ink); }
.pf-ring.big { width: 64px; height: 64px; } .pf-ring.big > span { width: 50px; height: 50px; font-size: 14px; }
.pf-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.pf-miss { min-width: 0; }
.pf-count { font-size: 12px; font-weight: 700; color: #b45309; }
.pf-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 3px 8px; border-radius: 999px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; max-width: 260px; }
.pf-chips span { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; white-space: nowrap; }
.pf-card { overflow: hidden; border-top: 4px solid #f59e0b; background: linear-gradient(160deg, #fffbeb, #fff 55%); }
.pf-card.is-full { border-top-color: #16a34a; background: linear-gradient(160deg, #f0fdf4, #fff 55%); }
.pf-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px 10px; flex-wrap: wrap; }
.pf-title { flex: 1; min-width: 200px; } .pf-title h3 { font-size: 17px; } .pf-title p { margin: 3px 0 0; color: var(--ink-2); font-size: 13px; }
.pf-checks { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 20px 18px; }
.st-checks li.miss .st-ck { background: #fef3c7; color: #b45309; }
@media (max-width: 1100px) { .pf-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pf-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-cell { min-width: 0; } .pf-head .btn { width: 100%; justify-content: center; } }
.pf-cell { min-width: 0; }
.pf-chips { max-width: 230px; }
.pf-chips .pf-more { background: #f1f0fb; color: var(--ink-2); border-color: #e2e0f5; }
@media (min-width: 761px) { .table td.td-main { min-width: 200px; } }

/* ================= v2.3 Dashboard insights ================= */
.ins-grid { display: grid; gap: 16px; margin-top: 18px; }
.ins-row1 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.ins-row2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ins-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ins-card { padding: 18px 20px 20px; position: relative; overflow: hidden; min-width: 0; }
.ins-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ins-head h3 { font-size: 16px; margin: 0; } .ins-head p { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.ins-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; box-shadow: 0 8px 18px -10px rgba(0,0,0,.4); }
.ins-ic.t-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); } .ins-ic.t-red { background: linear-gradient(135deg, #f43f5e, #f97316); }
.ins-ic.t-green { background: linear-gradient(135deg, #16a34a, #22d3ee); } .ins-ic.t-violet { background: linear-gradient(135deg, #a855f7, #ec4899); }
.ins-ic.t-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); } .ins-ic.t-amber { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.ins-ic.t-pink { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.ins-totals { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.ins-totals div { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.ins-totals b { font-family: var(--f-head); font-size: 15px; color: var(--ink); margin-left: 4px; }
.dotc { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.ins-trend .chart-box { height: 280px; }
/* needs attention */
.attn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.attn-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); border: 1px solid transparent; transition: transform .12s, box-shadow .12s; }
.attn-list a:hover { transform: translateX(2px); box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.attn-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.attn-txt { flex: 1; min-width: 0; } .attn-txt strong { display: block; font-size: 13.5px; } .attn-txt small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attn-n { font-family: var(--f-head); font-weight: 800; font-size: 18px; min-width: 34px; text-align: right; }
.attn-red { background: #fff1f2; border-color: #ffe4e6 !important; } .attn-red .attn-ic { background: #f43f5e; } .attn-red .attn-n { color: #e11d48; }
.attn-amber { background: #fffbeb; border-color: #fef3c7 !important; } .attn-amber .attn-ic { background: #f59e0b; } .attn-amber .attn-n { color: #d97706; }
.attn-violet { background: #f5f3ff; border-color: #ede9fe !important; } .attn-violet .attn-ic { background: #8b5cf6; } .attn-violet .attn-n { color: #7c3aed; }
.attn-blue { background: #eff6ff; border-color: #dbeafe !important; } .attn-blue .attn-ic { background: #3b82f6; } .attn-blue .attn-n { color: #2563eb; }
.attn-cyan { background: #ecfeff; border-color: #cffafe !important; } .attn-cyan .attn-ic { background: #06b6d4; } .attn-cyan .attn-n { color: #0891b2; }
.attn-orange { background: #fff7ed; border-color: #ffedd5 !important; } .attn-orange .attn-ic { background: #f97316; } .attn-orange .attn-n { color: #ea580c; }
.attn-pink { background: #fdf2f8; border-color: #fce7f3 !important; } .attn-pink .attn-ic { background: #ec4899; } .attn-pink .attn-n { color: #db2777; }
.ins-clear { text-align: center; padding: 26px 10px; } .ins-clear span { width: 54px; height: 54px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: inline-flex; align-items: center; justify-content: center; }
.ins-clear b { display: block; margin-top: 10px; font-family: var(--f-head); font-size: 16px; } .ins-clear p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.ins-clear.sm { padding: 18px 10px; } .ins-clear.sm span { width: 42px; height: 42px; }
/* collection health */
.hl-ring-wrap { display: flex; align-items: center; gap: 18px; }
.hl-ring { --p: 0; width: 118px; height: 118px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#f59e0b calc(var(--p) * 1%), #eef0f6 0); }
.hl-ring.good { background: conic-gradient(#16a34a calc(var(--p) * 1%), #eef0f6 0); } .hl-ring.bad { background: conic-gradient(#f43f5e calc(var(--p) * 1%), #eef0f6 0); }
.hl-ring > span { width: 94px; height: 94px; border-radius: 50%; background: #fff; display: grid; place-items: center; align-content: center; text-align: center; }
.hl-ring b { font-family: var(--f-head); font-size: 24px; line-height: 1; } .hl-ring small { font-size: 11px; color: var(--muted); }
.hl-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hl-side small, .hl-stats small { display: block; font-size: 11.5px; color: var(--muted); } .hl-side b { font-family: var(--f-head); font-size: 15px; }
.hl-stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.hl-stats > div { background: linear-gradient(160deg, #f7f7ff, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
.hl-stats b { font-family: var(--f-head); font-size: 16px; } .hl-stats em { grid-column: 1 / -1; font-style: normal; font-size: 11px; color: var(--muted); }
.hl-stats small { grid-column: 1 / -1; }
.ins-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; justify-self: end; }
.ins-delta.up { background: #dcfce7; color: #15803d; } .ins-delta.down { background: #ffe4e6; color: #be123c; } .ins-delta.flat { background: #f1f0fb; color: var(--ink-2); }
/* donut */
.split-wrap { display: flex; flex-direction: column; gap: 14px; }
.chart-box.donut { height: 190px; position: relative; }
.donut-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; pointer-events: none; }
.donut-c small { font-size: 11px; color: var(--muted); } .donut-c b { font-family: var(--f-head); font-size: 20px; }
.split-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.split-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; } .split-legend li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-legend b { font-family: var(--f-head); } .split-legend em { font-style: normal; font-size: 12px; color: var(--muted); width: 36px; text-align: right; }
/* bar lists */
.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bl-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.bl-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .bl-top b { white-space: nowrap; font-family: var(--f-head); } .bl-top small { font-family: var(--f-body); font-weight: 500; color: var(--muted); }
.bl-track { height: 9px; border-radius: 999px; background: #f0f0f8; overflow: hidden; } .bl-track i { display: block; height: 100%; border-radius: 999px; }
/* coming up */
.up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.up-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--ink); }
.up-list a:hover { background: #f7f7ff; }
.up-date { width: 46px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; align-content: center; color: #fff; line-height: 1.05; }
.up-date b { font-family: var(--f-head); font-size: 17px; } .up-date small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.up-violet { background: linear-gradient(135deg, #6366f1, #a855f7); } .up-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.up-txt { flex: 1; min-width: 0; } .up-txt strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-txt small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-r { text-align: right; flex: none; } .up-r b { display: block; font-family: var(--f-head); font-size: 14px; } .up-r em { font-style: normal; font-size: 11.5px; color: #7c3aed; font-weight: 600; }
.ins-section-title { margin: 28px 0 14px; font-size: 18px; }
@media (max-width: 1200px) { .ins-row1 { grid-template-columns: 1fr; } .ins-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ins-row2, .ins-row3 { grid-template-columns: 1fr; } .ins-card { padding: 16px; } .ins-trend .chart-box { height: 240px; } .hl-ring { width: 100px; height: 100px; } .hl-ring > span { width: 80px; height: 80px; } }
/* Login: white logo strip */
.a2-show { padding-top: 0; }
.a2-strip { margin: 0 -42px; padding: 20px 42px 18px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative;
  box-shadow: 0 14px 30px -18px rgba(20, 10, 80, .55); }
.a2-strip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, #16bfe6, #2f5bea 35%, #6a3de8 65%, #c23bd4); }
.a2-strip img { height: 44px; display: block; }
.a2-strip .a2-eyebrow { background: linear-gradient(135deg, #eef2ff, #f5ecff); border: 1px solid #e0dbff; color: #4a36d9; }
.a2-copy { margin-top: 18px; }

/* ================= v2.4 Sidebar redesign ================= */
.sidebar {
  background:
    radial-gradient(140% 30% at 0% 100%, rgba(194, 59, 212, .38), transparent 70%),
    radial-gradient(120% 28% at 100% 18%, rgba(22, 191, 230, .22), transparent 70%),
    linear-gradient(180deg, #1c1765 0%, #29209a 45%, #3a24b8 100%);
}
/* white logo band — same height and colour as the top bar, so the top edge reads as one strip */
.sidebar-brand { margin: 0; padding: 0 22px; height: var(--topbar-h); display: flex; align-items: center; background: #fff; border-radius: 0; box-shadow: none; position: relative; flex: none; }
.sidebar-brand::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #16bfe6, #2f5bea 35%, #6a3de8 65%, #c23bd4); }
.sidebar-brand img.wordmark { height: 40px; width: auto; }
.sidebar-brand .b-sub { display: none; }
.topbar { background: #fff !important; backdrop-filter: none !important; border-bottom: 1px solid var(--line); }
.app::before { display: none; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, #c23bd4, #6a3de8 40%, #2f5bea 75%, #16bfe6); opacity: .9; }
.sidebar-nav { padding: 14px 12px 16px; }
.nav-group { margin-bottom: 14px; }
.nav-group-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: rgba(255, 255, 255, .45); padding: 0 12px 6px; }
.nav-link { padding: 6px 10px; margin: 1px 0; border-radius: 12px; font-size: 13.6px; transition: background .12s, color .12s; }
.nav-link:hover { background: rgba(255, 255, 255, .09); }
.nav-link.active::before { display: none; }
.nav-ic { width: 32px; height: 32px; border-radius: 10px; }
.sidebar-foot { padding: 12px; background: rgba(10, 6, 50, .25); }
.sidebar-user { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
/* lighter overlays — blur is expensive on ordinary PCs */
.qv { backdrop-filter: none; background: rgba(20, 16, 60, .55); }
.portal-top { backdrop-filter: none; background: #fff; }
.qv-loading { top: 54px; bottom: 0; display: flex; flex-direction: column; gap: 14px; padding: 70px 28px 28px; text-align: left; background: #fff; }
.qv-loading[hidden] { display: none; }
.qv-skel { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #f0f0f8 0%, #e6e6f3 50%, #f0f0f8 100%); background-size: 200% 100%; animation: skel 1s linear infinite; }
.qv-skel.big { height: 90px; border-radius: 14px; } .qv-skel.w60 { width: 60%; } .qv-skel.w40 { width: 40%; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .qv-skel { animation: none; } }

/* ================= v2.4 Profit & loss statement ================= */
.pnl-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pnl { padding: 6px 0 10px; }
.pnl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 22px; }
.pnl-l { min-width: 0; display: flex; flex-direction: column; }
.pnl-l em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pnl-a { font-family: var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 130px; }
.pnl-head { margin-top: 10px; padding-top: 14px; padding-bottom: 6px; border-top: 1px solid var(--line); }
.pnl-row:first-child.pnl-head { border-top: 0; margin-top: 0; }
.pnl-head .pnl-l { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4a36d9; }
.pnl-head .pnl-n { font-size: 11.5px; color: var(--muted); }
.pnl-line .pnl-l { padding-left: 16px; color: var(--ink-2); }
.pnl-line .pnl-a { color: var(--ink-2); }
.pnl-sub .pnl-l { padding-left: 16px; font-size: 13px; color: var(--muted); } .pnl-sub .pnl-a { font-size: 13px; color: var(--muted); }
.pnl-less .pnl-l { color: #b45309; } .pnl-less .pnl-a { color: #b45309; }
.pnl-total { border-top: 1px dashed var(--line-2); margin: 2px 22px 0; padding: 9px 0; }
.pnl-total .pnl-l, .pnl-total .pnl-a { font-weight: 700; color: var(--ink); }
.pnl-result { margin: 8px 14px 4px; border-radius: 12px; background: linear-gradient(135deg, #ecfeff, #f0f9ff); padding: 12px 16px; }
.pnl-result .pnl-l { font-weight: 800; } .pnl-result .pnl-a { font-weight: 800; font-size: 16px; }
.pnl-final { margin: 12px 14px 4px; border-radius: 14px; padding: 16px 18px; background: linear-gradient(120deg, #1f1a72, #4a36d9 60%, #7c3aed); color: #fff; }
.pnl-final .pnl-l { font-weight: 800; font-size: 15px; color: #fff; } .pnl-final .pnl-l em { color: rgba(255,255,255,.75); }
.pnl-final .pnl-a { font-size: 22px; font-weight: 800; color: #fff; }
.pnl-a.pos { color: #15803d; } .pnl-a.neg { color: #e11d48; }
.pnl-final .pnl-a.pos, .pnl-final .pnl-a.neg { color: #fff; }
.pnl-side .card-body { display: flex; flex-direction: column; gap: 16px; }
.flow-row small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.flow-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.flow-l span { font-family: var(--f-head); font-weight: 700; white-space: nowrap; }
.flow-bar { height: 12px; border-radius: 999px; background: #f0f0f8; overflow: hidden; display: flex; }
.flow-bar i { display: block; height: 100%; }
.f-sales { background: linear-gradient(90deg, #6366f1, #a855f7); } .f-coll { background: #22c55e; } .f-due { background: #fda4af; }
.f-tax { background: #f59e0b; } .f-cust { background: #f97316; } .f-comp { background: #f43f5e; } .f-net { background: linear-gradient(90deg, #10b981, #06b6d4); } .f-loss { background: #e11d48; }
.flow-net { padding-top: 12px; border-top: 1px dashed var(--line-2); } .flow-net .flow-l { font-size: 14px; }
@media (max-width: 1100px) { .pnl-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pnl-row { padding: 8px 14px; } .pnl-total { margin: 2px 14px 0; } .pnl-a { min-width: 0; } .pnl-final .pnl-a { font-size: 18px; } }

/* ================= v2.5 Popup: centred without transform (the open animation used to override it) ================= */
.qv-panel { left: 0; right: 0; margin: 0 auto; transform: none; animation: qvIn .16s ease-out; }
@keyframes qvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qv-panel { animation: none; } }

/* ================= v2.5 Light, colourful sidebar that matches the white header and logo ================= */
.app::before { display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: linear-gradient(90deg, #16bfe6, #2f5bea 30%, #6a3de8 60%, #c23bd4); }
.topbar::after, .sidebar-brand::after { display: none; }
.sidebar { background: linear-gradient(180deg, #ffffff 0%, #fbfaff 40%, #f4f1ff 100%); border-right: 1px solid #e9e6f6; color: var(--ink); }
.sidebar-brand { background: #fff; border-bottom: 1px solid var(--line); height: var(--topbar-h); }
.topbar { border-bottom: 1px solid var(--line); }
.sidebar-nav { scrollbar-width: thin; scrollbar-color: transparent transparent; padding-top: 16px; }
.sidebar-nav:hover { scrollbar-color: #d8d3f3 transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; } .sidebar-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: #d8d3f3; }
.nav-group-title { color: #a09cbf; }
.nav-link { color: #3d3b63; font-weight: 600; }
.nav-link:hover { background: #f1eeff; color: #1b1846; }
.nav-ic { width: 32px; height: 32px; border-radius: 10px; }
.nc-indigo .nav-ic { background: #eceeff; } .nc-indigo .svg-i { color: #4f46e5; }
.nc-blue .nav-ic { background: #e6f0ff; }   .nc-blue .svg-i { color: #2563eb; }
.nc-violet .nav-ic { background: #f1eaff; } .nc-violet .svg-i { color: #7c3aed; }
.nc-cyan .nav-ic { background: #e2f8fc; }   .nc-cyan .svg-i { color: #0891b2; }
.nc-pink .nav-ic { background: #fde8f4; }   .nc-pink .svg-i { color: #db2777; }
.nc-green .nav-ic { background: #e3f7ec; }  .nc-green .svg-i { color: #059669; }
.nc-red .nav-ic { background: #ffe8ea; }    .nc-red .svg-i { color: #e11d48; }
.nc-amber .nav-ic { background: #fff3d6; }  .nc-amber .svg-i { color: #d97706; }
.nc-orange .nav-ic { background: #ffedde; } .nc-orange .svg-i { color: #ea580c; }
.nc-teal .nav-ic { background: #ddf7f2; }   .nc-teal .svg-i { color: #0d9488; }
.nc-slate .nav-ic { background: #eef0f5; }  .nc-slate .svg-i { color: #475569; }
.sidebar .nav-link.active { background: linear-gradient(100deg, #4f46e5 0%, #7c3aed 60%, #c026d3 100%); color: #fff; box-shadow: 0 10px 22px -12px rgba(91, 33, 182, .75); }
.sidebar .nav-link.active .nav-ic { background: rgba(255, 255, 255, .2) !important; }
.sidebar .nav-link.active .svg-i { color: #fff !important; }
.sidebar .nav-link.active .nav-badge { background: #fff; color: #e11d48; }
.nav-badge { box-shadow: none; }
.sidebar-foot { background: transparent; border-top: 1px solid #e9e6f6; }
.sidebar-user { background: #fff; border: 1px solid #e9e6f6; box-shadow: 0 6px 16px -12px rgba(40, 30, 120, .35); }
.sidebar-user .u-name { color: var(--ink); } .sidebar-user .u-role { color: var(--muted); }
.sidebar-user .icon-btn { background: #f4f2ff !important; border-color: #e6e2fb !important; color: #4a36d9 !important; }

/* ================= v2.6 Floating layout: sidebar card + header card ================= */
:root { --sidebar-w: 278px; --frame: 14px; }
body:not(.is-modal):not(.portal-body):not(.auth2) {
  background:
    radial-gradient(1000px 520px at 20% -10%, rgba(99, 102, 241, .16), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(192, 38, 211, .12), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(22, 191, 230, .10), transparent 60%),
    #eef0fa;
  background-attachment: fixed;
}
.app::before { display: none !important; }
/* sidebar card */
.sidebar { top: var(--frame); left: var(--frame); bottom: var(--frame); width: calc(var(--sidebar-w) - var(--frame) * 2); border-radius: 22px; border: 1px solid #e6e3f5 !important;
  background: #fff; box-shadow: 0 24px 60px -36px rgba(40, 30, 120, .45); overflow: hidden; }
.sidebar-brand { height: auto; padding: 22px 22px 18px; border-bottom: 0; background: #fff; }
.sidebar-brand img.wordmark { height: 42px; }
.sidebar-brand::after { display: block !important; content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #e2ddf8 20%, #e2ddf8 80%, transparent); }
.sidebar-nav { padding: 14px 12px 12px; }
.nav-group { margin-bottom: 12px; }
.nav-group-title { padding: 0 12px 6px; }
.sidebar .nav-link { color: #3d3b63; border-radius: 12px; padding: 6px 10px; }
.sidebar .nav-link:hover { background: #f5f3ff; }
.sidebar .nav-link.active { background: linear-gradient(90deg, #efeaff, #f7f4ff); color: #2e1a87; font-weight: 700; box-shadow: inset 0 0 0 1px #e4dcff; }
.sidebar .nav-link.active::before { display: block; content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #6366f1, #c026d3); }
.sidebar .nav-link.active .nav-ic { background: linear-gradient(135deg, #6366f1, #a855f7) !important; box-shadow: 0 6px 14px -8px rgba(99, 70, 230, .9); }
.sidebar .nav-link.active .nav-badge { background: #e11d48; color: #fff; }
.sidebar-foot { border-top: 0; padding: 10px 12px 12px; background: linear-gradient(180deg, transparent, #faf8ff); }
.sidebar-user { background: #f6f4ff; border: 1px solid #ebe6ff; box-shadow: none; border-radius: 14px; }
/* main column and header card */
.main { margin-left: var(--sidebar-w); padding: var(--frame) var(--frame) 0 0; }
.topbar { position: relative; top: auto; width: 100%; max-width: 1500px; margin: 0 auto; height: 66px; border-radius: 18px; border: 1px solid #e6e3f5 !important;
  background: #fff !important; box-shadow: 0 18px 40px -30px rgba(40, 30, 120, .45); padding: 0 12px 0 24px; z-index: 40; }
.topbar::after { display: none !important; }
.topbar-title { font-size: 17px; color: var(--ink); font-weight: 800; }
.topbar-search input { height: 42px; border-radius: 999px; background: #f6f5fc; border-color: #ebe9f6; padding-left: 40px; }
.topbar-search input:focus { background: #fff; }
.topbar-search .svg-i { top: 13px; left: 14px; }
.topbar-actions .icon-btn { width: 42px; height: 42px; border-radius: 12px; background: #f6f5fc; border: 1px solid #ebe9f6; }
.topbar-actions .icon-btn:hover { background: #efecff; color: #4a36d9; }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid #ebe9f6; background: #f6f5fc; cursor: pointer; font: inherit; color: var(--ink); }
.acct-btn:hover { background: #efecff; }
.acct-btn .avatar { width: 34px; height: 34px; font-size: 12px; }
.acct-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.acct-txt b { font-size: 13px; } .acct-txt small { font-size: 11px; color: var(--muted); }
.content { max-width: 1500px; padding: 24px 0 40px; }
body.is-modal .main { padding: 0; margin-left: 0; }
@media (max-width: 1180px) { .acct-txt { display: none; } .acct-btn { padding: 0 8px 0 4px; } }
@media (max-width: 900px) {
  .sidebar { top: 10px; left: 10px; bottom: 10px; width: 270px; transform: translateX(calc(-100% - 24px)); }
  body.nav-open .sidebar { transform: none; }
  .main { margin-left: 0; padding: 10px 10px 0; }
  .topbar { height: 58px; padding: 0 8px 0 10px; border-radius: 16px; }
  .topbar-title { font-size: 15px; }
  .acct-btn .chev, .acct-btn > .svg-i { display: none; }
  .content { padding: 16px 0 32px; }
}
/* Get-the-app page */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: center; padding: 28px 30px; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 0%, rgba(192, 38, 211, .14), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(22, 191, 230, .14), transparent 70%), #fff; }
.app-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #4a36d9; background: #efeaff; padding: 5px 10px; border-radius: 999px; }
.app-hero h2 { font-size: 26px; margin: 12px 0 8px; } .app-hero p { color: var(--ink-2); max-width: 560px; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.app-phone { justify-self: center; width: 170px; height: 330px; border-radius: 30px; background: #1b1846; padding: 9px; box-shadow: 0 30px 60px -30px rgba(40, 30, 120, .7); transform: rotate(4deg); }
.ph-screen { height: 100%; border-radius: 22px; background: #f4f2fd; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ph-top { background: #fff; border-radius: 10px; padding: 6px; } .ph-top img { height: 18px; display: block; }
.ph-card { height: 52px; border-radius: 12px; } .ph-card.c1 { background: linear-gradient(135deg, #4f46e5, #a855f7); } .ph-card.c2 { background: #fff; height: 40px; } .ph-card.c3 { background: linear-gradient(135deg, #10b981, #06b6d4); height: 60px; }
.ph-row { display: flex; gap: 8px; } .ph-row i { flex: 1; height: 34px; border-radius: 10px; background: #fff; }
.app-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
@media (max-width: 760px) { .app-hero { grid-template-columns: 1fr; padding: 22px 18px; } .app-phone { display: none; } }
.ins-grid > .card + .card, .pnl-wrap > .card + .card { margin-top: 0; }
.ins-grid { align-items: stretch; }
/* Domains & hosting groups (customer + project pages) */
.dh-wrap { display: flex; flex-direction: column; }
.dh-group + .dh-group { border-top: 1px solid var(--line); }
.dh-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.dh-head h3 { font-size: 15px; margin: 0; } .dh-head .count { margin-right: auto; }
.dh-head .k-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.dh-empty { padding: 0 18px 16px 60px; color: var(--muted); font-size: 13px; }
@media (min-width: 761px) { .dh-group .table { table-layout: fixed; } .dh-group th:nth-child(2) { width: 18%; } .dh-group th:nth-child(3) { width: 20%; } .dh-group th:nth-child(4) { width: 15%; } .dh-group th:nth-child(5) { width: 12%; } }
@media (min-width: 761px) { .dh-group .table { table-layout: fixed; } .dh-group th:nth-child(2) { width: 18%; } .dh-group th:nth-child(3) { width: 20%; } .dh-group th:nth-child(4) { width: 15%; } .dh-group th:nth-child(5) { width: 12%; } }
/* Login field icons: real elements on top of the input (autofill-proof) */
.auth2 .auth-card input[type=email], .auth2 .auth-card input[type=password], .auth2 .auth-card input.pw-shown { background-image: none !important; padding-left: 46px; }
.ico-wrap { position: relative; }
.in-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: inline-flex; pointer-events: none; z-index: 2; }
.in-mail { color: #6a3de8; } .in-lock { color: #c23bd4; }
.auth2 .auth-card input:-webkit-autofill, .auth2 .auth-card input:-webkit-autofill:hover, .auth2 .auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f8f8fe inset; box-shadow: 0 0 0 1000px #f8f8fe inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 9999s; }
.auth2 .auth-card input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(106,61,232,.14); }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; max-height: 50vh; overflow-y: auto; padding: 4px 2px; }
.ex-field { font-size: 13.5px; }
@media (max-width: 480px) { .ex-grid { grid-template-columns: 1fr; } }

/* ---------- Work status control (Pending / In progress / Completed) ---------- */
.ws-form { margin: 0; display: inline-block; }
.ws-select { appearance: none; -webkit-appearance: none; border: 1px solid transparent; border-radius: 999px; padding: 4px 26px 4px 11px; font: 600 12px/1.3 var(--f-body, inherit); cursor: pointer; background-repeat: no-repeat; background-position: right 8px center; background-size: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); max-width: 100%; }
.ws-select:focus-visible { outline: 2px solid var(--brand, #4a36d9); outline-offset: 2px; }
.ws-select.ws-not_started { background-color: #fff4e0; color: #9a5b00; border-color: #f4d7a6; }
.ws-select.ws-on_hold { background-color: #ffe8ea; color: #c0283a; border-color: #f7c3c9; }
.ws-select.ws-in_progress { background-color: #ecebff; color: #3d2fc4; border-color: #d3cffd; }
.ws-select.ws-completed, .ws-select.ws-delivered { background-color: #e3f7ee; color: #0b7a52; border-color: #b6e8d1; }
.ws-select.ws-busy { opacity: .6; pointer-events: none; }
.ws-select option { background: #fff; color: #1b1846; }
.pj-work { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pj-work-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.ws-seg { display: inline-flex; margin: 0; padding: 3px; gap: 3px; border-radius: 999px; background: var(--surface-2, #f3f3f8); border: 1px solid var(--line, #e6e6ef); flex-wrap: wrap; }
.ws-seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: 600 12.5px/1.2 inherit; color: var(--ink-2, #4a4870); cursor: pointer; transition: background .15s, color .15s; }
.ws-seg button:hover:not(.on) { background: rgba(74, 54, 217, .08); color: var(--ink, #1b1846); }
.ws-seg button.on { cursor: default; color: #fff; box-shadow: 0 2px 6px rgba(27, 24, 70, .15); }
.ws-seg button.on.ws-not_started { background: #e08a00; }
.ws-seg button.on.ws-in_progress { background: #4a36d9; }
.ws-seg button.on.ws-on_hold { background: #dc3545; }
.ws-seg button.on.ws-completed { background: #0e9f6e; }
.ws-seg button[disabled] { opacity: 1; }
@media (max-width: 640px) {
  .pj-work { align-items: stretch; flex-direction: column; gap: 6px; width: 100%; }
  .ws-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
  .ws-seg button { padding: 8px 4px; font-size: 12px; white-space: nowrap; border-radius: 11px; }
}

/* ---------- GST Returns ---------- */
.gst-note { margin-bottom: 14px; }
.gst-table th.chk, .gst-table td.chk { width: 34px; padding-right: 0; }
.gst-table td.chk input, .gst-table th.chk input { width: 16px; height: 16px; accent-color: var(--brand, #4a36d9); cursor: pointer; }
.gst-table form.inline { display: inline; margin: 0; }
.gst-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.gst-table td .t-sub { white-space: normal; }
.gst-act .btn { white-space: nowrap; }
.gst-bulk { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 14px 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, #e6e6ef); box-shadow: 0 8px 24px rgba(27, 24, 70, .12); }
.gst-bulk .select { width: auto; min-width: 220px; max-width: 100%; }
.gst-bulk button[disabled] { opacity: .5; cursor: not-allowed; }
.gst-co { margin-left: auto; }
.gst-co .select { width: auto; min-width: 200px; }
.gst-msum { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2, #f4f4fa); border: 1px solid var(--line, #e6e6ef); font-size: 13px; color: var(--ink-2, #4a4870); }
.gst-msum b { color: var(--ink, #1b1846); }
.gst-missed { display: flex; flex-direction: column; gap: 6px; max-height: 170px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line, #e6e6ef); border-radius: 10px; font-size: 13px; }
@media (max-width: 640px) {
  .gst-bulk { margin: 10px 8px; }
  .gst-bulk .select { min-width: 0; width: 100%; }
  .gst-table td.chk { width: auto; }
}

/* ---------- Responsive hardening (phones & tablets) ---------- */
.filters .more-panel > * { min-width: 0; }
.filters .more-panel .ac-wrap, .filters .more-panel input, .filters .more-panel select { max-width: 100%; min-width: 0; }
.grid > *, .form-grid > * { min-width: 0; }
/* Tablets: tighter table cells so lists fit without sideways scrolling */
@media (min-width: 641px) and (max-width: 1380px) {
  .table th { padding: 10px 9px; font-size: 11.5px; }
  .table td { padding: 11px 9px; font-size: 13.5px; }
  .table td .t-sub { font-size: 11.5px; }
  .table td.td-main { min-width: 160px; }
  .gst-table td .t-sub { max-width: 170px; }
  .gst-act .btn { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 641px) and (max-width: 1180px) { .gst-table td.td-main { min-width: 120px; } }

/* Profile headers (customer, lead, project): avatar sits on the cover, the text always starts below the cover */
@media (max-width: 640px) {
  .profile-cover + .profile-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 16px 14px; }
  .profile-cover + .profile-head .cu-ph-text { padding-top: 0; width: 100%; min-width: 0 !important; }
  .profile-cover + .profile-head .p-name { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
  .cu-head-actions { width: 100%; margin-left: 0; padding-top: 0; }
  .pj-head .profile-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pj-head .pj-body { padding-top: 0; width: 100%; }
  .pj-head .pj-actions { padding-top: 0; margin-left: 0; width: 100%; }
}
/* Work-status switch fits on tablets and phones */
@media (max-width: 1180px) {
  .pj-work { width: 100%; }
  .ws-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 520px; border-radius: 14px; }
  .ws-seg button { padding: 7px 4px; font-size: 12px; white-space: nowrap; border-radius: 11px; }
}
@media (max-width: 420px) { .ws-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Mobile list cards: the label never breaks in the middle of a word */
@media (max-width: 640px) {
  .table.responsive td::before { flex-shrink: 0; white-space: nowrap; margin-right: 8px; }
  .table.responsive td { min-width: 0; }
  .table.responsive td > * { min-width: 0; }
}
/* Invoice line-item editor on phones: description on its own line, qty / rate / amount below */
@media (max-width: 640px) {
  .li-table thead { display: none; }
  .li-table, .li-table tbody { display: block; width: 100%; }
  .li-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr) 34px; gap: 6px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .li-table td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; }
  .li-table td:first-child { grid-column: 1 / -1; }
  .li-table td[data-amount] { text-align: right; font-weight: 700; }
  .li-table .input { width: 100%; min-width: 0; }
  [data-items-editor] .table-wrap { overflow: visible; }
}
@media (max-width: 640px) {
  .li-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
  .li-table td[data-amount]::before { text-align: right; }
}
/* Summary cards on tablets: even rows, no single card left alone on the last row */
@media (min-width: 641px) and (max-width: 1180px) {
  .summary:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .summary:has(> :nth-child(7):last-child), .summary:has(> :nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1700px) { .col-xl { display: none !important; } }
@media (min-width: 1381px) and (max-width: 1520px) { .table th { padding: 10px 10px; } .table td { padding: 12px 10px; } }
/* Customers list on laptops: compact contact and profile columns */
@media (min-width: 641px) and (max-width: 1600px) {
  .cu-email { max-width: 170px; }
  .pf-cell .pf-ok { display: none; }
  .pf-cell .pf-chips span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1600px) { .table td.td-main { min-width: 170px; } }
@media (min-width: 641px) and (max-width: 1180px) { .table.gst-table td.td-main { min-width: 110px; } .table.gst-table td .t-sub { max-width: 150px; } }
