/* Low Interest Finance ERP — complete application stylesheet
   Restored and consolidated for v2.0.2 (layout, forms, tables, dashboard,
   responsive navigation, customer portal, receipts and print views). */

:root{
  --blue:#3578c9;
  --blue-dark:#245da3;
  --blue-soft:#eaf3ff;
  --navy:#102941;
  --navy-2:#0b2035;
  --text:#14263d;
  --muted:#65758b;
  --line:#dbe4ef;
  --line-strong:#cbd7e5;
  --surface:#ffffff;
  --surface-2:#f6f9fc;
  --page:#f1f5fa;
  --green:#12a95a;
  --green-soft:#e5f8ee;
  --orange:#c98000;
  --orange-soft:#fff3d8;
  --red:#df3347;
  --red-soft:#fde9ed;
  --shadow:0 10px 30px rgba(20,38,61,.075);
  --shadow-sm:0 3px 12px rgba(20,38,61,.065);
  --radius:15px;
  --radius-sm:10px;
  --sidebar-width:230px;
}

*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{
  min-height:100vh;
  margin:0;
  color:var(--text);
  background:var(--page);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body,button,input,select,textarea{font:inherit}
button,input,select,textarea{color:inherit}
button{appearance:none;-webkit-appearance:none}
img{max-width:100%;height:auto}
a{color:var(--blue-dark);text-decoration:none}
a:hover{color:#174f91}
p{margin:0 0 12px}
h1,h2,h3,h4{color:var(--text);line-height:1.2;margin:0 0 14px}
h1{font-size:30px}
h2{font-size:20px}
h3{font-size:16px}
h4{font-size:14px}
small{color:var(--muted)}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}

/* Application shell */
.app-shell{min-height:100vh}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:80;
  width:var(--sidebar-width);
  overflow-y:auto;
  overflow-x:hidden;
  background:linear-gradient(180deg,var(--navy-2),var(--navy));
  color:#d2ddeb;
  border-right:1px solid rgba(255,255,255,.055);
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.22) transparent;
  transition:transform .25s ease;
}
.sidebar::-webkit-scrollbar{width:6px}
.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:20px}
.brand{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:14px 14px;
  color:#fff;
  font-size:17px;
  font-weight:800;
  border-bottom:1px solid rgba(255,255,255,.09);
  letter-spacing:-.2px;
}
.brand:hover{color:#fff;background:rgba(255,255,255,.025)}
.brand img{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:10px;padding:3px;flex:0 0 auto}
.brand span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar nav{padding:12px 10px 24px}
.sidebar nav a{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:40px;
  padding:9px 13px;
  margin:3px 0;
  border-radius:10px;
  color:#cbd7e6;
  font-weight:680;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.sidebar nav a>span:first-child{width:20px;text-align:center;flex:0 0 20px;color:#afc1d5}
.sidebar nav a:hover{background:rgba(255,255,255,.075);color:#fff;transform:translateX(1px)}
.sidebar nav a:hover>span:first-child{color:#fff}
.sidebar nav a.active,.sidebar nav .nav-dashboard.active{
  color:#fff;
  background:linear-gradient(105deg,#397fcf,#2b67af);
  box-shadow:0 7px 18px rgba(0,0,0,.16);
}
.sidebar nav a.active>span:first-child{color:#fff}
.sidebar nav .nav-dashboard{margin-bottom:8px}

/* Grouped / collapsible sidebar */
.nav-group{display:block;margin:4px 0;border-radius:12px;overflow:hidden}
.nav-group-toggle{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:100%;
  min-height:40px;
  display:flex!important;
  align-items:center;
  gap:10px;
  border:0!important;
  outline:0;
  border-radius:10px!important;
  padding:9px 12px!important;
  margin:0;
  background:transparent!important;
  color:#cbd7e6!important;
  font:inherit!important;
  font-weight:760!important;
  text-align:left;
  line-height:1.2;
  cursor:pointer;
  box-shadow:none!important;
  transition:background .18s ease,color .18s ease;
}
.nav-group-toggle::-moz-focus-inner{border:0;padding:0}
.nav-group-toggle:hover,.nav-group.open>.nav-group-toggle{background:rgba(255,255,255,.075)!important;color:#fff!important}
.nav-group-toggle:focus-visible{box-shadow:0 0 0 2px rgba(112,177,255,.75)!important}
.nav-group-icon{width:21px;flex:0 0 21px;text-align:center;color:#afc1d5;font-weight:850}
.nav-group.open .nav-group-icon,.nav-group-toggle:hover .nav-group-icon{color:#fff}
.nav-group-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-chevron{width:17px;flex:0 0 17px;text-align:center;font-size:17px;line-height:1;transition:transform .22s ease}
.nav-group.open .nav-chevron{transform:rotate(180deg)}
.nav-submenu{max-height:0;overflow:hidden;opacity:0;padding-left:12px;transition:max-height .28s ease,opacity .2s ease}
.nav-group.open .nav-submenu{max-height:470px;opacity:1;padding-bottom:3px}
.sidebar .nav-submenu a{position:relative;min-height:36px;padding:8px 10px;margin:2px 0 2px 8px;border-radius:9px;font-size:13px;font-weight:650}
.sidebar .nav-submenu a::before{content:"";position:absolute;left:-8px;top:50%;width:5px;height:5px;transform:translateY(-50%);border-radius:50%;background:#61788f}
.sidebar .nav-submenu a:hover::before,.sidebar .nav-submenu a.active::before{background:#fff}
.sidebar .nav-submenu a.active{background:linear-gradient(100deg,var(--blue),#245ca3);color:#fff}

.main-wrap{
  min-height:100vh;
  margin-left:var(--sidebar-width);
  display:flex;
  flex-direction:column;
  min-width:0;
}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  min-height:66px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 20px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 12px rgba(22,45,72,.035);
  backdrop-filter:blur(10px);
}
.topbar>div:nth-child(2){min-width:0}
.topbar strong{display:block;font-size:15px;line-height:1.25}
.topbar small{display:block;font-size:12px;line-height:1.3;margin-top:1px}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:9px;min-width:0}
.icon-btn{
  width:36px;height:36px;min-width:36px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f7f9fc;
  color:var(--text);
  cursor:pointer;
  font-weight:800;
  box-shadow:none;
}
.icon-btn:hover{background:#edf3fa;color:var(--blue-dark);border-color:var(--line-strong)}
.portal-link{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  padding:7px 13px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  font-weight:750;
  white-space:nowrap;
}
.portal-link:hover{border-color:#9eb8d7;background:#f5f9fe;color:var(--blue-dark)}
.user-chip{
  min-height:40px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:3px 7px 3px 3px;
  border-radius:12px;
  color:var(--text);
  min-width:0;
}
.user-chip:hover{background:#f3f7fb;color:var(--text)}
.user-chip>span{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;
  border-radius:50%;
  background:linear-gradient(145deg,#15968d,#267fb8);
  color:#fff;
  font-weight:850;
}
.user-chip div{min-width:0}
.user-chip b,.user-chip small{display:block;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-chip b{font-size:13px;line-height:1.2}
.user-chip small{font-size:11px;margin-top:2px}
.content{flex:1;min-width:0;padding:20px}
.footer{padding:20px;text-align:center;color:var(--muted);font-size:13px}

/* Core surfaces and layout */
.card{
  min-width:0;
  background:var(--surface);
  border:1px solid rgba(207,219,233,.8);
  border-radius:var(--radius);
  padding:17px;
  box-shadow:var(--shadow);
}
.card h2:last-child,.card h3:last-child{margin-bottom:0}
.grid{display:grid;gap:16px;min-width:0}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.full{grid-column:1/-1}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.section-head h1,.section-head h2,.section-head h3,.section-head p{margin-bottom:0}
.actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.actions form{margin:0}
.inline-form{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px}
.tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.empty{padding:22px!important;text-align:center;color:var(--muted)}

/* Buttons */
.btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 14px;
  border:1px solid var(--line-strong);
  border-radius:9px;
  background:#eaf0f7;
  color:var(--text);
  font-weight:750;
  line-height:1.1;
  text-align:center;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:none;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
}
.btn:hover{background:#dde8f3;color:var(--text);border-color:#b9c9db;transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{outline:3px solid rgba(53,120,201,.2);outline-offset:1px}
.btn-primary{background:linear-gradient(135deg,#3b83d3,#2e6db9);border-color:#2e6db9;color:#fff}
.btn-primary:hover{background:linear-gradient(135deg,#3378c4,#255fa7);border-color:#255fa7;color:#fff}
.btn-success{background:#10ac57;border-color:#0e9c4f;color:#fff}
.btn-success:hover{background:#0e994d;border-color:#0b8c45;color:#fff}
.btn-danger{background:#e24858;border-color:#d83b4c;color:#fff}
.btn-danger:hover{background:#d83749;border-color:#c93042;color:#fff}
.btn-warning{background:#e7a320;border-color:#d99616;color:#fff}
.btn-warning:hover{background:#d99415;border-color:#c48411;color:#fff}
.btn-sm{min-height:32px;padding:6px 10px;border-radius:8px;font-size:12px}
summary.btn{width:max-content;list-style:none}
summary.btn::-webkit-details-marker{display:none}

/* Forms */
form{margin:0}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.field{min-width:0}
.field label{display:block;margin-bottom:6px;color:#34475e;font-size:12px;font-weight:760}
.field label small{font-weight:500}
.field>small{display:block;margin-top:5px;font-size:11px}
input,select,textarea{
  width:100%;
  min-height:40px;
  padding:8px 11px;
  border:1px solid var(--line-strong);
  border-radius:9px;
  background:#fff;
  color:var(--text);
  outline:0;
  box-shadow:0 1px 2px rgba(20,38,61,.025);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
select{padding-right:32px;background-color:#fff}
textarea{min-height:94px;resize:vertical}
input::placeholder,textarea::placeholder{color:#99a6b5}
input:hover,select:hover,textarea:hover{border-color:#afbed0}
input:focus,select:focus,textarea:focus{border-color:#4d8dd3;box-shadow:0 0 0 3px rgba(53,120,201,.13)}
input:disabled,select:disabled,textarea:disabled,input[readonly]{background:#f1f4f8;color:#6f7e90;cursor:not-allowed}
input[type="checkbox"],input[type="radio"]{width:auto;min-height:0;padding:0;accent-color:var(--blue);box-shadow:none}
input[type="file"]{padding:6px 8px}
label:has(>input[type="checkbox"]),label:has(>input[type="radio"]){display:flex;align-items:center;gap:8px;cursor:pointer}
.check-row{display:flex!important;align-items:center;gap:9px;cursor:pointer}
.check-row input{width:auto!important;margin:0;accent-color:var(--blue)}
.filters{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.filters>input,.filters>select{width:auto;min-width:150px;flex:1 1 155px}
.filters>.btn,.filters>button{flex:0 0 auto}
.inline-form input,.inline-form select{width:auto;min-width:120px;min-height:32px;padding:5px 8px;font-size:12px}

/* Tables */
.table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  scrollbar-width:thin;
}
table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.table-wrap table{min-width:650px}
th,td{padding:11px 12px;text-align:left;vertical-align:middle;border-bottom:1px solid #e7edf4}
th{
  position:relative;
  background:#f7f9fc;
  color:#55667a;
  font-size:11px;
  font-weight:820;
  letter-spacing:.025em;
  text-transform:uppercase;
  white-space:nowrap;
}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fbfdff}
td b{color:var(--text)}
td .actions{min-width:max-content}
td form{display:inline-block}

/* Status badges */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  background:#edf2f7;
  color:#506176;
  font-size:11px;
  font-weight:820;
  line-height:1;
  text-transform:capitalize;
  white-space:nowrap;
}
.badge.active,.badge.paid,.badge.verified,.badge.approved,.badge.completed,.badge.complete,.badge.sent,.badge.released,.badge.disbursed,.badge.closed{background:var(--green-soft);color:#087b3c}
.badge.pending,.badge.partial,.badge.due,.badge.queued,.badge.requested,.badge.manager_approved,.badge.open,.badge.under_review{background:var(--orange-soft);color:#946100}
.badge.overdue,.badge.rejected,.badge.inactive,.badge.void,.badge.failed,.badge.cancelled,.badge.canceled,.badge.legal{background:var(--red-soft);color:#b22438}

/* Dashboard / KPI */
.kpi{
  min-height:102px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.kpi .label{color:var(--muted);font-size:12px;font-weight:760;margin-bottom:5px}
.kpi .value{color:var(--text);font-size:24px;font-weight:850;line-height:1.08;letter-spacing:-.4px}
.kpi .subvalue{margin-top:5px;color:var(--muted);font-size:12px;font-weight:650}
.bubble{
  width:48px;height:48px;flex:0 0 48px;
  display:grid;place-items:center;
  border-radius:14px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:22px;
  font-weight:850;
}
.kpi.orange .bubble{background:var(--orange-soft);color:var(--orange)}
.kpi.green .bubble{background:var(--green-soft);color:var(--green)}
.kpi.red .bubble{background:var(--red-soft);color:var(--red)}
.dash-card{width:100%;text-align:left;border:1px solid rgba(207,219,233,.8);cursor:pointer;color:inherit}
.dash-card:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(20,38,61,.11)}

/* Data lists, profile and utility blocks */
.statline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:34px;
  padding:8px 0;
  border-bottom:1px dashed #dbe4ee;
}
.statline:last-child{border-bottom:0}
.statline>span:first-child{color:#34485f}
.statline>b:last-child,.statline>span:last-child{text-align:right}
.profile{display:flex;align-items:center;gap:14px;min-width:0}
.profile img{width:76px;height:76px;object-fit:cover;border-radius:15px;border:1px solid var(--line);background:#fff}
.profile>div:last-child{min-width:0}
.profile h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick{width:17px!important;height:17px}

/* Alerts */
.alert{
  margin:0 0 14px;
  padding:11px 13px;
  border:1px solid #cbd8e7;
  border-radius:10px;
  background:#eef4fa;
  color:#314a65;
  font-weight:650;
  transition:opacity .35s ease,transform .35s ease;
}
.alert.success{border-color:#bae7ce;background:#e9f8f0;color:#08733a}
.alert.error{border-color:#f1c1c8;background:#fdecf0;color:#a92537}
.alert.fade{opacity:0;transform:translateY(-4px);pointer-events:none}

/* Dialogs */
dialog{
  color:var(--text);
  background:#fff;
}
dialog.dash-dialog{
  width:min(1000px,94vw);
  max-height:84vh;
  border:0;
  border-radius:18px;
  padding:0;
  box-shadow:0 30px 80px rgba(19,35,63,.34);
}
dialog.dash-dialog::backdrop{background:rgba(19,35,63,.53);backdrop-filter:blur(2px)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.dialog-head h3{margin:0}
.dialog-body{padding:18px;overflow:auto;max-height:70vh}

/* Receipts / public views */
.receipt{
  width:min(780px,100%);
  margin:0 auto;
  padding:28px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.receipt-head{text-align:center;padding-bottom:18px;border-bottom:2px solid #274e7a}
.receipt-head img{width:auto;max-width:230px;max-height:90px;object-fit:contain;margin-bottom:10px}
.receipt-head h1{margin-bottom:7px}
.receipt .total{margin:18px 0;padding:13px;border-radius:10px;background:#edf5ff;color:#173f6d;font-size:22px;font-weight:850;text-align:center}

/* Responsive behavior */
@media(max-width:1200px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .content{padding:17px}
}
@media(max-width:979px){
  .sidebar{transform:translateX(-100%);box-shadow:18px 0 45px rgba(0,0,0,.22)}
  body.sidebar-open .sidebar{transform:translateX(0)}
  .main-wrap{margin-left:0}
  .app-shell::after{content:"";position:fixed;inset:0;z-index:70;background:rgba(7,24,40,.42);opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.sidebar-open .app-shell::after{opacity:1;pointer-events:auto}
  body.sidebar-open{overflow:hidden}
  .topbar{padding-inline:14px}
  .content{padding:15px}
}
@media(max-width:760px){
  .grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr}
  .full{grid-column:auto}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head>.actions{width:100%}
  .section-head>.actions .btn{flex:1}
  .card{padding:14px;border-radius:13px}
  .top-actions{gap:6px}
  .portal-link{display:none}
  .user-chip div{display:none}
  .user-chip{padding:3px}
  .filters{align-items:stretch}
  .filters>input,.filters>select,.filters>.btn,.filters>button{width:100%;flex:1 1 100%}
  .actions{gap:6px}
  .table-wrap table{min-width:620px}
  .kpi{min-height:94px}
  .kpi .value{font-size:22px}
  .bubble{width:44px;height:44px;flex-basis:44px}
  .receipt{padding:19px;border-radius:0;border-left:0;border-right:0}
}
@media(max-width:520px){
  :root{--radius:12px}
  body{font-size:13px}
  .topbar{min-height:60px;padding:8px 10px}
  .topbar strong{font-size:14px}
  .content{padding:11px}
  .footer{padding:16px 10px;font-size:11px}
  .icon-btn{width:34px;height:34px;min-width:34px}
  .card{padding:12px}
  .btn{min-height:36px;padding:8px 11px}
  .btn-sm{min-height:31px;padding:6px 9px}
  .actions .btn{white-space:normal}
  .profile{align-items:flex-start}
  .profile img{width:62px;height:62px}
  .profile .bubble{width:62px!important;height:62px!important;flex-basis:62px!important}
  .statline{align-items:flex-start}
  .statline>b:last-child,.statline>span:last-child{max-width:58%;overflow-wrap:anywhere}
  dialog.dash-dialog{width:97vw;border-radius:13px}
  .dialog-head{padding:13px}
  .dialog-body{padding:12px}
}

/* Print */
@media print{
  body{background:#fff;color:#000}
  .sidebar,.topbar,.footer,.no-print,.share{display:none!important}
  .main-wrap{margin:0!important}
  .content{padding:0!important}
  .card,.receipt{box-shadow:none!important;border-color:#bbb!important}
  .receipt{max-width:none;border:0;padding:0}
  .table-wrap{overflow:visible;border-color:#bbb}
  table{font-size:11px}
  a{color:#000;text-decoration:none}
}

/* v2.0.3 typography and sidebar hierarchy refinement */
:root{
  --sidebar-width:246px;
  --sidebar-text:#d7e1ed;
  --sidebar-muted:#8298ae;
  --sidebar-line:rgba(255,255,255,.10);
}
body{
  font-family:"Manrope","Noto Sans Tamil",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:13.5px;
  letter-spacing:-.01em;
}
button,input,select,textarea{font-family:inherit}

.sidebar{
  background:#10263d;
  border-right:1px solid rgba(5,19,33,.55);
}
.brand{
  min-height:84px;
  padding:16px 16px;
  gap:12px;
  font-size:16px;
  font-weight:800;
  border-bottom:1px solid var(--sidebar-line);
}
.brand img{width:45px;height:45px;border-radius:12px;padding:4px}
.sidebar nav{padding:16px 12px 30px}
.sidebar nav .nav-dashboard{
  min-height:44px;
  margin:0 0 15px;
  padding:10px 13px;
  border-radius:11px;
  font-size:13.5px;
  font-weight:750;
}
.nav-group{
  margin:0 0 13px;
  padding:0 0 13px;
  border-radius:0;
  overflow:visible;
  border-bottom:1px solid var(--sidebar-line);
}
.nav-group:last-child{border-bottom:0;margin-bottom:0}
.nav-group-toggle{
  min-height:31px;
  padding:4px 8px 7px!important;
  border-radius:7px!important;
  color:#8fa4b9!important;
  font-size:10.5px!important;
  font-weight:800!important;
  letter-spacing:.085em;
  text-transform:uppercase;
}
.nav-group-toggle:hover,.nav-group.open>.nav-group-toggle{
  background:transparent!important;
  color:#b6c6d6!important;
}
.nav-group-icon{
  width:18px;
  flex-basis:18px;
  color:#70879d;
  font-size:12px;
}
.nav-chevron{font-size:14px;color:#71879d}
.nav-submenu{
  position:relative;
  padding-left:0;
  margin-top:2px;
}
.nav-group.open .nav-submenu{padding-bottom:0}
.nav-submenu::before{
  content:"";
  position:absolute;
  left:17px;
  top:4px;
  bottom:4px;
  width:1px;
  background:rgba(255,255,255,.13);
}
.sidebar .nav-submenu a{
  min-height:39px;
  margin:3px 0;
  padding:9px 10px 9px 39px;
  border-radius:9px;
  color:var(--sidebar-text);
  font-size:12.7px;
  font-weight:600;
  line-height:1.25;
}
.sidebar .nav-submenu a>span:first-child{
  position:absolute;
  left:8px;
  width:19px;
  color:#8298ad;
  font-size:12px;
}
.sidebar .nav-submenu a::before{
  left:15px;
  width:5px;
  height:5px;
  background:#667e95;
  box-shadow:0 0 0 3px #10263d;
}
.sidebar .nav-submenu a:hover{
  background:rgba(255,255,255,.065);
  color:#fff;
  transform:none;
}
.sidebar .nav-submenu a.active{
  background:#2f72bd;
  color:#fff;
  box-shadow:0 5px 14px rgba(0,0,0,.16);
}
.sidebar .nav-submenu a.active::before{background:#fff}
.sidebar .nav-submenu a.active>span:first-child{color:#fff}

.topbar{min-height:68px;padding:10px 22px}
.topbar strong{font-size:14.5px;font-weight:800}
.topbar small{font-size:11.5px}
.content{padding:22px 24px 26px}
.card{border-radius:14px}

@media (max-width:1100px){
  :root{--sidebar-width:238px}
}
@media (max-width:820px){
  .sidebar{width:264px}
  .content{padding:16px}
  .nav-group{margin-bottom:11px;padding-bottom:11px}
}
