﻿#loading-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    text-align: center;
    top: 0;
    left: 0;
    z-index: 99999;
    background: rgba(0,0,0,.5);
    color: #eee;
    display: table;
}
#loading-overlay #loading-overlay-inner {
    display: table-cell;
    vertical-align: middle;
}
.chart-canvas-size {
    width: 100% !important;
    height: 100% !important;
}

/* ── Modern Sidebar ───────────────────────────────────────── */

/* Sidebar container */
.left__menu--container {
    background: #ffffff;
    border-right: 1px solid #f0ece8;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

/* Logo spacing on mobile */
.left__menu--container > img {
    margin-bottom: 16px !important;
    margin-top: 12px !important;
}

/* Remove default list padding/margin */
.left__menu--items {
    padding: 8px 0 !important;
    margin: 0 !important;
}

/* ── Main menu items ─────────────────────────────────────────────────── */
.each__menu--item,
.each__menu--item2 {
    margin-top: 4px !important;
    border-radius: 8px;
    margin-right: 10px;
    overflow: hidden;
}

.each__menu--item a,
.each__menu--item2 a {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: 8px;
    color: #F16532 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Icon sizing & colour */
.each__menu--item a svg,
.each__menu--item2 a svg {
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
    stroke: #F16532;
    margin-right: 0 !important;
    opacity: 0.85;
}

.each__menu--item a i,
.each__menu--item2 a i {
    flex-shrink: 0;
    font-size: 16px !important;
    color: #F16532 !important;
    width: 18px;
    text-align: center;
    margin-right: 0 !important;
    opacity: 0.85;
}

/* Hover state */
.each__menu--item:hover > a,
.each__menu--item2:hover > a {
    background: linear-gradient(90deg, #fff4ef 0%, #fff8f5 100%) !important;
    color: #c94b15 !important;
    padding-left: 18px !important;
    box-shadow: inset 3px 0 0 #F16532;
}

.each__menu--item:hover > a svg,
.each__menu--item2:hover > a svg {
    opacity: 1;
    stroke: #c94b15;
}

.each__menu--item:hover > a i,
.each__menu--item2:hover > a i {
    opacity: 1;
    color: #c94b15 !important;
}

/* Remove the right-edge bar on hover (replaced by background highlight) */
.each__menu--item:hover::after {
    display: none !important;
}

/* Active / current page indicator */
.each__menu--item.active > a,
.each__menu--item2.active > a {
    background: linear-gradient(90deg, #fff4ef 0%, #fff8f5 100%) !important;
    color: #c94b15 !important;
    font-weight: 600 !important;
    box-shadow: inset 3px 0 0 #F16532;
}

/* ── Dropdown toggle row ─────────────────────────────────────────────── */
.dropdown__menu {
    border-radius: 8px;
    margin-right: 10px;
}

.dropdown__menu > a {
    flex: 1;
}

/* Chevron icon within dropdown toggle */
.dropdown__menu > span svg {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.dropdown__menu:hover > span svg {
    opacity: 1;
}

/* ── Dropdown sub-menu items ─────────────────────────────────────────── */
.dropdown__menu--items {
    margin-left: 14px !important;
    margin-right: 10px;
    padding: 2px 0 4px !important;
}

.dropdown__menu--item {
    margin-top: 2px !important;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.dropdown__menu--item::before {
    width: 4px !important;
    height: 4px !important;
    opacity: 0.6;
    flex-shrink: 0;
}

.dropdown__menu--item span a {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #F16532 !important;
    letter-spacing: 0.01em;
}

.dropdown__menu--item:hover {
    background: linear-gradient(90deg, #fff4ef 0%, #fff8f5 100%);
    box-shadow: inset 3px 0 0 #F16532;
}

.dropdown__menu--item:hover span a {
    color: #c94b15 !important;
}

/* Active sub-item */
.dropdown__menu--item.sidebar__active {
    background: linear-gradient(90deg, #fff4ef 0%, #fff8f5 100%) !important;
    border-radius: 6px !important;
    box-shadow: inset 3px 0 0 #F16532;
}

.dropdown__menu--item.sidebar__active span a {
    color: #c94b15 !important;
    font-weight: 600 !important;
}

/* Left border line in sub-menu */
.left__border--line {
    display: none !important;
}

/* ── Section divider (8th item) ──────────────────────────────────────── */
#leftMenu > ul > li:nth-child(8) {
    border-bottom: 1px solid #f0ece8 !important;
    margin-right: 10px;
    padding-bottom: 10px !important;
    margin-bottom: 6px;
}