/* SOLUTECNOH Professional UI v6.63 */
:root{
  --st-primary:#2563eb;
  --st-primary-2:#1d4ed8;
  --st-primary-3:#bfdbfe;
  --st-success:#16a34a;
  --st-warning:#d97706;
  --st-danger:#dc2626;
  --st-info:#0ea5e9;
  --st-secondary:#64748b;
  --st-dark:#0f172a;
  --st-dark-2:#111827;
  --st-bg:#f6f8fc;
  --st-card:#ffffff;
  --st-text:#172033;
  --st-muted:#64748b;
  --st-border:rgba(15,23,42,.10);
  --st-border-strong:rgba(15,23,42,.16);
  --st-shadow:0 18px 40px rgba(15,23,42,.10);
  --st-shadow-soft:0 10px 26px rgba(15,23,42,.08);
  --st-radius:20px;
  --st-radius-md:16px;
  --st-radius-sm:12px;
}
html{scroll-behavior:smooth;}
body{
  font-family:Inter,"Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--st-text);
  background:#f4f6fb;
}
body:not(.sidebar-collapse) .content-wrapper,
body:not(.sidebar-collapse) .main-footer{margin-left:280px;}
body:not(.sidebar-collapse) .main-header{margin-left:0!important;}
.main-sidebar,.main-sidebar::before{width:280px;}
.content-wrapper{
  min-height:calc(100vh - 114px) !important;
  background:
    radial-gradient(920px 420px at 12% 0%, rgba(37,99,235,.08), rgba(37,99,235,0) 58%),
    radial-gradient(720px 360px at 100% 10%, rgba(14,165,233,.06), rgba(14,165,233,0) 58%),
    radial-gradient(620px 320px at 50% 100%, rgba(15,23,42,.04), rgba(15,23,42,0) 58%),
    linear-gradient(180deg,#fbfcfe 0%, #f7f9fc 52%, #f2f5fa 100%);
}
.content-header{padding:1.25rem 1.25rem .25rem;}
body.layout-navbar-fixed .wrapper .content-wrapper,
body.layout-navbar-fixed .wrapper .main-footer{margin-top:64px!important;}
.content{padding:0 1.25rem 1.25rem;}
.content-header h1{
  font-size:1.75rem;
  font-weight:800;
  letter-spacing:-.03em;
  margin:0;
}
.content-header .breadcrumb{background:transparent;padding:0;margin:0;}

/* Navbar */
.main-header.navbar{
  position:fixed!important;
  top:0;
  right:0;
  left:0!important;
  width:100%!important;
  margin-left:0!important;
  background:rgba(255,255,255,.92)!important;
  border-bottom:1px solid rgba(148,163,184,.20);
  backdrop-filter:blur(16px);
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  z-index:1042!important;
}
.main-header .nav-link{color:var(--st-text)!important;}
.main-header .nav-link:hover{color:var(--st-primary)!important;}
.st-page-indicator{display:flex;flex-direction:column;line-height:1.1;padding-left:.15rem;}
.st-page-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--st-muted);font-weight:700;}
.st-page-indicator strong{font-size:1rem;font-weight:800;color:var(--st-dark);}
.st-back-link{
  display:flex!important;align-items:center;gap:.5rem;border-radius:999px;padding:.45rem .9rem!important;
  background:rgba(255,255,255,.82)!important;border:1px solid rgba(37,99,235,.12)!important;
  color:var(--st-text)!important;font-weight:700;box-shadow:none;cursor:pointer;
}
.st-back-link:hover,.st-back-link:focus{color:var(--st-primary)!important;background:#fff!important;}
.st-back-link i{font-size:.9rem;color:var(--st-primary);}
.st-nav-icon-link,.st-user-chip{
  display:flex;align-items:center;gap:.55rem;border-radius:999px;padding:.45rem .9rem!important;
  background:rgba(255,255,255,.82);border:1px solid rgba(37,99,235,.12);
}
.st-user-chip__avatar{
  width:30px;height:30px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;
}
.st-dropdown-panel{border:none;border-radius:18px;box-shadow:var(--st-shadow);overflow:hidden;padding:.35rem 0;}
.st-dropdown-panel .dropdown-item{padding:.7rem 1rem;}


.main-header.navbar{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:.55rem 1rem;z-index:1040;}
.main-header .navbar-nav{flex-direction:row;align-items:center;flex-wrap:nowrap;}
.main-header .navbar-nav.ml-auto{margin-left:auto!important;gap:.45rem;}
.st-nav-left{display:flex;align-items:center;gap:.35rem;min-width:0;}
.st-nav-right{display:flex;align-items:center;gap:.45rem;flex-wrap:nowrap;}
.st-page-indicator{max-width:420px;overflow:hidden;}
.st-nav-left .navbar-nav{gap:.25rem;}
.st-page-indicator strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
.st-logout-link{display:flex;align-items:center;gap:.55rem;border-radius:999px;padding:.45rem .95rem!important;background:rgba(255,255,255,.82);border:1px solid rgba(37,99,235,.12);font-weight:700;white-space:nowrap;}
.st-logout-link i{color:var(--st-primary);}
.st-user-chip__name,.st-logout-link__label{display:inline-block;}
@media (max-width: 767.98px){
  .st-user-chip__name,.st-logout-link__label{font-size:.88rem;}
}

/* Sidebar */
.main-sidebar{
  background:linear-gradient(180deg,#0f172a 0%, #10213d 56%, #12305f 100%)!important;
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow:18px 0 30px rgba(15,23,42,.12);
  width:280px!important;
}
.main-sidebar,.main-sidebar::before{width:280px!important;}
.layout-fixed .main-sidebar{left:0;top:64px!important;height:calc(100vh - 64px)!important;}
.layout-fixed .main-sidebar{z-index:1030!important;}
.layout-fixed .main-sidebar .brand-link{
  position:relative!important;
  top:auto!important;left:auto!important;
  width:100%!important;max-width:100%!important;
  display:flex!important;align-items:center!important;gap:.7rem!important;box-sizing:border-box!important;
  min-height:74px!important;padding:.85rem .9rem!important;margin:0!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.05);
  overflow:hidden!important;
}
.brand-logo-wrap{
  width:52px;height:52px;border-radius:14px;background:rgba(255,255,255,.10);
  display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);flex:0 0 52px;
}
.brand-link .brand-image{position:static!important;float:none!important;margin:0!important;max-width:40px!important;max-height:40px!important;opacity:1!important;left:auto!important;top:auto!important;}
.brand-link .brand-text{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;line-height:1.05!important;color:#fff!important;margin:0!important;min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;}
.brand-link .brand-title{display:block!important;font-size:.92rem!important;letter-spacing:.01em!important;font-weight:800!important;line-height:1.05!important;max-width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:#fff!important;word-break:break-word!important;}
.brand-link .brand-subtitle{display:block!important;font-size:.72rem!important;letter-spacing:.06em!important;text-transform:uppercase!important;font-weight:700!important;line-height:1.08!important;max-width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:rgba(191,219,254,.82)!important;margin-top:.1rem!important;}
body:not(.sidebar-collapse) .content-wrapper,
body:not(.sidebar-collapse) .main-footer{margin-left:280px!important;}
body:not(.sidebar-collapse) .main-header{margin-left:0!important;}
.content-wrapper,.main-footer{margin-left:280px!important;}
.main-header{margin-left:0!important;}
.sidebar-collapse .content-wrapper,.sidebar-collapse .main-footer{margin-left:4.6rem!important;}
.sidebar-collapse .main-header{margin-left:0!important;}
.sidebar-collapse .main-header.navbar{left:0!important;}
.sidebar-mini.sidebar-collapse .main-sidebar{width:4.6rem!important;top:64px!important;height:calc(100vh - 64px)!important;}
.sidebar{padding:.8rem .7rem 1.2rem;}
.main-sidebar .sidebar{padding-top:0!important;}
.st-user-panel{
  display:flex;align-items:center;gap:.85rem;padding:.95rem;border-radius:18px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.06);margin:.8rem .2rem 1rem;
}
.st-user-avatar{
  width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:1rem;
}
.st-user-meta{display:flex;flex-direction:column;min-width:0;}
.st-user-meta strong{font-size:.95rem;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.st-user-meta span{font-size:.76rem;color:rgba(191,219,254,.75);text-transform:uppercase;letter-spacing:.08em;}
.nav-sidebar .nav-header{padding:.85rem .85rem .45rem;margin-top:.25rem;color:rgba(191,219,254,.55);font-size:.72rem;font-weight:800;letter-spacing:.14em;}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link,
.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link{
  color:rgba(255,255,255,.84);border-radius:14px;margin:3px 6px;padding:.8rem .9rem;
}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link:hover,
.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link:hover{background:rgba(255,255,255,.08);color:#fff;}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link.active{
  background:linear-gradient(90deg,#2563eb,#1d4ed8);
  color:#fff;box-shadow:0 12px 24px rgba(79,70,229,.24);
}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active i,
.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link.active i{color:#fff!important;}
.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link{padding-left:2.35rem;font-size:.94rem;}
.sidebar-mini.sidebar-collapse .main-sidebar .brand-text,
.sidebar-mini.sidebar-collapse .main-sidebar .nav-header,
.sidebar-mini.sidebar-collapse .main-sidebar .st-user-panel{display:none!important;}
.sidebar-mini.sidebar-collapse .main-sidebar .brand-link{justify-content:center;padding:.95rem 0!important;}
.sidebar-mini.sidebar-collapse .main-sidebar .brand-logo-wrap{margin:0;}
/* Cards and content */
.card{
  background:rgba(255,255,255,.94);border:1px solid var(--st-border);border-radius:var(--st-radius);
  box-shadow:var(--st-shadow-soft);overflow:hidden;
}
.card-header{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  border-bottom:1px solid rgba(148,163,184,.14);background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,250,255,.94));
  padding:1rem 1.25rem;
}
.card-title{font-weight:800;font-size:1rem;margin:0;letter-spacing:-.01em;}
.card-body{padding:1.15rem 1.25rem;}
.card-footer{background:rgba(248,250,252,.9);border-top:1px solid rgba(148,163,184,.14);}
.card-outline.card-primary{border-top:4px solid var(--st-primary);}

/* Forms */
.form-group label,.col-form-label{font-size:.9rem;font-weight:700;color:#334155;}
.form-control,.custom-select,.select2-container--bootstrap4 .select2-selection,
.input-group-text,.custom-file-label{
  min-height:46px;border-radius:14px!important;border:1px solid rgba(148,163,184,.32)!important;
}
.input-group-text{background:#f8fafc;color:#64748b;}
.form-control:focus,.custom-select:focus{
  border-color:rgba(37,99,235,.38)!important;box-shadow:0 0 0 .2rem rgba(37,99,235,.12)!important;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered{line-height:42px!important;}
.select2-container--bootstrap4 .select2-selection--single{height:46px!important;padding:.15rem .7rem;}

/* Buttons */
.btn{
  border-radius:14px;font-weight:700;letter-spacing:.01em;padding:.58rem 1rem;
}
.btn-primary{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 12px 22px rgba(37,99,235,.18);}
.btn-primary:hover,.btn-primary:focus{background:#1d4ed8;border-color:#1d4ed8;color:#fff;}
.btn-secondary,.btn-outline-secondary{border-color:rgba(100,116,139,.42);color:#334155;background:#fff;}
.btn-success{background:#16a34a;border-color:#16a34a;color:#fff;box-shadow:0 10px 20px rgba(22,163,74,.18);}
.btn-success:hover,.btn-success:focus{background:#15803d;border-color:#15803d;color:#fff;}
.btn-danger{background:#dc2626;border-color:#dc2626;color:#fff;box-shadow:0 10px 20px rgba(220,38,38,.16);}
.btn-danger:hover,.btn-danger:focus{background:#b91c1c;border-color:#b91c1c;color:#fff;}
.btn-warning{background:#d97706;border-color:#d97706;color:#fff;box-shadow:0 10px 20px rgba(217,119,6,.18);}
.btn-warning:hover,.btn-warning:focus{background:#b45309;border-color:#b45309;color:#fff;}
.btn-info{background:#0ea5e9;border-color:#0ea5e9;color:#fff;box-shadow:0 10px 20px rgba(14,165,233,.18);}
.btn-info:hover,.btn-info:focus{background:#0284c7;border-color:#0284c7;color:#fff;}
.btn-light{background:#ffffff;border-color:rgba(148,163,184,.28);color:#334155;}
.btn-light:hover,.btn-light:focus{background:#f8fafc;border-color:rgba(148,163,184,.32);color:#0f172a;}
.btn-outline-primary{border-color:#2563eb;color:#2563eb;background:#fff;}
.btn-outline-primary:hover,.btn-outline-primary:focus{background:#2563eb;border-color:#2563eb;color:#fff;}
.btn-outline-success{border-color:#16a34a;color:#16a34a;background:#fff;}
.btn-outline-success:hover,.btn-outline-success:focus{background:#16a34a;border-color:#16a34a;color:#fff;}
.btn-outline-danger{border-color:#dc2626;color:#dc2626;background:#fff;}
.btn-outline-danger:hover,.btn-outline-danger:focus{background:#dc2626;border-color:#dc2626;color:#fff;}
.btn-outline-warning{border-color:#d97706;color:#d97706;background:#fff;}
.btn-outline-warning:hover,.btn-outline-warning:focus{background:#d97706;border-color:#d97706;color:#fff;}
.btn-outline-info{border-color:#0ea5e9;color:#0ea5e9;background:#fff;}
.btn-outline-info:hover,.btn-outline-info:focus{background:#0ea5e9;border-color:#0ea5e9;color:#fff;}

/* Tables */
.table-responsive{border-radius:16px;}
.table{
  background:transparent;margin-bottom:0;border-collapse:separate;border-spacing:0;
}
.table thead th{
  background:#f3f5f7;border-top:none;border-bottom:1px solid rgba(148,163,184,.16);color:#4b5563;
  font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;padding:.88rem .8rem;
}
.table td,.table th{border-top:1px solid rgba(148,163,184,.10);vertical-align:middle;padding:.84rem .8rem;}
.table-hover tbody tr:hover{background:rgba(76,103,132,.05);}
.table tbody tr{background:rgba(255,255,255,.85);}

/* Alerts, badges, tabs */
.alert{border-radius:16px;border:1px solid rgba(148,163,184,.16);box-shadow:var(--st-shadow-soft);}
.badge{border-radius:999px;padding:.45em .68em;font-weight:700;}
.nav-tabs{border-bottom:none;gap:.5rem;}
.nav-tabs .nav-link{
  border:none;border-radius:999px;background:rgba(255,255,255,.85);color:#475569;font-weight:700;padding:.75rem 1rem;
  box-shadow:0 6px 16px rgba(15,23,42,.05);
}
.nav-tabs .nav-link.active{background:#2563eb;color:#fff;}

/* Dashboard */
.st-hero-card{
  position:relative;padding:1.5rem;border-radius:24px;background:linear-gradient(135deg,#0f172a 0%, #12305f 56%, #2563eb 100%);
  color:#fff;box-shadow:0 24px 50px rgba(15,23,42,.20);overflow:hidden;border:none;
}
.st-hero-card::after{
  content:'';position:absolute;inset:auto -60px -80px auto;width:260px;height:260px;border-radius:999px;
  background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 70%);
}
.st-hero-card h2{font-size:1.85rem;font-weight:800;letter-spacing:-.03em;margin:0 0 .45rem;}
.st-hero-card p{max-width:620px;color:rgba(255,255,255,.84);margin:0;}
.st-hero-badges{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem;}
.st-hero-badge{padding:.55rem .85rem;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);font-weight:700;font-size:.82rem;}
.st-stat-card{
  position:relative;background:rgba(255,255,255,.96);border-radius:22px;padding:1.2rem 1.15rem;box-shadow:var(--st-shadow-soft);
  border:1px solid rgba(148,163,184,.14);height:100%;overflow:hidden;
}
.st-stat-card__label{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#64748b;margin-bottom:.35rem;}
.st-stat-card__value{font-size:1.8rem;font-weight:800;letter-spacing:-.03em;color:#0f172a;line-height:1.05;}
.st-stat-card__icon{
  position:absolute;right:16px;top:16px;width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(14,165,233,.16));color:var(--st-primary);font-size:1.1rem;
}
.st-module-card{height:100%;padding:1.25rem;border-radius:22px;background:rgba(255,255,255,.96);border:1px solid rgba(148,163,184,.14);box-shadow:var(--st-shadow-soft);}
.st-module-card__icon{
  width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(14,165,233,.16));color:var(--st-primary);font-size:1.35rem;margin-bottom:1rem;
}
.st-module-card h3{font-size:1.1rem;font-weight:800;margin-bottom:.35rem;}
.st-module-card p{color:#64748b;min-height:44px;}
.st-module-card .btn{margin-top:.35rem;}
.st-review-list{list-style:none;padding:0;margin:0;display:grid;gap:.8rem;}
.st-review-list li{display:flex;gap:.75rem;align-items:flex-start;padding:.85rem 0;border-bottom:1px dashed rgba(148,163,184,.20);}
.st-review-list li:last-child{border-bottom:none;padding-bottom:0;}
.st-review-list__icon{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(76,103,132,.10);color:var(--st-primary);flex:0 0 auto;}


/* Module hubs */
.st-hub-card{
  position:relative;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(148,163,184,.14);
  border-radius:22px;
  box-shadow:var(--st-shadow-soft);
  overflow:hidden;
  height:100%;
  padding:1.35rem;
}
.st-hub-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:var(--hub-accent, #2563eb);
}
.st-hub-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.st-hub-card__icon{
  width:60px;
  height:60px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:color-mix(in srgb, var(--hub-accent, #2563eb) 12%, white);
  color:var(--hub-accent, #2563eb);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--hub-accent, #2563eb) 18%, transparent);
  font-size:1.35rem;
  flex:0 0 auto;
}
.st-hub-card__title{
  margin:0;
  font-size:1.38rem;
  line-height:1.08;
  font-weight:800;
  color:#0f172a;
}
.st-hub-card__subtitle{
  margin:.7rem 0 0;
  min-height:48px;
  color:#64748b;
  font-size:.98rem;
}
.st-hub-card__footer{
  margin-top:1.15rem;
  display:flex;
  justify-content:flex-end;
}
.st-hub-action{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  padding:.78rem 1.1rem;
  border-radius:999px;
  text-decoration:none!important;
  font-weight:800;
  transition:transform .18s ease, filter .18s ease;
}
.st-hub-action:hover{transform:translateY(-1px);filter:brightness(.98);}
.st-hub-action--primary{
  background:var(--hub-accent, #2563eb);
  color:#fff;
  box-shadow:0 12px 24px color-mix(in srgb, var(--hub-accent, #2563eb) 24%, transparent);
}
.st-hub-action--soft{
  background:color-mix(in srgb, var(--hub-accent, #2563eb) 12%, white);
  color:var(--hub-accent, #2563eb);
}
.st-hub-header-title{
  margin:0 0 1rem;
  font-size:1.04rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#475569;
}
@media (max-width: 991.98px){
  .st-hub-card{border-radius:18px;padding:1.2rem;}
  .st-hub-card__title{font-size:1.22rem;}
  .st-hub-card__subtitle{min-height:unset;}
}

/* Footer */
.main-footer{
  background:rgba(255,255,255,.84);border-top:1px solid rgba(148,163,184,.18);padding:.95rem 1.25rem;backdrop-filter:blur(14px);
}
.st-footer-meta{display:inline-flex;flex-direction:column;gap:.1rem;}
.st-footer-meta strong{font-weight:800;color:#0f172a;}
.st-footer-meta span{font-size:.83rem;color:#64748b;}
.st-version-pill{
  display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .8rem;border-radius:999px;background:#f4f6fb;color:#4c6784;border:1px solid rgba(76,103,132,.16);
}

/* PWA nav active refinement */
.pwa-bottom-link.is-active{background:linear-gradient(90deg,var(--st-primary),var(--st-primary-2));color:#fff!important;box-shadow:0 10px 20px rgba(76,103,132,.20);}

/* Responsive */
@media (max-width: 1199.98px){
  .st-page-indicator{display:none;}
}
@media (max-width: 991.98px){
  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer,
  body:not(.sidebar-collapse) .main-header{margin-left:0;}
  .main-header.navbar{left:0!important;width:100%!important;}
  .sidebar-collapse .main-header.navbar{left:0!important;}
  .layout-fixed .main-sidebar{top:0!important;height:100vh!important;}
  .content-header{padding-top:1rem;}
  .content{padding:0 1rem 1rem;}
  .main-header.navbar{padding:.5rem .75rem;}
  .st-user-chip span,.st-logout-link span{display:none!important;}
  .st-nav-right{gap:.35rem;}
}
@media (max-width: 767.98px){
  .content-header h1{font-size:1.35rem;}
  .card-header,.card-body{padding:1rem;}
  .st-hero-card h2{font-size:1.45rem;}
  .st-stat-card__value{font-size:1.55rem;}
}


/* Layout fix v6.53 */
@media (min-width: 992px){
  .main-header.navbar{
    left:0!important;
    width:100%!important;
    margin-left:0!important;
    padding-left:calc(280px + 1rem)!important;
  }
  .main-header.navbar::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:280px;
    height:100%;
    background:linear-gradient(180deg,#111925 0%, #162131 45%, #1d2a3c 100%);
    border-right:1px solid rgba(255,255,255,.06);
    z-index:0;
    pointer-events:none;
  }
  .main-header.navbar > *{
    position:relative;
    z-index:1;
  }
  .layout-fixed .main-sidebar{
    top:64px!important;
    height:calc(100vh - 64px)!important;
  }
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer{
    margin-top:64px!important;
  }
  .content-wrapper,
  .main-footer{
    margin-left:280px!important;
  }

  body.sidebar-collapse .main-header.navbar{
    left:4.6rem!important;
    width:calc(100% - 4.6rem)!important;
    padding-left:1rem!important;
  }
  body.sidebar-collapse .main-header.navbar::before{
    display:none!important;
    width:0!important;
  }
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer{
    margin-left:4.6rem!important;
  }
  body.sidebar-collapse .layout-fixed .main-sidebar{
    top:0!important;
    width:4.6rem!important;
    height:100vh!important;
  }
  body.sidebar-collapse .brand-link{
    justify-content:center!important;
    padding:.5rem 0!important;
    min-height:64px!important;
    border-bottom:1px solid rgba(255,255,255,.08)!important;
  }
  body.sidebar-collapse .main-sidebar .sidebar{
    padding-top:.8rem!important;
  }
}


/* Layout refinement v6.55 - collapsed sidebar */
@media (min-width: 992px){
  body.sidebar-collapse .main-header.navbar{
    left:4.6rem!important;
    width:calc(100% - 4.6rem)!important;
    padding-left:1rem!important;
  }
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer{
    margin-left:4.6rem!important;
  }
  body.sidebar-collapse .layout-fixed .main-sidebar,
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar::before{
    width:4.6rem!important;
  }
  body.sidebar-collapse .layout-fixed .main-sidebar{
    top:0!important;
    height:100vh!important;
  }
  body.sidebar-collapse .main-sidebar .brand-link{
    min-height:74px!important;
    padding:.55rem 0!important;
    justify-content:center!important;
    gap:0!important;
  }
  body.sidebar-collapse .main-sidebar .brand-logo-wrap{
    width:44px!important;
    height:44px!important;
    border-radius:12px!important;
    flex:0 0 44px!important;
  }
  body.sidebar-collapse .main-sidebar .brand-image{
    max-width:30px!important;
    max-height:30px!important;
  }
  body.sidebar-collapse .main-sidebar .brand-text,
  body.sidebar-collapse .main-sidebar .nav-header,
  body.sidebar-collapse .main-sidebar .nav-sidebar .nav-link p,
  body.sidebar-collapse .main-sidebar .nav-sidebar .nav-link .right,
  body.sidebar-collapse .main-sidebar .nav-treeview,
  body.sidebar-collapse .main-sidebar .st-user-meta{
    display:none!important;
  }
  body.sidebar-collapse .main-sidebar .sidebar{
    padding:.65rem .35rem 1rem!important;
  }
  body.sidebar-collapse .main-sidebar .st-user-panel{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    padding:.55rem 0!important;
    margin:.55rem 0 .85rem!important;
    border-radius:16px!important;
  }
  body.sidebar-collapse .main-sidebar .st-user-avatar{
    width:40px!important;
    height:40px!important;
    border-radius:12px!important;
    margin:0!important;
  }
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item{
    margin-bottom:.5rem!important;
  }
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-link{
    width:100%!important;
    min-height:46px!important;
    margin:0!important;
    padding:.8rem 0!important;
    justify-content:center!important;
    border-radius:16px!important;
  }
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon{
    margin-right:0!important;
    margin-left:0!important;
    font-size:1.12rem!important;
  }
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item.has-treeview.menu-open > .nav-link,
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-link.active{
    box-shadow:0 10px 22px rgba(29,78,216,.24)!important;
  }
}


/* Final desktop layout fix v6.56 */
@media (min-width: 992px){
  :root{
    --st-sidebar-width: 280px;
    --st-sidebar-collapsed-width: 4.6rem;
    --st-navbar-height: 64px;
  }
  .main-header.navbar{
    left: var(--st-sidebar-width) !important;
    width: calc(100% - var(--st-sidebar-width)) !important;
    margin-left: 0 !important;
    padding-left: 1rem !important;
  }
  .main-header.navbar::before,
  .main-header.navbar::after{
    display:none !important;
    content:none !important;
  }
  .layout-fixed .main-sidebar,
  .main-sidebar{
    top: 0 !important;
    height: 100vh !important;
  }
  .main-sidebar{
    width: var(--st-sidebar-width) !important;
  }
  .main-sidebar::before{
    width: var(--st-sidebar-width) !important;
  }
  .layout-fixed .main-sidebar .brand-link,
  .main-sidebar .brand-link{
    min-height: var(--st-navbar-height) !important;
    padding: .75rem .85rem !important;
  }
  .content-wrapper,
  .main-footer,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer{
    margin-left: var(--st-sidebar-width) !important;
    margin-top: var(--st-navbar-height) !important;
  }

  body.sidebar-collapse .main-header.navbar,
  body.sidebar-mini.sidebar-collapse .main-header.navbar{
    left: var(--st-sidebar-collapsed-width) !important;
    width: calc(100% - var(--st-sidebar-collapsed-width)) !important;
    padding-left: 1rem !important;
  }
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .content-wrapper,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .main-footer{
    margin-left: var(--st-sidebar-collapsed-width) !important;
    margin-top: var(--st-navbar-height) !important;
  }
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .layout-fixed .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .layout-fixed .main-sidebar{
    width: var(--st-sidebar-collapsed-width) !important;
    top: 0 !important;
    height: 100vh !important;
  }
  body.sidebar-collapse .main-sidebar::before,
  body.sidebar-mini.sidebar-collapse .main-sidebar::before{
    width: var(--st-sidebar-collapsed-width) !important;
  }
  body.sidebar-collapse .main-sidebar .brand-link,
  body.sidebar-mini.sidebar-collapse .main-sidebar .brand-link{
    min-height: var(--st-navbar-height) !important;
    padding: .6rem 0 !important;
    justify-content: center !important;
    background: rgba(255,255,255,.04) !important;
  }
  body.sidebar-collapse .main-sidebar .brand-logo-wrap,
  body.sidebar-mini.sidebar-collapse .main-sidebar .brand-logo-wrap{
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
  }
  body.sidebar-collapse .main-sidebar .brand-image,
  body.sidebar-mini.sidebar-collapse .main-sidebar .brand-image{
    max-width: 28px !important;
    max-height: 28px !important;
  }
  body.sidebar-collapse .main-sidebar .sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar .sidebar{
    padding: .8rem .35rem 1rem !important;
  }
  body.sidebar-collapse .main-sidebar .st-user-panel,
  body.sidebar-mini.sidebar-collapse .main-sidebar .st-user-panel,
  body.sidebar-collapse .main-sidebar .nav-header,
  body.sidebar-mini.sidebar-collapse .main-sidebar .nav-header,
  body.sidebar-collapse .main-sidebar .nav-sidebar .nav-link p,
  body.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar .nav-link p,
  body.sidebar-collapse .main-sidebar .nav-sidebar .nav-link .right,
  body.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar .nav-link .right,
  body.sidebar-collapse .main-sidebar .nav-treeview,
  body.sidebar-mini.sidebar-collapse .main-sidebar .nav-treeview,
  body.sidebar-collapse .main-sidebar .brand-text,
  body.sidebar-mini.sidebar-collapse .main-sidebar .brand-text{
    display:none !important;
  }
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item,
  body.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item{
    margin-bottom: .42rem !important;
  }
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-link,
  body.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-link{
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: .82rem 0 !important;
    justify-content: center !important;
    border-radius: 16px !important;
  }
  body.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon,
  body.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon{
    margin: 0 !important;
    font-size: 1.08rem !important;
  }
}


/* Final desktop alignment fix v6.57 */
@media (min-width: 992px){
  :root{
    --st-sidebar-width: 280px;
    --st-sidebar-collapsed-width: 4.6rem;
    --st-navbar-height: 64px;
  }

  .layout-fixed .main-sidebar,
  .main-sidebar{
    top:0 !important;
    height:100vh !important;
  }

  .main-sidebar,
  .main-sidebar::before{
    width:var(--st-sidebar-width) !important;
  }

  .main-header.navbar,
  body:not(.sidebar-collapse) .main-header.navbar,
  body:not(.sidebar-mini.sidebar-collapse) .main-header.navbar{
    left:0 !important;
    margin-left:var(--st-sidebar-width) !important;
    width:calc(100% - var(--st-sidebar-width)) !important;
    padding-left:1rem !important;
  }

  .content-wrapper,
  .main-footer,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer,
  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer{
    margin-left:var(--st-sidebar-width) !important;
    margin-top:var(--st-navbar-height) !important;
  }

  body.sidebar-collapse .main-header.navbar,
  body.sidebar-mini.sidebar-collapse .main-header.navbar{
    left:0 !important;
    margin-left:var(--st-sidebar-collapsed-width) !important;
    width:calc(100% - var(--st-sidebar-collapsed-width)) !important;
    padding-left:.9rem !important;
  }

  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .content-wrapper,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .main-footer{
    margin-left:var(--st-sidebar-collapsed-width) !important;
    margin-top:var(--st-navbar-height) !important;
  }

  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar::before,
  body.sidebar-collapse .layout-fixed .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar::before,
  body.sidebar-mini.sidebar-collapse .layout-fixed .main-sidebar{
    width:var(--st-sidebar-collapsed-width) !important;
    top:0 !important;
    height:100vh !important;
  }
}


/* Final persisted collapse layout fix v6.58 */
@media (min-width: 992px){
  :root{
    --st-sidebar-width: 280px;
    --st-sidebar-collapsed-width: 4.6rem;
    --st-navbar-height: 64px;
  }

  body.st-sidebar-expanded .main-header.navbar,
  body:not(.sidebar-collapse) .main-header.navbar{
    left: var(--st-sidebar-width) !important;
    margin-left: 0 !important;
    width: calc(100% - var(--st-sidebar-width)) !important;
  }

  body.st-sidebar-expanded .content-wrapper,
  body.st-sidebar-expanded .main-footer,
  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer{
    margin-left: var(--st-sidebar-width) !important;
    margin-top: var(--st-navbar-height) !important;
  }

  body.st-sidebar-expanded .main-sidebar,
  body.st-sidebar-expanded .main-sidebar::before,
  body.st-sidebar-expanded .layout-fixed .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar::before,
  body:not(.sidebar-collapse) .layout-fixed .main-sidebar{
    top: var(--st-navbar-height) !important;
    height: calc(100vh - var(--st-navbar-height)) !important;
    width: var(--st-sidebar-width) !important;
  }

  body.st-sidebar-collapsed .main-header.navbar,
  body.sidebar-collapse .main-header.navbar,
  body.sidebar-mini.sidebar-collapse .main-header.navbar{
    left: var(--st-sidebar-collapsed-width) !important;
    margin-left: 0 !important;
    width: calc(100% - var(--st-sidebar-collapsed-width)) !important;
    padding-left: .9rem !important;
  }

  body.st-sidebar-collapsed .content-wrapper,
  body.st-sidebar-collapsed .main-footer,
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .content-wrapper,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .main-footer{
    margin-left: var(--st-sidebar-collapsed-width) !important;
    margin-top: var(--st-navbar-height) !important;
  }

  body.st-sidebar-collapsed .main-sidebar,
  body.st-sidebar-collapsed .main-sidebar::before,
  body.st-sidebar-collapsed .layout-fixed .main-sidebar,
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar::before,
  body.sidebar-collapse .layout-fixed .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar::before,
  body.sidebar-mini.sidebar-collapse .layout-fixed .main-sidebar{
    top: 0 !important;
    height: 100vh !important;
    width: var(--st-sidebar-collapsed-width) !important;
  }

  body.st-sidebar-collapsed .main-sidebar .brand-link,
  body.sidebar-collapse .main-sidebar .brand-link,
  body.sidebar-mini.sidebar-collapse .main-sidebar .brand-link{
    min-height: 74px !important;
    padding: .8rem 0 !important;
    margin-top: 0 !important;
    justify-content: center !important;
  }

  body.st-sidebar-collapsed .main-sidebar .sidebar,
  body.sidebar-collapse .main-sidebar .sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar .sidebar{
    padding-top: .55rem !important;
  }
}


/* Final sidebar top alignment fix v6.61 */
@media (min-width: 992px){
  :root{
    --st-sidebar-width: 280px;
    --st-sidebar-collapsed-width: 4.6rem;
    --st-navbar-height: 64px;
  }

  .main-sidebar,
  .main-sidebar::before,
  .layout-fixed .main-sidebar,
  body.st-sidebar-expanded .main-sidebar,
  body.st-sidebar-expanded .main-sidebar::before,
  body.st-sidebar-expanded .layout-fixed .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar::before,
  body:not(.sidebar-collapse) .layout-fixed .main-sidebar{
    top:0 !important;
    height:100vh !important;
    width:var(--st-sidebar-width) !important;
  }

  .main-sidebar .brand-link,
  body.st-sidebar-expanded .main-sidebar .brand-link,
  body:not(.sidebar-collapse) .main-sidebar .brand-link{
    min-height:var(--st-navbar-height) !important;
    margin-top:0 !important;
    padding:.8rem .9rem !important;
  }

  .main-header.navbar,
  body.st-sidebar-expanded .main-header.navbar,
  body:not(.sidebar-collapse) .main-header.navbar{
    left:var(--st-sidebar-width) !important;
    margin-left:0 !important;
    width:calc(100% - var(--st-sidebar-width)) !important;
    padding-left:1rem !important;
  }

  .content-wrapper,
  .main-footer,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer,
  body.st-sidebar-expanded .content-wrapper,
  body.st-sidebar-expanded .main-footer,
  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer{
    margin-left:var(--st-sidebar-width) !important;
    margin-top:var(--st-navbar-height) !important;
  }

  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar::before,
  body.sidebar-collapse .layout-fixed .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar::before,
  body.sidebar-mini.sidebar-collapse .layout-fixed .main-sidebar,
  body.st-sidebar-collapsed .main-sidebar,
  body.st-sidebar-collapsed .main-sidebar::before,
  body.st-sidebar-collapsed .layout-fixed .main-sidebar{
    top:0 !important;
    height:100vh !important;
    width:var(--st-sidebar-collapsed-width) !important;
  }

  body.sidebar-collapse .main-header.navbar,
  body.sidebar-mini.sidebar-collapse .main-header.navbar,
  body.st-sidebar-collapsed .main-header.navbar{
    left:var(--st-sidebar-collapsed-width) !important;
    margin-left:0 !important;
    width:calc(100% - var(--st-sidebar-collapsed-width)) !important;
    padding-left:.9rem !important;
  }

  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .content-wrapper,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .main-footer,
  body.st-sidebar-collapsed .content-wrapper,
  body.st-sidebar-collapsed .main-footer{
    margin-left:var(--st-sidebar-collapsed-width) !important;
    margin-top:var(--st-navbar-height) !important;
  }
}


@media (max-width: 767.98px){
  .st-back-link{padding:.45rem .72rem!important;}
  .st-page-indicator strong{font-size:.95rem;max-width:180px;}
}


/* Caja / Cobros UI v6.79 */
.st-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding:1.15rem 1.25rem;border-radius:22px;background:linear-gradient(135deg,#ffffff 0%,#f7faff 100%);
  border:1px solid rgba(37,99,235,.10);box-shadow:0 14px 32px rgba(15,23,42,.07);margin-bottom:1rem;
}
.st-toolbar__title{display:flex;flex-direction:column;gap:.25rem;min-width:0;}
.st-toolbar__eyebrow{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#64748b;}
.st-toolbar__heading{font-size:1.5rem;font-weight:800;letter-spacing:-.03em;color:#0f172a;margin:0;}
.st-toolbar__sub{font-size:.92rem;color:#64748b;}
.st-toolbar__actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;}
.st-action-btn{display:inline-flex;align-items:center;gap:.55rem;border-radius:14px;padding:.72rem 1rem;font-weight:800;line-height:1;white-space:nowrap;}
.st-toolbar__actions--minimal{display:none!important;}
.st-quick-actions-panel{margin-bottom:0;align-self:stretch;width:100%;max-width:380px;margin-left:auto;}
.st-quick-actions-panel .card-body{padding:.82rem .82rem .88rem;}
.st-quick-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;justify-content:stretch;align-items:stretch;width:100%;}
.st-action-btn--block{width:100%;justify-content:center;padding:.9rem 1rem;}
.st-action-btn--compact{width:100%;justify-content:center;padding:.56rem .72rem;border-radius:12px;font-size:.89rem;font-weight:800;min-width:0;box-shadow:none;}
.st-action-btn--wide{grid-column:1 / -1;width:100%;}
.st-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1rem;}
.st-kpi-card{position:relative;border-radius:22px;padding:1.05rem 1.1rem;background:#fff;border:1px solid rgba(148,163,184,.16);box-shadow:0 12px 28px rgba(15,23,42,.06);overflow:hidden;}
.st-kpi-card::after{content:'';position:absolute;right:-18px;top:-18px;width:78px;height:78px;border-radius:999px;background:radial-gradient(circle,rgba(37,99,235,.14),rgba(37,99,235,0) 70%);}
.st-kpi-card__label{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#64748b;margin-bottom:.45rem;position:relative;z-index:1;}
.st-kpi-card__value{font-size:1.65rem;font-weight:900;letter-spacing:-.04em;color:#0f172a;position:relative;z-index:1;line-height:1.05;}
.st-kpi-card__meta{font-size:.92rem;color:#475569;margin-top:.35rem;position:relative;z-index:1;}
.st-kpi-card--success{border-color:rgba(22,163,74,.18);}
.st-kpi-card--success::after{background:radial-gradient(circle,rgba(22,163,74,.16),rgba(22,163,74,0) 70%);}
.st-kpi-card--danger{border-color:rgba(220,38,38,.18);}
.st-kpi-card--danger::after{background:radial-gradient(circle,rgba(220,38,38,.16),rgba(220,38,38,0) 70%);}
.st-kpi-card--warning{border-color:rgba(217,119,6,.20);}
.st-kpi-card--warning::after{background:radial-gradient(circle,rgba(217,119,6,.18),rgba(217,119,6,0) 70%);}
.st-kpi-card--info{border-color:rgba(14,165,233,.18);}
.st-kpi-card--info::after{background:radial-gradient(circle,rgba(14,165,233,.16),rgba(14,165,233,0) 70%);}
.st-status-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.46rem .78rem;border-radius:999px;font-weight:800;font-size:.84rem;}
.st-status-chip--open{background:rgba(22,163,74,.11);color:#15803d;border:1px solid rgba(22,163,74,.16);}
.st-status-chip--closed{background:rgba(220,38,38,.09);color:#b91c1c;border:1px solid rgba(220,38,38,.14);}
.st-cash-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,380px);gap:1rem;align-items:start;}
.st-quick-actions-col{display:flex;align-items:flex-start;justify-content:flex-end;}
.st-cobro-card-full{margin-top:1rem;}
.st-cash-layout > div:last-child{display:flex;flex-direction:column;align-items:stretch;justify-self:end;width:min(100%,380px);}
.st-stack{display:flex;flex-direction:column;gap:1rem;}
.st-panel.card .card-header{padding:1rem 1.15rem;}
.st-panel .card-title{display:flex;align-items:center;gap:.6rem;}
.st-panel .card-title i{color:#2563eb;}
.st-note-inline{display:inline-flex;align-items:center;gap:.45rem;font-size:.84rem;color:#64748b;background:#f8fafc;border:1px solid rgba(148,163,184,.16);padding:.42rem .72rem;border-radius:999px;}
.st-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.st-surface{background:#f8fafc;border:1px solid rgba(148,163,184,.14);border-radius:18px;padding:1rem;}
.st-table-shell{border:1px solid rgba(148,163,184,.12);border-radius:18px;overflow:hidden;background:#fff;}
.st-empty{display:flex;align-items:center;justify-content:center;min-height:110px;color:#64748b;font-weight:600;}
.st-filter-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;align-items:end;}
.st-filter-row--three{grid-template-columns:1fr 1fr 2fr auto;}
.st-tab-wrap .nav-tabs .nav-link{border-radius:14px 14px 0 0!important;}
.st-inline-actions{display:flex;gap:.65rem;flex-wrap:wrap;}
@media (max-width:1199.98px){.st-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.st-cash-layout{grid-template-columns:1fr;}.st-quick-actions-col{justify-content:stretch;}}
@media (max-width:767.98px){.st-toolbar{padding:1rem;}.st-toolbar__heading{font-size:1.3rem;}.st-kpi-grid{grid-template-columns:1fr;}.st-filter-row,.st-filter-row--three,.st-form-grid{grid-template-columns:1fr;}.st-toolbar__actions,.st-inline-actions{width:100%;}.st-action-btn{width:100%;justify-content:center;}}

@media (max-width:767.98px){.st-quick-actions-panel{width:100%;}.st-quick-actions-grid{grid-template-columns:1fr;}.st-action-btn--compact,.st-action-btn--wide{width:100%;}.st-action-btn--wide{grid-column:auto;}}


/* v6.97 logo visibility overrides */
.main-sidebar .brand-link.st-brand-link,
body.st-sidebar-expanded .main-sidebar .brand-link.st-brand-link,
body:not(.sidebar-collapse) .main-sidebar .brand-link.st-brand-link{
  background:#ffffff !important;
  border-bottom:1px solid rgba(148,163,184,.18) !important;
  min-height:94px !important;
  padding:14px 16px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:6px !important;
  overflow:hidden !important;
}
.main-sidebar .brand-link.st-brand-link .brand-logo-wrap{
  width:100% !important;
  height:auto !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  display:block !important;
  flex:0 0 auto !important;
}
.main-sidebar .brand-link.st-brand-link .brand-image{
  width:100% !important;
  max-width:188px !important;
  max-height:none !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 !important;
  filter:none !important;
}
.main-sidebar .brand-link.st-brand-link .brand-text{
  width:100% !important;
  display:block !important;
  color:#64748b !important;
  margin:0 !important;
}
.main-sidebar .brand-link.st-brand-link .brand-subline{
  display:block !important;
  font-size:.72rem !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  color:#64748b !important;
  white-space:normal !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar .brand-link.st-brand-link{
  min-height:74px !important;
  padding:10px 6px !important;
  align-items:center !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar .brand-link.st-brand-link .brand-logo-wrap{
  width:auto !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar .brand-link.st-brand-link .brand-image{
  width:42px !important;
  max-width:42px !important;
  margin:0 auto !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar .brand-link.st-brand-link .brand-text{
  display:none !important;
}


/* Mobile responsive and menu access fix v7.49 */
@media (max-width: 991.98px){
  :root{
    --st-mobile-header-height: 62px;
    --st-mobile-sidebar-width: min(88vw, 320px);
  }

  html, body{
    overflow-x:hidden;
    max-width:100%;
  }

  .wrapper,
  .content-wrapper,
  .main-footer{
    min-width:0;
    max-width:100%;
  }

  .main-header.navbar,
  body:not(.sidebar-collapse) .main-header,
  body.sidebar-collapse .main-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    margin-left:0 !important;
    padding:.5rem .65rem !important;
    z-index:1980 !important;
  }

  .content-wrapper,
  .main-footer,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer,
  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer,
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer{
    margin-left:0 !important;
    margin-top:var(--st-mobile-header-height) !important;
  }

  .content-wrapper{
    padding-bottom:calc(94px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .main-sidebar,
  .main-sidebar::before,
  .layout-fixed .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar::before,
  body:not(.sidebar-collapse) .layout-fixed .main-sidebar,
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar::before,
  body.sidebar-collapse .layout-fixed .main-sidebar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    height:100vh !important;
    width:var(--st-mobile-sidebar-width) !important;
    max-width:320px !important;
    margin:0 !important;
    transform:translate3d(-110%,0,0) !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transition:transform .22s ease, visibility .22s ease, box-shadow .22s ease !important;
    z-index:2002 !important;
    box-shadow:none !important;
  }

  body.sidebar-open .main-sidebar,
  body.sidebar-open .main-sidebar::before,
  body.sidebar-open .layout-fixed .main-sidebar{
    transform:translate3d(0,0,0) !important;
    visibility:visible !important;
    pointer-events:auto !important;
    box-shadow:0 20px 42px rgba(15,23,42,.34) !important;
  }

  .main-sidebar .brand-link.st-brand-link,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link{
    min-height:72px !important;
    padding:.75rem .8rem !important;
  }

  .main-sidebar .brand-subline,
  .main-footer .st-footer-meta span{
    display:none !important;
  }

  .main-sidebar .sidebar{
    height:calc(100vh - 74px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:.5rem .6rem calc(124px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling:touch;
  }

  .st-user-panel{
    margin:.4rem .1rem .75rem !important;
    padding:.75rem !important;
  }

  .nav-sidebar .nav-header{
    padding:.7rem .65rem .35rem !important;
    font-size:.68rem !important;
  }

  .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link,
  .sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link{
    margin:3px 0 !important;
    padding:.85rem .85rem !important;
    border-radius:14px !important;
  }

  .sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link{
    padding-left:2.2rem !important;
  }

  .nav-sidebar .nav-link > p,
  .nav-sidebar .nav-link > p > span{
    white-space:normal !important;
    line-height:1.2 !important;
  }

  body.sidebar-open{
    overflow:hidden !important;
    touch-action:none;
  }

  body.sidebar-open .content-wrapper,
  body.sidebar-open .main-footer,
  body.sidebar-open .pwa-bottom-nav,
  body.sidebar-open .pwa-connectivity-dot,
  body.sidebar-open .pwa-connectivity-toast{
    pointer-events:none !important;
  }

  #stMobileSidebarOverlay{
    position:fixed;
    inset:0;
    background:rgba(2,6,23,.56);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease;
    z-index:2000;
  }

  body.sidebar-open #stMobileSidebarOverlay{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .content{
    padding:0 .6rem 1rem !important;
  }

  .content-header{
    padding:.85rem .6rem .15rem !important;
  }

  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl{
    padding-left:.15rem !important;
    padding-right:.15rem !important;
  }

  .row{
    margin-left:-.3rem !important;
    margin-right:-.3rem !important;
  }

  .row > [class*="col-"]{
    padding-left:.3rem !important;
    padding-right:.3rem !important;
  }

  .card,
  .small-box,
  .info-box,
  .st-toolbar,
  .st-kpi-card,
  .st-surface,
  .st-table-shell,
  .modal-content{
    border-radius:16px !important;
  }

  .card-header,
  .card-body,
  .card-footer{
    padding:.9rem !important;
  }

  .table-responsive,
  .st-table-shell,
  .modal-body,
  .nav-tabs,
  .st-filter-row,
  .st-form-grid,
  .st-inline-actions{
    max-width:100%;
  }

  .table-responsive{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .table:not(.table-sm){
    min-width:600px;
  }

  .modal-dialog{
    width:calc(100vw - .8rem) !important;
    max-width:calc(100vw - .8rem) !important;
    margin:.4rem auto !important;
  }

  .modal-body{
    max-height:calc(100vh - 132px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  .st-nav-right .dropdown-menu{
    right:0 !important;
    left:auto !important;
    min-width:250px;
    max-width:calc(100vw - .75rem);
  }

  .st-user-chip,
  .st-logout-link,
  .st-nav-icon-link,
  .st-back-link{
    padding:.45rem .58rem !important;
  }

  .btn,
  .st-action-btn,
  .btn-group > .btn{
    min-height:44px;
    padding:.7rem .85rem !important;
    white-space:normal;
  }
}

@media (max-width: 575.98px){
  .main-header .st-user-chip,
  .main-header .st-logout-link{
    display:inline-flex !important;
    align-items:center !important;
    max-width:calc(50vw - .9rem);
    min-width:0;
    border-radius:999px;
    padding:.4rem .62rem !important;
    gap:.42rem !important;
  }

  .main-header .st-user-chip__name,
  .main-header .st-logout-link__label{
    display:inline-block !important;
    font-size:.86rem !important;
    font-weight:700 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:clamp(74px, 21vw, 120px);
  }

  .main-header .st-user-chip__avatar{
    width:30px;
    height:30px;
    flex:0 0 30px;
    font-size:.9rem;
  }

  .main-header .st-logout-link i{
    font-size:.95rem;
  }

  .st-nav-left .navbar-nav,
  .st-nav-right .navbar-nav{
    gap:.12rem;
  }

  .st-nav-right .navbar-nav{
    flex-wrap:nowrap;
    max-width:100%;
  }

  .main-header .st-nav-right{
    min-width:0;
    margin-left:auto;
  }

  .main-header .st-nav-icon-link{
    padding:.4rem .5rem !important;
  }

  .content-header h1,
  .st-toolbar__heading{
    font-size:1.14rem !important;
  }

  .table:not(.table-sm){
    min-width:540px;
  }
}


/* Global mobile fit for remaining modules and access pages v7.51 */
@media (max-width: 991.98px){
  :root{
    --st-mobile-page-pad: .75rem;
    --st-mobile-card-radius: 16px;
  }

  body,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer{
    min-width: 0 !important;
  }

  .content-wrapper{
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .content-header{
    padding: .8rem var(--st-mobile-page-pad) .15rem !important;
  }

  .content{
    padding: 0 var(--st-mobile-page-pad) calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .container-fluid{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .content-header .row,
  .content .row{
    margin-left: -.38rem !important;
    margin-right: -.38rem !important;
  }

  .content-header .row > [class*='col-'],
  .content .row > [class*='col-']{
    padding-left: .38rem !important;
    padding-right: .38rem !important;
  }

  .content-header .breadcrumb{
    float: none !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    margin-top: .35rem !important;
  }

  .content-header .row > [class*='col-']:last-child{
    margin-top: .25rem;
  }

  .card,
  .small-box,
  .info-box,
  .st-hero-card,
  .st-module-card,
  .st-hub-card,
  .loan-kpi-card,
  .loan-access-card{
    border-radius: var(--st-mobile-card-radius) !important;
  }

  .card-header,
  .card-body{
    padding: .9rem !important;
  }

  .card-header{
    gap: .65rem !important;
    align-items: flex-start !important;
  }

  .card-title,
  .card-header > h3,
  .card-header h3.card-title{
    width: 100%;
    min-width: 0;
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }

  .card-tools,
  .card-header .btn,
  .card-header .badge,
  .card-header .btn-group{
    max-width: 100%;
    width: auto;
  }

  .btn,
  .btn-group > .btn,
  .btn-toolbar > .btn,
  .btn-toolbar > .btn-group,
  .input-group > .btn,
  .input-group-append > .btn,
  .input-group-prepend > .btn{
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  .btn-group,
  .btn-toolbar{
    flex-wrap: wrap !important;
    gap: .45rem;
  }

  .btn-group > .btn,
  .btn-toolbar > .btn,
  .btn-toolbar > .btn-group{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .btn-block + .btn-block{
    margin-top: .55rem !important;
  }

  .form-row{
    margin-left: -.38rem !important;
    margin-right: -.38rem !important;
  }

  .form-row > [class*='col-']{
    padding-left: .38rem !important;
    padding-right: .38rem !important;
  }

  .form-group{
    margin-bottom: .85rem !important;
  }

  .form-control,
  .custom-select,
  select.form-control,
  textarea.form-control,
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple{
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .select2-container{
    width: 100% !important;
    max-width: 100% !important;
  }

  .select2-container .select2-selection--single .select2-selection__rendered{
    line-height: 42px !important;
    padding-left: .9rem !important;
  }

  .select2-container .select2-selection--single .select2-selection__arrow{
    height: 42px !important;
  }

  .nav-tabs,
  .nav-pills{
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding-bottom: .1rem;
  }

  .nav-tabs::-webkit-scrollbar,
  .nav-pills::-webkit-scrollbar{
    display: none;
  }

  .nav-tabs .nav-item,
  .nav-pills .nav-item{
    flex: 0 0 auto !important;
  }

  .nav-tabs .nav-link,
  .nav-pills .nav-link{
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: .62rem .85rem !important;
  }

  .st-tab-wrap .nav-tabs .nav-link{
    border-radius: 12px 12px 0 0 !important;
  }

  .table-responsive,
  .st-table-shell,
  .st-table-responsive-auto{
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px !important;
  }

  .table{
    margin-bottom: 0 !important;
  }

  .table th,
  .table td{
    vertical-align: middle !important;
    white-space: nowrap;
  }

  .table td .btn,
  .table td .btn-group > .btn{
    min-height: 36px !important;
    padding: .5rem .7rem !important;
  }

  .pagination{
    flex-wrap: wrap !important;
    gap: .35rem;
  }

  .pagination .page-link{
    border-radius: 10px !important;
  }

  .small-box{
    margin-bottom: .85rem !important;
  }

  .small-box .inner{
    padding-right: 0 !important;
  }

  .small-box .icon{
    display: none !important;
  }

  .small-box h3,
  .small-box h4,
  .small-box .inner h3,
  .small-box .inner h4{
    font-size: 1.25rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  .small-box p{
    white-space: normal !important;
    margin-bottom: 0 !important;
  }

  .small-box .small-box-footer{
    padding: .72rem .9rem !important;
    text-align: left !important;
  }

  .info-box{
    min-height: auto !important;
    padding: .7rem !important;
    gap: .75rem !important;
  }

  .info-box .info-box-icon{
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 1.15rem !important;
  }

  .info-box .info-box-content{
    min-width: 0;
  }

  .info-box .info-box-text,
  .info-box .progress-description{
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  .st-hero-card{
    padding: 1rem !important;
  }

  .st-hero-card h2{
    font-size: 1.18rem !important;
    line-height: 1.28 !important;
  }

  .st-hero-card p{
    font-size: .9rem !important;
    line-height: 1.45 !important;
    margin-bottom: .75rem !important;
  }

  .st-hero-badges{
    display: flex;
    flex-wrap: nowrap;
    gap: .45rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: .1rem;
  }

  .st-module-card,
  .st-hub-card{
    height: auto !important;
  }

  .st-module-card__icon,
  .st-hub-card__icon,
  .loan-icon-badge{
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 1.2rem !important;
  }

  .st-module-card h3,
  .st-hub-card__title{
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
  }

  .st-module-card p,
  .st-hub-card__subtitle{
    font-size: .87rem !important;
    line-height: 1.4 !important;
  }

  .st-hub-card__header,
  .loan-kpi-head,
  .loan-access-head{
    gap: .8rem !important;
  }

  .st-hub-card__footer,
  .loan-card-actions{
    margin-top: .9rem !important;
    justify-content: stretch !important;
  }

  .st-hub-action,
  .loan-card-action{
    width: 100% !important;
    justify-content: center !important;
  }

  .loan-module-wrap .content-header h1{
    font-size: 1.18rem !important;
  }

  .loan-kpi-card{
    padding: 1rem !important;
  }

  .loan-kpi-value{
    font-size: 1.55rem !important;
  }

  .loan-kpi-label{
    font-size: .92rem !important;
    line-height: 1.35 !important;
  }

  .st-review-list li{
    gap: .65rem !important;
    align-items: flex-start !important;
  }

  .st-review-list__icon{
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  .modal-content{
    border-radius: 16px !important;
  }

  .modal-header,
  .modal-footer{
    padding: .8rem .9rem !important;
  }

  .modal-title{
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }

  .modal-footer{
    justify-content: stretch !important;
  }

  .modal-footer .btn{
    width: 100% !important;
    margin: .45rem 0 0 0 !important;
  }

  .modal-footer .btn:first-child{
    margin-top: 0 !important;
  }

  .dropdown-menu{
    max-width: calc(100vw - 1rem) !important;
  }

  .main-footer{
    padding: .85rem var(--st-mobile-page-pad) calc(.85rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 575.98px){
  :root{
    --st-mobile-page-pad: .65rem;
  }

  .content-header h1,
  .st-toolbar__heading,
  .loan-module-wrap .content-header h1{
    font-size: 1.1rem !important;
  }

  .card-header,
  .card-body{
    padding: .82rem !important;
  }

  .btn,
  .btn-group > .btn,
  .btn-toolbar > .btn,
  .input-group > .btn,
  .input-group-append > .btn,
  .input-group-prepend > .btn{
    font-size: .92rem !important;
    padding: .62rem .74rem !important;
  }

  .table th,
  .table td{
    padding: .5rem .56rem !important;
    font-size: .88rem !important;
  }

  .small-box h3,
  .small-box h4,
  .small-box .inner h3,
  .small-box .inner h4{
    font-size: 1.15rem !important;
  }

  .st-hero-card p,
  .st-hero-badges,
  .st-review-list .text-muted{
    display: none !important;
  }

  .st-module-card p,
  .st-hub-card__subtitle{
    font-size: .82rem !important;
  }

  .st-module-card__icon,
  .st-hub-card__icon,
  .loan-icon-badge,
  .info-box .info-box-icon{
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    font-size: 1.05rem !important;
  }

  .st-footer-meta strong{
    font-size: .95rem !important;
  }

  .main-footer .float-right{
    float: none !important;
    display: block !important;
    margin-top: .55rem !important;
  }
}


@media (min-width: 768px) and (max-width: 1366px) and (max-height: 820px){
  body{
    font-size: .94rem;
  }

  .content-header{
    padding: 1rem 1rem .2rem;
  }

  .content{
    padding: 0 1rem 1rem;
  }

  .content-header h1,
  .loan-module-wrap .content-header h1,
  .st-toolbar__heading{
    font-size: 1.45rem !important;
  }

  .card-header{
    padding: .85rem 1rem !important;
  }

  .card-body{
    padding: 1rem !important;
  }

  .card-title{
    font-size: .95rem !important;
  }

  .btn,
  .btn-group > .btn,
  .btn-toolbar > .btn,
  .input-group > .btn,
  .input-group-append > .btn,
  .input-group-prepend > .btn{
    font-size: .92rem !important;
    padding: .5rem .9rem !important;
  }

  .form-group label,
  .col-form-label{
    font-size: .84rem !important;
  }

  .form-control,
  .custom-select,
  .select2-container--bootstrap4 .select2-selection,
  .input-group-text,
  .custom-file-label,
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple{
    min-height: 42px !important;
    font-size: .92rem !important;
  }

  .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered,
  .select2-container .select2-selection--single .select2-selection__rendered{
    line-height: 38px !important;
  }

  .small-box .icon{
    font-size: 2.5rem !important;
    top: 10px !important;
    right: 12px !important;
  }

  .small-box h3,
  .small-box h4,
  .small-box .inner h3,
  .small-box .inner h4{
    font-size: 1.4rem !important;
  }

  .small-box p,
  .info-box .info-box-text,
  .progress-description,
  .table th,
  .table td,
  .nav-sidebar .nav-link p,
  .brand-link .brand-title,
  .brand-link .brand-subtitle{
    font-size: .9rem !important;
  }

  .info-box .info-box-icon,
  .st-module-card__icon,
  .st-hub-card__icon,
  .loan-icon-badge,
  .st-stat-card__icon{
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    font-size: 1.1rem !important;
  }

  .loan-kpi-value{
    font-size: 1.85rem !important;
  }

  .st-module-card h3,
  .st-hub-card__title,
  .loan-kpi-label,
  .info-box .info-box-number{
    font-size: .98rem !important;
  }

  .main-header.navbar{
    min-height: 60px;
    padding: .45rem .9rem;
  }

  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer{
    margin-top: 60px !important;
  }

  .layout-fixed .main-sidebar,
  .sidebar-mini.sidebar-collapse .main-sidebar{
    top: 60px !important;
    height: calc(100vh - 60px) !important;
  }
}


/* Desktop density refinement v7.76 */
@media screen and (min-width: 1024px) and (max-width: 1600px) and (max-height: 900px){
  body{
    font-size:.90rem !important;
  }

  .content-header{
    padding:.9rem .95rem .15rem !important;
  }

  .content{
    padding:0 .95rem .95rem !important;
  }

  .content-header h1,
  .loan-module-wrap .content-header h1,
  .st-toolbar__heading,
  .st-hero-card h2{
    font-size:1.28rem !important;
    line-height:1.08 !important;
  }

  .card,
  .st-module-card,
  .st-hub-card,
  .st-stat-card,
  .st-kpi-card,
  .info-box,
  .small-box{
    border-radius:16px !important;
  }

  .card-header{
    padding:.75rem .9rem !important;
  }

  .card-body,
  .small-box .inner,
  .info-box .info-box-content{
    padding:.85rem .9rem !important;
  }

  .card-title,
  .st-module-card h3,
  .st-hub-card__title,
  .info-box .info-box-number,
  .loan-kpi-label,
  .st-kpi-card__label{
    font-size:.90rem !important;
  }

  .st-stat-card__value,
  .st-kpi-card__value,
  .loan-kpi-value,
  .small-box h3,
  .small-box h4,
  .small-box .inner h3,
  .small-box .inner h4{
    font-size:1.35rem !important;
    line-height:1.05 !important;
  }

  .st-stat-card__label,
  .st-kpi-card__meta,
  .st-toolbar__sub,
  .st-module-card p,
  .st-hub-card__subtitle,
  .info-box .info-box-text,
  .progress-description,
  .small-box p,
  .table th,
  .table td,
  .nav-sidebar .nav-link p,
  .brand-link .brand-title,
  .brand-link .brand-subtitle,
  .form-group label,
  .col-form-label,
  .st-user-meta strong,
  .st-user-meta span,
  .st-page-kicker,
  .st-page-indicator strong,
  .st-footer-meta span{
    font-size:.84rem !important;
  }

  .st-module-card__icon,
  .st-hub-card__icon,
  .st-stat-card__icon,
  .info-box .info-box-icon,
  .loan-icon-badge{
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    font-size:.96rem !important;
    border-radius:14px !important;
  }

  .small-box .icon{
    font-size:2.05rem !important;
    top:8px !important;
    right:10px !important;
  }

  .btn,
  .btn-group > .btn,
  .btn-toolbar > .btn,
  .input-group > .btn,
  .input-group-append > .btn,
  .input-group-prepend > .btn,
  .nav-tabs .nav-link,
  .st-hub-action,
  .st-action-btn,
  .st-logout-link,
  .st-back-link,
  .st-nav-icon-link,
  .st-user-chip{
    font-size:.86rem !important;
    padding:.46rem .72rem !important;
  }

  .form-control,
  .custom-select,
  .select2-container--bootstrap4 .select2-selection,
  .input-group-text,
  .custom-file-label,
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple{
    min-height:38px !important;
    font-size:.88rem !important;
  }

  .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered,
  .select2-container .select2-selection--single .select2-selection__rendered{
    line-height:34px !important;
  }

  .table th,
  .table td{
    padding:.44rem .5rem !important;
  }

  .main-header.navbar{
    min-height:56px !important;
    padding:.38rem .75rem !important;
  }

  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer,
  .content-wrapper,
  .main-footer{
    margin-top:56px !important;
  }

  .main-sidebar,
  .main-sidebar::before{
    width:260px !important;
  }

  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer{
    margin-left:260px !important;
  }

  body:not(.sidebar-collapse) .main-header.navbar,
  body.st-sidebar-expanded .main-header.navbar,
  .main-header.navbar{
    width:calc(100% - 260px) !important;
    margin-left:260px !important;
    left:0 !important;
  }

  .layout-fixed .main-sidebar,
  .sidebar-mini.sidebar-collapse .main-sidebar{
    top:56px !important;
    height:calc(100vh - 56px) !important;
  }

  .layout-fixed .main-sidebar .brand-link,
  .main-sidebar .brand-link{
    min-height:56px !important;
    padding:.6rem .75rem !important;
  }

  .brand-logo-wrap{
    width:44px !important;
    height:44px !important;
    flex:0 0 44px !important;
  }

  .brand-link .brand-image{
    max-width:32px !important;
    max-height:32px !important;
  }

  .sidebar{
    padding:.55rem .5rem 1rem !important;
  }

  .st-user-panel{
    padding:.65rem !important;
    margin:.55rem .1rem .75rem !important;
    border-radius:14px !important;
  }

  .st-user-avatar{
    width:38px !important;
    height:38px !important;
    border-radius:12px !important;
    font-size:.9rem !important;
  }

  .nav-sidebar .nav-header{
    padding:.55rem .7rem .35rem !important;
    font-size:.64rem !important;
  }

  .sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link,
  .sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link{
    margin:2px 4px !important;
    padding:.62rem .72rem !important;
    border-radius:12px !important;
  }

  .sidebar-dark-primary .nav-treeview>.nav-item>.nav-link{
    padding-left:1.95rem !important;
  }
}


/* Adaptive desktop density fix v7.77 */
@media screen and (min-width: 992px) and (max-width: 1600px),
       screen and (min-width: 992px) and (max-height: 900px){
  html{font-size:14px;}
  body{font-size:.94rem;}
  :root{
    --st-sidebar-width:252px;
    --st-sidebar-collapsed-width:4.15rem;
    --st-navbar-height:58px;
  }

  .main-sidebar,
  .main-sidebar::before,
  body:not(.sidebar-collapse) .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar::before{
    width:var(--st-sidebar-width)!important;
  }
  .main-header.navbar,
  body:not(.sidebar-collapse) .main-header.navbar,
  body.st-sidebar-expanded .main-header.navbar{
    left:var(--st-sidebar-width)!important;
    width:calc(100% - var(--st-sidebar-width))!important;
    min-height:var(--st-navbar-height)!important;
    padding:.4rem .85rem!important;
  }
  .content-wrapper,
  .main-footer,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer,
  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer,
  body.st-sidebar-expanded .content-wrapper,
  body.st-sidebar-expanded .main-footer{
    margin-left:var(--st-sidebar-width)!important;
    margin-top:var(--st-navbar-height)!important;
  }

  body.sidebar-collapse .main-header.navbar,
  body.sidebar-mini.sidebar-collapse .main-header.navbar,
  body.st-sidebar-collapsed .main-header.navbar{
    left:var(--st-sidebar-collapsed-width)!important;
    width:calc(100% - var(--st-sidebar-collapsed-width))!important;
    min-height:var(--st-navbar-height)!important;
    padding:.35rem .75rem!important;
  }
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.st-sidebar-collapsed .content-wrapper,
  body.st-sidebar-collapsed .main-footer,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .content-wrapper,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .main-footer{
    margin-left:var(--st-sidebar-collapsed-width)!important;
    margin-top:var(--st-navbar-height)!important;
  }
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar::before,
  body.sidebar-mini.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar::before,
  body.st-sidebar-collapsed .main-sidebar,
  body.st-sidebar-collapsed .main-sidebar::before{
    width:var(--st-sidebar-collapsed-width)!important;
  }

  .brand-link,
  .main-sidebar .brand-link,
  body:not(.sidebar-collapse) .main-sidebar .brand-link,
  .main-sidebar .brand-link.st-brand-link{
    min-height:var(--st-navbar-height)!important;
    padding:.6rem .7rem!important;
  }
  .brand-logo-wrap{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:12px!important;}
  .brand-link .brand-image{max-width:34px!important;max-height:34px!important;}
  .main-sidebar .brand-link.st-brand-link .brand-image{max-width:154px!important;}
  .main-sidebar .brand-link.st-brand-link{min-height:80px!important;padding:10px 12px!important;}
  .main-sidebar .brand-link.st-brand-link .brand-subline,
  .brand-link .brand-subtitle{font-size:.65rem!important;}
  .brand-link .brand-title{font-size:.82rem!important;}

  .sidebar{padding:.6rem .5rem 1rem!important;}
  .st-user-panel{padding:.75rem!important;margin:.55rem .15rem .8rem!important;border-radius:15px!important;gap:.65rem!important;}
  .st-user-avatar{width:38px!important;height:38px!important;border-radius:12px!important;font-size:.92rem!important;}
  .st-user-meta strong{font-size:.84rem!important;}
  .st-user-meta span{font-size:.66rem!important;}
  .nav-sidebar .nav-header{padding:.65rem .72rem .3rem!important;font-size:.64rem!important;letter-spacing:.12em!important;}
  .sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link,
  .sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link{
    margin:2px 5px!important;
    padding:.65rem .75rem!important;
    border-radius:12px!important;
    font-size:.9rem!important;
  }
  .sidebar-dark-primary .nav-treeview>.nav-item>.nav-link{padding-left:2rem!important;font-size:.84rem!important;}
  .nav-sidebar .nav-link>.right,
  .nav-sidebar .nav-link p{font-size:.9rem!important;}

  .content-header{padding:.9rem 1rem .15rem!important;}
  .content{padding:0 1rem 1rem!important;}
  .content-header h1{font-size:1.45rem!important;}
  .breadcrumb{font-size:.82rem!important;}

  .card{border-radius:18px!important;}
  .card-header{padding:.8rem 1rem!important;}
  .card-body{padding:.95rem 1rem!important;}
  .card-footer{padding:.75rem 1rem!important;}
  .card-title{font-size:.95rem!important;}

  .form-group label,.col-form-label{font-size:.82rem!important;}
  .form-control,.custom-select,.select2-container--bootstrap4 .select2-selection,
  .input-group-text,.custom-file-label{min-height:40px!important;font-size:.92rem!important;border-radius:12px!important;}
  .select2-container--bootstrap4 .select2-selection--single{height:40px!important;}
  .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered{line-height:36px!important;}
  textarea.form-control{min-height:96px!important;}

  .btn{padding:.46rem .82rem!important;font-size:.9rem!important;border-radius:12px!important;}
  .btn-lg{padding:.58rem .95rem!important;font-size:.96rem!important;}
  .btn-sm{padding:.3rem .58rem!important;font-size:.8rem!important;}

  .table thead th{font-size:.67rem!important;padding:.65rem .58rem!important;}
  .table td,.table th{padding:.62rem .58rem!important;font-size:.88rem!important;}
  .dataTables_wrapper .dataTables_paginate .paginate_button,
  .pagination .page-link{padding:.34rem .58rem!important;font-size:.86rem!important;}

  .small-box>.inner{padding:.9rem 1rem!important;}
  .small-box h3{font-size:1.45rem!important;}
  .small-box p{font-size:.88rem!important;}
  .small-box .icon{font-size:52px!important;top:14px!important;right:12px!important;}
  .info-box{min-height:72px!important;padding:.7rem .8rem!important;}
  .info-box .info-box-icon{width:58px!important;font-size:1.35rem!important;}
  .info-box .info-box-content{padding:.2rem 0 .2rem .75rem!important;}

  .st-toolbar{padding:.9rem 1rem!important;border-radius:18px!important;gap:.8rem!important;}
  .st-toolbar__heading{font-size:1.22rem!important;}
  .st-toolbar__sub,.st-toolbar__eyebrow{font-size:.8rem!important;}
  .st-kpi-card,.st-stat-card,.st-module-card,.st-hub-card{border-radius:18px!important;padding:1rem!important;}
  .st-kpi-card__value,.st-stat-card__value{font-size:1.42rem!important;}
  .st-kpi-card__label,.st-stat-card__label{font-size:.7rem!important;}
  .st-kpi-card__meta,.st-module-card p,.st-hub-card__subtitle{font-size:.86rem!important;}
  .st-module-card__icon,.st-hub-card__icon{width:48px!important;height:48px!important;border-radius:15px!important;font-size:1.1rem!important;margin-bottom:.8rem!important;}
  .st-hub-card__title{font-size:1.12rem!important;}
  .st-hub-action{padding:.62rem .9rem!important;font-size:.9rem!important;}

  .main-footer{padding:.75rem 1rem!important;font-size:.86rem!important;}
  .st-version-pill{padding:.34rem .64rem!important;font-size:.82rem!important;}
}

@media screen and (min-width: 992px) and (max-width: 1366px),
       screen and (min-width: 992px) and (max-height: 768px){
  html{font-size:13px;}
  body{font-size:.9rem;}
  :root{
    --st-sidebar-width:236px;
    --st-sidebar-collapsed-width:3.9rem;
    --st-navbar-height:54px;
  }

  .main-sidebar,
  .main-sidebar::before,
  body:not(.sidebar-collapse) .main-sidebar,
  body:not(.sidebar-collapse) .main-sidebar::before{width:var(--st-sidebar-width)!important;}
  .main-header.navbar,
  body:not(.sidebar-collapse) .main-header.navbar,
  body.st-sidebar-expanded .main-header.navbar{left:var(--st-sidebar-width)!important;width:calc(100% - var(--st-sidebar-width))!important;}
  .content-wrapper,.main-footer,
  body.layout-navbar-fixed .wrapper .content-wrapper,
  body.layout-navbar-fixed .wrapper .main-footer,
  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-footer,
  body.st-sidebar-expanded .content-wrapper,
  body.st-sidebar-expanded .main-footer{margin-left:var(--st-sidebar-width)!important;margin-top:var(--st-navbar-height)!important;}
  body.sidebar-collapse .main-header.navbar,
  body.sidebar-mini.sidebar-collapse .main-header.navbar,
  body.st-sidebar-collapsed .main-header.navbar{left:var(--st-sidebar-collapsed-width)!important;width:calc(100% - var(--st-sidebar-collapsed-width))!important;}
  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.st-sidebar-collapsed .content-wrapper,
  body.st-sidebar-collapsed .main-footer,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .content-wrapper,
  body.sidebar-collapse.layout-navbar-fixed .wrapper .main-footer{margin-left:var(--st-sidebar-collapsed-width)!important;margin-top:var(--st-navbar-height)!important;}
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar::before,
  body.sidebar-mini.sidebar-collapse .main-sidebar,
  body.sidebar-mini.sidebar-collapse .main-sidebar::before,
  body.st-sidebar-collapsed .main-sidebar,
  body.st-sidebar-collapsed .main-sidebar::before{width:var(--st-sidebar-collapsed-width)!important;}

  .main-sidebar .brand-link.st-brand-link{min-height:72px!important;padding:8px 10px!important;}
  .main-sidebar .brand-link.st-brand-link .brand-image{max-width:138px!important;}
  .hero-main-logo{max-width:460px!important;}
  .content-header{padding:.72rem .85rem .1rem!important;}
  .content{padding:0 .85rem .85rem!important;}
  .card-header{padding:.72rem .88rem!important;}
  .card-body{padding:.82rem .88rem!important;}
  .card-footer{padding:.66rem .88rem!important;}
  .form-control,.custom-select,.select2-container--bootstrap4 .select2-selection,
  .input-group-text,.custom-file-label{min-height:38px!important;font-size:.88rem!important;}
  .select2-container--bootstrap4 .select2-selection--single{height:38px!important;}
  .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered{line-height:34px!important;}
  .btn{padding:.4rem .74rem!important;font-size:.86rem!important;}
  .table thead th{font-size:.63rem!important;}
  .table td,.table th{font-size:.84rem!important;padding:.54rem .5rem!important;}
  .small-box>.inner{padding:.75rem .85rem!important;}
  .small-box h3{font-size:1.28rem!important;}
  .small-box .icon{font-size:44px!important;top:10px!important;}
}


/* v7.80 sidebar logo centered on small screens */
@media (max-width: 991.98px){
  .main-sidebar .brand-link.st-brand-link,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link{
    min-height:64px !important;
    padding:.55rem .7rem !important;
    display:grid !important;
    place-items:center !important;
    text-align:center !important;
    gap:0 !important;
  }

  .main-sidebar .brand-link.st-brand-link .brand-logo-wrap,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link .brand-logo-wrap{
    width:100% !important;
    max-width:170px !important;
    margin:0 auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:center !important;
    justify-self:center !important;
    overflow:hidden !important;
  }

  .main-sidebar .brand-link.st-brand-link .brand-image,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link .brand-image{
    display:block !important;
    width:100% !important;
    max-width:156px !important;
    max-height:38px !important;
    object-fit:contain !important;
    object-position:center center !important;
    margin:0 auto !important;
    transform:none !important;
  }

  .main-sidebar .brand-link.st-brand-link .brand-text,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link .brand-text{
    display:none !important;
  }

  .main-sidebar .sidebar{
    height:calc(100vh - 64px) !important;
  }
}

@media (max-width: 480px){
  .main-sidebar .brand-link.st-brand-link,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link{
    min-height:60px !important;
    padding:.5rem .65rem !important;
  }

  .main-sidebar .brand-link.st-brand-link .brand-logo-wrap,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link .brand-logo-wrap{
    max-width:160px !important;
  }

  .main-sidebar .brand-link.st-brand-link .brand-image,
  body.sidebar-open .main-sidebar .brand-link.st-brand-link .brand-image{
    max-width:146px !important;
    max-height:34px !important;
  }

  .main-sidebar .sidebar{
    height:calc(100vh - 60px) !important;
  }
}
