﻿/* Pure Dynamic - No Model Needed */
.resp-cell {
    max-width: 350px;
}

.resp-preview {
    cursor: pointer;
    padding: 0px 5px;
    background: #f8f9fa;
    /*border: 1px solid #e9ecef;*/
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .resp-preview:hover {
        background: #ffffff;
        border-color: #0d6efd;
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
    }

.resp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.resp-badge {
    background: #0d6efd;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
}

.resp-icon {
    color: #6c757d;
    font-size: 0.8rem;
}

.resp-preview-content {
    font-size: 0.85rem;
    color: #495057;
}

.resp-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0 2px 16px;
    position: relative;
}

    .resp-line::before {
        content: "•";
        position: absolute;
        left: 4px;
        color: #0d6efd;
    }

.resp-more {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #076985;
    text-align: right;
}

/* Modal - Pure CSS */
.resp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

    .resp-modal.show {
        display: block;
    }

.resp-modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 800px;
    top: 5%;
}

.resp-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.resp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.resp-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

    .resp-modal-close:hover {
        background: #e9ecef;
    }

.resp-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Dynamic content formatting */
.resp-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.resp-section {
    margin-bottom: 1.5rem;
}

.resp-section-title {
    font-weight: 600;
    color: #00677d;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.resp-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}

.resp-bullet {
    color: #00677d;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .resp-modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
}