/* ===================================================================
   Stylish Order Form Builder — Admin
   Full-width, white-canvas dashboard. Charts use a colorful palette.
   Everything is scoped under .sofb-app so it never leaks into wp-admin.
   =================================================================== */

/* Force a clean white, full-bleed canvas on every SOFB admin screen. */
body[class*="page_sofb_"] #wpcontent { padding-left: 0; background: #ffffff; }
body[class*="page_sofb_"] #wpbody-content { padding-bottom: 0; }
body[class*="page_sofb_"].wp-admin { background: #ffffff; }
body[class*="page_sofb_"] .sofb-app .notice,
body[class*="page_sofb_"] #screen-meta-links { margin-right: 24px; }

.sofb-app {
    --sofb-ink: #0f172a;
    --sofb-ink-soft: #64748b;
    --sofb-line: #e5e7eb;
    --sofb-line-soft: #f1f5f9;
    --sofb-surface: #ffffff;
    --sofb-canvas: #f8fafc;
    --sofb-accent: #2563eb;
    --sofb-ok: #15803d;
    --sofb-ok-bg: #e7f6ec;
    --sofb-warn: #b45309;
    --sofb-warn-bg: #fdf3da;
    --sofb-danger: #dc2626;
    /* Chart palette — a friendly mix used across bars and accents. */
    --sofb-c0: #2563eb;
    --sofb-c1: #16a34a;
    --sofb-c2: #f59e0b;
    --sofb-c3: #db2777;
    --sofb-c4: #7c3aed;
    --sofb-c5: #0891b2;
    --sofb-radius: 14px;
    --sofb-shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 18px rgba(15,23,42,.05);

    max-width: none;
    width: 100%;
    min-height: calc(100vh - 32px);
    margin: 0;
    padding: 20px clamp(16px, 2.4vw, 36px) 64px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
    color: var(--sofb-ink);
    box-sizing: border-box;
}

.sofb-app *,
.sofb-app *::before,
.sofb-app *::after { box-sizing: border-box; }

/* ---- Top bar ---- */
.sofb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--sofb-ink);
    color: #fff;
    border-radius: var(--sofb-radius);
    margin-bottom: 18px;
}
.sofb-brand { display: flex; align-items: center; gap: 12px; }
.sofb-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
}
.sofb-logo img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.sofb-brand-name { font-weight: 600; font-size: 15px; }
.sofb-badge {
    font-size: 11px; font-weight: 700; letter-spacing: .4px;
    padding: 5px 11px; border-radius: 999px; text-transform: uppercase;
}
.sofb-badge.is-pro { background: #fff; color: #111; }
.sofb-badge.is-lite { background: rgba(255,255,255,.14); color: #fff; }

/* ---- Page head ---- */
.sofb-pagehead { margin-bottom: 18px; }
.sofb-pagehead h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--sofb-ink); }
.sofb-pagehead p { margin: 6px 0 0; color: var(--sofb-ink-soft); font-size: 14px; }

/* ---- Banners ---- */
.sofb-banner {
    padding: 13px 16px; border-radius: var(--sofb-radius);
    margin-bottom: 18px; font-size: 14px; border: 1px solid transparent;
}
.sofb-banner-ok { background: var(--sofb-ok-bg); color: var(--sofb-ok); border-color: #bfe3cd; }
.sofb-banner-warn { background: var(--sofb-warn-bg); color: var(--sofb-warn); border-color: #f3e3b3; }
.sofb-banner-pro { background: #111; color: #fff; }

/* ---- Layout grids ---- */
.sofb-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.sofb-metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }

/* ---- Cards ---- */
.sofb-card {
    background: var(--sofb-surface);
    border: 1px solid var(--sofb-line);
    border-radius: var(--sofb-radius);
    box-shadow: var(--sofb-shadow);
    padding: 20px;
    margin-bottom: 18px;
}
.sofb-card-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}
.sofb-card-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.sofb-card-hint { font-size: 12px; color: var(--sofb-ink-soft); }

/* ---- Metric cards ---- */
.sofb-metric {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--sofb-surface);
    border: 1px solid var(--sofb-line);
    border-top: 4px solid var(--sofb-c0);
    border-radius: var(--sofb-radius);
    box-shadow: var(--sofb-shadow);
    padding: 18px;
}
.sofb-metric:nth-child(2) { border-top-color: var(--sofb-c1); }
.sofb-metric:nth-child(3) { border-top-color: var(--sofb-c4); }
.sofb-metric:nth-child(4) { border-top-color: var(--sofb-c2); }
.sofb-metric.is-highlight { background: linear-gradient(135deg, #1e293b, #0f172a); border-color: #0f172a; }
.sofb-metric.is-highlight .sofb-metric-label,
.sofb-metric.is-highlight .sofb-metric-value { color: #fff; }
.sofb-metric.is-highlight .sofb-metric-link { color: #fbbf24; }
.sofb-metric-label { font-size: 13px; color: var(--sofb-ink-soft); }
.sofb-metric-value { font-size: 32px; font-weight: 750; line-height: 1.1; }
.sofb-metric-link { font-size: 13px; font-weight: 600; color: var(--sofb-accent); text-decoration: none; margin-top: 2px; }
.sofb-metric-link:hover { text-decoration: underline; }

/* ---- Bars (monthly sales) — colorful palette ---- */
.sofb-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.sofb-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.sofb-bar { width: 72%; max-width: 48px; border-radius: 8px 8px 2px 2px; min-height: 4px; box-shadow: 0 2px 6px rgba(15,23,42,.12); transition: height .35s ease, filter .15s; }
.sofb-bar:hover { filter: brightness(1.08); }
.sofb-bar-c0 { background: linear-gradient(180deg, #60a5fa, var(--sofb-c0)); }
.sofb-bar-c1 { background: linear-gradient(180deg, #4ade80, var(--sofb-c1)); }
.sofb-bar-c2 { background: linear-gradient(180deg, #fbbf24, var(--sofb-c2)); }
.sofb-bar-c3 { background: linear-gradient(180deg, #f472b6, var(--sofb-c3)); }
.sofb-bar-c4 { background: linear-gradient(180deg, #a78bfa, var(--sofb-c4)); }
.sofb-bar-c5 { background: linear-gradient(180deg, #22d3ee, var(--sofb-c5)); }
.sofb-bar-value { font-size: 11px; font-weight: 600; color: var(--sofb-ink-soft); }
.sofb-bar-label { font-size: 12px; font-weight: 600; color: var(--sofb-ink); }

/* ---- Top list ---- */
.sofb-toplist { margin: 0; padding: 0; list-style: none; }
.sofb-toplist li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--sofb-line-soft); }
.sofb-toplist li:last-child { border-bottom: 0; }
.sofb-top-name { font-weight: 550; position: relative; padding-left: 18px; }
.sofb-top-name::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--sofb-c0); }
.sofb-toplist li:nth-child(2) .sofb-top-name::before { background: var(--sofb-c1); }
.sofb-toplist li:nth-child(3) .sofb-top-name::before { background: var(--sofb-c2); }
.sofb-toplist li:nth-child(4) .sofb-top-name::before { background: var(--sofb-c3); }
.sofb-toplist li:nth-child(5) .sofb-top-name::before { background: var(--sofb-c4); }
.sofb-top-qty { font-size: 12px; font-weight: 600; color: var(--sofb-accent); background: #eff6ff; padding: 3px 10px; border-radius: 999px; }

/* ---- Template gallery ---- */
.sofb-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.sofb-template-card {
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--sofb-line); border-radius: var(--sofb-radius);
    padding: 18px; background: var(--sofb-surface); transition: border-color .15s, box-shadow .15s;
}
.sofb-template-card:hover { border-color: #111; box-shadow: var(--sofb-shadow); }
.sofb-template-icon { font-size: 26px; width: 26px; height: 26px; color: #111; }
.sofb-template-card h3 { margin: 4px 0 0; font-size: 15px; }
.sofb-template-card p { margin: 0; font-size: 13px; color: var(--sofb-ink-soft); flex: 1; }

/* ---- Forms ---- */
.sofb-form { display: flex; flex-direction: column; gap: 14px; }
.sofb-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sofb-ink); }
.sofb-hint { font-weight: 400; color: var(--sofb-ink-soft); }
.sofb-field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sofb-input {
    width: 100%; padding: 8px 12px; min-height: 36px; font-size: 14px; color: var(--sofb-ink);
    background: #fff; border: 1px solid #c9cccf; border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(22,29,37,.03);
    font-family: inherit; transition: border-color .12s, box-shadow .12s;
}
.sofb-input:focus { outline: none; border-color: var(--sofb-accent); box-shadow: 0 0 0 2px rgba(37,99,235,.25); }
select.sofb-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.sofb-input { resize: vertical; }
.sofb-check { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--sofb-ink); }
.sofb-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sofb-scroll-list { max-height: 200px; overflow-y: auto; padding: 4px; border: 1px solid var(--sofb-line); border-radius: 9px; }

/* ---- Product picker (search + scrollable checklist) ---- */
.sofb-picker { display: flex; flex-direction: column; gap: 8px; }
.sofb-picker-search { width: 100%; }
.sofb-picker .sofb-scroll-list { max-height: 240px; }
.sofb-picker-empty { grid-column: 1 / -1; margin: 0; padding: 10px 6px; color: var(--sofb-ink-soft); font-size: 13px; }

/* ---- Buttons ---- */
.sofb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; min-height: 36px; font-size: 14px; font-weight: 600; line-height: 1; font-family: inherit;
    background: #1a1a1a; color: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 8px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 1px 0 rgba(22,29,37,.05), inset 0 -1px 0 rgba(0,0,0,.2);
    transition: background .12s, box-shadow .12s;
}
.sofb-btn:hover { background: #000; color: #fff; }
.sofb-btn:active { box-shadow: inset 0 1px 2px rgba(0,0,0,.3); }
.sofb-btn:disabled { opacity: .45; cursor: not-allowed; }
.sofb-btn-ghost { background: #fff; color: var(--sofb-ink); border-color: #c9cccf; box-shadow: 0 1px 0 rgba(22,29,37,.04); }
.sofb-btn-ghost:hover { background: var(--sofb-canvas); color: var(--sofb-ink); border-color: #9ea3a8; }
.sofb-btn-sm { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.sofb-btn-danger { background: var(--sofb-danger); border-color: rgba(0,0,0,.12); }
.sofb-btn-danger:hover { background: #b91c1c; color: #fff; }
.sofb-btn-danger:disabled { background: #e5a8a3; }

/* ---- Bulk actions (catalog) ---- */
.sofb-bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sofb-bulk-count { font-size: 13px; color: var(--sofb-ink-soft); }
.sofb-col-check { width: 36px; text-align: center; padding-right: 0 !important; }
.sofb-col-check input[type="checkbox"] { margin: 0; vertical-align: middle; }

/* ---- Import block ---- */
.sofb-import { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--sofb-line); }
.sofb-import-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sofb-import h3 { margin: 0; font-size: 14px; }
.sofb-import-form { display: flex; flex-direction: column; gap: 14px; align-items: stretch; margin-top: 14px; }
.sofb-dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; text-align: center;
    min-height: 150px; padding: 24px;
    border: 2px dashed var(--sofb-line-strong); border-radius: var(--sofb-radius);
    background: var(--sofb-canvas); color: var(--sofb-ink-soft);
    cursor: pointer; transition: border-color .15s, background .15s;
}
.sofb-dropzone:hover { border-color: var(--sofb-accent); background: #f1f5ff; }
.sofb-dropzone-icon { font-size: 30px; width: 30px; height: 30px; color: var(--sofb-accent); }
.sofb-dropzone-text { font-size: 14px; }
.sofb-dropzone-text strong { color: var(--sofb-ink); }
.sofb-dropzone input[type="file"] { margin-top: 6px; font-size: 13px; max-width: 100%; }
.sofb-import-form .sofb-btn { align-self: flex-start; }
.sofb-tag-pro { font-size: 10px; font-weight: 700; background: var(--sofb-accent); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }

/* ---- Tables ---- */
.sofb-table-wrap { overflow-x: auto; }
/* Vertical scroll for long catalogs (e.g. 300+ products) with a sticky header. */
.sofb-table-scroll-y { max-height: 60vh; overflow-y: auto; border: 1px solid var(--sofb-line); border-radius: var(--sofb-radius); }
.sofb-table-scroll-y .sofb-table { font-size: 14px; }
.sofb-table-scroll-y .sofb-table th,
.sofb-table-scroll-y .sofb-table td { padding-left: 16px; padding-right: 16px; }
.sofb-table-sticky thead th { position: sticky; top: 0; z-index: 2; background: var(--sofb-canvas); padding-top: 12px; }
.sofb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sofb-table th { text-align: left; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--sofb-ink-soft); padding: 0 12px 10px; border-bottom: 1px solid var(--sofb-line); }
.sofb-table td { padding: 13px 12px; border-bottom: 1px solid var(--sofb-line-soft); vertical-align: middle; }
.sofb-table tbody tr:last-child td { border-bottom: 0; }
.sofb-sub { display: block; font-size: 12px; color: var(--sofb-ink-soft); margin-top: 2px; }

/* ---- Catalog product cell (thumbnail + name) ---- */
.sofb-prod-cell { display: flex; align-items: center; gap: 12px; }
.sofb-prod-name { display: block; }
.sofb-prod-thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--sofb-line); background: var(--sofb-canvas); }
.sofb-prod-thumb-empty { background: var(--sofb-canvas) repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(100,116,139,.12) 6px, rgba(100,116,139,.12) 12px); }
.sofb-shortcode { font-size: 12px; background: var(--sofb-canvas); padding: 4px 8px; border-radius: 6px; }
.sofb-cat { font-size: 12px; }

.sofb-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sofb-canvas); color: var(--sofb-ink); border: 1px solid var(--sofb-line); }
.sofb-pill.is-on { background: var(--sofb-ok-bg); color: var(--sofb-ok); border-color: #bfe3cd; }
.sofb-pill.is-off { background: #f1f1f1; color: #777; }
.sofb-status-new { background: #e7eefc; color: #1f4bbd; border-color: #c9d8f7; }
.sofb-status-pending { background: var(--sofb-warn-bg); color: var(--sofb-warn); border-color: #f3e3b3; }
.sofb-status-completed,
.sofb-status-quoted { background: var(--sofb-ok-bg); color: var(--sofb-ok); border-color: #bfe3cd; }
.sofb-status-cancelled { background: #fdecea; color: var(--sofb-danger); border-color: #f6cfca; }

.sofb-row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.sofb-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--sofb-accent); cursor: pointer; text-decoration: none; }
.sofb-link:hover { text-decoration: underline; }
.sofb-link-danger { color: var(--sofb-danger); }
.sofb-inline { display: inline; margin: 0; }

/* ---- Toolbar / filters (orders) ---- */
.sofb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sofb-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sofb-chip { font-size: 13px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--sofb-line); background: #fff; color: var(--sofb-ink-soft); text-decoration: none; }
.sofb-chip:hover { border-color: #111; color: #111; }
.sofb-chip.is-active { background: #111; color: #fff; border-color: #111; }

/* ---- Order detail row ---- */
.sofb-order-detail-row[hidden] { display: none; }
.sofb-order-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; background: var(--sofb-canvas); border-radius: 10px; padding: 16px; }
.sofb-order-detail h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--sofb-ink-soft); }
.sofb-detail-items ul { margin: 0; padding: 0; list-style: none; }
.sofb-detail-items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--sofb-line-soft); }
.sofb-detail-meta p { margin: 0 0 10px; font-size: 14px; }
.sofb-notes { background: #fff; border: 1px solid var(--sofb-line); border-radius: 8px; padding: 8px 10px; }
.sofb-status-form { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.sofb-status-form .sofb-input { width: auto; }

/* ---- Pro box ---- */
.sofb-pro-box { margin-top: 18px; padding: 16px; background: var(--sofb-canvas); border-radius: 10px; }
.sofb-pro-box h3 { margin: 0 0 10px; font-size: 14px; }
.sofb-tick { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.sofb-tick li { position: relative; padding-left: 24px; font-size: 13px; }
.sofb-tick li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; background: #111; color: #fff; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* ---- Color settings ---- */
.sofb-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.sofb-color { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.sofb-color input[type="color"] { width: 100%; height: 46px; padding: 2px; border: 1px solid var(--sofb-line); border-radius: 9px; background: #fff; cursor: pointer; }

.sofb-empty { color: var(--sofb-ink-soft); font-size: 14px; padding: 10px 0; }

/* ---- Settings tabs + email settings ---- */
.sofb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sofb-subhead { margin: 18px 0 0; font-size: 14px; font-weight: 650; }
.sofb-email-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; resize: vertical; }
.sofb-placeholders { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sofb-placeholders code { font-size: 12px; background: #eef2ff; color: var(--sofb-accent); padding: 2px 7px; border-radius: 5px; }

/* ---- License: status banner ---- */
.sofb-license-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; border-radius: var(--sofb-radius); margin-bottom: 18px; font-size: 14px;
    border: 1px solid var(--sofb-line);
}
.sofb-license-bar.is-trial { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.sofb-license-bar.is-ok { background: var(--sofb-ok-bg); border-color: #bbf7d0; color: var(--sofb-ok); }
.sofb-license-bar.is-free { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.sofb-bar-btn {
    flex: 0 0 auto; text-decoration: none; font-weight: 600; font-size: 13px;
    padding: 7px 14px; border-radius: 8px; background: #111827; color: #fff;
}
.sofb-bar-btn:hover { background: #000; color: #fff; }

/* ---- License page ---- */
.sofb-plan-pill { display: inline-block; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; margin: 0 0 14px; }
.sofb-plan-pill.is-pro { background: var(--sofb-ok-bg); color: var(--sofb-ok); }
.sofb-plan-pill.is-trial { background: #eff6ff; color: #1e40af; }
.sofb-plan-pill.is-free { background: #f1f5f9; color: var(--sofb-ink-soft); }
.sofb-meta-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.sofb-meta-table th { text-align: left; font-weight: 600; color: var(--sofb-ink-soft); font-size: 13px; padding: 8px 12px 8px 0; white-space: nowrap; vertical-align: top; width: 40%; }
.sofb-meta-table td { padding: 8px 0; font-size: 14px; word-break: break-word; }
.sofb-reassure { margin-top: 22px; padding: 18px; background: var(--sofb-canvas); border-radius: var(--sofb-radius); }
.sofb-reassure h3 { margin: 0 0 8px; font-size: 15px; }
.sofb-reassure p { margin: 0 0 10px; font-size: 14px; }
.sofb-plan-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.sofb-keybox { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--sofb-line); }
.sofb-keybox h3 { margin: 0 0 6px; font-size: 14px; }
.sofb-key-row { display: flex; gap: 10px; align-items: center; margin: 10px 0 6px; }
.sofb-key-row .sofb-input { flex: 1; }
.sofb-key-msg { min-height: 20px; font-size: 13px; font-weight: 600; margin: 0; }
.sofb-key-msg.is-ok { color: var(--sofb-ok); }
.sofb-key-msg.is-err { color: var(--sofb-danger); }

@media (max-width: 960px) {
    .sofb-grid-two { grid-template-columns: 1fr; }
    .sofb-metric-row { grid-template-columns: repeat(2, 1fr); }
    .sofb-order-detail { grid-template-columns: 1fr; }
}
