﻿/* ============================================================
   importfile-invoice.css  v2
   ImportFile page — Enterprise · High-contrast · Production
   Revised based on live UI review of 19-item invoice
   ============================================================ */

:root {
    --imf-bg: #f0f2f5;
    --imf-surface: #ffffff;
    --imf-surface-2: #f8f9fb;
    --imf-surface-3: #f3f4f6;
    --imf-border: #d0d5dd;
    --imf-border-light: #e4e7ec;
    --imf-text-primary: #0d1117;
    --imf-text-secondary: #344054;
    --imf-text-muted: #667085;
    --imf-text-xmuted: #98a2b3;
    --imf-blue: #1d4ed8;
    --imf-blue-hover: #1e40af;
    --imf-blue-light: #eff6ff;
    --imf-blue-border: #bfdbfe;
    --imf-green: #15803d;
    --imf-green-light: #f0fdf4;
    --imf-green-border: #bbf7d0;
    --imf-amber: #92400e;
    --imf-amber-bg: #fffbeb;
    --imf-amber-border: #fcd34d;
    --imf-amber-mid: #f59e0b;
    --imf-red: #991b1b;
    --imf-red-light: #fef2f2;
    --imf-red-border: #fecaca;
    --imf-red-mid: #ef4444;
    --imf-radius-sm: 6px;
    --imf-radius: 10px;
    --imf-radius-lg: 12px;
    --imf-shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --imf-shadow-lg: 0 16px 40px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.06);
    --imf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Page ───────────────────────────────────────────────────── */
.imf-page {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 7rem;
    font-family: var(--imf-font);
    color: var(--imf-text-primary);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.imf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.imf-topbar__title {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--imf-text-primary);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.imf-topbar__sub {
    font-size: 0.9rem;
    color: var(--imf-text-muted);
    margin: 1rem 0 0;
    font-weight: 400;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.imf-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: var(--imf-radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.84rem;
    font-weight: 500;
    border: 1px solid transparent;
    line-height: 1.5;
}

.imf-alert--success {
    background: var(--imf-green-light);
    border-color: var(--imf-green-border);
    color: var(--imf-green);
}

.imf-alert--error {
    background: var(--imf-red-light);
    border-color: var(--imf-red-border);
    color: var(--imf-red);
}

.imf-alert--warning {
    background: var(--imf-amber-bg);
    border-color: var(--imf-amber-border);
    color: var(--imf-amber);
}

.imf-alert__close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: .45;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    color: inherit;
}

    .imf-alert__close:hover {
        opacity: 1;
    }

/* ── Cards ──────────────────────────────────────────────────── */
.imf-card {
    background: var(--imf-surface);
    border: 1px solid var(--imf-border);
    border-radius: var(--imf-radius-lg);
    padding: 1.5rem;
    margin-bottom: 0.875rem;
    
}

.imf-card--items {
    padding-bottom: 0;
}

.imf-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--imf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    background-color: transparent;
    padding: .3rem 0rem;
}
.imf-card-title-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--imf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    background-color: transparent;
    padding: .3rem .7rem;
    border-radius: 10px;
}

.imf-divider {
    border: none;
    border-top: 1px solid var(--imf-border-light);
    margin: 1.25rem 0;
}
.inv-btn {
    background: #eee;
    padding: .5rem 1.2rem;
    border: none;
    border-radius: 7px;
    color: #333;
}
.inv-btn:hover {
    background: #111;
    color: #eee;
}
.inv-btn--primary {
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

/* ── Form fields ────────────────────────────────────────────── */
.imf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.imf-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--imf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.imf-req {
    color: var(--imf-red-mid);
}

.imf-input {
    height: 40px;
    padding: 0 0.875rem;
    border: 1.5px solid var(--imf-border);
    border-radius: var(--imf-radius-sm);
    font-size: 1rem;
    color: var(--imf-text-primary);
    background: var(--imf-surface);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--imf-font);
    font-weight: 500;
}

    .imf-input:focus {
        outline: none;
        border-color: var(--imf-blue);
        box-shadow: 0 0 0 3px rgba(29,78,216,.1);
    }

.imf-input--locked {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 40px;
    padding: 0 0.875rem;
    border: 1.5px solid var(--imf-border-light);
    border-radius: var(--imf-radius-sm);
    font-size: 0.875rem;
    background: var(--imf-surface-2);
    color: var(--imf-text-muted);
    font-weight: 500;
}

.imf-select {
    height: 45px;
    padding: 0 0.875rem;
    border: 1.5px solid var(--imf-border);
    border-radius: var(--imf-radius-sm);
    font-size: 1rem;
    color: var(--imf-text-primary);
    background: var(--imf-surface);
    width: 100%;
    box-sizing: border-box;
    font-family: var(--imf-font);
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s;
}

    .imf-select:focus {
        outline: none;
        border-color: var(--imf-blue);
        box-shadow: 0 0 0 3px rgba(29,78,216,.1);
    }

.imf-currency-wrap {
    position: relative;
}

.imf-currency-symbol {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--imf-text-muted);
    pointer-events: none;
    font-weight: 600;
}

.imf-currency-wrap .imf-input {
    padding-left: 1.6rem;
}

/* ── Confidence indicators ──────────────────────────────────── */
.imf-field-conf {
    font-size: 0.85rem;
    font-weight: 500;
    height: 26px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #555!important;
}

.imf-field-conf--high {
    color: var(--imf-green);
}

.imf-field-conf--medium {
    color: var(--imf-amber-mid);
}

.imf-field-conf--low {
    color: var(--imf-red);
}

.imf-input--high, .imf-select--high {
    border-color: #86efac;
}

.imf-input--medium, .imf-select--medium {
    border-color: var(--imf-amber-mid);
    background: var(--imf-amber-bg);
}

.imf-input--low, .imf-select--low {
    border-color: var(--imf-red-mid);
    background: var(--imf-red-light);
}

/* ── Vendor detected badge ──────────────────────────────────── */
.imf-field-detected {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--imf-green-light);
    border: 1.5px solid var(--imf-green-border);
    border-radius: var(--imf-radius-sm);
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.imf-detected-val {
    font-weight: 700;
    color: var(--imf-green);
    font-size: 0.9rem;
}

.imf-detected-badge {
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    background: var(--imf-green);
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Grid layouts ───────────────────────────────────────────── */
.imf-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
    margin-bottom: 1.125rem;
}

.imf-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.125rem;
}

@media (max-width: 680px) {
    .imf-row2, .imf-row3 {
        grid-template-columns: 1fr;
    }
}

/* ── Drop zone ──────────────────────────────────────────────── */
.imf-dropzone {
    border: 2px dashed var(--imf-border);
    border-radius: var(--imf-radius);
    background: var(--imf-surface-2);
    transition: border-color .15s, background .15s;
    cursor: pointer;
}

    .imf-dropzone:hover,
    .imf-dropzone--over {
        border-color: var(--imf-blue);
        background: var(--imf-blue-light);
    }

.imf-dropzone__idle {
    padding: 2.5rem 2rem;
    text-align: center;
}

.imf-dropzone__text {
    margin: 0.75rem 0 0.3rem;
    font-size: 0.925rem;
    color: var(--imf-text-secondary);
    font-weight: 500;
}

    .imf-dropzone__text strong {
        color: var(--imf-blue);
        font-weight: 700;
    }

.imf-dropzone__hint {
    margin: 0;
    font-size: 0.775rem;
    color: var(--imf-text-xmuted);
    font-weight: 500;
}

.imf-file-input {
    display: none;
}

.imf-browse-btn {
    margin-top: 1rem;
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--imf-border);
    border-radius: var(--imf-radius-sm);
    background: var(--imf-surface);
    cursor: pointer;
    color: var(--imf-text-secondary);
    transition: all .12s;
    font-family: var(--imf-font);
}

    .imf-browse-btn:hover {
        background: var(--imf-blue-light);
        border-color: var(--imf-blue-border);
        color: var(--imf-blue);
    }

.imf-dropzone__selected {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
}

.imf-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--imf-radius-sm);
    background: var(--imf-blue-light);
    border: 1px solid var(--imf-blue-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--imf-blue);
}

.imf-file-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--imf-text-primary);
}

.imf-file-size {
    font-size: 0.75rem;
    color: var(--imf-text-xmuted);
    font-weight: 500;
    margin-top: 0.1rem;
}

.imf-file-remove {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--imf-text-xmuted);
    padding: 0.35rem;
    border-radius: var(--imf-radius-sm);
    transition: all .12s;
    display: flex;
    align-items: center;
}

    .imf-file-remove:hover {
        color: var(--imf-red);
        background: var(--imf-red-light);
    }

/* ── Form footer ────────────────────────────────────────────── */
.imf-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--imf-border-light);
}

.imf-form-hint {
    font-size: 0.8rem;
    color: var(--imf-text-xmuted);
    font-weight: 500;
}

/* ── Buttons ────────────────────────────────────────────────── */
.imf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.125rem;
    height: 38px;
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: var(--imf-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--imf-font);
    text-decoration: none;
    white-space: nowrap;
}

    .imf-btn:active {
        transform: translateY(1px);
    }

.imf-btn--primary {
    background: var(--imf-blue);
    color: #fff;
    border-color: var(--imf-blue);
    box-shadow: 0 1px 3px rgba(29,78,216,.3);
}

    .imf-btn--primary:hover {
        background: var(--imf-blue-hover);
        box-shadow: 0 2px 8px rgba(29,78,216,.35);
    }

    .imf-btn--primary:disabled {
        background: #93c5fd;
        border-color: #93c5fd;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }

.imf-btn--secondary {
    background: var(--imf-surface);
    color: var(--imf-text-secondary);
    border-color: var(--imf-border);
    box-shadow: var(--imf-shadow-sm);
}

    .imf-btn--secondary:hover {
        background: var(--imf-surface-2);
        border-color: #9ca3af;
        color: var(--imf-text-primary);
    }

/* ── Confidence bar ─────────────────────────────────────────── */
.imf-confidence-bar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem .25rem;
    background: var(--imf-surface);
    margin-bottom: 1rem;
}

.imf-confidence-bar__label-left {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--imf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

.imf-confidence-bar__track {
    height: 8px;
    background: var(--imf-border-light);
    border-radius: 99px;
    overflow: hidden;
}

.imf-confidence-bar__fill {
    height: 100%;
    border-radius: 99px;
    transition: width .5s cubic-bezier(.4,0,.2,1), background .4s;
}

.imf-confidence-bar__pct {
    font-size: 1rem;
    font-weight: 800;
    min-width: 3.5rem;
    text-align: right;
    letter-spacing: -0.02em;
}

.imf-confidence-bar__label {
    font-size: 0.775rem;
    color: var(--imf-text-muted);
    white-space: nowrap;
    font-weight: 500;
    min-width: 170px;
}

/* ── Warnings strip ─────────────────────────────────────────── */
.imf-warnings-strip {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--imf-amber-bg);
    border: 1.5px solid var(--imf-amber-border);
    border-radius: var(--imf-radius-sm);
    margin-bottom: 0.875rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--imf-amber);
    line-height: 1.5;
}

    .imf-warnings-strip ul {
        margin: 0;
        padding-left: 1.25rem;
    }

    .imf-warnings-strip li {
        margin: 0.15rem 0;
    }

/* ── Items section header ───────────────────────────────────── */
.imf-items-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--imf-border-light);
    margin-bottom: 0;
   
}

.imf-items-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
}

.imf-add-row-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1.5px solid var(--imf-border);
    border-radius: var(--imf-radius-sm);
    background: var(--imf-surface);
    cursor: pointer;
    color: var(--imf-text-secondary);
    transition: all .12s;
    font-family: var(--imf-font);
}

    .imf-add-row-btn:hover {
        background: var(--imf-blue-light);
        border-color: var(--imf-blue-border);
        color: var(--imf-blue);
    }

/* ── Items table ────────────────────────────────────────────── */
.imf-table-wrap {
    overflow-x: auto;
    margin: 0 -1.5rem;
}

.imf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

    .imf-table thead {
        background: var(--imf-surface-3);
    }

        .imf-table thead th {
            padding: 0.65rem 0.6rem;
            text-align: left;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--imf-text-muted);
            text-transform: uppercase;
            letter-spacing: 0.09em;
            white-space: nowrap;
            border-bottom: 2px solid var(--imf-border);
            border-top: 1px solid var(--imf-border-light);
        }

            .imf-table thead th:first-child {
                padding-left: 1.5rem;
            }

            .imf-table thead th:last-child {
                padding-right: 1.5rem;
            }

    /* Alternating rows — essential for 19+ item readability */

    .imf-table tbody tr {
        cursor:pointer;
    }
    .imf-table tbody tr {
        border-bottom: dotted solid var(--imf-border-light);
        transition: background .08s;

    }

        .imf-table tbody tr:nth-child(even) {
            background: var(--imf-surface-2);
        }

        .imf-table tbody tr:hover {
            background: var(--imf-blue-light) !important;
        }

        .imf-table tbody tr:last-child {
            border-bottom: none;
        }

/* Column widths */
.imf-th-num {
    width: 32px;
}

.imf-th-code {
    width: 88px;
}

.imf-th-desc {
    min-width: 170px;
}

.imf-th-unit {
    width: 88px;
}

.imf-th-pack {
    width: 190px;
}

.imf-th-qty { /* Quantity and Shipped */
    width: 90px;
    text-align: right !important;
}

.imf-th-price {
    width: 82px;
    text-align:right !important;
}

.imf-th-action {
    width: 36px;
}

/* ── Table cells ────────────────────────────────────────────── */
.imf-td {
    padding: 0.32rem 0.6rem;
    vertical-align: middle;
    line-height: 1.8;
}

    .imf-td:first-child {
        padding-left: 1.5rem;
    }

    .imf-td:last-child {
        padding-right: 1.5rem;
    }

.imf-td-num {
    color: var(--imf-text-xmuted);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
    padding-right: 0.5rem;
    
}

.imf-td-qty,
.imf-td-price {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--imf-text-secondary);
    font-size: 0.8rem;
    padding-right: 0.75rem;
}

.imf-cell {
    width: 100%;
    padding: 0.22rem 0.45rem;
    border: none;

    font-size: 0.99rem;
    background-color: transparent!important;
    color: #444;
    box-sizing: border-box;
    font-family: var(--imf-font);
    font-weight: 500;
}

    .imf-cell:hover:not(:focus) {
        border-color: var(--imf-border);
        background: var(--imf-surface);
    }

    .imf-cell:focus {
        outline: none;
        border-color: var(--imf-blue);
        background: var(--imf-surface);
        box-shadow: 0 0 0 2px rgba(29,78,216,.12);
    }

.imf-cell--medium {
    background: var(--imf-amber-bg);
    border-color: var(--imf-amber-mid) !important;
}

.imf-cell--low,
.imf-cell--empty {
    background: var(--imf-red-light);
    border-color: var(--imf-red-mid) !important;
}

.imf-cell-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--imf-border);
    padding: 0.3rem;
    border-radius: 4px;
    transition: all .1s;
    display: flex;
    align-items: center;
}

    .imf-cell-remove:hover {
        color: var(--imf-red);
        background: var(--imf-red-light);
    }

/* ── Totals footer ──────────────────────────────────────────── */
.imf-totals-footer {
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-top: 2px solid var(--imf-border);
    background-color: transparent;
    border-radius: 0 0 var(--imf-radius-lg) var(--imf-radius-lg);
    
}

.imf-totals-label {
    font-size: .9rem;
    color: var(--imf-text-muted);
    margin-left: auto;
    font-weight: 600;
    text-transform: uppercase;
}

.imf-totals-value {
    font-size: 1.3rem;
    font-weight: 500;
    color: #444;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    padding-left: .5rem;
}

.imf-totals-sep {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--imf-text-muted);
    font-weight: 600;
    background: var(--imf-surface-3);
    border: 1px solid var(--imf-border);
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
}

/* ── Sticky action footer ───────────────────────────────────── */
.imf-action-footer {
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 2rem;
    margin-top: 1rem;
    border-top: thin solid var(--imf-border);
    z-index: 100;
    gap: 1rem;
    
}

@media (min-width: 900px) {
    .layout-app .imf-action-footer {
        left: var(--sidebar-width, 240px);
    }
}

.imf-action-footer__right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.imf-action-hint {
    font-size: 0.8rem;
    color: var(--imf-text-xmuted);
    font-weight: 500;
}

.imf-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 1.5rem;
    height: 44px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--imf-radius-sm);
    background: var(--imf-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--imf-font);
    box-shadow: 0 2px 6px rgba(29,78,216,.35);
    letter-spacing: 0.01em;
}

    .imf-confirm-btn:hover {
        background: var(--imf-blue-hover);
        box-shadow: 0 4px 14px rgba(29,78,216,.4);
    }

    .imf-confirm-btn:active {
        transform: translateY(1px);
    }

/* ── Processing overlay ─────────────────────────────────────── */
.imf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,17,23,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

    .imf-overlay.is-visible {
        display: flex;
    }

.imf-overlay__content {
    background: var(--imf-surface);
    border-radius: var(--imf-radius-lg);
    padding: 2.25rem 2.75rem;
    text-align: center;
    box-shadow: var(--imf-shadow-lg);
    border: 1px solid var(--imf-border-light);
    min-width: 220px;
}

.imf-overlay__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--imf-border-light);
    border-top-color: var(--imf-blue);
    border-radius: 50%;
    animation: imf-spin .7s linear infinite;
    margin: 0 auto 1rem;
}

.imf-overlay__text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--imf-text-secondary);
    margin: 0;
}

@keyframes imf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .imf-page {
        padding: 1rem 0.75rem 6rem;
    }

    .imf-card {
        padding: 1.125rem;
    }

    .imf-topbar__title {
        font-size: 1.2rem;
    }

    .imf-confidence-bar {
        grid-template-columns: 1fr auto auto;
    }

    .imf-confidence-bar__label-left {
        display: none;
    }

    .imf-confidence-bar__label {
        min-width: unset;
        font-size: 0.7rem;
    }

    .imf-action-footer {
        padding: 0.75rem 1rem;
    }
}

.imf-card--header .imf-card-title {
    margin-bottom: 1.125rem;
}

/* ── Add these rules to importfile-invoice.css ───────────────────
   Learning engine — suggestion cell styling
   ─────────────────────────────────────────────────────────────── */

/* Suggested cell: soft blue tint — distinct from confidence states */
.imf-cell--suggestion {
    background: var(--imf-blue-light) !important;
    border-color: var(--imf-blue-border) !important;
}

    .imf-cell--suggestion:focus {
        background: var(--imf-surface) !important;
        border-color: var(--imf-blue) !important;
    }

    /* Once user edits a suggestion, it becomes high-confidence (clear) */
    .imf-cell--suggestion.imf-cell--high {
        background: transparent !important;
        border-color: transparent !important;
    }

/* ✦ badge shown on rows that were auto-filled by the learning engine */
.imf-suggestion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--imf-blue);
    opacity: 0.7;
    cursor: default;
    transition: opacity .15s;
    user-select: none;
}

    .imf-suggestion-badge:hover {
        opacity: 1;
    }