/*--------------- Dashboard ---------------*/
.dashboard-card .card-category {
    font-size: 45px;
    font-weight: 600;
    color: #000;
}

.dashboard-card {
    box-shadow: 4px 6px 8px 0 rgb(54 54 54 / 33%);
    padding: 20px;
    border-top: 1px solid #e5e5e5;
}

.card-stats .col-stats {
    align-items: center;
    display: flex;
    padding-left: 15px;
    justify-content: center;
    text-align: center;
}

table.table-bordered.dataTable th {
    background-color: #f3f3f3;
}

.dataTables_paginate li.paginate_button.page-item.active a {
    background-color: #333 !important;
    border-color: #333 !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    gap: 6px;
}

.dropdown-item {
    padding: 8px;
}

.dropdown-divider {
    margin: 0px;
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:hover {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    color: #ED1C24;
    background-color: #fff;
}

.form-select,
.form-control {
    border-radius: 0px !important;
}

/* Select 2 Css  */
/* Style Select2 like .form-control */
.select2-container--default .select2-selection--single {
    font-size: 1rem;
    border-color: #ebedf2;
    padding: .6rem 1rem;
    height: auto !important;
    border-width: 2px;
    border-style: solid;
    border-radius: .25rem;
    background-color: #fff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3e93ff;
    outline: 0;
    box-shadow: none;
}

/* Placeholder style (mimicking .form-control placeholder) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: inherit;
    opacity: .7;
    line-height: 1.5;
}

/* Arrow alignment */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
    top: 0;
    width: 20px;
}

.select2-container--default.select2-container--sm .select2-selection--single {
    padding: .25rem .5rem !important;
    font-size: .875rem !important;
}

.select2-container--default.select2-container--lg .select2-selection--single {
    padding: .5rem 1rem !important;
    font-size: 1.25rem !important;
}

.form-control:focus {
    border-color: #ed1e24 !important;
    box-shadow: 0 0 0 0.25rem rgba(237, 30, 36, 0.05) !important;
}

input:focus {
    border-color: #ed1e24 !important;
    box-shadow: 0 0 0 0.25rem rgba(237, 30, 36, 0.05) !important;
}

ol li a {
    color: #000;
}

ol li a:hover {
    color: #ed1e24;
}

.text-danger {
    color: #ED1C24 !important;
}

.add_boq_table tr td {
    width: 16% !important;
}

.add_boq_table>tbody>tr>td,
.add_boq_table>tbody>tr>th {
    padding: 10px 16px !important;
}


/* Pagination Styles */
.pagination .page-item.active .page-link {
    color: #fff !important;
    background-color: #000 !important;
    border: none;
}

.pagination .page-link {
    color: #000 !important;
    background-color: #fff !important;
    font-weight: bold;
}

#productTable th {
    /* width:1%; */
    white-space: nowrap;
}

#productTable th a,
table th a {
    color: #000 !important;
}

/* Select2 dropdown adjustments */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 22px !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ebedf2 !important;
}

.select2 .select2-selection__placeholder {
    color: #030303 !important;
}

/* Datepicker adjustments */
.datepicker {
    padding: .6rem 1rem !important;
}

/* Custom styles for the datepicker */
.form-select {
    /* --bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e); */
    padding: .6rem 1rem !important;
}

.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 1rem !important;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

/* connector line */
.step::after {
    content: '';
    position: absolute;
    top: 22px;
    /* vertically center with circle */
    left: 50%;
    width: 100%;
    height: 3px;
    background: #ddd;
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

/* step circle */
.step span {
    background: #fff;
    padding: 10px 18px;
    border-radius: 50%;
    display: inline-block;
    font-weight: bold;
    border: 1px solid #ccc;
    z-index: 1;
    position: relative;
}

/* active step */
.step.active span {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* completed step */
.step.completed span {
    background: #333;
    color: #fff;
    border-color: #333;
}

#addressTable thead th,
#contactTable thead th,
.itemTableModal thead th {
    padding: 8px 8px !important;
}

#addressTable>tbody>tr>td,
#contactTable>tbody>tr>td,
.itemTableModal>tbody>tr>td {
    padding: 4px 8px !important;
}

.itemTableModal thead th {
    padding: 10px 10px !important;
}

.itemTableModal>tbody>tr>td {
    padding: 4px 6px !important;
}

.boq_view_table thead th {
    padding: 10px 10px !important;
    background: #000 !important;
    color: #fff !important;
}

.boq_view_table>tbody>tr>td {
    padding: 4px 6px !important;
}

.boq_view_table>tbody>.level1{
    color: #000 !important;
    background: #a7b9b1 !important;
}


.form-check-input:checked {
    background-color: #000 !important;
    border-color: #000 !important;
}

.bg-primary {
    background: #33333300 !important;
    /* border-color: #33333300 !important; */
    color: #000 !important;
}

/* Loader style ----------------------------------------------------------------- */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* semi-transparent overlay */
    display: none;
    /* hidden until needed */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* stays on top */
}

#loading img.spin-loader {
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
    /* makes it rotate */
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Section style ----------------------------------------------------------------- */

/* Container */
.section-card {
    width: 100%;
    /* max-width:920px; */
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bdr{border: 1px solid red !important;}
/* Header: title left / total right */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    color: var(--accent);
    font-weight: 600;
    font-size: 18px;
}

.title-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.title-text .main {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a
}

.title-text .sub {
    font-size: 12px;
    color: var(--muted)
}

.section-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.total-value {
    font-size: 14px;
    font-weight: 800;
    color: #0b1220
}

.total-sub {
    font-size: 12px;
    color: var(--muted)
}

/* Table styles */
.section_table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
}

.section_table thead {
    background: #f1f5f9;
}

.section_table th,
.section_table td {
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
}

.section_table th {
    font-weight: 600;
    color: #0f172a
}

.section_table td {
    color: #0b1220
}

.section_table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    font-weight: 700;
}

.badge.success {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success)
}

.badge.negative {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444
}

.count {
    font-weight: 800
}

/* Footer small summary */
.section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    font-size: 13px;
    color: var(--muted)
}

/* Responsive */
@media (max-width:640px) {

    .section_table table,
    .section_table thead,
    .section_table tbody,
    .section_table tr,
    .section_table td,
    .section_table th {
        display: block;
        width: 100%
    }

    .section_table thead {
        display: none
    }

    .section_table tr {
        margin-bottom: 12px;
        background: #f9fafb;
        padding: 10px;
        border-radius: 10px
    }

    .section_table td {
        padding: 6px 10px;
        font-size: 13px;
        display: flex;
        justify-content: space-between
    }

    .section_table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #0f172a
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        --bs-modal-width: 80% !important;
    }
}

/* sticky table heading */
.table.itemTableModal thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    /* so it stays above rows */
    /* background: #fff; */
    /* keep background solid */
}

.itemchk,
.selectAll {
    height: 16px;
    width: 16px;
    border-radius: 0px !important;
}

/* Hide default checkbox */
input[type="checkbox"] {
    accent-color: white;
    /* For modern browsers, changes the checkbox color */
}

/* Style table row when checkbox is checked */
input[type="checkbox"]:checked {
    /* nothing here, need to style row via sibling/parent */
}

/* Trick: use label and sibling selector */
tr {
    transition: background-color 0.3s, color 0.3s;
}

input[type="checkbox"]:checked+td,
input[type="checkbox"]:checked+td~td {
    background-color: black;
    color: white;
}

.text-bold{
    font-weight: bold !important;
}

.table thead.table_light tr th{
    background-color: #c1bfbf !important;
    color: #000 !important;
}

.sectionDiv header.level1_div_{
    background: #333;
    padding: 10px 5px 5px 10px;
    color: #fff;
}

.select2{
    width: 100% !important;
}

.custom-btn-sm {
    font-size: 14px;
    padding: 0px 6px;
}

.image-wrapper img {
    transition: transform 0.2s ease-in-out;
}
.image-wrapper img:hover {
    transform: scale(1.05);
}

.custom-form-check{
    padding: 0px !important;
}


.td-2-rows {
    display: flex;
    flex-direction: column;
    /* height: 100px; */     /* required height */
}

.td-2-rows .tbl_row {
    flex: 1;           /* split equally */
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

.td-2-rows .bottom {
    border-bottom: none;
}

.td-3-rows {
    display: flex;
    flex-direction: column;
    /* height: 150px; */  /* required height */
}

.td-3-rows .tbl_row {
    flex: 1;        /* split equally */
    padding: 6px;
    border-bottom: 1px solid #ccc;
}

.td-3-rows .tbl_row:last-child {
    border-bottom: none;
}


.breadcrumb-text-limit {
    max-width: 250px;   /* adjust as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}


/* Country calling code css - intlTelInput */
.iti{
    width: 100%;
}

.iti__search-input {
    height: 40px !important;
}
