/* LibSmart unified UI redesign — V2.30.15
   Fluid page layout, larger readable typography, and consistent controls.
   Print-specific receipt/document layouts are intentionally preserved. */
:root {
  --ui-bg: #f4f7fb;
  --ui-surface: #ffffff;
  --ui-text: #14213a;
  --ui-muted: #5e6b80;
  --ui-line: #dbe3ee;
  --ui-primary: #155eef;
  --ui-primary-hover: #0d4ed8;
  --ui-radius: 14px;
  --ui-shadow: 0 5px 20px rgba(16, 35, 66, .055);
  --ui-font: 14px;
}
html { font-size: 16px; }
body { font-size: var(--ui-font); line-height: 1.5; color: var(--ui-text); }
button, input, select, textarea { font: inherit; }
button, .btn, input[type="button"], input[type="submit"] { min-height: 40px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  font-size: 14px;
  line-height: 1.4;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select { min-height: 42px; }
label, .field label { font-size: 13px; line-height: 1.45; }
small, .small, .sub, .hint, .help, .muted, .footer-note { line-height: 1.5; }
.sub, .hint, .help { font-size: 13px; }
small { font-size: 12px; }
:focus-visible { outline: 3px solid rgba(21, 94, 239, .35); outline-offset: 2px; }

/* Authenticated library app: consume the usable viewport rather than centering
   a narrow content column inside a wide monitor. */
.layout { min-height: 100dvh; }
.sidebar {
  width: 248px;
  padding: 18px 12px 12px;
  background: #fff;
  border-right: 1px solid var(--ui-line);
  box-shadow: 5px 0 22px rgba(16, 24, 40, .025);
}
.layout > .main {
  margin-left: 248px;
  width: calc(100% - 248px);
  min-width: 0;
  padding: 22px 24px 28px;
}
.nav a { font-size: 14px; padding: 11px 13px; min-height: 42px; }
.brand div { font-size: 18px; }
.brand small { font-size: 11px; }
.top { gap: 16px; margin-bottom: 20px; }
.top h1 { font-size: clamp(25px, 1.8vw, 31px); line-height: 1.2; }
.sub { font-size: 14px; }
.grid { gap: 18px; }
.card { padding: 20px; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.layout .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-label { font-size: 13px; letter-spacing: .02em; }
.stat { font-size: 30px; }
.panel-title { font-size: 16px; line-height: 1.4; gap: 12px; }
.table-wrap, .table-scroll { max-width: 100%; }
.table th, .table td { font-size: 14px; padding: 13px 11px; }
.table th { font-size: 12px; line-height: 1.4; }
.badge { font-size: 12px; padding: 5px 9px; }
.btn { font-size: 14px; padding: 11px 15px; border-radius: 10px; }
.form { gap: 18px; }
.field label { margin-bottom: 7px; }
.field input, .field select, .field textarea { padding: 11px 12px; border-radius: 9px; }
.search { gap: 10px; }
.search input { min-height: 44px; font-size: 14px; }
.seat-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.seat { min-height: 78px; padding: 10px; }
.seat .nm { font-size: 12px; }
.legend, .chart-legend { font-size: 13px; }
.footer-note { font-size: 12px; padding: 14px 6px 8px; }
.mobile-topbar { display: none; }

/* Keep data tables usable: scroll the table, not the whole page. */
.table-wrap, .table-scroll, .finance-chart-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.table { min-width: 100%; }
.table th, .table td { vertical-align: middle; }

/* Registration and account setup pages */
.wrap {
  width: calc(100% - 32px);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.page { width: min(1560px, calc(100vw - 32px)); }
.library-register-wrap, .registration-wrap { width: calc(100% - 32px); max-width: 1600px; }
.section, .otpbox { border-radius: 16px; }
.field input, .field select, .field textarea { font-size: 14px; }
.field .hint, .field .help, .field small { font-size: 12px; }

/* Sign-in page: full-width split layout and readable form typography. */
body:has(.page) { padding: 16px; }
.page { grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); border-radius: 24px; }
body:has(.page) .left { padding: clamp(28px, 3vw, 52px); }
body:has(.page) .right { padding: clamp(20px, 2.5vw, 40px); }
body:has(.page) .logo { width: clamp(220px, 18vw, 290px); margin-bottom: 28px; }
body:has(.page) h1 { font-size: clamp(36px, 3vw, 48px); }
body:has(.page) .lead { font-size: 17px; }
body:has(.page) .eyebrow { font-size: 13px; }
body:has(.page) .feature { padding: 14px; }
body:has(.page) .feature b { font-size: 14px; }
body:has(.page) .feature small { font-size: 12px; }
body:has(.page) .trust { font-size: 13px; }
.auth-card { width: min(560px, 100%); padding: clamp(26px, 2.3vw, 38px); border-radius: 20px; }
.auth-brand img { width: 220px; }
.welcome { font-size: 28px; }
.hint { font-size: 14px; }
.field { margin-bottom: 17px; }
.field label { font-size: 14px; }
.field input { min-height: 46px; padding: 13px 14px; font-size: 15px; }
.help, .below, .admin a { font-size: 13px; }
.auth-card .btn { min-height: 46px; font-size: 15px; }
.footer { font-size: 12px; }

/* Platform admin pages use their own layout classes; keep them fluid too. */
.shell { width: 100%; }
.shell .side, .shell .sidebar { flex-shrink: 0; }
.shell .main, .shell main { min-width: 0; }
.platform-auth, .wrap { box-sizing: border-box; }
.platform-dashboard .wrap, .shell .wrap { width: 100%; max-width: none; }
.platform-auth .auth-card { width: min(520px, 100%); }
.platform-auth .field label, .shell .field label { font-size: 13px; }
.shell .table th, .shell .table td { font-size: 14px; }
.shell .btn { font-size: 14px; }

/* Modals should be spacious on desktop and fit smaller screens. */
.modal-panel, .receipt-preview-dialog, .student-file-preview-dialog { max-width: calc(100vw - 24px); }
.modal-panel { width: min(1560px, calc(100vw - 32px)); }
@media (min-width: 1200px) {
  .layout > .main { padding-left: 26px; padding-right: 26px; }
  .layout .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  .layout > .main { margin-left: 220px; width: calc(100% - 220px); padding: 20px; }
  .layout .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seat-grid { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
}
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; width: min(760px, calc(100vw - 24px)); }
  body:has(.page) .left { padding: 28px; }
  body:has(.page) .left .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(.page) .right { padding: 18px; }
  .sidebar { width: 100%; height: auto; min-height: 0; position: relative; inset: auto; border-right: 0; border-bottom: 1px solid var(--ui-line); }
  .layout { display: block; }
  .layout > .main { margin-left: 0; width: 100%; padding: 20px; }
  .mobile-topbar { display: flex; }
  .sidebar .nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 5px; }
  .sidebar .nav a { flex: 0 0 auto; white-space: nowrap; }
  .sidebar .footer-note { position: static; }
  .layout .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --ui-font: 14px; }
  body:has(.page) { padding: 8px; }
  .page { width: calc(100vw - 16px); border-radius: 16px; }
  .left { padding: 22px 18px; }
  body:has(.page) .logo { width: 190px; margin-bottom: 20px; }
  body:has(.page) h1 { font-size: 34px; }
  body:has(.page) .lead { font-size: 15px; }
  body:has(.page) .left .features { grid-template-columns: 1fr; }
  body:has(.page) .right { padding: 10px; }
  .auth-card { padding: 22px 18px; }
  .auth-brand img { width: 180px; }
  .welcome { font-size: 24px; }
  .below { align-items: flex-start; flex-direction: column; }
  .sidebar { padding: 10px; }
  .brand { padding: 8px 6px 12px; }
  .brand img { width: 42px; height: 42px; }
  .layout > .main { padding: 14px 12px 22px; }
  .top { align-items: stretch; flex-direction: column; }
  .top h1 { font-size: 24px; }
  .layout .cards { grid-template-columns: 1fr; }
  .card { padding: 15px; }
  .form { grid-template-columns: 1fr; }
  .form .full { grid-column: auto; }
  .actions, .search { flex-wrap: wrap; }
  .search input { min-width: 100%; }
  .seat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .table th, .table td { padding: 11px 9px; }
  .wrap, .library-register-wrap, .registration-wrap { width: calc(100% - 16px); }
}
@media print {
  html { font-size: initial; }
  body { font-size: initial; }
  .sidebar, .mobile-topbar, .top, .btn, .actions { display: none !important; }
  .layout > .main { margin: 0 !important; padding: 0 !important; width: 100% !important; }
}

/* Platform Admin has a separate shell; preserve its own navigation and KPI grid. */
.shell .main { margin-left: 248px; width: auto; padding: 0; }
.shell .wrap { width: 100%; max-width: none; padding: 26px; }
.shell .top { margin: 0; min-height: 68px; padding: 14px 28px; }
.shell .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shell .sub { font-size: 12px; letter-spacing: .06em; }
.shell .nav a { font-size: 14px; }
.shell .kpi .label { font-size: 13px; }
.shell .kpi-note, .shell .card-sub, .shell .alert .muted { font-size: 13px; }
.shell .table th { font-size: 12px; }
@media (max-width: 760px) { .shell .main { margin-left: 0; width: 100%; padding: 0; } .shell .wrap { padding: 16px; } .shell .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .shell .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Inline font-size declarations are common in legacy student detail/form views.
   Increase those by one CSS pixel as well, instead of leaving those screens tiny. */
[style*="font-size:"] { font-size: calc(1em + 1px) !important; }

/* V2.30.17 compact, near-full-width application layout */
:root { --ls-content-gutter: clamp(10px, 1.1vw, 20px); }
html { font-size: 16px; }
body:has(.page) { padding: 10px !important; }
body:has(.page) .page { width: min(100%, 1720px) !important; max-width: none !important; margin: 0 auto !important; min-height: calc(100vh - 20px); }
body:has(.page) .left { padding: clamp(22px, 2.1vw, 36px) !important; }
body:has(.page) .right { padding: clamp(12px, 1.2vw, 20px) !important; }
body:has(.page) .auth-card { width: min(100%, 520px) !important; padding: clamp(22px, 2vw, 30px) !important; }
body:has(.page) .field { margin-bottom: 12px; }
body:has(.page) .field label { font-size: 13px !important; }
body:has(.page) .field input { min-height: 44px; font-size: 15px !important; }
body:has(.page) .welcome { margin-top: 14px; font-size: 27px; }
body:has(.page) .hint { margin-bottom: 18px; font-size: 13px; }
body:has(.page) .btn { min-height: 45px; font-size: 15px; }
/* Registration / provisioning pages: reduce outer whitespace and vertical padding. */
.library-register-wrap, .registration-wrap, body:has(.otpbox) .wrap, body:has(.otpbox) .library-register-wrap { width: calc(100% - 20px) !important; max-width: 1600px !important; margin: 12px auto !important; padding: 0 0 12px !important; }
body:has(.otpbox) .card { padding: clamp(16px, 1.6vw, 24px) !important; border-radius: 16px !important; }
body:has(.otpbox) .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px !important; }
body:has(.otpbox) .field { margin-bottom: 9px !important; }
body:has(.otpbox) .field label { font-size: 13px !important; margin-bottom: 5px !important; }
body:has(.otpbox) .field input, body:has(.otpbox) .field select { min-height: 42px; padding: 9px 11px !important; font-size: 14px !important; }
body:has(.otpbox) .otpbox { padding: 12px !important; }
body:has(.otpbox) .info { margin: 4px 0 12px !important; padding: 10px 12px !important; }
body:has(.otpbox) .actions { padding-top: 12px !important; margin-top: 6px !important; }
/* Platform Admin shell: full width, denser grids, readable controls. */
.pa-content { padding: clamp(12px, 1.2vw, 20px) !important; }
.pa-page-heading { margin-bottom: 10px !important; }
.pa-kpis { gap: 9px !important; }
.pa-kpi { min-height: 118px !important; padding: 12px !important; }
.pa-kpi-icon { width: 30px !important; height: 30px !important; margin-bottom: 7px !important; }
.pa-panel { padding: 14px !important; }
.pa-main-grid, .pa-secondary-grid { gap: 10px !important; margin-top: 10px !important; }
.pa-chart { height: 195px !important; }
.pa-chart-track { height: 130px !important; }
.pa-table th, .pa-table td { padding: 9px 10px !important; }
/* Edit Library is a compact standalone page and must not inherit centered narrow wrappers. */
body:has(form[action*="repair-database"]) { background: #f2f6fc !important; font-size: 15px !important; }
body:has(form[action*="repair-database"]) .topbar { height: 54px !important; padding: 0 16px !important; }
body:has(form[action*="repair-database"]) .wrap { width: calc(100% - 24px) !important; max-width: none !important; margin: 0 auto !important; padding: 12px 0 18px !important; }
body:has(form[action*="repair-database"]) .back { margin-bottom: 8px !important; }
body:has(form[action*="repair-database"]) .grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr) !important; gap: 10px !important; align-items: start; }
body:has(form[action*="repair-database"]) .card { padding: 14px !important; border-radius: 12px !important; }
body:has(form[action*="repair-database"]) .card h2 { font-size: 17px !important; margin-bottom: 3px !important; }
body:has(form[action*="repair-database"]) .muted { margin-bottom: 10px !important; font-size: 13px !important; }
body:has(form[action*="repair-database"]) .field { margin: 8px 0 !important; }
body:has(form[action*="repair-database"]) .field label { font-size: 13px !important; margin-bottom: 4px !important; }
body:has(form[action*="repair-database"]) .field input, body:has(form[action*="repair-database"]) .field select { min-height: 38px; padding: 8px 10px !important; font-size: 14px !important; }
body:has(form[action*="repair-database"]) .actions { margin-top: 10px !important; }
body:has(form[action*="repair-database"]) .note { padding: 8px 10px !important; margin-top: 8px !important; font-size: 12px !important; }
body:has(form[action*="repair-database"]) .wide { grid-column: 1 / -1 !important; }
body:has(form[action*="repair-database"]) .wide .status-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
@media (max-width: 1100px) {
  .pa-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body:has(.otpbox) .grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  body:has(form[action*="repair-database"]) .grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 760px) {
  body:has(.page) { padding: 6px !important; }
  body:has(.page) .page { width: 100% !important; min-height: calc(100vh - 12px); grid-template-columns: 1fr !important; }
  body:has(.page) .left { display: none; }
  body:has(.page) .right { padding: 8px !important; }
  .library-register-wrap, .registration-wrap, body:has(.otpbox) .wrap { width: calc(100% - 12px) !important; }
  body:has(.otpbox) .grid, body:has(form[action*="repair-database"]) .grid { grid-template-columns: 1fr !important; }
  .pa-side { transform: translateX(-100%); }
  .pa-main { margin-left: 0 !important; width: 100% !important; }
  .pa-topbar { padding: 0 12px !important; }
  .pa-content { padding: 12px !important; }
  .pa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pa-main-grid, .pa-secondary-grid { grid-template-columns: 1fr !important; }
  body:has(form[action*="repair-database"]) .wide { grid-column: auto !important; }
}
@media (max-width: 420px) {
  .pa-kpis { grid-template-columns: 1fr 1fr !important; gap: 7px !important; }
  .pa-kpi { padding: 10px !important; }
  .pa-kpi strong { font-size: 21px !important; }
}


/* V2.30.18: compact navy library navigation aligned with Platform Admin. */
.layout > .sidebar{width:210px;padding:12px 10px;background:#102744;color:#e7eefb;border-right:1px solid #1d3b60;box-shadow:5px 0 22px rgba(8,24,48,.10);overflow-x:hidden;overflow-y:auto;scrollbar-width:none}
.layout > .sidebar::-webkit-scrollbar{width:0;height:0}
.layout > .sidebar .brand{color:#f8fbff;padding:8px 9px 14px;text-align:center;font-size:15px;line-height:1.25}
.layout > .sidebar .brand img{max-height:42px;max-width:100%;object-fit:contain;margin:0 auto 7px;display:block}
.layout > .sidebar .brand small{color:#9fb3d1;font-size:9px;letter-spacing:.06em}
.layout > .sidebar .nav{display:flex;flex-direction:column;gap:2px}
.layout > .sidebar .nav a{color:#d5e1f3;padding:7px 9px;margin:0;border-radius:8px;gap:8px;font-size:12px;line-height:1.2;min-height:31px}
.layout > .sidebar .nav a:hover{background:#1b3a61;color:#fff}
.layout > .sidebar .nav a.active{background:#24466f;color:#fff;font-weight:800;box-shadow:inset 3px 0 #68a0ff}
.layout > .sidebar .footer-note{margin-top:auto;background:#102744;color:#9fb3d1;border-top:1px solid #2a4261;padding:10px 5px 4px;font-size:10px;line-height:1.5;position:sticky;bottom:0}
.layout > .sidebar .footer-note a{color:#cfe0ff}
.layout > .main{margin-left:210px;width:calc(100% - 210px);padding:18px clamp(12px,1.2vw,20px)}
@media(max-width:1000px){.layout > .sidebar{width:190px}.layout > .main{margin-left:190px;width:calc(100% - 190px)}}
@media(max-width:700px){.layout > .sidebar{width:100%;position:relative;height:auto;max-height:none;overflow:visible;background:#102744}.layout > .sidebar .nav{display:flex;flex-direction:row;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}.layout > .sidebar .nav a{flex:0 0 auto}.layout > .sidebar .footer-note{position:static}.layout > .main{margin-left:0;width:100%;padding:14px}}


/* V2.30.19 — compact owner navigation aligned with Platform Admin palette.
   Desktop navigation is sized to fit common 768–1080px-tall displays without
   a nested sidebar scrollbar; small screens switch back to a horizontal menu. */
.layout > .sidebar {
  width: 210px !important;
  height: 100dvh !important;
  min-height: 0 !important;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 10px 9px 8px !important;
  overflow: hidden !important;
  background: #102846 !important;
  color: #e8f0fb !important;
  border-right: 1px solid #243f60 !important;
  box-shadow: 5px 0 20px rgba(5, 18, 38, .10) !important;
}
.layout > .sidebar .brand,
.layout > .sidebar .brand-link {
  color: #f8fbff !important;
  padding: 7px 5px 9px !important;
  margin: 0 0 5px !important;
  text-align: center !important;
  flex: 0 0 auto !important;
}
.layout > .sidebar .brand img { width: 39px !important; height: 39px !important; object-fit: contain; margin: 0 auto 4px !important; }
.layout > .sidebar .brand div { color: #fff !important; font-size: 14px !important; line-height: 1.25 !important; font-weight: 800 !important; }
.layout > .sidebar .brand small { color: #9fb4cf !important; font-size: 8px !important; letter-spacing: .06em !important; line-height: 1.2 !important; }
.layout > .sidebar .nav {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 2px 0 !important;
}
.layout > .sidebar .nav a {
  display: flex !important;
  align-items: center !important;
  min-height: 28px !important;
  height: 28px !important;
  box-sizing: border-box !important;
  flex: 0 0 28px !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #d8e4f3 !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
.layout > .sidebar .nav a:hover {
  color: #fff !important;
  background: #1a3658 !important;
}
.layout > .sidebar .nav a.active {
  color: #fff !important;
  background: #23456d !important;
  box-shadow: inset 3px 0 0 #60a5fa !important;
  font-weight: 800 !important;
}
.layout > .sidebar .footer-note {
  position: static !important;
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding: 8px 4px 3px !important;
  border-top: 1px solid #2b4564 !important;
  color: #9fb4cf !important;
  font-size: 9.5px !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
}
.layout > .sidebar .footer-note a { color: #d9e8ff !important; }
.layout > .sidebar .auth-user { color: #c8d8ed !important; }
.layout > .main {
  margin-left: 210px !important;
  width: calc(100% - 210px) !important;
  min-width: 0 !important;
}
@media (max-height: 720px) and (min-width: 901px) {
  .layout > .sidebar { padding-top: 5px !important; padding-bottom: 4px !important; }
  .layout > .sidebar .brand { padding-top: 3px !important; padding-bottom: 4px !important; margin-bottom: 1px !important; }
  .layout > .sidebar .brand img { width: 31px !important; height: 31px !important; }
  .layout > .sidebar .nav a { min-height: 25px !important; height: 25px !important; flex-basis: 25px !important; font-size: 10.5px !important; padding: 3px 7px !important; }
  .layout > .sidebar .nav { gap: 0 !important; }
  .layout > .sidebar .footer-note { padding-top: 5px !important; }
}
@media (max-width: 900px) {
  .layout > .sidebar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 8px !important;
    display: block !important;
    border-right: 0 !important;
    border-bottom: 1px solid #243f60 !important;
  }
  .layout > .sidebar .brand { text-align: left !important; display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; }
  .layout > .sidebar .brand img { margin: 0 !important; }
  .layout > .sidebar .nav { display: flex !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 3px 0 5px !important; }
  .layout > .sidebar .nav a { flex: 0 0 auto !important; width: auto !important; min-height: 30px !important; height: 30px !important; }
  .layout > .sidebar .footer-note { margin-top: 4px !important; }
  .layout > .main { margin-left: 0 !important; width: 100% !important; }
}


/* V2.30.20 — hard cache-busted owner sidebar alignment.
   Keep the owner navigation visually consistent with the Platform Admin panel. */
.layout > aside.sidebar {
  width: 210px !important;
  max-width: 210px !important;
  height: 100vh !important;
  height: 100dvh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 8px 9px 7px !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  background: #102846 !important;
  color: #e8f0fb !important;
  border-right: 1px solid #243f60 !important;
}
.layout > aside.sidebar::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.layout > aside.sidebar .brand,
.layout > aside.sidebar .brand-link {
  flex: 0 0 auto !important;
  color: #f8fbff !important;
  background: transparent !important;
  padding: 4px 4px 7px !important;
  margin: 0 0 3px !important;
  text-align: center !important;
}
.layout > aside.sidebar .brand img {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  margin: 0 auto 4px !important;
}
.layout > aside.sidebar .brand div { color: #fff !important; font-size: 13px !important; line-height: 1.2 !important; }
.layout > aside.sidebar .brand small { color: #9fb4cf !important; font-size: 8px !important; line-height: 1.1 !important; letter-spacing: .05em !important; }
.layout > aside.sidebar nav.nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  overflow: hidden !important;
  padding: 2px 0 !important;
}
.layout > aside.sidebar nav.nav a {
  flex: 0 0 27px !important;
  height: 27px !important;
  min-height: 27px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 3px 7px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #d8e4f3 !important;
  background: transparent !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transform: none !important;
}
.layout > aside.sidebar nav.nav a:hover { background: #1a3658 !important; color: #fff !important; }
.layout > aside.sidebar nav.nav a.active {
  background: #23456d !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: inset 3px 0 0 #60a5fa !important;
}
.layout > aside.sidebar .footer-note {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  position: static !important;
  padding: 6px 3px 2px !important;
  border-top: 1px solid #2b4564 !important;
  background: #102846 !important;
  color: #9fb4cf !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}
.layout > aside.sidebar .footer-note a { color: #d9e8ff !important; }
.layout > aside.sidebar .auth-user { color: #c8d8ed !important; }
.layout > main.main { margin-left: 210px !important; width: calc(100% - 210px) !important; min-width: 0 !important; }
@media (max-height: 720px) and (min-width: 901px) {
  .layout > aside.sidebar { padding-top: 4px !important; padding-bottom: 4px !important; }
  .layout > aside.sidebar .brand { padding-top: 2px !important; padding-bottom: 3px !important; }
  .layout > aside.sidebar .brand img { width: 30px !important; height: 30px !important; }
  .layout > aside.sidebar nav.nav a { flex-basis: 24px !important; height: 24px !important; min-height: 24px !important; font-size: 10px !important; }
}
@media (max-width: 900px) {
  .layout > aside.sidebar {
    position: relative !important; inset: auto !important;
    width: 100% !important; max-width: none !important;
    height: auto !important; min-height: 0 !important;
    overflow: visible !important; display: block !important;
    padding: 8px !important;
  }
  .layout > aside.sidebar .brand { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 8px !important; text-align: left !important; flex-wrap: wrap !important; }
  .layout > aside.sidebar .brand img { margin: 0 !important; }
  .layout > aside.sidebar nav.nav { display: flex !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 3px 0 5px !important; }
  .layout > aside.sidebar nav.nav a { flex: 0 0 auto !important; width: auto !important; }
  .layout > aside.sidebar .footer-note { margin-top: 4px !important; }
  .layout > main.main { margin-left: 0 !important; width: 100% !important; }
}


/* V2.30.21 — full owner sidebar redesign aligned with Platform Admin */
.layout > aside.sidebar {
  box-sizing: border-box !important;
  width: 228px !important;
  max-width: 228px !important;
  height: 100vh !important;
  height: 100dvh !important;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 12px 10px 10px !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg,#102846 0%,#112b4a 100%) !important;
  color: #e8f0fb !important;
  border-right: 1px solid #294665 !important;
  box-shadow: 5px 0 22px rgba(15,35,60,.08) !important;
}
.layout > aside.sidebar::-webkit-scrollbar { width: 0 !important; height: 0 !important; display:none !important; }
.layout > aside.sidebar .brand,
.layout > aside.sidebar .brand-link {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f8fbff !important;
  background: transparent !important;
  padding: 5px 6px 13px !important;
  margin: 0 0 7px !important;
  text-align: center !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(159,180,207,.17) !important;
}
.layout > aside.sidebar .brand img {
  display: block !important;
  width: 43px !important;
  height: 43px !important;
  max-width: 43px !important;
  max-height: 43px !important;
  object-fit: contain !important;
  margin: 0 auto 7px !important;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.15)) !important;
}
.layout > aside.sidebar .brand div {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
  line-height: 1.25 !important;
}
.layout > aside.sidebar .brand small {
  color: #9fb4cf !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: .075em !important;
  margin-top: 4px !important;
}
.layout > aside.sidebar nav.nav {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 2px 0 8px !important;
  scrollbar-width: none !important;
  overscroll-behavior: contain !important;
}
.layout > aside.sidebar nav.nav::-webkit-scrollbar { display:none !important; width:0 !important; height:0 !important; }
.layout > aside.sidebar .nav-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}
.layout > aside.sidebar .nav-section-title {
  padding: 5px 9px 4px !important;
  color: #8fa9c8 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .11em !important;
  white-space: nowrap !important;
}
.layout > aside.sidebar nav.nav a {
  box-sizing: border-box !important;
  flex: 0 0 30px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 4px 9px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #d5e1f0 !important;
  background: transparent !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transform: none !important;
  transition: background .16s ease, color .16s ease, border-color .16s ease !important;
}
.layout > aside.sidebar nav.nav a .nav-icon {
  flex: 0 0 17px !important;
  width: 17px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9fb9d8 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.layout > aside.sidebar nav.nav a > span:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.layout > aside.sidebar nav.nav a:hover {
  background: rgba(117,160,213,.14) !important;
  border-color: rgba(151,184,225,.12) !important;
  color: #fff !important;
}
.layout > aside.sidebar nav.nav a:hover .nav-icon { color: #e4efff !important; }
.layout > aside.sidebar nav.nav a.active {
  background: linear-gradient(90deg,#245082 0%,#23456d 100%) !important;
  border-color: rgba(147,197,253,.18) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: inset 3px 0 0 #60a5fa, 0 3px 10px rgba(0,0,0,.08) !important;
}
.layout > aside.sidebar nav.nav a.active .nav-icon { color: #fff !important; }
.layout > aside.sidebar .footer-note {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  margin: 5px 0 0 !important;
  position: static !important;
  padding: 10px 5px 3px !important;
  border-top: 1px solid rgba(159,180,207,.2) !important;
  background: transparent !important;
  color: #9fb4cf !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}
.layout > aside.sidebar .footer-note a { color: #e0ecff !important; font-weight:700 !important; }
.layout > aside.sidebar .auth-user { color: #c8d8ed !important; }
.layout > main.main {
  margin-left: 228px !important;
  width: calc(100% - 228px) !important;
  min-width: 0 !important;
}
@media (max-height: 790px) and (min-width: 901px) {
  .layout > aside.sidebar { padding-top: 7px !important; padding-bottom: 6px !important; }
  .layout > aside.sidebar .brand { padding-top: 2px !important; padding-bottom: 7px !important; margin-bottom: 3px !important; }
  .layout > aside.sidebar .brand img { width: 36px !important; height: 36px !important; margin-bottom: 4px !important; }
  .layout > aside.sidebar .brand div { font-size: 12px !important; }
  .layout > aside.sidebar .brand small { font-size: 8px !important; margin-top: 2px !important; }
  .layout > aside.sidebar nav.nav { gap: 4px !important; }
  .layout > aside.sidebar .nav-section-title { padding-top: 3px !important; padding-bottom: 2px !important; }
  .layout > aside.sidebar nav.nav a { flex-basis: 27px !important; height: 27px !important; min-height: 27px !important; font-size: 11.5px !important; }
  .layout > aside.sidebar .footer-note { padding-top: 6px !important; }
}
@media (max-width: 900px) {
  .layout > aside.sidebar {
    position: relative !important; inset: auto !important;
    width: 100% !important; max-width: none !important;
    height: auto !important; min-height: 0 !important;
    overflow: visible !important; display: flex !important;
    padding: 8px 10px !important; box-shadow: none !important;
  }
  .layout > aside.sidebar .brand {
    display: flex !important; flex-direction: row !important;
    align-items: center !important; justify-content: flex-start !important;
    gap: 10px !important; text-align: left !important;
    border-bottom: 0 !important; padding: 2px 4px 8px !important;
  }
  .layout > aside.sidebar .brand img { width: 36px !important; height: 36px !important; margin: 0 !important; }
  .layout > aside.sidebar nav.nav {
    display: flex !important; flex-direction: row !important;
    gap: 6px !important; overflow-x: auto !important; overflow-y: hidden !important;
    padding: 3px 0 5px !important;
  }
  .layout > aside.sidebar .nav-section { display: contents !important; }
  .layout > aside.sidebar .nav-section-title { display: none !important; }
  .layout > aside.sidebar nav.nav a { flex: 0 0 auto !important; width: auto !important; }
  .layout > aside.sidebar .footer-note { margin-top: 4px !important; }
  .layout > main.main { margin-left: 0 !important; width: 100% !important; }
}


/* Subscription lifecycle UI — V2.30.25 */
.subscription-summary{display:flex;align-items:center;gap:0;min-width:0;margin:0 0 14px;padding:13px 14px;background:#fff;border:1px solid #dbe5f3;border-radius:14px;box-shadow:0 4px 16px rgba(16,35,66,.045)}
.subscription-summary-main{display:flex;align-items:center;gap:12px;flex:1 1 340px;min-width:220px;padding-right:16px}
.subscription-clock{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#eaf2ff;color:#155eef;font-size:27px;font-weight:800}
.subscription-summary-copy{min-width:0}
.subscription-summary-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-weight:850;font-size:14px;color:#14213a}
.subscription-summary-caption{margin-top:4px;color:#5e6b80;font-size:12px;line-height:1.45}
.subscription-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;letter-spacing:.04em;font-weight:900;white-space:nowrap}
.pill-trial{background:#fff2cc;color:#8a4b00}.pill-active{background:#dcfae6;color:#067647}.pill-danger{background:#fee4e2;color:#b42318}
.subscription-summary-metric{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:112px;max-width:185px;padding:3px 15px;border-left:1px solid #e5eaf2}
.subscription-summary-metric span{font-size:10px;color:#667085}.subscription-summary-metric strong{font-size:13px;color:#14213a;line-height:1.35;overflow-wrap:anywhere}.subscription-summary-metric small{font-size:10px;color:#667085}
.subscription-summary-metric .remaining-normal{color:#079455;font-size:18px}.subscription-summary-metric .remaining-urgent{color:#b42318;font-size:18px}.subscription-upgrade{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;margin-left:auto;min-height:40px;padding:10px 14px}
.subscription-expiry-alert{display:flex;align-items:center;gap:11px;margin:0 0 16px;padding:10px 12px;border:1px solid;border-radius:11px;line-height:1.4}
.subscription-expiry-alert .expiry-alert-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;font-size:17px;font-weight:900}
.subscription-expiry-alert>div{flex:1;min-width:0}.subscription-expiry-alert strong{font-size:12px}.subscription-expiry-alert p{margin:2px 0 0;font-size:11px;line-height:1.45}.subscription-expiry-alert .btn{flex:0 0 auto;white-space:nowrap}
.alert-warning{background:#fffaeb;border-color:#fedf89;color:#854a0e}.alert-warning .expiry-alert-icon{background:#fef0c7;color:#b54708}
.alert-critical{background:#fff1f0;border-color:#fecdca;color:#912018}.alert-critical .expiry-alert-icon{background:#fee4e2;color:#b42318}
.subscription-summary.status-trial{border-color:#f4d38a;background:linear-gradient(100deg,#fffaf0 0%,#fff 65%)}
.subscription-summary.status-past-due,.subscription-summary.status-grace-period{border-color:#fecdca;background:#fff8f7}
@media(max-width:1100px){.subscription-summary{flex-wrap:wrap;row-gap:10px}.subscription-summary-main{flex-basis:100%;padding:0 0 10px;border-bottom:1px solid #e5eaf2}.subscription-summary-metric{flex:1;max-width:none;padding:3px 10px}.subscription-upgrade{margin-left:0}}
@media(max-width:600px){.subscription-summary{align-items:stretch;padding:12px;gap:8px}.subscription-summary-main{min-width:0;flex-basis:100%}.subscription-summary-metric{min-width:calc(50% - 8px);border-left:0;border-top:1px solid #e5eaf2;padding:8px 2px 2px}.subscription-expiry{flex-basis:100%}.subscription-upgrade{width:100%;margin-top:3px}.subscription-expiry-alert{align-items:flex-start;flex-wrap:wrap}.subscription-expiry-alert>div{flex:1 1 calc(100% - 45px)}.subscription-expiry-alert .btn{margin-left:41px}}
