:root {
    --mt-bg: #f4f7fb;
    --mt-bg-soft: #ecf1f7;
    --mt-surface: #ffffff;
    --mt-surface-soft: #f8fbff;
    --mt-surface-deep: #e7edf6;
    --mt-shell: #272d35;
    --mt-shell-deep: #232931;
    --mt-border: rgba(15, 23, 42, 0.08);
    --mt-border-strong: rgba(15, 23, 42, 0.14);
    --mt-text: #18212f;
    --mt-text-soft: #627086;
    --mt-text-muted: #8794a7;
    --mt-primary: #356dff;
    --mt-primary-strong: #2454d6;
    --mt-accent: #15b67c;
    --mt-accent-strong: #109266;
    --mt-danger: #ea5b74;
    --mt-warning: #dca14a;
    --mt-shadow-sm: 0 16px 36px rgba(0, 0, 0, 0.26);
    --mt-shadow-md: 0 28px 66px rgba(0, 0, 0, 0.34);
    --mt-radius-sm: 12px;
    --mt-radius-md: 18px;
    --mt-radius-lg: 26px;
    --mt-sidebar-width: 270px;
}

html,
body {
    background: #f3f6fb;
    color: var(--mt-text);
}

body.modern-theme-shell,
body.modern-theme-shell .wrapper,
body.modern-theme-shell .content-wrapper,
body.modern-theme-shell .right-side,
body.modern-theme-shell .app-shell-main {
    background: transparent !important;
}

.app-shell-frame {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(53, 109, 255, 0.08), transparent 16%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.app-shell-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    width: var(--mt-sidebar-width);
    min-height: 100vh;
    border-right: 1px solid var(--mt-border);
    background:
        linear-gradient(180deg, #313740 0%, #2a3038 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.app-shell-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    min-height: 74px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--mt-border);
    text-decoration: none !important;
}

.app-shell-sidebar-brand p:first-child {
    margin: 0;
    color: #91a2ff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-shell-sidebar-brand .side-bar-heading {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 800;
}

.app-nav-root {
    height: calc(100vh - 74px);
    padding: 18px 16px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.app-nav-section {
    margin: 12px 0 6px;
    color: rgba(201, 209, 222, 0.44);
    letter-spacing: 0.12em;
}

.app-nav-link {
    width: 100%;
    display: flex;
    width: 100%;
    color: #d3dbe8;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent !important;
    text-decoration: none !important;
}

.app-nav-link:hover,
.app-nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.05);
}

.app-nav-link-active,
.app-nav-group-active > .app-nav-link,
.app-nav-group-wrap.app-nav-group-active > .app-nav-link {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(67, 115, 255, 0.24), rgba(67, 115, 255, 0.1));
    border-color: rgba(106, 143, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.app-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    color: #93a1b7;
}

.app-nav-link-active .app-nav-icon,
.app-nav-group-active > .app-nav-link .app-nav-icon {
    color: #ffffff;
}

.app-nav-arrow {
    color: rgba(150, 164, 186, 0.54);
}

.app-nav-rail {
    background: linear-gradient(180deg, rgba(70, 88, 115, 0.5), rgba(255, 255, 255, 0.04));
}

.app-nav-sublink {
    gap: 10px;
    color: #aab4c5;
    background: transparent !important;
    text-decoration: none !important;
}

.app-nav-root::-webkit-scrollbar {
    width: 8px;
}

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

.app-nav-root::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.app-nav-root::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

.app-nav-sublink:hover,
.app-nav-sublink-active {
    color: #ffffff;
}

.app-nav-bullet {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: rgba(150, 164, 186, 0.34);
}

.app-nav-sublink-active .app-nav-bullet {
    background: linear-gradient(135deg, var(--mt-primary), #5d87ff);
    box-shadow: 0 0 0 4px rgba(53, 109, 255, 0.12);
}

.app-shell-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0;
    background: transparent;
}

.app-shell-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 22px;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #252b33 0%, #20262e 100%);
    box-shadow: 0 18px 32px rgba(31, 41, 55, 0.12);
}

.app-shell-icon-button,
.app-shell-action-button {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.app-shell-icon-button:hover,
.app-shell-action-button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.app-shell-action-button {
    background: linear-gradient(135deg, #2f6dff, #2454d6) !important;
    border-color: transparent !important;
}

#universal_search_container .form-control,
.app-shell-header .form-control {
    height: 46px;
    border: 1px solid var(--mt-border) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

#universal_search_container .form-control::placeholder {
    color: var(--mt-text-muted) !important;
}

#universal_search_results,
.app-shell-header .tw-dw-menu,
.app-shell-header .tw-dw-dropdown-content,
.app-shell-header details ul,
.app-shell-header .dropdown-menu,
.app-shell-header .dropdown-menu-right,
.app-shell-header .notifications-menu > .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #262c34 0%, #20262e 100%) !important;
    color: #eef3fb !important;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.28) !important;
}

.app-shell-header .dropdown-menu *,
.app-shell-header details ul *,
.app-shell-header .tw-dw-dropdown-content * {
    color: #dbe4f0 !important;
}

.app-shell-header .dropdown-menu li > a,
.app-shell-header details ul li > a,
.app-shell-header .tw-dw-dropdown-content a {
    border-radius: 12px;
}

.app-shell-header .dropdown-menu li > a:hover,
.app-shell-header details ul li > a:hover,
.app-shell-header .tw-dw-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.app-shell-header .notifications_count,
.app-shell-header .label-warning {
    background: linear-gradient(135deg, #ef5f77, #dd405d) !important;
    color: #ffffff !important;
    border: 2px solid #252b33 !important;
}

.app-shell-content {
    padding: 20px 20px 28px;
    background: transparent;
}

.app-content-inner {
    padding: 0;
    min-height: calc(100vh - 110px);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.06), transparent 16%),
        linear-gradient(180deg, #f8fbff 0%, #f1f5fb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.app-shell-main {
    width: 100%;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .app-shell-main {
        margin-left: var(--mt-sidebar-width);
        width: calc(100% - var(--mt-sidebar-width));
    }
}

.content-header,
section.content-header {
    padding: 0 !important;
    margin: 0 0 18px !important;
    background: transparent !important;
    border: 0 !important;
}

.content-header h1,
.advanced-reports-page-header h1 {
    margin: 0 !important;
    color: #1b2533 !important;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.content-header small,
.advanced-reports-page-header small {
    display: block;
    margin-top: 8px;
    color: #728198 !important;
    font-size: 14px;
}

.box,
.box.box-primary,
.nav-tabs-custom,
.panel,
.well,
.info-box,
.thumbnail,
.app-widget-card,
.app-filter-card,
.app-static-card,
.advanced-report-quick-card,
.advanced-report-category,
.modern-pos-panel,
.modern-pos-discovery,
.quick-access-dock,
#transactions-panel.transactions-panel {
    overflow: hidden;
    border: 1px solid rgba(20, 30, 50, 0.08) !important;
    border-radius: var(--mt-radius-lg) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    color: #1f2b3d !important;
    box-shadow: 0 20px 40px rgba(148, 163, 184, 0.14) !important;
}

.box-header,
.panel-heading,
.nav-tabs-custom > .nav-tabs,
.app-widget-header,
.app-filter-header {
    border-bottom: 1px solid rgba(20, 30, 50, 0.08) !important;
    background: rgba(245, 248, 253, 0.9) !important;
    color: #18212f !important;
}

.box-title,
.panel-title {
    color: #18212f !important;
    font-weight: 800 !important;
}

.small-box,
.stats-card,
.kpi-widget,
.card {
    border: 1px solid rgba(20, 30, 50, 0.08) !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    color: #1b2533 !important;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.14) !important;
}

.small-box::before,
.stats-card::before,
.kpi-widget::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--mt-primary), var(--mt-accent));
}

.small-box .icon,
.stats-card .icon {
    color: rgba(255, 255, 255, 0.12) !important;
}

.small-box-footer {
    border-top: 1px solid var(--mt-border) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #d5deec !important;
}

.table,
table.dataTable {
    color: #1b2533 !important;
}

.table > thead > tr > th,
table.dataTable thead th {
    background: #f4f8fd !important;
    color: #7a889d !important;
    border-color: rgba(20, 30, 50, 0.08) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px !important;
}

.table-bordered,
.table-striped,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
table.dataTable tbody td {
    border-color: rgba(20, 30, 50, 0.08) !important;
}

.table-striped > tbody > tr:nth-of-type(odd),
table.dataTable tbody tr:nth-child(odd) {
    background: rgba(244, 248, 253, 0.72) !important;
}

.table-hover > tbody > tr:hover,
table.dataTable tbody tr:hover {
    background: rgba(53, 109, 255, 0.05) !important;
}

.form-control,
.select2-selection,
.input-group-addon,
.form-control[readonly],
.select2-dropdown,
.note-editor.note-frame,
.note-toolbar {
    border-color: rgba(20, 30, 50, 0.1) !important;
    background: #ffffff !important;
    color: #1f2b3d !important;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: var(--mt-text-muted) !important;
}

.btn,
.btn-app,
.swal-button,
.pagination > li > a,
.pagination > li > span {
    border-radius: 14px !important;
}

.btn-primary,
.swal-button {
    background: linear-gradient(135deg, var(--mt-primary), var(--mt-primary-strong)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--mt-accent), var(--mt-accent-strong)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--mt-warning), #ca8a2f) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--mt-danger), #cc4a5c) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.btn-default,
.pagination > li > a,
.pagination > li > span {
    border: 1px solid var(--mt-border) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

.modal-content,
.popover,
.dropdown-menu,
.daterangepicker,
.select2-dropdown {
    border: 1px solid rgba(20, 30, 50, 0.08) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #1f2b3d !important;
    box-shadow: 0 22px 46px rgba(148, 163, 184, 0.2) !important;
}

.app-module-nav {
    margin-bottom: 18px;
    border: 1px solid rgba(20, 30, 50, 0.08) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.14);
}

.app-module-nav .navbar-brand,
.app-module-nav .navbar-nav > li > a {
    color: #5f6f84 !important;
}

.app-module-nav .navbar-nav > li.active > a,
.app-module-nav .navbar-nav > li > a:hover,
.app-module-nav .navbar-nav > li > a:focus {
    background: rgba(53, 109, 255, 0.08) !important;
    color: #1b2533 !important;
}

.modern-dashboard {
    background: transparent !important;
    min-height: auto !important;
    padding: 0 !important;
    color: var(--mt-text);
}

.modern-dashboard > .dashboard-shell,
.modern-dashboard > .home-dashboard-shell {
    position: relative;
    min-height: auto !important;
    padding: 24px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.1), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
    box-shadow: 0 20px 48px rgba(148, 163, 184, 0.18);
}

.modern-dashboard .dashboard-header,
.modern-dashboard .home-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.modern-dashboard .welcome-title,
.modern-dashboard .home-dashboard-title {
    color: #1b2533 !important;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
}

.modern-dashboard .welcome-subtitle,
.modern-dashboard .home-dashboard-subtitle {
    color: #68778c !important;
    font-size: 0.98rem;
}

.modern-dashboard .controls-wrapper,
.modern-dashboard .home-dashboard-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.modern-dashboard .control-element,
.modern-dashboard .home-dashboard-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(20, 30, 50, 0.1) !important;
    border-radius: 16px;
    background: #ffffff !important;
    color: #1f2b3d !important;
}

.modern-dashboard .control-element select,
.modern-dashboard .control-element .select2,
.modern-dashboard .control-element .select2-selection,
.modern-dashboard .home-dashboard-control select,
.modern-dashboard .home-dashboard-control .select2,
.modern-dashboard .home-dashboard-control .select2-selection {
    width: 100% !important;
    min-width: 220px;
    border: 0 !important;
    background: transparent !important;
    color: #1f2b3d !important;
}

.modern-dashboard .metrics-grid,
.modern-dashboard .secondary-metrics,
.modern-dashboard .home-dashboard-grid,
.modern-dashboard .home-dashboard-secondary-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

.modern-dashboard .metrics-grid,
.modern-dashboard .home-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.modern-dashboard .secondary-metrics,
.modern-dashboard .home-dashboard-secondary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.modern-dashboard .metric-card,
.modern-dashboard .glass-card,
.modern-dashboard .home-dashboard-card,
.modern-dashboard .home-dashboard-glass-card,
.modern-dashboard .tw-transition-all.lg\:tw-col-span-2,
.modern-dashboard .tw-transition-all.lg\:tw-col-span-1 {
    border: 1px solid rgba(20, 30, 50, 0.08) !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    color: #1b2533 !important;
    box-shadow: 0 16px 34px rgba(148, 163, 184, 0.16) !important;
}

.modern-dashboard .metric-card,
.modern-dashboard .glass-card,
.modern-dashboard .home-dashboard-card,
.modern-dashboard .home-dashboard-glass-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
}

.modern-dashboard .metric-content,
.modern-dashboard .glass-content,
.modern-dashboard .home-dashboard-card-content,
.modern-dashboard .home-dashboard-glass-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.modern-dashboard .metric-card::before,
.modern-dashboard .glass-card::before,
.modern-dashboard .home-dashboard-card::before,
.modern-dashboard .home-dashboard-glass-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #5d75ff, #3bb9ff) !important;
}

.modern-dashboard .metric-header,
.modern-dashboard .glass-header,
.modern-dashboard .home-dashboard-card-header,
.modern-dashboard .home-dashboard-glass-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.modern-dashboard .metric-icon,
.modern-dashboard .glass-icon,
.modern-dashboard .home-dashboard-card-icon,
.modern-dashboard .home-dashboard-glass-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 18px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6c5cff, #37d4ff) !important;
    box-shadow: 0 14px 26px rgba(108, 92, 255, 0.28);
}

.modern-dashboard .metric-label,
.modern-dashboard .metric-subtitle,
.modern-dashboard .status-indicator span,
.modern-dashboard .glass-content h3,
.modern-dashboard .home-dashboard-card-label,
.modern-dashboard .home-dashboard-card-note,
.modern-dashboard .home-dashboard-status span,
.modern-dashboard .home-dashboard-glass-content h3 {
    color: #6f7d91 !important;
}

.modern-dashboard .metric-label,
.modern-dashboard .glass-content h3,
.modern-dashboard .home-dashboard-card-label,
.modern-dashboard .home-dashboard-glass-content h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
}

.modern-dashboard .metric-subtitle,
.modern-dashboard .home-dashboard-card-note {
    font-size: 0.92rem;
}

.modern-dashboard .metric-value,
.modern-dashboard .glass-content .value,
.modern-dashboard .metric-card *,
.modern-dashboard .glass-card *,
.modern-dashboard .home-dashboard-card-value,
.modern-dashboard .home-dashboard-glass-content .value,
.modern-dashboard .home-dashboard-card *,
.modern-dashboard .home-dashboard-glass-card * {
    color: #1b2533 !important;
}

.modern-dashboard .metric-value,
.modern-dashboard .home-dashboard-card-value {
    font-size: 1.95rem;
    line-height: 1.1;
    font-weight: 800;
}

.modern-dashboard .glass-content .value,
.modern-dashboard .home-dashboard-glass-content .value {
    font-size: 1.7rem;
    line-height: 1.1;
    font-weight: 800;
}

.modern-dashboard .status-indicator,
.modern-dashboard .home-dashboard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.9rem;
}

.modern-dashboard .status-dot,
.modern-dashboard .home-dashboard-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.modern-dashboard .badge-positive,
.modern-dashboard .badge-negative,
.modern-dashboard .badge-warning,
.modern-dashboard .badge-urgent,
.modern-dashboard .home-dashboard-badge-positive,
.modern-dashboard .home-dashboard-badge-negative,
.modern-dashboard .home-dashboard-badge-warning,
.modern-dashboard .home-dashboard-badge-urgent,
.modern-dashboard .home-dashboard-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff !important;
    border: 0 !important;
}

.modern-dashboard .badge-positive,
.modern-dashboard .dot-green,
.modern-dashboard .home-dashboard-badge-positive,
.modern-dashboard .home-dashboard-dot-green {
    background: linear-gradient(135deg, #2ed08f, #1aa975) !important;
}

.modern-dashboard .badge-negative,
.modern-dashboard .badge-urgent,
.modern-dashboard .dot-red,
.modern-dashboard .home-dashboard-badge-negative,
.modern-dashboard .home-dashboard-badge-urgent,
.modern-dashboard .home-dashboard-dot-red {
    background: linear-gradient(135deg, #ea6678, #d84e60) !important;
}

.modern-dashboard .badge-warning,
.modern-dashboard .dot-yellow,
.modern-dashboard .home-dashboard-badge-warning,
.modern-dashboard .home-dashboard-dot-yellow {
    background: linear-gradient(135deg, #efb65c, #da9935) !important;
}

.modern-dashboard .dot-blue,
.modern-dashboard .home-dashboard-dot-blue {
    background: linear-gradient(135deg, #37d4ff, #4b6bff) !important;
}

.modern-dashboard .icon-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.modern-dashboard .app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 16px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modern-dashboard .app-icon:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px);
}

.modern-dashboard .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.modern-dashboard .icon-container .emoji {
    font-size: 34px;
    line-height: 1;
}

.modern-dashboard .app-label {
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}

.modern-dashboard .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea6173, #d84e60);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-access-dock {
    position: fixed;
    top: 138px;
    right: 24px;
    z-index: 24;
    width: 112px;
    max-height: calc(100vh - 164px);
    overflow: hidden;
    border-radius: 24px !important;
    border: 1px solid rgba(20, 30, 50, 0.08) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.22) !important;
}

.quick-access-dock__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(20, 30, 50, 0.08);
}

.quick-access-dock__title,
.quick-access-dock .app-label {
    color: #233044 !important;
}

.quick-access-dock__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(20, 30, 50, 0.08);
    border-radius: 12px;
    background: #f4f8fd;
    color: #475569;
}

.quick-access-dock__scroll {
    padding: 10px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.quick-access-dock .icon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.quick-access-dock .app-icon {
    align-items: center;
    padding: 10px 8px;
    border: 1px solid rgba(20, 30, 50, 0.06);
    background: #ffffff;
}

.quick-access-dock .app-icon:hover {
    background: #f5f9ff !important;
}

.quick-access-dock .icon-container {
    background: #f4f8fd;
}

.quick-access-dock.is-collapsed {
    width: 58px;
}

.quick-access-dock.is-collapsed .quick-access-dock__title,
.quick-access-dock.is-collapsed .app-label,
.quick-access-dock.is-collapsed .quick-access-dock__scroll {
    display: none;
}

#transactions-panel.transactions-panel {
    width: min(640px, calc(100vw - 180px));
    max-height: calc(100vh - 180px);
    overflow: auto;
}

#transactions-panel .metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-shell,
.auth-shell-minimal {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(75, 107, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #0f141b 0%, #151b25 100%);
    color: var(--mt-text);
}

.auth-card,
.register-card,
.demo-card,
.auth-panel {
    border: 1px solid var(--mt-border) !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, #232b37 0%, #1e2631 100%) !important;
    color: var(--mt-text) !important;
    box-shadow: var(--mt-shadow-md) !important;
}

.auth-hero-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(75, 107, 255, 0.16);
    color: #d7e0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-hero-title {
    margin: 16px 0 10px;
    color: #ffffff !important;
    font-size: 40px;
    line-height: 1.05;
}

.auth-hero-text,
.auth-hero-stat span {
    color: var(--mt-text-soft) !important;
}

.auth-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.auth-hero-stat {
    padding: 14px 16px;
    border: 1px solid var(--mt-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 991px) {
    .app-shell-content {
        padding: 14px 10px 22px;
    }

    .app-shell-header {
        padding: 0 10px;
    }

    .app-shell-header-inner {
        border-radius: 18px;
        border-top: 1px solid var(--mt-border);
    }

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

@media (max-width: 767px) {
    .content-header h1,
    .advanced-reports-page-header h1 {
        font-size: 1.5rem;
    }

    .modern-dashboard > .dashboard-shell,
    .modern-dashboard > .home-dashboard-shell {
        padding: 14px;
        border-radius: 22px;
    }

    .modern-dashboard .dashboard-header,
    .modern-dashboard .home-dashboard-header,
    .box,
    .small-box,
    .stats-card,
    .metric-card,
    .glass-card,
    .home-dashboard-card,
    .home-dashboard-glass-card,
    .auth-card,
    .register-card,
    .demo-card {
        border-radius: 20px !important;
    }

    .modern-dashboard .metrics-grid,
    .modern-dashboard .secondary-metrics,
    .modern-dashboard .home-dashboard-grid,
    .modern-dashboard .home-dashboard-secondary-grid,
    #transactions-panel .metrics-grid,
    .auth-hero-stats {
        grid-template-columns: 1fr;
    }

    .modern-dashboard .control-element,
    .modern-dashboard .home-dashboard-control {
        width: 100%;
    }
}
