﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

/* Set width on the form input elements since they're 100% wide by default */
input:not(.form-control),
select:not(.form-control),
textarea:not(.form-control) {
    max-width: 280px;
}

/* Custom styles for the site */
/* - Corporate Admin - */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0B1F3A;
    --navy-mid: #152D50;
    --navy-dark: #0b2740;
    --navy-light: #1E3F6E;
    --teal: #0f8b8d;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-pale: #F5EDD4;
    --cream: #F8F5EF;
    --white: #FFFFFF;
    --text-dark: #0B1F3A;
    --text-mid: #3A5070;
    --text-muted: #7B92AB;
    --border: #DDE3EA;
    --border-dark: #C4CDD6;
    --success: #1A6B44;
    --success-bg: #EAF4EE;
    --primary: #0d6efd;
    --primary-bg: #EAF4EE;
    --danger: #8C1F1F;
    --danger-bg: #FAEAEA;
    --warning: #7A4F0A;
    --warning-bg: #FDF3E3;
    --sidebar-w: 300px;
    --blue: #336699;
    --coral: #c1503f;
    --lav: #6a5b9e;
    --ink: #232a33;
    --muted: #5c6772;
    --bg: #ffffff;
    --panel: #f6f8fa;
    --topbar-height: 60px;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    font-size: 1.0em;
}

/* ── SIDEBAR ── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100%;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid var(--navy-light);
    overflow: hidden; /* prevent outer scroll */
}


.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Style the scrollbar to match the dark sidebar */
    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: var(--navy-light);
        border-radius: 4px;
    }

        .sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }


.sidebar-logo {
    /*    padding: 20px auto;*/
    border-bottom: 1px solid var(--navy-light);
    text-align: center;
}

    .sidebar-logo .brand {
        font-family: 'EB Garamond', serif;
        font-size: 2.0em;
        font-weight: 600;
        color: var(--gold);
        letter-spacing: 0.04em;
        margin: 20px;
    }

    .sidebar-logo .brand-sub {
        font-size: 10px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-top: 12px;
    }

.sidebar-logo-img {
    width:160px;
    margin-top:20px;
}

.sidebar-section {
    padding: 20px 0 8px;
}

.sidebar-section-label {
    font-size: 1.0em;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 24px 8px;
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    color: #8BAAC6;
    font-size: 1.0em;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border-left: 3px solid transparent;
}

    .nav-item:hover {
        color: var(--white);
        background: rgba(255,255,255,0.05);
    }

    .nav-item.active {
        color: var(--white);
        background: rgba(201,168,76,0.1);
        border-left-color: var(--gold);
    }

    .nav-item svg {
        flex-shrink: 0;
        opacity: 0.8;
    }

    .nav-item.active svg {
        opacity: 1;
    }

.nav-badge {
    margin-left: auto;
    background: var(--gold);
    color: var(--navy);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--navy-light);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    flex-shrink: 0;
}

.user-name {
    font-size: 13px;
    color: var(--white);
    font-weight: 500;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}


.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
}

    .logout-btn:hover {
        color: var(--danger);
        background: var(--danger-bg);
    }


/* ── MAIN ── */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-family: Verdana, Geneva, Tahoma, sans-serif, serif;
    font-size: 22px;
    font-weight: 500;
    color: #003366;
}

.topbar-sub{
    font-family: Verdana, Geneva, Tahoma, sans-serif, serif;
    font-size: 14px;
    font-weight: 500;
    color: #003366;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-date {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.notif-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

    .notif-btn:hover {
        background: var(--cream);
    }

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px;
    height: 34px;
    width: 220px;
}

    .search-bar input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        color: var(--text-dark);
        width: 100%;
    }

        .search-bar input::placeholder {
            color: var(--text-muted);
        }

/* ── CONTENT ── */
.content {
    padding: 28px 32px;
    flex: 1;
}

/* ── KPI STRIP ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

    .kpi-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
    }

    .kpi-card.gold::before {
        background: var(--gold);
    }

    .kpi-card.navy::before {
        background: var(--navy);
    }

    .kpi-card.primary::before {
        background: var(--primary);
    }

    .kpi-card.navy-light::before {
        background: var(--navy-light);
    }

    .kpi-card.success::before {
        background: var(--success);
    }

    .kpi-card.blue::before {
        background: var(--blue);
    }

    .kpi-card.muted::before {
        background: var(--border-dark);
    }

.kpi-label {
    font-size: 1.0em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.kpi-value {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1;
}

.kpi-sub {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-delta {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

    .kpi-delta.up {
        background: var(--success-bg);
        color: var(--success);
    }

    .kpi-delta.down {
        background: var(--danger-bg);
        color: var(--danger);
    }

/* ── ROW LAYOUT ── */
.row-dashboard {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}
/*.row {
    display: flex;*/
    /*flex-wrap: wrap;*/
    /*gap: 20px;
    margin-bottom: 20px;
}*/

.row-dashboard.cols-3-2 {
    grid-template-columns: 3fr 2fr;
}

.row-dashboard.cols-2-3 {
    grid-template-columns: 2fr 3fr;
}

.row-dashboard.cols-4-2 {
    grid-template-columns: 4fr 2fr;
}

.row-dashboard.cols-equal {
    grid-template-columns: 1fr 1fr;
}

/* ── PANEL ── */
.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.panel-head {
    padding: 16px 22px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--navy);
}

.panel-action {
    font-size: 12px;
    color: var(--gold);
    cursor: pointer;
    letter-spacing: 0.04em;
    font-weight: 500;
}

    .panel-action:hover {
        text-decoration: underline;
    }

.panel-body {
    padding: 18px 22px;
}

/* ── TABLE ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table thead th {
        font-size: 10px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-muted);
        font-weight: 500;
        text-align: left;
        padding: 0 0 10px;
        border-bottom: 1px solid var(--border);
    }

    .data-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background 0.1s;
    }

        .data-table tbody tr:last-child {
            border-bottom: none;
        }

        .data-table tbody tr:hover {
            background: var(--cream);
        }

    .data-table tbody td {
        padding: 11px 0;
        font-size: 13px;
        color: var(--text-dark);
        vertical-align: middle;
    }

    .data-table td:not(:first-child) {
        padding-left: 12px;
    }


.membershipProductsTable th, td {
    padding: 4px;
}


.status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

    .status-pill.active {
        background: var(--success-bg);
        color: var(--success);
    }

    .status-pill.pending {
        background: var(--warning-bg);
        color: var(--warning);
    }

    .status-pill.inactive {
        background: #EEF2F6;
        color: var(--text-muted);
    }

    .status-pill.review {
        background: #EBF2FB;
        color: #185FA5;
    }

.dept-tag {
    font-size: 11px;
    color: var(--text-mid);
    background: #EEF2F6;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 400;
}

/* ── MINI CHART ── */
.sparkline-wrap {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.spark-bar {
    flex: 1;
    background: var(--navy-light);
    border-radius: 2px 2px 0 0;
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
}

    .spark-bar:hover {
        background: var(--gold);
    }

    .spark-bar.highlight {
        background: var(--gold);
    }

/* ── ACTIVITY FEED ── */
.feed-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .feed-item:last-child {
        border-bottom: none;
    }

.feed-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

    .feed-icon.blue {
        background: #EBF2FB;
    }

    .feed-icon.gold {
        background: var(--gold-pale);
    }

    .feed-icon.green {
        background: var(--success-bg);
    }

    .feed-icon.red {
        background: var(--danger-bg);
    }

.feed-text {
    flex: 1;
}

    .feed-text strong {
        font-weight: 500;
        color: var(--navy);
    }

.feed-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── SYSTEM HEALTH ── */
.health-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

    .health-row:last-child {
        border-bottom: none;
    }

.health-name {
    font-size: 13px;
    color: var(--text-dark);
    flex: 1;
}

.health-bar-wrap {
    width: 120px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.health-bar {
    height: 100%;
    border-radius: 3px;
}

.health-val {
    font-size: 12px;
    color: var(--text-muted);
    width: 36px;
    text-align: right;
}

.health-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .health-status.good {
        background: var(--success);
    }

    .health-status.warn {
        background: #D4870A;
    }

    .health-status.crit {
        background: var(--danger);
    }

/* ── QUICK ACTIONS ── */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--cream);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .action-btn:hover {
        background: var(--navy);
        border-color: var(--navy);
        color: var(--white);
    }

        .action-btn:hover .action-label {
            color: var(--white);
        }

        .action-btn:hover .action-desc {
            color: #8BAAC6;
        }

.action-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.action-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.action-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ── FOOTER ── */
.footer {
    background: var(--topbar-bg);
    color: var(--content-text);
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: auto;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 300px;
    width: calc(100% - 240px);
    background: var(--topbar-bg);
    color: var(--content-text);
    /*padding: 14px 24px;*/
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 1000;
}

.page-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 16px;
}

    .footer-links a:hover {
        color: var(--navy);
    }

/* ── DONUT ── */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.donut-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    font-size: 12px;
    color: var(--text-mid);
    flex: 1;
}

.legend-val {
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
}

input[readonly].detail {
    background-color: #FCFCFC;
}

/* Box Shadow Levels
--------------------------------------------------------------*/
.z-level-1dp {
    -moz-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
}

.z-level-2dp {
    -moz-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
}

.z-level-3dp {
    -moz-box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 3px 3px -2px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 3px 3px -2px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 3px 3px -2px rgba(0, 0, 0, 0.12);
}

.z-level-4dp {
    -moz-box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}

.z-level-5dp {
    -moz-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);
}

.z-level-6dp {
    -moz-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
}

.z-level-7dp {
    -moz-box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);
}

.z-level-8dp {
    -moz-box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
    -webkit-box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
}


