.application-details-container {
    display: flex;
    min-height: calc(100vh - 120px); /* Account for header and footer */
    background-color: #f8f9fa;
}

/* Left Navigation Menu */
.left-menu {
    width: 280px;
    background-color: #003e52; /* Same as header */
    padding: 0;
    flex-shrink: 0;
    margin: 2px 0; /* 2px top and bottom margin */
}

.left-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid #004d7a;
}

.left-menu-title {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
}

.left-menu-nav {
    padding: 1rem 0;
}

.left-menu-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

    .left-menu-item:hover {
        background-color: #004d7a;
        color: #FFFFFF;
        text-decoration: none;
        border-left-color: #00b7bd;
    }

    .left-menu-item.active {
        background-color: #004d7a;
        color: #FFFFFF;
        border-left-color: #00b7bd;
        font-weight: 700;
    }

.left-menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.left-menu-item.active .left-menu-icon,
.left-menu-item:hover .left-menu-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.left-menu-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 2px;
    background-color: #FFFFFF;
    overflow: hidden;
    position: relative; /* For absolute positioning of bottom navigation */
}

/* Top Sub Banner */
.sub-banner {
    background-color: #003e52; /* Same as header */
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 !important;
}

.activity-id {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
}

.sub-banner-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: #FFFFFF;
}

.status-value {
    display: flex;
    align-items: center;
}



/* Content Sections */
.content-section {
    display: none;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

    .content-section.active {
        display: block;
    }



/* Bottom Navigation */
.bottom-navigation {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}



/* Question Section Styles */
.question-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}



.question-container {
    margin-top: 1rem;
}

.question-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

    .question-row:hover {
        border-color: #003252;
        box-shadow: 0 2px 8px rgba(0, 50, 82, 0.1);
    }

.question-text {
    flex: 1;
    margin-right: 1rem;
}

    .question-text label {
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
        display: block;
    }

.question-answer {
    flex: 1;
    min-width: 200px;
}

.required-field {
    color: #dc3545;
    font-weight: 700;
}

/* Conditional Questions */
.conditional-question {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

    .conditional-question.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Form Controls */
.form-control, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus, .form-select:focus {
        border-color: #003252;
        outline: 0;
        box-shadow: none !important;
    }

    .form-control::placeholder {
        color: #6c757d;
        opacity: 0.7;
        font-family: var(--font-body);
        font-size: 1rem;
    }

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    margin: 0;
}

.form-check-label {
    margin: 0;
    font-weight: 500;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .application-details-container {
        flex-direction: column;
    }

    .left-menu {
        width: 100%;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .sub-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }


}

/* Site Overview Section Styles */
.site-overview-grid {
    display: flex;
    gap: 2rem;
}

.site-details-column {
    flex: 0 0 60%;
    min-width: 0;
}

.site-actions-column {
    flex: 0 0 40%;
    min-width: 0;
}

.overview-section {
    background-color: #FFFFFF;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.overview-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #003e52;
    margin-bottom: 1rem;
}

.overview-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overview-field {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.overview-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: #54565B;
    width: 100px;
    flex-shrink: 0;
}

.overview-value {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #003e52;
    flex: 1;
}

.overview-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e2e6;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background-color: #FFFFFF;
    transition: border-color 0.2s ease;
}

    .overview-input:focus {
        outline: none;
        border-color: #00b7bd;
        box-shadow: 0 0 0 2px rgba(0, 183, 189, 0.1);
    }

.map-container-overview {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.map-image-overview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}

.map-placeholder i {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.map-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

#google-map {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.read-only-notice {
    margin-top: 1rem;
}

/* Responsive adjustments for Site Overview */
@media (max-width: 768px) {
    .site-overview-grid {
        flex-direction: column;
    }

    .overview-field {
        flex-direction: column;
        gap: 0.5rem;
    }

    .overview-label {
        width: 100%;
    }
}

/* Document Upload Styles */
.section-title-container {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

    .section-title-container .subsection-header {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.5rem;
        color: #003e52;
        margin-bottom: 1rem;
    }

    .section-title-container .section-description {
        font-family: var(--font-body);
        font-size: 1rem;
        color: #555;
        margin: 0;
    }

.upload-document-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.upload-document-layout {
    display: flex;
    gap: 2rem;
}

.upload-area-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border: 1px dashed #003252;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .upload-area-container:hover {
        border-color: #00b7bd;
        background-color: #e9ecef;
    }

.upload-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #003252;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

    .upload-area:hover {
        border-color: #0099a0;
        background-color: #e9ecef;
    }

.upload-icon {
    font-size: 4rem;
    color: #003252;
    margin-bottom: 1rem;
}

.upload-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
}

.upload-limit {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.file-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    margin-left: 2rem;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .file-info i {
        font-size: 1.5rem;
        color: #00b7bd;
    }

    .file-info span {
        font-family: var(--font-body);
        font-size: 0.9rem;
        color: #333;
    }

.document-requirements {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
}

    .document-requirements h4 {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.95rem;
        color: #003e52;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .document-requirements .requirements-intro {
        font-family: var(--font-body);
        font-size: 0.875rem;
        color: #555;
        margin-bottom: 0.75rem;
        margin-top: 0;
        text-align: left;
    }

    .document-requirements ul {
        list-style: disc;
        padding-left: 1.5rem;
        margin: 0;
        text-align: left;
    }

    .document-requirements li {
        font-family: var(--font-body);
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 0.5rem;
        text-align: left;
    }

.document-details-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 0.9rem;
        color: #333;
        margin-bottom: 0.5rem;
    }

    .form-group .form-select,
    .form-group .form-control {
        padding: 0.75rem 1rem;
        border: 1px solid #e2e2e6;
        border-radius: 4px;
        font-family: var(--font-body);
        font-size: 0.9rem;
        background-color: #FFFFFF;
        transition: border-color 0.2s ease;
    }

        .form-group .form-select:focus,
        .form-group .form-control:focus {
            outline: none;
            border-color: #00b7bd;
        }

.document-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.uploaded-documents-section {
    margin-top: 2rem;
}



.documents-list {
    display: flex;
    flex-direction: column;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e2e6;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

    .document-item:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-color: #00b7bd;
    }

    .document-item .document-info {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        flex: 1;
    }

.document-icon {
    font-size: 2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.document-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.document-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: #003e52;
    word-break: break-word;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

    .document-meta .file-size {
        background-color: #e9ecef;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-weight: 500;
    }

    .document-meta .upload-time {
        color: #00b7bd;
        font-weight: 500;
    }

    .document-meta .uploaded-by {
        font-style: italic;
    }

.no-documents-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

    .no-documents-message i {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
    }

    .no-documents-message p {
        font-size: 1.1rem;
        margin: 0;
        font-style: italic;
    }

.document-item .document-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}



/* Review & Submit Section Styles */
.review-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.review-container-box {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.review-container-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .review-container-title h3 {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.125rem;
        color: #003e52;
        margin: 0;
    }

.completion-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #00b7bd;
}

    .completion-indicator i {
        font-size: 1.25rem;
    }

    .completion-indicator.complete {
        color: #28a745; /* Green for complete */
    }

    .completion-indicator.incomplete {
        color: #dc3545; /* Red for incomplete */
    }

.review-content {
    padding-left: 1.5rem; /* Align with review-container-header */
}

.review-summary {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
}

    .review-summary strong {
        font-weight: 700;
        color: #003e52;
    }

.text-warning {
    color: #ffc107; /* Yellow for warnings */
}

.submission-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.submission-notice {
    margin-top: 1.5rem;
}

/* Questions Review Styles */
.questions-review {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-review-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}

.question-text {
    font-weight: 600;
    color: #003e52;
    margin-bottom: 0.5rem;
}

.answer-text {
    color: #555;
}

.answer-value {
    font-weight: 500;
    color: #28a745;
}

    .answer-value.text-muted {
        color: #6c757d;
        font-style: italic;
    }

/* Documents Review Styles */
.documents-review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.document-icon {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}

.document-details {
    flex: 1;
}

.document-name {
    font-weight: 600;
    color: #003e52;
    margin-bottom: 0.25rem;
}

.document-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

/* Document Item Row Format Styles */
.document-item-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 2fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

    .document-item-row:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        border-color: #00b7bd;
    }

.doc-row-field {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #333;
    word-break: break-word;
}

.doc-filename {
    font-weight: 600;
    color: #003e52;
}

.doc-type {
    color: #555;
}

.doc-upload-date {
    color: #666;
    font-weight: 500;
}

.doc-expiry {
    color: #666;
    font-weight: 500;
}

.doc-notes {
    color: #666;
    font-size: 0.85rem;
}

.doc-row-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .document-item-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .doc-row-field::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
    }
    
    .doc-row-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* Confirmation Checkbox Styles */
.confirmation-checkbox {
    padding: 1rem 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.form-check-label {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #00b7bd;
    border-color: #00b7bd;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 183, 189, 0.25);
}

/* Acceptance Section Styles */
.acceptance-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.application-summary {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

    .summary-header h3 {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.25rem;
        color: #003e52;
        margin: 0;
    }


.summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

    .summary-item label {
        font-family: var(--font-body);
        font-size: 0.875rem;
        color: #54565B;
        margin-bottom: 0.25rem;
    }

    .summary-item span {
        font-family: var(--font-body);
        font-size: 1rem;
        color: #003e52;
    }

.review-decision {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .review-decision h3 {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.25rem;
        color: #003e52;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e9ecef;
    }

.decision-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.decision-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.no-permission {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .no-permission .alert {
        margin-bottom: 1rem;
    }

.application-history {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

    .application-history h3 {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.25rem;
        color: #003e52;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e9ecef;
    }

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-event {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: #e9ecef;
    border-radius: 6px;
}

    .history-event .event-icon {
        font-size: 1.5rem;
        color: #00b7bd;
    }

    .history-event .event-info {
        display: flex;
        flex-direction: column;
    }

        .history-event .event-info .event-time {
            font-family: var(--font-body);
            font-size: 0.875rem;
            color: #54565B;
        }

        .history-event .event-info .event-action {
            font-family: var(--font-body);
            font-size: 0.9rem;
            color: #333;
            font-weight: 600;
        }

            .history-event .event-info .event-action.approved {
                color: #28a745; /* Green for approved */
            }

            .history-event .event-info .event-action.rejected {
                color: #dc3545; /* Red for rejected */
            }

            .history-event .event-info .event-action.submitted {
                color: #00b7bd; /* Blue for submitted */
            }

            .history-event .event-info .event-action.draft {
                color: #6c757d; /* Gray for draft */
            }

/* New styles for Submission History */
.history-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.current-status-overview {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

    .status-header h3 {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.25rem;
        color: #003e52;
        margin: 0;
    }

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-info {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #333;
}

.workflow-timeline {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.timeline-step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

    .timeline-step::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #e9ecef;
        z-index: -1;
    }

    .timeline-step.active::before {
        background-color: #00b7bd;
    }

    .timeline-step.completed::before {
        background-color: #28a745;
    }

    .timeline-step.pending::before {
        background-color: #6c757d;
    }

.step-icon {
    width: 40px;
    height: 40px;
    background-color: #00b7bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

    .step-content h4 {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1rem;
        color: #003e52;
        margin-bottom: 0.25rem;
    }

    .step-content p {
        font-family: var(--font-body);
        font-size: 0.875rem;
        color: #555;
        margin-bottom: 0.25rem;
    }

.step-date {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #666;
}

.detailed-history {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #FFFFFF;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
}

    .history-item .event-icon {
        font-size: 1.25rem;
        color: #00b7bd;
    }

    .history-item .event-info {
        display: flex;
        flex-direction: column;
    }

        .history-item .event-info .event-time {
            font-family: var(--font-body);
            font-size: 0.875rem;
            color: #54565B;
        }

        .history-item .event-info .event-action {
            font-family: var(--font-body);
            font-size: 0.9rem;
            color: #333;
            font-weight: 600;
        }

            .history-item .event-info .event-action.approved {
                color: #28a745; /* Green for approved */
            }

            .history-item .event-info .event-action.rejected {
                color: #dc3545; /* Red for rejected */
            }

            .history-item .event-info .event-action.submitted {
                color: #00b7bd; /* Blue for submitted */
            }

            .history-item .event-info .event-action.draft {
                color: #6c757d; /* Gray for draft */
            }

        .history-item .event-info .event-comments {
            font-family: var(--font-body);
            font-size: 0.875rem;
            color: #555;
            margin-top: 0.25rem;
        }

.history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Modal Styles for Asbestos Survey */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #003e52;
    color: #FFFFFF;
    border-bottom: 1px solid #004d7a;
    border-radius: 8px 8px 0 0;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color:#FFFFFF;
}

.modal-body {
    padding: 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
}

    .modal-body p {
        margin-bottom: 1rem;
    }

    .modal-body strong {
        color: #003e52;
        font-weight: 700;
    }

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}



/* Unsaved Changes Modal */
#unsavedChangesModal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#unsavedChangesModal .modal-header {
    background-color: #003252;
    border-bottom: 1px solid #003252;
    border-radius: 8px 8px 0 0;
}

#unsavedChangesModal .modal-title {
    color: #ffffff;
    font-weight: 600;
}

#unsavedChangesModal .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    color: #495057;
}

#unsavedChangesModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Toast Modal - Same format as Unsaved Changes Modal */
#toastModal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#toastModal .modal-header {
    background-color: #003252;
    border-bottom: 1px solid #003252;
    border-radius: 8px 8px 0 0;
}

#toastModal .modal-title {
    color: #ffffff;
    font-weight: 600;
}

#toastModal .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    color: #495057;
}

#toastModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Confirmation Modal - Same format as Unsaved Changes Modal */
#confirmationModal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#confirmationModal .modal-header {
    background-color: #003252;
    border-bottom: 1px solid #003252;
    border-radius: 8px 8px 0 0;
}

#confirmationModal .modal-title {
    color: #ffffff;
    font-weight: 600;
}

#confirmationModal .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    color: #495057;
}

#confirmationModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Conditional Question Styling */
.conditional-question {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.conditional-question.show {
    opacity: 1;
    transform: translateY(0);
}

/*.conditionally-required {
    border-left: 3px solid #00b7bd !important;
    background-color: #f8f9fa;
}

.conditionally-required:focus {
    border-color: #00b7bd !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 183, 189, 0.25) !important;
}*/

.required-field {
    color: #dc3545;
    font-weight: bold;
}

/* Asbestos Management Section Styling */
.asbestos-management-section {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.asbestos-management-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* All question dropdowns use the standard form-select styling for consistency */

/* Question Row Animation */
.question-row {
    transition: all 0.3s ease;
}

.question-row.show {
    opacity: 1;
    transform: translateY(0);
}

/* Form Validation Styling for Conditional Questions - Removed to ensure consistent border styling */

/* Review Section Styling */
.review-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-section-title {
    color: #003252;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00b7bd;
}

.question-review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.question-review-item:last-child {
    border-bottom: none;
}

    .question-review-item .question-text {
        flex: 1;
        margin-right: 1rem;
        margin-left: 1rem;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 500;
        color: #495057;
    }

    .question-review-item .answer-text {
        flex: 1;
        margin-right: 1rem;
        text-align: right;
        font-family: var(--font-body);
        font-size: 1rem;
    }

.answer-value {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: #003252;
}

.answer-value.text-muted {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #6c757d;
    font-style: italic;
}

/* Review Decision Section Styling */
.submission-date-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.submission-date-display {
    font-family: var(--font-body);
    font-size: 1rem;
}

.review-comments-section {
    background-color: #f8f9fa;
    border: 1px solid #e2e2e6;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.rejection-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Read-only mode styling */
.read-only-banner {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.read-only-banner i {
    font-size: 1.1em;
}

.readonly-field {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.readonly-field:empty::before {
    content: "Not specified";
    color: #adb5bd;
    font-style: italic;
}

/* Disable form interactions in read-only mode */
.read-only-mode input,
.read-only-mode select,
.read-only-mode textarea {
    pointer-events: none;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

/* Style for disabled upload area */
.read-only-mode .upload-area {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

.read-only-mode .upload-area:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Validation Error Styling */
.validation-error {
    border-left: 4px solid #dc3545 !important;
    background-color: #f8d7da !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.validation-error .form-control,
.validation-error .form-select {
    border-color: #dc3545 !important;
}

/* Documents List Table Structure */
.uploaded-documents-section {
    margin-top: 2rem;
}

.documents-list-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.5fr 2fr auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--cornerstone-primary);
    color: #FFFFFF !important;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 4px 4px 0 0;
    align-items: center;
    box-sizing: border-box;
}

.documents-list-header > div {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-align: left;
}

.documents-list-header > .doc-row-actions {
    text-align: right;
}

.documents-list {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    min-height: 100px;
}

.document-item-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.5fr 2fr auto;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.document-item-row:last-child {
    border-bottom: none;
}

.document-item-row:hover {
    background-color: #f8f9fa;
}

.doc-row-field {
    font-family: var(--font-body);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-filename {
    font-weight: 600;
    color: var(--cornerstone-primary);
}

.doc-type {
    color: var(--cornerstone-text);
}

.doc-upload-date {
    color: var(--cornerstone-text);
}

.doc-expiry {
    color: var(--cornerstone-text);
}

.doc-notes {
    color: var(--cornerstone-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-row-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.no-documents-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-documents-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.no-documents-message p {
    margin: 0;
    font-size: 1rem;
}

/* Documents Table Container Styles */
.documents-table-container {
    margin-top: 1rem;
}

.documents-table-container .table {
    border: 1px solid #dee2e6;
    border-collapse: separate;
    border-spacing: 0;
}

.documents-table-container .table thead th {
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    vertical-align: top;
}

.documents-table-container .table thead th:last-child {
    border-right: none;
    width: 1%;
    white-space: nowrap;
}

.documents-table-container .table tbody td {
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.documents-table-container .table tbody td:last-child {
    border-right: none;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    width: 1%;
}

.documents-table-container .table tbody tr:last-child td {
    border-bottom: none;
}

.documents-table-container .table tbody tr:hover {
    background-color: #f8f9fa;
}

.documents-table-container .table tbody td:last-child .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin: 0 0.25rem;
    padding: 0.375rem 0.75rem;
}

.documents-table-container .table tbody td:last-child .btn:first-child {
    margin-left: 0;
}

.documents-table-container .table tbody td:last-child .btn:last-child {
    margin-right: 0;
}

.documents-table-container .table tbody td:last-child .btn i {
    margin: 0;
}

/* Notes column word-wrap styles */
.documents-table-container .table thead th:nth-child(5),
.documents-table-container .table tbody td:nth-child(5) {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 300px;
    min-width: 150px;
}

/* Notes column word-wrap for review section tables */
.documents-table-wrapper .table thead th:nth-child(5),
.documents-table-wrapper .table tbody td:nth-child(5) {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 300px;
    min-width: 150px;
}


