body {
    min-height: 100vh;
}

.all-content-wrapper {
    min-height: 100vh;
}

/* during development css */
.pageloaderWrp {
    width: 100%;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -999;
    background: rgb(38 171 232 / 28%);
    transition: all 0.3s ease-in-out;
    opacity: 0;
}
.errorMsg {
    color: red;
    font-size: 12px;
}
.loading_page .pageloaderWrp,
.pageloaderWrp.active {
    opacity: 1;
    z-index: 9999;
}
.theme-3 .log__Left_sideContain {
    align-items: center;
    display: flex;
    justify-content: center;
}
.inputWrp input {
    width: 150px;
}
.mantine-b6zkvl {
    min-height: 200px;
}

/* comment */

.comment-img {
    width: 3rem;
    height: 3rem;
}
.comment-replies .comment-img {
    width: 1.75rem;
    height: 1.75rem;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ----- testing ----- */
.app-menu .btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.5rem;
}
.defaluser img {
    width: 40px;
}
.linkhover:hover{
    text-decoration: underline !important;
  }
  .btn-theme-2 {
    background: #fff;
    border: 1px solid #1160c1;
    color: #1160c1;
}

.btn-theme-2:hover {
    background: #d1e6ff;
}
.usrNameComnt {
    border-bottom: 1px solid #c9c9c9;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.usrNameComnt:nth-last-child(1) {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.table-responsive>.table-bordered.table-theme {
    border: 0px solid #dee2e6;
}



table.table.table-theme tr th {
    border: 1px solid #377fd8;
    font-size: 13px;
    padding: 7px 15px;
    color: #fff;
    background: #1160c1;
}

table.table.table-theme tr td {
    border: 1px solid #eeeeee ;
    padding: 7px 15px;
    font-size: 12px;
}
.user_info_edit{
    font-size: 14px;
    cursor: pointer;
}
.user_info_edit .icon-highlight_remove {
    font-size: 25px;
}

.min-width-200{
    min-width: 200px;
}

img.icon {
    width: 20px;
}

/* ----- react modal ----- */
.ReactModal__Overlay {
    z-index: 99999;
}

div#header-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45%;
    z-index: 101;
    background: transparent;
}

div#pdf-controls {
    justify-content: flex-start;
    background: #f9f9f9;
    z-index: 102;
    /* box-shadow: 0px 6px 10px #0000002b; */
}

.doc-modal-close {
    position: sticky;
    top: 0;
    right: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: end;
    font-size: 30px;
    z-index: 100;
    padding-bottom: 10px;
    cursor: pointer;
    /* background: #f9f9f9; */
    /* box-shadow: 0px -6px 8px #0000002b; */
}

/* ----- Filter Float Styles ----- */
.filter-float .form-control {
    padding: 4px 8px;
    font-size: 13px;
    height: 32px;
}

.filter-float .form_control_label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 3px;
}

.filter-float .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.filter-float .nav-link.tabs {
    padding: 6px 12px;
    font-size: 13px;
}

.filter-float .react-datepicker-wrapper {
    width: 100%;
}

.filter-float .react-datepicker__input-container input {
    padding: 4px 8px !important;
    font-size: 13px !important;
    height: 32px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.filter-float .react-datepicker__input-container input:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: 0 !important;
}

.filter-float .filter-header-row {
    background: #efeeee;
    padding-bottom: 8px;
}

.filter-float .filter-tab-container {
    font-size: 14px;
    font-weight: 700;
    position: relative;
}

/* Close button alignment with tabs */
.filter-float .filter-tab-container .btn-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 10;
}

/* ----- Accordion Styles ----- */
.accordion-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accordion-header:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.accordion-icon {
    font-size: 10px;
    transition:
        transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        color 0.2s ease-out;
    margin-right: 8px;
    color: #6c757d;
    min-width: 12px;
    text-align: center;
}

.accordion-icon.expanded {
    transform: rotate(90deg);
    color: #495057;
}

.accordion-content {
    overflow: hidden;
    transition:
        max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-left 0.3s ease-out,
        opacity 0.3s ease-out;
    border-left: 2px solid transparent;
    margin-left: 10px;
    padding-left: 16px;
    opacity: 0;
}

.accordion-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-left: 2px solid transparent;
    opacity: 0;
    transition-delay: 0s;
}

.accordion-content.expanded {
    max-height: 2000px;
    padding-top: 8px;
    padding-bottom: 16px;
    border-left: 2px solid #e9ecef;
    opacity: 1;
    transition-delay: 0.1s;
}

/* ----- Section Header Styles ----- */
.section-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 14px;
    border: none;
    flex: 1;
}

.section-header.client-info {
    color: #007bff;
}

.section-header.building-info {
    color: #28a745;
}

.section-header.fines-compliance {
    color: #dc3545;
}

/* ----- Product List Button Consistency ----- */
.product-list-buttons .btn-custom,
.product-list-buttons a.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    line-height: 1.4;
    vertical-align: middle;
    box-sizing: border-box;
}

.product-list-buttons button.btn-custom {
    border: none;
    cursor: pointer;
}

.product-list-buttons .btn-custom i {
    margin-right: 6px;
}

/* Fix nested button-link structure */
.product-list-buttons button.btn-custom > a.btn-custom {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    color: inherit !important;
    text-decoration: none !important;
}

.product-list-buttons button.btn-custom > a.btn-custom:hover {
    background: transparent !important;
    color: inherit !important;
}

/* Ensure CsvDownload anchor has consistent styling */
.product-list-buttons > a.btn-custom {
    text-decoration: none;
}

/* ----- Quick Filter Section ----- */
.quick-filter-section {
    animation: slideDown 0.3s ease-in-out;
    border-top: 1px solid #dee2e6 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0;
    }
    to {
        opacity: 1;
        max-height: 250px;
        padding: 1rem;
    }
}

.quick-filter-section .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.quick-filter-section .form-control-sm {
    font-size: 13px;
    padding: 4px 8px;
    height: 32px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.quick-filter-section .form-control-sm:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.quick-filter-section .form-group {
    margin-bottom: 0;
}

/* Mantine DataTable styling to match Bootstrap table-theme */
.table-responsive .mantine-DataTable-root {
    border: 0px solid #dee2e6;
}

.table-responsive .mantine-DataTable-root .mantine-DataTable-table {
    font-size: 11px;
}

.table-responsive .mantine-DataTable-root .mantine-DataTable-header th {
    background: #1160c1 !important;
    color: #fff !important;
    border: 1px solid #377fd8 !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    font-weight: 500;
    height: 35px !important;
}

.table-responsive .mantine-DataTable-root .mantine-DataTable-row td {
    border: 1px solid #eeeeee !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    height: 30px !important;
    vertical-align: middle !important;
}

.table-responsive .mantine-DataTable-root .mantine-DataTable-row:hover td {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Additional header styling to ensure blue color */
.table-responsive .mantine-DataTable-root thead tr th,
.table-responsive .mantine-DataTable-root .mantine-DataTable-header th,
.table-responsive .mantine-DataTable-root [data-mantine-datatable="header"] th {
    background-color: #1160c1 !important;
    background: #1160c1 !important;
    color: white !important;
    border-color: #377fd8 !important;
}

/* Pagination styling consistency */
.table-responsive .mantine-DataTable-pagination {
    padding: 10px 0;
    border-top: 1px solid #eeeeee;
}

.table-responsive .mantine-DataTable-pagination .mantine-Pagination-control {
    font-size: 12px;
}

/* Fix Building Table page height and scroll issues */
.table-responsive {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: auto;
}

/* More specific targeting for building table pages */
.card-body .table-responsive {
    max-height: calc(100vh - 280px);
}

/* Prevent body overflow on building pages */
body {
    overflow-x: hidden;
}

/* Ensure main container doesn't create extra height */
.all-content-wrapper {
    max-height: 100vh;
    overflow-y: auto;
}

/* Custom scrollbar for table container */
.table-responsive::-webkit-scrollbar {
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments for table height */
@media (max-height: 800px) {
    .table-responsive {
        max-height: calc(100vh - 150px);
    }
    .card-body .table-responsive {
        max-height: calc(100vh - 220px);
    }
}

@media (max-height: 600px) {
    .table-responsive {
        max-height: calc(100vh - 120px);
    }
    .card-body .table-responsive {
        max-height: calc(100vh - 180px);
    }
}

/* Quick Filter Animation Styles */
.quick-filter-section {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.quick-filter-enter {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    padding-top: 0;
    padding-bottom: 0;
}

.quick-filter-enter-active {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.quick-filter-exit {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.quick-filter-exit-active {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    padding-top: 0;
    padding-bottom: 0;
}

/* Enhanced Quick Filter Styling */
.quick-filter-section.show {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.quick-filter-section.hide {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Quick Filter Button Animation */
.btn-custom {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Scrollable Filters Tab */
.show-tab-filters {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* Custom scrollbar for filters */
.show-tab-filters::-webkit-scrollbar {
    width: 6px;
}

.show-tab-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.show-tab-filters::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.show-tab-filters::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments for filter container */
@media (max-height: 800px) {
    .show-tab-filters {
        max-height: 60vh;
    }
}

@media (max-height: 600px) {
    .show-tab-filters {
        max-height: 50vh;
    }
}

/* Ensure filter container doesn't exceed viewport */
.filter-float {
    max-height: 85vh;
    overflow: hidden;
}

/* Smaller labels in Columns tab of Filters */
.show-tab-filters label {
    font-size: 11px;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.3;
}

.show-tab-filters .col-sm-6 {
    margin-bottom: 8px;
}

.show-tab-filters input[type="checkbox"] {
    transform: scale(0.9);
    margin-right: 6px;
}

/* Filter count bubble styles */
.filter-count-bubble {
    display: inline-block;
    background-color: #444dbe;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    vertical-align: middle;
}

/* Ensure the bubble appears correctly in section headers */
.section-header {
    display: flex;
    align-items: center;
    position: relative;
}

.section-header .filter-count-bubble {
    margin-left: auto;
    margin-right: 10px;
}
