/* Lmnir — luminous workspace */
:root:not([data-bs-theme="dark"]){--primary:#7f0864;--primary-dark:#64054f;--primary-rgb:127,8,100;--primary-soft:#f7e7f7;--ink:#382036;--ink-soft:#5d415c;--text-muted:#7a657b;--bg-soft:#f9f7fa;--border-soft:#ece5ee;--radius:18px;--radius-sm:10px;--shadow-sm:0 4px 24px #254e3805}
:root:not([data-bs-theme="dark"]) .sidebar{background:#fff;color:var(--ink);border-inline-end:1px solid var(--border-soft);scrollbar-color:#e5d9e8 transparent}
:root:not([data-bs-theme="dark"]) .sidebar-brand{color:var(--ink);border-color:var(--border-soft)}
.sidebar-brand>i{background:linear-gradient(135deg,#ebd6f8,#f2c7e9);color:#740861;border-radius:13px}
:root:not([data-bs-theme="dark"]) .sidebar-nav .nav-link{color:#69526b;border-left-color:transparent;border-radius:11px}
:root:not([data-bs-theme="dark"]) .sidebar-nav .nav-link:hover{background:#f7f1f8;color:#740861}
:root:not([data-bs-theme="dark"]) .sidebar-nav .nav-link.active{background:#f5e7f7;color:#6c085c;border-left-color:transparent;font-weight:650}
:root:not([data-bs-theme="dark"]) .sidebar-nav .nav-link.active i{color:#7f0864}
:root:not([data-bs-theme="dark"]) .sidebar-section-label{color:#847286}
:root:not([data-bs-theme="dark"]) .sidebar-collapse-toggle{color:#69526b;background:#f7f1f8}
:root:not([data-bs-theme="dark"]) .topbar{background:#ffffffed;backdrop-filter:blur(14px)}
.content{padding:2rem clamp(1rem,3vw,3rem)}
.card-panel,.kpi-card{border-radius:18px}
.btn,.form-control,.form-select{border-radius:10px}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;position:relative;isolation:isolate;overflow:hidden;padding:2rem 2.25rem;margin-bottom:1.5rem;border-radius:22px;background:linear-gradient(115deg,#f3edf9,#f7e4f7 58%,#e9effa);border:1px solid #e8dcee}
.dashboard-welcome h2{font-size:clamp(1.65rem,2.5vw,2.4rem);letter-spacing:-.055em;line-height:1.2;margin:0 0 .65rem;color:#4a214a}
.dashboard-welcome p{margin:0;color:#6c526f;max-width:36rem;font-size:.9rem}
.dashboard-welcome .page-eyebrow{color:#733974}
.dashboard-art{flex:0 0 110px;width:110px;height:110px;display:grid;place-items:center;border-radius:30px;background:linear-gradient(145deg,#f3fbff,#ffffff80);border:1px solid #fff;box-shadow:0 12px 35px #489b6720;transform:rotate(-8deg)}
.dashboard-art i{font-size:2.9rem;color:#8b278a;transform:rotate(8deg)}
.dashboard-welcome::after{content:"";position:absolute;z-index:-1;width:270px;height:270px;border:1px solid #9ac7a83b;border-radius:50%;inset-inline-end:-90px;top:-110px;box-shadow:0 0 0 32px #b9e0bb1a,0 0 0 64px #b9e0bb14}
.dashboard-stats .kpi-card{height:100%;flex-direction:column;gap:1.1rem;padding:1.5rem}
.dashboard-stats .kpi-value{font-size:2rem;line-height:1.15;overflow-wrap:anywhere}
.dashboard-stats .kpi-label{margin-top:.5rem}
.dashboard-stats .kpi-icon{width:42px;height:42px;border-radius:13px}
:root:not([data-bs-theme="dark"]) .dashboard-stats>div:nth-child(2) .kpi-icon{background:#fff2ed;color:#af8362}
.dashboard-actions .btn{padding:.75rem 1rem}
:root:not([data-bs-theme="dark"]) .dashboard-actions .btn-success{background:#e7f7ee;border-color:#d5edde;color:#176c47}
:root:not([data-bs-theme="dark"]) .dashboard-actions .btn-danger{background:#fff0eb;border-color:#f8e1d8;color:#ad503b}
:root:not([data-bs-theme="dark"]) .dashboard-actions .btn-success:hover{background:#cfeddb}
:root:not([data-bs-theme="dark"]) .dashboard-actions .btn-danger:hover{background:#fbddd2}
.login-story{background:linear-gradient(140deg,#eeecf9,#f3daf3 65%,#dfeaf8);color:#4a214a}
.login-story .login-brand,.login-story h1{color:#4a214a}
.login-story p{color:#6c526f}
.login-story::after{border-color:#cdb5d9;box-shadow:0 0 0 60px #ffffff20,0 0 0 120px #ffffff20}
.login-modules span{background:#ffffff70;border-color:#e2d0e7;color:#643f69;border-radius:30px}
.login-brand i{background:#fff;color:#7f0864;border-radius:14px}
.login-page{background:#fbfbfd}
.login-card{background:#fff;border:1px solid var(--border-soft);border-radius:24px;padding:2rem;box-shadow:0 16px 60px #2a624908;max-width:450px}
[data-bs-theme="dark"] .dashboard-welcome{background:linear-gradient(115deg,#391938,#3b203b);border-color:#4f2d50}
[data-bs-theme="dark"] .dashboard-welcome h2{color:#eee3f4}
[data-bs-theme="dark"] .dashboard-welcome p,[data-bs-theme="dark"] .dashboard-welcome .page-eyebrow{color:#cdb5d3}
@media(max-width:575.98px){.content{padding:1rem}.dashboard-welcome{padding:1.4rem}.dashboard-art{display:none}.dashboard-stats .kpi-card{padding:1rem;gap:.8rem}.dashboard-stats .kpi-value{font-size:1.7rem}.dashboard-actions .btn{flex:1 1 40%}.login-card{padding:1.5rem}}

/* Shared container structure: fields wrap according to available content width. */
.content{width:100%;min-width:0}
.content .row>*,.card-panel,.kpi-body{min-width:0}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:1rem;align-items:start}
.filter-grid>.filter-field{width:auto;min-width:0}
.filter-grid .form-label{display:block}
.filter-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.25rem}
.filter-actions .flex-grow-1{flex-grow:0!important}
.panel-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem}
.panel-heading>*{min-width:0;overflow-wrap:anywhere}
.kpi-body{max-width:100%}
.kpi-value,.kpi-label{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.topbar-title{min-width:0;overflow-wrap:anywhere}
.topbar{height:auto;min-height:var(--topbar-height);padding-block:.75rem}
.topbar-user{flex-shrink:0}
.user-name{max-width:12rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1199.98px){.kpi-card{flex-direction:column;align-items:flex-start;gap:.75rem}}
@media(max-width:575.98px){.filter-actions>.btn{flex:1 1 auto}.topbar{min-height:70px}.panel-heading .btn{white-space:normal}.kpi-card{padding:1rem}.kpi-value{font-size:1.5rem}}
