/* App-wide custom styles (Bootstrap 5 base loaded via CDN) */

[data-theme="light"] {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #6c757d;
    --sidebar-bg: #ffffff;
    --header-bg: #0d6efd;
    --card-bg: #ffffff;
    --body-bg: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --heading-color: #212529;
    --border-color: #dee2e6;
    --input-bg: #ffffff;
    --input-placeholder: #6c757d;
    --section-header-bg: #ffffff;
    --table-head-bg: #f8f9fa;
    --table-head-color: #212529;
    --table-hover-bg: #f1f3f5;
    --table-hover-color: #212529;
    --link-color: #0d6efd;
    --sidebar-link-color: #495057;
    --sidebar-link-hover-bg: #f8f9fa;
    --sidebar-link-active-bg: #e7f1ff;
    --sidebar-submenu-bg: #f8f9fa;
    --btn-primary-bg: #0d6efd;
    --btn-primary-hover: #0b5ed7;
    --btn-primary-border: #0d6efd;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --header-height: 56px;
    --transition-speed: 0.25s;
}

[data-theme="dark"] {
    --primary-color: #6ea8fe;
    --primary-hover: #9ec5fe;
    --secondary-color: #adb5bd;
    --sidebar-bg: #1a1d21;
    --header-bg: #212529;
    --card-bg: #2b3035;
    --body-bg: #121416;
    --text-color: #e9ecef;
    --text-muted: #adb5bd;
    --heading-color: #f8f9fa;
    --border-color: #495057;
    --input-bg: #343a40;
    --input-placeholder: #868e96;
    --section-header-bg: #2b3035;
    --table-head-bg: #343a40;
    --table-head-color: #f8f9fa;
    --table-hover-bg: #3d4449;
    --table-hover-color: #f8f9fa;
    --link-color: #6ea8fe;
    --sidebar-link-color: #ced4da;
    --sidebar-link-hover-bg: #343a40;
    --sidebar-link-active-bg: #0d6efd33;
    --sidebar-submenu-bg: #212529;
    --btn-primary-bg: #0d6efd;
    --btn-primary-hover: #0b5ed7;
    --btn-primary-border: #0d6efd;
}

[data-theme="blue"] {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary-color: #64748b;
    --sidebar-bg: #eff6ff;
    --header-bg: #1e3a8a;
    --card-bg: #ffffff;
    --body-bg: #f0f9ff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #bfdbfe;
    --sidebar-link-color: #334155;
    --sidebar-link-hover-bg: #dbeafe;
    --sidebar-link-active-bg: #bfdbfe;
    --sidebar-submenu-bg: #dbeafe;
    --btn-primary-bg: #1e3a8a;
    --btn-primary-hover: #1e40af;
    --btn-primary-border: #1e3a8a;
}

[data-theme="green"] {
    --primary-color: #15803d;
    --primary-hover: #166534;
    --secondary-color: #6b7280;
    --sidebar-bg: #f0fdf4;
    --header-bg: #15803d;
    --card-bg: #ffffff;
    --body-bg: #f7fee7;
    --text-color: #14532d;
    --text-muted: #6b7280;
    --border-color: #bbf7d0;
    --sidebar-link-color: #374151;
    --sidebar-link-hover-bg: #dcfce7;
    --sidebar-link-active-bg: #bbf7d0;
    --sidebar-submenu-bg: #dcfce7;
    --btn-primary-bg: #15803d;
    --btn-primary-hover: #166534;
    --btn-primary-border: #15803d;
}

[data-theme="purple"] {
    --primary-color: #7c3aed;
    --primary-hover: #6d28d9;
    --secondary-color: #6b7280;
    --sidebar-bg: #faf5ff;
    --header-bg: #7c3aed;
    --card-bg: #ffffff;
    --body-bg: #f5f3ff;
    --text-color: #4c1d95;
    --text-muted: #6b7280;
    --border-color: #ddd6fe;
    --sidebar-link-color: #374151;
    --sidebar-link-hover-bg: #ede9fe;
    --sidebar-link-active-bg: #ddd6fe;
    --sidebar-submenu-bg: #ede9fe;
    --btn-primary-bg: #7c3aed;
    --btn-primary-hover: #6d28d9;
    --btn-primary-border: #7c3aed;
}

[data-theme="corporate"] {
    --primary-color: #334155;
    --primary-hover: #1e293b;
    --secondary-color: #64748b;
    --sidebar-bg: #f8fafc;
    --header-bg: #0f172a;
    --card-bg: #ffffff;
    --body-bg: #f1f5f9;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --sidebar-link-color: #475569;
    --sidebar-link-hover-bg: #e2e8f0;
    --sidebar-link-active-bg: #cbd5e1;
    --sidebar-submenu-bg: #e2e8f0;
    --btn-primary-bg: #334155;
    --btn-primary-hover: #1e293b;
    --btn-primary-border: #334155;
}

[data-theme="personal"] {
    --primary-color: #334155;
    --primary-hover: #1e293b;
    --secondary-color: #64748b;
    --sidebar-bg: #f8fafc;
    --header-bg: #0f172a;
    --card-bg: #ffffff;
    --body-bg: #40E0D0;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --sidebar-link-color: #475569;
    --sidebar-link-hover-bg: #e2e8f0;
    --sidebar-link-active-bg: #cbd5e1;
    --sidebar-submenu-bg: #e2e8f0;
    --btn-primary-bg: #334155;
    --btn-primary-hover: #1e293b;
    --btn-primary-border: #334155;
}

[data-theme="energy_breeze"] {
    --primary-color: #3CB5E8;
    --primary-hover: #249FD3;
    --secondary-color: #F6A83B;
    --sidebar-bg: #66869A;
    --header-bg: #66869a;
    --body-bg: #F4F7F9;
    --card-bg: #FFFFFF;
    --section-header-bg: #FFFFFF;
    --text-color: #172033;
    --text-muted: #66788A;
    --heading-color: #142033;
    --border-color: #E2E8ED;
    --input-bg: #FFFFFF;
    --input-placeholder: #98A6B3;
    --table-head-bg: #3CB5E8;
    --table-head-color: #FFFFFF;
    --table-hover-bg: #F1F9FC;
    --table-hover-color: #172033;
    --link-color: #299FD7;
    --sidebar-link-color: #FFFFFF;
    --sidebar-link-hover-bg: #58798E;
    --sidebar-link-active-bg: #ffffff;
    --sidebar-submenu-bg: #58798E;
    --btn-primary-bg: #3CB5E8;
    --btn-primary-hover: #249FD3;
    --btn-primary-border: #3CB5E8;
    --success-color: #22A875;
    --success-bg: #E9F8F1;
    --warning-color: #F6A83B;
    --warning-bg: #FFF5E6;
    --danger-color: #E95D5D;
    --danger-bg: #FDECEC;
    --info-color: #3CB5E8;
    --info-bg: #EAF7FC;
}

:root {
    --primary-color: #08B8C0;
    --primary-hover: #0ACED6;
    --secondary-color: #1F4ED8;
    --sidebar-bg: #005B60;
    --header-bg: #005B60;
    --body-bg: #F5F8F9;
    --card-bg: #FFFFFF;
    --section-header-bg: #FFFFFF;
    --text-color: #172033;
    --text-muted: #667085;
    --heading-color: #172033;
    --border-color: #E4E8EC;
    --input-bg: #FFFFFF;
    --input-placeholder: #98A2B3;
    --table-head-bg: #EAF8F9;
    --table-head-color: #006B70;
    --table-hover-bg: #F0FAFA;
    --table-hover-color: #172033;
    --link-color: #00A9B2;
    --sidebar-link-color: #FFFFFF;
    --sidebar-link-hover-bg: #08777C;
    --sidebar-link-active-bg: #ffffff;
    --sidebar-submenu-bg: #004E53;
    --btn-primary-bg: #08B8C0;
    --btn-primary-hover: #009DA5;
    --btn-primary-border: #08B8C0;
}

body,
.app-header,
.app-sidebar,
.app-main,
.card,
.card-header,
.card-footer,
.table,
.form-control,
.form-select,
.sidebar-nav .nav-link,
.theme-settings-offcanvas {
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
}

.auth-wrapper {
    min-height: 100vh;
    background-color: var(--body-bg) !important;
}

.auth-card {
    max-width: 420px;
}

.form-text-muted {
    font-size: 0.8125rem;
}

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

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--heading-color);
}

.app-main a:not(.btn):not(.nav-link):not(.page-link) {
    color: var(--link-color);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.card-header {
    background-color: var(--section-header-bg);
    border-color: var(--border-color);
    color: var(--heading-color);
}

.card-section-header {
    background-color: var(--section-header-bg) !important;
    border-bottom: 1px solid var(--border-color);
    color: var(--heading-color);
}

.card-footer {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Definition lists (store detail sections) */

dl dt {
    color: var(--text-muted);
}

dl dd {
    color: var(--text-color);
}

.table {
    --bs-table-bg: var(--card-bg);
    --bs-table-color: var(--text-color);
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: var(--sidebar-link-hover-bg);
    --bs-table-striped-color: var(--text-color);
    --bs-table-hover-bg: var(--table-hover-bg);
    --bs-table-hover-color: var(--table-hover-color);
    --bs-table-active-bg: var(--table-hover-bg);
    --bs-table-active-color: var(--table-hover-color);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--text-color);
    border-bottom-color: var(--border-color);
}

.table-theme,
.table-light {
    --bs-table-bg: var(--table-head-bg);
    --bs-table-color: var(--table-head-color);
}

.table-theme > :not(caption) > * > *,
.table-light > :not(caption) > * > * {
    background-color: var(--table-head-bg);
    color: var(--table-head-color);
    border-bottom-color: var(--border-color);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: var(--table-hover-color);
    --bs-table-bg-state: var(--table-hover-bg);
    color: var(--table-hover-color);
    background-color: var(--table-hover-bg);
}

.form-control,
.form-select {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--input-placeholder);
    opacity: 1;
}

.form-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--sidebar-link-hover-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.pagination {
    --bs-pagination-bg: var(--card-bg);
    --bs-pagination-border-color: var(--border-color);
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-bg: var(--table-hover-bg);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-hover-border-color: var(--border-color);
    --bs-pagination-focus-bg: var(--table-hover-bg);
    --bs-pagination-focus-color: var(--primary-color);
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-disabled-bg: var(--card-bg);
    --bs-pagination-disabled-color: var(--text-muted);
    --bs-pagination-disabled-border-color: var(--border-color);
}

.page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--primary-color);
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

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

.modal-title {
    color: var(--heading-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .alert-success {
    background-color: #0f5132;
    border-color: #badbcc;
    color: #d1e7dd;
}

[data-theme="dark"] .alert-danger {
    background-color: #842029;
    border-color: #f5c2c7;
    color: #f8d7da;
}

[data-theme="dark"] .alert-warning {
    background-color: #664d03;
    border-color: #ffecb5;
    color: #fff3cd;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* App header */

.app-header {
    background-color: var(--header-bg) !important;
    min-height: var(--header-height);
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
}

.app-header .navbar-brand,
.app-header .nav-link,
.app-header .navbar-text {
    color: #fff !important;
}

.app-header .dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.app-header .dropdown-item {
    color: var(--text-color);
}

.app-header .dropdown-item:hover,
.app-header .dropdown-item:focus {
    background-color: var(--sidebar-link-hover-bg);
    color: var(--primary-color);
}

.app-header .dropdown-item-text,
.app-header .dropdown-header {
    color: var(--text-muted);
}

.sidebar-toggle-btn {
    color: #fff !important;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover,
.sidebar-toggle-btn:focus {
    color: #fff !important;
    opacity: 0.85;
}

/* App layout with sidebar */

.app-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.app-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width var(--transition-speed) ease;
}

.app-main {
    flex: 1;
    padding: 1.5rem;
    overflow-x: auto;
    background-color: var(--body-bg);
}

.sidebar-nav .nav-link {
    color: var(--sidebar-link-color);
    padding: 0.625rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 0;
    font-size: 0.9375rem;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--sidebar-link-hover-bg);
    color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
    background-color: var(--sidebar-link-active-bg);
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-icon {
    font-size: 1.125rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-module-toggle {
    font-weight: 500;
}

.sidebar-module-toggle .sidebar-chevron {
    transition: transform var(--transition-speed) ease;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.sidebar-module-toggle:not(.collapsed) .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    background-color: var(--sidebar-submenu-bg);
    padding: 0.25rem 0;
}

.sidebar-submenu .nav-link {
    padding-left: 3.25rem;
    font-size: 0.875rem;
}

.sidebar-group-toggle {
    font-weight: 500;
}

.sidebar-nested-submenu {
    background-color: transparent;
    padding: 0.15rem 0 0.35rem;
}

.sidebar-nested-submenu .nav-link {
    padding-left: 4.5rem;
    font-size: 0.8125rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .nav-link {
    color: var(--sidebar-link-color);
}

/* Collapsed sidebar */

html.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

html.sidebar-collapsed .sidebar-label,
html.sidebar-collapsed .sidebar-chevron,
html.sidebar-collapsed .sidebar-submenu {
    display: none !important;
}

html.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

html.sidebar-collapsed .sidebar-module-toggle.collapsed {
    /* keep chevron hidden anyway */
}

html.sidebar-collapsed .sidebar-footer .nav-link {
    justify-content: center;
}

/* Theme settings */

.theme-settings-offcanvas {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.theme-settings-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.theme-card {
    display: block;
    text-align: left;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease,
                transform var(--transition-speed) ease;
}

.theme-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.theme-card-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.theme-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 48px;
}

.theme-preview-stripe {
    display: block;
    min-height: 100%;
}

.theme-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.theme-card-title {
    font-size: 0.875rem;
}

.theme-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 991.98px) {
    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
    }

    html.sidebar-collapsed .app-sidebar {
        width: 100%;
    }

    html.sidebar-collapsed .sidebar-label,
    html.sidebar-collapsed .sidebar-chevron {
        display: inline !important;
    }

    html.sidebar-collapsed .sidebar-submenu {
        display: block !important;
    }

    html.sidebar-collapsed .sidebar-nav .nav-link {
        justify-content: flex-start;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Dashboard */

.dashboard-filter {
    width: auto;
    min-width: 10rem;
}

.dashboard-kpi {
    color: inherit;
}

.dashboard-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
}

.dashboard-kpi-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dashboard-kpi-sales .dashboard-kpi-icon {
    background: color-mix(in srgb, #0d6efd 16%, transparent);
    color: #0d6efd;
}

.dashboard-kpi-inventory .dashboard-kpi-icon {
    background: color-mix(in srgb, #fd7e14 16%, transparent);
    color: #fd7e14;
}

.dashboard-kpi-low-stock .dashboard-kpi-icon {
    background: color-mix(in srgb, #dc3545 16%, transparent);
    color: #dc3545;
}

.dashboard-kpi-low-sale .dashboard-kpi-icon {
    background: color-mix(in srgb, #7c3aed 16%, transparent);
    color: #7c3aed;
}

.dashboard-kpi-profit .dashboard-kpi-icon {
    background: color-mix(in srgb, #198754 16%, transparent);
    color: #198754;
}

.dashboard-kpi-scrap .dashboard-kpi-icon {
    background: color-mix(in srgb, #20c997 16%, transparent);
    color: #198754;
}

.dashboard-kpi-expense .dashboard-kpi-icon {
    background: color-mix(in srgb, #dc3545 16%, transparent);
    color: #dc3545;
}

.dashboard-kpi-final .dashboard-kpi-icon {
    background: color-mix(in srgb, #0d6efd 16%, transparent);
    color: #0d6efd;
}

.dashboard-period-presets .btn {
    min-width: 4.5rem;
}

.dashboard-pnl {
    max-width: 26rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-pnl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.4rem 0;
}

.dashboard-pnl-divider {
    border-top: 1px solid var(--bs-border-color);
    margin: 0.15rem 0 0.35rem;
}

.dashboard-pnl-total {
    font-weight: 600;
}

.dashboard-pnl-final {
    font-size: 1.1rem;
    font-weight: 700;
}

.dashboard-chart-wrap {
    position: relative;
    height: 280px;
}

.dashboard-row-link {
    cursor: pointer;
}

.dashboard-preview-table tbody tr.dashboard-row-link:hover > * {
    background-color: var(--table-hover-bg);
}

.badge.bg-purple {
    background-color: #7c3aed !important;
    color: #fff !important;
}

.dashboard-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.75rem;
}

.dashboard-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    min-height: 104px;
    box-shadow: 0 0.125rem 0.35rem color-mix(in srgb, var(--text-color) 6%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

button.dashboard-module {
    cursor: pointer;
    font: inherit;
}

.dashboard-module:hover,
.dashboard-module:focus-visible {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 0.4rem 0.9rem color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--text-color);
}

.dashboard-module-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dashboard-module-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--heading-color);
}

.dashboard-module-sales .dashboard-module-icon { background: color-mix(in srgb, #0d6efd 16%, transparent); color: #0d6efd; }
.dashboard-module-purchase .dashboard-module-icon { background: color-mix(in srgb, #0dcaf0 16%, transparent); color: #0aa2c0; }
.dashboard-module-inventory .dashboard-module-icon { background: color-mix(in srgb, #fd7e14 16%, transparent); color: #fd7e14; }
.dashboard-module-catalog .dashboard-module-icon { background: color-mix(in srgb, #6f42c1 16%, transparent); color: #6f42c1; }
.dashboard-module-buyback .dashboard-module-icon { background: color-mix(in srgb, #20c997 16%, transparent); color: #198754; }
.dashboard-module-scrap .dashboard-module-icon { background: color-mix(in srgb, #198754 16%, transparent); color: #198754; }
.dashboard-module-warranty .dashboard-module-icon { background: color-mix(in srgb, #0d6efd 16%, transparent); color: #0b5ed7; }
.dashboard-module-customers .dashboard-module-icon { background: color-mix(in srgb, #d63384 16%, transparent); color: #d63384; }
.dashboard-module-suppliers .dashboard-module-icon { background: color-mix(in srgb, #6c757d 16%, transparent); color: #495057; }
.dashboard-module-cash .dashboard-module-icon { background: color-mix(in srgb, #198754 16%, transparent); color: #157347; }
.dashboard-module-expenses .dashboard-module-icon { background: color-mix(in srgb, #dc3545 16%, transparent); color: #dc3545; }
.dashboard-module-vouchers .dashboard-module-icon { background: color-mix(in srgb, #fd7e14 16%, transparent); color: #e8590c; }
.dashboard-module-reports .dashboard-module-icon { background: color-mix(in srgb, #0d6efd 16%, transparent); color: #0d6efd; }
.dashboard-module-stores .dashboard-module-icon { background: color-mix(in srgb, #6610f2 16%, transparent); color: #6610f2; }
.dashboard-module-users .dashboard-module-icon { background: color-mix(in srgb, #0dcaf0 16%, transparent); color: #087990; }
.dashboard-module-settings .dashboard-module-icon { background: color-mix(in srgb, #6c757d 16%, transparent); color: #495057; }
