/* REMESSAFBA - Interface v4.8 */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* Design System - CSS Variables */
:root {
    /* Colors */
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-secondary: #1f2f3d;
    --color-secondary-light: #32475c;
    --color-success: #2f9e44;
    --color-success-bg: #e6f5ea;
    --color-error: #d64545;
    --color-error-bg: #fde8ea;
    --color-warning: #f4b41b;
    --color-warning-bg: #fff4d6;
    --color-text: #1d2430;
    --color-text-muted: #5b6b7a;
    --color-border: #e1d6c6;
    --color-border-strong: #d2c2ad;
    --color-bg: #f6f1e6;
    --color-card: #ffffff;
    --color-surface-muted: #f9f5ee;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 6px 18px rgba(30, 36, 48, 0.08);
    --shadow-md: 0 14px 28px rgba(30, 36, 48, 0.12);
    --shadow-lg: 0 24px 42px rgba(30, 36, 48, 0.16);

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1100px 420px at 10% -10%, rgba(245, 158, 11, 0.25), transparent 60%),
        radial-gradient(900px 480px at 90% 0%, rgba(31, 47, 61, 0.2), transparent 60%),
        linear-gradient(180deg, #f7f4ed 0%, var(--color-bg) 45%, #fdfaf3 100%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Layout principal - side by side em telas grandes */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1200px) {
    .main-layout {
        grid-template-columns: minmax(400px, 500px) 1fr;
    }

    .main-layout .left-panel {
        position: sticky;
        top: 20px;
        align-self: start;
    }
}

/* Header - Compacto */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: 22px 28px;
    background: linear-gradient(130deg, var(--color-secondary) 0%, var(--color-secondary-light) 60%, #1a2633 100%);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.top-bar::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 70%);
    opacity: 0.8;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.top-bar h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.top-bar p {
    opacity: 0.75;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.meta-pill {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.meta-pill.outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Cards */
.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.card h2 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: none;
    color: var(--color-secondary);
    position: relative;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 48px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 999px;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    padding: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    min-width: 80px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.step.active .step-number {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.step.completed .step-number {
    background: var(--color-success);
    color: white;
    border-color: transparent;
}

.step.completed .step-number::after {
    content: "\2713";
}

.step-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--color-success);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--color-border);
    margin: 0 var(--spacing-sm);
    min-width: 40px;
    max-width: 60px;
    margin-bottom: 20px;
    border-radius: 2px;
}

.step-line.completed {
    background: var(--color-success);
}

/* Form Steps */
.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.btn-next,
.btn-back {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next {
    background: var(--color-primary);
    color: #1f1200;
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.25);
}

.btn-next:hover {
    background: var(--color-primary-dark);
}

.btn-back {
    background: var(--color-surface-muted);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
}

.btn-back:hover {
    background: #f1eadf;
}

/* Form */
.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.required {
    color: var(--color-error);
}

.form-row select,
.form-row input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row select:focus,
.form-row input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
    background: white;
}

.form-row input[type="text"].error {
    border-color: var(--color-error);
}

.form-row input[type="text"].valid {
    border-color: var(--color-success);
}

.form-row small,
.hint {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.hint strong {
    color: var(--color-text);
}

/* Validation Message */
.validation-message {
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
}

.validation-message.error {
    color: var(--color-error);
}

.validation-message.valid {
    color: var(--color-success);
}

/* Option Hints */
.option-hints {
    margin-top: 8px;
}

.option-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    padding: 8px 12px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

/* Tab Buttons (Mode Toggle) */
.tab-buttons {
    display: flex;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.tab-btn:hover {
    background: #efe8dc;
}

.tab-btn.active {
    background: var(--color-secondary);
    color: white;
}

/* File Input */
.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
}

.file-input-wrapper:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-muted);
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-label {
    flex: 1;
    font-size: 14px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-label.has-file {
    color: var(--color-text);
    font-weight: 500;
}

.file-btn {
    padding: 6px 14px;
    font-size: 13px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.file-btn:hover {
    background: var(--color-secondary-light);
}

/* Checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-note {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--color-warning-bg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-warning);
}

.checkbox-note small {
    color: #7a5a1b;
    line-height: 1.6;
}

/* Tooltip */
.tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    font-size: 11px;
    cursor: help;
}

/* Confirmation Summary (Step 3) */
.confirmation-summary {
    background: linear-gradient(135deg, #fff4d6 0%, #ffe8b8 100%);
    border: 2px dashed var(--color-warning);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.confirm-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-label {
    font-size: 13px;
    color: #7a5a1b;
    font-weight: 500;
}

.confirm-value {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 600;
    background: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-warning);
}

.confirm-store .confirm-value {
    background: var(--color-primary);
    color: white;
    font-size: 15px;
    padding: 6px 16px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Output Summary */
.output-summary {
    background: var(--color-surface-muted);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--color-border);
}

.output-summary h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.output-list {
    list-style: none;
}

.output-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-list .check {
    color: var(--color-success);
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1f1200;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: var(--color-success);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
}

.btn-success:hover {
    background: #27893d;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.btn-secondary:hover {
    background: #efe8dc;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.progress-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.progress-step.active .progress-step-icon {
    background: var(--color-secondary);
    color: white;
    animation: pulse 1.5s infinite;
}

.progress-step.completed .progress-step-icon {
    background: var(--color-success);
    color: white;
}

.progress-step.completed .progress-step-icon::after {
    content: "\2713";
}

.progress-step-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: var(--color-secondary);
    font-weight: 600;
}

.progress-step.completed .progress-step-label {
    color: var(--color-success);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

#progress-message {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    text-align: center;
}

/* Error Banner */
.error-banner {
    background: linear-gradient(135deg, var(--color-error-bg) 0%, #f6cfd3 100%);
    border: 2px solid var(--color-error);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.error-icon {
    width: 40px;
    height: 40px;
    background: var(--color-error);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.error-content {
    flex: 1;
}

.error-content strong {
    color: #7b1c24;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.error-content p {
    color: #7b1c24;
    font-size: 14px;
    margin: 0;
    word-break: break-word;
}

.btn-copy-log {
    background: white;
    border: 1px solid var(--color-error);
    color: var(--color-error);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    align-self: flex-start;
}

.btn-copy-log:hover {
    background: var(--color-error);
    color: white;
}

.btn-copy-log.copied {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

/* Result Summary */
.result-summary {
    background: var(--color-success-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(47, 158, 68, 0.2);
}

.result-summary h4 {
    font-size: 14px;
    color: #1b5e30;
    margin-bottom: 12px;
    text-align: center;
}

.summary-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #1b5e30;
}

.summary-label {
    font-size: 12px;
    color: #1b5e30;
    text-transform: uppercase;
}

/* Log */
.log-box {
    background: #1e1e1e;
    border-radius: var(--radius-md);
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
    border: 1px solid #111821;
}

#log {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #d4d4d4;
}

.log-entry {
    margin-bottom: 2px;
}

.log-entry.success { color: #4ec9b0; }
.log-entry.warning { color: #dcdcaa; }
.log-entry.error { color: #f14c4c; }

#result-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

/* History Header */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.history-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.history-header h2::after {
    display: none;
}

.history-filters {
    display: flex;
    gap: 4px;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-muted);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-display);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.filter-btn:hover {
    background: #f3ede3;
}

.filter-btn.active {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.filter-count {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    background: rgba(0,0,0,0.1);
    border-radius: 9px;
}

.filter-btn.active .filter-count {
    background: rgba(255,255,255,0.2);
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--color-surface-muted);
}

/* Larguras fixas das colunas */
.col-date { width: 140px; }
.col-store { width: 90px; }
.col-input { width: auto; }
.col-remessa { width: 150px; }
.col-status { width: 90px; }
.col-actions { width: 140px; white-space: nowrap; }

tbody tr:hover {
    background: var(--color-surface-muted);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.6);
}

tbody tr.hidden {
    display: none;
}

.center {
    text-align: center;
    color: var(--color-text-muted);
    padding: 30px;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-csv {
    background: #e7f1ff;
    color: #1d4f90;
}

.badge-api {
    background: #e6f5ea;
    color: #257a3f;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}

.status-pending {
    background: var(--color-warning-bg);
    color: #7a5a1b;
}

.status-processing {
    background: #e3ecff;
    color: #2c4c86;
}

.status-completed {
    background: var(--color-success-bg);
    color: #1b5e30;
}

.status-failed {
    background: var(--color-error-bg);
    color: #7b1c24;
}

/* Action Links */
.action-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 13px;
    margin-right: 10px;
    font-weight: 600;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link.delete {
    color: var(--color-error);
}

.action-link.reprocess {
    color: var(--color-success);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.modal-box h3 {
    margin-bottom: 10px;
}

.modal-box p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.modal-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

/* Shipment Items */
.shipment-item {
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.shipment-item:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-muted);
}

.shipment-item.recommended {
    border-color: var(--color-success);
    background: var(--color-success-bg);
}

.shipment-item.recommended::before {
    content: "Recomendado";
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    background: var(--color-success);
    color: white;
    border-radius: 3px;
    margin-bottom: 8px;
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.shipment-name {
    font-weight: 600;
    color: var(--color-text);
}

.shipment-status {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
}

.shipment-status.ready {
    background: var(--color-success-bg);
    color: #1b5e30;
}

.shipment-status.working {
    background: #e3ecff;
    color: #2c4c86;
}

.shipment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.shipment-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shipment-detail strong {
    color: var(--color-text);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .top-bar h1 {
        font-size: 24px;
    }

    .brand-meta {
        justify-content: flex-start;
    }

    .card {
        padding: 16px;
    }

    .stepper {
        padding: 0;
    }

    .step-line {
        max-width: 40px;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .history-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .history-filters {
        flex-wrap: wrap;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .progress-step {
        flex: 0 0 auto;
        min-width: 50px;
    }

    .summary-grid {
        gap: 20px;
    }

    #result-actions {
        flex-direction: column;
    }

    th, td {
        padding: 8px;
        font-size: 13px;
    }
}
