html, body {
    width: 100%;
    overflow-x: hidden;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid var(--bs-gray-400);
}

.protocol .accordion-body {
    background-color: #FFF !important;
    border: 2px solid var(--bs-accordion-active-bg);
}

.form-check > * {
    cursor: pointer;
}

#projectTab a {
    font-weight: 600;
}

.nav-pills .nav-link {
    border-radius: 0.624rem;
}

.note-card {
    /*background: #fff;*/
    /*border: 1px solid #e0e0e0;*/
    /*border-radius: 6px;*/
    /*padding: 5px 10px;*/
    margin-bottom: .875rem;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);*/
    /*padding-right: calc(var(--bs-gutter-x) * 0.5);*/
    /*padding-left: calc(var(--bs-gutter-x) * 0.5);*/
}

.note-card .card-title {
    font-size: 0.9rem;
}

.note-card .card-header {
    padding: calc(var(--bs-card-cap-padding-y) / 2) calc(var(--bs-card-cap-padding-x) / 2) !important;
    border-bottom: 0;
    background: #F8FAFB !important;

}

.protocol-note .card-title {
    font-size: 0.8rem !important;
}

.protocol-note .card-header {
    background: none !important;
    padding-bottom: 0 !important;
}


.note-card .card-body {
    padding: calc(var(--bs-card-spacer-y) / 2) calc(var(--bs-card-spacer-x) / 2);
}


.note-card__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.note-card__vendor {
    font-weight: 600;
}

.note-card__date {
    font-size: 0.9rem;
    color: #666;
}

.note-card__description {
    line-height: 1.5;
    margin-bottom: 10px;
}

.note-card__description p:last-child, .rich-text-description p:last-child {
    margin-bottom: 0;
}

.note-card__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.note-card__photos img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.note-card__reporter {
    text-align: right;
    margin: auto 0 0 auto;
    color: #444;
}

/* wrap date+edit into a mini-flex container */
.note-card__controls {
    display: flex;
    align-items: center;
    gap: 8px; /* space between date & icon */
}

/* style the edit button */
.note-card__edit-btn {
    background: none;
    border: none;
}

.note-card__edit-btn:hover {
    color: #333;
}

.photo-card {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {

    [data-sidebar-behaviour="fixed"] main#content footer {
        left: auto;
    }

    /*For having space between delete button and the first card. */
    #content > div > .row.justify-content-between:first-child .d-md-none {
        margin-bottom: 1rem;
    }
}

@media (min-width: 767px) {

    .project-trades .list-group-item:not(:first-child) label {
        display: none;
    }

    .project-trades .list-group-item:not(:first-child, :last-child), .error-details .list-group-item:not(:first-child, :last-child) {
        padding-top: 0;
    }

    .project-trades .list-group-item:not(:last-child), .error-details .list-group-item:not(:last-child) {
        padding-bottom: 0;
    }

}

@media (max-width: 767px) {

    .project-trades .list-group-item:not(:first-child, :last-child) {
        padding: calc(var(--bs-list-group-item-padding-y) / 3) var(--bs-list-group-item-padding-x);
    }
}

.project-trades .list-group-item, .error-details .list-group-item {
    border: none;
}

.location-modal .modal-header .btn-close {
    margin: 5px 5px 0 auto;
}

.location-modal .modal-body {
    padding-top: 0;
}

.accordion-button::after {

    margin-left: 2rem;
}


