﻿/* Purchase UI theme aligned to ColdStore/store-on-floor-stock */

.dataTables_wrapper,
.table-responsive,
.dataTables_scroll,
[id$="_wrapper"] .dataTables_scroll {
    background: oklch(.962 .018 272.314);
    padding: 10px;
    color: oklch(37.3% 0.034 259.733);
}

table.dataTable {
    border-collapse: separate !important;
}

.table {
    background: #ffffff;
    border-color: #e6e9ef;
}

.table thead tr,
.table .thead-light tr {
    background: #f8fafc;
}

.table thead th {
    color: #000000;
    font-weight: 700;
    border-bottom: 1px solid #e6e9ef;
    white-space: nowrap;
    font-size: 16px;
    /*border-bottom: 1px solid #505d69 !important;*/
}

.table tbody td,
table.table-bordered.dataTable tbody th,
table.table-bordered.dataTable tbody td {
    border-color: #edf0f4;
    vertical-align: middle;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
}

.table-hover tbody tr:hover,
.table-bordered tbody tr:hover {
    background: #eef4ff;
    color: #111827;
}

/* Keep Purchase table row hover very light across DataTables/Bootstrap variants. */
body.purchase-cs-theme table.dataTable tbody tr:hover,
body.purchase-cs-theme .table-hover tbody tr:hover,
body.purchase-cs-theme .table-bordered tbody tr:hover {
    background-color: #f7fbff !important;
}

body.purchase-cs-theme table.dataTable tbody tr:hover > td,
body.purchase-cs-theme .table-hover tbody tr:hover > td,
body.purchase-cs-theme .table-bordered tbody tr:hover > td {
    background-color: #f7fbff !important;
    color: #111827 !important;
}

/*table.dataTable thead>tr>th.sorting_asc, table.dataTable thead>tr>th.sorting_desc, table.dataTable thead>tr>th.sorting, table.dataTable thead>tr>td.sorting_asc, table.dataTable thead>tr>td.sorting_desc, table.dataTable thead>tr>td.sorting{
        border-bottom: 1px solid black
}*/
/* Main table header */
/* Remove header cell border */
table.dataTable thead th {
    border-bottom: none !important;
}

/* Apply single consistent border to scroll container */
div.dataTables_scrollHead {
    border-bottom: 1px solid black !important;
}

table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    /*font-size: 11px;*/
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    top: 14px;
}

.rowFilter label {
    font-size: .8rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.form-control,
.form-select,
.rowFilter input.form-control,
input[type="text"],
input[type="date"],
input[type="number"],
input[type="search"],
select {
    border: 1.5px solid #d0d5dd;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    min-height: 40px;
    padding: .45rem .75rem;
    box-shadow: none;
    background-color: #ffffff;
    transition: all .2s ease;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus {
    border-color: #4f46e58f;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

input.error,
select.error,
textarea.error,
.form-control.error,
.form-select.error {
    border: 1.5px solid #ef4444 !important;
    border-left: 4px solid #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}

div.dataTables_wrapper div.dataTables_length select,
select.custom-select.custom-select-sm.form-control.form-control-sm {
    background: #fff !important;
    border: 1.5px solid #d0d5dd !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 10px !important;
    min-height: 40px !important;
    padding: .35rem 2rem .35rem .65rem !important;
    color: #374151 !important;
}

div.dataTables_wrapper div.dataTables_length select:focus,
select.custom-select.custom-select-sm.form-control.form-control-sm:focus {
    border-color: #4f46e58f !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15) !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 40px;
    border: 1.5px solid #d0d5dd !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    color: #383838 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #eef4ff !important;
    color: #2b63ff !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    border-left-color: #9ca3af !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered,
.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-selection__rendered {
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__arrow {
    opacity: .55;
}

.select2-selection.select2-selection--single.error,
.select2-selection--single.error,
.error + .select2 .select2-selection--single,
.is-invalid + .select2 .select2-selection--single {
    border: 1.5px solid #ef4444 !important;
    border-left: 4px solid #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}

.select2-container{
    width: 100% !important;
}

.error + .select2 .select2-selection__rendered,
.is-invalid + .select2 .select2-selection__rendered {
    color: #b91c1c !important;
}

.btn {
    border-radius: 10px;
    font-weight: 700;
    transition: all .2s ease;
    padding: 6px;
}

.btn-group-vertical>.btn,
.btn-group>.btn {
    background: #fff;
    border: 1px solid green;
    color: green !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
    height: 40px;
    margin-right: 4px;
    margin-top: 18px;
}

.btn-group-vertical>.btn::before,
.btn-group>.btn::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.btn-group-vertical>.btn.buttons-copy::before,
.btn-group>.btn.buttons-copy::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}

.btn-group-vertical>.btn.buttons-excel::before,
.btn-group>.btn.buttons-excel::before,
.btn-group-vertical>.btn.buttons-csv::before,
.btn-group>.btn.buttons-csv::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.btn-group-vertical>.btn.buttons-pdf::before,
.btn-group>.btn.buttons-pdf::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

.btn-group-vertical>.btn.buttons-colvis::before,
.btn-group>.btn.buttons-colvis::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

#btnDownloadCommissionBills,
#btnDownloadBills {
    background: #fff !important;
    border: 1px solid green !important;
    color: green !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3) !important;
    height: 40px;
    margin-top: 13px;
}

#btnDownloadCommissionBills::before,
#btnDownloadBills::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
    vertical-align: middle;
}

.btn-primary,
#btnSearch {
    background: linear-gradient(90deg, #4aa3ff, #4aa3ff);
    border: none;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    padding: 10px 10px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
    transition: .25s;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.btn-primary:hover,
#btnSearch:hover {
    filter: brightness(.97);

}

.btn-success {
        background: linear-gradient(90deg, #4aa3ff, #4aa3ff);
        border: none;
        background: linear-gradient(90deg, #3b82f6, #6366f1);
        padding: 10px 10px;
        border: none;
        border-radius: 10px;
        color: #fff;
        font-size: 0.875rem;
        font-weight: 700;
        box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
        transition: .25s;
        letter-spacing: .5px;
        margin-bottom: 10px; /*03-apr-2026*/
}

.btn-info {
        padding: 10px 10px;
        border-radius: 10px;
        color: #fff;
        font-size: 0.875rem;
        font-weight: 700;
        box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
        transition: .25s;
        letter-spacing: .5px;
        margin-bottom: 10px; /*03-apr-2026*/
}

.btn-danger {
    background: linear-gradient(90deg, #f5005791, #f50057);
    border: none;
    background: linear-gradient(90deg, #f5005791, #f50057);
    padding: 10px 10px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
    transition: .25s;
    letter-spacing: .5px;
    margin-bottom: 10px; /*03-apr-2026*/
}

.btn-warning {
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
    transition: .25s;
    letter-spacing: .5px;
    margin-bottom: 10px; /*03-apr-2026*/
}

.btn-secondary{
    padding: 10px 10px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
    transition: .25s;
    letter-spacing: .5px;
    margin-bottom: 10px; /*03-apr-2026*/
}

/* DataTable search bar + icon */
div.dataTables_wrapper div.dataTables_filter {
    margin-top: 10px;
    margin-bottom: 0;
}

div.dataTables_wrapper div.dataTables_length {
    /*margin-top: 10px;*/
}

div.dataTables_wrapper div.dataTables_length label {
    margin-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

div.dataTables_wrapper div.dataTables_filter label {
    position: relative;
    display: inline-block;
    font-size: 0;
}

div.dataTables_wrapper div.dataTables_filter label::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: .7;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

div.dataTables_wrapper div.dataTables_filter input,
.dt-search-input {
    font-size: 14px !important;
    width: 500px !important;
    min-height: 45px !important;
    height: 45px !important;
    border-radius: 10px !important;
    border: 1.5px solid #4f46e58f !important;
    padding: 10px 14px 10px 44px !important;
    transition: all .25s ease;
}

div.dataTables_wrapper div.dataTables_filter input:hover,
.dt-search-input:hover {
    border-color: #6366f1;
}

div.dataTables_wrapper div.dataTables_filter input:focus,
.dt-search-input:focus {
    border-color: #4f46e58f;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

/* Download button style from store-on-floor-stock */
#btnDownload,
.download_btn,
.btnDownload {
    background: #fff !important;
    border-radius: 8px !important;
    color: var(--color-green-700) !important;
    border: 1px solid var(--color-green-700) !important;
    box-shadow: none !important;
}

#btnMoreSearch::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    vertical-align: middle;

    /* Example icon (replace if needed) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

#btnLoadAll::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    vertical-align: middle;

    /* Example icon (refresh / load all) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E");
}

#btnDownload::before,
.download_btn::before,
.btnDownload::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
    vertical-align: middle;
}

#btnDownload:disabled {
    opacity: .5;
    cursor: not-allowed;
}

div.dataTables_wrapper div.dataTables_filter button {
    background: #fff;
    border: 1px solid green;
    color: green !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, .3);
}

div.dataTables_wrapper div.dataTables_filter button::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
    vertical-align: middle;
}

div.dataTables_wrapper div.dataTables_filter button:hover {
    filter: brightness(.97);
}

/* DataTable pagination style */
.pagination-rounded {
    margin-top: 10px !important;
}

.dataTables_paginate > .pagination {
    margin-top: 10px !important;
}

.dataTables_scrollBody {
    min-height: 250px;
}

.page-link {
    color: #5664d2;
}

form label {
    font-size: .85rem;
    font-family: 'Inter';
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.select2-results li {
    font-size: 14px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    font-size: 14px;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge span.label {
    color: #fff;
    letter-spacing: 0.3px;
}

td .badge {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    width: 100%;
}

.rowFilter .btn {
    padding: 10px 25px !important;
    margin-top: 1px;
}

/* General table buttons */
td .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;          /* better spacing */
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;         /* pill shape */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

td .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Specific button colors */
td .btn-success {
    background-color: #22c55e;   /* modern green */
    color: #fff;
}

td .btn-success:hover {
    background-color: #16a34a;   /* darker green on hover */
}

td .btn-danger {
    background-color: #ef4444;   /* modern red */
    color: #fff;
}

td .btn-danger:hover {
    background-color: #dc2626;
}

/* Modern status badges */
td .badge {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;        /* pill shape */
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease-in-out;
}

/* Example status colors */
td .badge-success {
    background-color: #22c55e !important;
    color: #fff !important;
}

td .badge-danger {
    background-color: #f87171 !important;
    color: #fff !important;
}

td .badge-warning {
    background-color: #f59e0b !important;
    color: #fff !important;
}

td .badge-info {
    background-color: #3b82f6 !important;
    color: #fff !important;
}

/* General styling for icons inside the table cell */
td.text-center i.mdi,
td.text-center i.dripicons-preview {
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
    font-size: 20px;           /* slightly larger for modern feel */
    padding: 6px;              /* spacing around icon */
    border-radius: 50%;        /* circular button effect */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;               /* neutral gray for light theme */
    background: #f8f9fa;       /* light gray background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.08); /* subtle shadow for depth */
    cursor: pointer;            /* pointer for interaction */
}

/* Hover effect for edit button (mdi-pencil) */
td.text-center button.btnEdit:hover i.mdi-pencil {
    transform: scale(1.2) rotate(10deg);
    color: #0d6efd;             /* bright blue on hover */
    background: rgba(13, 110, 253, 0.1);
}

/* Hover effect for view button (dripicons-preview) */
td.text-center a.btnView:hover i.dripicons-preview {
    transform: scale(1.2) rotate(10deg);
    color: #198754;             /* green hover for view */
    background: rgba(25, 135, 84, 0.1);
}

/* Smooth transition for all icons */
td.text-center i.mdi,
td.text-center i.dripicons-preview {
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

td.text-center {
                white-space: nowrap;
            }

            td.text-center a,
            td.text-center button {
                display: inline-flex;
                align-items: center;
                vertical-align: middle;
            }
.dataTables_length label {
  text-transform: capitalize;
}


/*03-apr-2026*/
div.dataTables_wrapper div.dataTables_filter
 {
    position: relative;
    display: inline-block;
    font-size: 0;
    float: left;
}

/* Target div without class that contains ul.pagination */
div:not([class]):has(> ul.pagination) ul.pagination li.page-item {
    display: inline-block;
    margin: 0 3px;
}

/* Style all buttons inside pagination */
div:not([class]):has(> ul.pagination) ul.pagination li.page-item .page-link {
    background-color: white; /* normal background */

    border-radius: 0.25rem;   /* rounded corners */
    border: 1px solid #ddd;   /* subtle border */
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* Active button (button.active) */
div:not([class]):has(> ul.pagination) ul.pagination li.page-item .page-link.active {
    background-color: var(--bs-pagination-active-bg); /* blue background */
    color: white;              /* text stays white */
    border-color: var(--bs-pagination-active-bg);
}

/* Hover for non-active buttons */
div:not([class]):has(> ul.pagination) ul.pagination li.page-item .page-link:not(.active):hover {
    background-color: #f0f0f0;
    color: #000;
}

/* Float the pagination div to the right (if needed) */
div:not([class]):has(> ul.pagination) {
    float: right;
    margin-top: -31px;
}

div:not([class]):has(> ul.pagination) ul.pagination li.page-item.active .page-link {
    background-color: #5664d2;
    color: white; /* ensures the text is readable */
    border-color: #5664d2; /* optional, to match the background */
}

.pagination .page-link {
    border-radius: 30px !important;
    margin: 0 3px;
    border: none;
    text-align: center;
    height: 35px;
}

/*04-apr-26*/
/* Make the row a flex container */


/* Move search bar to left */
.dataTables_filter {
    text-align: left !important;
}

/* Move buttons to right */
/* Target only the DataTable top controls row */
.dataTables_wrapper .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Apply reorder ONLY to this specific table */
#scroll-vertical-datatable_wrapper .row > .col-md-6:first-child {
    order: 2; /* buttons → right */
}

#scroll-vertical-datatable_wrapper .row > .col-md-6:last-child {
    order: 1; /* search → left */
}

/* Optional alignment fixes */
#scroll-vertical-datatable_wrapper .dt-buttons {
    display: flex;
    justify-content: flex-end;

}

#scroll-vertical-datatable_wrapper .dataTables_filter {
    text-align: left !important;
}

/* Align contents */
.dataTables_wrapper .dataTables_filter {
    text-align: left !important;
}

.dataTables_wrapper .dt-buttons {
    display: flex;
    justify-content: flex-end;

}

/* Target only this specific button */
.card-body .text-center a.btn-success {
    display: inline-block;
    margin-left: auto;
}

.select2-container .select2-selection--multiple {
    min-height: 40px;
    max-height: 40px;
    overflow-y: auto;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
       display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0px;
    margin-top: 10px;
    height: 32px;
    line-height: 32px;
}

/* Target this specific table wrapper */
#tblDataTable_wrapper .dataTables_filter {
    display: flex;
    align-items: center;      /* vertically center input + buttons */
    justify-content: flex-start; /* align everything to left */
    gap: 10px;                /* space between input and buttons */
}

/* Optional: make search input take minimal width */
#tblDataTable_wrapper .dataTables_filter input.form-control-sm {
    width: auto;
    flex: 1;  /* expand input if needed */
}

#tblDataTable_wrapper > .dt-buttons,
#tblDataTable_wrapper > .dataTables_length,
#tblDataTable_wrapper > #tblDataTable_filter {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px; /* spacing between elements */
}

#tblDataTable_wrapper {
    white-space: nowrap; /* prevent wrapping */
}

#tblDataTable_wrapper .dataTables_filter input {
    width: 150px; /* optional: keeps search input compact */
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    list-style: none;
    height: 30px;
    font-size: 10px;
    margin-top: -10px;
}

.select2-container .select2-selection--multiple .select2-search__field
 {
    border: 0;
    color: #505d69;
    margin-top: -44px;
    padding: 12px;
}

/*09-apr-2026*/
.dataTables_scrollFoot tfoot th {
    font-size: 14px;
    font-weight: normal; /* or bold */
    color: #333; /* optional */
}

/*10-apr-2026*/
/* Readonly inputs */
input.form-control[readonly],
textarea.form-control[readonly] {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  border-left-color: #9ca3af !important;
  color: #6b7280 !important;
}

.form-select:disabled,
select:disabled {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  border-left-color: #9ca3af !important;
  color: #6b7280 !important;
}

td.text-center .btnDelete i {
    color: #dc3545; /* Bootstrap danger red */
    background: #fff0f1; /* optional light red background */
}

td.text-center .btnDelete:hover i {
    color: #fff;
    background: #dc3545;
    transform: scale(1.1);
}
