﻿/* =========================================================================
   eGoat API Monitor css styles
   ========================================================================= */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Inter/static/Inter_18pt-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/Inter/static/Inter_18pt-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/Inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Inter/static/Inter_18pt-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Inter/static/Inter_18pt-Italic.ttf') format('truetype');
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


/* =========================================================================
   🎨 CENTRALIZED SLATE & STEEL BLUE INDUSTRIAL DESIGN SYSTEM PALETTE 
   ========================================================================= */
:root {
    --primary-brand: #002868; /* Texas Flag Blue (PMS 281 / Old Glory Blue) */
    --primary-hover: #001b47; /* Darker Texas blue for hover states */
    --primary-light: #eef2f9; /* Light tint of Texas blue for filter cards/light badges */
    --primary-border: #c3d0e6; /* Soft border matching Texas blue */
    --text-dark: #0f172a; /* Rich Charcoal Black */
    --text-muted: #334155; /* Deep Slate Gray */
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.app-site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8fafc;
}

    .app-site-wrapper > header {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

.app-main-content {
    flex: 1 0 auto;
}

.app-footer-bar {
    flex-shrink: 0;
    background-color: #ffffff;
    border-top: 1px solid var(--primary-border);
    color: var(--text-muted);
}

/* Master Typography Overrides */
body {
    color: var(--text-dark) !important;
    font-family: 'Inter', 'Inter Static', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .fw-bold, strong {
    color: var(--text-dark) !important;
}

.text-muted, .small, label, .form-label {
    color: var(--text-muted) !important;
}

/* Unified Navigation Styles Override */
.navbar-brand {
    color: var(--primary-brand) !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
}

    .nav-link:hover, .nav-link-active-brand {
        color: var(--primary-brand) !important;
    }

/* Corporate Component Form Buttons */
.btn-brand-solid {
    background-color: var(--primary-brand) !important;
    border-color: var(--primary-brand) !important;
    color: #ffffff !important;
    font-weight: 600;
}

    .btn-brand-solid:hover {
        background-color: var(--primary-hover) !important;
        border-color: var(--primary-hover) !important;
    }

/* =========================================================================
    EXTRACTED LAYOUT COMPONENT STYLES
   ========================================================================= */
/* Rectangular Metric Boxes Layout */
.metric-box-container {
    min-width: 160px;
    height: 38px;
}

.metric-box-total {
    background-color: var(--primary-brand);
}

    .metric-box-total .metric-label {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .metric-box-total .metric-value {
        color: #ffffff !important;
    }

.metric-box-matches {
    background-color: var(--primary-light);
    border: 1px solid var(--primary-border) !important;
}

    .metric-box-matches .metric-label {
        color: var(--text-muted) !important;
    }

    .metric-box-matches .metric-value {
        color: var(--primary-brand) !important;
    }

/* Dynamic High-Volume Performance Charts Canvas Wrapper Layout */
.chart-canvas-wrapper {
    position: relative;
    height: 320px;
}

.chart-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 10;
    transition: opacity 0.3s ease-in-out;
}

/* Directory Grid Table Constraints */
.table-column-id-width {
    width: 80px;
}

.table-cell-uri-truncate {
    max-width: 350px;
}

.text-input-code-mask {
    font-size: 32px;
    letter-spacing: 12px;
    padding-left: 20px;
}


.text-danger,
.field-validation-error,
.validation-summary-errors {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-processing {
    pointer-events: none;
    opacity: 0.8;
}


/* =========================================================================
  OVERRIDES FOR BOOTSTRAP 5 TOGGLE SWITCHES
   ========================================================================= */
.form-check-input:checked {
    background-color: var(--primary-brand) !important;
    border-color: var(--primary-brand) !important;
}

.form-check-input:focus {
    border-color: var(--primary-brand) !important;
    box-shadow: 0 0 0 0.25rem rgba(43, 76, 126, 0.15) !important;
}

/* Enhances the cursor interaction to look clickable across the whole switch element */
.form-switch .form-check-input,
.form-switch .form-check-label {
    cursor: pointer;
}
/* =========================================================================
   LOG VIEW BACKDROP SYSTEM 
   ========================================================================= */

.auth-page-backdrop {
    min-height: 100vh;
    background-color: #0c1524;
    background-image: linear-gradient(135deg, #0c1524 0%, #002868 60%, #1e3a6d 100%);
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-floating-card {
    background-color: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.3) !important;
    padding: 3rem 2.5rem !important;
}

/* Core Platform Identity Badge */
.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    background-color: #002868;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    letter-spacing: -0.3px;
}

/* Rounded Input field container frame element */
.auth-input-group-custom {
    position: relative;
}

    .auth-input-group-custom .auth-icon-prefix {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 1.15rem;
    }

.auth-input-field {
    padding-left: 46px !important;
    height: 52px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    color: #0f172a !important;
}

    .auth-input-field:focus {
        border-color: #002868 !important;
        box-shadow: none !important;
    }

/* Precise high-contrast solid pitch-blue button alignment */
.btn-auth-submit {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    gap: 0.5rem;
    background-color: #002868 !important;
    border-color: #002868 !important;
    color: #ffffff !important;
    height: 52px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: background-color 0.2s ease;
}

    .btn-auth-submit:hover,
    .btn-auth-submit:focus-visible {
        background-color: #002868 !important;
        border-color: #002868 !important;
    }

    /* Label and arrow ride above the sheen layer */
    .btn-auth-submit .btn-label,
    .btn-auth-submit .btn-arrow {
        position: relative;
        z-index: 1;
        display: inline-block;
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    }

    .btn-auth-submit .btn-arrow {
        transform: translateX(-10px);
        opacity: 0;
    }

    .btn-auth-submit:hover .btn-arrow,
    .btn-auth-submit:focus-visible .btn-arrow {
        transform: translateX(0);
        opacity: 1;
    }

    .btn-auth-submit:hover .btn-label,
    .btn-auth-submit:focus-visible .btn-label {
        transform: translateX(-5px);
    }

    .btn-auth-submit::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background-color: rgba(255, 255, 255, 0.14);
        transform: translateX(-101%) skewX(-14deg);
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    .btn-auth-submit:hover::after,
    .btn-auth-submit:focus-visible::after {
        transform: translateX(101%) skewX(-14deg);
    }

    .btn-auth-submit.btn-processing::after {
        display: none;
    }

@media (prefers-reduced-motion: reduce) {
    .btn-auth-submit .btn-label,
    .btn-auth-submit .btn-arrow,
    .btn-auth-submit::after {
        transition: none !important;
    }

    .btn-auth-submit .btn-arrow {
        transform: none;
        opacity: 1;
    }

    .btn-auth-submit::after {
        display: none;
    }
}

.access-denied-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fce8e8;
    color: #b91c1c;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 1.9rem;
    border: 1px solid #f5c2c2;
}
/* =========================================================================
    VERIFICATION COMPONENT SYSTEM
   ========================================================================= */
/* Centered floating icon element styling */
.auth-icon-badge-centered {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    color: #002868;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 1.2rem;
    border: 1px solid #d2e0ed;
}

/* 6-Digit discrete pin inputs grid configuration spacing matrix */
.verification-digits-grid {
    display: flex;
    justify-content: center;
    gap: 2.5%;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

/* Discrete, modern rounded character box input variables */
.verify-digit-box {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    aspect-ratio: 52 / 64;
    height: auto !important;
    max-width: 52px;
    font-size: clamp(1.1rem, 6vw, 1.75rem) !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    padding: 0 !important;
    transition: border-color 0.15s ease-in-out;
}

    .verify-digit-box:focus {
        border-color: #002868 !important;
        outline: none !important;
        box-shadow: none !important;
    }

/* Disabled gray color styling context for matching inactive verification state buttons */
.btn-auth-verify-submit {
    background-color: #94a3b8 !important;
    border-color: #94a3b8 !important;
    color: #ffffff !important;
    height: 48px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

    /* Dynamic active state class triggered when all 6 values are entered */
    .btn-auth-verify-submit.active-filled {
        background-color: #002868 !important;
        border-color: #002868 !important;
    }

/* Link utilities alignment adjustments */
.auth-action-link {
    color: #334155 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

    .auth-action-link:hover {
        color: #0f172a !important;
    }
/* =========================================================================
   USER AUTHORIZATION FORM STYLES
   ========================================================================= */
/* Top flat user add icon container badge */
.auth-icon-badge-flat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    color: #0f172a;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.75rem;
    border: 1px solid #d2e0ed;
}

/* Custom checkbox card panel */
.welcome-email-card {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
}

/* Dynamic button sizing for actions alignment row */
.btn-auth-action-solid {
    background-color: #002868 !important;
    border-color: #002868 !important;
    color: #ffffff !important;
    height: 48px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

    .btn-auth-action-solid:hover {
        background-color: #001b47 !important;
        border-color: #001b47 !important;
    }

.btn-auth-action-cancel {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    height: 48px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

    .btn-auth-action-cancel:hover {
        background-color: #f8fafc !important;
        color: #0f172a !important;
    }

/* =========================================================================
    USER ACCESS ACCOUNT STACKED LIST STYLES
   ========================================================================= */
/* Circular User Initials Avatar Badge */
.user-avatar-badge {
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Individual list item separation row boundaries */
.account-list-item-row {
    padding: 1rem 0;
    border-bottom: 1.5px solid #f1f5f9;
}

    .account-list-item-row:last-child {
        border-bottom: none;
    }

/* Soft inline feedback indicator pill frames */
.badge-status-pill-flat {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
}

.badge-status-active {
    background-color: #e6f4ea !important;
    color: #137333 !important;
}

.badge-status-revoked {
    background-color: #f1f3f4 !important;
    color: #5f6368 !important;
}

/* Search input container elements */
.search-control-prefix-custom {
    position: relative;
}

    .search-control-prefix-custom .search-icon-prefix {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

.search-input-field-custom {
    padding-left: 40px !important;
    height: 42px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
}

.access-dropdown-select {
    height: 42px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-weight: 500;
}
/* =========================================================================
   PERSONS DIRECTORY COMPONENT STYLES
   ========================================================================= */

.filter-card-panel {
    background-color: #ffffff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
}

.filter-input-cell {
    height: 40px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    color: #334155 !important;
}

.filter-label-text {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.4rem !important;
}

.btn-apply-custom {
    background-color: #002868 !important;
    border: 1px solid #002868 !important;
    color: #ffffff !important;
    height: 40px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    min-width: 80px;
}

    .btn-apply-custom:hover {
        background-color: #001b47 !important;
    }

.btn-clear-custom {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    height: 40px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    min-width: 80px;
}

    .btn-clear-custom:hover {
        background-color: #f8fafc !important;
    }

.font-sans-custom {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.kpi-summary-box {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    min-width: 110px;
    text-align: left;
}

    .kpi-summary-box .kpi-title {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #475569;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .kpi-summary-box .kpi-value {
        font-size: 1.25rem;
        font-weight: 700;
        color: #334155;
        margin-bottom: 0px;
    }

.directory-table thead th {
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
}

    /* Sortable header links inherit the muted header color */
    .directory-table thead th a {
        color: #64748b !important;
    }

        .directory-table thead th a:hover {
            color: #0f172a !important;
        }

/* Flexbox cross-axis centering for inner row profile letters */
.table-avatar-badge {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.badge-directory-status {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 6px !important;
    display: inline-block;
    text-align: center;
}

.badge-status-active-tint {
    background-color: #e6f4ea !important;
    color: #137333 !important;
}

.badge-status-inactive-tint {
    background-color: #f1f3f4 !important;
    color: #5f6368 !important;
}

.custom-pag-btn {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

    .custom-pag-btn:hover {
        background-color: #f8fafc !important;
        color: #0f172a !important;
        border-color: #cbd5e1 !important;
    }

.pag-label {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    cursor: default;
    pointer-events: none;
    opacity: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.disabled .custom-pag-btn {
    background-color: #ffffff !important;
    border-color: #f1f5f9 !important;
    color: #cbd5e1 !important;
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none !important;
}

.disabled .pag-label,
.pag-label.disabled {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
    opacity: 1 !important;
}

.active .custom-pag-btn {
    background-color: #002868 !important;
    border-color: #002868 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.person-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    margin-right: 0.25rem;
    text-transform: uppercase;
}

.type-ward {
    background-color: #e8f0fe;
    color: #1a56db;
}

.type-guardian {
    background-color: #e6f4ea;
    color: #137333;
}

.type-attorney {
    background-color: #f3e8fd;
    color: #7c3aed;
}
/* =========================================================================
   MENU ELEMENTS
   ========================================================================= */

.nav-link-custom {
    color: #64748b !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 20px 16px !important;
    display: inline-block !important;
    position: relative;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}

    .nav-link-custom:hover {
        color: #0f172a !important;
    }

    .nav-link-custom.active-link {
        color: #0f172a !important;
        font-weight: 600 !important;
    }

.navbar-profile-badge-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent !important;
    border: none !important;
    padding: 4px 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

/* =========================================================================
   REQUEST LOG COMPONENT STYLES
   
   ========================================================================= */
/* Keep the metric boxes tight together (don't stretch across the row) */
.kpi-metric-group {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

    .kpi-metric-group .kpi-summary-box {
        flex: 0 0 auto;
        min-width: 96px;
    }

/* ---- Quick date preset buttons ---- */
.btn-preset {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    height: 32px !important;
    padding: 0 0.9rem !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

    .btn-preset:hover {
        background-color: #f8fafc !important;
        color: #0f172a !important;
        border-color: #cbd5e1 !important;
    }

.btn-preset-active {
    background-color: #002868 !important;
    border-color: #002868 !important;
    color: #ffffff !important;
}

/* ---- HTTP method badges ---- */
.method-badge {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.method-get {
    background-color: #e6f4ea;
    color: #137333;
}

.method-post {
    background-color: #e8f0fe;
    color: #1a56db;
}

.method-put {
    background-color: #fef3e0;
    color: #b45309;
}

.method-patch {
    background-color: #fff7e6;
    color: #92610a;
}

.method-delete {
    background-color: #fce8e8;
    color: #b91c1c;
}

.method-head {
    background-color: #f1f5f9;
    color: #475569;
}

.method-options {
    background-color: #f3e8fd;
    color: #7c3aed;
}

.method-other {
    background-color: #f1f5f9;
    color: #475569;
}

/* ---- Status dots ---- */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.dot-success {
    background-color: #16a34a;
}

.dot-info {
    background-color: #2563eb;
}

.dot-danger {
    background-color: #dc2626;
}

.dot-muted {
    background-color: #94a3b8;
}

/* ---- Data column badges ---- */
.data-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.data-returned {
    background-color: #e6f4ea;
    color: #137333;
}

.data-empty {
    background-color: #f1f3f4;
    color: #5f6368;
}

/* ---- Numbered pagination active state (reuses .custom-pag-btn) ---- */
.pagination .page-item.active .custom-pag-btn {
    background-color: #002868 !important;
    border-color: #002868 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
/* =========================================================================
    MAIN HEADER NAVIGATION — DARK + RESPONSIVE
   ========================================================================= */
.navbar-custom {
    background-color: #002868 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand-custom {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    padding: 16px 0;
}

    .navbar-brand-custom:hover {
        color: #cbd5e1 !important;
    }

.navbar-custom .navbar-profile-badge-box .rounded-circle {
    background-color: #ffffff !important;
    color: #002868 !important;
}
/* Links on the dark bar */
.navbar-custom .nav-link-custom {
    color: #94a3b8 !important;
}

    .navbar-custom .nav-link-custom:hover {
        color: #ffffff !important;
    }

    .navbar-custom .nav-link-custom.active-link {
        color: #ffffff !important;
        font-weight: 600 !important;
    }

/* Profile badge text on dark bar */
.navbar-custom .navbar-profile-badge-box {
    color: #cbd5e1 !important;
}

    .navbar-custom .navbar-profile-badge-box .text-dark {
        color: #ffffff !important;
    }

.navbar-custom > .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


.navbar-custom .navbar-brand-custom {
    margin-right: auto;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}
/* Logout button on the dark navbar */
.navbar-custom .btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

    .navbar-custom .btn-outline-secondary:hover {
        color: #002868 !important;
        background-color: #ffffff !important;
        border-color: #ffffff !important;
    }
/* Desktop: horizontal underline bar */
.navbar-custom .nav-link-custom::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    top: auto;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.15s ease-in-out;
}

.navbar-custom .nav-link-custom.active-link::after {
    transform: scaleX(1);
}

.navbar-custom .nav-link-custom:hover::after {
    transform: scaleX(1);
    background-color: rgba(255, 255, 255, 0.5);
}

.text-success {
    color: #198754 !important;
}
.directory-table .table-hover > tbody > tr {
    --bs-table-hover-bg: #eef4fb;
}
/* Mobile ONLY: switch to a vertical left-edge indicator */
@media (max-width: 767.98px) {
    .navbar-custom .nav-link-custom::after {
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
        transform: scaleY(0);
    }

    .navbar-custom .nav-link-custom.active-link::after {
        transform: scaleY(1);
    }
}
/* ---- Responsive collapsed menu (below md breakpoint) ---- */
@media (max-width: 767.98px) {
    .navbar-custom .navbar-collapse {
        padding: 0.5rem 0 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-custom .nav-link-custom {
        display: block !important;
        padding: 12px 4px !important;
    }


    .navbar-custom .navbar-nav.ms-auto {
        margin-top: 0.5rem;
        gap: 0.5rem;
        align-items: flex-start !important;
    }

    .navbar-custom .navbar-profile-badge-box {
        padding-left: 4px;
    }
}

/* =========================================================================
   USER ACCESS DASHBOARD — RESPONSIVE ROWS
   ========================================================================= */
@media (max-width: 575.98px) {

    .account-list-item-row.user-row-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }


    .user-row-item > .d-flex {
        width: 100%;
    }


        .user-row-item > .d-flex:last-child {
            flex-wrap: wrap;
            justify-content: flex-start;
            gap: 0.5rem 0.75rem !important;
        }


    .user-email-target {
        word-break: break-all;
        font-size: 0.85rem;
    }


    .role-select-input {
        min-width: 0 !important;
        width: 100%;
        max-width: 180px;
    }
}

/* Tablet range: keep side-by-side but allow the controls to wrap */
@media (min-width: 576px) and (max-width: 767.98px) {
    .user-row-item > .d-flex:last-child {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .card-body > .d-flex.justify-content-between.align-items-start {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* =========================================================================
   PERSONS DIRECTORY — RESPONSIVE
   ========================================================================= */


@media (max-width: 767.98px) {
    .container-fluid > .d-flex.justify-content-between.align-items-start {
        flex-wrap: wrap;
        gap: 1rem;
    }


        .container-fluid > .d-flex.justify-content-between.align-items-start > .d-flex.gap-2 {
            flex-wrap: wrap;
            width: 100%;
        }

    .kpi-summary-box {
        flex: 1 1 auto;
        min-width: 90px;
    }
}

@media (max-width: 575.98px) {
    #personFilterForm .col-12.d-flex.justify-content-end > .d-flex.gap-2 {
        width: 100%;
    }

    #personFilterForm .btn-clear-custom,
    #personFilterForm .btn-apply-custom {
        flex: 1 1 0;
    }
}
/* =========================================================================
   REQUEST LOG — RESPONSIVE
   ========================================================================= */


@media (max-width: 767.98px) {
    .container-fluid > .d-flex.justify-content-between.align-items-start {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .kpi-metric-group {
        flex-wrap: wrap;
        width: 100%;
    }

        .kpi-metric-group .kpi-summary-box {
            flex: 1 1 auto;
            min-width: 90px;
        }
}


@media (max-width: 767.98px) {
    #logFilterForm .col-12.d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    #logFilterForm #quickPresets {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {

    #logFilterForm #quickPresets {
        width: 100%;
    }

        #logFilterForm #quickPresets .btn-preset {
            flex: 1 1 0;
        }


    #logFilterForm .col-12.d-flex.justify-content-between > .d-flex.gap-2 {
        width: 100%;
    }

    #logFilterForm .col-12 .btn-clear-custom,
    #logFilterForm .col-12 .btn-apply-custom {
        flex: 1 1 0;
    }
}
