.final-report-section {
    display: inline-block;
}

.final-report-subsection {
    margin-top: 1rem;
}

.final-report-items {
    display: flex;
}

.final-report--custom-label {
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

.final-report-sections-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.final-report-form-section {
    display: inline-block;
}

.final-report-form-section label {
    gap: 0;
    margin-right: 10px;
}

.final-report-form-group {
    margin-top: 1rem;
}

/* Styles for final report preview (Student's view) */

.form-preview-mode {
    opacity: 0.85;
    /*pointer-events: none;*/
    position: relative;
}

.form-preview-mode::before {
    content: "Vista previa";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #005fcc;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 1;
    opacity: 0.9;
}

/* Section 9 - Attachments */
.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between link and delete button */

    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d3d9e1;
    background-color: #f4f6fa;
    font-size: 14px;
    color: #001E54;

    min-height: 40px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-item:hover {
    border-color: #005fcc;
    box-shadow: 0 0 0 2px rgba(0, 92, 204, 0.1);
}

/* Style the filename link */
.file-item__link {
    color: #001E54;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* Adjust based on layout */
    padding: 0 4px;
}

.file-item__link:hover {
    text-decoration: underline;
    color: #005fcc;
}

.delete-button {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #dc3545;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.delete-button:hover {
    background: #ffebee;
    color: #b00000;
}

.final-report-preview-section {
    margin-top: 1rem;
    padding: 0 80px !important;
    margin-bottom: 0 !important;
}
