﻿/* ============================================================
   IES MANAGER — BRAND THEME
   Base: ies-co.com (color-matched from site header)
   Extended: IES Holdings brand system (Safety deck palette)
   Font: Arial / Helvetica Neue
   NOTE: Logo markup is untouched — do not modify logo src or filter
============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────────────── */
:root {
    /* PRIMARY PALETTE */
    --ies-header-bg: #3d5a6e; /* Steel blue-teal — header/nav/sidebar */
    --ies-dark-teal: #2e4558; /* Darker teal — footer, deep sections */
    --ies-light-teal: #4e7a94; /* Light teal — hover states, secondary accents */
    --ies-red: #c0392b; /* Red accent — highlights, danger */
    --ies-white: #ffffff;
    --ies-off-white: #f4f6f8; /* Page background */
    --ies-body-text: #333d47; /* Primary body text */
    --ies-mid-gray: #5c6e7d; /* Secondary / muted text */
    --ies-light-gray: #d0dae2; /* Borders, dividers */
    --ies-accent-bg: #eaf0f5; /* Table rows, callout backgrounds */
    /* STATUS / SEMANTIC */
    --ies-green: #27ae60;
    --ies-green-dark: #2e7d32;
    --ies-green-bg: #e8f5e9;
    --ies-green-border: #a5d6a7;
    --ies-yellow: #f39c12;
    --ies-yellow-bg: #fff8e1;
    --ies-yellow-border: #ffcc80;
    --ies-orange-bg: #fff3e0;
    --ies-orange-border: #ffcc80;
    --ies-blue: #1565c0;
    --ies-blue-bg: #e3f2fd;
    --ies-purple: #9b59b6;
    --ies-danger-bg: #feecec;
    /* EXTENDED NEUTRALS */
    --ies-text: #1e293b;
    --ies-muted: #64748b;
    --ies-border: #e2e8f0;
    /* CHART PALETTE (ordered series) */
    --ies-chart-1: #2e4558;
    --ies-chart-2: #c0392b;
    --ies-chart-3: #27ae60;
    --ies-chart-4: #f39c12;
    --ies-chart-5: #4e7a94;
    --ies-chart-6: #9b59b6;
    --ies-chart-7: #a0bac8;
    /* TYPOGRAPHY */
    --font-main: 'Arial', 'Helvetica Neue', sans-serif;
    --font-size-base: 14px;
    /* SPACING */
    --ies-space-xs: 0.25rem;
    --ies-space-sm: 0.5rem;
    --ies-space-md: 1rem;
    --ies-space-lg: 1.5rem;
    --ies-space-xl: 2rem;
    /* BORDERS & SHADOWS */
    --ies-radius-sm: 3px;
    --ies-radius-md: 6px;
    --ies-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --ies-shadow-md: 0 4px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
    /* TRANSITIONS */
    --ies-transition: 150ms ease;
    /* BOOTSTRAP OVERRIDES */
    --bs-primary: #3d5a6e;
    --bs-primary-rgb: 61, 90, 110;
    --bs-secondary: #5c6e7d;
    --bs-danger: #c0392b;
    --bs-success: #27ae60;
    --bs-info: #3498db;
    --bs-warning: #f39c12;
    --bs-light: #f4f6f8;
    --bs-dark: #2e4558;
    --bs-body-bg: #f4f6f8;
    --bs-body-color: #333d47;
}


/* ── Global ────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    color: var(--ies-body-text);
    background: var(--ies-off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ies-header-bg);
    text-decoration: none;
}

    a:hover {
        color: var(--ies-dark-teal);
        text-decoration: underline;
    }


/* ── Typography ────────────────────────────────────────────────────── */
.ies-section-title,
h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ies-header-bg);
    border-bottom: 2px solid var(--ies-header-bg);
    padding-bottom: 6px;
    margin-bottom: 16px;
    margin-top: 32px;
}

h2 {
    font-size: 18px;
}

h3 {
    font-size: 16px;
}

h4 {
    font-size: 14px;
}

h5, h6, .ies-section-title {
    font-size: 11px;
}

.text-primary {
    color: var(--ies-header-bg) !important;
}

.text-secondary {
    color: var(--ies-mid-gray) !important;
}

.text-muted {
    color: var(--ies-muted);
}

.text-success {
    color: var(--ies-green);
}

.text-warning {
    color: var(--ies-yellow);
}

.text-danger {
    color: var(--ies-red);
}

.text-info {
    color: var(--ies-blue);
}

.fw-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ── Header / Navbar ───────────────────────────────────────────────── */
.navbar {
    background: var(--ies-header-bg) !important;
    padding: 0 1.5rem;
    min-height: 72px;
    border-bottom: none;
    box-shadow: var(--ies-shadow-md);
}

/* Logo slot — sizing only; logo src/content is untouched */
.navbar-brand {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    text-decoration: none;
    padding: 0;
}

    .navbar-brand img {
        height: 40px;
        width: auto;
    }

/* CSS-rendered logo elements (if used) */
.ies-logo-mark {
    display: flex;
    align-items: center;
}

.ies-logo-ies {
    font-size: 32px;
    font-weight: 900;
    color: var(--ies-white);
    letter-spacing: -1px;
    line-height: 1;
}

.ies-logo-dot {
    width: 8px;
    height: 8px;
    background: var(--ies-red);
    border-radius: 50%;
    margin-left: 2px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.ies-logo-sub {
    font-size: 9px;
    color: var(--ies-white);
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-left: 8px;
    margin-bottom: 2px;
    opacity: 0.9;
}

.navbar-nav .nav-link {
    color: var(--ies-white) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.5rem 1rem;
    border-radius: var(--ies-radius-sm);
    transition: background var(--ies-transition);
}

    .navbar-nav .nav-link:hover {
        color: var(--ies-light-gray) !important;
        background: rgba(255,255,255,0.10);
    }

    .navbar-nav .nav-link.active {
        background: rgba(255,255,255,0.15);
        color: var(--ies-white) !important;
        font-weight: 700;
    }


/* ── Sidebar / Nav Menu ────────────────────────────────────────────── */
.sidebar,
.nav-menu {
    background: var(--ies-header-bg);
    min-height: 100%;
}

    .sidebar .nav-item .nav-link,
    .nav-menu .nav-link {
        color: var(--ies-white);
        font-size: 13px;
        font-weight: 600;
        padding: 0.75rem 1rem;
        border-left: 3px solid transparent;
        transition: background var(--ies-transition), border-color var(--ies-transition);
    }

        .sidebar .nav-item .nav-link:hover,
        .nav-menu .nav-link:hover {
            background: rgba(255,255,255,0.10);
        }

        .sidebar .nav-item .nav-link.active,
        .nav-menu .nav-link.active {
            background: var(--ies-dark-teal);
            border-left-color: var(--ies-red);
            font-weight: 700;
        }

.ies-sidebar-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    padding: var(--ies-space-sm) var(--ies-space-md) var(--ies-space-xs);
}


/* ── Page Title Band ───────────────────────────────────────────────── */
.page-title-band {
    background: var(--ies-dark-teal);
    color: var(--ies-white);
    padding: 30px 40px;
    border-left: 5px solid var(--ies-red);
    margin: 0 -1rem 2rem -1rem;
}

    .page-title-band h1 {
        font-size: 24px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--ies-white);
        margin: 0;
        border: none;
        padding: 0;
    }

    .page-title-band .ies-page-subtitle {
        color: rgba(255,255,255,0.65);
        font-size: 0.875rem;
        margin: var(--ies-space-xs) 0 0;
        letter-spacing: 0;
        text-transform: none;
        border: none;
    }


/* ── Footer ────────────────────────────────────────────────────────── */
.ies-footer {
    background: var(--ies-dark-teal);
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    padding: var(--ies-space-sm) var(--ies-space-xl);
    text-align: center;
    border-top: 2px solid var(--ies-header-bg);
}


/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--ies-light-gray);
    border-radius: var(--ies-radius-sm);
    background: var(--ies-white);
    box-shadow: var(--ies-shadow-sm);
}

.card-header {
    background: var(--ies-header-bg);
    color: var(--ies-white);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: none;
}

    .card-header.bg-primary,
    .card-header.bg-success,
    .card-header.bg-warning,
    .card-header.bg-info {
        color: var(--ies-white);
    }

/* Accent-left variants */
.ies-card-accent {
    border-left: 4px solid var(--ies-dark-teal);
}

.ies-card-accent-red {
    border-left: 4px solid var(--ies-red);
}

.ies-card-accent-green {
    border-left: 4px solid var(--ies-green);
}

.ies-card-accent-yellow {
    border-left: 4px solid var(--ies-yellow);
}

.ies-card-accent-blue {
    border-left: 4px solid var(--ies-blue);
}


/* ── KPI / Stat Cards ──────────────────────────────────────────────── */
.ies-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--ies-space-md);
    margin-bottom: var(--ies-space-lg);
}

/* Legacy stat card */
.ies-stat-card {
    background: var(--ies-white);
    border: 1px solid var(--ies-light-gray);
    border-left: 4px solid var(--ies-red);
    padding: 20px;
    text-align: center;
    box-shadow: var(--ies-shadow-sm);
    border-radius: var(--ies-radius-sm);
}

    .ies-stat-card .stat-value {
        font-size: 32px;
        font-weight: 700;
        color: var(--ies-header-bg);
    }

    .ies-stat-card .stat-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--ies-mid-gray);
    }

/* Extended KPI tile */
.ies-kpi {
    background: var(--ies-white);
    border: 1px solid var(--ies-light-gray);
    border-left: 4px solid var(--ies-dark-teal);
    border-radius: var(--ies-radius-sm);
    box-shadow: var(--ies-shadow-sm);
    padding: var(--ies-space-md);
}

    .ies-kpi.kpi-green {
        border-left-color: var(--ies-green);
    }

    .ies-kpi.kpi-red {
        border-left-color: var(--ies-red);
    }

    .ies-kpi.kpi-yellow {
        border-left-color: var(--ies-yellow);
    }

    .ies-kpi.kpi-blue {
        border-left-color: var(--ies-blue);
    }

.ies-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ies-header-bg);
    line-height: 1;
}

.ies-kpi-label {
    font-size: 0.8rem;
    color: var(--ies-mid-gray);
    margin-top: var(--ies-space-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ies-kpi-delta {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: var(--ies-space-xs);
}

    .ies-kpi-delta.up {
        color: var(--ies-red);
    }

    .ies-kpi-delta.down {
        color: var(--ies-green);
    }


/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--ies-header-bg);
    border-color: var(--ies-header-bg);
    color: var(--ies-white);
    font-weight: 600;
    letter-spacing: 0.5px;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: var(--ies-dark-teal);
        border-color: var(--ies-dark-teal);
        color: var(--ies-white);
    }

.btn-outline-primary {
    color: var(--ies-header-bg);
    border-color: var(--ies-header-bg);
}

    .btn-outline-primary:hover {
        background: var(--ies-header-bg);
        border-color: var(--ies-header-bg);
        color: var(--ies-white);
    }

.btn-danger {
    background: var(--ies-red);
    border-color: var(--ies-red);
    color: var(--ies-white);
}

    .btn-danger:hover {
        background: #a8321f;
        border-color: #a8321f;
    }

.btn-secondary {
    background: var(--ies-off-white);
    border-color: var(--ies-light-gray);
    color: var(--ies-body-text);
    font-weight: 600;
}

    .btn-secondary:hover {
        background: var(--ies-light-gray);
        border-color: var(--ies-mid-gray);
    }


/* ── Tables ────────────────────────────────────────────────────────── */
.table {
    font-size: 13px;
}

    .table thead tr {
        background: var(--ies-header-bg);
        color: var(--ies-white);
    }

    .table thead {
        --bs-table-color: var(--ies-white);
        --bs-table-color-state: var(--ies-white);
        --bs-table-color-type: var(--ies-white);
    }

        .table thead th {
            padding: 10px 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 11px;
            border: none;
            color: var(--ies-white) !important;
            border-bottom: 2px solid var(--ies-red);
        }

    .table tbody tr:nth-child(even) {
        background: var(--ies-accent-bg);
    }

    .table tbody tr:hover {
        background: #d8e6f0;
    }

    .table td {
        padding: 9px 14px;
        border-bottom: 1px solid var(--ies-light-gray);
        vertical-align: middle;
    }

    .table tfoot td {
        font-weight: 700;
        background: var(--ies-accent-bg);
        border-top: 2px solid var(--ies-light-gray);
        color: var(--ies-dark-teal);
    }


/* ── Forms ─────────────────────────────────────────────────────────── */
.form-control,
.form-select {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--ies-body-text);
    border: 1px solid var(--ies-light-gray);
    border-radius: var(--ies-radius-sm);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--ies-header-bg);
        box-shadow: 0 0 0 0.2rem rgba(61,90,110,0.25);
        outline: none;
    }

    .form-control.is-invalid, .form-select.is-invalid {
        border-color: var(--ies-red);
        box-shadow: 0 0 0 0.2rem rgba(192,57,43,0.15);
    }

.form-label, label {
    color: var(--ies-dark-teal);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.ies-input-hint {
    font-size: 0.78rem;
    color: var(--ies-mid-gray);
    margin-top: 0.25rem;
}

.ies-validation-msg {
    font-size: 0.78rem;
    color: var(--ies-red);
    margin-top: 0.25rem;
    font-weight: 600;
}


/* ── Alerts ────────────────────────────────────────────────────────── */
.alert-info {
    background: var(--ies-accent-bg);
    border-left: 4px solid var(--ies-header-bg);
    border-top: none;
    border-right: none;
    border-bottom: none;
    color: var(--ies-body-text);
}

.alert-success {
    background: var(--ies-green-bg);
    border-left: 4px solid var(--ies-green);
    border-top: none;
    border-right: none;
    border-bottom: none;
    color: var(--ies-body-text);
}

.alert-warning {
    background: var(--ies-orange-bg);
    border-left: 4px solid var(--ies-yellow);
    border-top: none;
    border-right: none;
    border-bottom: none;
    color: var(--ies-body-text);
}

.alert-danger {
    background: var(--ies-danger-bg);
    border-left: 4px solid var(--ies-red);
    border-top: none;
    border-right: none;
    border-bottom: none;
    color: var(--ies-body-text);
}


/* ── Badges ────────────────────────────────────────────────────────── */
.badge.bg-primary {
    background: var(--ies-header-bg) !important;
}

.badge.bg-danger {
    background: var(--ies-red) !important;
}

.badge.bg-dark {
    background: var(--ies-dark-teal) !important;
}

.badge.bg-success {
    background: var(--ies-green) !important;
}

.badge.bg-warning {
    background: var(--ies-yellow) !important;
    color: #333 !important;
}

/* Status pill variants */
.ies-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ies-badge-active {
    background: var(--ies-danger-bg);
    color: var(--ies-red);
    border-color: var(--ies-red);
}

.ies-badge-open {
    background: var(--ies-yellow-bg);
    color: #7d4e00;
    border-color: var(--ies-yellow-border);
}

.ies-badge-progress {
    background: var(--ies-blue-bg);
    color: var(--ies-blue);
    border-color: var(--ies-blue);
}

.ies-badge-complete {
    background: var(--ies-green-bg);
    color: var(--ies-green-dark);
    border-color: var(--ies-green-border);
}

.ies-badge-urgent {
    background: var(--ies-red);
    color: var(--ies-white);
}

.ies-badge-neutral {
    background: var(--ies-light-gray);
    color: var(--ies-mid-gray);
}


/* ── Tabs ──────────────────────────────────────────────────────────── */
.nav-tabs .nav-link {
    color: var(--ies-mid-gray);
    border: 1px solid transparent;
    font-size: 13px;
    transition: color var(--ies-transition), border-color var(--ies-transition);
}

    .nav-tabs .nav-link:hover {
        border-color: var(--ies-light-gray);
        color: var(--ies-header-bg);
    }

    .nav-tabs .nav-link.active {
        color: var(--ies-header-bg);
        background: var(--ies-white);
        border-color: var(--ies-light-gray) var(--ies-light-gray) var(--ies-white);
        font-weight: 600;
        border-bottom-color: var(--ies-red);
    }


/* ── Modals ────────────────────────────────────────────────────────── */
.modal-header {
    background: var(--ies-header-bg);
    color: var(--ies-white);
    border-bottom: none;
}

    .modal-header .btn-close {
        filter: invert(1);
    }

.modal-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ies-white);
}


/* ── Progress Bars ─────────────────────────────────────────────────── */
.progress {
    background-color: var(--ies-accent-bg);
    height: 20px;
    border-radius: var(--ies-radius-sm);
}

.progress-bar {
    background-color: var(--ies-header-bg);
}

    .progress-bar.bg-success {
        background-color: var(--ies-green) !important;
    }

    .progress-bar.bg-warning {
        background-color: var(--ies-yellow) !important;
    }

    .progress-bar.bg-danger {
        background-color: var(--ies-red) !important;
    }


/* ── Dropdowns ─────────────────────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid var(--ies-light-gray);
    border-radius: var(--ies-radius-sm);
}

.dropdown-item:hover {
    background: var(--ies-accent-bg);
    color: var(--ies-header-bg);
}


/* ── Breadcrumbs ───────────────────────────────────────────────────── */
.ies-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--ies-space-xs);
    font-size: 0.8rem;
    color: var(--ies-mid-gray);
    margin-bottom: var(--ies-space-md);
}

    .ies-breadcrumb a {
        color: var(--ies-mid-gray);
    }

        .ies-breadcrumb a:hover {
            color: var(--ies-dark-teal);
        }

    .ies-breadcrumb .sep {
        color: var(--ies-light-gray);
    }

    .ies-breadcrumb .current {
        color: var(--ies-dark-teal);
        font-weight: 600;
    }


/* ── Loading / Spinner ─────────────────────────────────────────────── */
.ies-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ies-light-gray);
    border-top: 2px solid var(--ies-header-bg);
    border-radius: 50%;
    animation: ies-spin 0.7s linear infinite;
}

@keyframes ies-spin {
    to {
        transform: rotate(360deg);
    }
}

.ies-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: inherit;
}


/* ── IES Custom Components ─────────────────────────────────────────── */

/* Callout box */
.ies-callout {
    background: var(--ies-accent-bg);
    border-left: 4px solid var(--ies-header-bg);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 13px;
    border-radius: 0 var(--ies-radius-sm) var(--ies-radius-sm) 0;
}

.ies-callout-success {
    border-left-color: var(--ies-green);
    background: var(--ies-green-bg);
}

.ies-callout-warning {
    border-left-color: var(--ies-yellow);
    background: var(--ies-orange-bg);
}

.ies-callout-danger {
    border-left-color: var(--ies-red);
    background: var(--ies-danger-bg);
}

/* Dividers */
.ies-divider {
    border: none;
    border-top: 1px solid var(--ies-light-gray);
    margin: var(--ies-space-lg) 0;
}

.ies-divider-accent {
    border-top: 2px solid var(--ies-red);
}

/* Status tracker row (Active Items pattern) */
.ies-status-row {
    display: flex;
    align-items: flex-start;
    gap: var(--ies-space-md);
    padding: var(--ies-space-sm) var(--ies-space-md);
    border-bottom: 1px solid var(--ies-light-gray);
    background: var(--ies-white);
    transition: background var(--ies-transition);
}

    .ies-status-row:last-child {
        border-bottom: none;
    }

    .ies-status-row:hover {
        background: var(--ies-accent-bg);
    }

.ies-status-div {
    min-width: 80px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ies-white);
    background: var(--ies-header-bg);
    padding: 0.25rem 0.5rem;
    border-radius: var(--ies-radius-sm);
    text-align: center;
}

.ies-status-action {
    font-weight: 700;
    color: var(--ies-text);
    font-size: 0.9rem;
}

.ies-status-context {
    font-size: 0.8rem;
    color: var(--ies-mid-gray);
    font-style: italic;
    margin-top: 2px;
}


/* ── Container ─────────────────────────────────────────────────────── */
.container-fluid {
    background: var(--ies-off-white);
}


/* ── Utility Classes ───────────────────────────────────────────────── */
.bg-light {
    background-color: var(--ies-off-white) !important;
}

.border-primary {
    border-color: var(--ies-header-bg) !important;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-sm {
    gap: var(--ies-space-sm);
}

.gap-md {
    gap: var(--ies-space-md);
}

.gap-lg {
    gap: var(--ies-space-lg);
}

.mt-sm {
    margin-top: var(--ies-space-sm);
}

.mt-md {
    margin-top: var(--ies-space-md);
}

.mt-lg {
    margin-top: var(--ies-space-lg);
}

.mb-sm {
    margin-bottom: var(--ies-space-sm);
}

.mb-md {
    margin-bottom: var(--ies-space-md);
}

.mb-lg {
    margin-bottom: var(--ies-space-lg);
}

.p-md {
    padding: var(--ies-space-md);
}

.p-lg {
    padding: var(--ies-space-lg);
}

.w-full {
    width: 100%;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}


/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        min-height: auto;
        padding: 0.5rem 1rem;
    }

    .ies-logo-ies {
        font-size: 24px;
    }

    .page-title-band {
        padding: 20px;
        margin: 0 -0.5rem 1.5rem;
    }

        .page-title-band h1 {
            font-size: 18px;
        }

    .ies-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ies-sidebar-label,
    .sidebar .nav-item .nav-link span {
        display: none;
    }
}

@media (max-width: 480px) {
    .ies-kpi-grid {
        grid-template-columns: 1fr;
    }
}
