/* Deal Details Modal Styles - Shared for survey form views */

.deal-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.deal-details-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-details-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.deal-details-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100001;
}

.deal-details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.deal-details-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.deal-details-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.deal-details-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.deal-details-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.deal-details-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.deal-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    background: #fafafa;
}

.deal-section h3 {
    margin: -20px -20px 20px -20px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #0a2540;
    padding: 12px 20px;
    border-bottom: none;
}

.deal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.deal-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deal-info-item label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-info-item span {
    color: #333;
    font-size: 14px;
}

.deal-info-item a {
    color: #0073aa;
    text-decoration: none;
}

.deal-info-item a:hover {
    text-decoration: underline;
}

.markup-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.markup-image-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.markup-image-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
}

.status-badge.status-sent,
.status-badge.status-delivered {
    background-color: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.status-badge.status-completed {
    background-color: #4caf50;
    color: #fff;
}

.order-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.dashicons.spin {
    animation: spin 1s linear infinite;
}

/* Comments Section */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-header strong {
    color: #333;
    font-size: 14px;
}

.comment-date {
    color: #999;
    font-size: 12px;
}

.comment-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

