/* ==================== SHIFT RECONCILIATION IMPROVEMENTS ==================== */

/* Reconciliation Status Banner */
.recon-status-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.recon-status-banner.verified {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #13ec49;
}

.recon-status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 900;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.recon-status-banner.verified .recon-status-header {
    color: #13ec49;
}

.recon-status-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #78350f;
    margin-bottom: 0.25rem;
}

.recon-status-banner.verified .recon-status-detail {
    color: #13ec49;
}

/* Count Summary */
.count-summary {
    background: white;
    dark: rgba(255, 255, 255, 0.05);
    border: 2px solid #e2e8f0;
    dark:border: 2px solid #475569;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.count-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .count-summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.count-summary-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    dark: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.count-summary-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    dark: #f1f5f9;
    margin-bottom: 0.25rem;
}

.count-summary-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.count-summary-item.ok .count-summary-value {
    color: #13ec49;
}

.count-summary-item.sour .count-summary-value {
    color: #f59e0b;
}

.count-summary-item.rejected .count-summary-value {
    color: #ef4444;
}

/* Unprocessed Alert */
.unprocessed-alert {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.unprocessed-alert-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 900;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

/* Mass Balance Check */
.mass-balance {
    background: white;
    dark: rgba(255, 255, 255, 0.05);
    border: 2px solid #e2e8f0;
    dark:border: 2px solid #475569;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.mass-balance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 900;
    color: #475569;
    margin-bottom: 1rem;
}

.mass-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mass-balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8fafc;
    dark: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.mass-balance-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.mass-balance-value {
    font-size: 0.75rem;
    font-weight: 900;
    color: #0f172a;
    dark: #f1f5f9;
}

.mass-balance-item.check .mass-balance-value {
    font-size: 1rem;
}

.mass-balance-item.check.ok .mass-balance-value {
    color: #13ec49;
}

.mass-balance-item.check.error .mass-balance-value {
    color: #ef4444;
}

/* Sour Classification */
.sour-classification {
    background: #fef3c7;
    dark: rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sour-classification-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 900;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.sour-classification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.sour-classification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    dark: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

/* Operator Declaration */
.operator-declaration {
    background: white;
    dark: rgba(255, 255, 255, 0.05);
    border: 2px solid #e2e8f0;
    dark:border: 2px solid #475569;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.declaration-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.declaration-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.declaration-checkbox label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.declaration-signature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    dark: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.declaration-signature-item {
    text-align: center;
}

.declaration-signature-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.declaration-signature-value {
    font-size: 0.75rem;
    font-weight: 900;
    color: #0f172a;
    dark: #f1f5f9;
    font-family: 'Courier New', monospace;
}

/* Dispatch Lock */
.dispatch-lock {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #13ec49;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dispatch-lock-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 900;
    color: #13ec49;
    margin-bottom: 0.5rem;
}

.dispatch-lock-message {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Sync Indicator */
.sync-indicator-improved {
    background: white;
    dark: rgba(255, 255, 255, 0.05);
    border: 2px solid #e2e8f0;
    dark:border: 2px solid #475569;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sync-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    dark:border: 1px solid #475569;
}

.sync-status-row:last-child {
    border-bottom: none;
}

.sync-status-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.sync-status-value {
    font-size: 0.75rem;
    font-weight: 900;
    color: #0f172a;
    dark: #f1f5f9;
}

.sync-status-value.pending {
    color: #f59e0b;
}

.sync-status-value.ok {
    color: #13ec49;
}

/* Shift Timeline */
.shift-timeline {
    background: white;
    dark: rgba(255, 255, 255, 0.05);
    border: 2px solid #e2e8f0;
    dark:border: 2px solid #475569;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.shift-timeline-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 900;
    color: #475569;
    margin-bottom: 1rem;
}

.shift-timeline-items {
    position: relative;
    padding-left: 1.5rem;
}

.shift-timeline-items::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    dark: #475569;
}

.shift-timeline-item {
    position: relative;
    padding: 0.5rem 0;
    padding-left: 1rem;
}

.shift-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #13ec49;
}

.shift-timeline-time {
    font-size: 0.625rem;
    font-weight: 900;
    color: #13ec49;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
}

.shift-timeline-event {
    font-size: 0.75rem;
    color: #475569;
    dark: #94a3b8;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .recon-status-banner {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: #f59e0b;
    }
    
    .recon-status-header {
        color: #fcd34d;
    }
    
    .recon-status-detail {
        color: #fcd34d;
    }
    
    .unprocessed-alert {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: #ef4444;
    }
    
    .unprocessed-alert-header {
        color: #fca5a5;
    }
    
    .sour-classification {
        background: rgba(245, 158, 11, 0.1);
        border-color: #f59e0b;
    }
    
    .sour-classification-header {
        color: #fcd34d;
    }
}
