:root {
    --brand-50: #ecf3ff;
    --brand-100: #dde9ff;
    --brand-300: #9cb9ff;
    --brand-500: #465fff;
    --brand-600: #3641f5;
    --gray-25: #fcfcfd;
    --gray-50: #f9fafb;
    --gray-100: #f2f4f7;
    --gray-200: #e4e7ec;
    --gray-300: #d0d5dd;
    --gray-400: #98a2b3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1d2939;
    --gray-900: #101828;
    --success-100: #d1fadf;
    --success-700: #027a48;
    --error-100: #fee4e2;
    --error-700: #b42318;
    --warning-100: #fef0c7;
    --warning-700: #b54708;
    --white: #ffffff;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-soft: 0 14px 38px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--gray-800);
    background: radial-gradient(circle at 10% 8%, #eef4ff 0%, #f8faff 40%, #f6f8fc 100%);
    position: relative;
    overflow-x: hidden;
}

body.menu-locked {
    overflow: hidden;
}

body.app-guest {
    background: linear-gradient(140deg, #0b142b 0%, #111f3f 45%, #182d57 100%);
}

body.app-guest::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(70, 95, 255, 0.34) 0%, rgba(70, 95, 255, 0) 36%),
        radial-gradient(circle at 20% 82%, rgba(41, 82, 146, 0.32) 0%, rgba(41, 82, 146, 0) 34%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.045) 0 1px,
            transparent 1px 54px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0 1px,
            transparent 1px 54px
        );
}

body.app-guest::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, rgba(7, 13, 30, 0.08) 0%, rgba(5, 10, 23, 0.44) 100%);
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    background: linear-gradient(170deg, #111b37 0%, #0d162f 58%, #111b37 100%);
    color: #d8e0f5;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    text-decoration: none;
    color: #eef2ff;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 14px 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-brand img {
    width: 180px;
    height: 60px;
    object-fit: contain;
    padding: 4px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.sidebar-brand-text {
    text-align: center;
}

.sidebar-brand strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.sidebar-brand span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #9fb0d8;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #c6d0ea;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    padding: 11px 12px 11px 40px;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link::before {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

.nav-icon-dashboard::before {
    content: "\25A3";
}

.nav-icon-calendar::before {
    content: "\25A6";
}

.nav-icon-users::before {
    content: "\25A4";
}

.nav-icon-prospects::before {
    content: "\25A9";
}

.nav-icon-plus::before {
    content: "+";
}

.nav-link:hover {
    background: rgba(70, 95, 255, 0.18);
    color: #eef2ff;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(70, 95, 255, 0.3) 0%, rgba(70, 95, 255, 0.2) 100%);
    border-color: rgba(156, 185, 255, 0.5);
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-footer .btn {
    width: 100%;
}

.content-shell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    border-bottom: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-leading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-title h1 {
    margin: 2px 0 0;
    font-size: 25px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #ffffff;
    color: var(--gray-700);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
}

.mobile-menu-btn::before {
    content: "\2630";
    font-size: 18px;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
}

.topbar-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-block;
    overflow: hidden;
    border: 2px solid #dbe4ff;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.16);
}

.user-avatar-link {
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-avatar-link:hover {
    transform: translateY(-1px);
}

.user-avatar-link:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-bar strong {
    display: block;
    font-size: 13px;
    color: var(--gray-900);
}

.user-bar span {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}

.container {
    width: 100%;
    padding: 24px 28px 28px;
    display: grid;
    gap: 18px;
}

.guest-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 14px;
    display: grid;
    align-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.card {
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 19px;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.collapsible-card .collapsible-header h2 {
    margin: 0;
}

.collapsible-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    font-size: 0;
    position: relative;
}

.collapsible-toggle::before {
    content: "+";
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.collapsible-toggle[aria-expanded="true"]::before {
    content: "-";
}

.collapsible-body {
    padding-top: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.grid-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.chart-card {
    padding-bottom: 14px;
    min-width: 0;
}

.chart-card h2 {
    margin-bottom: 10px;
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    min-height: 220px;
    overflow: hidden;
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-span-2 {
    grid-column: 1 / -1;
}

.metric {
    position: relative;
    overflow: hidden;
}

.metric::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -30px;
    top: -50px;
    background: radial-gradient(circle at center, rgba(70, 95, 255, 0.14) 0%, rgba(70, 95, 255, 0) 70%);
}

.metric h3 {
    margin: 0;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.metric-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
}

.metric-icon-total {
    color: #2442d3;
    background: #e8eeff;
}

.metric-icon-today {
    color: #0f766e;
    background: #dffaf5;
}

.metric-icon-events {
    color: #b45309;
    background: #fff4d9;
}

.metric-icon-users {
    color: #7c3aed;
    background: #efe8ff;
}

.metric-icon-hot {
    color: #b42318;
    background: #fee4e2;
}

.metric p {
    margin: 9px 0 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
}

.grid-form {
    display: grid;
    gap: 12px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 6px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: #fcfdff;
    color: var(--gray-800);
    font-size: 14px;
    line-height: 1.3;
    padding: 10px 12px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(70, 95, 255, 0.14);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

.scan-card-panel {
    border: 1px dashed var(--brand-300);
    border-radius: var(--radius-md);
    background: #f7f9ff;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.scan-card-panel strong {
    color: var(--gray-900);
    font-size: 14px;
}

.scan-card-panel p {
    margin: 4px 0 0;
    color: var(--gray-500);
    font-size: 12px;
}

.supervisor-panel {
    margin-bottom: 1rem;
}

.supervisor-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--gray-700);
    font-size: 13px;
}

.supervisor-list li + li {
    margin-top: 4px;
}

.supervisor-email,
.supervisor-empty {
    color: var(--gray-500);
    font-size: 12px;
}

.supervisor-role {
    display: inline-block;
    margin-left: 6px;
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.supervisor-empty {
    margin: 0;
}

.scan-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scan-card-status {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.scan-card-status-info {
    color: var(--gray-600);
}

.scan-card-status-success {
    color: var(--success-700);
}

.scan-card-status-error {
    color: var(--error-700);
}

.stars-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.star-rating label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 25px;
    color: #d0d5dd;
    line-height: 1;
    font-weight: 700;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f79009;
}

.btn {
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.13s ease, filter 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
    color: #ffffff;
}

.btn-secondary {
    background: var(--brand-50);
    color: #1f3588;
    border: 1px solid var(--brand-100);
}

.btn-light {
    background: #f2f4f7;
    color: #1d2939;
    border: 1px solid #e4e7ec;
}

.btn-danger {
    background: #f04438;
    color: #ffffff;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    padding: 0;
}

.icon-login::before {
    content: "\2192";
}

.icon-logout::before {
    content: "\2190";
}

.icon-add::before {
    content: "+";
}

.icon-save::before {
    content: "\2713";
}

.icon-edit::before {
    content: "\270E";
}

.icon-delete::before {
    content: "\2715";
}

.icon-filter::before {
    content: "\25CB";
}

.icon-reset::before {
    content: "\21BB";
}

.icon-export::before {
    content: "\2913";
}

.icon-cancel::before {
    content: "\2715";
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.table-actions {
    flex-wrap: nowrap;
}

.table-actions .btn-icon {
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none;
    color: var(--gray-400);
}

.table-actions .btn-icon:hover {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--gray-600);
    transform: none;
    filter: none;
}

.table-actions .btn-danger.btn-icon,
.table-actions .btn-secondary.btn-icon {
    background: transparent !important;
    color: var(--gray-400) !important;
}

.actions form {
    margin: 0;
}

.alert {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
}

.alert-success {
    background: #ecfdf3;
    border-color: #a6f4c5;
    color: #05603a;
}

.alert-error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #912018;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

table[data-datatable="true"] {
    width: 100% !important;
}

th,
td {
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    padding: 12px 10px;
    font-size: 13px;
    vertical-align: middle;
}

th {
    color: var(--gray-500);
    font-weight: 700;
    background: var(--gray-50);
}

tbody tr:hover {
    background: #fafbff;
}

.rating-stars {
    color: #f79009;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 700;
}

.prospect-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.rating-tone-1 {
    background: #eaecf0;
    color: #344054;
}

.rating-tone-2 {
    background: #e0f2fe;
    color: #075985;
}

.rating-tone-3 {
    background: #fef0c7;
    color: #b45309;
}

.rating-tone-4 {
    background: #d1fadf;
    color: #027a48;
}

.rating-tone-5 {
    background: #fee4e2;
    color: #b42318;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.priority-low {
    color: #475467;
    background: #eaecf0;
}

.priority-medium {
    color: #b54708;
    background: #fef0c7;
}

.priority-high {
    color: #026aa2;
    background: #d1f5ff;
}

.priority-critical {
    color: #b42318;
    background: #fee4e2;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-warning {
    background: var(--warning-100);
    color: var(--warning-700);
}

.badge-danger {
    background: var(--error-100);
    color: var(--error-700);
}

.badge-neutral {
    background: var(--gray-100);
    color: var(--gray-700);
}

.event-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.event-list span {
    margin-left: 6px;
    color: var(--gray-500);
    font-size: 12px;
}

.auth-split {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.auth-pane {
    padding: 34px 34px 30px;
}

.auth-header {
    margin-bottom: 16px;
}

.auth-header-left {
    text-align: left;
}

.auth-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

.auth-header h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.1;
}

.auth-header p {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

.auth-form {
    gap: 14px;
}

.auth-form input {
    min-height: 44px;
}

.auth-submit {
    width: 100%;
}

.auth-visual {
    min-height: 470px;
    background: linear-gradient(140deg, #1b2f8d 0%, #3641f5 48%, #5a6dff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-visual::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    top: -110px;
    right: -90px;
}

.auth-visual::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    bottom: -100px;
    left: -90px;
}

.auth-visual-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 14px;
}

.auth-visual img {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.auth-visual p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.dataTables_wrapper {
    margin-top: 10px;
    color: var(--gray-600);
}

.dataTables_wrapper .dt-toolbar,
.dataTables_wrapper .dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dataTables_wrapper .dt-footer {
    margin-top: 12px;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 0;
    font-size: 12px;
    color: var(--gray-500);
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 700;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    background: #ffffff;
    color: var(--gray-700);
    font-size: 12px;
    min-height: 34px;
    padding: 6px 10px;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 220px;
}

.dataTables_wrapper table.dataTable.no-footer {
    border-bottom: 1px solid var(--gray-200);
}

.dataTables_wrapper table.dataTable thead th {
    border-bottom: 1px solid var(--gray-200);
}

.dataTables_wrapper .dataTables_paginate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--gray-400) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 9px !important;
    line-height: 1 !important;
    min-width: 32px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--gray-600) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: var(--gray-700) !important;
    background: transparent !important;
    border-color: transparent !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.45;
    background: transparent !important;
    color: var(--gray-400) !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
}

@media (max-width: 1100px) {
    .sidebar-nav {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}

@media (max-width: 900px) {
    .app-shell {
        min-height: 100vh;
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(84vw, 320px);
        height: 100vh;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 0;
        padding: 14px;
        gap: 14px;
        z-index: 70;
        overflow-y: auto;
        transform: translateX(-104%);
        transition: transform 0.22s ease;
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(3, 7, 18, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 60;
        border: 0;
        padding: 0;
    }

    .app-shell.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .content-shell {
        min-height: 100vh;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .topbar {
        padding: 14px;
        align-items: center;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .topbar-leading {
        flex: 1 1 auto;
    }

    .topbar-title h1 {
        font-size: 22px;
    }

    .user-bar {
        width: auto;
        margin-left: auto;
    }

    .grid-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2,
    .grid-3,
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-wrap {
        height: 260px;
    }

    .chart-span-2 {
        grid-column: auto;
    }

    .collapsible-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 14px;
        gap: 14px;
    }

    .card {
        padding: 15px;
    }

    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-pane {
        padding: 20px;
    }

    .auth-visual {
        min-height: 210px;
        justify-content: center;
        padding: 18px;
    }

    .auth-visual-inner {
        justify-items: center;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left !important;
    }

    .dataTables_wrapper .dt-toolbar,
    .dataTables_wrapper .dt-footer {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label {
        width: 100%;
        justify-content: space-between;
    }

    .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .topbar {
        gap: 12px;
    }

    .container {
        padding: 12px;
        gap: 12px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .nav-link {
        min-height: 40px;
    }

    .sidebar-brand {
        padding: 8px;
    }

    .sidebar-brand img {
        width: 150px;
        height: 50px;
    }

    .sidebar-brand strong {
        font-size: 14px;
    }

    .sidebar-brand span {
        font-size: 11px;
    }

    .topbar-leading {
        width: 100%;
    }

    .user-bar {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .btn-icon {
        width: 31px;
        height: 31px;
    }

    .metric p {
        font-size: 27px;
    }

    .chart-wrap {
        height: 220px;
        min-height: 200px;
    }

    .actions {
        width: 100%;
    }

    .actions .btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 130px;
    }

    .table-actions {
        width: auto;
    }

    .table-actions .btn {
        flex: 0 0 auto;
        min-width: 0;
    }

    .collapsible-toggle {
        align-self: flex-end;
    }

    .guest-shell {
        padding: 12px;
    }

    .auth-pane {
        padding: 16px;
    }

    .auth-visual {
        min-height: 160px;
        padding: 14px;
    }

    .auth-visual img {
        width: 170px;
    }

    .grid-metrics {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 540px;
    }
}

@media (max-width: 420px) {
    .actions .btn {
        flex: 1 1 100%;
    }

    .collapsible-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .metric-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .metric p {
        font-size: 24px;
    }

    .chart-wrap {
        height: 195px;
        min-height: 180px;
    }
}
