/* JpacSys | AinoTech - "Aurora" theme (original CSS, Bootstrap 5.3 based). Light + dark mode. */
:root {
  --jp-primary: #f0663a;
  --jp-primary-rgb: 240, 102, 58;
  --jp-primary-dark: #d94f24;
  --jp-primary-2: #ff9b73;                 /* gradient end */
  --jp-sidenav-w: 16.25rem;
  --jp-topnav-h: 4.25rem;
  --jp-bg: #f3f4f7;
  --jp-surface: #ffffff;
  --jp-tile: #f5f6f9;
  --jp-tile-2: #eceef3;
  --jp-ink: #1f2430;
  --jp-ink-2: #3b4250;
  --jp-muted: #7a8291;
  --jp-line: #e9ebf0;
  --jp-shadow: 0 1px 2px rgba(20, 24, 33, .04), 0 .5rem 1.6rem rgba(20, 24, 33, .06);
  --jp-shadow-lg: 0 .75rem 2.2rem rgba(20, 24, 33, .12);
  --jp-radius: 1.1rem;
  --jp-radius-sm: .8rem;
  --jp-success: #1fb36b; --jp-danger: #ef4b4b; --jp-warning: #f2a516; --jp-info: #2d8cf0;
  --jp-chip: #232733;
  --bs-primary: var(--jp-primary);
  --bs-primary-rgb: var(--jp-primary-rgb);
  --bs-link-color: var(--jp-primary);
  --bs-link-color-rgb: var(--jp-primary-rgb);
  --bs-link-hover-color: var(--jp-primary-dark);
  --bs-body-font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-bg: var(--jp-bg);
  --bs-body-color: var(--jp-ink);
  --bs-border-color: var(--jp-line);
  --bs-border-radius: .65rem;
  --bs-border-radius-sm: .5rem;
  --bs-border-radius-lg: .9rem;
}
[data-bs-theme="dark"] {
  --jp-bg: #12141b;
  --jp-surface: #1a1d26;
  --jp-tile: #222632;
  --jp-tile-2: #2a2f3d;
  --jp-ink: #e8eaf0;
  --jp-ink-2: #c3c8d4;
  --jp-muted: #8d94a5;
  --jp-line: #2b3040;
  --jp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 .5rem 1.6rem rgba(0, 0, 0, .25);
  --jp-shadow-lg: 0 .75rem 2.2rem rgba(0, 0, 0, .45);
  --jp-chip: #3a4052;
  --bs-body-bg: var(--jp-bg);
  --bs-body-color: var(--jp-ink);
  --bs-border-color: var(--jp-line);
  --bs-tertiary-bg: var(--jp-tile);
  --bs-secondary-bg: var(--jp-tile);
  --bs-emphasis-color: var(--jp-ink);
}
html, body { background: var(--jp-bg); }
body { color: var(--jp-ink); font-size: .9rem; -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: inherit; }
.min-w-0 { min-width: 0; }
.text-muted { color: var(--jp-muted) !important; }
hr { border-color: var(--jp-line); opacity: 1; }
::selection { background: rgba(var(--jp-primary-rgb), .22); }

/* ------------------------------------------------------------- buttons & form controls */
.btn { font-weight: 600; border-radius: .65rem; padding: .5rem 1rem; }
.btn-sm { border-radius: .55rem; padding: .3rem .7rem; }
.btn-primary { --bs-btn-bg: var(--jp-primary); --bs-btn-border-color: var(--jp-primary); --bs-btn-hover-bg: var(--jp-primary-dark); --bs-btn-hover-border-color: var(--jp-primary-dark); --bs-btn-active-bg: var(--jp-primary-dark); --bs-btn-active-border-color: var(--jp-primary-dark); --bs-btn-disabled-bg: var(--jp-primary); --bs-btn-disabled-border-color: var(--jp-primary);
  background-image: linear-gradient(135deg, var(--jp-primary), var(--jp-primary-2)); border: 0; box-shadow: 0 .35rem 1rem rgba(var(--jp-primary-rgb), .3); }
.btn-primary:hover { background-image: linear-gradient(135deg, var(--jp-primary-dark), var(--jp-primary)); }
.btn-outline-primary { --bs-btn-color: var(--jp-primary); --bs-btn-border-color: rgba(var(--jp-primary-rgb), .45); --bs-btn-hover-bg: var(--jp-primary); --bs-btn-hover-border-color: var(--jp-primary); --bs-btn-active-bg: var(--jp-primary); --bs-btn-active-border-color: var(--jp-primary); }
.btn-outline-secondary { --bs-btn-color: var(--jp-ink-2); --bs-btn-border-color: var(--jp-line); --bs-btn-hover-bg: var(--jp-tile); --bs-btn-hover-color: var(--jp-ink); --bs-btn-hover-border-color: var(--jp-line); --bs-btn-active-bg: var(--jp-tile-2); --bs-btn-active-color: var(--jp-ink); background: var(--jp-surface); }
.btn-light { --bs-btn-bg: var(--jp-tile); --bs-btn-border-color: var(--jp-tile); --bs-btn-color: var(--jp-ink); --bs-btn-hover-bg: var(--jp-tile-2); --bs-btn-hover-border-color: var(--jp-tile-2); }
.text-primary { color: var(--jp-primary) !important; }
.bg-primary { background-color: var(--jp-primary) !important; }
.border-primary { border-color: var(--jp-primary) !important; }
.form-control, .form-select { border-radius: .65rem; border-color: var(--jp-line); background-color: var(--jp-surface); color: var(--jp-ink); padding: .55rem .85rem; }
.form-control-sm, .form-select-sm { border-radius: .55rem; padding: .3rem .65rem; }
.form-control::placeholder { color: #a8afbc; }
.input-group-text { background: var(--jp-tile); border-color: var(--jp-line); color: var(--jp-muted); border-radius: .65rem; }
.form-check-input { border-color: #c9ced8; }
.form-check-input:checked { background-color: var(--jp-primary); border-color: var(--jp-primary); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--jp-primary-rgb), .6); box-shadow: 0 0 0 .22rem rgba(var(--jp-primary-rgb), .14); background-color: var(--jp-surface); color: var(--jp-ink); }
.form-label { font-weight: 600; font-size: .8rem; color: var(--jp-ink-2); margin-bottom: .35rem; }
.form-text { font-size: .75rem; color: var(--jp-muted); }
.page-link { color: var(--jp-ink-2); border-color: var(--jp-line); background: var(--jp-surface); border-radius: .55rem !important; margin: 0 .15rem; min-width: 2.2rem; text-align: center; }
.page-item.active .page-link { background: var(--jp-primary); border-color: var(--jp-primary); color: #fff; box-shadow: 0 .3rem .8rem rgba(var(--jp-primary-rgb), .3); }
.nav-tabs { border-bottom-color: var(--jp-line); gap: .25rem; }
.nav-tabs .nav-link { color: var(--jp-muted); border: 0; border-bottom: 2px solid transparent; font-weight: 600; padding: .65rem .9rem; }
.nav-tabs .nav-link:hover { color: var(--jp-ink); border-color: transparent; }
.nav-tabs .nav-link.active { color: var(--jp-primary); background: transparent; border-bottom-color: var(--jp-primary); }
.nav-pills .nav-link { color: var(--jp-ink-2); border-radius: .65rem; font-weight: 600; }
.nav-pills .nav-link.active { color: #fff; background: linear-gradient(135deg, var(--jp-primary), var(--jp-primary-2)); }
.progress { background: var(--jp-tile-2); border-radius: 1rem; }
.progress-bar { background-color: var(--jp-primary); border-radius: 1rem; }
.dropdown-menu { border: 1px solid var(--jp-line); border-radius: .9rem; box-shadow: var(--jp-shadow-lg); padding: .45rem; background: var(--jp-surface); --bs-dropdown-link-color: var(--jp-ink); --bs-dropdown-link-hover-bg: var(--jp-tile); --bs-dropdown-link-hover-color: var(--jp-ink); --bs-dropdown-header-color: var(--jp-muted); --bs-dropdown-divider-bg: var(--jp-line); }
.dropdown-item { border-radius: .55rem; padding: .5rem .7rem; font-weight: 500; }
.modal-content { border: 0; border-radius: var(--jp-radius); background: var(--jp-surface); box-shadow: var(--jp-shadow-lg); }
.alert { border: 0; border-radius: var(--jp-radius-sm); }
.alert-success { background: rgba(31, 179, 107, .12); color: #11804b; }
.alert-danger { background: rgba(239, 75, 75, .12); color: #b52a2a; }
.alert-warning { background: rgba(242, 165, 22, .15); color: #8a5a00; }
.alert-info { background: rgba(45, 140, 240, .11); color: #1f66b3; }
.alert-secondary { background: var(--jp-tile); color: var(--jp-ink-2); }
[data-bs-theme="dark"] .alert-success { color: #6be0a6; } [data-bs-theme="dark"] .alert-danger { color: #ff9a9a; }
[data-bs-theme="dark"] .alert-warning { color: #ffd37a; } [data-bs-theme="dark"] .alert-info { color: #8cc2ff; }
code { color: var(--jp-primary-dark); }
[data-bs-theme="dark"] code { color: var(--jp-primary-2); }
pre.bg-light, .bg-light { background-color: var(--jp-tile) !important; color: var(--jp-ink); }
.bg-white { background-color: var(--jp-surface) !important; }

/* soft badges / trend chips */
.badge { font-weight: 700; letter-spacing: .01em; border-radius: .5rem; padding: .38em .6em; }
.bg-primary-soft { background: rgba(var(--jp-primary-rgb), .13); }
.bg-success-soft { background: rgba(31, 179, 107, .14); }
.bg-danger-soft { background: rgba(239, 75, 75, .13); }
.bg-warning-soft { background: rgba(242, 165, 22, .18); }
.bg-info-soft { background: rgba(45, 140, 240, .13); }
.bg-secondary-soft { background: rgba(122, 130, 145, .15); }
.bg-dark-soft { background: rgba(31, 36, 48, .1); }
.bg-light-soft { background: var(--jp-surface); }
.badge.text-success { color: #13894f !important; } .badge.text-warning { color: #a86c00 !important; }
.badge.text-secondary { color: var(--jp-ink-2) !important; } .badge.text-info { color: #1f6fc4 !important; } .badge.text-danger { color: #c93636 !important; }
[data-bs-theme="dark"] .badge.text-success { color: #5fd99b !important; } [data-bs-theme="dark"] .badge.text-warning { color: #ffc95a !important; }
[data-bs-theme="dark"] .badge.text-info { color: #7db8ff !important; } [data-bs-theme="dark"] .badge.text-danger { color: #ff8a8a !important; }
.chip { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 700; padding: .18rem .5rem; border-radius: .45rem; }
.chip-up { background: rgba(31, 179, 107, .14); color: #13894f; }
.chip-down { background: rgba(239, 75, 75, .13); color: #c93636; }
.chip-flat { background: var(--jp-tile-2); color: var(--jp-ink-2); }

/* ------------------------------------------------------------- shell: sidebar + topbar */
#layoutSidenav { display: flex; }
#layoutSidenav_nav { width: var(--jp-sidenav-w); flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040; transition: transform .2s ease, width .2s ease; }
#layoutSidenav_content { margin-left: var(--jp-sidenav-w); flex: 1 1 auto; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; transition: margin .2s ease; }
#layoutSidenav_content > main { flex: 1 0 auto; }
body.sidenav-toggled #layoutSidenav_nav { transform: translateX(calc(-1 * var(--jp-sidenav-w))); }
body.sidenav-toggled #layoutSidenav_content { margin-left: 0; }
.sidenav-overlay { display: none; }
@media (max-width: 991.98px) {
  #layoutSidenav_nav { transform: translateX(calc(-1 * var(--jp-sidenav-w))); }
  #layoutSidenav_content { margin-left: 0; }
  body.sidenav-toggled #layoutSidenav_nav { transform: translateX(calc(-1 * var(--jp-sidenav-w))); }
  body.sidenav-open #layoutSidenav_nav { transform: none; box-shadow: 0 0 2.5rem rgba(0, 0, 0, .3); }
  body.sidenav-open .sidenav-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 18, 26, .45); backdrop-filter: blur(2px); z-index: 1039; }
  body.sidenav-open { overflow: hidden; }
}

.sidenav { display: flex; flex-direction: column; height: 100%; background: var(--jp-surface); border-right: 1px solid var(--jp-line); }
.sidenav-menu { flex: 1 1 auto; overflow-y: auto; padding: 0 .85rem 1rem; scrollbar-width: thin; }
.sidenav-nav-list { display: flex !important; flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important; width: 100%; gap: .15rem; }
.sidenav-nav-list > * { width: 100% !important; flex: 0 0 auto !important; }
.sidenav-brand { padding: 1.15rem .35rem 1rem; display: flex; align-items: center; min-height: var(--jp-topnav-h); position: sticky; top: 0; background: var(--jp-surface); z-index: 2; }
.sidenav-brand a { color: var(--jp-ink); display: flex; align-items: center; gap: .65rem; min-width: 0; width: 100%; }
.brand-logo { object-fit: contain; flex-shrink: 0; display: block; }
.sidenav-brand-logo-only a { justify-content: center; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: linear-gradient(135deg, var(--jp-primary), var(--jp-primary-2)); color: #fff; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 .35rem .9rem rgba(var(--jp-primary-rgb), .35); }
.brand-text { font-weight: 800; font-size: 1.05rem; line-height: 1.15; word-break: break-word; min-width: 0; letter-spacing: -.02em; }
.sidenav-menu-heading { display: block; width: 100%; padding: 1.15rem .75rem .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: var(--jp-muted); }
.sidenav-nav-list > :first-child.sidenav-menu-heading { padding-top: .3rem; }
.sidenav .nav-link { display: flex; align-items: center; width: 100%; padding: .62rem .75rem; font-weight: 600; font-size: .86rem; color: var(--jp-ink-2); border-radius: .7rem; box-sizing: border-box; transition: background .15s, color .15s; }
.sidenav .nav-link:hover { background: var(--jp-tile); color: var(--jp-ink); }
.sidenav .nav-link.active { color: #fff; background: linear-gradient(135deg, var(--jp-primary), var(--jp-primary-2)); box-shadow: 0 .45rem 1.1rem rgba(var(--jp-primary-rgb), .32); }
.sidenav .nav-link.active .nav-link-icon { color: #fff; }
.sidenav .nav-link .badge { margin-left: auto; }
.sidenav .nav-link.active .badge { background: rgba(255, 255, 255, .25) !important; color: #fff !important; }
.nav-link-icon { width: 1.75rem; font-size: 1.02rem; flex-shrink: 0; color: var(--jp-muted); }
.sidenav-footer { margin: 0 .85rem .85rem; padding: .85rem .9rem; font-size: .78rem; border-radius: var(--jp-radius-sm); background: var(--jp-tile); }
.sidenav-footer-subtitle { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--jp-muted); }
.sidenav-footer-title { font-weight: 700; }
.sidenav-footer-text { font-size: .72rem; color: var(--jp-muted); }
/* optional dark sidebar (Settings > Branding > Side menu: dark) */
.sidenav-dark .sidenav { background: #171a22; border-right-color: #232735; }
.sidenav-dark .sidenav-brand { background: #171a22; }
.sidenav-dark .sidenav-brand a { color: #fff; }
.sidenav-dark .sidenav .nav-link { color: rgba(255, 255, 255, .7); }
.sidenav-dark .sidenav .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidenav-dark .nav-link-icon { color: rgba(255, 255, 255, .5); }
.sidenav-dark .sidenav-menu-heading { color: rgba(255, 255, 255, .38); }
.sidenav-dark .sidenav-footer { background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .8); }

.topnav { position: sticky; top: 0; z-index: 1030; height: var(--jp-topnav-h); display: flex; align-items: center; gap: .6rem; padding: 0 1.5rem; background: color-mix(in srgb, var(--jp-surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--jp-line); }
.topnav-search { width: 19rem; max-width: 40vw; position: relative; }
.topnav-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--jp-muted); pointer-events: none; }
.topnav-search input { padding-left: 2.3rem; background: var(--jp-tile); border-color: transparent; border-radius: .75rem; height: 2.5rem; }
.topnav-search input:focus { background: var(--jp-surface); }
.topnav-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; width: 2.5rem; padding: 0; border-radius: 50%; position: relative; }
.btn-round { background: var(--jp-tile); color: var(--jp-ink-2); border: 0; transition: background .15s, transform .15s; }
.btn-round:hover { background: var(--jp-tile-2); color: var(--jp-ink); }
.btn-square { border-radius: .7rem; background: var(--jp-tile); color: var(--jp-ink-2); border: 1px solid var(--jp-line); width: 2.35rem; height: 2.35rem; }
.btn-transparent-dark { color: var(--jp-ink-2); background: transparent; border: 0; }
.btn-transparent-dark:hover { background: var(--jp-tile); color: var(--jp-ink); }
.notif-dot { position: absolute; top: -.2rem; right: -.25rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 1rem; background: var(--jp-danger); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--jp-surface); }
.no-caret .dropdown-toggle::after, .no-caret > a::after { display: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--jp-primary), var(--jp-primary-2)); color: #fff; font-weight: 800; font-size: .8rem; position: relative; }
.avatar-status::after { content: ""; position: absolute; right: 0; bottom: 0; width: .7rem; height: .7rem; border-radius: 50%; background: var(--jp-success); border: 2px solid var(--jp-surface); }
.avatar-lg { width: 2.8rem; height: 2.8rem; font-size: .9rem; }
.theme-icon-dark { display: none; }
[data-bs-theme="dark"] .theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: inline; }

/* page header */
.page-header { padding: 1.6rem 0 1.1rem; }
.page-header-title { font-size: 1.45rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .7rem; word-break: break-word; letter-spacing: -.02em; }
.page-header-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; background: var(--jp-surface); color: var(--jp-primary); font-size: 1.1rem; flex-shrink: 0; box-shadow: var(--jp-shadow); }
.page-header-subtitle { color: var(--jp-muted); font-size: .84rem; margin-top: .2rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--jp-muted); --bs-breadcrumb-item-active-color: var(--jp-muted); font-weight: 500; }
.breadcrumb a { color: var(--jp-ink-2); }
.footer { color: var(--jp-muted); }

/* ------------------------------------------------------------- cards, panels, tiles */
.card { border: 0; background: var(--jp-surface); box-shadow: var(--jp-shadow); border-radius: var(--jp-radius); color: var(--jp-ink); }
.card-header { background: transparent; border-bottom: 1px solid var(--jp-line); font-weight: 700; padding: 1rem 1.25rem; font-size: .95rem; }
.card-header:first-child { border-radius: var(--jp-radius) var(--jp-radius) 0 0; }
.card-body { padding: 1.25rem; }
.card-footer { background: transparent; border-top: 1px solid var(--jp-line); }
.card-header-tabs .nav-link { font-size: .86rem; }
.list-group { --bs-list-group-bg: transparent; --bs-list-group-color: var(--jp-ink); --bs-list-group-border-color: var(--jp-line); --bs-list-group-action-hover-bg: var(--jp-tile); --bs-list-group-action-hover-color: var(--jp-ink); --bs-list-group-action-color: var(--jp-ink); }
.tile { background: var(--jp-tile); border-radius: var(--jp-radius-sm); padding: 1rem 1.1rem; position: relative; }
.row > [class*="col"] > .tile { height: 100%; }

/* stat tiles (used across the app) */
.stat-card { position: relative; height: 100%; border-radius: var(--jp-radius); background: var(--jp-surface); box-shadow: var(--jp-shadow); padding: 1.15rem 1.2rem; overflow: hidden; transition: transform .15s, box-shadow .15s; color: var(--jp-ink); }
a:hover > .stat-card { transform: translateY(-2px); box-shadow: var(--jp-shadow-lg); }
.stat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.stat-label { font-size: .84rem; font-weight: 600; color: var(--jp-ink-2); }
.stat-chip { width: 1.85rem; height: 1.85rem; border-radius: .55rem; display: grid; place-items: center; background: var(--jp-chip); color: #fff; font-size: .9rem; flex-shrink: 0; }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.15; margin-top: .9rem; letter-spacing: -.02em; word-break: break-word; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .76rem; color: var(--jp-muted); margin-top: .5rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.stat-card.featured { background: linear-gradient(135deg, var(--jp-primary) 0%, var(--jp-primary-2) 100%); color: #fff; box-shadow: 0 .8rem 1.8rem rgba(var(--jp-primary-rgb), .35); }
.stat-card.featured::after { content: ""; position: absolute; right: -2.5rem; bottom: -3rem; width: 11rem; height: 11rem; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 65%); pointer-events: none; }
.stat-card.featured::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px); background-size: 9px 9px; -webkit-mask-image: linear-gradient(120deg, transparent 45%, #000 100%); mask-image: linear-gradient(120deg, transparent 45%, #000 100%); pointer-events: none; }
.stat-card.featured .stat-label, .stat-card.featured .stat-sub { color: rgba(255, 255, 255, .88); }
.stat-card.featured .stat-chip { background: rgba(255, 255, 255, .22); }
.stat-card.featured .chip { background: rgba(255, 255, 255, .22); color: #fff; }
.stat-card.on-tile { background: var(--jp-tile); box-shadow: none; }
.stat-icon { display: none; }
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 230px; }

/* ------------------------------------------------------------- tables */
.table { --bs-table-bg: transparent; --bs-table-color: var(--jp-ink); --bs-table-border-color: var(--jp-line); --bs-table-striped-bg: var(--jp-tile); margin-bottom: 0; }
.table > thead > tr > th { font-size: .74rem; letter-spacing: .01em; color: var(--jp-muted); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--jp-line); background: var(--jp-tile); padding-top: .75rem; padding-bottom: .75rem; }
.table > thead > tr > th:first-child { border-top-left-radius: .6rem; border-bottom-left-radius: .6rem; }
.table > thead > tr > th:last-child { border-top-right-radius: .6rem; border-bottom-right-radius: .6rem; }
.card > .table-responsive > .table > thead > tr > th:first-child, .card > .table-responsive > .table > thead > tr > th:last-child { border-radius: 0; }
.table > thead > tr > th { border-bottom: 0; }
.table > tbody > tr > td { vertical-align: middle; padding-top: .8rem; padding-bottom: .8rem; border-bottom-color: var(--jp-line); }
.table > :not(caption) > * > * { padding-left: 1rem; padding-right: 1rem; }
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: rgba(var(--jp-primary-rgb), .045); --bs-table-hover-color: var(--jp-ink); }
.table-sm > :not(caption) > * > * { padding: .45rem .75rem; }
.online-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--jp-success); box-shadow: 0 0 0 .22rem rgba(31, 179, 107, .2); flex-shrink: 0; }
.offline-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #c3c8d2; flex-shrink: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84em; }
.kv dt { color: var(--jp-muted); font-weight: 600; font-size: .76rem; }
.kv dd { margin-bottom: .75rem; word-break: break-word; }
.copy-field { position: relative; }
.section-title { font-size: .76rem; letter-spacing: .02em; font-weight: 800; color: var(--jp-ink-2); margin: 1.3rem 0 .75rem; padding-bottom: .45rem; border-bottom: 1px solid var(--jp-line); }

/* ------------------------------------------------------------- auth pages (split screen) */
.auth-page { background: var(--jp-bg); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.auth-aside { display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem; isolation: isolate; }
@media (min-width: 992px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.login-bg, .login-overlay, .login-pattern { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.login-pattern { background-image: radial-gradient(rgba(255, 255, 255, .26) 1px, transparent 1.4px); background-size: 12px 12px; -webkit-mask-image: radial-gradient(circle at 80% 85%, #000 0, transparent 62%); mask-image: radial-gradient(circle at 80% 85%, #000 0, transparent 62%); }
.auth-aside > :not(.login-bg):not(.login-overlay):not(.login-pattern) { position: relative; }
.auth-aside h2, .auth-center h2 { font-weight: 800; font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -.03em; max-width: 30rem; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.auth-sub { max-width: 32rem; font-size: 1rem; opacity: .92; }
.auth-points li { margin-bottom: .6rem; opacity: .96; font-weight: 500; }
.auth-foot { opacity: .8; }
.layout-right .auth-aside { order: 2; }
@media (min-width: 992px) { .layout-right.auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.text-on-light .auth-aside, .text-on-light .auth-full { color: #1f2430; }
.text-on-light .login-pattern { background-image: radial-gradient(rgba(0, 0, 0, .18) 1px, transparent 1.4px); }
.text-on-light .auth-aside h2 { text-shadow: none; }
.layout-center.auth-wrap { display: block; }
.auth-full { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; isolation: isolate; color: #fff; overflow: hidden; }
.auth-center { width: 100%; max-width: 27rem; }
.auth-center .auth-card { max-width: none; }
.auth-card { color: var(--jp-ink); }
.auth-center-brand .auth-logo-img, .auth-center-brand .brand-mark { margin: 0 auto; }
.auth-aside .auth-points li { margin-bottom: .55rem; opacity: .95; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.1rem; }
.auth-card { width: 100%; max-width: 27rem; background: var(--jp-surface); border-radius: 1.4rem; box-shadow: var(--jp-shadow-lg); border: 0; overflow: hidden; }
.auth-header { background: transparent; color: var(--jp-ink); border: 0; }
.auth-logo { max-height: 3.6rem; max-width: 12rem; object-fit: contain; }
.auth-header .brand-mark { width: 3rem; height: 3rem; font-size: 1.45rem; }

/* ------------------------------------------------------------- misc */
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--jp-muted); }
.invoice-sheet { background: var(--jp-surface); max-width: 860px; margin: 0 auto; }
.tab-content > .tab-pane { padding-top: 1rem; }
.logo-preview { display: block; object-fit: contain; max-height: 3rem; max-width: 12rem; background: repeating-conic-gradient(#eef1f6 0% 25%, #fff 0% 50%) 50% / 12px 12px; border: 1px solid var(--jp-line); border-radius: .4rem; padding: .25rem; }
.setup-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem 0; border-bottom: 1px dashed var(--jp-line); }
.setup-row .k { flex: 0 0 13rem; font-weight: 700; }
.setup-row .v { flex: 1 1 14rem; min-width: 0; }
.setup-row code { font-size: .88rem; background: var(--jp-tile); padding: .28rem .55rem; border-radius: .45rem; word-break: break-all; }
.scroll-shadow { scrollbar-width: thin; }
@media (max-width: 575.98px) {
  body { font-size: .88rem; }
  .topnav { padding: 0 .85rem; }
  .page-header-title { font-size: 1.2rem; }
  .stat-value { font-size: 1.4rem; }
  .page-header-actions { width: 100%; }
  .page-header-actions .btn { flex: 1 1 auto; }
  .setup-row .k { flex-basis: 100%; }
  .btn-group-responsive { flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--jp-line); padding: .5rem 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem .9rem; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-weight: 700; color: var(--jp-muted); text-align: left; font-size: .74rem; }
  .table-stack td.no-label::before { content: none; }
}
@media print {
  .topnav, #layoutSidenav_nav, .footer, .page-header, .no-print, .sidenav-overlay, .alert { display: none !important; }
  #layoutSidenav_content { margin-left: 0 !important; }
  body, html { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .invoice-sheet { max-width: 100%; }
}

/* ------------------------------------------------------------- network dashboard */
.noc-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; padding: .45rem .85rem; border-radius: 2rem; background: var(--jp-surface); color: var(--jp-muted); box-shadow: var(--jp-shadow); vertical-align: middle; }
.noc-pulse { width: .55rem; height: .55rem; border-radius: 50%; background: #9aa3ae; }
.noc-live.ok { color: #13894f; } .noc-live.ok .noc-pulse { background: var(--jp-success); animation: nocPulse 1.6s infinite; }
.noc-live.warn { color: #a86c00; } .noc-live.warn .noc-pulse { background: var(--jp-warning); }
.noc-live.bad { color: #c93636; } .noc-live.bad .noc-pulse { background: var(--jp-danger); }
[data-bs-theme="dark"] .noc-live.ok { color: #5fd99b; } [data-bs-theme="dark"] .noc-live.warn { color: #ffc95a; } [data-bs-theme="dark"] .noc-live.bad { color: #ff8a8a; }
@keyframes nocPulse { 0% { box-shadow: 0 0 0 0 rgba(31, 179, 107, .55); } 70% { box-shadow: 0 0 0 .5rem rgba(31, 179, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 179, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .noc-live.ok .noc-pulse { animation: none; } }

.panel { background: var(--jp-surface); border-radius: var(--jp-radius); box-shadow: var(--jp-shadow); padding: 1rem; }
.row > [class*="col"] > .panel, .row > [class*="col"] > .noc-hero { height: 100%; }
.panel-title { font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .25rem .25rem .85rem; }
.panel-title .sub { font-weight: 500; font-size: .78rem; color: var(--jp-muted); }
.noc-tile-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.noc-mini { background: var(--jp-tile); border-radius: var(--jp-radius-sm); padding: .8rem .9rem; display: flex; flex-direction: column; height: 100%; }
.noc-mini span { font-size: .74rem; color: var(--jp-muted); font-weight: 600; }
.noc-mini b { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.noc-hero { background: linear-gradient(135deg, var(--jp-primary) 0%, var(--jp-primary-2) 100%); color: #fff; border-radius: var(--jp-radius); padding: 1.25rem 1.3rem; position: relative; overflow: hidden; box-shadow: 0 .8rem 1.8rem rgba(var(--jp-primary-rgb), .3); }
.noc-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px); background-size: 9px 9px; -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000 100%); mask-image: linear-gradient(120deg, transparent 40%, #000 100%); pointer-events: none; }
.noc-hero > * { position: relative; }
.noc-hero .noc-mini { background: rgba(255, 255, 255, .17); }
.noc-hero .noc-mini span { color: rgba(255, 255, 255, .85); }
.noc-eyebrow { font-size: .72rem; font-weight: 700; opacity: .85; }
.noc-title { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.noc-hero-sub { opacity: .9; font-size: .84rem; }
.noc-uptime { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.noc-error { background: rgba(0, 0, 0, .18); border-radius: .6rem; padding: .5rem .75rem; font-size: .82rem; }

.noc-ring { --p: 0; --c: var(--jp-success); flex: 0 0 6.4rem; width: 6.4rem; height: 6.4rem; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--jp-tile-2) 0); display: grid; place-items: center; transition: background .4s; }
.noc-ring.warn { --c: var(--jp-warning); } .noc-ring.bad { --c: var(--jp-danger); }
.noc-ring-in { width: 4.9rem; height: 4.9rem; border-radius: 50%; background: var(--jp-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.noc-ring-in b { font-size: 1.55rem; line-height: 1; font-weight: 800; }
.noc-ring-in span { font-size: .68rem; color: var(--jp-muted); font-weight: 600; }
.noc-bar .progress { height: .5rem; }
.noc-swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: .2rem; margin-right: .3rem; vertical-align: -1px; }
.sw-dw { background: var(--jp-primary); } .sw-up { background: var(--jp-chip); }
[data-bs-theme="dark"] .sw-up { background: #8ea2ff; }
.noc-bars { display: flex; align-items: flex-end; gap: .3rem; height: 5.5rem; }
.noc-bars i { flex: 1; border-radius: .3rem .3rem .15rem .15rem; background: linear-gradient(180deg, var(--jp-primary-2), var(--jp-primary)); min-height: 6%; transition: height .5s; }

.noc-ports { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.4rem, 1fr)); gap: .65rem; }
.noc-port { border-radius: var(--jp-radius-sm); padding: .8rem .6rem; text-align: center; background: var(--jp-tile); position: relative; }
.noc-port-jack { width: 2.7rem; height: 2.2rem; margin: 0 auto .4rem; border-radius: .55rem; display: grid; place-items: center; font-size: 1.15rem; background: var(--jp-tile-2); color: #9aa3ae; }
.noc-port.up .noc-port-jack { background: rgba(31, 179, 107, .16); color: #15a35f; }
.noc-port.up.wan .noc-port-jack { background: rgba(var(--jp-primary-rgb), .16); color: var(--jp-primary); }
.noc-port-name { font-weight: 800; font-size: .86rem; }
.noc-port-meta { font-size: .76rem; color: var(--jp-ink-2); }
.noc-port.down .noc-port-meta { color: var(--jp-muted); }
.noc-port-if { font-size: .7rem; color: var(--jp-muted); }
.noc-wan { background: var(--jp-tile); border-radius: var(--jp-radius-sm); padding: .9rem 1rem; margin-top: .65rem; }
.noc-kv th { width: 42%; font-weight: 600; color: var(--jp-muted); padding: .55rem 1.1rem !important; white-space: nowrap; background: transparent !important; font-size: .8rem; }
.noc-kv td { padding: .55rem 1.1rem !important; word-break: break-word; font-weight: 600; }
.noc-kv tr:nth-child(odd) > * { background: var(--jp-tile) !important; }
.noc-scroll { max-height: 30rem; overflow-y: auto; }
.noc-spark { height: .3rem; background: var(--jp-tile-2); border-radius: 1rem; margin-top: .3rem; min-width: 4rem; }
.noc-spark i { display: block; height: 100%; border-radius: 1rem; background: linear-gradient(90deg, var(--jp-primary-2), var(--jp-primary)); transition: width .5s; }
.noc-router { display: flex; gap: .8rem; align-items: center; padding: .75rem .85rem; border-radius: var(--jp-radius-sm); background: var(--jp-tile); color: var(--jp-ink); margin-bottom: .55rem; transition: background .15s; }
.noc-router:hover { background: var(--jp-tile-2); color: var(--jp-ink); }
.noc-router-icon { width: 2.4rem; height: 2.4rem; border-radius: .7rem; display: grid; place-items: center; background: var(--jp-surface); color: var(--jp-primary); font-size: 1.1rem; flex-shrink: 0; position: relative; }
.noc-router-icon .online-dot, .noc-router-icon .offline-dot { position: absolute; right: -.15rem; top: -.15rem; border: 2px solid var(--jp-tile); box-sizing: content-box; }
.noc-hero .noc-port { background: rgba(255, 255, 255, .16); color: #fff; }
.noc-hero .noc-port-jack { background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); }
.noc-hero .noc-port.up .noc-port-jack, .noc-hero .noc-port.up.wan .noc-port-jack { background: #fff; color: var(--jp-primary); }
.noc-hero .noc-port-meta, .noc-hero .noc-port-if, .noc-hero .noc-port.down .noc-port-meta { color: rgba(255, 255, 255, .85); }
.auth-aside .brand-mark { background: rgba(255, 255, 255, .22); box-shadow: none; }

.auth-brand { min-height: 1rem; }
.auth-logo-img { display: block; object-fit: contain; filter: drop-shadow(0 .4rem 1rem rgba(0, 0, 0, .18)); }
.auth-header .auth-logo-img { margin: 0 auto; }

/* Settings > Login Page live preview */
.lp { position: relative; display: flex; aspect-ratio: 16 / 10; max-width: 100%; border-radius: .9rem; overflow: hidden; background: var(--jp-bg); border: 1px solid var(--jp-line); font-size: .62rem; }
.lp-side { position: relative; flex: 0 0 52%; color: #fff; padding: 6% 5%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.lp-bg, .lp-ov, .lp-pat { position: absolute; inset: 0; z-index: -1; }
.lp-pat { background-image: radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1.3px); background-size: 7px 7px; -webkit-mask-image: radial-gradient(circle at 80% 85%, #000 0, transparent 62%); mask-image: radial-gradient(circle at 80% 85%, #000 0, transparent 62%); }
.lp-logo img { display: block; max-width: 100%; height: auto; margin-bottom: .5rem; }
.lp-h { font-weight: 800; font-size: 1.35em; line-height: 1.15; margin-bottom: .35rem; letter-spacing: -.02em; }
.lp-sub { opacity: .9; margin-bottom: .3rem; }
.lp-pts { list-style: none; padding: 0; margin: 0; } .lp-pts li { margin-bottom: .15rem; }
.lp-foot { position: absolute; left: 5%; bottom: 4%; opacity: .8; font-size: .85em; }
.lp-form { flex: 1; display: grid; place-items: center; padding: 4%; }
.lp-card { width: 82%; background: var(--jp-surface); border-radius: .5rem; box-shadow: var(--jp-shadow); padding: 9% 8%; display: flex; flex-direction: column; gap: .35rem; color: var(--jp-ink); }
.lp-card b { font-size: 1.2em; } .lp-card span { height: .3rem; width: 60%; background: var(--jp-tile-2); border-radius: 1rem; }
.lp-card i { height: 1rem; border: 1px solid var(--jp-line); border-radius: .3rem; } .lp-card em { height: 1rem; border-radius: .3rem; background: linear-gradient(135deg, var(--jp-primary), var(--jp-primary-2)); }
.lp.lay-right { flex-direction: row-reverse; }
.lp.lay-center .lp-side { position: absolute; inset: 0; flex: none; align-items: center; justify-content: flex-start; padding-top: 4%; }
.lp.lay-center .lp-h, .lp.lay-center .lp-sub, .lp.lay-center .lp-pts { display: none; }
.lp.lay-center .lp-form { position: relative; z-index: 1; padding-top: 14%; } .lp.lay-center .lp-card { width: 45%; }
.lp.lay-center .lp-foot { left: 0; right: 0; text-align: center; }
.lp.dark-text .lp-side { color: #1f2430; }

/* subscriber form: GIS + billing summary */
.gis-map { height: 22rem; border-radius: var(--jp-radius-sm); overflow: hidden; border: 1px solid var(--jp-line); z-index: 0; }
.gis-results { position: absolute; left: 0; right: 0; top: calc(100% + .3rem); z-index: 1000; max-height: 16rem; overflow-y: auto; border-radius: .75rem; }
.gis-layers .btn.active { background: var(--jp-primary); border-color: var(--jp-primary); color: #fff; }
.leaflet-container { font-family: inherit; }
.bill-summary { background: var(--jp-tile); border-radius: var(--jp-radius-sm); padding: .8rem .95rem; font-size: .84rem; }
.bill-row { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; }
.bill-row span { color: var(--jp-muted); }
.bill-row.accent b { color: var(--jp-primary); }
.bill-row.muted { border-top: 1px dashed var(--jp-line); margin-top: .3rem; padding-top: .45rem; font-size: .8rem; }
.bill-mode { border-radius: var(--jp-radius-sm); padding: .65rem .85rem; font-size: .82rem; }
.bill-mode.pre { background: rgba(31, 179, 107, .12); color: #13894f; }
.bill-mode.post { background: rgba(45, 140, 240, .11); color: #1f66b3; }
[data-bs-theme="dark"] .bill-mode.pre { color: #6be0a6; } [data-bs-theme="dark"] .bill-mode.post { color: #8cc2ff; }
.sub-addr { max-width: 16rem; }
.gis-item { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem; border: 0; border-bottom: 1px solid var(--jp-line); }
.gis-item:last-child { border-bottom: 0; }
.gis-item.active-item { background: rgba(var(--jp-primary-rgb), .08); }
.gis-ic { width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: .6rem; display: grid; place-items: center; background: var(--jp-tile); color: var(--jp-primary); }
.gis-item mark { background: rgba(var(--jp-primary-rgb), .18); color: inherit; padding: 0 .05em; border-radius: .2rem; }
.gis-results { background: var(--jp-surface); }

/* ===================================================== compact subscriber form + documents (1.0.16) */
.form-compact .form-label { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--jp-muted); margin-bottom: .2rem; }
.form-compact .form-control, .form-compact .form-select { padding-top: .38rem; padding-bottom: .38rem; font-size: .875rem; }
.form-compact .input-group-text, .form-compact .input-group > .btn { padding-top: .38rem; padding-bottom: .38rem; font-size: .8rem; }
.form-compact .form-text { font-size: .72rem; margin-top: .15rem; }
.form-compact textarea.form-control { min-height: 3.6rem; }
.fc-sec { display: flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jp-primary); margin: 0 0 .45rem; }
.fc-sec::after { content: ""; flex: 1; height: 1px; background: var(--jp-line); margin-left: .5rem; }
.sub-form .card-header-tabs .nav-link { font-size: .85rem; padding: .55rem .9rem; }
.sub-form .tab-content > .tab-pane { min-height: 21rem; }
.sub-form .sub-side .card-body { padding: 1rem; }
.sub-form .sub-side .row { --bs-gutter-y: .6rem; }
@media (min-width: 1200px) { .sub-form .sub-side { position: sticky; top: calc(var(--jp-topnav-h) + 1rem); align-self: flex-start; } }
.gis-embed .gis-map { height: 19rem; }

.docs-intro { display: flex; align-items: flex-start; font-size: .78rem; color: var(--jp-muted); background: var(--jp-tile); border-radius: var(--jp-radius-sm); padding: .55rem .8rem; margin-bottom: .9rem; }
.docs-intro i { color: var(--jp-primary); }
.doc-slot { height: 100%; border: 1px solid var(--jp-line); border-radius: var(--jp-radius-sm); padding: .8rem; background: var(--jp-surface); display: flex; flex-direction: column; }
.doc-slot-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.doc-ico { width: 2.2rem; height: 2.2rem; border-radius: .7rem; display: grid; place-items: center; flex: none; background: rgba(var(--jp-primary-rgb), .12); color: var(--jp-primary); font-size: 1.05rem; }
.doc-title { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.doc-hint { font-size: .72rem; color: var(--jp-muted); line-height: 1.25; }
.min-w-0 { min-width: 0; }
.doc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; text-align: center; cursor: pointer; border: 1.5px dashed rgba(var(--jp-primary-rgb), .45); border-radius: var(--jp-radius-sm); padding: .8rem .6rem; background: rgba(var(--jp-primary-rgb), .04); color: var(--jp-ink); font-size: .8rem; transition: background .15s, border-color .15s, transform .15s; margin: 0; }
.doc-drop i { font-size: 1.45rem; color: var(--jp-primary); line-height: 1; }
.doc-drop small { color: var(--jp-muted); font-size: .7rem; }
.doc-drop:hover, .doc-drop:focus-visible, .doc-drop.over { background: rgba(var(--jp-primary-rgb), .1); border-color: var(--jp-primary); outline: none; }
.doc-drop.over { transform: scale(1.01); }
.doc-queue:not(:empty) { margin-top: .5rem; display: grid; gap: .35rem; }
.doc-q { display: flex; align-items: center; gap: .55rem; padding: .35rem .45rem; border-radius: .6rem; background: rgba(var(--jp-primary-rgb), .07); font-size: .78rem; }
.doc-q-err { background: rgba(239, 75, 75, .1); color: var(--jp-danger); }
.doc-q-thumb { width: 2.3rem; height: 2.3rem; border-radius: .45rem; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--jp-surface); color: var(--jp-danger); font-size: 1.2rem; }
.doc-q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-q-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-q-info b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-q-info small { color: var(--jp-muted); font-size: .7rem; }
.doc-q .btn { padding: .15rem .4rem; }
.doc-list { margin-top: .6rem; display: grid; gap: .4rem; }
.doc-empty { font-size: .75rem; color: var(--jp-muted); text-align: center; padding: .4rem 0; }
.doc-item { display: flex; align-items: center; gap: .55rem; padding: .4rem; border: 1px solid var(--jp-line); border-radius: .7rem; }
.doc-thumb { width: 3rem; height: 3rem; flex: none; border: 0; padding: 0; border-radius: .5rem; overflow: hidden; background: var(--jp-tile); display: grid; place-items: center; color: var(--jp-danger); font-size: 1.5rem; cursor: zoom-in; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: .72rem; color: var(--jp-ink); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-sub { font-size: .68rem; color: var(--jp-muted); }
.doc-act { display: flex; gap: .2rem; }
.doc-act .btn { padding: .2rem .45rem; }
.docs-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--jp-line); }
.doc-viewer-body { background: #11131a; min-height: 60vh; display: flex; align-items: center; justify-content: center; border-radius: 0 0 var(--bs-modal-border-radius, .5rem) var(--bs-modal-border-radius, .5rem); overflow: hidden; }
.doc-viewer-body img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.doc-viewer-body iframe { width: 100%; height: 80vh; border: 0; background: #fff; }
.doc-list, .doc-queue:not(:empty) { grid-template-columns: minmax(0, 1fr); }
.doc-item, .doc-q { min-width: 0; }
.doc-act { align-items: center; flex: none; }
.doc-act .doc-view-btn { font-size: .74rem; font-weight: 600; padding: .22rem .6rem; white-space: nowrap; }

/* ===================================================== collections + payment gateway (1.0.27) */
.coll-tabs { gap: .4rem; flex-wrap: wrap; }
.coll-tabs .nav-link { border-radius: 999px; font-weight: 600; font-size: .88rem; padding: .45rem 1rem; background: var(--jp-surface); color: var(--jp-ink); box-shadow: var(--jp-shadow); }
.coll-tabs .nav-link.active { background: var(--jp-primary); color: #fff; }
.coll-card .table td { vertical-align: middle; }
.subs-online .card-header { border-left: 4px solid var(--jp-success); }
.subs-offline .card-header { border-left: 4px solid var(--jp-line); }
.bill-time { max-width: 8.5rem; }

.gw { border: 1px solid var(--jp-line); border-radius: var(--jp-radius); overflow: hidden; background: var(--jp-surface); box-shadow: var(--jp-shadow-lg); }
.gw-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; background: var(--jp-surface); color: var(--jp-ink); border-bottom: 1px solid var(--jp-line); }
.gw-bolt { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; flex: none; background: rgba(var(--jp-primary-rgb), .12); color: var(--jp-primary); font-size: 1.2rem; }
.gw-title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; color: var(--jp-ink); }
.gw-sub { font-size: .74rem; color: var(--jp-muted); }
.gw-body { background: var(--jp-bg); padding: 1rem 1.1rem; }
.gw-sec { background: var(--jp-surface); border: 1px solid var(--jp-line); border-radius: var(--jp-radius-sm); padding: 1rem 1.1rem; margin-bottom: .9rem; box-shadow: var(--jp-shadow); }
.gw-sec-blue { background: var(--jp-surface); border-left: 4px solid var(--jp-primary); }
.gw-cap { display: flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--jp-primary); padding-bottom: .6rem; margin-bottom: .8rem; border-bottom: 1px solid var(--jp-line); }
.gw-cap.text-success, .gw-cap.text-primary, .gw-cap.text-warning { color: var(--jp-primary) !important; }
.gw-l { font-size: .72rem; color: var(--jp-muted); margin-bottom: .25rem; font-weight: 600; }
.gw-v { font-size: .92rem; }
.gw-box { border: 1px solid var(--jp-line); border-radius: .6rem; padding: .45rem .7rem; font-size: .85rem; min-height: 2.3rem; background: var(--jp-tile); color: var(--jp-ink); }
.gw-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .65rem; font-size: .76rem; font-weight: 700; border: 0; }
.gw-tag-blue { color: var(--jp-primary); background: rgba(var(--jp-primary-rgb), .12); }
.gw-tag-orange { color: var(--jp-ink); background: var(--jp-tile); }
.gw-tag-green { color: var(--jp-success); background: rgba(31, 179, 107, .13); }
.gw-tag-gray { color: var(--jp-ink); background: var(--jp-tile); }
.gw-tag-red { color: var(--jp-danger); background: rgba(239, 75, 75, .13); }
.gw-num { font-weight: 800; font-size: 1.1rem; color: var(--jp-ink); }
.gw-hist th { font-size: .7rem; color: var(--jp-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--jp-tile); border: 0; }
.gw-hist td { font-size: .82rem; border-color: var(--jp-line); }
.gw-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .9rem; }
.gw-tab { border: 0; border-radius: 999px; padding: .5rem 1rem; font-size: .83rem; font-weight: 600; background: var(--jp-surface); color: var(--jp-ink); box-shadow: var(--jp-shadow); }
.gw-tab.active { background: var(--jp-primary); color: #fff; }
.gw-inner { background: var(--jp-tile); border: 0; border-radius: .7rem; padding: .75rem .4rem; margin: 0; }
.gw-check { display: flex; align-items: center; gap: .55rem; width: 100%; border: 1px solid var(--jp-line); border-radius: .6rem; padding: .6rem .8rem; font-size: .85rem; color: var(--jp-ink); font-weight: 600; cursor: pointer; margin: 0; background: var(--jp-surface); }
.gw-check .form-check-input { margin: 0; flex: none; }
.gw-preview:not(:empty) { margin-top: .5rem; font-size: .82rem; background: rgba(var(--jp-primary-rgb), .08); color: var(--jp-ink); border-radius: .6rem; padding: .55rem .75rem; }
.gw-foot { display: flex; justify-content: flex-end; gap: .5rem; border-top: 1px solid var(--jp-line); margin-top: 1rem; padding-top: .85rem; }

/* ===================== 2.0 multi-tenant: ISP sign-up, licence ===================== */
.auth-wide .auth-card { max-width: 48rem; }
@media (min-width: 992px) { .auth-wide.auth-wrap { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); } .layout-right.auth-wide.auth-wrap { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); } }
.signup-cta { border: 1px dashed rgba(var(--jp-primary-rgb), .45); background: rgba(var(--jp-primary-rgb), .05); border-radius: 1rem; padding: 1rem; }
.signup-cta-icon { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--jp-primary-rgb), .14); color: var(--jp-primary); font-size: 1.25rem; flex: none; }
.wz-steps { display: flex; gap: .4rem; margin-bottom: 1.4rem; counter-reset: wz; }
.wz-step { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; color: var(--jp-muted, #6c757d); font-size: .78rem; font-weight: 600; cursor: pointer; }
.wz-step::before { counter-increment: wz; content: counter(wz); display: inline-flex; width: 1.55rem; height: 1.55rem; border-radius: 50%; align-items: center; justify-content: center; margin-right: .35rem; background: var(--bs-secondary-bg); color: inherit; font-size: .75rem; }
.wz-step .wz-bar { display: block; height: 3px; border-radius: 3px; background: var(--bs-border-color); margin-top: .45rem; }
.wz-step.active, .wz-step.done { color: var(--jp-primary); }
.wz-step.active::before, .wz-step.done::before { background: var(--jp-primary); color: #fff; }
.wz-step.done::before { content: "\2713"; }
.wz-step.active .wz-bar, .wz-step.done .wz-bar { background: var(--jp-primary); }
.wz-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: calc(100% - 2rem); vertical-align: middle; }
@media (max-width: 575px) { .wz-step-label { display: none; } }
.wz-pane { display: none; }
.wz-pane.active { display: block; animation: wzIn .25s ease; }
@keyframes wzIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wz-section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--jp-muted, #6c757d); margin: .2rem 0 .7rem; }
.wz-review dt { font-weight: 600; color: var(--jp-muted, #6c757d); font-size: .8rem; }
.wz-review dd { margin-bottom: .55rem; }
.demo-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .5rem; }
.demo-limits > div { border: 1px solid var(--bs-border-color); border-radius: .8rem; padding: .55rem .7rem; font-size: .8rem; }
.demo-limits b { display: block; font-size: 1.1rem; color: var(--jp-primary); }
.code-status { font-size: .78rem; min-height: 1.1rem; }
.lic-banner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; border-radius: 1rem; padding: .7rem 1rem; margin-bottom: 1rem; background: rgba(255, 193, 7, .12); border: 1px solid rgba(255, 193, 7, .45); font-size: .88rem; }
.lic-banner .bi { font-size: 1.2rem; color: #b8860b; }
.lic-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem; }
.lic-usage .lic-meter { border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .9rem 1rem; background: var(--jp-surface); }
.lic-meter .lic-num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.lic-meter .progress { height: .45rem; margin-top: .55rem; }
.lic-key { font-family: "JetBrains Mono", monospace; font-size: .82rem; letter-spacing: .02em; }
.lic-hero { border-radius: 1.2rem; padding: 1.2rem 1.3rem; border: 1px solid var(--bs-border-color); background: var(--jp-surface); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lic-hero-icon { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(var(--jp-primary-rgb), .12); color: var(--jp-primary); flex: none; }
