﻿@import url("gloaltablestyles.css");
@import url("responsive.css");
@import url("datepicker.css");
@import url("popupmodel.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bg-primary {
    background-color: rgb(1 49 114) !important;
}

.btn-primary {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.bg-danger {
    background-color: rgb(226 66 82) !important;
}

.bg-success {
    background-color: rgb(2 61 34) !important;
}

.header-left img {
    margin: 10px 0;
    display: block;
}

.add-cart-button-group {
    font-family: Arial, sans-serif;
    margin-bottom: 12px;
    border-radius: 10px;
}

.invoice-summary {
    margin: 20px auto;
    padding: 15px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.invoice-label {
    font-family: Verdana, sans-serif;
    font-size: 12pt;
    font-weight: 700;
    text-align: right;
    flex: 1;
}

.invoice-value {
    font-family: Verdana, sans-serif;
    font-size: 12pt;
    font-weight: 700;
    text-align: right;
    flex: 1;
}

.red-text {
    color: red;
    font-size: 20pt;
}

.total .invoice-label {
    font-size: 20pt;
}

.total .invoice-value {
    font-size: 20pt;
}




.product-box {
    font-family: Arial, sans-serif;
    background-color: #2626262b;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
    margin-top: 10px;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.add-cart-group {
    font-family: Arial, sans-serif;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 15px;
}

    .add-cart-group label {
        font-size: 14px;
        font-weight: bold;
        color: #333;
        display: block;
        margin-bottom: 8px;
    }

    .add-cart-group select,
    .add-cart-group input {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        border: 1px solid #cccccc6b;
        border-radius: 5px;
        box-sizing: border-box;
    }

        .add-cart-group input:focus,
        .add-cart-group select:focus {
            border-color: #007bff;
            outline: none;
        }

        .add-cart-group input::placeholder {
            color: #aaa;
        }

.product-box .add-cart-group:last-child {
    text-align: center;
}



.btn-add:hover {
    background-color: #0056b3;
}

.btn-add {
    background-color: #0000ad;
    color: white;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    font-size: 10pt;
    border-radius: 5px;
    margin-left: 2.4%; /* Right-align */
    align-self: flex-end;
    margin-top: 10px;
    margin-bottom: 10px;
}

.finalbtn-add {
    background-color: #0000ad;
    color: white;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    font-size: 10pt;
    border-radius: 5px;
    margin-left: auto; /* Right-align */
    align-self: flex-end;
    margin-top: 10px;
    margin-bottom: 10px;
}

.final1btn-add {
    background-color: #0000ad;
    color: white;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    font-size: 10pt;
    border-radius: 5px;
    margin-left: 1.2%; /* Right-align */
    align-self: flex-end;
    margin-top: 10px;
    margin-bottom: 10px;
}

#txtproductcode {
    width: 400px;
}

#txtunitprice {
    width: 140px;
}


#txtqty {
    width: 120px;
}


.checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}


.custom-addcart-width {
    width: 70%;
}

.mb-3 {
    margin-bottom: 2px !important;
}

.custom-label {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.prod-code-col {
    flex: 0 0 30%; /* 30% width */
    max-width: 30%;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Spacing between fields */
}

.flex-item {
    flex: 1; /* Distribute remaining space equally */
    min-width: 120px; /* Prevents shrinking too much on small screens */
}



.addcart-buy-details {
    font-family: Arial, sans-serif;
    margin-bottom: 12px;
    background-color: #fafafa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.addinvocie-buy-details {
    font-family: Arial, sans-serif;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

    .addinvocie-buy-details h3 {
        font-size: 12pt;
        color: #00457b;
        text-align: left;
        font-weight: bold;
        margin: 0px;
    }

    .addinvocie-buy-details p {
        font-size: 10pt;
        color: #00457b;
        text-align: left;
        margin: 0px;
    }

.invoicerightcol-md-4col-12mb-3 {
    padding: 5px !important;
}



.hyperlink {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

    .hyperlink:hover {
        color: #0a75c7;
    }

.tox .tox-toolbar .tox-toolbar-button {
    font-size: 9px; /* Set the font size to your desired value */
}

.custom-stockadjustment-btn {
    background-color: #f44336; /* Custom green color */
    border: none;
    padding: 3px 7px;
    font-size: 10px;
    border-radius: 8px;
    color: white;
}

    .custom-stockadjustment-btn:hover {
        background-color: white;
        transform: scale(1.05);
        color: black;
    }

.custom-excel-btn {
    background-color: #198754; /* Custom green color */
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 8px;
    color: white;
}

    .custom-excel-btn:hover {
        background-color: #218838;
        transform: scale(1.05);
        color: white;
    }

    .custom-excel-btn i {
        margin-right: 8px; /* Space between icon and text */
    }

.btn-success {
    background-color: #0000ad; /* Custom green color */
    border: none;
    padding: 5px 10px;
    font-size: 15px;
    border-radius: 8px;
    color: white;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* ---- Cancel button ---- */
.btn-cancel {
    background-color: #ff1232;
    border: none;
    padding: 5px 10px;
    font-size: 15px;
    border-radius: 8px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .btn-cancel {
        flex: 1 1 0;
        max-width: 140px;
        padding: 10px 0;
        font-size: 14px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .btn-cancel {
        max-width: 130px;
        font-size: 13px;
        padding: 9px 0;
    }
}

.custom-creditinvocie-btn {
    background-color: #0000ad; /* Custom green color */
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    color: white;
    margin-bottom: 10px;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 8px;
    color: white;
}

    .custom-creditinvocie-btn:hover {
        background-color: #015392;
        transform: scale(1.05);
        color: white;
    }

    .custom-creditinvocie-btn i {
        margin-right: 8px; /* Space between icon and text */
    }

.dashboard-card {
    position: relative;
    overflow: hidden;
}

.bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 140px;
    color: rgba(255, 255, 255, 0.2);
    transform: rotate(-14deg);
}

.icon-container {
    display: flex;
    gap: 5px; /* Adds spacing between icons */
    align-items: center;
}

    .icon-container a {
        text-decoration: none; /* Remove underline */
        color: #333; /* Default color */
        font-size: 15px; /* Icon size */
        border-radius: 5px;
        transition: all 0.3s ease;
    }

        .icon-container a i {
            transition: transform 0.2s ease-in-out;
        }

        .icon-container a:hover i {
            transform: scale(1.2); /* Slightly enlarge icon */
        }

    /* Specific Icon Colors */
    .icon-container .InvoiceopenModal {
        color: #ff9800; /* Orange */
    }

    .icon-container .Ledgerprint {
        color: #4caf50; /* Green */
    }

    .icon-container .Ladgeredit {
        color: #2196f3; /* Green */
    }

    .icon-container .Ladgerdelete {
        color: #f44336; /* Green */
    }

#autocompleteList .dropdown-item {
    font-size: 13px; /* Change this value to your preferred font size */
}

.autocomplete-dropdown {
    position: absolute;
    z-index: 1000;
    background: white;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
}

.autocomplete-item {
    padding: 5px;
    cursor: pointer;
}

    .autocomplete-item:hover {
        background-color: #f8f9fa;
    }

.no-results {
    padding: 8px;
    color: #999;
    background: #f8f9fa;
    text-align: center;
}

.input-group .fa-caret-down {
    cursor: pointer;
}

/* Custom Scrollbar Styling */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}


.dropdown-results {
    position: absolute;
    z-index: 1000;
    background: white;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 5px;
    cursor: pointer;
    font-size: 10pt;
}

    .autocomplete-item:hover {
        background-color: #f8f9fa;
    }

.no-results {
    padding: 8px;
    color: #999;
    background: #f8f9fa;
    text-align: center;
}

.input-group .fa-caret-down {
    cursor: pointer;
}
/* Custom Dropdown Styling */
.custom-dropdown {
    background: #f0f0f0;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
}


.input-group .fa-caret-down {
    cursor: pointer;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

    .pagination ul {
        list-style-type: none;
        padding: 0;
        display: inline-flex;
        gap: 10px;
    }

    .pagination li {
        display: inline-block;
    }

.page-link {
    display: block;
    padding: 10px 15px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    .page-link:hover {
        background-color: #f0f0f0;
        color: #0056b3;
    }

.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
}

.pagination-container {
    margin-top: 20px;
    text-align: center;
}

input.filter-input {
    width: 90%;
    padding: 5px;
    margin: 5px 0;
    box-sizing: border-box;
    text-align: center;
}

.sort-icon {
    margin-left: 5px;
    color: #888;
}

th.sorted-asc .sort-icon,
th.sorted-desc .sort-icon {
    color: black;
}

.ledger-icons i {
    cursor: pointer;
    margin: 0 5px;
    font-size: 1.2em;
    color: #0B1E59;
}

    .ledger-icons i:hover {
        color: #0B1E59;
    }

.card {
    margin-bottom: 10px;
    border: 1px solid #b0b0b01c;
}

.no-padding-right {
    padding-left: 0px !important;
}

::placeholder {
    color: #6c757d;
    opacity: .5;
}



.form-label {
    font-size: 9pt;
    margin-bottom: 2px;
}

.form-control {
    font-size: 10pt !important;
    background-color: #fffefe;
}

    .form-control:focus {
        border-color: #007bff; /* Change the border color to a blue shade */
        box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25); /* Add a subtle blue shadow */
        outline: none; /* Remove the default outline */
    }

/* Optional: If you want to add custom focus style for text boxes only */
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    border-color: #28a745; /* Green border on focus */
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); /* Subtle green shadow */
}

.form-control-addcart {
    font-size: 10pt !important;
    background-color: white !important;
    color: black !important;
    -webkit-appearance: none;
}

    .form-control-addcart select {
        font-size: 10pt !important;
        background-color: white !important;
        color: black !important;
        -webkit-appearance: none;
    }

    .form-control-addcart::placeholder {
        color: black;
        font-size: 13px;
    }


/* Ensure the custom Font Awesome arrow is positioned correctly */
.dropdown {
    position: relative;
}

    .dropdown .fa-chevron-down {
        position: absolute;
        right: 10px; /* Adjust the right position */
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none; /* Prevents interference with the dropdown functionality */
    }

.modal-backdrop.show {
    display: none !important;
}

.table-container {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
}

.grand-total {
    background-color: #CCCCCC !important;
    font-weight: bold;
}

#salesChart {
    width: 100% !important;
    height: 205px !important;
}


h2.dashboard-title {
    font-size: 18px;
    font-weight: bold;
}

.dashboard-page h5.dashboard-title {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding-top: 20px;
}

h5.dashboard-title {
    font-size: 12px;
    font-weight: bold;
    margin: 0px;
}

h6.dashboard-title {
    font-size: 18px;
    font-weight: bold;
}

h7.dashboard-title {
    font-size: 18px;
    font-weight: bold;
}

.table td, .table th {
    padding: 5px !important;
    font-size: 10pt;
}

.menu-toggle {
    display: none;
    background: #444;
    color: white;
    padding: 10px;
    cursor: pointer;
    border: none;
    font-size: 18px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.mainnav {
    background: #1e1e1e;
    display: flex;
    justify-content: flex-start;
    border-bottom: solid 1px #ffffff;
}

    .mainnav ul {
        list-style: none;
        display: flex;
        padding: 0;
        margin: 0;
    }

        .mainnav ul li {
            position: relative;
            border-left: solid 1px #ffffff;
        }

            .mainnav ul li a {
                color: white;
                text-decoration: none;
                font-size: 13px;
                display: block;
                padding: 7px 10px;
            }

            .mainnav ul li:hover, .mainnav ul li:hover > a {
                background: #666;
            }

                .mainnav ul li:hover > .submenu,
                .mainnav ul li.active > .submenu {
                    display: block;
                }

                .mainnav ul li:hover > .submenu {
                    display: block !important;
                }

.submenu {
    position: absolute;
    top: 100%;
    top: 100%;
    left: 0;
    background: #555;
    list-style: none;
    padding: 0;
    z-index: 1000;
    width: 200px;
}

.submenu,
.top-submenu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: #adadad;
}




body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 98%;
    margin: 0 auto;
    font-family: Verdana, Geneva, Tahoma, sans-serifd;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    background-color: #ffffff;
    /*
    border-left: 2px solid #ccc;
    border-right: 2px solid #ccc;
    padding-left: 5px;
    padding-right: 5px;
    border-bottom: 30px solid #0a75c7;
    margin-bottom: 20px;
    min-height: 600px; 
    padding-bottom: 25px;
	*/
}

    .container h2 {
        text-align: left;
        font-size: 20px;
        font-weight: bold;
        color: #333;
        padding-left: 15px;
        padding-top: 25px;
        padding-bottom: 15px;
    }

.row {
    width: 100% !important; /* Ensure full width */
    margin: 0 !important; /* Remove any Bootstrap margins */
}

.hover_row {
    background-color: #00AEEF;
}


.top-submenu {
    display: none !important; /* Hide submenu by default */
    position: absolute; /* Position the submenu below the menu item */
    top: 100%; /* Positions the submenu directly below the menu item */
    left: 0;
    z-index: 1000; /* Ensures the submenu appears above other elements */
    background-color: white; /* Optional: to make it stand out */
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Optional: adds shadow for better visibility*/
    background-color: #adadad;
}

/* Target only the Logout item */
.logout-item {
    background-color: #ff4d4d !important; /* Red background */
    color: white !important; /* White text */
}

    /* Add hover effect */
    .logout-item:hover {
        background-color: #cc0000 !important; /* Darker red on hover */
    }


.top-menu-item:hover .top-submenu {
    display: block !important;
}

/* Styling for the Font Awesome icons inside the submenu */
.top-submenu li a i {
    padding-right: 20px; /* Adds some space between icon and text */
    font-size: 13px; /* Adjusts the size of the icon */
    color: #333; /* Optional: sets the color of the icons */

    width: 16px; /* Ensures uniform icon width */
    text-align: center; /* Aligns icon properly */
}

/* Optional: Change icon color on hover */
.top-submenu li a:hover i {
    color: #007bff; /* Changes icon color when the submenu item is hovered */
}

.column {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.table-container {
    overflow-x: auto;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.top-row {
    width: 100%;
    height: 60px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid gray;
}

header {
    background: white;
    border-bottom: solid 1px #ccc;
    color: black;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right h1,
.header-right a {
    color: black;
}

.logout {
    background: #ff4444;
    color: white;
}

.header-left, .header-right {
    width: 50%;
    display: flex;
    align-items: center;
}



.header-right {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

    .header-right .row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }


/* Overlay for full-screen background */
.overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .50); /* Semi-transparent black */
    z-index: 999; /* Ensure it's above all other content */
    pointer-events: none; /* Prevent interaction with background elements */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.top-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* Align to the left of the parent */
    background: #ffffff;
    list-style: none;
    width: 200px;
    left: -102px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px; /* Remove padding from the submenu */
    margin: 0; /* Remove margin from the submenu */
}

.top-menu-item {
    position: relative;
    display: inline-block;
}

.top-submenu li {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

    .top-submenu li a {
        color: #000000;
        text-decoration: none;
        display: block;
        font-size: 13px;
        text-align: left; /* Left-align the text */
        display: flex; /* Use flexbox to align items properly */
        align-items: center; /* Vertically align text and icon */
        padding: 5px 5px; /* Adjust padding around the text */

        display: flex;
        align-items: center; /* Vertically aligns the icon and text */
        gap: 8px; /* Adds uniform spacing between the icon and text */
        padding: 5px 10px; /* Adds padding for better spacing */
        text-decoration: none; /* Removes default underline */
    }


    .top-submenu li:nth-child(2) {
        margin-bottom: 10px;
    }

    .top-submenu li:nth-child(5) {
        margin-bottom: 15px;
    }

    .top-submenu li:hover {
        background: #d6d6d6;
    }

.top-menu-item:hover .top-submenu + .overlay {
    display: block;
    pointer-events: auto;
}

.top-menu-item:hover + .overlay {
    display: block; /* Show overlay when the submenu is visible */
    pointer-events: auto; /* Allow overlay to block interactions */
}

.top-menu {
    display: flex;
    justify-content: flex-end;
    background: #0a75c7;
    position: relative;
    border-bottom: solid 1px #ffffff;
    align-items: center;
    text-align: center;
    padding: 10px;
    font-size: 13px;
}

    .top-menu a {
        color: white;
        text-decoration: none;
        font-size: 13px;
        position: relative;
        margin-right: 10px; /* Right space */
        margin-left: 10px; /* Left space */
    }

.top-submenu a {
    margin: 0; /* Remove margin from submenu links */
}

.top-menu-item {
    position: relative;
    display: inline-block;
}


.menu-toggle {
    display: none;
    background: #444;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.submenu li {
    width: 100%;
    padding: 0;
    position: relative;
}

    .submenu li a {
        color: white;
        text-decoration: none;
        display: block;
        padding: 10px;
        white-space: nowrap;
    }

    .submenu li:hover, .submenu li:hover > a {
        background: #666;
    }


.submenu .submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #666;
    width: 200px;
    display: none;
}

.submenu li:hover > .submenu {
    display: none;
}

select {
    background: #444;
    color: white;
    border: 1px solid #fff;
    padding: 8px;
    border-radius: 5px;
    font-size: 16px;
}

    select:focus {
        outline: none;
        border-color: #ddd;
    }

.logout {
    background: #ff4444;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}

    .logout:hover {
        background: #cc0000;
    }


.header-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align contents to the right */
    text-align: right; /* Ensure text is right-aligned */
    position: relative;
}

    .header-right .row {
        display: flex;
        justify-content: flex-end; /* Align row contents to the right */
        gap: 10px;
    }

header h1 {
    font-size: 20px; /* Increase font size on larger screens */
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0px 0px;
    background: #ffffff;
    border-left: 3px solid gray;
    border-right: 3px solid gray;
    border-right: 3px solid gray;
}





.modal-dialog {
    margin-top: 50px !important;
}

.dashboard-card {
    border-radius: 12px;
    color: white;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative; /* Make sure it's in a stacking context */
    z-index: 1; /* Lower than submenu */
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

    .dashboard-card h6 {
        font-size: 16px; /* Title */
        margin-bottom: 2px;
    }

    .dashboard-card h4 {
        font-size: 20px; /* Value */
        font-weight: bold;
    }

.card-body {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Text left, icon right */
}

.text-content {
    text-align: left;
}

.icon-box {
    font-size: 35px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.table thead th {
    background: #535353;
    color: white;
}

.badge {
    padding: 4px 5px !important;
    border-radius: 3px !important;
    font-size: 8pt !important;
    margin: 2px;
}

    .badge.bg-success {
        background: #28a745;
    }

    .badge.bg-warning {
        background: #ffc107;
    }

    .badge.bg-danger {
        background: #dc3545;
    }

.grid-box {
    padding: 20px;
    text-align: center;
    color: white;
    border: 1px solid #fff;
}

@keyframes slideIn {
    0% {
        left: -100%;
        opacity: 0;
    }

    100% {
        left: 0;
        opacity: 1;
    }
}

.mainnav.active {
    animation: slideIn 0.5s ease-in-out;
}


.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Ensures responsiveness */
    margin-bottom: 50px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 65%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-invoice {
    width: 100%;
    max-width: 100%;
    padding: 5px;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
}

    .close-btn:hover {
        color: black;
    }

.alert {
    display: none;
}

/* Password field wrapper */
.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 40px;
    }

    .password-wrapper .toggle-password {
        position: absolute;
        right: 10px;
        top: 61%;
        footer transform: translateY(-50%);
        cursor: pointer;
        color: #888;
    }

        .password-wrapper .toggle-password:hover {
            color: #000;
        }




.footer {
    background-color: #dfdfdf;
    color: #686868;
    padding: 5px 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
    text-align: left;
    padding: 0px !important;
    font-size: 10pt;
}

    .footer-left p {
        margin-bottom: 0px;
    }

.footer-right {
    flex: 1;
    text-align: right;
}

    .footer-right .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 20px; /* Space between social and payment icons */
    }

.social-icons, .payment-icons {
    justify-content: flex-end;
    gap: 10px;
    padding: 5px;
    align-items: center;
    font-size: 10pt;
}

    .social-icons i {
        font-size: 18px;
        cursor: pointer;
        padding-left: 3px;
    }

    .payment-icons i {
        font-size: 18px;
    }

    .social-icons i:hover {
        color: #383838;
    }

.subpage-button {
    padding: 1px 5px;
    background: #DADADA;
    color: #121211;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 5px;
}

.subpage-button-2 {
    padding: 1px 5px;
    background: #DADADA;
    color: #121211;
    border: none;
    cursor: pointer;
    font-size: 10px;
    margin-bottom: 5px;
}


.btn.btn-primary-ac {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000000;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
    margin-left: 20px;
}

.powered-by a {
    color: #686868;
    text-decoration: none;
    cursor: pointer;
}

    .powered-by a:hover {
        color: #686868;
        text-decoration: none;
    }



table.w-100 {
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
    width: 100%;
}

    table.w-100 td {
        border: none;
    }

table.payment-outer-table,
table.payment-outer-table tr,
table.payment-outer-table td {
    border: none !important;
    outline: none;
}

/* Rounded corners on the outer lightgray panel, no visible seam */
table.payment-outer-table {
    border-radius: 6px;
    overflow: hidden;
}

/* ---- Mark as fully paid checkbox ---- */
.checkB {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    vertical-align: middle;
    margin: 0 6px 0 0;
    cursor: pointer;
    accent-color: #1a2a5e;
}

/* ---- Payment Type dropdown: dark navy pill, white text, custom arrow ---- */
.payment-select {
    background: #ffffff;
    color: #1e1e1e;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
    height: auto;
}

    .payment-select:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(26, 42, 94, 0.3);
    }

/* ---- Amount + Reference Note plain inputs ---- */
#txtamtpayment1,
#txtrefpayment1 {
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    box-sizing: border-box;
    padding: 6px 10px;
}

    #txtamtpayment1:focus,
    #txtrefpayment1:focus {
        outline: none;
        border-color: #1a2a5e;
        box-shadow: 0 0 0 2px rgba(26, 42, 94, 0.15);
    }

    #txtamtpayment1[readonly] {
        background-color: #eeeeee !important;
        cursor: not-allowed;
    }

/* ---- Payment Date input (asp:TextBox renders as <input class="datepicker">) ---- */
.datepicker {
    border: 1px solid #cccccc !important;
    border-radius: 6px !important;
    box-sizing: border-box;
    padding: 6px 10px;
}

    .datepicker:focus {
        outline: none;
        border-color: #1a2a5e !important;
        box-shadow: 0 0 0 2px rgba(26, 42, 94, 0.15);
    }

/* ---- Total / Balance amount text colors ---- */
#spnTotalAmountDisplay {
    color: #333333;
}

#spnBalanceAmountDisplay {
    color: #ff6b6b;
}

/* ---- jQuery UI datepicker: keep it above modals/overlays ---- */
.ui-datepicker {
    font-family: Verdana, sans-serif;
    font-size: 9pt;
    z-index: 99999 !important;
}

/* -----------------------------------------------------------------
   Datepicker stacking fix — keeps the calendar popup above the
   footer/social icons instead of rendering underneath them.
   ----------------------------------------------------------------- */
.ui-datepicker {
    z-index: 99999 !important;
}

/* If your footer uses position:fixed / position:relative with its
   own z-index, keep it lower than the datepicker so it never wins
   the stacking fight. Replace .site-footer with your real selector. */
.site-footer {
    position: relative;
    z-index: 1;
}


/* =================================================================
   Fix: datepicker calendar popup letting page content (e.g. Total
   Amount text) show through behind it.

   Root cause: this page's own .datepicker class (used to style the
   Payment Date *input*) collides with bootstrap-datepicker's popup,
   which is ALSO named .datepicker. Scope the popup fix to
   .datepicker.dropdown-menu specifically so it never touches the
   input styling.
   ================================================================= */

.datepicker.dropdown-menu1 {
    z-index: 99999 !important;
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    top: 796px !important; /* let bootstrap-datepicker calculate its own position */
}

/* Make sure the table/cells inside the popup are opaque too —
   otherwise gaps between cells can still show page content through */
.datepicker.dropdown-menu table,
.datepicker.dropdown-menu td,
.datepicker.dropdown-menu th {
    background-color: #ffffff !important;
}


.text-edit-toolbar {
    display: flex;
    gap: 4px;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    padding: 6px;
    background: #f5f5f5;
}

.text-edit-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 9pt;
}

    .text-edit-btn:hover {
        background: #e6e6e6;
    }

.additional-description-editor {
    min-height: 100px;
    width: 94%;
    border-radius: 0 0 5px 5px;
    padding: 10px;
    overflow-y: auto;
    margin-left: 25px;
    margin-top: 10px;
}


    .additional-description-editor:empty:before {
        content: attr(data-placeholder);
        color: #999;
    }

.payment-cell {
    width: 20%;
    padding-right: 20px;
    font-family: Verdana;
}

.payment-cell--wide {
    width: 25%;
}

.payment-cell--label {
    font-size: 9pt;
    font-weight: 700;
}

.payment-label-text {
    display: block;
    line-height: 0;
    margin: 0 0 0 15px;
    text-align: left;
    font-family: Verdana;
    font-size: 9pt;
    font-weight: 700;
}

.payment-select {
    margin-left: 15px;
    width: 90%;
}

.payment-input {
    font-family: Verdana;
    font-size: 9pt;
    width: 90%;
    min-height: 30px;
    background-color: #ffffff;
}

.payment-input--ref {
    font-size: 10pt;
}

.signature-toggle-row {
    margin-top: 16px;
    padding: 10px 20px 0 20px;
    text-align: right;
}

.signature-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Verdana, sans-serif;
    font-size: 9pt;
    font-weight: 700;
    color: #333;
    cursor: pointer;
}

    .signature-toggle-label input[type="checkbox"] {
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

/* Reserve the blank space on the right so the layout doesn't jump
           when the signature is hidden/shown */
.signature-section {
    min-height: 140px;
    padding: 20px;
    text-align: right;
    visibility: visible;
}

    .signature-section .signature-image {
        max-width: 180px;
        max-height: 80px;
        display: inline-block;
    }

    .signature-section .signature-line {
        width: 180px;
        margin-left: auto;
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid #333;
        font-family: Verdana, sans-serif;
        font-size: 8pt;
        color: #555;
        text-align: center;
    }

    /* Unchecking the box adds this class to the section: the image and
           line disappear completely (screen + print) while the blank space
           stays reserved, so nothing else on the page shifts around. */
    .signature-section.signature-hidden {
        visibility: hidden;
    }

@media print {
    .signature-toggle-row {
        display: none; /* never show the checkbox control itself when printing */
    }
}
/*prfile image*/


/* =================================================================
   MOBILE TOP-MENU LAYOUT
   Collapses "Dashboard" title, My Account, Financial Year selector,
   into a single horizontal line on mobile.
   Left → Right order becomes: Dashboard | My Account | Financial Year
   Logout has been MOVED into the sidebar nav (after Contact) for
   mobile, so it no longer appears in this top bar on small screens.
   ================================================================= */
@media (max-width: 767.98px) {

    .top-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        text-align: left;
    }

    /* "Dashboard" title — first item on the line */
    .top-menu-page-title {
        font-size: 13px;
        margin: 0;
        order: 1;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Container for My Account / Financial Year —
       becomes a row itself so both sit inline with the title */
    .top-menu-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        order: 2;
        flex-shrink: 0;
        margin: 0;
    }

    /* My Account — now FIRST in the right-side row, right after Dashboard */
    .top-menu-item {
        order: 1;
        white-space: nowrap;
    }

        .top-menu-item > a {
            font-size: 10.5px;
            margin: 0;
            white-space: nowrap;
        }

    /* Financial Year — now second */
    .top-menu-fy {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        order: 2;
        white-space: nowrap;
    }

        .top-menu-fy label {
            font-size: 10.5px;
            margin: 0;
            white-space: nowrap;
        }

    #topFinancialYear {
        font-size: 10.5px;
        padding: 2px 4px;
        width: auto;
        min-width: 0;
    }

    #payslipFinancialYear{
    font-size: 10.5px;
    padding: 2px 4px;
    width: auto;
    min-width: 0;
}
    /* Old top-bar Logout link — hidden on mobile.
       It now lives inside the sidebar nav (.mobile-logout-item),
       placed after "Contact". See sidebar.css for its styling. */
    #logoutBtn {
        display: none !important;
    }
}


/* =================================================================
   MOBILE SIDEBAR (nav bar) — center the company logo/profile image
   and company name instead of left-aligning them.
   ================================================================= */
@media (max-width: 767.98px) {

    .company-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .company-logo {
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .company-name {
        text-align: center;
        width: 100%;
        margin-top: 4px;
    }
}

/* =================================================================
   EMPLOYEE PROFILE CARD (moved from inline <style> in index.html)
   ================================================================= */
.emp-profile-card .employee-profile-header {
    background: linear-gradient(135deg, #2f6fed, #1e9e6b);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.emp-profile-card .employee-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #2f6fed;
}

.emp-profile-card .emp-name {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
}

.emp-profile-card .emp-dept {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.emp-profile-card .employee-profile-body {
    padding: 14px 18px 6px;
}

.emp-profile-card .emp-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f4;
}

    .emp-profile-card .emp-info-item i {
        color: #2f6fed;
        width: 16px;
        text-align: center;
        font-size: 14px;
    }

    .emp-profile-card .emp-info-item .small {
        font-size: 11px;
    }

    .emp-profile-card .emp-info-item .fw-semibold {
        font-size: 13.5px;
    }

.custom-creditinvocie-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(35%);
}

@media (max-width: 576px) {
    .emp-profile-card .employee-profile-header {
        padding: 12px 14px;
        gap: 10px;
    }

    .emp-profile-card .employee-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 15px;
    }

    .emp-profile-card .emp-name {
        font-size: 14px;
    }

    .emp-profile-card .emp-dept {
        font-size: 12px;
    }

    .emp-profile-card .employee-profile-body {
        padding: 8px 14px 2px;
    }

    .emp-profile-card .emp-info-item {
        padding: 7px 0;
    }

    .emp-profile-card .emp-info-item-last {
        border-bottom: none;
    }
}

/* Fix: "Employee Details" title takes up too much vertical space on mobile */
@media (max-width: 576px) {
    #empDetailsHeaderCard {
        padding: 6px 12px !important;
    }

    #empDetailsTitle {
        font-size: 15px !important;
        padding: 6px 0 !important;
        min-height: 0 !important;
        line-height: 1.3 !important;
    }

    #empProfileCardWrap {
        margin-top: 4px !important;
    }
}

/* =================================================================
   Employee Details header — centered on mobile view.
   Bootstrap's col-12 makes this column full width below the md
   breakpoint, so left-aligned text/row content is centered here
   to match the rest of the mobile layout.
   ================================================================= */
@media (max-width: 767.98px) {
    #empDetailsHeaderCard .row {
        justify-content: center;
        text-align: center;
    }

    #empDetailsHeaderCard .col-md-6.col-12 {
        text-align: center;
        width: 100%;
    }

    #empDetailsTitle {
        text-align: center;
        width: 100%;
    }
}

/* =================================================================
   Company profile logo inside the blue .top-menu bar (next to the
   page title). Base shape/size only — visibility (mobile-only) and
   centered layout are handled in css/sidebar.css, which loads after
   this file and needs to win the cascade over the older mobile
   .top-menu rules further up in this file.
   ================================================================= */
.top-menu-logo {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

/* =================================================================
   REPORT GRID (moved from inline <style> in payslip.html)
   ================================================================= */
.report-grid {
    --bg: #f4f6f9;
    --card: #ffffff;
    --border: #e7eaf0;
    --text: #1f2733;
    --muted: #6b7685;
    --blue: #2f6fed;
    --green: #1e9e6b;
    --orange: #f2994a;
    --pink: #e0447a;
    --purple: #7c5cf0;
    --teal: #17a2a2;
    --yellow: #e0a52b;
    --red: #e0473f;
    --indigo: #4a56c9;
    --brown: #a9682f;
    --radius: 14px;
}

    .report-grid * {
        box-sizing: border-box;
    }

    .report-grid .page {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .report-grid .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, minmax(180px, 1fr));
        gap: 24px;
        width: 100%;
        min-height: 60vh;
        padding-top: 24px;
    }

    .report-grid .card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 2px rgba(20,30,50,.03);
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        padding: 24px;
        transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }

        .report-grid .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(20,30,50,.10);
            border-color: var(--border);
            text-decoration: none;
            color: inherit;
        }

        .report-grid .card .circle {
            width: 92px;
            height: 92px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 38px;
            margin-bottom: 18px;
            flex-shrink: 0;
        }

        .report-grid .card h3 {
            font-size: 21px;
            font-weight: 700;
            margin: 0;
            line-height: 1.3;
        }

    .report-grid .c-blue {
        color: var(--blue);
    }

    .report-grid .bg-blue {
        background: #e8f0fe;
    }

    .report-grid .c-green {
        color: var(--green);
    }

    .report-grid .bg-green {
        background: #e5f7ef;
    }

    .report-grid .c-orange {
        color: var(--orange);
    }

    .report-grid .bg-orange {
        background: #fdece0;
    }

    .report-grid .c-pink {
        color: var(--pink);
    }

    .report-grid .bg-pink {
        background: #fbe7ee;
    }

    .report-grid .c-purple {
        color: var(--purple);
    }

    .report-grid .bg-purple {
        background: #efeafd;
    }

    .report-grid .c-teal {
        color: var(--teal);
    }

    .report-grid .bg-teal {
        background: #e2f5f5;
    }

    .report-grid .c-yellow {
        color: var(--yellow);
    }

    .report-grid .bg-yellow {
        background: #fbf1de;
    }

    .report-grid .c-red {
        color: var(--red);
    }

    .report-grid .bg-red {
        background: #fbe6e5;
    }

    .report-grid .c-indigo {
        color: var(--indigo);
    }

    .report-grid .bg-indigo {
        background: #e7e9fa;
    }

    .report-grid .c-brown {
        color: var(--brown);
    }

    .report-grid .bg-brown {
        background: #f3e7dc;
    }

@media(max-width:992px) {
    .report-grid .grid {
        gap: 18px;
        grid-template-rows: repeat(2, minmax(160px, 1fr));
    }
}

@media(max-width:800px) {
    .report-grid .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, minmax(150px, 1fr));
    }
}

@media(max-width:600px) {
    .report-grid {
        padding: 16px 14px 30px;
    }

        .report-grid .grid {
            grid-template-columns: 1fr;
            grid-template-rows: none;
            gap: 14px;
            min-height: 0;
        }

        .report-grid .card {
            flex-direction: row;
            justify-content: flex-start;
            text-align: left;
            min-height: 84px;
            padding: 16px 18px;
        }

            .report-grid .card .circle {
                width: 54px;
                height: 54px;
                font-size: 22px;
                margin-bottom: 0;
                margin-right: 16px;
            }

            .report-grid .card h3 {
                font-size: 16.5px;
            }
}

@media(max-width:380px) {
    .report-grid .grid {
        gap: 12px;
    }

    .report-grid .card {
        min-height: 72px;
        padding: 12px;
    }

        .report-grid .card .circle {
            width: 46px;
            height: 46px;
            font-size: 20px;
            margin-right: 13px;
        }

        .report-grid .card h3 {
            font-size: 15px;
        }
}

.report-grid {
    --bg: #f4f6f9;
    --card: #ffffff;
    --border: #e7eaf0;
    --text: #1f2733;
    --muted: #6b7685;
    --blue: #2f6fed;
    --green: #1e9e6b;
    --orange: #f2994a;
    --pink: #e0447a;
    --purple: #7c5cf0;
    --teal: #17a2a2;
    --yellow: #e0a52b;
    --red: #e0473f;
    --indigo: #4a56c9;
    --brown: #a9682f;
    --radius: 14px;
}

    .report-grid * {
        box-sizing: border-box;
    }

    .report-grid .page {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .report-grid .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, minmax(180px, 1fr));
        gap: 24px;
        width: 100%;
        min-height: 60vh;
        padding-top: 24px;
    }

    .report-grid .card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 2px rgba(20,30,50,.03);
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        padding: 24px;
        transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }

        .report-grid .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(20,30,50,.10);
            border-color: var(--border);
            text-decoration: none;
            color: inherit;
        }

        .report-grid .card .circle {
            width: 92px;
            height: 92px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 38px;
            margin-bottom: 18px;
            flex-shrink: 0;
        }

        .report-grid .card h3 {
            font-size: 21px;
            font-weight: 700;
            margin: 0;
            line-height: 1.3;
        }

    .report-grid .c-blue {
        color: var(--blue);
    }

    .report-grid .bg-blue {
        background: #e8f0fe;
    }

    .report-grid .c-green {
        color: var(--green);
    }

    .report-grid .bg-green {
        background: #e5f7ef;
    }

    .report-grid .c-orange {
        color: var(--orange);
    }

    .report-grid .bg-orange {
        background: #fdece0;
    }

    .report-grid .c-pink {
        color: var(--pink);
    }

    .report-grid .bg-pink {
        background: #fbe7ee;
    }

    .report-grid .c-purple {
        color: var(--purple);
    }

    .report-grid .bg-purple {
        background: #efeafd;
    }

    .report-grid .c-teal {
        color: var(--teal);
    }

    .report-grid .bg-teal {
        background: #e2f5f5;
    }

    .report-grid .c-yellow {
        color: var(--yellow);
    }

    .report-grid .bg-yellow {
        background: #fbf1de;
    }

    .report-grid .c-red {
        color: var(--red);
    }

    .report-grid .bg-red {
        background: #fbe6e5;
    }

    .report-grid .c-indigo {
        color: var(--indigo);
    }

    .report-grid .bg-indigo {
        background: #e7e9fa;
    }

    .report-grid .c-brown {
        color: var(--brown);
    }

    .report-grid .bg-brown {
        background: #f3e7dc;
    }

@media(max-width:992px) {
    .report-grid .grid {
        gap: 18px;
        grid-template-rows: repeat(2, minmax(160px, 1fr));
    }
}

@media(max-width:800px) {
    .report-grid .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, minmax(150px, 1fr));
    }
}

@media(max-width:600px) {
    .report-grid {
        padding: 16px 14px 30px;
    }

        .report-grid .grid {
            grid-template-columns: 1fr;
            grid-template-rows: none;
            gap: 14px;
            min-height: 0;
        }

        .report-grid .card {
            flex-direction: row;
            justify-content: flex-start;
            text-align: left;
            min-height: 84px;
            padding: 16px 18px;
        }

            .report-grid .card .circle {
                width: 54px;
                height: 54px;
                font-size: 22px;
                margin-bottom: 0;
                margin-right: 16px;
            }

            .report-grid .card h3 {
                font-size: 16.5px;
            }
}

@media(max-width:380px) {
    .report-grid .grid {
        gap: 12px;
    }

    .report-grid .card {
        min-height: 72px;
        padding: 12px;
    }

        .report-grid .card .circle {
            width: 46px;
            height: 46px;
            font-size: 20px;
            margin-right: 13px;
        }

        .report-grid .card h3 {
            font-size: 15px;
        }
}

/* ---- Payslip header card: title + Financial Year dropdown
               centered together on mobile ---- */
@media (max-width: 767.98px) {
    #payslipHeaderCard .row {
        justify-content: center;
        text-align: center;
    }

    #payslipHeaderCard .col-md-6.col-12 {
        text-align: center;
        width: 100%;
        justify-content: center !important;
    }

    #payslipHeaderCard .top-menu-fy {
        justify-content: center;
        width: 100%;
    }
}