label.validationError {
    color: red;
}

.error {
    color: red;
}

input.validationError {
    border: 1px dotted red;
}

select.validationError {
    border: 1px dotted red;
}

/* The "History" highlight (Yellow) */
.table-active-highlight {
    background-color: #fff3cd !important;
    border-left: 5px solid #ffc107;
    transition: all 0.3s ease;
}

/* The "Last Clicked" highlight (Green) */
.table-last-read {
    background-color: #8fdfa2 !important;
    /* Light Green */
    border-left: 5px solid #28a745;
    /* Dark Green edge */
    transition: all 0.3s ease;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.update-bulk-status {
    margin: 0;
    padding: 6px 12px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    /* text-transform: uppercase; */
}

.per-page-select {
    width: 75px;
    display: inline-block;
    height: 30px;
    padding: 5px 10px;
}

.per-page-lable {
    font-weight: normal;
    margin: 0;
    white-space: nowrap;
}

.btn-export {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.export-div {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}


.documents-list {
    position: relative;
}

/* Document Dropdown Styles */
.document-dropdown {
    display: inline-block;
}

.document-dropdown .dropdown-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.document-dropdown .dropdown-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
}

.document-dropdown .dropdown-toggle .badge {
    background-color: rgb(255 255 255 / 95%);
    margin-left: 8px;
}

.dropdown-menu-docs {
    min-width: 198px;
    padding: 8px 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    margin-top: 5px;
}

.dropdown-menu-docs li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu-docs li:last-child {
    border-bottom: none;
}

.dropdown-menu-docs li a {
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

.dropdown-menu-docs li a i {
    margin-right: 10px;
    font-size: 16px;
    color: #667eea;
}

.dropdown-menu-docs li a:hover {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding-left: 20px;
}

.dropdown-menu-docs .doc-actions {
    padding: 8px 15px 12px 40px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.dropdown-menu-docs .doc-verify-status {
    width: 100%;
    margin-bottom: 8px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.dropdown-menu-docs .doc-remarks {
    width: 100%;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.label-xs {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
}

.doc-save-status {
    margin-left: 8px;
    font-size: 12px;
}

.documents-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.document-item {
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107;
}

.document-item:last-child {
    margin-bottom: 0;
}

.me-1 {
    margin-right: 3px;
}

.view-single-doc {
    cursor: pointer;
    white-space: nowrap;
}

.modal-lg {
    width: 90%;
    max-width: 1200px;
}

.label {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
}

.label-success {
    background-color: #5cb85c;
    color: white;
}

.label-danger {
    background-color: #d9534f;
    color: white;
}

.label-warning {
    background-color: #f0ad4e;
    color: white;
}

.label-info {
    background-color: #5bc0de;
    color: white;
}

.verification-cell select {
    min-width: 130px;
}

.label-default {
    background-color: #777;
    color: white;
}

.box-footer {
    margin-top: 15px;
}

.btn-group {
    margin-right: 10px;
}

.table>tbody>tr>td {
    vertical-align: middle;
}

/* Comments styling */
.comments-list {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
}

.comment-item {
    background: white;
    border-left: 3px solid #3c8dbc;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: bold;
    color: #3c8dbc;
    font-size: 12px;
}

.comment-date {
    color: #999;
    font-size: 11px;
}

.comment-text {
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

.btn-comment {
    background: none;
    border: none;
    color: #3c8dbc;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 12px;
}

.btn-comment:hover {
    color: #2a6b8c;
}

@media (max-width: 768px) {
    .dropdown-menu-docs {
        min-width: 280px;
    }
}

.form-control.doc-verify-status,
.form-control.doc-remarks {
    border-radius: 3px;
    border: 1px solid #ddd;
}

.form-control.doc-verify-status:focus,
.form-control.doc-remarks:focus {
    border-color: #3c8dbc;
    box-shadow: none;
}

.btn-group-vertical .btn {
    border-radius: 3px;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.dataTables_scrollBody {
    min-height: 370px;
    height: 100%;
}

/* Family Accordion Row Styles */
.family-accordion-row {
    background-color: #f9f9f9;
    padding: 0;
}

.family-accordion-row td {
    padding: 0 !important;
    background-color: #f9f9f9;
}

.family-accordion-content {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-top: 2px solid #ff9800;
}

.family-member-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.family-member-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.family-member-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
}

.family-member-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.family-member-header h4 i {
    margin-right: 10px;
}

.family-member-header .badge {
    background-color: rgba(255, 255, 255, 0.3);
    margin-left: 10px;
}

.family-member-body {
    padding: 20px;
    display: none;
    border-top: 1px solid #eee;
}

.family-member-body.active {
    display: block;
}

.family-info-table {
    margin-bottom: 15px;
}

.family-info-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.family-info-table td:first-child {
    font-weight: 600;
    width: 180px;
    background-color: #f8f9fa;
}

.document-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.document-buttons .btn {
    margin: 0;
}

.family-loading {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.family-loading i {
    font-size: 24px;
    margin-right: 10px;
}

.toggle-icon {
    float: right;
    transition: transform 0.3s ease;
}

.family-member-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.family-badge-icon {
    background-color: #ff9800;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
    margin-left: 5px;
}