:root {
    --color-brand: #0d7c7c;
    --color-brand-light: #0f9898;
    --color-brand-dark: #095858;
    --bg-main: #f6fbfb;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --color-brand-rgb: 13, 124, 124;
    --shadow-md: 0 10px 25px rgba(13, 124, 124, 0.12);
    --shadow-lg: 0 16px 32px rgba(13, 124, 124, 0.18);
    --color-success: #16a34a;
    --color-success-bg: #f0fdf4;
    --color-success-border: #bbf7d0;
    --color-warn: #d97706;
    --color-warn-bg: #fffbeb;
    --color-warn-border: #fde68a;
    --color-danger: #dc2626;
    --color-danger-bg: #fef2f2;
    --color-danger-border: #fecaca;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at top left, rgba(13, 124, 124, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(15, 152, 152, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(13, 124, 124, 0.04), transparent 24%);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem 3rem; }

/* ── HEADER ── */
header {
    margin-bottom: 1.75rem;
    padding: 0.75rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
    text-align: center;
}

.brand-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(13, 124, 124, 0.14);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.08), rgba(15, 152, 152, 0.03));
    box-shadow: 0 10px 22px rgba(13, 124, 124, 0.06);
}

.brand-mark { display: flex; flex-direction: column; gap: 0.15rem; text-align: left; }
.brand-name { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.02em; color: var(--color-brand-dark); }
.brand-tagline { color: var(--text-muted); font-size: 0.84rem; font-weight: 500; }

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(13, 124, 124, 0.18);
    color: var(--color-brand-dark);
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.brand-link:hover { border-color: var(--color-brand); color: var(--color-brand); background: #fff; transform: translateY(-1px); }

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.12), rgba(15, 152, 152, 0.12));
    color: var(--color-brand-dark);
    border: 1px solid rgba(13, 124, 124, 0.14);
    font-size: 0.8rem;
    font-weight: 700;
}

header h1 {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
    max-width: 880px;
}
header p { color: var(--text-muted); font-size: 1rem; font-weight: 500; max-width: 760px; }

.workflow-steps { width: 100%; display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.25rem; }
.workflow-step {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.68rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

.workflow-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.14), rgba(15, 152, 152, 0.14));
    color: var(--color-brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    flex: 0 0 auto;
}

/* ── SCANNER / UPLOAD ── */
.premium-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 1.05rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-brand-rgb), 0.22), rgba(15, 152, 152, 0.18), transparent);
}
.premium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.scanner-layout { display: flex; gap: 50px; align-items: flex-start; justify-content: center; min-height: 420px; flex-wrap: wrap; }

/* .upload-area {
    padding: 2.25rem 1.5rem;
    cursor: pointer;
    text-align: center;
    border: 2px dashed rgba(13, 124, 124, 0.22);
    margin: 1rem;
    border-radius: 1rem;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.03) 0%, rgba(15, 152, 152, 0.03) 100%);
    position: relative;
    overflow: hidden;
}
.upload-area::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(13, 124, 124, 0.08) 0%, transparent 70%);
    animation: float-glow 8s ease-in-out infinite;
}
@keyframes float-glow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 40px); } }

.upload-area:hover {
    border-color: var(--color-brand);
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.06) 0%, rgba(15, 152, 152, 0.04) 100%);
    box-shadow: 0 10px 24px rgba(13, 124, 124, 0.1);
    transform: translateY(-2px);
}

.upload-icon { color: var(--color-brand); margin-bottom: 1rem; font-size: 3rem; position: relative; z-index: 1; }
.upload-title { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.65rem; position: relative; z-index: 1; }
.upload-subtitle { color: var(--text-muted); font-size: 0.9rem; position: relative; z-index: 1; }

.upload-tip {
    margin: 15px 0;
    padding: 10px 14px;
    background: #f8f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
} */

.drag-active {
    border: 2px dashed #2563eb;
    background: #eef5ff;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.import-options{
    padding:30px;
}

.import-card{
    width:100%;
    min-height:320px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    border:2px dashed rgba(13,124,124,.22);
    border-radius:18px;
    padding:40px 25px;
    background:linear-gradient(135deg,
        rgba(13,124,124,.03),
        rgba(15,152,152,.03));
    text-align:center;
    cursor:pointer;
    transition:all .25s ease;
    
}

.import-card:hover{
    border-color:var(--color-brand);
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(13,124,124,.12);
}

.import-card.drag-active{
    border-color:#2563eb;
    background:#eef5ff;
}

.import-icon{
    font-size:52px;
    color:var(--color-brand);
    margin-bottom:18px;
}

.import-card h3{
    font-size:22px;
    margin-bottom:10px;
    color:var(--text-main);
}

.import-card p{
    color:var(--text-muted);
    line-height:1.8;
    margin:0;
}

.import-note{
    margin-top:20px;
    padding:14px;
    border-radius:10px;
    background:#f8f9fc;
    border:1px solid #e2e8f0;
    font-size:13px;
    color:#4b5563;
}

@media (max-width:768px){

    .import-options{
        grid-template-columns:1fr;
    }

}

/* .upload-divider{
    margin:25px 0;
    border:none;
    border-top:1px solid #e5e7eb;
}

.paste-order-option{
    display:flex;
    align-items:center;
    gap:18px;
    padding:16px;
    border-radius:12px;
    cursor:pointer;
    transition:.25s;
}

.paste-order-option:hover{
    background:#f8fafc;
}

.paste-order-icon{
    width:56px;
    height:56px;
    border-radius:12px;
    background:#eef8f8;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--color-brand);
    font-size:24px;
}

.paste-order-option h4{
    margin:0;
    font-size:18px;
    color:#1f2937;
}

.paste-order-option p{
    margin-top:4px;
    color:#6b7280;
    font-size:14px;
} */

.preview-section { max-width: 300px; width: 300px; }
.preview-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 124, 124, 0.08);
    color: var(--color-brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.preview-label-dot {
    width: 0.5rem; height: 0.5rem;
    border-radius: 999px;
    background: var(--color-brand-light);
    box-shadow: 0 0 0 4px rgba(15, 152, 152, 0.12);
}

.scanner-container {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #eef7f7 100%);
    box-shadow: 0 10px 24px rgba(13, 124, 124, 0.08);
    border: 1.5px solid rgba(13, 124, 124, 0.15);
}
.preview-image { width: 100%; height: auto; display: block; transition: filter 0.5s ease; opacity: 0.96; }
.scanning .preview-image { filter: brightness(0.72) contrast(1.05); }

.scan-beam {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, transparent, var(--color-brand-light), var(--color-brand), var(--color-brand-dark), transparent);
    box-shadow: 0 0 40px 10px var(--color-brand), 0 0 80px 20px rgba(13, 124, 124, 0.3);
    z-index: 10;
}
.scanned-highlight {
    position: absolute; top: 0; left: 0; width: 100%;
    background: linear-gradient(to bottom, rgba(13, 124, 124, 0.3) 0%, rgba(13, 124, 124, 0.1) 50%, rgba(15, 152, 152, 0.05) 100%);
    pointer-events: none; z-index: 8;
}

.status-container { margin-top: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.status-text { font-weight: 600; color: var(--color-brand); font-size: 0.92rem; }
.progress-bar-bg { width: 100%; max-width: 300px; height: 6px; background: var(--border-color); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-brand), var(--color-brand-light)); }

/* ── BUTTONS ── */
.btn-primary {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-light) 100%);
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.94rem;
    box-shadow: 0 8px 24px rgba(13, 124, 124, 0.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(13, 124, 124, 0.3); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline {
    border: 1.5px solid rgba(13, 124, 124, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); background: rgba(13, 124, 124, 0.05); }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8rem; }

.file-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(13, 124, 124, 0.14);
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.05), rgba(15, 152, 152, 0.05));
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

.error-message {
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: rgba(220, 38, 38, 0.06);
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── RESULTS TOPBAR ── */
.results-container { display: flex; flex-direction: column; gap: 1rem; }

.results-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.results-summary { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 0.88rem;
}
.summary-pill-matched {
    border-color: var(--color-success-border);
    background: var(--color-success-bg);
}
.summary-pill-unmatched {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
}

.summary-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.14), rgba(15, 152, 152, 0.14));
    color: var(--color-brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
}
.summary-pill-matched .summary-value { background: rgba(22, 163, 74, 0.15); color: var(--color-success); }
.summary-pill-unmatched .summary-value { background: rgba(220, 38, 38, 0.12); color: var(--color-danger); }

.summary-label { color: var(--text-muted); font-weight: 600; }

/* ── ORDER INFO PANEL ── */
.order-info-panel {
    background: #fff;
    border: 1.5px solid rgba(13, 124, 124, 0.18);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(13, 124, 124, 0.07);
}

.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 22px;
    background:linear-gradient(135deg,rgba(13,124,124,.08),rgba(15,152,152,.04));
    border-bottom:1px solid rgba(13,124,124,.1);
    position:relative;
}
.panel-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:16px;
    font-weight:800;
    color:var(--color-brand-dark);
}
.customer-actions{
    display:flex;
    align-items:center;
    gap:14px;
    position:relative;
}


.customer-search-panel{
    position:absolute;
    top:58px;
    right:20px;
    width:500px;
    max-height:550px;
    background:#fff;
    border:1px solid #dbe4ea;
    border-radius:12px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
    z-index:999;
    overflow:hidden;

}
.customer-search-panel input{

    width:calc(100% - 32px);

    margin:16px;

    height:42px;
    font-size:15px;
    border-radius:12px;

    border:1px solid #d7dee7;

    border-radius:10px;
}
.customer-search-title{

    padding:0 16px 12px;

    font-size:13px;

    font-weight:700;

    color:#64748b;

    text-transform:uppercase;

    letter-spacing:.08em;

}
.customer-result{

    padding:16px 20px;
    border-top:1px solid #edf2f7;
    display:flex;
    flex-direction:column;
    gap:4px;
    cursor:pointer;

    transition:.18s;

}
.customer-result:hover{

    background:#eef8ff;

}
.customer-result strong{

    display:block;

    font-size:16px;
    font-weight:700;
    margin-bottom:6px;

}
.customer-result div{

    font-size:13px;

    color:#64748b;
    line-height:1.5;

    margin-top:2px;

}
.customer-review{
    margin:20px;
    border:1px solid #dce8ef;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
}
.customer-review-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 22px;
    border-bottom:1px solid #edf3f7;
    background:#fbfdfe;
}
.customer-review-header input{

    width:230px;

    padding:12px 16px;

    border:1px solid #d5e2ea;

    border-radius:10px;

    font-size:14px;

}
.customer-table{

    width:100%;

    border-collapse:collapse;

}
.customer-table thead{

    background:#f7fafc;

}
.customer-table th{

    padding:14px;

    text-align:left;

    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.05em;
    font-weight:800;
    color:#5b6b7d;

    border-bottom:1px solid #e8eef3;

}
.customer-table td{
    padding:5px 10px;
    font-size:14px;
    border-bottom:1px solid #e8eef3;

}
.customer-table th:nth-child(1),
.customer-table td:nth-child(1){
    width: 20px;
}

.customer-table th:nth-child(2),
.customer-table td:nth-child(2){
    width:90px;
}

/* Customer column */
.customer-table th:nth-child(3),
.customer-table td:nth-child(3){
    max-width:300px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
/* Company column */
.customer-table th:nth-child(4),
.customer-table td:nth-child(4){
    max-width:180px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Email column */
.customer-table th:nth-child(5),
.customer-table td:nth-child(5){
    max-width:220px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.customer-name{

    display:flex;

    align-items:center;

    gap:10px;

    font-weight:600;

    color:#17324d;

}

.customer-selected-badge{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:4px 10px;

    background:#eefcf4;

    border:1px solid #b7efca;

    border-radius:999px;

    color:#0a8a48;

    font-size:12px;

    font-weight:600;

}

.customer-selected-badge i{

    font-size:11px;

}
.customer-table tbody tr{

    cursor:pointer;

    transition:.15s;

}

.customer-table tbody tr:hover{

    background:rgba(13,124,124,.04);
    background:#eef8ff;
    

}
.customer-selected{

    background: #ecfdf5;
    border-left: 5px solid #22c55e;
    box-shadow: inset 0 0 0 1px rgba(34,197,94,.18);
    opacity: 1;

}
.match-badge{

    display:inline-block;

    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    min-width:72px;
    text-align:center;
    border-radius:999px;

    background:#e8fff0;

    color:#179b55;

    font-weight:700;

}

.ocr-detected{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 20px;

    border-bottom:1px solid #edf2f6;

    background:#fbfdff;

}

.ocr-label{

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    color:#64748b;

    white-space:nowrap;

}

.ocr-text{

    font-size:14px;

    font-weight:600;

    color:#0d7c7c;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}


.order-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0;
}

.order-field {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(13, 124, 124, 0.06);
    border-right: 1px solid rgba(13, 124, 124, 0.06);
}

.order-field-icon {
    color: var(--color-brand);
    font-size: 0.82rem;
    min-width: 1.2rem;
    padding-top: 0.15rem;
}

.order-field-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 0.1rem;
}

.order-field-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-word;
}

/* ── RESULT SECTION (collapsible) ── */
.result-section {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.section-toggle:hover { background: rgba(13, 124, 124, 0.03); }
.section-toggle-left { display: flex; align-items: center; gap: 0.65rem; }

.section-title { font-size: 0.97rem; font-weight: 800; color: var(--text-main); }

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0 0.35rem;
}

.matched-badge {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}
.unmatched-badge {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
}
.raw-badge {
    background: rgba(13, 124, 124, 0.1);
    color: var(--color-brand-dark);
    border: 1px solid rgba(13, 124, 124, 0.18);
}

/* ── TABLE ── */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--border-color);
}
.group-header th{
    padding:10px 8px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
    border-bottom:1px solid #d9e3ea;
}

.group-ocr{
    background:linear-gradient(180deg,#eef7ff,#e8f3ff);
    color:#0b5cad;
    border-right:1px solid #d7dee7;   /* was 3px */
    border-bottom:1px solid #d7dee7;
}

.group-match{
    background:linear-gradient(180deg,#f1fcf5,#eafaf0);
    color:#137a3f;
    border-bottom:1px solid #d7dee7;
}

.group-header i{
    margin-right:8px;
    opacity:.85;
    font-size:12px;
}

.product-table{
    width:auto;
    table-layout:fixed;
    border-collapse:collapse;
    font-size:.82rem;
}

.product-table thead tr {
    background: linear-gradient(135deg, rgba(13,124,124,0.05), rgba(15,152,152,0.03));
}

.product-table th {
    padding: 0.55rem 0.6rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.product-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid rgba(13,124,124,0.06);
    vertical-align: middle;
    overflow: hidden;
}

.product-row { cursor: pointer; transition: background 0.15s; }
.product-row:hover { background: rgba(13,124,124,0.03); }
.product-row:last-child td { border-bottom: none; }
.row-expanded { background: rgba(13,124,124,0.04) !important; }

.row-idx {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    font-family: monospace;
}

.product-id-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(13,124,124,0.09);
    color: var(--color-brand-dark);
    font-weight: 800;
    font-family: monospace;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.product-name-cell{
    font-weight:700;
    color:var(--text-main);

    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;

    line-height:1.4;
}
.ocr-cell {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* Column widths — fixed px, sized to what each column actually needs
   (Product Name widest, then OCR Product, then the rest sized to content).
   table-layout:fixed above locks these widths so clicking (dropdowns,
   checkboxes, undo button, status changes) never reflows/shifts the columns.
   Order matches the JSX:
   1 #, 2 OCR Product, 3 Qty, 4 Unit, 5 Size, 6 Product ID, 7 Product Name,
   8 Order Type, 9 Qty Set, 10 Price, 11 Match %, 12 Status, 13 checkbox, 14 expand */

/* # */
.product-table thead tr.col-header th:nth-child(1),
.product-table tbody tr.product-row td:nth-child(1){
    width:36px;
    padding-left: 10px;
}

/* OCR Product */
.product-table thead tr.col-header th:nth-child(2),
.product-table tbody tr.product-row td:nth-child(2){
    width:150px;
    border-right:1px solid #d7dee7;
}

/* Qty */
.product-table thead tr.col-header th:nth-child(3),
.product-table tbody tr.product-row td:nth-child(3){
    width:50px;
    text-align:center;
}

/* Unit */
.product-table thead tr.col-header th:nth-child(4),
.product-table tbody tr.product-row td:nth-child(4){
    width:55px;
}

/* Size */
.product-table thead tr.col-header th:nth-child(5),
.product-table tbody tr.product-row td:nth-child(5){
    width:55px;
    border-right:1px solid #d7dee7;
}

/* Product ID */
.product-table thead tr.col-header th:nth-child(6),
.product-table tbody tr.product-row td:nth-child(6){
    width:72px;
    padding-left:8px;
}
/* Product Name */
.product-table thead tr.col-header th:nth-child(7),
.product-table tbody tr.product-row td:nth-child(7){
    width:230px;
}
/* Order Type */
.product-table thead tr.col-header th:nth-child(8),
.product-table tbody tr.product-row td:nth-child(8){
    width:112px;
}
/* Qty Set */
.product-table thead tr.col-header th:nth-child(9),
.product-table tbody tr.product-row td:nth-child(9){
    width:55px;
    text-align:center;
}
/* Price */
.product-table thead tr.col-header th:nth-child(10),
.product-table tbody tr.product-row td:nth-child(10){
    width:88px;
}
/* Match % */
.product-table thead tr.col-header th:nth-child(11),
.product-table tbody tr.product-row td:nth-child(11){
    width:72px;
    text-align:center;
}

/* Status */
.product-table thead tr.col-header th:nth-child(12),
.product-table tbody tr.product-row td:nth-child(12){
    width:100px;
}
.product-table thead tr.col-header th:nth-child(13){
    width:42px;
    text-align:center;
}
.confirm-cell{
    text-align:center;
    width:42px;
}

.confirm-cell input{
    width:17px;
    height:17px;
    cursor:pointer;
}
/* Expand */
.product-table thead tr.col-header th:nth-child(14),
.product-table tbody tr.product-row td:nth-child(14){
    width:40px;
}
.qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.3rem;
    border-radius: 0.4rem;
    background: rgba(13,124,124,0.1);
    color: var(--color-brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
    box-sizing: border-box;
}
.qty-muted { background: rgba(107,114,128,0.1); color: var(--text-muted); }

.score-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.28rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.score-high  { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.score-med   { background: var(--color-warn-bg);    color: var(--color-warn);    border: 1px solid var(--color-warn-border); }
.score-low   { background: rgba(220,38,38,0.07);    color: var(--color-danger);  border: 1px solid var(--color-danger-border); }
.score-none  { background: #f3f4f6; color: var(--text-muted); border: 1px solid var(--border-color); }

.expand-cell { text-align: center; }
.expand-icon { color: var(--text-muted); font-size: 0.72rem; }


/* .undo-btn {
    margin-left: 8px;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
} */

.undo-btn{
    width:22px;
    height:22px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #d1d5db;
    border-radius:40px;
    background:#fff;
    padding:0;
    box-sizing:border-box;
    font-size:10px;
}

.undo-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.undo-btn:active {
    transform: scale(0.97);
}

/* Detail row */
.detail-row td { background: rgba(13,124,124,0.025); padding: 20px 40px }
.detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* padding: 0.75rem 0.5rem; */
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 100px;
}
.detail-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Unmatched row */
.unmatched-row { background: rgba(220,38,38,0.015); }
.unmatched-row:hover { background: rgba(220,38,38,0.04) !important; }

/* .status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
} */
.status-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 9px;
    border-radius:6px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    box-sizing:border-box;
}

.status-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    display:inline-block;
}

.status-auto{
    color:#15803d;
}

.status-auto .status-dot{
    background:#22c55e;
}

.status-manual{
    color:#b45309;
}

.status-manual .status-dot{
    background:#f59e0b;
}

.status-notfound {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
}
.status-actions{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    max-width:100%;
}

/* ── RAW OCR ── */
.raw-ocr-list {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 320px;
    overflow-y: auto;
}
.raw-ocr-list::-webkit-scrollbar { width: 6px; }
.raw-ocr-list::-webkit-scrollbar-thumb { background: var(--color-brand-light); border-radius: 999px; }

.raw-ocr-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    background: rgba(13,124,124,0.04);
    border: 1px solid rgba(13,124,124,0.08);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main);
}

.line-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 124, 124, 0.14), rgba(15, 152, 152, 0.14));
    color: var(--color-brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
    flex: 0 0 auto;
    font-family: monospace;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .preview-section { width: 100%; max-width: 420px; }
    .order-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 1rem; }
    .brand-row { flex-direction: column; align-items: flex-start; }
    .brand-link { width: 100%; justify-content: center; }
    header h1 { font-size: 1.8rem; }
    .scanner-layout { gap: 1rem; }
    .results-topbar { align-items: stretch; }
    .btn-primary { width: 100%; justify-content: center; }
    .order-fields { grid-template-columns: 1fr; }
    .product-table th, .product-table td { padding: 0.6rem 0.65rem; font-size: 0.82rem; }
    .section-toggle { padding: 0.8rem; }
}

.qty-editor{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
}

.qty-btn{
    width:34px;
    height:34px;
    border:1px solid #d7dee7;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
    font-size:20px;
    font-weight:700;
    transition:.2s;
}

.qty-btn:hover{
    background:#eef6ff;
    border-color:#7cb8ff;
}

.qty-value{
    min-width:32px;
    text-align:center;
    font-size:18px;
    font-weight:700;
}

.possible-matches{
    margin-top:16px;
    background:#ffffff;
    border:1px solid #dbe4ea;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    overflow:hidden;
}

.possible-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    background:#f8fafc;
    border-bottom:1px solid #e5e7eb;
}

.possible-header h4{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    font-size:15px;
    font-weight:700;
}

.search-products-btn{
    font-size:12px;
}

.candidate-row{
    display:grid;
    grid-template-columns:45px 90px minmax(0,1fr) 70px;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    border-bottom:1px solid #eee;
    opacity:.82;
    transition:all .18s ease;

}
.candidate-title{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.candidate-score{
    text-align:right;
    font-weight:700;
}

.candidate-id{
    font-family:monospace;
    color:#64748b;
}
.candidate-row:hover{
    opacity:1;
    background:#eef8ff;
    
}

.candidate-selected{
    background:#ecfdf5;
    border-left:5px solid #22c55e;
    box-shadow:inset 0 0 0 1px rgba(34,197,94,.18);
    opacity:1;

}

.candidate-selected .candidate-rank{
    font-weight:700;
    color:#15803d;
}

.candidate-selected .candidate-id{
    color:#15803d;
    font-weight:700;
}

.candidate-selected .candidate-title{
    font-weight:700;
    color:#14532d;
}

.candidate-selected:hover{
    background:#dcfce7;
}

.selected-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-left:10px;
    padding:2px 8px;
    border-radius:999px;
    background:#dcfce7;
    color:#15803d;
    font-size:11px;
    font-weight:700;
    border:1px solid #86efac;
}
/* ═══════════════════════════════════════════════════════════
   SCANNER — add/replace in your style.css
   ═══════════════════════════════════════════════════════════ */

.scanner-wrapper { display: flex; flex-direction: column; gap: 1rem; }

.scanner-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  justify-content: center;
}

/* ── INPUT CARD ── */
.input-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 1.05rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: center;
}
.input-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--color-brand-rgb),.22), rgba(15,152,152,.18), transparent);
  z-index: 1;
}

/* ── TWO HALVES ── */
.input-halves {
  display: flex;
  align-items: stretch;
}

/* FULL = before image selected — tall, roomy */
.halves-full {
  min-height: 420px;
}

/* COMPACT = after image selected, preview is beside card */
.halves-compact {
  min-height: 280px;
}

.input-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.3rem 1.2rem;
  min-width: 0;
}

/* ── VERTICAL OR DIVIDER ── */
.half-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  flex-shrink: 0;
  gap: 0.55rem;
}
.half-divider-line {
  width: 1px;
  flex: 1;
  min-height: 30px;
  background: linear-gradient(180deg,
    transparent,
    rgba(13,124,124,.18) 20%,
    rgba(13,124,124,.18) 80%,
    transparent);
}
.half-divider-or {
  font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}

/* ── DROP ZONE ── */
.drop-zone {
  flex: 1;                        /* stretches to fill the half height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  border: 2px dashed rgba(13,124,124,.22);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(13,124,124,.03), rgba(15,152,152,.025));
  cursor: pointer;
  padding: 1.5rem 1rem;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}
.drop-zone:hover {
  border-color: var(--color-brand);
  background: linear-gradient(135deg, rgba(13,124,124,.07), rgba(15,152,152,.04));
  box-shadow: 0 6px 20px rgba(13,124,124,.1);
  transform: translateY(-2px);
}
.drop-zone.drag-active {
  border-color: var(--color-brand);
  border-style: solid;
  background: rgba(13,124,124,.07);
  box-shadow: 0 0 0 4px rgba(13,124,124,.1);
  transform: scale(1.01);
}

/* icon scales with halves-full vs halves-compact */
.halves-full  .dz-icon { font-size: 3.8rem; }
.halves-compact .dz-icon { font-size: 2rem; }
.dz-icon { color: var(--color-brand); line-height: 1; margin-bottom: 0.25rem; transition: font-size .3s; }

/* title scales */
.halves-full  .dz-title { font-size: 1.25rem; }
.halves-compact .dz-title { font-size: 0.92rem; }
.dz-title { font-weight: 800; color: var(--text-main); margin: 0; transition: font-size .3s; }

/* sub text */
.halves-full  .dz-sub { font-size: 0.95rem; }
.halves-compact .dz-sub { font-size: 0.78rem; }
.dz-sub { color: var(--text-muted); margin: 0; transition: font-size .3s; }

/* formats line */
.halves-full  .dz-formats { font-size: 0.82rem; opacity: 0.75; }
.halves-compact .dz-formats { display: none; }
.dz-formats { color: var(--text-muted); letter-spacing: .06em; margin-top: 0.2rem; }

/* text half header title sizing */
.halves-full .text-half-header .dz-title { font-size: 1.15rem; }
.halves-full .text-half-header .dz-sub   { font-size: 0.9rem; }
.halves-full .text-half-icon { width: 2.8rem; height: 2.8rem; font-size: 1.15rem; }

/* kbd tag used inline inside tip box */
.kbd-tag {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .18rem .48rem;
  background: rgba(13,124,124,.1); border: 1px solid rgba(13,124,124,.2);
  border-radius: .38rem; font-size: .78rem; font-weight: 800;
  color: var(--color-brand-dark); font-family: monospace;
  white-space: nowrap;
}

/* ── TIP BOX ── */
.dz-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, rgba(13,124,124,.07), rgba(15,152,152,.04));
  border: 1px solid rgba(13,124,124,.18);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: left;
  max-width: 500px;
}
.dz-tip-box i.fa-lightbulb {
  color: var(--color-brand);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.dz-tip-box strong { color: var(--text-main); }
.dz-tip-box .kbd-tag { vertical-align: middle; }

/* ── HALF ACTIONS ROW (file chip + buttons) ── */
.half-actions {
  display: flex; align-items: center; gap: .5rem;
  padding-top: .75rem; margin-top: .75rem;
  border-top: 1px solid var(--border-color); flex-wrap: wrap;
}
.file-info-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .65rem; border-radius: .45rem;
  background: rgba(13,124,124,.08); border: 1px solid rgba(13,124,124,.16);
  font-size: .78rem; font-weight: 700; color: var(--color-brand-dark);
  min-width: 0; overflow: hidden;
}
.file-info-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

.btn-ghost-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .38rem .65rem; border-radius: .5rem;
  border: 1.5px solid var(--border-color); background: transparent;
  color: var(--text-muted); font-size: .78rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all .18s ease;
}
.btn-ghost-sm:hover { border-color: var(--color-brand); color: var(--color-brand-dark); background: rgba(13,124,124,.05); }
.btn-ghost-sm.danger:hover { border-color: var(--color-danger); color: var(--color-danger); background: var(--color-danger-bg); }

/* ── TEXT HALF ── */
.text-half-header { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.text-half-icon {
  width: 2.4rem; height: 2.4rem; border-radius: .6rem; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(13,124,124,.12), rgba(15,152,152,.08));
  border: 1px solid rgba(13,124,124,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-brand); font-size: 1rem;
}

.order-textarea {
  flex: 1; width: 100%;
  /* grow taller in full mode, shorter in compact */
  min-height: 0;
  padding: .8rem .9rem; border-radius: .7rem;
  border: 1.5px solid var(--border-color);
  background: rgba(13,124,124,.015);
  font-size: .85rem; font-family: inherit;
  color: var(--text-main); line-height: 1.65;
  resize: vertical; transition: border-color .2s, box-shadow .2s; outline: none;
}
/* In full mode let textarea fill all remaining space */
.halves-full .input-half { gap: 0; }
.halves-full .order-textarea  { flex: 1; min-height: 200px; }
.halves-compact .order-textarea { min-height: 120px; }

.order-textarea::placeholder { color: var(--text-muted); opacity: .65; }
.order-textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(13,124,124,.1);
  background: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .scanner-row { flex-direction: column; align-items: center; }
  .preview-section { width: 100% !important; max-width: 420px; }
}
@media (max-width: 540px) {
  .input-halves { flex-direction: column; }
  .half-divider {
    flex-direction: row; padding: 0 1.2rem; gap: .55rem;
  }
  .half-divider-line {
    width: auto; flex: 1; height: 1px; min-height: unset;
    background: linear-gradient(90deg, transparent, rgba(13,124,124,.18) 20%, rgba(13,124,124,.18) 80%, transparent);
  }
}

.search-result-item{
    display:flex;
    align-items:center;
    gap:16px;

    padding:12px 16px;

    border-bottom:1px solid #edf2f7;

    cursor:pointer;

    transition:.2s;
}

.search-result-item:hover{
    background:#f0f9ff;
}

.search-product-id{
    min-width:70px;
    font-weight:700;
    color:#0f766e;
}

.search-product-name{
    flex:1;
}

.no-results{
    padding:30px;
    text-align:center;
    color:#64748b;
}

/* ---------- Search Modal ---------- */

.search-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:9999;
}

.search-modal{
    width: 650px;
    max-width:90vw;
    max-height:70vh;

    display:flex;
    flex-direction:column;

    background:#fff;
    border-radius:14px;
    overflow:hidden;

    box-shadow:0 30px 80px rgba(0,0,0,.25);
}

.search-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 22px;

    border-bottom:1px solid #e5e7eb;
}

.search-modal-header h3{
    margin:0;
    font-size:20px;
    font-weight:700;

    display:flex;
    align-items:center;
    gap:10px;
}

.close-btn{
    width:36px;
    height:36px;

    border:none;
    border-radius:8px;

    background:#f3f4f6;

    cursor:pointer;

    font-size:18px;
}

.close-btn:hover{
    background:#e5e7eb;
}

.search-modal input{
    margin:18px;
    padding:12px 16px;

    border:1px solid #d1d5db;
    border-radius:10px;

    font-size:15px;
}

.search-results{
    overflow-y:auto;
    flex:1;
}

.section-header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.selected-pill{
    padding:6px 12px;
    border-radius:999px;
    background:#ecfdf5;
    color:#15803d;
    font-size:13px;
    font-weight:700;
    border:1px solid #bbf7d0;
}

.bulk-action-btn{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border:1px solid #d7dee7;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
    font-weight:600;
    transition:.2s;
}

.bulk-action-btn:hover{
    border-color:#0d7c7c;
    color:#0d7c7c;
}

.collapse-btn{
    width:38px;
    height:38px;
    border:none;
    background:transparent;
    cursor:pointer;
    border-radius:8px;
}

.collapse-btn:hover{
    background:#f3f4f6;
}
.bulk-dropdown{
    position:relative;
}

.bulk-menu{
    position:absolute;
    top:44px;
    right:0;

    width:220px;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    overflow:hidden;

    z-index:100;
}

.bulk-menu button{
    width:100%;
    padding:12px 16px;

    border:none;
    background:#fff;

    display:flex;
    align-items:center;
    gap:10px;

    cursor:pointer;
    text-align:left;
}

.bulk-menu button:hover{
    background:#f8fafc;
}

.table-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    border-top:1px solid #e5e7eb;
    background:#fff;
}


.table-footer-left{
    display:flex;
    gap:10px;
}

.table-footer-right{
    display:flex;
    gap:10px;
}

.enquiry-number-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:12px 0;
}

.enquiry-number{
    font-size:18px;
    font-weight:700;
    letter-spacing:0.5px;
    color:#1f2937;
}

.copy-btn{
    border:none;
    background:none;
    cursor:pointer;
    color:#64748b;
    font-size:16px;
    transition:.2s;
}

.copy-btn:hover{
    color:#2563eb;
}

.open-enquiry-btn{
    margin-top:20px;
}

.success-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.success-modal{
    width:430px;
    background:#fff;
    border-radius:14px;
    padding:28px;
    text-align:center;
}

.success-number-box{
    margin:20px 0;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    font-size:24px;
    font-weight:700;
}

.success-actions{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:24px;
}

.modal-close{
    position:absolute;
    top:14px;
    right:14px;
    border:none;
    background:none;
    cursor:pointer;
    font-size:18px;
    color:#64748b;
}

.status-pending{
    background:#f3f4f6;
    color:#6b7280;
    border:1px solid #d1d5db;
}

.status-pending .status-dot{
    background:#9ca3af;
}
.confirm-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.confirm-dialog{
    width:430px;
    background:#fff;
    border-radius:18px;
    padding:24px;
    box-shadow:0 20px 60px rgba(0,0,0,.2);
}

.confirm-header{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:700;
    color:#064e5a;
}

.confirm-body{
    margin:20px 0;
    line-height:1.6;
    color:#4b5563;
}

.confirm-footer{
    display:flex;
    justify-content:center;
    gap:20px;
}

.order-type-select{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:6px 5px;

    border:1px solid #d7dee7;
    border-radius:8px;

    background:#fff;

    font-size:0.78rem;
    font-weight:500;

    cursor:pointer;

    transition:.2s;
}

.order-type-select:hover{
    border-color:#0d7c7c;
}

.order-type-select:focus{
    outline:none;
    border-color:#0d7c7c;
    box-shadow:0 0 0 3px rgba(13,124,124,.12);
}

.price-badge{
    display:inline-block;

    max-width:100%;
    box-sizing:border-box;

    padding:7px 10px;

    text-align:right;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    border-radius:8px;

    background:#f8fafc;

    border:1px solid #e2e8f0;

    font-weight:600;
    font-size:0.82rem;

    color:#0f172a;
}