.section {
    margin-bottom: 25px;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    font-size: 14px;
}

.section-title {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    border-bottom: 1px solid #444;
}

.section-title--toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.section-title--toggle > span {
    flex: 1;
    text-align: center;
}
.section-title--toggle .section-title-chevron {
    order: -1;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.section-title--toggle[aria-expanded="false"] .section-title-chevron {
    transform: rotate(-90deg);
}
.section-title--toggle:focus {
    outline: 1px dotted rgba(0, 0, 0, 0.4);
    outline-offset: 2px;
}

.section .table th,
.section .table td {
    border: 1px solid #444;
}

.docs-table thead th {
    background: rgba(0, 0, 0, 0.08);
    font-weight: bold;
    text-align: center;
    vertical-align: top;
}

.docs-table tbody td {
    text-align: center;
    vertical-align: top;
}

.section .docs-table,
.section .docs-table thead th,
.section .docs-table tbody td {
    background: transparent;
}

.section .docs-table thead th {
    background: rgba(0, 0, 0, 0.06);
}

.section .docs-table {
    margin-bottom: 0;
}

.section .table-responsive {
    overflow-x: auto;
}


.bg-missing {
    background: #ffdccf;
}

.bg-missing .table th,
.bg-missing .table td {
    border: 1px solid #333;
}

.subsection-header {
    font-weight: bold;
    text-align: center;
    padding: 10px 12px;
    margin: 0;
}

.subsection-header--red {
    background: #c9302c;
    color: #fff;
}

.require-document-form-wrap {
    padding-bottom: 0.5rem !important;
}
.require-document-form .require-document-form__field .form-label,
.require-document-form .require-document-form__field label:not(.form-check-label) {
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
}
.require-document-form .form-control,
.require-document-form .form-select {
    font-size: 0.875rem;
    min-height: 31px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.require-document-form .select2-container .select2-selection--single {
    min-height: 31px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.require-document-form .min-width-180 {
    min-width: 140px;
}
.require-document-form__btn .form-label {
    margin-bottom: 0.2rem;
}

.subsection-header--yellow {
    background: #f0ad4e;
    color: #000;
}

.docs-table--red thead th {
    background: #a52822;
    color: #fff;
    font-weight: bold;
    text-align: center;
    vertical-align: top;
    border: 1px solid #333;
}

.docs-table--red tbody td {
    background: #ffdccf;
    border: 1px solid #333;
}

.btn-upload-missing {
    background: #c9302c !important;
    border-color: #ac2925 !important;
    color: #fff !important;
}

.btn-upload-missing:hover {
    background: #ac2925 !important;
    border-color: #761c19 !important;
    color: #fff !important;
}

.docs-table--yellow thead th {
    background: #e09b2e;
    color: #000;
    font-weight: bold;
    text-align: center;
    vertical-align: top;
    border: 1px solid #333;
}

.docs-table--yellow tbody td {
    background: #ffdccf;
    border: 1px solid #333;
}


.bg-requested {
    background: #f4c542;
}

.bg-provided {
    background: #9be3a1;
}

.bg-review {
    background: #ffe600;
}

.bg-cancelled {
    background: #e0e0e0;
}

.status-bad {
    background: #ff6b6b;
    color: #fff;
}

.status-warn {
    background: #ffa94d;
}

.status-good {
    background: #51cf66;
}

.review-status-not-reviewed {
    background-color: #ff6b6b !important;
}
.review-status-reviewed {
    background-color: #51cf66 !important;
}
.review-status-disagree {
    background-color: #ffa94d !important;
}

.status-returned-for-revision {
    background-color: #ff6b6b !important;
}

.upload-requirement-modal {
    z-index: 9999 !important;
}

body.upload-requirement-modal-open .modal-backdrop {
    z-index: 9998 !important;
}

.upload-requirement-modal__content {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.upload-requirement-modal__header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1rem 1.25rem;
    background: #e0e0e0;
    border-radius: 12px 12px 0 0;
}

.upload-requirement-modal__header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.upload-requirement-modal__body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.upload-requirement-modal__doc-title {
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    background: #f0f4f8;
    border-radius: 6px;
    margin-bottom: 0;
}

.upload-requirement-modal .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

#add-docs-client-btn {
    background-color: #6c757d;
    border-color: #6c757d;
}
#add-docs-client-btn:hover,
#add-docs-client-btn:focus {
    background-color: #5a6268;
    border-color: #545b62;
}

.upload-requirement-modal .btn-primary {
    background-color: #51cf66;
    border-color: #51cf66;
}
.upload-requirement-modal .btn-primary:hover,
.upload-requirement-modal .btn-primary:focus {
    background-color: #40c057;
    border-color: #40c057;
}
