﻿/*---------------------------------------------------------------------------------------------
 *  Modernized ELIS UI Styles
 *  Preserves existing class names for drop-in compatibility.
 *--------------------------------------------------------------------------------------------*/

:root {
    --elis-primary: #2563eb;
    --elis-primary-dark: #1e40af;
    --elis-primary-soft: #dbeafe;
    --elis-primary-muted: #eff6ff;
    --elis-accent: #0ea5e9;
    --elis-success: #059669;
    --elis-text: #1f2937;
    --elis-text-muted: #64748b;
    --elis-border: #d8e1ec;
    --elis-border-soft: #e5edf6;
    --elis-surface: #ffffff;
    --elis-surface-soft: #f8fafc;
    --elis-surface-muted: #f1f5f9;
    --elis-sidebar: #1f2937;
    --elis-sidebar-hover: #334155;
    --elis-radius-sm: 0.375rem;
    --elis-radius: 0.625rem;
    --elis-radius-lg: 1rem;
    --elis-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --elis-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    --elis-shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.14);
    --elis-focus: 0 0 0 0.22rem rgba(37, 99, 235, 0.22);
    --elis-transition: 160ms ease;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    color: var(--elis-text);
    background: var(--elis-surface-soft);
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--elis-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color var(--elis-transition), background-color var(--elis-transition), border-color var(--elis-transition), box-shadow var(--elis-transition);
}

    a:hover,
    a:focus {
        color: var(--elis-primary-dark);
    }

button,
input,
select,
textarea,
.btn {
    font: inherit;
}

:focus-visible {
    outline: none;
    box-shadow: var(--elis-focus);
}

.file-over {
    border: 3px dashed var(--elis-primary);
    border-radius: var(--elis-radius-lg);
    background: rgba(37, 99, 235, 0.06);
}

    .file-over div,
    .file-over table {
        opacity: 0.55;
    }

.font-menu {
    color: #d6dee9;
}

.p-d {
    padding: 0.5rem;
}

.px-d {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-d {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pt-d {
    padding-top: 0.5rem;
}

.pb-d {
    padding-bottom: 0.5rem;
}

.ps-d {
    padding-left: 0.5rem;
}

.pe-d {
    padding-right: 0.5rem;
}

.m-d {
    margin: 0.5rem;
}

.mx-d {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.my-d {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.display-none {
    display: none !important;
}

.pointer {
    cursor: pointer;
}

.aunderline:hover {
    text-decoration: underline;
}

.text-light {
    color: #f8fafc !important;
}

.opacity-disabled {
    opacity: 0.5;
    filter: grayscale(0.25);
    pointer-events: none;
}

.forgot-password a.forget-password {
    color: var(--elis-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
}

    .forgot-password a.forget-password:hover {
        color: var(--elis-primary);
        text-decoration: underline;
    }

/* Switch */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 3.5rem;
    height: 2rem;
    margin-right: 0.625rem;
}

    .switch input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    width: 3.5rem;
    height: 2rem;
    background: #cbd5e1;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: background-color var(--elis-transition), box-shadow var(--elis-transition);
}

    .slider::before {
        position: absolute;
        content: "";
        width: 1.5rem;
        height: 1.5rem;
        left: 0.21875rem;
        bottom: 0.21875rem;
        background: #ffffff;
        box-shadow: var(--elis-shadow-sm);
        transition: transform var(--elis-transition);
    }

input:checked + .slider {
    background: var(--elis-primary);
}

input:focus-visible + .slider {
    box-shadow: var(--elis-focus);
}

input:checked + .slider::before {
    transform: translateX(1.5rem);
}

.slider.round {
    border-radius: 999px;
}

    .slider.round::before {
        border-radius: 50%;
    }

/* Breadcrumbs */
ol.breadcrumb,
ul.breadcrumb {
    background: transparent;
}

html .breadcrumb {
    background: linear-gradient(180deg, #edf5ff 0%, #e2ecf8 100%);
    border-top: 1px solid var(--elis-border);
    border-bottom: 1px solid var(--elis-border);
    border-radius: 0;
    color: var(--elis-text-muted);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}

    html .breadcrumb li,
    html .breadcrumb .active {
        color: var(--elis-text-muted);
    }

.breadcrumb > li + li::before {
    color: #7aa7d7;
}

.breadcrumb .fa-dashboard::before {
    content: "\f015";
}

/* Portlets / panels */
html body .portlet {
    border-radius: var(--elis-radius);
    overflow: hidden;
    background: var(--elis-surface);
    box-shadow: var(--elis-shadow-sm);
}

    html body .portlet > .portlet-title {
        border-radius: 0;
    }

body .portlet-title,
html body .portlet-title {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.portlet-title h3,
.portlet-title .caption {
    font-weight: 700;
    text-transform: uppercase;
}

    .portlet-title h3 small,
    .portlet-title .caption small {
        font-size: 0.8em;
        font-weight: 400;
        color: var(--elis-text-muted);
    }

html body .portlet-title > .caption,
html body .portlet-title h3,
html body .portlet.light > .portlet-title > .caption {
    padding: 0;
    float: none;
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0.5rem;
    color: var(--elis-primary-dark);
    font-weight: 500;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html .portlet.light.bordered {
    border: 1px solid var(--elis-border) !important;
}

html .portlet.light.portlet-fit > .portlet-title {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--elis-border);
    min-height: auto;
}

.panel-shadow {
    padding: 0.75rem;
    border-radius: var(--elis-radius);
    background: var(--elis-surface);
    box-shadow: var(--elis-shadow);
}

.databox {
    border: 1px solid var(--elis-border);
    border-radius: var(--elis-radius);
    background: var(--elis-surface);
    overflow: auto;
    box-shadow: var(--elis-shadow-sm);
}

/* Tables */
.table-data {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--elis-text);
    font-size: 1rem;
}

    .table-data th,
    .table-data td {
        min-width: 150px;
        padding: 0.75rem;
    }

html body .table,
html body .table-striped,
html body .table-striped-orders {
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--elis-surface);
    border: 1px solid var(--elis-border-soft);
    border-radius: var(--elis-radius);
    overflow: hidden;
    box-shadow: var(--elis-shadow-sm);
}

    html body .table thead tr,
    html body .table-striped thead tr,
    html body .table-striped-orders thead tr {
        background: linear-gradient(180deg, var(--elis-primary) 0%, var(--elis-primary-dark) 100%);
        color: #ffffff;
        text-align: left;
    }

        html body .table thead tr th a,
        html body .table-striped thead tr th a,
        html body .table-striped-orders thead tr th a {
            color: #ffffff;
            text-decoration: none;
        }

            html body .table thead tr th a:hover,
            html body .table-striped thead tr th a:hover,
            html body .table-striped-orders thead tr th a:hover {
                text-decoration: underline;
            }

        html body .table thead tr th ._720kb-datepicker-calendar-body a,
        html body .table-striped thead tr th ._720kb-datepicker-calendar-body a,
        html body .table-striped-orders thead tr th ._720kb-datepicker-calendar-body a {
            color: #000000;
        }

    html body .table th,
    html body .table td,
    html body .table-striped th,
    html body .table-striped td,
    html body .table-striped-orders th,
    html body .table-striped-orders td {
        padding: 0.75rem 0.9rem;
        border-color: var(--elis-border-soft);
        vertical-align: middle;
    }

    html body .table tbody tr,
    html body .table-striped tbody tr,
    html body .table-striped-orders tbody tr {
        border-bottom: 1px solid var(--elis-border-soft);
        transition: background-color var(--elis-transition);
    }

        body .table-striped > tbody > tr:nth-of-type(odd),
        html body .table-striped tbody tr:nth-of-type(even),
        html body .table-striped-orders tbody:nth-of-type(even) > tr {
            background: #f8fbff;
        }

        html body .table-striped tbody tr:nth-of-type(odd),
        html body .table-striped-orders tbody:nth-of-type(odd) > tr {
            background: var(--elis-surface);
        }

        html body .table tbody tr:hover,
        html body .table-striped tbody tr:hover,
        html body .table-striped-orders tbody tr:hover {
            background: #eef6ff;
        }

        html body .table tbody tr.active-row,
        html body .table-striped tbody tr.active-row,
        html body .table-striped-orders tbody tr.active-row {
            font-weight: 700;
            color: var(--elis-success);
        }

    html body .table thead tr.t-bg-fixed {
        background: var(--elis-primary) !important;
    }

.table-with-inputs tbody td span {
    display: inline-block;
    padding: 0.45rem;
}

.has-result td {
    background: rgba(14, 165, 233, 0.12);
}

/* Chooser menu */
.chooser-menu {
    float: left;
    font-size: 1.125rem;
}

    .chooser-menu > .nav > li > a:focus,
    .chooser-menu > .nav > li > a:hover,
    .chooser-sel,
    .chooser-sel a {
        background: var(--elis-sidebar-hover);
        color: #ffffff;
    }

body .notifyjs-corner {
    margin-top: 50px;
}

/* Login */
@media screen and (min-width: 980px) {
    html body.login-elis {
        background: radial-gradient(circle at top left, #eff6ff 0, #f8fafc 35%, #e5edf6 100%);
    }

    html body .user-login-elis {
        margin: 5rem auto 0;
        background: var(--elis-surface);
        min-height: 550px;
        overflow: hidden;
        width: min(60%, 1100px);
        border: 1px solid var(--elis-border-soft);
        border-radius: var(--elis-radius-lg);
        box-shadow: var(--elis-shadow-lg);
    }

        html body .user-login-elis .login-bg {
            background-size: cover;
            background-position: left center;
        }
}

@media screen and (max-width: 980px) {
    html body.login,
    html body.login-elis {
        background: var(--elis-surface);
    }

    html body .user-login-elis {
        margin: 0 auto;
        background: var(--elis-surface);
    }

        html body .user-login-elis .login-content,
        html body .user-login-elis .login-footer {
            margin: 0 auto;
        }

        html body .user-login-elis .login-bg {
            height: 40vh;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
        }
}

html body .user-login-elis .login-bg {
    text-align: center;
    padding-top: 20%;
}

html body .user-login-elis .login-logo {
    max-width: 80%;
    margin: 0 auto;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.16));
}

html body .user-login-elis .login-content {
    width: 95%;
}

html body .login-footer {
    text-align: center;
    width: 90%;
    margin: 1.5rem auto;
    color: var(--elis-text-muted);
}

.login-content h1 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.02em;
}

    .login-content h1 img {
        max-height: 42px;
        vertical-align: bottom;
    }

html .page-sidebar-menu {
    height: 100vh !important;
}
/* Sidebar / header */
html .page-sidebar .page-sidebar-menu > li.heading,
html .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu > li.heading {
    padding: 0;
}

html .page-sidebar-menu .heading > a {
    display: block;
}

html .page-sidebar-menu .heading i {
    display: inline-block;
    float: right;
    user-select: none;
}

html .logo-default {
    max-width: 100px;
    max-height: 28px;
    margin-top: 5px;
}

.page-header.navbar .menu-toggler.sidebar-toggler-left {
    float: left;
    margin-right: 15px;
    margin-top: 15px;
}

/* Page heading */
html section.content-header {
    margin: -25px -20px 20px;
}

    html section.content-header h1 {
        color: var(--elis-primary-dark);
        margin: 0;
        background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
        padding: 0.75rem 1rem;
        font-size: 0;
    }

        html section.content-header h1 small {
            font-size: 1.5rem;
            color: var(--elis-primary-dark);
            font-weight: 600;
        }

/* Menu grid */
.Menu .menu-row h4 {
    height: 20px;
}

.Menu .menu-row a {
    display: block;
    overflow: hidden;
    border-radius: var(--elis-radius);
    transition: background-color var(--elis-transition), transform var(--elis-transition), box-shadow var(--elis-transition);
}

    .Menu .menu-row a:hover {
        text-decoration: none;
        background: var(--elis-primary-muted);
        transform: translateY(-1px);
        box-shadow: var(--elis-shadow-sm);
    }

.Menu .menu-row .img-responsive {
    width: 70%;
    display: block;
    margin: 0 auto;
}

.Menu .menu-row .note {
    background: var(--elis-surface-muted);
    height: 80px;
    margin: 0 !important;
    color: var(--elis-text-muted);
}

.Menu h4 {
    font-weight: 800;
    color: #0f172a;
}

body .nav-pills > li > a,
body .nav-tabs > li > a {
    border-radius: var(--elis-radius-sm);
}

/* Mobile bottom nav */
.c-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.96);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-top: 1px solid var(--elis-border-soft);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(12px);
}

.c-nav-mobile-item {
    text-align: center;
    width: 20%;
    font-size: 0.95rem;
    color: var(--elis-text);
    text-decoration: none;
    transition: color var(--elis-transition), transform var(--elis-transition);
}

    .c-nav-mobile-item:hover,
    .c-nav-mobile-item:active {
        color: var(--elis-primary);
        text-decoration: none;
        transform: translateY(-1px);
    }

    .c-nav-mobile-item.active {
        color: var(--elis-primary);
        text-decoration: none;
        font-weight: 700;
    }

    .c-nav-mobile-item i {
        display: block !important;
        margin: 0 auto 0.45rem;
        font-size: 1.65rem;
    }

/* Content menu */
.content-menu,
.content-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .content-menu .sidebar-search {
        display: none;
    }

    .content-menu li a {
        display: block;
        padding: 0.85rem 1rem;
        font-size: 1.1rem;
        color: var(--elis-text);
        text-decoration: none;
        border-radius: var(--elis-radius-sm);
        transition: background-color var(--elis-transition), color var(--elis-transition);
    }

        .content-menu li a:hover {
            background: var(--elis-primary-muted);
            color: var(--elis-primary-dark);
        }

    .content-menu .sub-menu {
        display: none;
    }

/* Results sticky controls */
html body section.results-content-header {
    position: fixed;
    width: 100%;
    z-index: 6;
    background-color: var(--elis-bg) !important;
    margin-top: -20px !important;
}

.results-controls {
    position: fixed;
    width: 100%;
    top: 130px;
    padding: 10px;
    border-radius: 5px;
    z-index: 7;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(10px);
    margin-top: 5px;
}

.review-results-content {
    padding-top: 160px;
}

@media (max-width: 991px) {
    .review-results-content {
        padding-top: 350px;
    }
}

/* Buttons */
html body .btn {
    border-radius: var(--elis-radius-sm);
    box-shadow: var(--elis-shadow-sm);
    transition: transform var(--elis-transition), box-shadow var(--elis-transition), background-color var(--elis-transition), border-color var(--elis-transition), color var(--elis-transition);
}

    html body .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    }

    html body .btn:active {
        transform: translateY(0);
    }

@media (min-width: 992px) {
    .page-content-wrapper .page-content.sidebar-hidden {
        margin-left: 0;
    }

    body .page-sidebar-wrapper {
        position: fixed;
        max-height: calc(100vh - 50px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 991px) {
    body {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        min-height: 100vh;
    }

    html section.content-header h1,
    html section.content-header ol {
        padding-left: 2rem;
    }

    .page-footer {
        padding-bottom: 150px;
    }

    html body .page-header.navbar {
        padding: 0 20px;
        position: fixed;
        clear: both;
    }

    .results-content-header {
        width: 100%;
    }

    body .page-sidebar-menu {
        top: 25px;
        left: 0;
        position: fixed;
        z-index: 999;
        width: 100vw;
        max-height: 80vh;
        overflow: auto;
    }

    .page-content-wrapper {
        padding-top: 50px;
    }

    html .page-header.navbar .top-menu {
        clear: none;
    }
}

@media (max-width: 480px) {
    html .page-header.navbar .top-menu {
        clear: none;
    }

    html section.content-header h1 small {
        font-size: 1.25rem;
    }

    html body .table,
    html body .table-striped,
    html body .table-striped-orders {
        font-size: 0.85rem;
    }

        html body .table th,
        html body .table td,
        html body .table-striped th,
        html body .table-striped td,
        html body .table-striped-orders th,
        html body .table-striped-orders td {
            padding: 0.6rem;
        }
}


/* ================================
   ELIS MODERN OVERRIDE (STRONG)
   ================================ */

body {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: #1f2937;
    background: #f4f7fb;
}

/* ---------- CARDS / PORTLETS ---------- */

html body .portlet {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
    overflow: hidden;
}

html body .portlet-title {
    background: transparent !important;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 14px 18px !important;
}

    html body .portlet-title h3,
    html body .portlet-title .caption {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #374151 !important;
        letter-spacing: 0.4px;
    }

/* ---------- TABLES ---------- */

html body .table,
html body .table-striped,
html body .table-striped-orders {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e6ecf3 !important;
    box-shadow: none !important;
    background: #fff;
}

    html body .table thead tr,
    html body .table-striped thead tr,
    html body .table-striped-orders thead tr {
        background: #f8fafc !important;
        color: #6b7280 !important;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    html body .table th,
    html body .table td {
        padding: 10px 14px !important;
    }

    html body .table tbody tr {
        border-bottom: 1px solid #f1f5f9 !important;
    }

        html body .table tbody tr:hover {
            background: #f8fbff !important;
        }

    /* kill old blue gradient headers */
    html body .table thead tr th {
        background: transparent !important;
        color: #6b7280 !important;
    }

/* ---------- STATUS COLORS ---------- */

.status-online {
    color: #16a34a !important;
    font-weight: 600;
}

.status-offline {
    color: #dc2626 !important;
    font-weight: 600;
}

.status-warning {
    color: #f59e0b !important;
    font-weight: 600;
}

/* ---------- SIDEBAR ---------- */

.page-sidebar-wrapper {
    background: linear-gradient(180deg, #1f2937, #273548) !important;
    background: var(--elis-sidebar);
    box-shadow: var(--elis-shadow-lg);
}

.page-sidebar-menu > li > a {
    color: #cbd5e1 !important;
    padding: 12px 18px !important;
    border-radius: 8px;
    margin: 4px 10px;
    transition: all 0.2s ease;
}

    .page-sidebar-menu > li > a:hover {
        background: rgba(255,255,255,0.06) !important;
        color: #fff !important;
    }

.page-sidebar-menu > li.active > a {
    background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

/* ---------- TOP NAV ---------- */

.page-header.navbar {
    background: #1f2937 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ---------- BUTTONS ---------- */

html body .btn {
    border-radius: 10px !important;
    box-shadow: none !important;
    font-weight: 500;
}

/* ---------- BREADCRUMB ---------- */

html .breadcrumb {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0;
}

/* ---------- HEADERS ---------- */

html section.content-header h1 {
    background: transparent !important;
    padding: 10px 0 !important;
}

    html section.content-header h1 small {
        font-size: 22px;
        font-weight: 600;
        color: #1f2937 !important;
    }

/* ---------- USERS ONLINE FIX ---------- */

html body .table-striped tbody tr:nth-of-type(even),
html body .table-striped-orders tbody:nth-of-type(even) > tr {
    background-color: #fafafa !important;
}

/* ---------- REMOVE OLD LOOK ---------- */

.databox,
.panel,
.portlet.light.bordered {
    border: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05) !important;
}

/* =========================================================
   ELIS MODERN UI OVERRIDE
   Drop this LAST, after all existing ELIS / Bootstrap CSS.
   ========================================================= */

:root {
    --elis-bg: #f5f7fb;
    --elis-card: #ffffff;
    --elis-border: #dfe7f1;
    --elis-border-soft: #edf2f7;
    --elis-text: #1f2937;
    --elis-muted: #64748b;
    --elis-primary: #2563eb;
    --elis-primary-dark: #1d4ed8;
    --elis-sidebar: #1f2937;
    --elis-sidebar-2: #273548;
    --elis-sidebar-hover: rgba(255,255,255,0.07);
    --elis-radius: 10px;
    --elis-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

html,
body {
    background: var(--elis-bg) !important;
    color: var(--elis-text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
    font-size: 14px;
}

    /* Top navbar */
    html body .page-header.navbar {
        background: #1f2937 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        box-shadow: none !important;
    }

        html body .page-header.navbar .top-menu .navbar-nav > li.dropdown .dropdown-toggle {
            color: #dbeafe !important;
        }

    /* Sidebar */
    html body .page-sidebar,
    html body .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover {
        background: linear-gradient(180deg, var(--elis-sidebar), var(--elis-sidebar-2)) !important;
    }

        html body .page-sidebar .page-sidebar-menu > li > a,
        html body .page-sidebar-menu > li > a {
            color: #cbd5e1 !important;
            border: 0 !important;
            margin: 4px 8px !important;
            padding: 11px 14px !important;
            border-radius: 8px !important;
            transition: background .18s ease, color .18s ease, transform .18s ease;
        }

            html body .page-sidebar-menu > li > a:hover,
            html body .page-sidebar-menu > li.open > a {
                background: var(--elis-sidebar-hover) !important;
                color: #ffffff !important;
            }

    html body .page-sidebar-menu > li.active > a,
    html body .page-sidebar-menu > li.active.open > a {
        background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
        color: #ffffff !important;
        box-shadow: 0 6px 16px rgba(37,99,235,.32) !important;
    }

    html body .page-sidebar-menu .sub-menu > li > a {
        color: #aebccd !important;
        padding: 9px 18px 9px 42px !important;
    }

        html body .page-sidebar-menu .sub-menu > li.active > a,
        html body .page-sidebar-menu .sub-menu > li > a:hover {
            background: rgba(255,255,255,.08) !important;
            color: #ffffff !important;
        }

    /* Page header / breadcrumb */
    html section.content-header {
        margin: 0 !important;
        padding: 14px 18px 8px 18px !important;
        background: transparent !important;
    }

        html section.content-header h1 {
            background: transparent !important;
            padding: 0 !important;
            margin: 0 0 8px 0 !important;
            font-size: 0 !important;
        }

            html section.content-header h1 small {
                font-size: 22px !important;
                color: #111827 !important;
                font-weight: 650 !important;
            }

    html .breadcrumb,
    html body .breadcrumb {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
        color: var(--elis-muted) !important;
    }

    /* Portlets / panels */
    html body .portlet,
    html body .portlet.light.bordered,
    html body .panel,
    html body .databox {
        background: var(--elis-card) !important;
        border: 1px solid var(--elis-border) !important;
        border-radius: var(--elis-radius) !important;
        box-shadow: var(--elis-shadow) !important;
        overflow: hidden !important;
    }

        html body .portlet > .portlet-title,
        html body .portlet.light.portlet-fit > .portlet-title,
        html body .portlet-title {
            background: #eef5ff !important;
            border-bottom: 1px solid var(--elis-border) !important;
            padding: 11px 14px !important;
            min-height: auto !important;
        }

            html body .portlet-title > .caption,
            html body .portlet-title h3,
            html body .portlet.light > .portlet-title > .caption {
                color: #1e40af !important;
                font-size: 13px !important;
                font-weight: 700 !important;
                text-transform: uppercase !important;
                letter-spacing: .45px !important;
                margin: 0 !important;
            }

    /* Buttons */
    html body .btn {
        border-radius: 8px !important;
        border: 0 !important;
        box-shadow: none !important;
        font-weight: 650 !important;
        padding: 8px 13px !important;
    }

        html body .btn-primary,
        html body .blue,
        html body .btn.blue {
            background: #2f7ec1 !important;
            color: #ffffff !important;
        }

            html body .btn-primary:hover,
            html body .blue:hover,
            html body .btn.blue:hover {
                background: #256aa6 !important;
            }

    /* Tabs */
    html body .nav-tabs {
        border-bottom: 1px solid var(--elis-border) !important;
    }

        html body .nav-tabs > li > a {
            border: 0 !important;
            border-radius: 8px 8px 0 0 !important;
            color: var(--elis-primary) !important;
            font-weight: 500;
            padding: 10px 14px !important;
        }

        html body .nav-tabs > li.active > a,
        html body .nav-tabs > li.active > a:hover,
        html body .nav-tabs > li.active > a:focus {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid var(--elis-border) !important;
            border-bottom-color: #ffffff !important;
        }

    /* Search inputs */
    html body  input[type="text"],
    html body  input[type="search"],
    html body  input[type="email"],
    html body input[type="password"],
    html body  select,
    html body  textarea,
    html body .form-control {
        border-radius: 7px !important;
        border: 1px solid #cfd9e6 !important;
        box-shadow: none !important;
    }


        html body input:focus,
        html body select:focus,
        html body textarea:focus,
        html body .form-control:focus {
            border-color: #60a5fa !important;
            box-shadow: 0 0 0 3px rgba(96,165,250,.22) !important;
        }

    /* Tables */
    html body .table,
    html body .table-striped,
    html body .table-striped-orders {
        width: 100%;
        background: #ffffff !important;
        border: 1px solid var(--elis-border) !important;
        border-radius: 10px !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        font-size: 13px !important;
        margin: 14px 0 !important;
    }

        html body .table thead tr,
        html body .table-striped thead tr,
        html body .table-striped-orders thead tr {
            background: #f8fafc !important;
            color: #475569 !important;
        }

            html body .table thead tr th,
            html body .table-striped thead tr th,
            html body .table-striped-orders thead tr th {
                background: #f8fafc !important;
                color: #475569 !important;
                font-size: 12px !important;
                font-weight: 750 !important;
                text-transform: uppercase !important;
                letter-spacing: .45px !important;
                border-bottom: 1px solid var(--elis-border) !important;
                padding: 11px 12px !important;
                white-space: nowrap;
            }

                html body .table thead tr th a,
                html body .table-striped thead tr th a,
                html body .table-striped-orders thead tr th a {
                    color: #475569 !important;
                }

        html body .table tbody tr,
        html body .table-striped tbody tr,
        html body .table-striped-orders tbody tr {
            border-bottom: 1px solid var(--elis-border-soft) !important;
        }

            html body .table tbody tr:nth-of-type(even),
            html body .table-striped tbody tr:nth-of-type(even),
            html body .table-striped-orders tbody:nth-of-type(even) > tr {
                background: #f8fbff !important;
            }

            html body .table tbody tr:nth-of-type(odd),
            html body .table-striped tbody tr:nth-of-type(odd),
            html body .table-striped-orders tbody:nth-of-type(odd) > tr {
                background: #ffffff !important;
            }

            html body .table tbody tr:hover,
            html body .table-striped tbody tr:hover,
            html body .table-striped-orders tbody tr:hover {
                background: #eef6ff !important;
            }

        html body .table td,
        html body .table th,
        html body .table-striped td,
        html body .table-striped th,
        html body .table-striped-orders td,
        html body .table-striped-orders th {
            padding: 10px 12px !important;
            border-top: 0 !important;
            vertical-align: middle !important;
        }

        /* Links inside tables */
        html body .table a {
            color: #2563eb !important;
            font-weight: 500;
            text-decoration: none !important;
        }

            html body .table a:hover {
                text-decoration: underline !important;
            }

        /* Status text */
        html body td,
        html body .table td {
            color: #111827;
        }

            html body td:has(span),
            html body .status-online {
                font-weight: 600;
            }

.status-online,
.online {
    color: #16a34a !important;
}

.status-offline,
.offline,
.disconnected {
    color: #dc2626 !important;
}

.status-warning,
.warning {
    color: #d97706 !important;
}

/* Small color squares in order list */
html body .table td span[style*="background"],
html body .table td div[style*="background"] {
    border-radius: 3px !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

/* Content spacing */
html body .page-content-wrapper .page-content {
    background: var(--elis-bg) !important;
    padding: 18px !important;
}

html body .row {
    margin-left: -10px;
    margin-right: -10px;
}

html body [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* Utility */
html body .panel-shadow {
    border-radius: var(--elis-radius) !important;
    box-shadow: var(--elis-shadow) !important;
    border: 1px solid var(--elis-border) !important;
}

/* Scrollbars */
html body ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html body ::-webkit-scrollbar-track {
    background: #eef2f7;
}

html body ::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
    border: 2px solid #eef2f7;
}

    html body ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }

/* Mobile */
@media (max-width: 991px) {
    html body .page-content-wrapper .page-content {
        padding: 14px !important;
    }

    html body .page-sidebar-menu {
        background: #1f2937 !important;
    }

    html body .table,
    html body .table-striped,
    html body .table-striped-orders {
        font-size: 12px !important;
    }
}


/*
    Adjust
*/

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

html body .table a.btn-primary {
    color: #ffffff !important;
}

html body .portlet > .portlet-title > .actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 5px;
    flex-wrap: wrap;
}

.header-label-print {
    margin-left: 10px;
    margin-right: 10px;
}

.jc-end {
    justify-content: end;
}

html body .tr-lab-abnormal td {
    background-color: rgba(255,0,0,0.5) !important;
}