@font-face {
    font-family: bootstrap-icons;
    src: url("../vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2"),
         url("../vendor/bootstrap-icons/fonts/bootstrap-icons.woff") format("woff");
    font-display: block;
}

.bi {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -.125em;
    fill: currentColor;
}

html, body { height: 100%; }

:root{
    --app-bg: #eef1ff;
    --app-surface: #ffffff;
    --app-surface-2: #f6f7ff;
    --app-border: rgba(15,23,42,.08);
    --app-shadow: 0 24px 60px rgba(15,23,42,.10);
    --app-radius: 18px;
    --app-shell-pad: 18px;
    --app-sidebar-bg: #283046;
    --app-sidebar-border: rgba(255,255,255,.08);
}

[data-bs-theme="dark"]{
    --app-bg: #0b1220;
    --app-surface: #0f172a;
    --app-surface-2: #111c33;
    --app-border: rgba(226,232,240,.10);
    --app-shadow: 0 24px 60px rgba(0,0,0,.40);
    --app-sidebar-bg: #161d31;
    --app-sidebar-border: rgba(226,232,240,.10);
}

.btn { border-radius: 14px; font-weight: 700; }
.btn-primary {
    box-shadow: 0 14px 28px rgba(var(--bs-primary-rgb), .18);
    background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,0));
    border-color: rgba(var(--bs-primary-rgb), .55);
}
.btn-light{
    background: rgba(var(--bs-primary-rgb), .10);
    border-color: rgba(var(--bs-primary-rgb), .24);
    color: rgba(15,23,42,.88);
}
.btn-light:hover{
    background: rgba(var(--bs-primary-rgb), .14);
    border-color: rgba(var(--bs-primary-rgb), .30);
    color: rgba(15,23,42,.92);
}
.btn-outline-primary{
    border-color: rgba(var(--bs-primary-rgb), .40);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus{
    background: rgba(var(--bs-primary-rgb), .10);
    border-color: rgba(var(--bs-primary-rgb), .55);
}
.dropdown-menu { border-radius: 14px; border-color: rgba(15,23,42,.08); box-shadow: 0 22px 50px rgba(15,23,42,.12); }

.form-control, .form-select, .input-group-text { border-radius: 14px; }
.form-control, .form-select { border-color: rgba(15,23,42,.10); }
.form-control:focus, .form-select:focus { border-color: rgba(var(--bs-primary-rgb), .45); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18); }
.input-group-text { background: #fff; border-color: rgba(15,23,42,.10); }

.app-body {
    background: radial-gradient(1200px 600px at 20% 0%, rgba(var(--bs-primary-rgb), .10), transparent 55%),
                radial-gradient(900px 500px at 80% 10%, rgba(99,102,241,.08), transparent 55%),
                var(--app-bg);
    color: #0f172a;
}

[data-bs-theme="dark"] .app-body{
    background: radial-gradient(1200px 600px at 20% 0%, rgba(var(--bs-primary-rgb), .18), transparent 55%),
                radial-gradient(900px 500px at 80% 10%, rgba(99,102,241,.14), transparent 55%),
                var(--app-bg);
    color: #e2e8f0;
}

[data-bs-theme="dark"]{
    color-scheme: dark;
}

[data-bs-theme="light"]{
    color-scheme: light;
}

[data-bs-theme="dark"] .btn-light{
    background: rgba(255,255,255,.06);
    border-color: rgba(226,232,240,.12);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .btn-light:hover{
    background: rgba(255,255,255,.08);
    border-color: rgba(226,232,240,.16);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .dropdown-menu{
    border-color: rgba(226,232,240,.10);
    box-shadow: 0 22px 50px rgba(0,0,0,.40);
    --bs-dropdown-bg: var(--app-surface);
    --bs-dropdown-color: #e2e8f0;
    --bs-dropdown-link-color: #e2e8f0;
    --bs-dropdown-link-hover-color: #e2e8f0;
    --bs-dropdown-link-hover-bg: rgba(226,232,240,.06);
    --bs-dropdown-link-active-color: #e2e8f0;
    --bs-dropdown-link-active-bg: rgba(var(--bs-primary-rgb), .22);
}

[data-bs-theme="dark"] .dropdown-header{
    color: rgba(226,232,240,.72);
}

[data-bs-theme="dark"] .dropdown-item-text{
    color: rgba(226,232,240,.82);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text{
    background-color: rgba(255,255,255,.03);
    border-color: rgba(226,232,240,.12);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .form-control::placeholder{
    color: rgba(226,232,240,.55);
}

[data-bs-theme="dark"] select option,
[data-bs-theme="dark"] select optgroup{
    background-color: var(--app-surface);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .dropdown-menu{
    background-color: var(--app-surface);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer{
    border-color: rgba(226,232,240,.10);
}

[data-bs-theme="dark"] .dropdown-item{
    color: #e2e8f0;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus{
    background: rgba(226,232,240,.06);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .dropdown-divider{
    border-top-color: rgba(226,232,240,.10);
}

[data-bs-theme="dark"] .alert{
    border-color: rgba(226,232,240,.10);
}

[data-bs-theme="dark"] .text-muted{
    color: rgba(226,232,240,.62) !important;
}

[data-bs-theme="dark"] .nav-tabs{
    border-bottom-color: rgba(226,232,240,.12);
}

[data-bs-theme="dark"] .nav-tabs .nav-link{
    color: rgba(226,232,240,.80);
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover{
    border-color: rgba(226,232,240,.12) rgba(226,232,240,.12) rgba(226,232,240,.12);
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active{
    background-color: rgba(255,255,255,.02);
    border-color: rgba(226,232,240,.12) rgba(226,232,240,.12) transparent;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .list-group-item{
    background-color: rgba(255,255,255,.02);
    border-color: rgba(226,232,240,.10);
    color: #e2e8f0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    gap: 18px;
    padding: var(--app-shell-pad);
}

.app-sidebar {
    width: 260px;
    background: var(--app-sidebar-bg);
    color: rgba(226,232,240,.92);
    padding: 18px 14px;
    position: sticky;
    top: var(--app-shell-pad);
    height: calc(100vh - (var(--app-shell-pad) * 2));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(226,232,240,.28) transparent;
    border-radius: 22px;
    border: 1px solid var(--app-sidebar-border);
    box-shadow: 0 22px 50px rgba(15,23,42,.14);
}

.app-sidebar::-webkit-scrollbar {
    width: 10px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(226,232,240,.22);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.app-sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(226,232,240,.32);
}

.app-main {
    overscroll-behavior: contain;
}

.app-main::-webkit-scrollbar {
    width: 10px;
}

.app-main::-webkit-scrollbar-track {
    background: transparent;
}

.app-main::-webkit-scrollbar-thumb {
    background-color: rgba(15,23,42,.18);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.app-main:hover::-webkit-scrollbar-thumb {
    background-color: rgba(15,23,42,.28);
}

.app-sidebar__brand {
    padding: 6px 8px 14px 8px;
}

.app-sidebar__brand::after {
    content: "";
    display: block;
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.app-sidebar__menu-label{
    margin-top: 10px;
    padding: 0 16px;
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(255,255,255,.70);
    font-weight: 900;
}

.app-brand__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: rgba(255,255,255,.95);
    border-radius: 10px;
    padding: 6px;
}

.app-brand__name {
    font-weight: 700;
    line-height: 1.1;
    font-size: 15px;
    color: #fff;
}

.app-brand__sub {
    font-size: 12px;
    opacity: .9;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px 6px 8px;
}

.app-nav__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.app-nav__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255,255,255,.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
}

.app-nav__icon .bi {
    width: 18px;
    height: 18px;
}

.app-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    color: rgba(255,255,255,.90);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.app-nav__item:hover { background: rgba(255,255,255,.16); color: #fff; }
.app-nav__item.is-active {
    background: rgba(var(--bs-primary-rgb), .18);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(0,0,0,.14);
}
.app-nav__item.is-active .app-nav__icon {
    background: rgba(var(--bs-primary-rgb), .28);
    color: #fff;
}
.app-nav__item.is-active .app-nav__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.app-nav__item.is-match { outline: 2px solid rgba(255,255,255,.22); outline-offset: 0; }
.app-nav__item:focus-visible { outline: 2px solid rgba(255,255,255,.55); outline-offset: 2px; }

.app-nav__section-label {
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    font-weight: 800;
}

.app-nav__group {
    display: block;
}

.app-nav__toggle {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    list-style: none;
}

.app-nav__toggle::-webkit-details-marker { display: none; }

.app-nav__toggle-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    color: rgba(255,255,255,.92);
    font-weight: 800;
    font-size: 14px;
    position: relative;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.app-nav__toggle-inner:hover { background: rgba(255,255,255,.16); color: #fff; }
.app-nav__toggle-inner.is-active {
    background: rgba(var(--bs-primary-rgb), .18);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0,0,0,.16);
}
.app-nav__toggle-inner.is-active .app-nav__icon {
    background: rgba(var(--bs-primary-rgb), .28);
    color: #fff;
}
.app-nav__toggle:focus-visible .app-nav__toggle-inner { outline: 2px solid rgba(255,255,255,.55); outline-offset: 2px; }

.app-nav__caret {
    margin-left: auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .75;
}

.app-nav__caret::before{
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,.75);
    border-bottom: 2px solid rgba(255,255,255,.75);
    transform: rotate(45deg);
    transition: transform .16s ease, opacity .16s ease;
    opacity: .9;
}

details.app-nav__group[open] .app-nav__caret::before{
    transform: rotate(-135deg);
}

.app-nav__sub {
    margin: 6px 0 8px 0;
    padding-left: 12px;
    border-left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-nav__sub .app-nav__item {
    padding: 7px 12px;
    border-radius: 14px;
    font-weight: 700;
}

.app-nav__sub .app-nav__icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}
.app-nav__sub .app-nav__icon .bi {
    width: 16px;
    height: 16px;
}

[data-bs-theme="light"] .app-sidebar{
    background: var(--app-surface);
    border-color: var(--app-border);
    color: rgba(15,23,42,.86);
    box-shadow: 0 22px 50px rgba(15,23,42,.10);
    scrollbar-color: rgba(15,23,42,.20) transparent;
}

[data-bs-theme="light"] .app-sidebar::-webkit-scrollbar-thumb{
    background-color: rgba(15,23,42,.18);
}

[data-bs-theme="light"] .app-sidebar:hover::-webkit-scrollbar-thumb{
    background-color: rgba(15,23,42,.28);
}

[data-bs-theme="light"] .app-sidebar__brand::after{
    border-top-color: rgba(15,23,42,.10);
}

[data-bs-theme="light"] .app-sidebar__menu-label,
[data-bs-theme="light"] .app-nav__section-label{
    color: rgba(15,23,42,.55);
}

[data-bs-theme="light"] .app-brand__name{
    color: #0f172a;
}

[data-bs-theme="light"] .app-nav__icon{
    background: rgba(15,23,42,.06);
}

[data-bs-theme="light"] .app-nav__item,
[data-bs-theme="light"] .app-nav__toggle-inner{
    color: rgba(15,23,42,.82);
}

[data-bs-theme="light"] .app-nav__item:hover,
[data-bs-theme="light"] .app-nav__toggle-inner:hover{
    background: rgba(15,23,42,.06);
    color: #0f172a;
}

[data-bs-theme="light"] .app-nav__item.is-active,
[data-bs-theme="light"] .app-nav__toggle-inner.is-active{
    background: rgba(var(--bs-primary-rgb), .12);
    color: #0f172a;
    box-shadow: 0 16px 34px rgba(15,23,42,.12);
}

[data-bs-theme="light"] .app-nav__item.is-active .app-nav__icon,
[data-bs-theme="light"] .app-nav__toggle-inner.is-active .app-nav__icon{
    background: rgba(var(--bs-primary-rgb), .16);
    color: var(--bs-primary);
}

[data-bs-theme="light"] .app-nav__caret::before{
    border-right-color: rgba(15,23,42,.55);
    border-bottom-color: rgba(15,23,42,.55);
}

[data-bs-theme="light"] .app-nav__item.is-match{
    outline-color: rgba(15,23,42,.18);
}

[data-bs-theme="light"] .app-nav__item:focus-visible{
    outline-color: rgba(var(--bs-primary-rgb), .55);
}

[data-bs-theme="light"] .app-nav__toggle:focus-visible .app-nav__toggle-inner{
    outline-color: rgba(var(--bs-primary-rgb), .55);
}

.app-body .fc .fc-toolbar-title{
    font-weight: 900;
    letter-spacing: .2px;
}

.app-body .fc .fc-button{
    border-radius: 12px;
    font-weight: 800;
    border-color: rgba(var(--bs-primary-rgb), .25);
    box-shadow: none;
}

.app-body .fc .fc-button-primary{
    background-color: rgba(var(--bs-primary-rgb), .10);
    color: #0f172a;
}

.app-body .fc .fc-button-primary:hover{
    background-color: rgba(var(--bs-primary-rgb), .16);
    color: #0f172a;
}

.app-body .fc .fc-button-primary:focus{
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18);
}

.app-body .fc .fc-button-primary:not(:disabled).fc-button-active,
.app-body .fc .fc-button-primary:not(:disabled):active{
    background-color: rgba(var(--bs-primary-rgb), .22);
    color: #0f172a;
}

[data-bs-theme="dark"] .app-body .fc .fc-button-primary{
    background-color: rgba(255,255,255,.06);
    border-color: rgba(226,232,240,.14);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .app-body .fc .fc-button-primary:hover{
    background-color: rgba(255,255,255,.08);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .app-body .fc .fc-button-primary:not(:disabled).fc-button-active,
[data-bs-theme="dark"] .app-body .fc .fc-button-primary:not(:disabled):active{
    background-color: rgba(var(--bs-primary-rgb), .24);
    border-color: rgba(var(--bs-primary-rgb), .30);
    color: #e2e8f0;
}

.app-dt-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.app-dt-actions__label{
    margin-right: auto;
    font-weight: 900;
    opacity: .85;
}

.app-export-btn{
    border-radius: 999px;
    font-weight: 900;
    padding: 6px 12px;
    border: 1px solid transparent;
    box-shadow: none;
}

.app-export-btn--excel{
    background: rgba(34,197,94,.14);
    border-color: rgba(34,197,94,.30);
    color: rgb(21,128,61);
}
.app-export-btn--csv{
    background: rgba(14,165,233,.14);
    border-color: rgba(14,165,233,.30);
    color: rgb(3,105,161);
}
.app-export-btn--pdf{
    background: rgba(239,68,68,.14);
    border-color: rgba(239,68,68,.30);
    color: rgb(185,28,28);
}
.app-export-btn--print{
    background: rgba(100,116,139,.14);
    border-color: rgba(100,116,139,.26);
    color: rgb(51,65,85);
}

[data-bs-theme="dark"] .app-export-btn--excel{
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.22);
    color: rgb(134,239,172);
}
[data-bs-theme="dark"] .app-export-btn--csv{
    background: rgba(14,165,233,.12);
    border-color: rgba(14,165,233,.22);
    color: rgb(125,211,252);
}
[data-bs-theme="dark"] .app-export-btn--pdf{
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.22);
    color: rgb(252,165,165);
}
[data-bs-theme="dark"] .app-export-btn--print{
    background: rgba(226,232,240,.08);
    border-color: rgba(226,232,240,.16);
    color: rgba(226,232,240,.92);
}

.app-export-btn:hover{
    filter: saturate(1.05) brightness(0.98);
}

.app-action-btn{
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(99,102,241,.08);
    color: rgba(15,23,42,.86);
}

.app-action-btn:hover{
    background: rgba(99,102,241,.12);
    color: rgba(15,23,42,.92);
}

.app-action-btn--view{
    background: rgba(14,165,233,.14);
    border-color: rgba(14,165,233,.30);
    color: rgb(3,105,161);
}
.app-action-btn--edit{
    background: rgba(var(--bs-primary-rgb), .14);
    border-color: rgba(var(--bs-primary-rgb), .30);
    color: var(--bs-primary);
}
.app-action-btn--delete{
    background: rgba(239,68,68,.14);
    border-color: rgba(239,68,68,.30);
    color: rgb(185,28,28);
}
.app-action-btn--download{
    background: rgba(34,197,94,.14);
    border-color: rgba(34,197,94,.30);
    color: rgb(21,128,61);
}

[data-bs-theme="dark"] .app-action-btn{
    border-color: rgba(226,232,240,.12);
    background: rgba(255,255,255,.06);
    color: rgba(226,232,240,.92);
}
[data-bs-theme="dark"] .app-action-btn:hover{
    background: rgba(255,255,255,.08);
    color: rgba(226,232,240,.95);
}
[data-bs-theme="dark"] .app-action-btn--view{
    background: rgba(14,165,233,.12);
    border-color: rgba(14,165,233,.22);
    color: rgb(125,211,252);
}
[data-bs-theme="dark"] .app-action-btn--edit{
    background: rgba(var(--bs-primary-rgb), .18);
    border-color: rgba(var(--bs-primary-rgb), .30);
    color: rgba(226,232,240,.95);
}
[data-bs-theme="dark"] .app-action-btn--delete{
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.22);
    color: rgb(252,165,165);
}
[data-bs-theme="dark"] .app-action-btn--download{
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.22);
    color: rgb(134,239,172);
}

.app-main {
    flex: 1;
    min-width: 0;
    background: transparent;
}

.app-topbar {
    display: grid;
    grid-template-columns: 1fr 0 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--app-surface);
    color: inherit;
    position: sticky;
    top: var(--app-shell-pad);
    z-index: 10;
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(15,23,42,.08);
    border: 1px solid var(--app-border);
}

.app-topbar__left { padding-left: 6px; }
.app-topbar__right { justify-self: end; }

.app-topbar__title { font-weight: 900; font-size: 18px; }

.app-topbar__left .btn { border-radius: 14px; }
.app-topbar .btn-light { background: var(--app-surface-2); border-color: var(--app-border); }
.app-topbar .btn-light:hover { background: var(--app-surface-2); border-color: rgba(15,23,42,.14); }
.app-topbar .dropdown-toggle::after { opacity: .9; }

.app-search .input-group-text {
    background: #fff;
    border-right: 0;
}

.app-search input {
    border-left: 0;
}

.app-search .input-group-text,
.app-search input {
    border-radius: 999px;
}

.app-search .input-group-text { padding-left: 16px; }
.app-search input { padding-right: 16px; }

.app-icon-btn {
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(15,23,42,.16);
}

.app-notif-btn {
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
}

.app-notif-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-notif-icon .bi {
    width: 18px;
    height: 18px;
}

.app-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), .15);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.app-content {
    background: transparent;
    padding: 10px 4px 18px 4px;
}

.app-page-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.app-page-header__meta{ color: #94a3b8; font-size: 12px; font-weight: 700; }

.app-page-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 767.98px){
    .app-page-header{ flex-direction: column; align-items: stretch; }
    .app-page-actions{ justify-content: flex-start; }
}

.app-card {
    border: 0;
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    border: 1px solid var(--app-border);
}

.app-card--soft { background: #fff; }

.app-card__label { font-size: 12px; color: #64748b; font-weight: 700; }
.app-card__value { font-size: 28px; font-weight: 900; margin-top: 2px; }
.app-card__sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.app-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(var(--bs-primary-rgb), .15);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.app-panel {
    border: 0;
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    border: 1px solid var(--app-border);
}

.app-panel__title { font-weight: 800; font-size: 16px; }
.app-panel__sub { color: #94a3b8; font-size: 12px; }

.app-chart-wrap {
    background: var(--app-surface-2);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid var(--app-border);
}

.app-color-swatch {
    width: 38px;
    height: 38px;
    display: inline-block;
    border-radius: 6px;
    border: 1px solid rgba(15,23,42,.08);
}

.app-auth {
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(var(--bs-primary-rgb), .16), transparent 55%),
                radial-gradient(900px 500px at 80% 10%, rgba(99,102,241,.12), transparent 55%),
                var(--app-bg);
}

.app-auth__shell{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.app-auth__card{
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 0;
    background: var(--app-surface);
    box-shadow: none;
    overflow: hidden;
    border: 1px solid var(--app-border);
    color: #0f172a;
}

.app-auth__brand{
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,0)) , var(--app-primary);
    color: #fff;
    padding: 26px;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

[data-bs-theme="dark"] .app-auth__card{
    color: #e2e8f0;
}

[data-bs-theme="dark"] .app-auth__brand{
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), .14), rgba(0,0,0,0)) , var(--app-sidebar-bg);
    color: #e2e8f0;
}

.app-auth__brand-inner{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.app-auth__logo{
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.app-auth__logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-auth__app{ font-size: 18px; font-weight: 900; line-height: 1.1; }
.app-auth__studio{ opacity: .9; font-weight: 700; }
.app-auth__tagline{ margin-top: auto; font-weight: 800; opacity: .92; }

.app-auth__form-brand{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.app-auth__form-logo{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--app-surface-2);
    border: 1px solid var(--app-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.app-auth__form-logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-auth__form-app{ font-size: 16px; font-weight: 900; line-height: 1.1; color: inherit; }
.app-auth__form-studio{ font-size: 13px; font-weight: 800; opacity: .75; }

.app-auth__news{
    margin-top: 0;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

[data-bs-theme="dark"] .app-auth__news{
    background: rgba(255,255,255,.04);
    border-color: rgba(226,232,240,.10);
}

.app-auth__news-title{
    font-weight: 900;
    letter-spacing: .2px;
}

.app-auth__news-meta{
    opacity: .88;
    font-size: 12px;
    font-weight: 700;
}

.app-auth__news-body{
    margin-top: 8px;
    overflow: auto;
    padding-right: 6px;
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.app-auth__news-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.app-auth__news-item{
    padding: 10px 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
}

[data-bs-theme="dark"] .app-auth__news-item{
    background: rgba(255,255,255,.03);
    border-color: rgba(226,232,240,.10);
}

.app-auth__news-link{
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.app-auth__news-link:hover{
    text-decoration: underline;
    color: inherit;
}

.app-auth__news-item-meta{
    margin-top: 6px;
    opacity: .9;
    font-size: 12px;
    font-weight: 700;
}

.app-auth__news-empty{
    opacity: .9;
    font-size: 13px;
    font-weight: 700;
}

.app-auth__form{ padding: 26px; display:flex; align-items:center; }
.app-auth__form-inner{ width: 100%; max-width: 380px; margin: 0 auto; }

.app-input{ border-radius: 14px; padding: 12px 14px; }
.app-btn-primary{ border-radius: 14px; padding: 12px 14px; font-weight: 800; }

.card, .table-responsive, .alert { border-radius: var(--app-radius); }
.card{
    border-color: var(--app-border);
    background: var(--app-surface);
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.card-header,
.card-footer{
    background: transparent;
    border-color: var(--app-border);
}

.alert{
    border-color: var(--app-border);
}
.table {
    --bs-table-bg: var(--app-surface);
    --bs-table-striped-bg: rgba(15,23,42,.03);
    --bs-table-hover-bg: rgba(15,23,42,.04);
    background: var(--app-surface);
    border-radius: var(--app-radius);
    overflow: hidden;
}
.table thead th{
    border-bottom-color: var(--app-border);
    font-weight: 900;
    color: inherit;
    background: rgba(var(--bs-primary-rgb), .04);
}
.table td, .table th { vertical-align: middle; }

[data-bs-theme="dark"] .table{
    --bs-table-striped-bg: rgba(226,232,240,.04);
    --bs-table-hover-bg: rgba(226,232,240,.06);
}

[data-bs-theme="dark"] .table thead th{
    background: rgba(255,255,255,.02);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input{
    border-radius: 999px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button{
    border-radius: 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current{
    background: rgba(var(--bs-primary-rgb), .12) !important;
    border-color: rgba(var(--bs-primary-rgb), .28) !important;
    color: var(--bs-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
    background: rgba(var(--bs-primary-rgb), .10) !important;
    border-color: rgba(var(--bs-primary-rgb), .22) !important;
    color: var(--bs-primary) !important;
}

@media (max-width: 991.98px) {
    :root { --app-shell-pad: 10px; }
    .app-shell { padding: var(--app-shell-pad); gap: 10px; }
    .app-sidebar { border-radius: 18px; height: auto; position: static; }
    .app-auth__card { grid-template-columns: 1fr; }
    .app-auth__brand { padding: 18px; }
    .app-auth__form { padding: 18px; }
    .app-auth__news-body{ max-height: 44vh; }
    .app-auth__form-brand{ justify-content: flex-start; }
    .app-auth__brand{ overflow: visible; }
}

.app-offcanvas-sidebar {
    --bs-offcanvas-width: 300px;
}

.app-offcanvas-sidebar .offcanvas-header {
    padding: 16px 14px;
    background: var(--app-sidebar-bg);
    color: rgba(226,232,240,.92);
    border-bottom: 1px solid var(--app-sidebar-border);
}

.app-offcanvas-sidebar .offcanvas-body {
    padding: 0;
    background: var(--app-sidebar-bg);
}

.app-offcanvas-sidebar .app-sidebar {
    background: transparent;
}

@media (max-width: 991.98px) {
    .app-topbar { grid-template-columns: 1fr; }
    .app-topbar__center { order: 3; }
    .app-topbar__right { justify-content: flex-start; }
}
