:root {
    --app-ink: #182033;
    --app-teal: #2563eb;
    --app-cyan: #0f766e;
    --app-amber: #f59e0b;
    --app-coral: #e11d48;
    --app-paper: #f5f7fb;
    --app-panel: #ffffff;
    --app-muted: #64748b;
    --app-border: #dbe4f0;
    --app-sidebar: #ffffff;
    --app-sidebar-soft: #eef4ff;
    --app-mint: #eaf1ff;
    --app-primary-deep: #1d4ed8;
    --app-rust: #7c3aed;
    --app-shadow: 0 16px 36px rgba(24, 32, 51, 0.10);
    --app-shadow-strong: 0 22px 52px rgba(24, 32, 51, 0.16);
    --app-focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

html {
    font-size: 16px;
}

body {
    background: var(--app-paper);
    color: var(--app-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
svg,
canvas,
video {
    max-width: 100%;
}

a {
    color: var(--app-teal);
    text-decoration: none;
}

a:hover {
    color: var(--app-cyan);
}

.min-h-screen {
    min-height: 100vh !important;
    min-height: 100svh !important;
}

.bg-slate-50 {
    background-color: #f8fafc !important;
}

.bg-white {
    background-color: #fff !important;
}

.text-slate-900 {
    color: var(--app-ink) !important;
}

.text-slate-500 {
    color: var(--app-muted) !important;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.flex {
    display: flex !important;
}

.grid {
    display: grid !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.items-center {
    align-items: center !important;
}

.items-end {
    align-items: flex-end !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.place-items-center {
    place-items: center !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.p-4 {
    padding: 1rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.m-0 {
    margin: 0 !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 0.75rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 1.25rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-5 {
    margin-bottom: 1.25rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.h-11,
.w-11 {
    width: 2.75rem !important;
    height: 2.75rem !important;
}

.h-14,
.w-14 {
    width: 3.5rem !important;
    height: 3.5rem !important;
}

.h-100 {
    height: 100% !important;
}

.rounded-lg {
    border-radius: 8px !important;
}

.border {
    border: 1px solid var(--app-border) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.border-slate-200,
.border-slate-300 {
    border-color: var(--app-border) !important;
}

.shadow {
    box-shadow: var(--app-shadow) !important;
}

.object-contain {
    object-fit: contain !important;
}

.text-center {
    text-align: center !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.font-semibold {
    font-weight: 700 !important;
}

.font-bold {
    font-weight: 800 !important;
}

.font-black {
    font-weight: 950 !important;
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row !important;
    }

    .md\:items-end {
        align-items: flex-end !important;
    }

    .md\:justify-between {
        justify-content: space-between !important;
    }

    .md\:text-3xl {
        font-size: 1.875rem !important;
    }
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    color: var(--app-ink) !important;
    font-family: inherit;
    font-weight: 900 !important;
    line-height: 1.15;
}

h1,
.h1 {
    font-size: 2rem;
}

h2,
.h2 {
    font-size: 1.65rem;
}

h3,
.h3 {
    font-size: 1.35rem;
}

h4,
.h4 {
    font-size: 1.08rem;
}

h5,
.h5,
h6,
.h6 {
    font-size: 0.98rem;
}

.row > *,
.card,
.card-body,
.card-header,
.media-body,
.dropdown-menu,
.input-group {
    min-width: 0;
}

.app-shell {
    background:
        linear-gradient(180deg, rgba(234, 241, 255, 0.92) 0, rgba(245, 247, 251, 0) 300px),
        var(--app-paper);
}

#main-wrapper,
#main-wrapper.show {
    opacity: 1 !important;
}

.nav-header {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 1020;
    display: flex;
    width: 280px;
    height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--app-sidebar);
    border-right: 1px solid var(--app-border);
    box-shadow: 12px 0 34px rgba(24, 32, 51, 0.06);
}

.brand-logo {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: var(--app-ink);
}

.brand-logo:hover {
    color: var(--app-teal);
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--app-teal);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.brand-mark img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title strong {
    overflow: hidden;
    color: var(--app-ink);
    font-size: 1.12rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-title small {
    margin-top: 4px;
    color: var(--app-rust);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-control {
    display: none;
}

.sidebar-menu-toggle {
    display: inline-flex;
    min-width: 84px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-teal) !important;
    color: #fff !important;
    cursor: pointer;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.sidebar-menu-toggle i {
    color: currentColor !important;
    font-size: 1.45rem;
    line-height: 1;
}

.sidebar-menu-toggle .menu-icon-close {
    display: none;
}

.sidebar-menu-toggle.is-active {
    background: var(--app-coral) !important;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.22);
}

.sidebar-menu-toggle.is-active .menu-icon-open {
    display: none;
}

.sidebar-menu-toggle.is-active .menu-icon-close {
    display: inline-block;
}

.sidebar-menu-toggle .menu-label {
    color: currentColor;
    font-size: 0.82rem;
    font-weight: 950;
}

.header-left {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.header-right .search-area {
    display: none !important;
}

.mobile-profile {
    display: none;
}

.mobile-profile .nav-link {
    display: inline-flex;
    padding: 0;
}

.mobile-profile .dropdown-menu {
    left: auto !important;
    right: 0 !important;
    margin-top: 10px;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 280px;
    z-index: 1010;
    min-height: 82px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--app-border) !important;
    box-shadow: 0 12px 28px rgba(24, 32, 51, 0.06);
    backdrop-filter: blur(14px);
}

.header .header-content,
.header .navbar,
.header .collapse {
    min-height: 82px;
}

.dashboard_bar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    color: var(--app-ink);
    font-size: 1.12rem;
    font-weight: 950;
}

.dashboard_bar span,
.dashboard_bar small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard_bar small {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.header-right {
    align-items: center;
    gap: 12px;
}

.search-area {
    min-width: 280px;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
}

.search-area .form-control,
.search-area .input-group-text {
    height: 44px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.search-area .form-control {
    padding-left: 16px;
}

.search-area .input-group-text {
    color: var(--app-teal);
}

.user-initials {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--app-teal);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.dlabnav {
    position: fixed;
    top: 82px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 280px;
    height: calc(100vh - 82px);
    overflow-y: auto;
    background: var(--app-sidebar);
    border-right: 1px solid var(--app-border);
    color: var(--app-ink);
}

.dlabnav-scroll {
    display: flex;
    min-height: calc(100vh - 82px);
    flex-direction: column;
    padding: 14px 14px 28px;
}

.sidebar-mobile-head {
    display: none;
}

.sidebar-close-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-sidebar-soft);
    color: var(--app-ink);
    cursor: pointer;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-panel {
    margin: 0 4px 18px;
    padding: 16px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.10)),
        #f8fbff;
}

.sidebar-panel-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--app-teal);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-panel strong,
.sidebar-panel small {
    display: block;
}

.sidebar-panel strong {
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 900;
}

.sidebar-panel small {
    margin-top: 4px;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.sidebar-kicker {
    margin: 0 10px 12px;
    color: var(--app-rust);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dlabnav .metismenu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.dlabnav .metismenu li {
    list-style: none;
}

.dlabnav .metismenu > li > a,
.dlabnav .metismenu ul a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #243044 !important;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
}

.dlabnav .metismenu > li > a::before,
.dlabnav .metismenu > li > a::after,
.dlabnav .metismenu ul::after,
.dlabnav .metismenu ul a::before,
.dlabnav .metismenu ul a::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    content: none !important;
    transform: none !important;
}

.dlabnav .metismenu > li > a i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 8px;
    border: 1px solid #d8e2f1;
    background: #f8fbff;
    color: #53657c;
    font-size: 1rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.dlabnav .metismenu > li > a:hover,
.dlabnav .metismenu > li.mm-active > a,
.dlabnav .metismenu ul a:hover {
    border-color: transparent !important;
    background: #f4f7ff !important;
    color: var(--app-primary-deep) !important;
}

.dlabnav .metismenu > li > a.app-active,
.dlabnav .metismenu > li > a.app-active-parent {
    border-color: transparent !important;
    border-left: 4px solid var(--app-teal) !important;
    background: transparent !important;
    color: var(--app-primary-deep) !important;
    box-shadow: none !important;
    border-radius: 0 8px 8px 0;
}

.dlabnav .metismenu > li > a:hover i,
.dlabnav .metismenu > li.mm-active > a i {
    border-color: transparent !important;
    background: #eaf1ff !important;
    color: var(--app-primary-deep) !important;
}

.dlabnav .metismenu > li > a.app-active i,
.dlabnav .metismenu > li > a.app-active-parent i {
    border-color: #c7d2fe !important;
    background: #f4f7ff !important;
    color: var(--app-teal) !important;
}

.dlabnav .metismenu ul {
    margin: 4px 0 6px 42px;
    padding: 4px 0 4px 10px;
    border-left: 2px solid #dbe4f0;
}

.dlabnav .metismenu > li:not(.submenu-open) > ul {
    display: none !important;
}

.dlabnav .metismenu > li.submenu-open > ul {
    display: block !important;
}

.dlabnav .metismenu > li > a .nav-chevron {
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    margin-left: auto;
    border: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-size: 0.78rem !important;
    transform-origin: center;
    transition: transform 0.18s ease;
}

.dlabnav .metismenu > li.submenu-open > a .nav-chevron {
    transform: rotate(180deg);
}

.dlabnav .metismenu ul a {
    min-height: 34px;
    gap: 8px;
    padding: 8px 10px;
    color: #64748b !important;
    font-size: 0.84rem;
    font-weight: 600;
}

.dlabnav .metismenu ul a.app-active {
    border-color: transparent;
    background: #f3efff !important;
    color: var(--app-rust) !important;
    font-weight: 900;
    box-shadow: inset 3px 0 0 var(--app-rust) !important;
}

.sidebar-actions {
    display: grid;
    gap: 8px;
    margin: auto 4px 0;
    padding-top: 18px;
}

.sidebar-actions a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd6fe;
    background: #fff;
    color: var(--app-rust);
    font-size: 0.86rem;
    font-weight: 900;
}

.sidebar-actions a:first-child {
    border-color: #bfdbfe;
    background: #eaf1ff;
    color: var(--app-primary-deep);
}

.sidebar-actions i {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    background: #f3efff;
    text-align: center;
}

.sidebar-actions a + a i {
    background: #eaf1ff;
    color: var(--app-primary-deep);
}

.sidebar-actions .sidebar-logout {
    border-color: #f3c8d3;
    background: #fff1f2;
    color: var(--app-coral);
}

.sidebar-actions .sidebar-logout i {
    background: #ffe4e6;
    color: var(--app-coral);
}

.content-body {
    min-height: calc(100vh - 82px);
    margin-left: 280px;
    padding-top: 82px;
    padding-bottom: 0;
}

.content-body > .container-fluid {
    width: 100%;
    max-width: min(1540px, 100%);
    padding: 28px;
}

.page-titles,
.breadcrumb {
    margin-bottom: 18px;
}

.app-page-kicker {
    color: var(--app-rust);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.app-count-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: var(--app-teal);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 900;
}

.card {
    overflow: hidden;
    border: 1px solid var(--app-border) !important;
    border-radius: 8px !important;
    background: var(--app-panel) !important;
    box-shadow: var(--app-shadow);
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 18px 20px !important;
    border-bottom: 1px solid var(--app-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.card-title {
    margin: 0;
    color: var(--app-ink) !important;
    font-size: 1.05rem;
    font-weight: 950;
}

.card-body {
    padding: 20px !important;
}

.widget-stat.card {
    min-height: 160px;
    color: #fff !important;
    border: 0 !important;
    box-shadow: var(--app-shadow-strong);
}

.widget-stat.card .card-body {
    height: 100%;
}

.widget-stat .media {
    display: flex;
    align-items: center;
    gap: 16px;
}

.widget-stat .media span.me-3 {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
}

.widget-stat .media-body p {
    margin-bottom: 6px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.widget-stat .media-body h3,
.widget-stat .media-body h4 {
    margin: 0;
    color: #fff !important;
    font-weight: 900;
}

.bg-primary,
.btn-primary {
    background: var(--app-teal) !important;
    color: #fff !important;
}

.bg-success,
.btn-success {
    background: var(--app-cyan) !important;
    color: #fff !important;
}

.bg-info,
.btn-info {
    background: var(--app-cyan) !important;
    color: #fff !important;
}

.bg-warning,
.btn-warning {
    background: var(--app-amber) !important;
    color: #111827 !important;
}

.bg-danger,
.btn-danger {
    background: var(--app-coral) !important;
    color: #fff !important;
}

.bg-secondary,
.btn-secondary {
    background: var(--app-rust) !important;
    color: #fff !important;
}

.bg-dark {
    background: var(--app-ink) !important;
}

.bg-light {
    background: #eaf1ff !important;
    color: var(--app-ink) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 42px;
    gap: 8px;
    padding: 9px 15px;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 950;
    line-height: 1.15;
    text-decoration: none !important;
    white-space: normal;
    box-shadow: none !important;
}

.btn-sm {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-light {
    background: #fff !important;
    color: var(--app-teal) !important;
}

.btn-link {
    color: var(--app-muted);
    cursor: pointer;
}

.dropdown-menu {
    padding: 8px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: var(--app-shadow);
}

.dropdown-item {
    border-radius: 8px;
    color: var(--app-ink);
    font-weight: 700;
}

.dropdown-item:hover {
    background: var(--app-mint);
    color: var(--app-teal);
}

.form-label,
label {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 950;
}

.form-control,
.form-select,
.select,
select.form-control,
textarea.form-control {
    min-height: 44px;
    border: 1px solid var(--app-border) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: var(--app-ink) !important;
    font-weight: 700;
    box-shadow: none !important;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #839083;
    font-weight: 650;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--app-teal) !important;
    box-shadow: var(--app-focus) !important;
}

.input-group .btn {
    border-radius: 0 8px 8px 0 !important;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
}

.card-body:has(> table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table,
.table,
table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    color: var(--app-ink);
    border-collapse: separate !important;
    border-spacing: 0;
}

table thead th,
.table thead th,
table.dataTable thead th {
    padding: 13px 14px !important;
    border: 0 !important;
    background: var(--app-primary-deep) !important;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

table tbody td,
.table tbody td,
table.dataTable tbody td {
    padding: 13px 14px !important;
    border-top: 1px solid #edf2f7 !important;
    color: #334155;
    font-weight: 650;
    vertical-align: middle;
}

table tfoot td,
.table tfoot td,
table.dataTable tfoot td {
    padding: 13px 14px !important;
    border-top: 2px solid var(--app-border) !important;
    background: #f8fbff;
    color: var(--app-primary-deep);
    font-weight: 900;
}

table tbody tr:hover,
.table tbody tr:hover,
table.dataTable tbody tr:hover {
    background: #f6faff;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 8px 10px;
}

.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

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

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--app-teal) !important;
    color: #fff !important;
}

.alert {
    border: 0;
    border-radius: 8px;
    font-weight: 700;
}

.alert-success {
    background: #e6f4f1;
    color: #0f766e;
}

.alert-danger {
    background: #ffe4e6;
    color: #9f1239;
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--app-shadow);
}

.modal-header,
.modal-footer {
    border-color: var(--app-border);
}

.footer {
    display: none !important;
}

.authincation,
body:has(.auth-form) {
    min-height: 100vh;
    min-height: 100svh;
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.10)),
        var(--app-paper);
}

.authincation {
    display: flex !important;
    width: 100%;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(16px, 4vw, 42px) !important;
    overflow-x: hidden;
    overflow-y: auto;
}

.authincation-content,
.auth-form {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--app-shadow);
}

.auth-form {
    width: min(100%, 460px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
}

.authincation .auth-form {
    width: min(100%, 460px);
    margin: 0;
}

.auth-form > .mb-6 {
    margin-bottom: clamp(18px, 4vw, 28px) !important;
}

.auth-form .h-14.w-14 {
    width: clamp(46px, 12vw, 56px) !important;
    height: clamp(46px, 12vw, 56px) !important;
}

.auth-form .h-11.w-11 {
    width: clamp(36px, 9vw, 44px) !important;
    height: clamp(36px, 9vw, 44px) !important;
}

.auth-form h1,
.auth-form h3,
.auth-form h4 {
    color: var(--app-ink);
    font-size: clamp(1.35rem, 7vw, 1.8rem) !important;
    font-weight: 900;
    line-height: 1.15;
}

.auth-form p {
    color: var(--app-muted) !important;
    font-size: clamp(0.86rem, 3.6vw, 0.95rem) !important;
    line-height: 1.45;
}

.auth-form form {
    width: 100%;
}

.auth-form .form-control,
.auth-form .btn {
    width: 100%;
}

.auth-form .form-control {
    min-height: 46px;
}

.auth-form .btn {
    min-height: 46px;
}

.auth-form a {
    overflow-wrap: anywhere;
}

.text-primary {
    color: var(--app-teal) !important;
}

.text-success {
    color: var(--app-cyan) !important;
}

.text-danger {
    color: var(--app-coral) !important;
}

.text-muted {
    color: var(--app-muted) !important;
}

.profile .cover-photo {
    min-height: 190px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--app-teal), var(--app-rust));
}

.nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 8px !important;
    color: var(--app-muted);
    font-weight: 800;
}

.nav-tabs .nav-link.active {
    background: var(--app-mint) !important;
    color: var(--app-teal) !important;
}

.filter-section,
.report-table-wrapper,
.summary-box {
    border: 1px solid var(--app-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: var(--app-shadow) !important;
}

.report-title {
    color: var(--app-ink) !important;
    font-weight: 900 !important;
}

.btn-generate {
    min-height: 42px !important;
    border-radius: 8px !important;
    background: var(--app-teal) !important;
    font-weight: 900 !important;
}

.btn-generate:hover {
    background: var(--app-cyan) !important;
}

.report-table th {
    background: var(--app-primary-deep) !important;
}

.month-posted {
    background: #eaf1ff !important;
    color: var(--app-primary-deep) !important;
}

.report-table thead th.month-posted {
    background: var(--app-primary-deep) !important;
    color: #fff !important;
}

.member-profile-link {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    color: var(--app-primary-deep) !important;
    font-weight: 900;
    line-height: 1.2;
}

.member-profile-link span {
    color: var(--app-rust);
    font-size: 0.72rem;
    font-weight: 800;
}

.member-profile-link:hover {
    color: var(--app-teal) !important;
}

.profile-detail-list {
    display: grid;
    gap: 10px;
}

.profile-detail-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border);
}

.profile-detail-list div:last-child {
    border-bottom: 0;
}

.profile-detail-list span {
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.profile-detail-list strong {
    color: var(--app-ink);
    font-size: 0.92rem;
    font-weight: 900;
    text-align: right;
}

.month-paid {
    background: #e6f4f1 !important;
    color: var(--app-cyan) !important;
}

@media (min-width: 1600px) {
    .content-body > .container-fluid {
        max-width: min(1680px, 100%);
        padding: 34px;
    }

    .widget-stat.card {
        min-height: 176px;
    }
}

@media (max-width: 1199px) {
    .nav-header,
    .dlabnav {
        width: 250px;
    }

    .content-body {
        margin-left: 250px;
    }

    .header {
        left: 250px;
    }
}

@media (max-width: 991px) {
    body.menu-toggle {
        overflow: hidden;
    }

    .nav-header {
        position: fixed;
        gap: 10px;
        width: 100%;
        height: 72px;
        justify-content: space-between;
        border-right: 0;
        z-index: 1040;
    }

    .nav-control {
        display: flex;
        position: absolute;
        left: 12px;
        top: 50%;
        flex: 0 0 auto;
        order: 1;
        transform: translateY(-50%);
    }

    .mobile-profile {
        display: block;
        position: absolute;
        right: 14px;
        top: 50%;
        flex: 0 0 auto;
        order: 3;
        margin-left: auto;
        transform: translateY(-50%);
    }

    .mobile-profile .user-initials {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .nav-header .brand-logo {
        flex: 1 1 auto;
        order: 2;
        min-width: 0;
        width: 100%;
        margin-left: 0;
        padding: 0 104px;
        justify-content: center;
    }

    .header {
        top: 72px;
        left: 0;
        margin-left: 0;
        min-height: auto;
        z-index: 1030;
    }

    .header .header-content,
    .header .navbar,
    .header .collapse {
        min-height: 66px;
    }

    .header .navbar-nav {
        flex-direction: row;
    }

    .header .navbar,
    .header .collapse {
        display: flex !important;
        width: 100%;
    }

    .header-left {
        min-width: 0;
    }

    .header-right {
        display: none !important;
    }

    .dashboard_bar small,
    .search-area {
        display: none;
    }

    .dlabnav {
        top: 72px;
        left: 0 !important;
        display: block !important;
        width: 280px;
        height: calc(100vh - 72px);
        z-index: 1045;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-105%);
        transition: transform 0.22s ease, opacity 0.18s ease;
        visibility: hidden;
    }

    .dlabnav-scroll {
        min-height: calc(100vh - 72px);
        padding-top: 10px;
    }

    .sidebar-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 4px 12px;
        padding: 10px 0 14px;
        border-bottom: 1px solid var(--app-border);
    }

    .sidebar-mobile-head strong {
        color: var(--app-ink);
        font-size: 1rem;
        font-weight: 950;
    }

    .menu-toggle .dlabnav,
    #main-wrapper.menu-toggle .dlabnav,
    html.menu-toggle .dlabnav,
    body.menu-toggle .dlabnav {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        visibility: visible;
    }

    .app-shell.menu-toggle::before {
        display: none;
        content: none;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 72px 0 0 0;
        z-index: 1042;
        display: block;
        width: 100%;
        height: calc(100vh - 72px);
        border: 0;
        background: rgba(15, 23, 42, 0.36);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

    .menu-toggle .sidebar-backdrop,
    #main-wrapper.menu-toggle .sidebar-backdrop,
    html.menu-toggle .sidebar-backdrop,
    body.menu-toggle .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .content-body {
        margin-left: 0;
        padding-top: 138px;
    }

    .content-body > .container-fluid {
        padding: 18px;
    }

    .card-header {
        align-items: flex-start;
    }

    .card-header form,
    .card-header .input-group {
        width: 100%;
    }

    .filter-section form,
    .summary-section,
    .month-overview-head {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .report-table-wrapper,
    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-detail-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .profile-detail-list strong {
        text-align: left;
    }
}

@media (max-width: 767px) {
    h1,
    .h1 {
        font-size: 1.6rem;
    }

    h2,
    .h2 {
        font-size: 1.35rem;
    }

    h3,
    .h3 {
        font-size: 1.16rem;
    }

    h4,
    .h4 {
        font-size: 1rem;
    }

    .content-body {
        padding-top: 132px;
    }

    .content-body > .container-fluid {
        padding: 14px;
    }

    .row {
        --bs-gutter-x: 18px;
        --bs-gutter-y: 18px;
    }

    .card {
        box-shadow: 0 12px 28px rgba(24, 32, 51, 0.10);
    }

    .card-header {
        gap: 12px;
        min-height: auto;
    }

    .card-header > *,
    .card-header h4,
    .card-header form {
        width: 100%;
    }

    .btn {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.86rem;
    }

    .content-body > .container-fluid > .mb-4 .btn,
    .card-header .btn,
    .filter-section .btn,
    .filter-section .btn-generate {
        width: 100%;
    }

    .table-responsive table,
    .card-body > table {
        min-width: 680px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        width: 100%;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100%;
        margin: 6px 0 0 !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
    }

    .filter-section,
    .month-overview,
    .summary-box {
        padding: 16px !important;
    }

    .month-overview-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-dialog {
        margin: 12px;
    }
}

@media (max-width: 575px) {
    .nav-header {
        padding: 12px 14px;
    }

    .nav-control {
        left: 10px;
    }

    .mobile-profile {
        right: 12px;
    }

    .brand-logo {
        gap: 9px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-mark img {
        width: 32px;
        height: 32px;
    }

    .brand-title small {
        display: none;
    }

    .dashboard_bar {
        font-size: 0.95rem;
    }

    .dashboard_bar span {
        max-width: 68vw;
    }

    .user-initials {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .card-header,
    .card-body {
        padding: 16px !important;
    }

    .card-header {
        flex-direction: column;
    }

    .content-body > .container-fluid {
        padding: 12px;
    }

    .app-page-kicker {
        font-size: 0.74rem;
    }

    .auth-form {
        max-width: calc(100vw - 24px);
        padding: 20px;
    }

    .widget-stat.card {
        min-height: 128px;
    }

    .widget-stat .media {
        align-items: flex-start;
    }

    table thead th,
    .table thead th,
    table.dataTable thead th,
    table tbody td,
    .table tbody td,
    table.dataTable tbody td {
        padding: 10px 11px !important;
    }
}

@media (max-width: 390px) {
    .authincation {
        padding: 12px !important;
    }

    .auth-form {
        max-width: calc(100vw - 16px);
        padding: 18px 16px;
    }

    .auth-form .mb-5 {
        margin-bottom: 1rem !important;
    }

    .brand-title strong {
        max-width: 150px;
        font-size: 1rem;
    }

    .dashboard_bar span {
        max-width: 58vw;
        font-size: 0.88rem;
    }

    .nav-header {
        height: 68px;
    }

    .header {
        top: 68px;
    }

    .header .header-content,
    .header .navbar,
    .header .collapse {
        min-height: 58px;
    }

    .dlabnav {
        top: 68px;
        width: min(280px, 86vw);
        height: calc(100vh - 68px);
        transform: translateX(-105%);
    }

    .app-shell.menu-toggle::before {
        display: none;
        content: none;
    }

    .sidebar-backdrop {
        inset: 68px 0 0 0;
        height: calc(100vh - 68px);
    }

    .content-body {
        padding-top: 126px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .nav-header {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
    }

    .nav-control {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: flex !important;
        transform: none !important;
        grid-column: 1;
        justify-self: start;
    }

    .sidebar-menu-toggle {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 10px;
    }

    .sidebar-menu-toggle .menu-label {
        display: none;
    }

    .sidebar-menu-toggle i {
        font-size: 1.65rem;
    }

    .nav-header .brand-logo {
        grid-column: 2;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0 6px;
        justify-content: center;
    }

    .mobile-profile {
        position: static !important;
        right: auto !important;
        top: auto !important;
        display: block !important;
        margin: 0;
        transform: none !important;
        grid-column: 3;
        justify-self: end;
    }

    .mobile-profile .user-initials {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .header {
        display: none !important;
    }

    .content-body {
        padding-top: 72px;
    }
}

@media (max-width: 390px) {
    .content-body {
        padding-top: 68px;
    }
}
