/* SlcnAuditForm.css */

.slcn-audit-form { color: #372562; }

.audit-metadata {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: #f8f5ff;
    border-radius: 6px;
    border: 1px solid #C8DDD8;
}

.audit-header { margin-bottom: 1rem; }

.audit-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.audit-header-field label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #372562;
    display: block;
    margin-bottom: 0.25rem;
}

.audit-header-field input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #372562;
}

.audit-readonly-value {
    display: block;
    padding: 0.5rem 0.75rem;
    background: #F0F7F5;
    border-radius: 6px;
    font-size: 0.9rem;
}

.audit-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f8f5ff;
    border-radius: 6px;
    border: 1px solid #C8DDD8;
}

.audit-progress-bar {
    flex: 1;
    height: 8px;
    background: #C8DDD8;
    border-radius: 4px;
    overflow: hidden;
}

.audit-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ec5f59 0%, #D4605A 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.audit-progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #372562;
    white-space: nowrap;
}

.audit-section {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.audit-section-header {
    background: linear-gradient(135deg, #F0F7F5 0%, #e8dff0 100%);
    color: #372562;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.audit-section-header h3 {
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
    color: #372562;
}

.audit-collapse-arrow { font-size: 0.75rem; }

.audit-section-count {
    font-size: 0.8rem;
    color: #7c3aed;
}

.audit-section-content { padding: 1rem; }

.audit-key-questions {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f8f5ff;
    border-radius: 6px;
    border-left: 3px solid #ec5f59;
}

.audit-key-questions p {
    font-style: italic;
    color: #666;
    font-size: 0.85rem;
    margin: 0.2rem 0;
}

.audit-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.audit-items-table th {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 2px solid #e1e5e9;
}

.audit-items-table th.col-num { width: 5%; text-align: center; }
.audit-items-table th.col-statement { text-align: left; width: 55%; }
.audit-items-table th.col-ne { background: #f8d7da; color: #721c24; width: 13%; border-radius: 4px 4px 0 0; }
.audit-items-table th.col-dev { background: #fff3cd; color: #856404; width: 13%; border-radius: 4px 4px 0 0; }
.audit-items-table th.col-sec { background: #d4edda; color: #155724; width: 13%; border-radius: 4px 4px 0 0; }

.audit-items-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #372562;
    vertical-align: top;
}

.audit-items-table td.col-num { text-align: center; font-weight: 600; color: #372562; }
.audit-items-table td.col-radio { text-align: center; vertical-align: middle; }

.audit-items-table td input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #372562;
    cursor: pointer;
}

.audit-items-table tbody tr:hover { background: #f8f5ff; }

.audit-section-notes { margin-bottom: 0.75rem; }
.audit-section-notes label,
.audit-section-priorities label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #372562;
    display: block;
    margin-bottom: 0.3rem;
}

.audit-section-notes textarea,
.audit-general-notes textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #372562;
    resize: vertical;
}

.audit-section-priorities { margin-bottom: 0.5rem; }

.priority-fields { display: flex; flex-direction: column; gap: 0.4rem; }

.priority-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.priority-num { font-weight: 600; color: #372562; min-width: 1.5rem; }

.priority-row input {
    flex: 1;
    padding: 0.4rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #372562;
}

.audit-general-notes {
    margin: 1rem 0;
}

.audit-general-notes label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #372562;
    display: block;
    margin-bottom: 0.3rem;
}

.audit-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.audit-save-btn, .audit-pdf-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.audit-save-btn {
    background: linear-gradient(135deg, #ec5f59 0%, #D4605A 100%);
    color: white;
}

.audit-pdf-btn {
    background: #C8DDD8;
    color: #372562;
}

.audit-save-btn:hover, .audit-pdf-btn:hover { opacity: 0.9; }
.audit-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.audit-save-msg { font-size: 0.85rem; }

@media (max-width: 768px) {
    .audit-header-row { grid-template-columns: 1fr; }
}
