/* Force Desktop Width Globally */
html, body {
    min-width: 1280px !important;
    overflow-x: auto !important;
    position: relative;
}

/* Prevent Bootstrap Containers from shrinking */
.container, .container-fluid {
    min-width: 1280px !important;
}

/* Fix for the Sidebar - ensure it stays fixed to the side */
.sidebar {
    height: 100vh !important;
    position: sticky !important;
    top: 0;
}

.b-brand img{
    max-height:60px;
    width:auto;
}

#vehicle-activity-chart {
    min-height: 320px;
}

/* Custom spacing for the right side */
@media (min-width: 768px) {
    .pe-md-5 {
        padding-right: 3rem !important; /* Adjust this number to increase/decrease the gap */
    }
}

/* Ensure the layout feels balanced */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ========================================
   INVOICE PREVIEW
======================================== */
/* This pins the footer regardless of page content */
.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    /* Adjust 'left' based on your sidebar width. 
       If sidebar is 250px, use left: 250px; */
    left: 280px; 
    z-index: 1000;
    background-color: #ffffff;
    border-top: 1px solid #e3e6f0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* IMPORTANT: Add padding to the body so the footer 
   doesn't cover up the last row of your table */
body {
    padding-bottom: 70px; /* Match this to the height of your footer */
    padding-right: 40px; /* This handles your request for right-side space */
}


/* Sidebar styling */
.active-invoice-item {
    background-color: #f8faff !important;
    border-left: 4px solid #3A54A3 !important;
}

/* Document styling */
.invoice-sheet {
    min-height: 1000px;
    font-family: 'Inter', sans-serif;
}

/* Watermark */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.ls-2 { letter-spacing: 2px; }
.fw-300 { font-weight: 300; }

/* Scrollbar styling for a cleaner look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}
/* ========================================
   NAVIGATION BAR
======================================== */
/* Highlights the active main menu item */
.nxl-navbar .nxl-item.active > .nxl-link {
    background-color: #4e73df !important; /* Change this to your preferred Mastercom brand color */
    color: #ffffff !important;
    border-radius: 8px;
    margin: 0 10px;
}

/* Highlights the icon of the active item */
.nxl-navbar .nxl-item.active > .nxl-link .nxl-micon i {
    color: #ffffff !important;
}

/* Highlights the active sub-menu item */
.nxl-navbar .nxl-submenu .nxl-item.active .nxl-link {
    color: #ffffff !important;
    background-color: #4e73df !important;
    font-weight: 700;
}




.bg-soft-warning { background-color: rgba(255, 193, 7, 0.15); }
.text-warning { color: #ffc107 !important; }

/* 1. Global Wrapper Reset - This kills the 'dead zone' at the top */
.nxl-container .nxl-content {
    padding-top: 10px !important;   /* Standard theme is likely 70px+ */
    padding-left: 15px !important;  /* Standard theme is likely 30px+ */
    min-height: auto !important;
}

/* 2. Main Content Reset - Pulls everything up and left */
.main-content {
    margin-top: -20px !important;   /* Physically slides the table card up */
    padding: 0 !important;          /* Removes the theme's inner gutters */
}

/* 3. Page Header Fix - Tightens the 'Proposals' / 'Leads' title area */
.page-header {
    margin-bottom: 5px !important;
    padding-top: 0 !important;
}

/* 4. Card Body Fix - Ensures the table touches the edges if needed */
.card-body.p-0 {
    padding: 0 !important;
}

/* 5. Breadcrumb Tightening */
.breadcrumb {
    margin-bottom: 10px !important;
}



/* cREATE BoQ */
/* Tighten the Table Row Height */
.table td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    vertical-align: top;
}

/* Ensure Description and Totals have the same height */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-col {
    display: flex;
    flex-direction: column;
}

.equal-height-col .card-body, 
.equal-height-col .form-control {
    flex: 1; /* Forces the textarea to fill the available height */
}

/* Optional: Subtle border for the Terms box to match the Totals look */
.terms-box {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fcfcfc;
}

/* Settings */
/* Custom Settings Styles */
#settingsTabs .nav-link {
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

#settingsTabs .nav-link:hover {
    background-color: rgba(58, 84, 163, 0.1);
    color: #3A54A3;
}

#settingsTabs .nav-link.active {
    background-color: #3A54A3 !important;
    color: #fff !important;
}

.form-control:focus, .form-select:focus {
    border-color: #3A54A3;
    box-shadow: 0 0 0 0.25rem rgba(58, 84, 163, 0.1);
}

.btn:hover {
    opacity: 0.9;
}


.hover-primary:hover {
        color: #3A54A3 !important;
        transition: all 0.2s ease;
    }


main,
.page-content,
.main-content,
.content-area {
    padding-bottom: 40px !important;
}

#boqTable .form-control:focus {
    background-color: #f8f9fa !important;
    border: 1px solid #3A54A3 !important;
    box-shadow: none;
}