.form-control {
    border-color: #9ea2a9 !important;
}

.dropdown-toggle {
    border-color: #9ea2a9 !important;

}

.form-select {
    border-color: #9ea2a9 !important;
}

.form-check-input {
    border-color: #9ea2a9 !important;

}

.color-select {
    margin-top: 15px;
    display: none;
}

.color-selected {
    box-shadow: inset 0px 0px 0px 2px white;
}

.color-select td {
    width: 35px;
    height: 35px;
    border: 1px solid black;
}

.color-select td:hover {
    box-shadow: inset 0px 0px 0px 2px white;
}



.response-rate {
    min-width: 100px !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.avatar-sm {
    height: 2rem;
    width: 2rem;
    object-fit: cover;
    object-position: center right;
}

#filterGroup {
    width: 55px;
    height: 25px;
    padding: 2px;
    border-radius: 5px;
    background: white;
    border: 1px solid gray;
}

.tooltip {
    --bs-tooltip-bg: var(--bs-primary);
    color: white;
}


.tooltip hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 1), rgba(0, 0, 0, 0));
}

.tooltip {
    --bs-tooltip-max-width: 300px;
}

.list-display li {
    margin-bottom: .4rem;
    font-size: 1.1rem;
}

.list-checkmarks {
    padding-left: 10px;
}

.list-checkmarks li {
    list-style-type: none;
    padding-left: 1rem;
}

.list-checkmarks li:before {
    font-family: 'FontAwesome';
    content: "\f00c";
    margin: 0 10px 0 -28px;
    color: #17aa1c;
}

.pre-line {
    white-space: pre-line;
}

.fileName {
    width: 80%;

}

.folderName {
    margin-top: 20px;
    margin-bottom: 4px;
}

.text-red {
    color: #f42a2a !important;
}



@media (min-width:500px) {

    #jobList th,
    #jobList td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 8vw;
    }

    .hours-td {
        max-width: 5vw !important;
    }
}

@media (max-width:500px) {

    #jobList th,
    #jobList td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 130px;
    }
}


.preview_image p {
    text-align: center;
}


.image-box {
    max-width: 100%;
    max-height: 100%;
}

.img-min {
    width: 100px;
    height: 100px;
    display: inline-block;
    padding: 5px;
    margin-bottom: 12px;


}

.image_name {
    display: block;
    font-size: 14px;
    text-align: center;
}

#report-sent {
    display: none;
}

.upload__box {
    margin-bottom: 10px;
}

.upload__inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.upload__btn {
    display: inline-block;
    color: black;
    text-align: center;
    min-width: 116px;
    width: 100%;
    padding: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
    background-color: #fcfcfc;
    border-color: #dbdbdb;
    border-radius: 10px;
    border-style: dashed;
    line-height: 26px;
    font-size: 16px;

}

.upload__btn:hover {
    background-color: unset;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.upload__btn-box {
    margin-bottom: 10px;
}

.upload__img-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.upload__img-box {
    width: 100px;
    padding: 0 10px;
    margin-bottom: 12px;
}

.upload__img-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: center;
    line-height: 24px;
    z-index: 1;
    font-family: Arial;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.img-bg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    padding-bottom: 100%;
}

.upload__btn p {
    margin: 0;
}

.alert ul {
    margin-bottom: 0;
}

.check {
    width: 50px;
    height: 50px;
    border: 3px solid;
}

.check i {
    font-size: 24px;
}

.no {
    font-size: 24px;
}

.x-icon {
    position: absolute;
    top: 5px;
    right: 5px;
}

.lThrough {
    text-decoration: line-through
}

.rate-muted input {
    color: #bbb;
}


.rates-tr input {
    width: 55px;

}

.cursor-pointer {
    cursor: pointer;
}

[v-cloak] {
    display: none;
}

.invoice-cancelled {
    text-decoration: line-through;
    color: #868686 !important;
}

.invoice-cancelled td {
    color: #868686 !important;
}



.tooltip .tooltip-inner {
    text-align: left;
}

.calendar-itm {
    display: inline-block;
    position: relative;
}

.button__badge {
    font-weight: normal;
    background-color: #fa3e3e;
    border-radius: 2px;
    color: white;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    position: absolute;
    /* Position the badge within the relatively positioned button */
    top: 0;
    left: 0;
}

.button__badge__medium {
    font-weight: normal;
    background-color: #ffb300;
    border-radius: 2px;
    color: white;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    position: absolute;
    /* Position the badge within the relatively positioned button */
    top: 0;
    left: 0;
}

.warning-tooltip {
    --bs-tooltip-bg: var(--bs-primary);
    color: white;
}

.warning-tooltip hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 1), rgba(0, 0, 0, 0));
}

.calendar-today {
    border-bottom: 2px solid red !important;
}

.calendar-today td {
    color: #800020;
    font-weight: bold;
}

.calendar-td {
    padding: 0 !important;
}

.calItem {
    margin: 6px;
}

#fileList td {
    height: 45px;
}

.review-file {
    max-width: 200px;
    padding: 10px 0;
    margin-right: 5px;
}

.review-file textarea {
    resize: none;
}

.img-preview {
    height: 200px;
}

.img-pr {
    width: 200px;
}

.small-hr {
    margin-bottom: 2px;
    margin-top: 2px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1), rgba(0, 0, 0, 0));
}

.link-task {
    text-decoration: none;
    color: black;
}

.resize-none {
    resize: none;
}

.td-70 {
    min-width: 70px;
}

.tr-gray td {
    color: gray;
}

.screenshot-preview-img {

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cal-high-priority-warning button {
    background: #c00000 !important;
    color: white !important;
}


.send-blink {
    animation: send-booking-animation 3s infinite;
}


@keyframes send-booking-animation {

    0%,
    100% {
        color: blue;
        border-color: blue;
    }

    50% {
        color: rgb(215, 53, 69);
        border-color: rgb(215, 53, 69);
    }
}



.cal-high-priority-warning {
    animation: cal-blink 2s infinite;
}

@keyframes cal-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.task-high-priority-warning {
    background: #c00000 !important;
    animation: cal-blink 3s infinite;
}

.task-high-priority-warning td {
    color: white !important;
}

@media only screen and (max-width: 600px) {
    .calendar-daily {
        width: 100%;
    }

    .calendar-daily button {
        width: 95%;
        text-align: left;
    }
}

.invoice-table-tasks-list {
    width: 150px;
    display: block;
}



.sidebar-menu .menu-open>.nav-treeview {
    margin-left: 10px;
}

.pricing-additional-table {
    font-size: 13px;
}

.pricing-additional-table td {
    color: gray;

}



.app-sidebar::-webkit-scrollbar {
    width: 7px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: #ffffff0f;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background-color: #959595;
    border-radius: 10px;
    border: 3px solid #959595;
}

.icon-advance {
    font-size: 22px;
}


@keyframes animation-send {
    50% {
        opacity: 0.0;
    }
}

.blink {
    animation: blink 1s step-start 0s infinite;
}

.text-primary-tr td {
    color: var(--bs-primary);
}


.client-email-span {
    display: inline-block;
    /* Ensures the span behaves like a block within the cell */
    max-width: 100%;
    /* Prevents overflow beyond the cell width */
    word-break: break-word;
    /* Breaks long words to fit within the container */
    overflow-wrap: anywhere;
    /* Provides additional flexibility for breaking long words */
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: white;
}

.bg-teal {
    background-color: #20c997 !important;
    color: white;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: white;
}

.bg-lime {
    background-color: #a3e635 !important;
    color: black;
}

.bg-maroon {
    background-color: #800000 !important;
    color: white;
}

.bg-navy {
    background-color: #001f3f !important;
    color: white;
}

.bg-olive {
    background-color: #3d9970 !important;
    color: white;
}

.bg-pink {
    background-color: #ff69b4 !important;
    color: white;
}

.bg-cyan {
    background-color: #17a2b8 !important;
    color: white;
}

.bg-gold {
    background-color: #ffd700 !important;
    color: black;
}

.bg-silver {
    background-color: #c0c0c0 !important;
    color: black;
}

.bg-rose {
    background-color: #ff007f !important;
    color: white;
}

.bg-brown {
    background-color: #8b4513 !important;
    color: white;
}

.bg-light-blue {
    background-color: #87cefa !important;
    color: black;
}

.bg-violet {
    background-color: #9400d3 !important;
    color: white;
}

.bg-yellow-green {
    background-color: #9acd32 !important;
    color: black;
}

.bg-light-gray {
    background-color: #d3d3d3 !important;
    color: black;
}

.bg-sky-blue {
    background-color: #00bfff !important;
    color: white;
}

.bg-crimson {
    background-color: #dc143c !important;
    color: white;
}

.bg-dark-green {
    background-color: #006400 !important;
    color: white;
}

.rating-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.rating-rectangle {
    width: 30px;
    height: 30px;
    border: 1px solid #dbdbdb;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    user-select: none;
}

.rating-rectangle.active {
    background-color: #007bff;
    color: white;
}

.btn-purple {
    color: rgb(111, 16, 235);
    border-color: rgb(111, 16, 235);
}

.btn-purple:hover {
    color: white;
    background: rgb(111, 16, 235);
}

.color-purple {
    color: rgb(111, 16, 235);
}


.comment-hidden-td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}

.icon-gray {
    color: rgb(202, 215, 228);
}

@media (min-width: 800px) {
    .card-height {
        height: 360px;
    }
}


div#dropZone {
    background: gray;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    opacity: 0.6;
    visibility: hidden;
}

.drop-zone {
    width: 100%;
    height: 150px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    color: #cccccc;
    border: 4px dashed #0d6efd;
    border-radius: 10px;

    margin: 20px 0;
}

.custom-icon-picker-container {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-icon-picker-search {
    width: 100%;
    margin-bottom: 10px;
}

.custom-icon-picker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.custom-icon-picker-item {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.custom-icon-picker-item:hover {
    border: 1px solid #007bff;
    background-color: #f0f8ff;
}


#requestMessage {
    padding: 2px 10px;
    border-radius: 5px;
    background: #eae8e8cd;
}



.table-email {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
}

.cal-muted button {
    background: #c8c8c8 !important;
    color: white !important;
}

.drag-over {
    border: 2px dashed #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.p-tax-info {
    padding: 5px;
    background: rgb(233, 233, 233);
}

.text-gray-icon {
    color: rgb(208, 208, 208);
}

.client-h4 {
    font-size: 22px;
    font-weight: normal;
}

.change-request-modal .modal-dialog {
    max-width: 700px;
}

.invoice-bold {
    font-size: 1.1em;
    margin-bottom: 6px;
    font-weight: bold;
}

.invoice-text {
    color: #646464;
}


:root {
    --invoice-green: #05b2c2;
}

.numeric-no-arrows::-webkit-outer-spin-button,
.numeric-no-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.numeric-no-arrows {
    -moz-appearance: textfield;
}


.vertical-table th {
    position: sticky;
    left: 0;
    background: #fff;
    /* Keep it visible above cells */
    z-index: 2;
    text-align: left;
}

.btn-flat {
    box-shadow: none !important;
    border-radius: 0.3rem;

}

.btn-primary {
    background-color: #007bff;
}


.text-hover-primary:hover {
    color: #0d6efd !important;
    cursor: pointer;
}

.bootbox-price-modal .modal-dialog {
    max-width: 600px;
    /* or more if needed */
}

/* Bill of Quantities Table Styles */
.bill-table {
    font-size: 0.875rem;
}

.bill-table th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
    font-size: 12px;
}

th {
    background-color: #f2f2f2;
}

.bill-table th {
    background-color: #f2f2f2;
    text-align: center;
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

.bill-table td {
    padding: 0.5rem;
    vertical-align: middle;
}

.bill-table .description-col {
    width: 40%;
}

.bill-table .payment-type-col
{
    width:8%;
}
.bill-table select
{
    font-size:14px;
}
.bill-table .unit-col {
    width: 5%;
}

.bill-table .quantity-col {
    min-width: 80px;
}

.bill-table .price-col {
    width: 7%;
}

.bill-table .value-col {
    width: 4%;
}

.bill-table .vat-col {
    min-width: 60px;
}



.bill-table .status-col {
    width: 4%;
}

.bill-table .actions-col {
    width: 5%;
}

.bill-table .group-row {
    background-color: #dbebfe !important;
    min-height: 3rem;
}

.bill-table .scope-row {
    background-color: #dcfce7 !important;
    min-height: 3rem;
}

.bill-table .task-row {
    background-color: #ffffff;
    min-height: 3rem;
}

.bill-table .task-row.done {
    background-color: #f8f9fa;
}

.bill-table .description-indent-1 {
    margin-left: 1.5rem;
}

.bill-table .description-indent-2 {
    margin-left: 3rem;
}

.bill-table input[type=number],
.bill-table input[type=text],
.bill-table select,
.bill-table textarea {
    background-color: #fff;
    border: none;
    width: 100%;
    padding: 0.375rem 0.5rem;
    min-height: 2.25rem;
}

.bill-table input:disabled {
    background-color: #e9ecef;
}

.bill-table input[type=number]:focus,
.bill-table input[type=text]:focus,
.bill-table select:focus,
.bill-table textarea:focus {
    background-color: #fff;
    box-shadow: none;
    outline: 1px solid #80bdff;
}

.bill-table input[type=number] {
    text-align: right;
}

.bill-table .text-end {
    text-align: right !important;
}

/* Remove number input spinners */
.bill-table input[type=number]::-webkit-inner-spin-button,
.bill-table input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bill-table input[type=number] {
    -moz-appearance: textfield;
}

.bill-table .btn-group-sm>.btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.bill-table .btn-group-sm {
    gap: 2px;
}

.bill-table tfoot td {
    border-top: 2px solid #dee2e6;
    font-weight: bold;
    padding: 0.75rem 0.5rem;
}

/* Ensure minimum height for all rows */
.bill-table tr {
    min-height: 3rem;
}

/* Make textareas expand with content */
.bill-table textarea {
    resize: none;
    min-height: calc(2.25rem * 2);
    /* For 2 rows */
    height: auto;
}

/* Ensure white background for date inputs */
.bill-table input[type=date] {
    background-color: #fff;
    border: none;
    width: 100%;
    padding: 0.375rem 0.5rem;
    min-height: 2.25rem;
}

/* Ensure proper height for select elements */
.bill-table select {
    height: 2.25rem;
}

.tr-danger-light {
    background: #ffdddd;

}

.tr-danger-light td {
    color: #dc3545;
    font-weight: bold;
}

.tr-success-light {
    background: #dcfce7;
}





.gantt-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    border: 1px solid #ddd;
    font-size: 12px;
    overflow-x: auto;
}

.gantt-header,
.gantt-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    min-height: 35px;
}

.gantt-header>div {
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    font-weight: bold;
}

.gantt-row-header {
    font-weight: bold;
    padding: 10px 5px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
}

.gantt-timeline {
    display: grid;
    border-bottom: 1px solid #ddd;
    grid-auto-flow: column;
}

.gantt-bar {
    height: 22px;
    background-color: #007bff;
    border-radius: 5px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 11px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    align-self: center;
    line-height: 22px;
}

.gantt-bar.green {
    background-color: #28a745;
}

.gantt-bar.critical-path {
    background-color: #dc3545;
    border: 1px solid #a71d2a;
}

.build-log-scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.build-log-scope-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: 5px solid #007bff;
    /* Main color */
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: block;
}

.build-log-scope-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.build-log-scope-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
}

.rfp-step {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    border-left: 5px solid #007bff;
}

.rfp-step-number {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
}

.rfp-step-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.rfp-work-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.rfp-work-type {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rfp-work-type label {
    cursor: pointer;
    width: 100%;

    font-weight: bold;
    font-size: 14px;
    display: block;
}

.rfp-work-type input[type="radio"] {
    display: none;
}

.rfp-work-type.selected {
    border-color: #007bff;
    background: #dbeafe;
    border-width: 2px;
}

.rfp-work-scope-details {
    background: #fdfdff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 20px;

}

.rfp-work-scope-details h5 {
    font-size: 16px;
    font-weight: bold;
}

.rfp-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rfp-scope-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.rfp-checkbox-item label {
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.h5-offer-request {
    font-weight: bold;
    font-size: 16px;
}

.rfp-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.rfp-company-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rfp-company-item:hover {
    border-color: #aaa;
}

.rfp-company-item.selected {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.rfp-company-info {
    flex: 1;
}

.rfp-company-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.rfp-company-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.rfp-selected-count {
    font-size: 14px;
    color: #0d6efd;
    margin-left: 10px;
    font-weight: normal;
}


.build-log-scope-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.border-bottom-not-last:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

#dependency-list .dependency-group-header {
    font-weight: bold;
    margin-top: 10px;
    padding: 5px;
    background-color: #dbeafe;
    border-radius: 4px;
}

#dependency-list .dependency-scope-header {
    font-style: italic;
    margin-top: 5px;
    padding-left: 20px;
}

.dependency-task-item {
    padding: 3px 5px 3px 25px;
}

.dependency-task-item:hover {
    background-color: #f8f9fa;
}

.checklist-thumbnail {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 150px;
    overflow: hidden;
    background-color: white;
    /* optional, in case image has transparency */
}

.checklist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fill and crop */
    object-position: center center;
    /* center the crop */
    display: block;
}

.delete-checklist-photo {
    transform: translate(50%, -50%);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.5;
}


.border-bottom-not-last:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

/* File Manager Styles */
.file-manager-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.file-tree {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.file-tree::-webkit-scrollbar {
    width: 6px;
}

.file-tree::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.file-tree-item {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-tree-item:not(.directory) {
    display: flex;
    align-items: center;
}

.file-tree-item:hover {
    background-color: #f8f9fa;
}

.file-tree-item.active {
    background-color: #e9f5ff;
}

.file-tree-item.directory {
    padding: 0;
}

.file-tree-header {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
}

.file-tree-header:hover {
    background-color: #f8f9fa;
}

.file-tree-content {
    margin-left: 1.5rem;
    border-left: 2px solid #e9ecef;
    padding-left: 0.75rem;
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.file-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.file-tree-item:hover .file-actions {
    opacity: 1;
}

/* File Preview Styles */
.file-preview-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.file-preview-card.empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: #6c757d;
}

.file-preview-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.file-preview-content {
    flex: 1;
    padding: 1.5rem;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-image {
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

.file-preview-image img {
    max-height: 60vh;
    max-width: 100%;
    object-fit: contain;
}

.file-preview-iframe {
    width: 100%;
    height: 100%;
}

.file-preview-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.file-preview-generic {
    text-align: center;
}

.file-preview-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
}

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

    .file-manager-card,
    .file-preview-card {
        height: auto;
    }

    .file-tree {
        max-height: 300px;
    }

    .file-preview-content {
        min-height: 300px;
    }
}


/* Custom Documentation Styles */
.doc-container {
    display: flex;
    width: 100%;
    height: calc(100vh - 180px);
    /* Adjust based on your header */
    position: relative;
    margin-top: 1rem;
}

.doc-panel {
    height: 100%;
    overflow: auto;
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}



.doc-toggle-header {
    background-color: var(--bs-primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem 0.375rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.doc-toggle-header:not(:first-child) {
    margin-top: 0.5rem;
}



.doc-toggle-header i {
    transition: transform 0.2s ease;
}

.doc-toggle-header.collapsed {
    border-radius: 0.375rem;
    margin-bottom: 0;
}



.doc-toggle-content {
    background: white;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: calc(100% - 42px);
    overflow: auto;
    flex-grow: 1;
}

/* Middle Panel Styles */
.doc-middle-panel {
    flex: 1;
    min-width: 300px;
    margin-left: 8px;
}

/* Splitter Styles */
.doc-splitter {
    width: 8px;
    background-color: var(--bs-light);
    cursor: col-resize;
    transition: background-color 0.15s ease;
    margin-left: 0.25rem;
}

.doc-splitter:hover {
    background-color: var(--bs-gray-300);
}

.doc-splitter-active {
    background-color: var(--bs-gray-500) !important;
}

/* File Tree Styles */
.doc-file-tree {
    height: calc(100% - 48px);
    /* Account for toolbar */
    overflow-y: auto;
}

.file-tree-item {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.125rem;
    cursor: pointer;
}

.file-tree-item:hover {
    background-color: var(--bs-light);
}

.file-tree-item.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
}

.file-tree-item.directory {
    font-weight: 500;
}

.file-tree-header {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.file-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-actions {
    display: flex;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-tree-item:hover .file-actions {
    opacity: 1;
}

.file-tree-content {
    padding-left: 1.25rem;
    margin-left: 0.5rem;
    border-left: 1px dashed var(--bs-border-color);
}

/* File Preview Styles */
.doc-file-preview-content {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* This is the key container for the image */
.file-preview-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    width: 100%;
    height: 100%;
    max-height: 65vh;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* This ensures the image is fully visible with letterboxing */
    display: block;
    background: white;
    /* White background for the bars */
    margin: auto;
    /* Centers the image */
}


.doc-file-preview-iframe iframe {
    width: 100%;
    height: 100%;
    min-height: 65vh;
    border: none;
}

/* Empty State Styles */
.doc-empty-state {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--bs-secondary);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.doc-empty-state i {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .doc-container {
        flex-wrap: wrap;
        height: auto;
    }

    .doc-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
        height: auto;
    }

    .doc-splitter {
        display: none;
    }



    .doc-middle-panel {
        order: 2;
        margin-left: 0;
    }

    .doc-toggle-content {
        height: auto;
        max-height: 400px;
    }

    .doc-file-tree {
        height: auto;
        max-height: 300px;
    }
}

/* Card overrides for documentation */
.doc-container .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doc-container .card-body {
    flex-grow: 1;
    overflow: hidden;
    padding: 0;
}

/* Discussion panel styles */
.doc-discussion-panel {
    height: 100%;
    border-left: 1px solid var(--bs-border-color);
    padding-left: 1rem;
}

.doc-discussion-panel h5 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}


.doc-notes-container {
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
}

.doc-notes-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.doc-note-item {
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

.doc-note-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.offer-request-email-preview {
    max-width: 100%;
}

.offer-request-email-preview-body .offer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.offer-request-email-preview-body .offer-table th,
.offer-request-email-preview-body .offer-table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    vertical-align: top;
}

.offer-request-email-preview-body .offer-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

.offer-request-email-preview-body .text-center {
    text-align: center;
}

.offer-request-email-preview-body .text-end {
    text-align: right;
}

.offer-request-email-preview-body .description-indent-1 {
    padding-left: 1rem;
}

.offer-request-email-preview-body .description-indent-2 {
    padding-left: 2rem;
}

.offer-request-email-preview-body .group-row {
    background-color: #f1f1f1;
}

.offer-request-email-preview-body .scope-row {
    background-color: #f9f9f9;
}

.offer-request-email-preview-body p {
    margin-bottom: 0.75rem;
}

.offer-request-email-preview-body h3 {
    margin-top: 0;
}

.todo-textarea {
    min-width: 250px;
}


.doc-panel-toolbar {
    display: flex;
    gap: 5px;
    padding: 5px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.doc-panel-toolbar .btn {
    padding: 0.25rem 0.5rem;
}

.doc-panel-toolbar .btn.active {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.doc-left-panel {
    position: relative;
    height: 100%;
    overflow: auto;
}

.doc-right-panel {
    position: relative;
    height: 100%;
    overflow: auto;
}

.project-dashboard-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-widget {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    border-left: 5px solid #007bff;
}

.dashboard-widget h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #6c757d;
}

.dashboard-widget-full {
    flex-basis: 100%;
}

.notification-bell {
    position: relative;
    display: inline-block;
}

.notification-bell .notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 10px;
}

.messages-btn {
    position: relative;
    display: inline-block;
}

.messages-btn .messages-unread-badge {
    position: absolute;
    top: 4px;
    right: -4px;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 10px;
}


.notification-dropdown {
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item a {
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.notification-item.fw-bold a {
    font-weight: bold;
}

.notification-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd !important;
}

.notification-item .small {
    font-size: 0.8rem;
    margin-top: 2px;
}

.highlight-task {
    background-color: #ffe2e2 !important;
    transition: background-color 0.5s ease;
}

.highlight-task:hover {
    background-color: #ffe2e2 !important;
    transition: background-color 0.5s ease;
}


.date-header {
    cursor: pointer;

    color: rgb(161, 156, 156);
}

.date-header:hover .date-value {
    color: #0d6efd;

}


.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background: linear-gradient(135deg, #4f8aff, #377dff) !important
}




/* General button reset */
.btn {
    border-radius: 10px !important;
    /* pill-shaped */


    transition: all 0.25s ease-in-out !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* PRIMARY */
.btn-primary {
    background: linear-gradient(135deg, #4f8aff, #377dff) !important;
    border: none !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #377dff, #2f6ee9) !important;
    box-shadow: 0 4px 12px rgba(55, 125, 255, 0.3) !important;
}

/* DANGER */
.btn-danger {
    background: linear-gradient(135deg, #ff5b5b, #e64545) !important;
    border: none !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e64545, #d33535) !important;
    box-shadow: 0 4px 12px rgba(230, 69, 69, 0.3) !important;
}

/* SUCCESS */
.btn-success {
    background: linear-gradient(135deg, #3dc97a, #31b86b) !important;
    border: none !important;
    color: #fff !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #31b86b, #29a75f) !important;
    box-shadow: 0 4px 12px rgba(49, 184, 107, 0.3) !important;
}

/* OUTLINE VARIANTS */
.btn-outline-primary {
    border: 1px solid #377dff !important;
    color: #377dff !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #377dff !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(55, 125, 255, 0.3) !important;
}

.btn-outline-danger {
    border: 1px solid #e64545 !important;
    color: #e64545 !important;
    background: transparent !important;
}

.btn-outline-danger:hover {
    background: #e64545 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(230, 69, 69, 0.3) !important;
}

.btn-outline-success {
    border: 1px solid #31b86b !important;
    color: #31b86b !important;
    background: transparent !important;
}

.btn-outline-success:hover {
    background: #31b86b !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(49, 184, 107, 0.3) !important;
}

/* WARNING */
.btn-warning {
    background: linear-gradient(135deg, #ffb74d, #ff9800) !important;
    border: none !important;
    color: #fff !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}

/* OUTLINE WARNING */
.btn-outline-warning {
    border: 1px solid #ff9800 !important;
    color: #ff9800 !important;
    background: transparent !important;
}

.btn-outline-warning:hover {
    background: #ff9800 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3) !important;
}



.badge-primary,
.bg-primary {
    background: linear-gradient(135deg, #4f8aff, #377dff) !important;
    color: #fff !important;
}

/* DANGER */
.badge-danger,
.bg-danger {
    background: linear-gradient(135deg, #ff5b5b, #e64545) !important;
    color: #fff !important;
}

/* SUCCESS */
.badge-success,
.bg-success {
    background: linear-gradient(135deg, #3dc97a, #31b86b) !important;
    color: #fff !important;
}







.project-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 4px;
}

/* === Base button style === */
.project-nav-btn {
    background-color: #2b2b2b;
    color: #ccc;
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: row;
    transition: all 0.2s ease-in-out;
    min-width: 120px;
}

.project-nav-btn i {
    font-size: 1.1rem;
}

.project-nav-btn:hover {
    background-color: #3b3b3b;
    color: #fff;
}

.project-nav-btn.active {
    background: linear-gradient(145deg, #3d67ff, #2951d3);
    color: #fff;
    box-shadow: 0 0 10px rgba(61, 103, 255, 0.5);
}

/* === Mobile view: stack icon + text vertically === */
@media (max-width: 991px) {
    .project-nav {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .project-nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .project-nav-btn {
        flex: 0 0 auto;
        min-width: 80px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.75rem 0.5rem;
        border-radius: 1rem;
        text-align: center;
    }

    .project-nav-btn i {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .project-nav-btn span {
        font-size: 0.8rem;
        display: block;
        white-space: nowrap;
    }
}

/* === Desktop adjustments === */
@media (min-width: 992px) {
    .project-nav-btn span {
        display: inline;
    }
}




/* Truncate text with ellipsis on small screens */
@media (max-width: 768px) {
    .project-name-truncate-mobile {
        max-width: 140px;
        /* adjust as needed */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-close-project {
        display: none;
    }


}




.fullscreen-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    padding: 20px;
}

.fullscreen-content .doc-file-preview-iframe {
    width: 100%;
    height: 100%;
}

.fullscreen-content .file-preview-image-container {
    max-height: 85vh;
}

.doc-middle-panel.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
}

#workItemsList {
    height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
}

.auth-username {
    display: inline-block;
    /* safe default */
}

/* Only on mobile */
@media (max-width: 576px) {
    .auth-username {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
}



.logo-link {
    display: block;
    width: 120px;
    /* adjust as needed */
    height: 30px;
    background-image: url('/assets/images/logo-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

@media (max-width: 768px) {

    /* adjust breakpoint for mobile */
    .logo-link {
        background-image: url('/assets/images/logo-mobile.png');
        width: 30px;
        /* optional smaller width for mobile */
        height: 30px;
        /* or adjust if needed */
    }
}


/* Associated Modal Styles */
.bill-of-quantities-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    /* default desktop width */
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

/* Mobile screens */
@media (max-width: 768px) {
    .bill-of-quantities-side-panel {
        width: 300px;
    }
}


.bill-of-quantities-side-panel.show {
    transform: translateX(0);
}

.side-panel-header {
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
}

.side-panel-body {
    flex-grow: 1;
    overflow-y: auto;
}

/* Gallery Styles */
.build-log-gallery .gallery-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.build-log-gallery .gallery-thumb-link:hover .gallery-thumb {
    transform: scale(1.05);
}

.build-log-group {
    background-color: #dbebfe;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.build-log-scope {
    background-color: #dcfce7;
    border-radius: 5px;
    padding: 8px;
    margin: 5px 0;
}

.build-log-task {
    background-color: white;
    border-radius: 3px;
    padding: 6px;
    margin: 3px 0;
    border-left: 3px solid #0d6efd;
}

.build-log-task label {
    margin-bottom: 0;
    cursor: pointer;
}

.build-log-hidden {
    display: none !important;
}

.documentation-file-selector .doc-file-item.selected {
    background-color: #007bff !important;
    color: white;
}

.documentation-file-selector .directory-header {
    cursor: default;
}

.documentation-file-selector .doc-file-item {
    border-radius: 4px;
    margin: 2px 0;
}

.documentation-file-selector .doc-file-item:hover {
    background: #f8f9fa;
}

.bill-of-quantities-note-btn:hover
{
    cursor: pointer;
    color:#4f8aff !important;
}
