/* ExtranetUploads.css - Module-specific styles */
/* SPACING CONTRACT: Internal styling only, no external margins */

/* ============================================
   RESERVATION HEADER (in expandable list)
   ============================================ */

.reservation-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.reservation-guest-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 120px;
    max-width: 200px;
}

.reservation-dates {
    color: var(--text-muted);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.reservation-nights {
    color: var(--text-muted);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.reservation-conf-number {
    color: var(--text-muted);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.status-message {
    color: var(--text-muted);
    font-size: var(--text-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* ============================================
   RESERVATION DETAILS (expanded view)
   ============================================ */

.reservation-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

@media (max-width: 600px) {
    .reservation-details-grid {
        grid-template-columns: 1fr;
    }
}

.reservation-details-section {
    padding: var(--space-3);
    background: var(--bg-panel);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.reservation-details-title {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
    padding-bottom: var(--space-2);
    border-bottom: var(--border-width-1) solid var(--border-subtle);
}

.reservation-details-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--text-body);
}

.reservation-details-content strong {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   NOTES - Uses Callout molecule
   ============================================ */

.reservation-requests-list {
    margin: 0;
    padding-left: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.reservation-requests-list li::marker {
    color: var(--text-muted);
}

.reservation-arrival {
    display: inline-flex;
    align-items: center;
    gap: var(--space-0_5);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.reservation-arrival .icon {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
}

/* ============================================
   FACILITIES - Uses Badge atom with pill variant
   ============================================ */

.reservation-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: var(--space-2) 0;
}

/* ============================================
   FLIGHTS
   ============================================ */

.reservation-flights {
    display: flex;
    flex-direction: column;
    gap: var(--space-0_5);
    padding: var(--space-2) 0;
    font-size: var(--text-xs);
    color: var(--text-body);
    border-top: var(--border-width-1) solid var(--border-subtle);
}

.flight-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-family-mono);
}

.flight-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: 500;
    color: var(--text-muted);
}

.flight-label .icon {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
}

/* ============================================
   SOURCE INFO (Tour Operator, Agent)
   ============================================ */

.reservation-source {
    padding-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
    border-top: var(--border-width-1) solid var(--border-subtle);
}

/* ============================================
   DROP ZONE TARGET (for drag-drop)
   ============================================ */

.drop-zone-target {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-width-2) dashed var(--border-default);
    border-radius: var(--border-radius-lg);
    transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone-target.drag-over {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}

/* ============================================
   UNMAPPED CODES MODAL
   ============================================ */

.unmapped-codes-intro {
    color: var(--text-body);
}

.unmapped-codes-intro p {
    margin: 0;
}

.unmapped-codes-container {
    border: var(--border-width-1) solid var(--border-default);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.unmapped-codes-row:last-child {
    border-bottom: none;
}

.unmapped-codes-type {
    font-weight: 500;
    color: var(--text-primary);
}

.unmapped-codes-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.unmapped-codes-list {
    font-size: var(--text-sm);
    color: var(--text-body);
    font-family: var(--font-mono);
    word-break: break-all;
}

.unmapped-codes-warning {
    padding: var(--space-3);
    background: var(--color-error-light);
    border-left: var(--border-width-4) solid var(--color-error);
    border-radius: var(--border-radius-md);
    font-size: var(--text-sm);
    color: var(--text-body);
}

.unmapped-codes-warning strong {
    color: var(--color-error);
}

/* ============================================
   SUBMISSION ERRORS MODAL
   ============================================ */

.submission-errors-intro {
    color: var(--text-body);
}

.submission-errors-intro p {
    margin: 0;
}

.submission-errors-container {
    border: var(--border-width-1) solid var(--border-default);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.submission-error-row:last-child {
    border-bottom: none;
}

.submission-error-row:nth-child(odd) {
    background: var(--bg-surface);
}

.submission-error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submission-error-guest {
    font-weight: 500;
    color: var(--text-primary);
}

.submission-error-ref {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.submission-error-message {}

.submission-error-type {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-error);
    background: var(--color-error-light);
    border-radius: var(--border-radius-sm);
}

/* Guidance section uses Callout molecule */

.submission-errors-footer {
    padding: var(--space-3);
    background: var(--bg-panel);
    border-radius: var(--border-radius-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.submission-errors-footer p {
    margin: 0;
}

/* ============================================
   FILE UPLOAD ZONE ENHANCEMENTS
   ============================================ */

.file-upload-zone {
    cursor: pointer;
}

.file-upload-zone:hover {
    border-color: var(--color-primary);
}
