@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #800040;
    /* Corporate Burgundy */
    --primary-light: #903360;
    --primary-dark: #600030;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #F9FAFB;
    /* Modern very light gray */
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

body {
    background-color: var(--bg-body);
    font-family: 'Outfit', sans-serif;
    /* Modern Font */
    color: var(--text-dark);
}

/* Global Uppercase Rule */
input[type="text"]:not(.noUpperCase), 
textarea:not(.noUpperCase) {
    text-transform: uppercase !important;
}

/* Helper Utils */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-burgundy {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Active Item in Doc List - Burgundy */
.list-group-item.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Custom Burgundy Button */
.btn-burgundy {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    transition: all 0.3s ease;
}

.btn-burgundy:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(128, 0, 64, 0.2);
}

.btn-outline-burgundy {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-burgundy:hover {
    background-color: var(--primary-color);
    color: white !important;
}

/* Custom Pills (Tabs) - High Specificity Override */
body .nav-pills .nav-link.active,
body .nav-pills .show>.nav-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

body .nav-pills .nav-link {
    color: #555 !important;
    font-weight: 500;
}

body .nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(128, 0, 64, 0.05);
    /* Very light burgundy */
    color: var(--primary-color) !important;
}

.bg-light-burgundy {
    background-color: rgba(128, 0, 64, 0.1);
    color: var(--primary-color);
}

.bg-light-green {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.bg-light-orange {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.bg-light-blue {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* =========================================
   SIDEBAR & LAYOUT
   ========================================= */
/* =========================================
   SIDEBAR & LAYOUT
   ========================================= */
.wrapper {
    display: block;
    /* Fixed: Was flex, causing content to expand beyond viewport */
    width: 100%;
}

#sidebar {
    min-width: 230px;
    max-width: 230px;
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    height: 100vh;
    position: fixed;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    /* Added for mt-auto button */
    flex-direction: column;
    /* Added for vertical stacking */
}

/* ... existing styles ... */

#content {
    width: 100%;
    padding: 20px 25px;
    /* Significantly reduced from 30px 40px */
    min-height: 100vh;
    margin-left: 230px;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -230px;
}

/* Burgundy Header with White Logo */
#sidebar .sidebar-header {
    padding: 10px 0 0 0;
    /* Top padding only, no bottom padding */
    background: var(--primary-color);
    /* Solid Burgundy Header */
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#sidebar ul.components {
    padding: 10px 25px;
    /* More horizontal padding for the wider sidebar */
}

#sidebar ul li {
    margin-bottom: 15px;
    /* Increased spacing */
}

/* Sidebar Link - Base State (Dark Text on White) */
#sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 10px;
}

/* Hover State - Solid Burgundy Pill (White Text) */
#sidebar ul li a:hover {
    color: #fff !important;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(128, 0, 64, 0.2);
}

/* Active State - Solid Burgundy Pill */
#sidebar ul li.active>a {
    color: #fff !important;
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(128, 0, 64, 0.3) !important;
    font-weight: 600;
}

/* INTERACTION TWEAK: Spotlight Effect
   When hovering the UL (menu area), fade out the 'Active' item
   UNLESS it is the one being hovered. 
   This ensures only ONE item looks 'active' at a time (the one you are hovering).
*/
#sidebar ul:hover li.active:not(:hover)>a {
    background: transparent;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

#sidebar ul li a i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* Logo - Maximized Width & Natural Aspect Ratio */
/* Logo - Maximized Width & Natural Aspect Ratio */
.logo-container {
    background: transparent;
    padding: 10px;
    /* Minimal padding */
    display: flex;
    /* Flex to center content */
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Removed border and margin to remove excess wine space */
    margin-bottom: 0;
}

.logo-container img {
    width: 95% !important;
    /* Fill the box */
    max-width: none !important;
    /* Remove ANY width limit */
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    /* Removed filter as the new image is already correct */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: none;
    box-shadow: none;
}

.logo-container:hover img {
    transform: scale(1.02);
}

/* Sidebar Toggle Button - INVERTED Logic (Wine BG base) */
.btn-sidebar-toggle {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 90%;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(128, 0, 64, 0.2);
    z-index: 2000;
    /* Ensure it's above everything */
    cursor: pointer;
}

/* Hover - White Background, Wine Text */
.btn-sidebar-toggle:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 6px 15px rgba(128, 0, 64, 0.3);
    transform: translateY(-2px);
}

/* ... existing content ... */

/* Action Buttons - Solid Burgundy Hover */
.btn-download-outline {
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 0.85rem;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.btn-download-outline:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    /* Solid Fill */
    color: white !important;
    /* White text */
    box-shadow: 0 4px 12px rgba(128, 0, 64, 0.25);
    /* Glow effect */
    transform: translateY(-1px);
}

/* =========================================
   MAIN CONTENT
   ========================================= */
#content {
    width: auto;
    /* Fixed: Was 100%, causing overflow with margin-left */
    padding: 30px 40px;
    min-height: 100vh;
    margin-left: 230px;
    /* Adjusted for slimmer sidebar */
    transition: all 0.3s;
}

#content.active {
    margin-left: 0;
}

/* Navbar / Search */
.search-group {
    border-radius: 50px;
    background: #fff;
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.search-group .form-select {
    border: none;
    background-color: transparent;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-left: 15px;
}

.search-group .form-control {
    border: none;
    padding-left: 15px;
    box-shadow: none;
}

.search-group .input-group-text {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding-right: 15px;
}

/* Profile Badge */
.user-profile-badge {
    background: #fff;
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

/* Cards */
.card-premium {
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: var(--card-shadow);
    padding: 25px;
    height: auto;
}

.kpi-card {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.015);
    box-shadow: var(--card-shadow);
    background: #fff;
    padding: 20px;
    transition: transform 0.2s;
    height: 100%;
}

.kpi-card:hover {
    transform: translateY(-3px);
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
}

/* Charts */
.chart-container {
    position: relative;
    height: 180px;
    /* Reduced specific height as requested */
    width: 100%;
}

/* Documents */
.doc-item {
    padding: 12px 15px;
    border-radius: 12px;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.doc-item:hover {
    background-color: #f8fafc;
}

.btn-download-outline {
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.8rem;
    background: #fff;
    transition: all 0.2s;
}

.btn-download-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(128, 0, 64, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #content {
        margin-left: 0;
        padding: 20px;
    }

    .overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }
}

/* Action Buttons (Standard Circle Icons) */
.btn-icon-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
}

.btn-icon-action:hover {
    background-color: rgba(128, 0, 64, 0.1);
    color: var(--primary-color);
    transform: scale(1.1);
}

.btn-view:hover {
    color: var(--primary-color);
}

.btn-edit:hover {
    color: #fd7e14;
}

/* Orange for Edit */
.btn-doc:hover {
    color: #007bff;
}

/* Blue for Docs */
.btn-history:hover {
    color: #17a2b8;
}

/* Cyan for History */
.btn-print:hover {
    color: #6610f2;
}

/* Purple for Print */

/* Action Tabs Hover Effect */
/* Action Tabs Hover Effect - Matches Sidebar */
.btn-action-tab {
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    /* Light Gray Default */
    border-color: #dee2e6;
    color: var(--text-muted);
}

.btn-action-tab:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(128, 0, 64, 0.2);
    transform: translateY(-1px);
}

/* ============================================================
   Floating horizontal scrollbar for wide grids
   Proxy bar sticks to the viewport bottom while the grid is on
   screen; JS keeps it in sync with the .table-responsive container.
   ============================================================ */

/* Hide the container's own horizontal scrollbar (the proxy replaces it) */
.js-float-hscroll {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge legacy */
}

.js-float-hscroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.grid-scroll-proxy {
    position: sticky;
    bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid #eee;
}

.grid-scroll-proxy-inner {
    height: 1px;
}

/* A slightly taller, always-visible thumb so it is easy to grab */
.grid-scroll-proxy::-webkit-scrollbar {
    height: 12px;
}

.grid-scroll-proxy::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.grid-scroll-proxy::-webkit-scrollbar-thumb {
    background: #b08096;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.grid-scroll-proxy::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color, #800040);
}

/* ============================================================
   Dashboard — Documents & Notices panel (chips + cards)
   ============================================================ */

.doc-search-input {
    padding-left: 2rem;
    border-radius: 50rem;
    min-width: 200px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

.doc-search-input:focus {
    background-color: #fff;
    border-color: rgba(128, 0, 64, 0.35);
    box-shadow: 0 0 0 0.15rem rgba(128, 0, 64, 0.08);
}

.doc-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.8rem;
    pointer-events: none;
}

/* --- Category (folder) tiles: initial view --- */
.doc-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.doc-cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 0.5rem 0.95rem;
    border: 1px solid rgba(128, 0, 64, 0.06);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #faf6f8 100%);
    box-shadow: 0 2px 6px rgba(33, 37, 41, 0.07), 0 1px 2px rgba(33, 37, 41, 0.05);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.doc-cat-tile:hover {
    border-color: rgba(128, 0, 64, 0.22);
    box-shadow: 0 12px 26px rgba(128, 0, 64, 0.16);
    transform: translateY(-3px);
}

.doc-cat-tile:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(128, 0, 64, 0.14);
}

.doc-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(128, 0, 64, 0.14), rgba(128, 0, 64, 0.05));
    color: var(--primary-color, #800040);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 2px 6px rgba(128, 0, 64, 0.12);
    transition: all 0.18s ease;
}

.doc-cat-tile:hover .doc-cat-icon {
    background: linear-gradient(135deg, #800040, #a33059);
    color: #fff;
    box-shadow: 0 6px 14px rgba(128, 0, 64, 0.35);
    transform: scale(1.06);
}

.doc-cat-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.3px;
    line-height: 1.2;
    word-break: break-word;
}

.doc-cat-count {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    min-width: 1.4rem;
    padding: 0.12rem 0.42rem;
    border-radius: 50rem;
    background-color: #fff;
    color: var(--primary-color, #800040);
    font-size: 0.68rem;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(33, 37, 41, 0.14);
}

/* --- List header (selected category): back + clear --- */
.doc-list-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 2;
}

.doc-cat-icon-sm {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.doc-list-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: 0.3px;
}

.doc-list-count {
    padding: 0.1rem 0.5rem;
    border-radius: 50rem;
    background-color: #f4eef1;
    color: var(--primary-color, #800040);
    font-size: 0.72rem;
    font-weight: 700;
}

.doc-list-back,
.doc-list-clear {
    border: 1px solid rgba(33, 37, 41, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
    box-shadow: 0 1px 3px rgba(33, 37, 41, 0.12);
    color: #777;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.doc-list-back:hover,
.doc-list-clear:hover {
    background: linear-gradient(135deg, #800040, #a33059);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(128, 0, 64, 0.3);
    color: #fff;
}

.doc-scroll {
    overflow-y: auto;
    max-height: 400px;
    padding-right: 0.25rem;
    min-height: 120px;
}

.doc-scroll::-webkit-scrollbar {
    width: 6px;
}

.doc-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(128, 0, 64, 0.05);
    border-radius: 0.8rem;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8fa 100%);
    box-shadow: 0 1px 4px rgba(33, 37, 41, 0.06);
    margin-bottom: 0.55rem;
    transition: all 0.18s ease;
}

.doc-card:hover {
    border-color: rgba(128, 0, 64, 0.22);
    box-shadow: 0 8px 18px rgba(128, 0, 64, 0.12);
    transform: translateY(-2px);
}

.doc-card:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(128, 0, 64, 0.1);
}

.doc-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.doc-icon-pdf {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.doc-icon-word {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.doc-icon-excel {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.doc-icon-img {
    background-color: rgba(13, 202, 240, 0.12);
    color: #0aa2c0;
}

.doc-icon-default {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.doc-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333;
    line-height: 1.25;
}

.doc-card-meta {
    font-size: 0.7rem;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.doc-card-download {
    color: #cfcfcf;
    transition: color 0.15s ease;
    padding: 0 0.25rem;
}

.doc-card:hover .doc-card-download {
    color: var(--primary-color, #800040);
}

/* =========================================
   SIDEBAR TOGGLE VISIBILITY
   ========================================= */
/* =========================================
   SELECT2 (BOOTSTRAP 5 THEME) — BURGUNDY OVERRIDES
   ========================================= */

/* Match Bootstrap form-select-sm height when the underlying <select> uses .form-select-sm */
.form-select-sm + .select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* Default form-select height parity */
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.75rem + 2px);
    border-color: #dee2e6;
    background-color: #fff;
}

/* Disabled / locked state — matches the "bg-light" look used elsewhere */
.select2-container--bootstrap-5 .select2-selection--single[aria-disabled="true"],
select.bg-light + .select2-container--bootstrap-5 .select2-selection {
    background-color: #f8f9fa !important;
    color: #6c757d;
    cursor: not-allowed;
}

/* Burgundy focus ring */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #800020 !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.15) !important;
}

/* Highlighted result row uses burgundy */
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #800020 !important;
    color: #fff !important;
}

/* Search input inside the dropdown — burgundy focus ring */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #800020 !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.15) !important;
}

/* Ensure the dropdown layer floats over Bootstrap modals (z-index 1055+) */
.select2-container--open {
    z-index: 1090 !important;
}

/* Inside a modal, dropdownParent already attaches it; make sure it sits over backdrop */
.modal .select2-container {
    z-index: 1090;
}

/* Prevent placeholder text from being cut off vertically */
.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #6c757d;
}

/* When sidebar is active (hidden), show the 'Menu' button in Navbar */
#sidebar.active~#content #sidebarCollapse {
    display: inline-flex !important;
    /* Override d-none */
}

/* 3.4 — When a document item is selected (burgundy background), keep the action
   icons (view/download) visible by switching them to white outline. Otherwise the
   burgundy icon blends into the burgundy background and disappears. */
.doc-item.active .btn-outline-burgundy,
.doc-item.active .btn-outline-primary {
    color: #fff !important;
    border-color: #fff !important;
}

.doc-item.active .btn-outline-burgundy:hover,
.doc-item.active .btn-outline-primary:hover {
    background-color: #fff !important;
    color: #7A1B3E !important;
}