
/* =========================================================
   eBOSH authenticated application theme
   ========================================================= */
:root {
    --bg: #f4f7f5;
    --surface: #ffffff;
    --surface-2: #f8faf8;
    --ink: #17251f;
    --muted: #6f7a73;
    --line: #e1e8e3;
    --primary: #0b6b43;
    --primary-dark: #075033;
    --navy: #082a20;
    --navy-2: #061d17;
    --success: #0f8a54;
    --danger: #c84e3c;
    --warning: #d46b35;
    --shadow: 0 18px 45px rgba(21, 56, 38, .08);
}

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

.sidebar {
    background:
        radial-gradient(circle at 0% 0%, rgba(25,119,75,.22), transparent 34%),
        linear-gradient(180deg, #072c21 0%, #061e18 100%);
}
.ebosh-sidebar-brand {
    min-height: 106px;
    display: grid;
    gap: 3px;
    align-content: center;
    padding: 14px 22px 14px;
}
.ebosh-sidebar-logo {
    width: 174px;
    height: 58px;
    display: block;
    overflow: visible;
    background: transparent;
}
.ebosh-sidebar-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}
.ebosh-sidebar-brand .brand-subtitle {
    padding-left: 2px;
    color: #83ad99;
    font-size: .60rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.nav-item { color: #a7bdb2; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(31,128,79,.34), rgba(215,96,50,.10));
    box-shadow: inset 0 0 0 1px rgba(132,210,169,.15);
}

.topbar { background: rgba(255,255,255,.93); }
.eyebrow { color: #77847d; }

.btn-primary {
    background: linear-gradient(135deg, #0d7549, #075434);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(11,107,67,.16);
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0a653f, #06462e);
    border-color: transparent;
}
.btn-soft { color: #436052; background: #f3f7f4; border-color: #e0e8e3; }
.btn-soft:hover { background: #eaf2ed; }

.form-control:focus,
.form-select:focus {
    border-color: #65a886;
    box-shadow: 0 0 0 .22rem rgba(11,107,67,.10);
}

.avatar-soft { background: #e7f3ec; color: #0a6540 !important; }
.account-menu .topbar-user .avatar {
    background: linear-gradient(135deg,#e6f2eb,#eef5f1);
    color: #0b6b43;
    box-shadow: inset 0 0 0 1px rgba(11,107,67,.06);
}

.app-table tbody tr:hover { background: #f8fbf9; }
.stock-code { color: #0b6b43; }

@media (max-width: 991.98px) {
    .ebosh-sidebar-brand { min-height: 94px; }
}


/* =========================================================
   eBOSH v3.0 — Sidebar icon system
   ========================================================= */
.sidebar-nav .nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    column-gap: 13px;
    min-height: 48px;
    padding-left: 18px;
    padding-right: 16px;
    border-radius: 11px;
}

.sidebar-nav .nav-item > i {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    text-align: center;
    color: #86b5a0;
    opacity: .96;
    transition:
        color .18s ease,
        transform .18s ease,
        opacity .18s ease;
}

.sidebar-nav .nav-item > span {
    min-width: 0;
    line-height: 1.2;
}

.sidebar-nav .nav-item:hover > i {
    color: #dff5e9;
    opacity: 1;
    transform: translateY(-1px);
}

.sidebar-nav .nav-item.active {
    padding-left: 18px;
    background:
        linear-gradient(90deg, rgba(24, 112, 70, .30), rgba(255,255,255,.035));
    box-shadow:
        inset 0 0 0 1px rgba(137, 211, 171, .13);
}

.sidebar-nav .nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #d76a36;
    box-shadow: 0 0 10px rgba(215, 106, 54, .18);
}

.sidebar-nav .nav-item.active > i {
    color: #ffffff;
    opacity: 1;
}

.sidebar-nav .nav-item.active > span {
    color: #ffffff;
}

/* Keep icon geometry stable on narrower authenticated layouts. */
@media (max-width: 991.98px) {
    .sidebar-nav .nav-item {
        grid-template-columns: 24px minmax(0, 1fr);
    }
}


/* =========================================================
   eBOSH v3.1 — Sidebar brand plate
   ========================================================= */
.ebosh-sidebar-brand {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 16px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.ebosh-sidebar-logo {
    width: 100%;
    max-width: 202px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px 7px;
    overflow: visible;
    border-radius: 12px;
    background: #f3f5f2;
    border: 1px solid rgba(10, 55, 40, .08);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, .13),
        inset 0 1px 0 rgba(255, 255, 255, .92);
}

.ebosh-sidebar-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.ebosh-sidebar-brand .brand-subtitle {
    display: none !important;
}

@media (max-width: 991.98px) {
    .ebosh-sidebar-brand {
        min-height: 98px;
        padding: 12px 14px;
    }

    .ebosh-sidebar-logo {
        max-width: 190px;
        height: 62px;
        padding: 7px 9px 6px;
    }
}
