﻿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: 0;
}

body {
    font-family: 'Roboto', sans-serif;
}

.title-sm {
    font-size: 0.875rem; /* small */
    font-weight: 500;
}
    .title-sm input,
    .title-sm select,
    .title-sm textarea {
        font-size: inherit;
        font-weight: inherit;
    }

.title-md {
    font-size: 1rem; /* medium */
    font-weight: 500;
}
.titlePgTopic-md {
    font-size: 1rem; /* small */
    font-weight: 800;
}

.titleTBTopic-md {
    font-size: 0.875rem; /* small */
    font-weight: 600;
}

.title-lg {
    font-size: 1.25rem; /* large */
    font-weight: 600;
}

.title-xl {
    font-size: 1.5rem; /* extra large */
    font-weight: 600;
}
.page-wrapper {
    margin-top: 20px; /* top margin for all pages */
    margin-left: 10px !important; /* left margin for all pages */
}


/*---*/
/* Layout */
.app-sidebar .d-flex {
    display: flex;
}

.app-sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #2067b4;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

    .app-sidebar .sidebar-header img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

    .app-sidebar .sidebar-header h5 {
        margin-top: 0.5rem;
        font-weight: bold;
        color: #fff;
    }

    .app-sidebar .nav-separator {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        margin: 0.5rem 0;
    }

    .app-sidebar .nav-link {
        color: #fff;
        transition: background-color 0.2s ease;
    }

        .app-sidebar .nav-link:hover,
        .app-sidebar .nav-link:focus {
            background-color: rgba(255, 255, 255, 0.2);
            color: #fff; 
            border-radius: 0;
        }

        .app-sidebar .nav-link.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

    .app-sidebar .dropdown-arrow {
        transition: transform 0.3s ease;
        transform: rotate(0deg);
    }

    .app-sidebar .nav-link:not(.collapsed) .dropdown-arrow {
        transform: rotate(180deg);
    }

    .app-sidebar .nav .nav .nav-link {
        color: #fff;
    }


    .app-sidebar .sidebar-footer .nav-link {
        color: #fff;
    }

    .app-sidebar + .main-content {
        padding: 20px;
        
    }
    .app-sidebar .sidebar-logo img {
        width: 45px; 
        height: auto; 
        display: block;
        margin: 0 auto; 
    }
    .app-sidebar .sidebar-logo a {
        text-decoration: none; 
        color: inherit; 
    }

        .app-sidebar .sidebar-logo a:hover {
            text-decoration: none; 
            color: inherit;
        }



/* Dashboard Page Styles */
.dashboard-page .card-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 6px;
    border-radius: 0.25rem 0 0 0.25rem;
}

.dashboard-page .attention-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dashboard-page {
    width: 100%; /* full width of viewport */
    max-width: 100%; /* prevent Bootstrap from capping width */
    padding: 0 2rem; /* optional: add some horizontal breathing space */
}


.login-page-wrapper {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* The Card with the Blue Border */
.login-card {
    width: 380px;
    background: #ffffff;
    border: 2px solid #00AEEF; /* The exact sky blue from your image */
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    text-align: center;
}

/* Constraining the Logo */
.logo-box img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.main-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.sub-title {
    font-size: 13px;
    color: #888;
    margin: 5px 0 25px 0;
}

/* Inputs and Labels */
.form-control-group {
    text-align: left;
    margin-bottom: 15px;
}

    .form-control-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #333;
    }

    .form-control-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px; /* Rounded corners like the design */
        box-sizing: border-box;
        font-size: 14px;
        outline: none;
    }

        .form-control-group input:focus {
            border-color: #00AEEF;
        }

/* Validation Text */
.error-text {
    color: #d9534f;
    font-size: 12px;
    display: none;
    margin-top: 4px;
}

/* The Blue Login Button */
.btn-primary-login {
    width: 100%;
    padding: 12px;
    background-color: #5D8AA8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease; /* Smooth transition for all changes */
    outline: none;
}

    /* Active: The 'Click' effect */
    .btn-primary-login:active, .btn-clicking {
        transform: scale(0.97); /* Shrinks slightly when clicked */
        background-color: #3d5a6d;
    }



/* COMBINED & OPTIMIZED ERROR CONTAINER */
.server-error-container {
    display: none; /* Hidden by default */
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 10px auto 20px auto;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    width: 90%;
    max-width: 320px;
    box-sizing: border-box;
}

    /* This class is added via JavaScript when an error occurs */
    .server-error-container.visible {
        display: block !important;
        animation: shakeEffect 0.4s ease-in-out;
    }

@keyframes shakeEffect {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}


/* Field Validation Style (Individual red text) */
.field-validation-error {
    display: none;
    color: #d9534f;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

/* Ensure form groups stack vertically */
.form-control-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Stacks label, input, and error vertically */
    text-align: left;
}

/* This makes the wrapper the reference point for the button */
.password-wrapper {
    position: relative;
    width: 100%;
}

    .password-wrapper input {
        width: 100%;
        padding-right: 50px; /* Space so text doesn't go UNDER the button */
        box-sizing: border-box;
    }


#togglePassword {
    position: absolute;
    right: 12px; /* Distance from the right edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: #5D8AA8;
    z-index: 5; /* Keeps it above the input */
    user-select: none; /* Prevents highlighting text on double click */
}

/* Sidebar Container */
.wc-sidebar {
    border-radius: 4px;
    background-color: #fff;
}




/* This ensures the card and its list-group fill that height */
.wc-list-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Ensures the container starts at the exact same pixel from the top */
.wc-list-container, .permission-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

    /* Identical margin for the headlines */
.wc-list-container,
.permission-container {
    margin-top: 0 !important;
    padding: 15px 20px !important; /* This creates the space internally */
}
/* --- Core Layout & Scroll Logic --- */
.wc-scroll-container {
    height: calc(100vh - 120px); /* Fixed height is required for scroll */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* List Item Styling */
.wc-item {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 15px 20px;
    border-left: 4px solid transparent !important;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    /* ADD THIS LINE FOR SMOOTHNESS */
    transition: background-color 0.2s ease, border-left 0.2s ease, color 0.2s ease;
}
    .wc-item:hover {
        background-color: #fcfcfc;
    }





/* Edit Card Styling */
.edit-card {
    border-radius: 4px;
    background-color: #ffffff;
}

.form-title {
    color: #333;
    font-size: 0.95rem;
}

/* Custom Input Styling */

/* Professional refinements without changing your settings */
.custom-input, .custom-select, .outstanding-input {
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    height: 38px; /* Consistent height */
}

.settings-panel {
    background-color: #ffffff;
    border: 1px solid #f0f0f0 !important; /* Softer border like screenshot */
}

.form-check-input {
    cursor: pointer;
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.3rem;
}



.outstanding-input {
    border: 1px solid #dee2e6 !important;
    background-color: #ffffff !important;
    font-size: 0.85rem;
}

/* Panel Background */
.settings-panel {
    background-color: #ffffff;
    border-color: #f1f1f1 !important;
}


/* Checkbox Styling */
.custom-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    border-color: #adb5bd !important;
}




/* This targets the specific list of buttons */
#workClassListGroup {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding-right: 5px;
    /* Smooth movement when clicking items */
    transition: all 0.2s ease;
}


    /* Smooth scrollbar styling */
    /* Scrollbar Styling */
    #workClassListGroup::-webkit-scrollbar {
        width: 6px;
    }

    #workClassListGroup::-webkit-scrollbar-thumb {
        background: #d1d1d1;
        border-radius: 10px;
    }



.perm-header {
    background-color: #1a5d7c;
    color: white;
    padding: 12px 15px;
    border-radius: 4px 4px 0 0;
    font-size: 0.9rem;
}

.perm-card {
    border: 1px solid #eef2f5;
    border-radius: 4px;
    overflow: hidden; /* This prevents the content from "breaking" the borders during transition */
}
/*------------------- Finance page1 style ------------------------------------------*/
/*--------------Search Bar Styling---------------------------------*/
.financeSearchbar {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px 12px;
    width: 100%;
}

.financeSearch-box {
    padding-right: 35px;
}

.fianceSearch-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
}
.search-section {
    width: 100%;
}


/*----------customer information in finance page01----------------*/
.customer-card {
    border: 1px solid rgba(0, 0, 0, 0.175);
    box-shadow: none;
}

    .customer-card .card-header {
        background-color: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.175);
    }

.customer-card .info-group {
    display: flex;
    flex-direction: column;
}

.customer-card .info-label {
    margin-bottom: 6px;
}

.customer-card .info-value {
    background-color: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    color: #212529;
}


/*-----Product table in Finance page01-------------*/
.product-table {
    --bs-table-bg: transparent; 
}

    .product-table thead {
        background-color: #94979E;
        color: #fff;
    }


.productListBtn .btn-select {
    background-color: #1f5f7a;
    color: #fff;
    padding: 5px 18px;
    border-radius: 5px;
}

.productListBtn .btn-select:hover {
    background-color: #174a5f;
}
.product-table th,
.product-table td {
    text-align: center;
    vertical-align: middle;
}

.productListBtn tr:nth-child(even) {
    background-color: #C4C4C4 !important;
    
}

.product-table .productListBtn tr:nth-child(2) td:first-child {
    border-bottom-left-radius: 0.300rem;
}

.product-table .productListBtn tr:nth-child(2) td:last-child {
    border-bottom-right-radius: 0.300rem;
}
.product-table .productListBtn tr:nth-child(2) td {
    border-bottom: none;
}
tbody.productListBtn.title-sm td {
    color: inherit !important; 
}

/*----------------------------------------------*/



.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 16px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 12px;
        width: 12px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #4CAF50;
}

    input:checked + .slider:before {
        transform: translateX(18px);
    }


/* CSS Logic for Folding/Stretching */
.perm-toggle-input {
    display: none; /* Hide the actual checkbox */
}

    /* Collapse Content when checkbox is NOT checked */
    .perm-toggle-input:not(:checked) ~ .perm-content {
        display: none;
    }

    /* Rotate Chevron when checkbox is NOT checked */
    .perm-toggle-input:not(:checked) ~ .perm-header .chevron-icon {
        transform: rotate(180deg);
    }

.chevron-icon {
    transition: transform 0.3s ease;
}

/* Keeping your header styling consistent */
.perm-header {
    cursor: pointer;
    user-select: none;
}



/* Ensure the container takes full height */


@media (min-width: 992px) {
    /* Ensures both columns are exactly the same height on large screens */
    .row {
        display: flex;
        align-items: stretch;
    }



    /* CSS to handle the selection highlight in your Work Class List */
    /* Use this single block for the selected role */
    .wc-item.active-link {
        background-color: #1a5d7c !important;
        color: white !important;
        border-left: 4px solid #1D5C7E !important;
        font-weight: bold;
    }


    /* Keeps the button looking clean and removes the selection frame */
    .PermissionSave:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    /* This creates the "Pressed" feel */
    .PermissionSave:active {
        transform: translateY(2px) scale(0.98) !important; /* Moves down 2px and shrinks slightly */
        box-shadow: inset 0 3px 5px rgba(0,0,0,0.2) !important; /* Adds an internal shadow for depth */
        background-color: #144a63 !important; /* Darkens the blue slightly while pressed */
    }

    /* Smooth transition for the effect */
    .PermissionSave {
        transition: transform 0.1s ease, background-color 0.2s ease;
    }
    /*-------------------Finance page2 styles-------------------------------------------------------*/
    /* Page Background */
    .finance-page2 {
        background-color: #f4f6f9;
        min-height: 100vh;
        padding: 20px;
    }

    /* Cards */
    .finance-page2 .custom-card {
        border-radius: 10px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .finance-page2 .section-header {
        background-color: #ffffff;
        border-bottom: 1px solid #e5e5e5;
    }

    /* Table Header */
    .finance-page2 .table-header {
        color: #444;
        margin-bottom: 10px;
    }

    /* Breadcrumb */
    .finance-page2 .custom-breadcrumb {
        background: none;
        padding: 0;
        margin-bottom: 0;
    }

    /* Buttons */
    .finance-page2 .btn-primary {
        background-color: #1f4e79;
        border-color: #1f4e79;
    }

        .finance-page2 .btn-primary:hover {
            background-color: #163a5c;
            border-color: #163a5c;
        }

    .finance-page2 .btn-success {
        background-color: #1f4e79;
        border-color: #1f4e79;
    }

    .finance-page2 .btn-danger {
        background-color: #dc3545;
    }

    /* Form Controls */
    .finance-page2 .form-control,
    .finance-page2 .form-select {
        height: 38px;
        border-radius: 6px;
    }

    /* Labels */
    .finance-page2 .form-label {
        margin-bottom: 4px;
    }
}
/*---------------FinanceItem styles---------------------*/


/* ════════════════════════════════════════════════
   FINANCE ITEM PAGE — finance-item.css
   All styles scoped under .finance-item-wrapper
   No changes to site.css or global styles
   ════════════════════════════════════════════════ */

/* ── Card shell ─────────────────────────────────── */
.finance-item-wrapper .finance-card {
    border: 1px solid #dde4ed;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* ── Card header bar ────────────────────────────── */
.finance-item-wrapper .finance-card-header {
    background-color: #74a2b5;
    color: #ffffff;
    border-bottom: none;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}


    .finance-item-wrapper .finance-card-header .bi {
        color: rgba(255, 255, 255, 0.85);
    }

/* ── Agreement Details labels ───────────────────── */
.finance-item-wrapper .finance-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Agreement Details inputs ───────────────────── */
.finance-item-wrapper .finance-card .card-body .form-control {
    font-size: 0.82rem;
    color: #2c3549;
}

/* ════════════════════════════════════════════════
   VEHICLE DETAILS CARD — single row, compact
   ════════════════════════════════════════════════ */
.finance-item-wrapper .finance-card .card-body .finance-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: flex-end;
    margin: 0;
}

    .finance-item-wrapper .finance-card .card-body .finance-row > [class*="col-"] {
        flex: 1 1 0;
        padding-left: 0;
        padding-right: 0;
        min-width: 0;
    }

    .finance-item-wrapper .finance-card .card-body .finance-row > .col-lg-2 {
        flex: 0 0 120px;
        max-width: 120px;
    }

.finance-item-wrapper .finance-vd-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finance-item-wrapper .finance-card .card-body .finance-row .form-control,
.finance-item-wrapper .finance-card .card-body .finance-row .form-select {
    height: 34px;
    font-size: 0.78rem;
    padding: 4px 7px;
    border-radius: 5px;
    border: 1px solid #dde1ea;
    background-color: #fff;
    color: #2c3549;
    box-shadow: none;
    transition: border-color 0.15s;
    width: 100%;
    min-width: 0;
}

    .finance-item-wrapper .finance-card .card-body .finance-row .form-control:focus,
    .finance-item-wrapper .finance-card .card-body .finance-row .form-select:focus {
        border-color: #448ddb;
        box-shadow: 0 0 0 2px rgba(68, 141, 219, 0.12);
        outline: none;
    }

.finance-item-wrapper .finance-card .card-body .finance-row .col-lg-2 .btn {
    height: 34px;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ════════════════════════════════════════════════
   ADDED VEHICLES — CSS Grid table
   ════════════════════════════════════════════════ */
.vlt-header,
.vlt-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.8fr 1.6fr 1.6fr 1.1fr 0.9fr 80px;
    align-items: center;
    padding: 10px 16px;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

.vlt-header {
    background: #f6f8fb;
    border-bottom: 2px solid #edf0f5;
    font-weight: 700;
    font-size: 0.68rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vlt-row {
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.76rem;
    color: #2c3549;
    transition: background 0.15s;
}

    .vlt-row:last-child {
        border-bottom: none;
    }

    .vlt-row:hover {
        background: #f9fafc;
    }

.vlt-col {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vlt-price {
    font-weight: 600;
    color: #1a5276;
}

.vlt-col-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

    .vlt-col-actions .fi-btn-edit {
        background-color: #448ddb;
        color: #fff;
        border: none;
        border-radius: 6px;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.15s;
        font-size: 0.82rem;
    }

        .vlt-col-actions .fi-btn-edit:hover {
            background-color: #2d78cc;
        }

    .vlt-col-actions .fi-btn-delete {
        background-color: #fdecea;
        color: #c0392b;
        border: 1px solid #f0d0cc;
        border-radius: 6px;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
        font-size: 0.82rem;
    }

        .vlt-col-actions .fi-btn-delete:hover {
            background-color: #dc143c;
            color: #fff;
            border-color: #dc143c;
        }

        .vlt-col-actions .fi-btn-delete:hover {
            background-color: #dc143c;
            color: #fff;
            border-color: #dc143c;
        }

.field-error {
    display: none;
    color: red;
    font-size: 12px;
    margin-top: 3px;
}

/*Customer Registration*/
.cus-reg-body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}



.cus-reg-main-container {
    max-width: 1050px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
}



/*.cus-reg-title {

    font-size: 1.5rem;

    color: #334e68;

    margin-bottom: 20px;

}*/



/* Toolbar container alignment */
.cus-reg-toolbar {
    display: flex;
    justify-content: space-between; /* Keeps search on left, buttons on right */
    align-items: center;
    margin-bottom: 20px; /* Space between the toolbar and the white box below */
    padding: 0 5px; /* Matches the alignment of the container below */
}


/* The rounded 'pill' wrapper */
.cus-reg-search-box-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 30px; /* Creates the pill shape seen in the image */
    padding: 4px 20px;
    gap: 20px;
    background-color: #fff;
    width: fit-content;
}
/* Internal radio label alignment */
.cus-reg-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    margin: 0;
}
/* The input container inside the wrapper */
.cus-reg-input-with-icon {
    display: flex;
    align-items: center;
}
/* The specific search input field */
.cus-reg-search-field {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
    width: 180px; /* Keeps the search box neat and consistent */
    transition: border-color 0.2s;
}

    /* Blue border on focus (matches your other boxes) */
    .cus-reg-search-field:focus {
        border-color: #86b7fe;
    }



/* --- Buttons Section --- */

.cus-reg-btn-search,
.cus-reg-btn-add,
.cus-reg-btn-save {
    /* Use flex to center text regardless of element type */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Exact sizing */
    width: 110px; /* Matches the width of the search button in your image */
    height: 38px; /* Fixed height forces them to be identical */

    background-color: #2d6a8e;
    color: white !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none; /* Removes underline from the 'Add New' link */

    padding: 0; /* Remove padding so height/width take full control */
    box-sizing: border-box;
}

    /* Added active state for click feedback */
    .cus-reg-btn-search:active,
    .cus-reg-btn-add:active,
    .cus-reg-btn-save:active {
        background-color: #1a4d75; /* Darker blue when clicked */
        transform: translateY(1px); /* Slight movement to feel clickable */
    }



    .cus-reg-btn-search:hover,
    .cus-reg-btn-add:hover,
    .cus-reg-btn-save:hover {
        background-color: #1a4d75;
        text-decoration: none;
    }



/* Container to keep them aligned on the same baseline */

.cus-reg-action-buttons {
    display: flex;
    gap: 10px; /* Space between Search and Add New buttons */
    margin-left: 20px;
    margin-bottom: 4px;
    padding: 0 5px;
}


.cus-reg-form-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



/* --- Label Styling (The text above the boxes) --- */

.cus-reg-field-label {
    font-size: 12px;
    font-weight: 500; /* Reduced from Bold (700) to Medium (500) */

    color: #555;
    margin-bottom: 5px;
    display: inline-block;
}


.NICVali {
    color: red;
    font-size: 12px;
    display: none
}



/* Styling for Address, Additional Details, and Approach boxes */
#txtAddress,
#txtAdditional\ Details,
#txtHow\ To\ Approach\ From\ Popular\ Location {
    width: 100%;
    height: 75px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: none;
    display: block;
}

    /* Keeps only the blue border color when clicking inside */
    #txtAddress:focus,
    #txtAdditional\ Details:focus,
    #txtHow\ To\ Approach\ From\ Popular\ Location:focus {
        outline: none;
        border-color: #86b7fe;
    }

/* --- Input & Textarea Styling (The text inside the boxes) --- */

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* This ensures the box size doesn't change */
    /* Text inside the box */

    font-size: 13px; /* Smaller font for input data */

    font-weight: 400; /* Normal weight, not bold */

    color: #333;
}

    input[type="text"]:focus,
    input[type="date"]:focus,
    textarea:focus {
        outline: none; /* Removes default browser outline */
        border-color: #86b7fe; /* Changes to the blue border you liked */
        box-shadow: none; /* Ensures NO blue glow/shadow appears */
    }

    /* Force the textarea to not be resizable by the user */

    textarea.form-control {
        resize: none;
    }



.cus-reg-row-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}



.cus-reg-row-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cus-reg-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.required-star {
    color: red;
    margin-left: 5px;
}

.error-msg {
    color: red;
    font-size: 12px;
    display: none;
}
/* Hidden by default */
.input-validation-error {
    border: 1px solid red !important;
}



/*Reset Password Screen*/

/* Container Layout */
.reset-page-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.reset-form-container {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Typography */
.reset-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
}

.reset-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Input Styling */
.reset-input-group {
    margin-bottom: 20px;
}

.reset-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.reset-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s;
}

    .reset-control:focus {
        border-color: #007bff;
        outline: none;
    }

/* Error States */
.reset-error-msg {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* This targets the field specifically when current password is wrong */
.is-invalid-field {
    border: 2px solid #dc3545 !important;
    background-color: #fff8f8;
}

/* Button Styling */
.btn-reset-submit {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-reset-submit:hover {
        background-color: #0056b3;
    }

/*-------------Common Button style---------------------------*/

.productBtn {
    background-color: #1f5d75;
    border: none;
    color: #fff;
    border-radius:3px;
}

    .productBtn:hover {
        background-color: #17495c;
    }

.productBtn {
    padding: 8px 16px;
}
/*
        .CommonBtn:active,
    .CommonBtn.active,
    .CommonBtn.show,
    .btn-check:checked + .CommonBtn{
        color: #fff !important; 
        background-color: #17495c !important; 
        border: none !important; 
    }

.productBtn.active {
    color: #fff !important;
    background-color: #32cd32 !important;
    border: none !important;
}
.CommonBtnDelete.active {
    color: #fff !important; 
    background-color: #bb2d3b!important; 
    border: none !important; 
}

.CommonBtnEdit {
    border: none !important;
    color: #fff !important;
    padding: 8px 16px;
}
.CommonBtnDelete {
    border: none;
    color: #fff;
    padding: 8px 16px;
}
.CommonBtnDelete:hover {
        background-color: #960018 !important;
}
.CommonBtnEdit:hover {
    background-color: #008000 !important;
}

*/




/*----------------------Form styles in Guarator screen-------------------------------------*/
textarea.form-control {
    min-height: calc(1.5em + 3.75rem + calc(var(--bs-border-width) * 2)) !important;
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.175) !important;
}
/*------------------------------------------------------------------------------------------------*/

/*Payment Page*/

/* ==========================================================================
   1. GLOBAL & LAYOUT
   ========================================================================== */
.Payment__container {
    max-width: 1200px;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #fdfdfd;
    color: #333;
    padding: 20px;
}

/* Update the parent header */
.Payment__top-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* Force the breadcrumb to stay on the left without growing */
.Payment__breadcrumb {
    flex: 1; /* This pushes everything else to the right, but we want the bar centered */
    font-weight: bold;
    font-size: 1.1rem;
    color: #444;
}

/* ==========================================================================
   2. SEARCH BAR CLASSES (Isolated)
   ========================================================================== */
.PaymentSearch__container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    padding: 2px 12px;
    height: 38px;
    gap: 15px;
}

.PaymentSearch__options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.PaymentSearch__control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.PaymentSearch__label {
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
}

.PaymentSearch__radio {
    cursor: pointer;
    width: 14px;
    height: 14px;
    margin: 0;
}

.PaymentSearch__divider {
    width: 1px;
    height: 20px;
    background-color: #ddd;
    margin: 0 5px;
}

.PaymentSearch__input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

.PaymentSearch__field {
    border: none !important; /* Critical: Stops other input styles interfering */
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    width: 100%;
    padding-right: 30px;
}

.PaymentSearch__button {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .PaymentSearch__button:hover {
        color: #333;
    }

/* ==========================================================================
   3. INFORMATION CARD & GRID CLASSES
   ========================================================================== */
.Payment__info-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.Payment__section-title {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.Payment__grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.Payment__grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
}

.Payment__input-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

    .Payment__input-group-row label {
        text-align: left;
        flex: 1;
        font-size: 0.85rem;
        font-weight: 600;
    }

/* ==========================================================================
   4. FORM INPUT CLASSES (Alignment Separation)
   ========================================================================== */
.Payment__container input[type="text"] {
    width: 65%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.Payment__customer-input {
    text-align: left !important;
    background-color: #f9f9f9;
    color: #333;
}

.Payment__finance-input {
    text-align: right !important;
    background-color: #fff;
}

.Payment__container input[readonly] {
    background-color: #f9f9f9;
    color: #666;
    border-color: #e0e0e0;
}

.Payment__highlight-input {
    border: 2px solid #aaa !important;
    font-weight: bold;
    color: #000 !important;
    background-color: #fff !important;
}

.Payment__bold {
    font-weight: bold;
}

/* ==========================================================================
   5. PAYMENT HISTORY TABLE (Styled like Product Table)
   ========================================================================== */

/* Remove default background and align with product-table */
.Payment__history-table {
    width: 100%;
    border-collapse: collapse;
    --bs-table-bg: transparent;
}

    /* Header style matching .product-table thead */
    .Payment__history-table thead {
        background-color: #94979E; /* Same as product-table */
        color: #fff;
    }

    .Payment__history-table th {
        padding: 12px;
        font-weight: 600;
        text-align: center; /* Matching product-table center alignment */
    }

    /* Row and Cell Alignment */
    .Payment__history-table td {
        padding: 12px;
        text-align: center; /* Matching product-table center alignment */
        vertical-align: middle;
        border-bottom: 1px solid #dee2e6;
    }

    /* Zebra Striping matching .productListBtn tr:nth-child(even) */
    .Payment__history-table tbody tr:nth-child(even) {
        background-color: #C4C4C4 !important; /* The specific grey from your reference */
    }

    /* Hover effect (Optional, consistent with clean UI) */
    .Payment__history-table tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Handling specific border radius for the last rows if needed */
    .Payment__history-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 0.300rem;
    }

    .Payment__history-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 0.300rem;
    }

/* Link styling for "View More" */
.Payment__view-more {
    text-align: right;
    margin-top: 15px;
}

    .Payment__view-more a {
        color: #1f5f7a; /* Using the blue from your btn-select */
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: bold;
    }

        .Payment__view-more a:hover {
            text-decoration: underline;
        }

/* --- Positioning Wrapper --- */
.Payment__action-area {
    display: flex;
    justify-content: flex-end; /* Pushes content to the right */
    padding: 20px 0;
    width: 100%;
}

/* --- Your Button Design --- */
.PaymentSave {
    background-color: #1a5d7d; /* Original blue */
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

    /* Keeps the button looking clean and removes the selection frame */
    .PaymentSave:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    /* This creates the "Pressed" feel */
    .PaymentSave:active {
        transform: translateY(2px) scale(0.98) !important;
        box-shadow: inset 0 3px 5px rgba(0,0,0,0.2) !important;
        background-color: #144a63 !important;
    }

.Payment__action-area--row {
    width: 100%;
    padding: 0;
    display: block;
}




    /*Pop up*/

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.popup-box {
    width: 420px;
    background: #f2f2f2;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    padding: 20px 25px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

    .popup-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.popup-body {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
}



.popup-btn {
    padding: 6px 16px;
    border: 1px solid #c8c8c8;
    background: #eaeaea;
    cursor: pointer;
    font-size: 14px;
}

.popup-btn-primary {
    background: white;
}

.popup-btn-secondary {
    background: white;
}

.popup-btn:hover {
    background: #ddd;
}

.pointer-cursor {
    cursor: pointer;
}


/*-------------------Customer auth style------------------------*/


.customer-auth-table-header {
    background-color: #94979E;
    padding: 5px 0px;
    
}

.customer-auth-row:nth-child(odd) {
    background-color: #C4C4C4;
}

.customer-auth-row {
    margin: 0; 
    padding: 5px 0; 
    
}

    .customer-auth-row .col-lg {
        padding: 4px 0px; /* reduce column padding */
    }
.card{
    --bs-card-border-radius: 0 !important; /* removes rounding */
    border-radius: 0; /* ensures no rounded corners */
}

.customer-auth-table-header,
.customer-auth-row {
    padding-left: 12px; /* adjust as needed */
    padding-right: 18px;
}
/*-----------------------------------------*/


.modal-body {
    max-height: 500px; /* or any height you prefer */
    overflow-y: auto; /* enable vertical scrolling */
}



/*----------------------Pending Reject table style-----------------------------------------------*/

.pendingRejectTable table thead th {
    background-color: #94979E !important;
   
    box-shadow: none !important; 
}

.pendingRejectTable table tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
    box-shadow: none !important;
}

.pendingRejectTable table tbody tr:nth-child(even) td {
    background-color: #C4C4C4 !important;
    box-shadow: none !important;
}

.nav-tabs .nav-link {
    color: #000000 !important;
}

.col-name {
    width: 250px;
}

.col-nic {
    width: 200px;
}

.col-status {
    width: 120px;
}

.col-requested-on {
    width: 180px;
}

.col-requested-by {
    width: 200px;
}

.pendingRejectTable table, td {
    padding: 12px !important; 
}

.pendingRejectTable table {
    border: 1px solid #dee2e6; 
}

/*---------------------------------------------------------*/

/*Pop up*/

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    z-index: 1060;
    backdrop-filter: blur(3px);
    animation: fadeInOverlay 0.2s ease;
}

    .popup-overlay.show {
        display: flex;
    }

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================== POPUP BOX ===================== */
.popup-box {
    width: 440px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: hidden;
    animation: slideUpBox 0.25s ease;
}

@keyframes slideUpBox {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================== POPUP LARGE ===================== */
.popup-lg {
    width: 720px;
    max-width: 95vw;
    max-height: 90vh;
}

/* ===================== POPUP HEADER ===================== */
.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1a3c5e 0%, #2d6a9f 100%);
    color: #ffffff;
    letter-spacing: 0.3px;
    border-bottom: none;
}

/* ===================== POPUP CLOSE BUTTON ===================== */
.popup-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

    .popup-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ===================== POPUP ICON ===================== */
.popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

    .popup-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* ===================== POPUP BODY ===================== */
.popup-body {
    font-size: 14px;
    color: #4a5568;
    padding: 24px 24px 10px 24px;
    line-height: 1.6;
}

    .popup-body .form-label {
        font-size: 13px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 5px;
    }

    .popup-body .form-control {
        font-size: 13px;
        border: 1px solid #d1d9e0;
        border-radius: 6px;
        padding: 8px 10px;
        background: #f8fafc;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .popup-body .form-control:focus {
            border-color: #2d6a9f;
            box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.12);
            outline: none;
            background: #fff;
        }

        .popup-body .form-control:disabled {
            background: #f0f4f8;
            color: #555;
            border-color: #dde3ea;
        }

/* ===================== POPUP BODY SCROLL (Large Modal) ===================== */
.popup-body-scroll {
    font-size: 14px;
    color: #4a5568;
    padding: 20px 24px 10px 24px;
    overflow-y: auto;
    max-height: 62vh;
    line-height: 1.6;
}

    .popup-body-scroll .form-label {
        font-size: 13px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 5px;
    }

    .popup-body-scroll .form-control {
        font-size: 13px;
        border: 1px solid #d1d9e0;
        border-radius: 6px;
        padding: 8px 10px;
        background: #f8fafc;
        transition: border-color 0.2s ease;
    }

        .popup-body-scroll .form-control:disabled {
            background: #f0f4f8;
            color: #555;
            border-color: #dde3ea;
        }

    /* Scrollbar styling */
    .popup-body-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .popup-body-scroll::-webkit-scrollbar-track {
        background: #f0f4f8;
    }

    .popup-body-scroll::-webkit-scrollbar-thumb {
        background: #b0bec5;
        border-radius: 10px;
    }

        .popup-body-scroll::-webkit-scrollbar-thumb:hover {
            background: #2d6a9f;
        }

/* ===================== POPUP ACTIONS ===================== */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 100px;
    padding: 16px 24px 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e8edf2;
}


/* ===================== POPUP BUTTONS ===================== */
.popup-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #1a3c5e, #2d6a9f);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(45, 106, 159, 0.35);
}

    .popup-btn-primary:hover {
        background: linear-gradient(135deg, #15304e, #255d8c);
        box-shadow: 0 4px 12px rgba(45, 106, 159, 0.45);
        transform: translateY(-1px);
    }

.popup-btn-secondary {
    background: #ffffff;
    color: #4a5568;
    border: 1px solid #d1d9e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

    .popup-btn-secondary:hover {
        background: #f0f4f8;
        border-color: #b0bec5;
        transform: translateY(-1px);
    }

.popup-btn-danger {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.35);
}

    .popup-btn-danger:hover {
        background: linear-gradient(135deg, #a93226, #cb4335);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.45);
        transform: translateY(-1px);
    }

/* ===================== MISC ===================== */
.pointer-cursor {
    cursor: pointer;
}

/* ===================== MESSAGE POPUP ===================== */
.popup-message-box {
    width: 360px;
    text-align: center;
}

.msg-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin: 10px auto 0 auto;
}

.msg-popup-icon-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.msg-popup-icon-error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}


/*-------------------Customer auth style------------------------*/


.customer-auth-table-header {
    background-color: #94979E;
    padding: 5px 0px;
}

.customer-auth-row:nth-child(odd) {
    background-color: #C4C4C4;
}

.customer-auth-row {
    margin: 0;
    padding: 5px 0;
}

    .customer-auth-row .col-lg {
        padding: 4px 0px; /* reduce column padding */
    }

.card {
    --bs-card-border-radius: 0 !important; /* removes rounding */
    border-radius: 0; /* ensures no rounded corners */
}

.customer-auth-table-header,
.customer-auth-row {
    padding-left: 12px; /* adjust as needed */
    padding-right: 18px;
}
/*-----------------------------------------*/


.modal-body {
    max-height: 500px; /* or any height you prefer */
    overflow-y: auto; /* enable vertical scrolling */
}




/*Loader*/

[class~="loader-overlay"] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    [class~="loader-overlay"]:not(.d-none) {
        display: flex !important;
    }

[class~="loader"] {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .loader-overlay:not(.d-none) {
        display: flex !important;
    }

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
}

    .loader::before,
    .loader::after {
        content: "";
        grid-area: 1/1;
        --c: no-repeat radial-gradient(farthest-side, #25b09b 92%, #0000);
        background: var(--c) 50% 0, var(--c) 50% 100%, var(--c) 100% 50%, var(--c) 0 50%;
        background-size: 12px 12px;
        animation: l12 1s infinite;
    }

    .loader::before {
        margin: 4px;
        filter: hue-rotate(45deg);
        background-size: 8px 8px;
        animation-timing-function: linear;
    }

@keyframes l12 {
    100% {
        transform: rotate(.5turn);
    }
}

/*Finance Calculator*/


/* Header */
.fc-card-header {
    background: linear-gradient(90deg, #4a9aaa, #3d8a9a);
}

/* Read-only computed fields */
.fc-readonly {
    background-color: #f5f7fa !important;
    color: #2e7d8c !important;
    font-weight: 600;
    cursor: not-allowed;
}

/* Calculate button */
.btn-fc-calculate {
    background: linear-gradient(135deg, #3d8a9a, #2e7d8c);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(46, 125, 140, 0.3);
}

    .btn-fc-calculate:hover {
        background: linear-gradient(135deg, #357a8a, #256b7a);
        box-shadow: 0 4px 14px rgba(46, 125, 140, 0.4);
        color: #fff;
    }

    .btn-fc-calculate:active {
        transform: scale(0.98);
        color: #fff;
    }

/* Result boxes */
.fc-result-box {
    background: #f5f7fa;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 14px 16px;
}

    .fc-result-box .fc-result-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #888;
        margin-bottom: 4px;
    }

    .fc-result-box .fc-result-value {
        font-weight: 700;
        color: #2e7d8c;
        font-size: 15px;
    }

    .fc-result-box .fc-result-sub {
        font-size: 11px;
        color: #aaa;
        margin-top: 2px;
    }

    /* Highlighted monthly installment box */
    .fc-result-box.fc-highlight {
        background: linear-gradient(135deg, rgba(74,154,170,0.07), rgba(46,125,140,0.13));
        border-color: rgba(74, 154, 170, 0.35);
    }

        .fc-result-box.fc-highlight .fc-result-value {
            color: #1f6272;
            font-size: 18px;
        }
#fc-vehicle::-webkit-outer-spin-button,
#fc-vehicle::-webkit-inner-spin-button,
#fc-down::-webkit-outer-spin-button,
#fc-down::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#fc-vehicle,
#fc-down {
    -moz-appearance: textfield;
}

#fc-results .row {
    align-items: stretch;
}

#fc-results .fc-result-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/*---------Aggrement AUth Table Style--------------*/

.custom-table-row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: var(--bs-gutter-y);
}
#agreementTableContainer .custom-table-row:nth-child(odd) {
    background-color: #FFFFFF;
}

#agreementTableContainer .custom-table-row:nth-child(even) {
    background-color: #C4C4C4;
}
.btn-view,
.btn-accept {
    background-color: #2067b4 !important;
    border: 1px solid #2067b4;
    color: white;
    padding:8px 15px;
}

.btn-reject,
.btn-delete {
    background-color: #bb2d3b !important;
    border: 1px solid #bb2d3b !important;
    color: #fff !important;
}

.btn-view:hover,
.btn-accept:hover {
    border-color: #2067b4 !important;
    color: white !important;
}

/*Day start and end*/

/* Scoped under day-session namespace */
.day-session-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Info Cards */
.day-session-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.day-session-card {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.05);
}

.day-session-border-primary {
    border-left: 4px solid #0d4a91;
}

.day-session-border-info {
    border-left: 4px solid #17a2b8;
}

.day-session-label-small {
    font-size: 10px;
    font-weight: 800;
    color: #0d4a91;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-session-val-large {
    font-size: 20px;
    font-weight: 700;
    color: #5a5c69;
    margin-top: 4px;
}

/* Buttons */
.day-session-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.day-session-btn-action {
    background: #ffffff;
    border: 1px solid #d1d3e2;
    padding: 22px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

    .day-session-btn-action:hover {
        background: #f8f9fc;
        border-color: #0d4a91;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }

.day-session-btn-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #3a3b45;
}

.day-session-btn-desc {
    font-size: 11px;
    color: #858796;
}

/* Footer Status Bar */
.day-session-footer-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fcfcfc;
    border: 1px solid #e3e6f0;
    border-radius: 4px;
    padding: 15px 5px;
    text-align: center;
}

.day-session-footer-col {
    border-right: 1px solid #e3e6f0;
}

    .day-session-footer-col:last-child {
        border-right: none;
    }

.day-session-footer-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #b7b9cc;
    margin-bottom: 3px;
}

.day-session-time-stamp {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 600;
    color: #5a5c69;
}

.day-session-state-none {
    color: #858796;
    font-weight: 700;
}

.day-session-state-active {
    color: #1cc88a;
    font-weight: 700;
}

.day-session-state-closed {
    color: #e74a3b;
    font-weight: 700;
}


/*---------------Aggrement pending table---------------------*/

table.custom-agreement-table thead tr th {
    background-color: #94979E !important;
    color: #000000 !important;
}

table.custom-agreement-table tbody tr:nth-child(even) {
    background-color: #C4C4C4 !important;
}

table.custom-agreement-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}
.custom-agreement-table {
    --bs-table-bg: transparent; 
}

.custom-agreement-table {
    border: 1px solid #94979E; /* outer border color */
    border-collapse: collapse; /* ensures borders don’t double up */
}
/*--------------------------------------------------------*/
.pendingaggrementview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

.pendingaggrementview-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    width: 80%;
    max-height: 90vh;
    overflow-y: auto;
}

.pendingaggrementview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.pendingaggrementview-title {
    color: #2c3e50; /* single consistent title color */
    font-weight: bold;
}

.pendingaggrementview-body {
    padding: 24px;
}

.pendingaggrementview-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}


/* ============================================================
   GuarantorInq.css
   Scoped styles for the Guarantor Inquiry page.
   All classes prefixed with "guarInq-" to avoid conflicts
   with site.css and other page styles.
   ============================================================ */

/* -- Utility ------------------------------------------------ */
.guarInq-hidden {
    display: none !important;
}

/* -- Card --------------------------------------------------- */
.guarInq-card {
    background: #ffffff;
    border: 1px solid #dde3ef;
    border-radius: 8px;
    overflow: hidden;
}

.guarInq-card-header {
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.guarInq-header-blue {
    background: linear-gradient(90deg, #1e5bab, #2472d4);
}

.guarInq-header-teal {
    background: linear-gradient(90deg, #1a8a7a, #24a896);
}

.guarInq-header-hint {
    opacity: 0.7;
    font-weight: 400;
    font-size: 12px;
}

/* -- Info Fields -------------------------------------------- */
.guarInq-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #8a93b0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

.guarInq-field-value {
    font-size: 13.5px;
    font-weight: 500;
    background: #f4f6fb;
    border: 1px solid #dde3ef;
    border-radius: 6px;
    padding: 7px 12px;
    min-height: 36px;
    color: #1a2340;
}

/* -- Agreements Count Badge --------------------------------- */
.guarInq-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f7f5;
    border: 1px solid #b2e4dc;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a8a7a;
}

.guarInq-count-pill {
    background: #1a8a7a;
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* -- Table -------------------------------------------------- */
.guarInq-table-head {
    background: #f0f4fb;
}

    .guarInq-table-head th {
        font-size: 11.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #4a5578;
        border-bottom: 2px solid #dde3ef;
        padding: 10px 14px;
        white-space: nowrap;
    }

#gInq-agreementTableBody td {
    font-size: 13px;
    padding: 10px 14px;
    color: #1a2340;
    vertical-align: middle;
}

#gInq-agreementTableBody tr {
    cursor: pointer;
    transition: background 0.12s;
}

    #gInq-agreementTableBody tr:hover {
        background: #f7faff;
    }

    #gInq-agreementTableBody tr.guarInq-row-selected {
        background: #e8f7f5;
    }

/* -- Status Tags -------------------------------------------- */
.guarInq-tag-active {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
}

.guarInq-tag-closed {
    background: #fce8e8;
    color: #c62828;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
}

/* -- Select Button ------------------------------------------ */
.guarInq-btn-select {
    background: #1a8a7a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

    .guarInq-btn-select:hover {
        background: #157a6a;
    }

    .guarInq-btn-select.guarInq-btn-chosen {
        background: #1e5bab;
    }

/* -- Agreement Detail Values -------------------------------- */
.guarInq-detail-value {
    font-size: 14px;
    font-weight: 600;
    background: #f4f6fb;
    border: 1px solid #dde3ef;
    border-radius: 6px;
    padding: 9px 13px;
    color: #1a2340;
}

.guarInq-highlight {
    color: #1a8a7a;
    background: #e8f7f5;
    border-color: #b2e4dc;
}

.guarInq-mono {
    font-family: 'Courier New', monospace;
}


/* ============================================================
   site.css  –  Inquires Page Styles
   All classes are prefixed with "CustomerInq__" / "CustomerInqSearch__" to avoid conflicts.
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    background-color: #f4f5f7;
    color: #2d2d2d;
}

/* ---------- Navbar ---------- */
.CustomerInq__navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 16px;
    height: 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.CustomerInq__navbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.CustomerInq__navbar__menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

    .CustomerInq__navbar__menu-btn:hover {
        background-color: #f0f0f0;
    }

.CustomerInq__navbar__title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.CustomerInq__navbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.CustomerInq__navbar__meta {
    font-size: 12px;
    color: #666;
}

.CustomerInq__navbar__icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
    color: #555;
}

.CustomerInq__navbar__icon-btn--power {
    color: #e53935;
}

.CustomerInq__navbar__icon-btn--lock {
    color: #e53935;
}

.CustomerInq__navbar__icon-btn:hover {
    background-color: #f0f0f0;
}

/* ---------- Top Nav Row (Search Bar Row) ---------- */
.CustomerInq__top-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    margin: 0;
}

.CustomerInq__breadcrumb {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.3px;
}

/* ---------- CustomerInqSearch – mirrors PaymentSearch exactly ---------- */
.CustomerInqSearch__container {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    height: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    max-width: 100%;
}

.CustomerInqSearch__options {
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    flex-shrink: 0;
}

.CustomerInqSearch__control {
    display: flex;
    align-items: center;
}

.CustomerInqSearch__label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #444;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.CustomerInqSearch__radio {
    accent-color: #6c3ec9;
    width: 13px;
    height: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.CustomerInqSearch__divider {
    width: 1px;
    height: 22px;
    background-color: #d0d0d0;
    flex-shrink: 0;
}

.CustomerInqSearch__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.CustomerInqSearch__field {
    border: none;
    outline: none;
    padding: 0 36px 0 10px;
    font-size: 13px;
    width: 170px;
    height: 36px;
    background: transparent;
    color: #2d2d2d;
    font-family: inherit;
}

    .CustomerInqSearch__field::placeholder {
        color: #aaa;
    }

.CustomerInqSearch__btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s;
    border-left: 1px solid #e0e0e0;
}

    .CustomerInqSearch__btn:hover {
        background-color: #f3eeff;
        color: #6c3ec9;
    }

/* ---------- Main ---------- */
.CustomerInq__main {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Section ---------- */
.CustomerInq__section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.CustomerInq__section__heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #2d2d2d;
    padding: 10px 16px 8px;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fafafa;
}

/* ---------- Scrollable Table Wrapper ---------- */
.CustomerInq__table-scroll {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

    .CustomerInq__table-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .CustomerInq__table-scroll::-webkit-scrollbar-track {
        background: #f0f0f0;
    }

    .CustomerInq__table-scroll::-webkit-scrollbar-thumb {
        background-color: #b0b0b0;
        border-radius: 3px;
    }

/* ---------- Table ---------- */
.CustomerInq__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.CustomerInq__table--tickets {
    min-width: 1400px;
}

.CustomerInq__table__th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #555;
    padding: 8px 12px;
    border-bottom: 2px solid #e4e4e4;
    white-space: nowrap;
    background-color: #fafafa;
}

.CustomerInq__table__td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12.5px;
    color: #333;
    white-space: nowrap;
}

.CustomerInq__table__row:last-child .CustomerInq__table__td {
    border-bottom: none;
}

.CustomerInq__table__row:hover .CustomerInq__table__td {
    background-color: #f8f7ff;
}

.CustomerInq__table__td--actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.CustomerInq__table__row--empty .CustomerInq__table__td {
    text-align: center;
    color: #aaa;
    padding: 20px;
    font-style: italic;
}

/* ---------- Buttons ---------- */
.CustomerInq__btn {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.CustomerInq__btn--outline {
    background: #ffffff;
    border: 1px solid #bbb;
    color: #333;
}

    .CustomerInq__btn--outline:hover {
        background-color: #f0f0f0;
        border-color: #999;
    }

/* ---------- Pagination ---------- */
.CustomerInq__pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 14px;
    border-top: 1px solid #ebebeb;
    background-color: #fafafa;
    flex-wrap: wrap;
}

.CustomerInq__pagination__info {
    font-size: 12px;
    color: #666;
}

.CustomerInq__pagination__controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.CustomerInq__pagination__btn {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 13px;
    cursor: pointer;
    color: #444;
    transition: background 0.15s;
}

    .CustomerInq__pagination__btn:hover {
        background-color: #f0f0f0;
    }

.CustomerInq__pagination__page {
    font-size: 12px;
    color: #555;
    padding: 0 6px;
}

/* ---------- Tabs Section ---------- */
.CustomerInq__tabs-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.CustomerInq__tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background-color: #fafafa;
    padding: 0 12px;
    gap: 2px;
}

.CustomerInq__tabs__tab {
    padding: 9px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    color: #555;
    transition: color 0.15s, border-color 0.15s;
    border-radius: 4px 4px 0 0;
}

    .CustomerInq__tabs__tab:hover {
        color: #6c3ec9;
        background-color: #f3eeff;
    }

.CustomerInq__tabs__tab--active {
    color: #ffffff;
    background-color: #6c3ec9;
    border-bottom-color: #6c3ec9;
}

    .CustomerInq__tabs__tab--active:hover {
        background-color: #5a32a8;
        color: #ffffff;
    }

/* ---------- Tab Panels ---------- */
.CustomerInq__tab-panel {
    display: none;
    padding: 0;
}

.CustomerInq__tab-panel--active {
    display: block;
}

/* ---------- Customer table column widths ---------- */
.CustomerInq__table--customer col.col-id {
    width: 12%;
}

.CustomerInq__table--customer col.col-name {
    width: 28%;
}

.CustomerInq__table--customer col.col-dob {
    width: 10%;
}

.CustomerInq__table--customer col.col-address {
    width: 25%;
}

.CustomerInq__table--customer col.col-phone {
    width: 12%;
}

.CustomerInq__table--customer col.col-status {
    width: 8%;
}

.CustomerInq__table--customer col.col-actions {
    width: 5%;
}