/* Спільні стилі для хедера на всіх сторінках */
/* Перевірка редагування */

.site-header,
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.2;
}

.site-header a,
.site-header button,
.site-header input,
.site-header select,
.site-header textarea,
.site-header .dropdown-link,
.site-header .user-info,
.header a,
.header button,
.header input,
.header select,
.header textarea,
.header .dropdown-link,
.header .user-info {
    font-family: inherit;
}

/* Visibility Helpers */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

@media (max-width: 1050px) {
    .mobile-only {
        display: flex !important;
    }

    .desktop-only {
        display: none !important;
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1051px) {
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        justify-content: center;
    }
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    background: linear-gradient(90deg, #F5B041, #E67E22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 1px 2px;
    white-space: nowrap;
}

.logo i {
    -webkit-text-fill-color: #F5B041;
    background: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

@media (min-width: 1051px) {
    .nav {
        margin-left: 0;
        justify-content: center;
        grid-column: 2;
    }

    .logo {
        grid-column: 1;
        justify-self: start;
    }

    .user-menu.desktop-only {
        grid-column: 3;
        justify-self: end;
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1050px) {
    .nav .user-menu {
        margin-left: 0;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(230, 126, 34, 0.1);
        width: 100%;
        justify-content: flex-start;
    }
}

.nav-item {
    position: relative;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #444;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    min-width: fit-content;
    height: 38px;
    font-family: inherit;
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F5B041, #E67E22);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-btn:hover {
    background: rgba(230, 126, 34, 0.05);
    color: #E67E22;
}

.site-header button:hover,
.site-header button.nav-btn:hover,
.site-header .menu-toggle:hover,
.site-header .logout-btn:hover,
.site-header .admin-nav-btn:hover {
    transform: none !important;
}

.nav-btn:hover::after {
    width: 70%;
}

.nav-btn.active {
    background: rgba(230, 126, 34, 0.1);
    color: #E67E22;
    font-weight: 600;
}

.nav-btn.active::after {
    width: 80%;
}

.nav-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-btn:hover i {
    transform: translateY(-1px);
}

/* User Menu Common Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    border: 1px solid #e2e8f0;
}

.user-info i {
    color: #F5B041;
    font-size: 16px;
}

.logout-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.logout-btn:hover {
    background: rgba(230, 126, 34, 0.1);
    color: #E67E22;
}

/* Admin Panel Button */
.admin-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.admin-panel-btn:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white;
}

.admin-panel-btn i {
    font-size: 14px;
}

@media (max-width: 1050px) {
    .admin-panel-btn {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .admin-panel-btn span {
        display: none;
    }
}

/* Новий синій стиль для кнопки адмінки в центрі */
.admin-nav-btn {
    background: rgba(52, 152, 219, 0.1) !important;
    color: #2980b9 !important;
    border: 1px solid rgba(52, 152, 219, 0.2) !important;
    font-weight: 600 !important;
}

.admin-nav-btn:hover {
    background: #3498db !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.admin-nav-btn::after {
    background: #3498db !important;
}

#main-admin-panel .dropdown-link:hover {
    border-left-color: #3498db;
    color: #2980b9;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 9999;
    padding: 4px 0;
}

/* Invisible bridge to prevent closing when moving mouse over the gap */
.dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    max-width: 380px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.toast.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.toast.warning {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.toast.success {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.toast.loading {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast.toast-log {
    align-items: flex-start;
    max-width: 460px;
}

.toast.toast-log .toast-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast-log__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.toast-log__meta {
    font-size: 12px;
    line-height: 1.35;
    opacity: 0.84;
}

.toast-log__summary {
    font-size: 13px;
    line-height: 1.4;
}

.toast-log__list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    line-height: 1.35;
}

.toast.toast-log .toast-close {
    padding-left: 8px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0 0 10px;
}

.toast-close:hover {
    opacity: 1;
}

.toast-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: toast-spin 0.8s linear infinite;
}

@keyframes toast-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    #toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .toast,
    .toast.toast-log {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* Analytical Report Tool Enhancements */
.analytical-report-tool {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.report-selectors {
    display: flex;
    gap: 6px;
    align-items: center;
}

.report-selectors select {
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    outline: none;
    background: #f8fafc;
    cursor: pointer;
}

.report-run-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.report-run-btn:hover {
    background: #059669;
}

.report-settings-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.report-settings-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Stations Selection List in Modal */
.stations-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.station-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.station-checkbox-item:hover {
    background: #f1f5f9;
}

.station-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.station-checkbox-item span {
    font-size: 14px;
    color: #334155;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: rgba(230, 126, 34, 0.05);
    color: #E67E22;
    border-left-color: #E67E22;
    padding-left: 24px;
}

.dropdown-link.active {
    background: rgba(230, 126, 34, 0.09);
    color: #E67E22;
    border-left-color: #E67E22;
    padding-left: 24px;
    font-weight: 600;
}

.dropdown-link-content {
    flex: 1;
}

.dropdown-link small {
    display: block;
    color: #888;
    font-size: 11px;
    margin-top: 4px;
}

/* Tool Settings Button */
.tool-settings-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    margin-left: 8px;
    flex-shrink: 0;
}

.tool-settings-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(30deg);
}

/* Cyclic Settings Modal specific styles */
.cyclic-settings-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.cyclic-input-group {
    display: flex;
    gap: 8px;
}

.cyclic-hour-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    max-width: 120px;
}

.cyclic-hour-input:focus {
    border-color: #2563eb;
}

.cyclic-add-btn {
    background: #2563eb;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cyclic-add-btn:hover {
    background: #1d4ed8;
}

.cyclic-hours-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.hour-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.hour-tag i {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.hour-tag i:hover {
    opacity: 1;
    color: #ef4444;
}

.modal-hint-small {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

/* --- Nested Sub-dropdown Support --- */
.has-submenu {
    position: relative;
}

.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 2px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding: 4px 0;
}

/* Bridge for hover */
.sub-dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -10px;
    width: 10px;
    background: transparent;
}

.authorization-submenu > .sub-dropdown {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 2px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-10px);
}

.authorization-submenu > .sub-dropdown::after {
    left: -10px;
    right: auto;
}

.has-submenu:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 1050px) {
    .sub-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.02);
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 0.3s ease;
        padding: 0;
        visibility: visible;
        opacity: 1;
    }

    .has-submenu.active-mobile .sub-dropdown {
        max-height: 2000px;
        padding: 4px 0;
    }

}

/* Додаємо padding-top для body, щоб контент не перекривався з фіксованим хедером */
/* Кожна сторінка може мати свій padding, але мінімум 80px */
body {
    padding-top: 80px;
}

/* --- RESPONSIVE MENU (HAMBURGER) --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #444;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1001;
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #E67E22;
}

/* Проміжний розмір - компактні кнопки */
@media (max-width: 1200px) and (min-width: 1051px) {
    .header-content {
        padding: 0 15px;
    }

    .nav {
        gap: 3px;
    }

    .nav-btn {
        padding: 5px 8px;
        font-size: 12px;
        height: 32px;
    }

    .nav-item .nav-btn i.fa-chevron-down {
        margin-left: 2px;
        font-size: 8px;
    }

    .user-menu {
        margin-left: 6px;
        padding-left: 6px;
        gap: 4px;
    }

    .user-info {
        padding: 4px 8px;
        gap: 6px;
        font-size: 0.8rem;
    }

    .user-info i {
        font-size: 1rem;
    }

    .logout-btn {
        background: none;
        border: none;
        color: #E67E22;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .logout-text {
        font-size: 14px;
        font-weight: 500;
        color: #E67E22;
        margin-left: 4px;
        transition: opacity 0.2s;
    }
}

/* Мобільне меню (бутерброд) */
@media (max-width: 1050px) {

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding-right: 0;
    }

    .menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .logo {
        order: 1;
        min-width: 0;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 75px;
        right: 12px;
        width: min(300px, calc(100vw - 24px));
        max-height: calc(100vh - 100px);
        background: linear-gradient(165deg, #ffffff 0%, #fcfaf8 100%);
        padding: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        gap: 6px;
        z-index: 999;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px;
        border: 1px solid rgba(230, 126, 34, 0.1);
        overflow-y: auto;
        scrollbar-width: none;
        box-sizing: border-box;
        transform: translateX(calc(100% + 24px));
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav.active {
        transform: translateX(0);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(3px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        min-height: 48px;
        height: 48px;
        font-size: 14px;
        padding: 10px 14px;
        border-radius: 12px;
        background: transparent;
        box-sizing: border-box;
        line-height: 1.2;
        flex-shrink: 0;
    }

    .nav-btn:hover,
    .nav-btn.active {
        background: rgba(230, 126, 34, 0.06);
    }

    .nav-item {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .nav-btn::after {
        display: none;
        /* Hide underline on mobile */
    }

    .nav-item .nav-btn {
        width: 100%;
    }

    /* Adjust dropdowns for mobile */
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0 0 0 10px;
        margin-top: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        background: transparent;
    }

    .nav-item.active-mobile .dropdown {
        display: block;
    }

    .dropdown-link {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 10px;
        margin-bottom: 2px;
        flex-wrap: wrap;
        gap: 4px;
        box-sizing: border-box;
    }

    .dropdown-link:hover {
        padding-left: 16px;
    }

    .dropdown-link-content {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        line-height: 1.2;
    }

    .dropdown-link small {
        font-size: 10px;
        opacity: 0.8;
    }

    .badge-new {
        margin-left: 4px;
        padding: 1px 6px;
        font-size: 9px;
    }

    .nav-item .nav-btn i.fa-chevron-down {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .nav-item.active-mobile .nav-btn i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .analytical-report-tool {
        padding: 10px 12px;
    }

    .report-selectors {
        flex-wrap: wrap;
    }

    .report-selectors select {
        flex: 1;
        min-width: 60px;
    }
}

/* --- CONFIRMATION MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s;
    text-align: center;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-overlay .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.modal-overlay .modal-body {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 14px;
}

.modal-btn-cancel {
    background: #f1f2f6;
    color: #666;
}

.modal-btn-cancel:hover {
    background: #e4e6eb;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #F5B041, #E67E22);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 176, 65, 0.3);
}

.modal-btn-confirm:hover {
    box-shadow: 0 6px 16px rgba(245, 176, 65, 0.4);
    transform: translateY(-1px);
}

.badge-new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-dev {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.2);
}

.analytical-report-tool {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 20px;
}

.analytical-report-tool .dropdown-link-content {
    width: 100%;
}

.report-selectors {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

.report-selectors select {
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 12px;
    background: #f9f9f9;
    cursor: pointer;
    outline: none;
    flex: 0 0 auto;
    width: 50px;
    transition: all 0.2s;
}

#report-year {
    width: 65px;
}

.report-selectors select:focus {
    border-color: #E67E22;
    background: #fff;
}

.report-run-btn {
    background: linear-gradient(135deg, #F5B041, #E67E22);
    border: none;
    color: white;
    flex: 1;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.2);
    white-space: nowrap;
}

.report-run-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* --- ADMIN & MODAL STYLES --- */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
}

.admin-modal {
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 650px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal.show .admin-modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    background: #fff;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #1e293b;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-hint {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.4;
}

.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    border-radius: 0 0 20px 20px;
}

/* --- MMS AUTHORIZATION SEARCH --- */
.mms-authorization-tool {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mms-authorization-tool > i {
    color: #94a3b8;
    font-size: 12px;
}

.mms-auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.mms-auth-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mms-auth-modal {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    transform: translateY(12px) scale(0.98);
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mms-auth-modal-overlay.show .mms-auth-modal {
    transform: translateY(0) scale(1);
}

.mms-auth-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.mms-auth-modal__heading {
    min-width: 0;
    display: flex;
    align-items: center;
}

.mms-auth-modal__heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
}

.mms-auth-modal__close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 11px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.mms-auth-modal__close:hover:not(:disabled) {
    background: #fff3e6;
    color: #E67E22;
    transform: scale(1.04);
}

.mms-auth-modal__close:disabled {
    cursor: wait;
    opacity: 0.55;
}

.mms-auth-modal__body {
    min-height: 280px;
    padding: 22px 24px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mms-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mms-auth-tab {
    min-width: 104px;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.mms-auth-tab:hover {
    border-color: #F5B041;
    color: #E67E22;
}

.mms-auth-tab.is-active {
    border-color: transparent;
    background: linear-gradient(90deg, #F5B041, #E67E22);
    color: #fff;
    box-shadow: 0 8px 18px rgba(230, 126, 34, 0.22);
}

.mms-auth-search {
    position: relative;
}

.mms-auth-search > i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.mms-auth-search input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 16px 0 44px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.mms-auth-search input:focus {
    border-color: #E67E22;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.14);
}

.mms-auth-search input:disabled {
    cursor: wait;
    opacity: 0.65;
}

.mms-auth-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 2px 10px;
    color: #64748b;
    font-size: 12px;
}

.mms-auth-results {
    min-height: 126px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 4px 0;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.mms-auth-station {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #1e293b;
    text-align: left;
    cursor: default;
    transition: background 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.mms-auth-station:hover,
.mms-auth-station.is-selected {
    border-color: #F5B041;
    background: #fff7ed;
}

.mms-auth-station[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.55;
}

.mms-auth-station__select {
    min-width: 0;
    min-height: 36px;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.mms-auth-station__select:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.mms-auth-station__actions {
    min-width: 78px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.mms-auth-station__action {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff;
    color: #E67E22;
    cursor: pointer;
    transition: color 130ms ease, background 130ms ease, border-color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.mms-auth-station__action:hover,
.mms-auth-station__action:focus-visible {
    border-color: transparent;
    outline: none;
    background: linear-gradient(90deg, #F5B041, #E67E22);
    color: #fff;
    box-shadow: 0 6px 14px rgba(230, 126, 34, 0.22);
}

.mms-auth-station__action:active {
    transform: scale(0.96);
}

.mms-auth-station__action--isolated.is-unavailable {
    border-color: #e2e8f0;
    color: #94a3b8;
    background: #f8fafc;
}

.mms-auth-station__action--isolated.is-unavailable:hover,
.mms-auth-station__action--isolated.is-unavailable:focus-visible {
    border-color: #fed7aa;
    color: #E67E22;
    background: #fff7ed;
    box-shadow: none;
}

.mms-auth-station__name {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 600;
}

.mms-auth-station__arrow {
    color: #94a3b8;
    font-size: 12px;
}

.mms-auth-results__empty,
.mms-auth-state,
.mms-auth-extension-missing {
    flex: 1;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #64748b;
    text-align: center;
}

.mms-auth-results__empty {
    min-height: 130px;
    font-size: 13px;
}

.mms-auth-results__empty i,
.mms-auth-state > i {
    color: #94a3b8;
    font-size: 24px;
}

.mms-auth-feedback {
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.mms-auth-feedback:empty {
    display: none;
    min-height: 0;
    margin-top: 0;
}

.mms-auth-feedback--loading {
    color: #E67E22;
}

.mms-auth-feedback--error,
.mms-auth-state--error {
    color: #dc2626;
}

.mms-auth-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #fde4c7;
    border-top-color: #E67E22;
    border-radius: 50%;
    animation: mms-auth-spin 700ms linear infinite;
}

@keyframes mms-auth-spin {
    to { transform: rotate(360deg); }
}

.mms-auth-extension-missing__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(90deg, #F5B041, #E67E22);
    color: #fff;
    font-size: 24px;
}

.mms-auth-extension-missing h3 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
}

.mms-auth-extension-missing p {
    max-width: 390px;
    margin: -2px 0 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.mms-auth-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    background: linear-gradient(90deg, #F5B041, #E67E22);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.24);
    transition: filter 150ms ease, transform 150ms ease;
}

.mms-auth-primary-button:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .mms-auth-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .mms-auth-modal {
        width: 100%;
        max-height: 88vh;
        border-radius: 22px 22px 0 0;
    }

    .mms-auth-modal__header,
    .mms-auth-modal__body {
        padding-left: 18px;
        padding-right: 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .mms-auth-modal-overlay,
    .mms-auth-modal,
    .mms-auth-station {
        transition: none;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input[type='text'],
.form-group input[type='number'] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Sortable List Styles */
.sortable-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
}

.sort-item:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.sort-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
    background: #e0f2fe;
    border-color: #0ea5e9;
}

.sort-item-handle {
    color: #94a3b8;
    font-size: 14px;
}

.sort-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.sort-item-id {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.sort-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sort-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
    min-width: 0;
}

.sort-item-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sort-item-scada-info {
    display: flex;
    flex-direction: column;
}

.sort-item-scada-name {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.sort-item-display-input {
    flex: 1;
    max-width: 250px;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: all 0.2s !important;
}

.sort-item-display-input:focus {
    background: #fff !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
    outline: none !important;
}

.sort-item-settings-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

@media (min-width: 550px) {
    .sort-item-settings-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.st-setting-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.st-setting-field label {
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
    text-transform: uppercase;
    color: #64748b;
}

.st-setting-field input[type="number"] {
    width: 45px;
    padding: 3px 4px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    background: #fff;
}

.st-setting-zoryanska {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
}

.st-setting-zoryanska-title {
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
}

.st-setting-zoryanska-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.st-setting-zoryanska-card {
    min-width: 0;
    padding: 8px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.st-setting-zoryanska-card-title {
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #1d4ed8;
}

.st-setting-zoryanska-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.st-setting-zoryanska-group + .st-setting-zoryanska-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #bfdbfe;
}

.st-setting-zoryanska-group-title {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.st-setting-zoryanska-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.st-setting-zoryanska-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.st-setting-zoryanska-field label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
}

.st-setting-zoryanska-field input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 4px 6px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    background: #fff;
}

@media (max-width: 720px) {
    .st-setting-zoryanska-grid {
        grid-template-columns: 1fr;
    }
}

.btn-save,
.btn-cancel {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-save {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-loader {
    margin-left: 5px;
}

.hidden {
    display: none;
}

.sorting-btn {
    background: rgba(52, 152, 219, 0.1) !important;
    color: #2980b9 !important;
    border: 1px solid rgba(52, 152, 219, 0.2) !important;
}

.sorting-btn:hover {
    background: rgba(52, 152, 219, 0.2) !important;
}

/* Stations actions in Report Modal */
.stations-actions-row {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}

.station-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.station-action-btn i {
    font-size: 14px;
    opacity: 0.8;
}

.station-action-btn.select-all:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
    transform: translateY(-1px);
}

.station-action-btn.deselect-all:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    transform: translateY(-1px);
}

.station-action-btn:active {
    transform: translateY(0);
}

.icon-entsoe {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 21l-4-4 4-4'/%3E%3Cpath d='M3 17h18'/%3E%3Cpath d='M17 3l4 4-4 4'/%3E%3Cpath d='M21 7H3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 21l-4-4 4-4'/%3E%3Cpath d='M3 17h18'/%3E%3Cpath d='M17 3l4 4-4 4'/%3E%3Cpath d='M21 7H3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-nomination-fact {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M4 15l4-4 4 2 5-5 4 4'/%3E%3Cpath d='M4 19l4-2 4 1 5-4 4 2' stroke-dasharray='3 3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M4 15l4-4 4 2 5-5 4 4'/%3E%3Cpath d='M4 19l4-2 4 1 5-4 4 2' stroke-dasharray='3 3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-fes-analytics,
.icon-fes-generation-forecast {
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-fes-analytics::before {
    content: "\f5ba";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.icon-fes-generation-forecast::before {
    content: "\f185";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.icon-bess-analytics {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='16' height='12' rx='2'/%3E%3Cpath d='M21 10v4'/%3E%3Cpath d='M7 9v6'/%3E%3Cpath d='M10 9v4'/%3E%3Cpath d='M13 10v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.dropdown-link[data-page="bess_analytics"].active {
    background: transparent;
    color: #444;
    border-left-color: transparent;
    padding-left: 20px;
    font-weight: 400;
}
.icon-fes-analytics,
.icon-fes-generation-forecast {
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-fes-analytics::before {
    content: "\f5ba";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.icon-fes-generation-forecast::before {
    content: "\f185";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.icon-mms-reports::before {
    content: "\f15c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
