/* ============================================
   IMPORT WIZARD - Shared styles for Import
   Drive-offs & Import Payments pages
   ============================================ */

/* ─── Wizard Step Indicators ─────────────── */

.wizard-steps {
    display: flex;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.wizard-step.active {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.wizard-step.completed {
    background: rgba(34, 197, 94, 0.15);
    color: rgba(134, 239, 172, 0.8);
    cursor: pointer;
}

.wizard-step.completed:hover {
    background: rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    font-weight: 600;
    font-size: 0.8rem;
}

.wizard-step.active .step-number {
    background: rgba(59, 130, 246, 0.4);
}

.wizard-step.completed .step-number {
    background: rgba(34, 197, 94, 0.3);
}

/* Connector lines between steps */
.wizard-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.wizard-step.completed:not(:last-child)::after {
    background: rgba(34, 197, 94, 0.4);
}

/* ─── Summary Cards ──────────────────────── */

.summary-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
}

.summary-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* Color variants */
.summary-confident {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.summary-nonpolish {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
}

.summary-unrecognized {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.summary-doubtful {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
}

.summary-pendingauth {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.summary-invalidplate {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
}

.summary-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.summary-enrich {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}

.summary-payments {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.summary-review {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
}

.summary-skipped {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.summary-imported {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.summary-comments {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}

/* ─── Section Header ─────────────────────── */

.section-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

/* ─── Utilities ──────────────────────────── */

.bg-orange {
    background-color: #f97316 !important;
}

/* ─── File Upload Drop Zone ──────────────── */

.upload-drop-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    gap: 0.5rem;
}

.upload-drop-area:hover,
.upload-drop-area-hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}

.upload-drop-area .upload-icon {
    font-size: 2rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.25rem;
}

.upload-drop-area .upload-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.upload-drop-area .upload-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ─── Template Download Footer (below drop zone) ─── */

.upload-drop-area.with-template-footer {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.upload-template-footer {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 2px dashed rgba(255,255,255,0.15);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: rgba(255,255,255,0.03);
}

.upload-template-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #93c5fd;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}

.upload-template-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
    text-decoration: none;
}

.upload-template-link .oi {
    font-size: 0.95rem;
}

/* DxFileInput hides its own UI via ShowFileList/ShowSelectButton */

/* ─── Uploaded File List ─────────────────── */

.uploaded-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.uploaded-file-item .file-icon {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.uploaded-file-item .file-name {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uploaded-file-item .file-size {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

/* ─── Import Success Container ───────────── */

.import-success-container {
    text-align: center;
    padding: 2rem 1rem;
}

.import-success-container .success-icon {
    font-size: 3rem;
    color: #86efac;
    margin-bottom: 0.75rem;
}

.import-success-container .success-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #86efac;
    margin-bottom: 1.5rem;
}

.import-success-container .session-id {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-top: 1rem;
}

/* ─── Colored Tab Headers ──────────────── */

.import-tab {
    white-space: nowrap;
}

.import-tab-green  { color: #86efac; }
.import-tab-yellow { color: #fde047; }
.import-tab-orange { color: #fdba74; }
.import-tab-red    { color: #fca5a5; }
.import-tab-purple { color: #d8b4fe; }
.import-tab-indigo { color: #a5b4fc; }

/* Active tab: inherit white text from custom-tabs active styling */
.custom-tabs .dxbl-tabs-item.dxbl-active .import-tab,
.custom-tabs dxbl-tab-item.dxbl-active .import-tab {
    color: inherit !important;
}

/* ─── File Validation States ────────────── */

.uploaded-file-item.file-item-valid {
    border-left: 3px solid rgba(34, 197, 94, 0.6);
}

.uploaded-file-item.file-item-warning {
    border-left: 3px solid rgba(234, 179, 8, 0.7);
    background: rgba(234, 179, 8, 0.05);
}

.uploaded-file-item.file-item-error {
    border-left: 3px solid rgba(239, 68, 68, 0.7);
    background: rgba(239, 68, 68, 0.05);
}

.file-validation-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.file-validation-badge.badge-valid {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.file-validation-badge.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.file-validation-badge.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.validation-messages {
    padding: 4px 0 2px 2.1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.validation-msg {
    font-size: 0.78rem;
    line-height: 1.3;
}

.validation-msg-error {
    color: #fca5a5;
}

.validation-msg-warning {
    color: #fde047;
}

.validation-msg-info {
    color: rgba(255,255,255,0.45);
}

