/* ==========================================================================
   FlowersByDesign — Order Automation Console
   Design system  ·  Light / Premium
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    /* Brand */
    --fbd-brand:            #4f46e5;
    --fbd-brand-600:        #4f46e5;
    --fbd-brand-700:        #4338ca;
    --fbd-brand-400:        #818cf8;
    --fbd-brand-100:        #e0e7ff;
    --fbd-brand-50:         #eef2ff;

    /* Channel semantics */
    --fbd-whatsapp:         #128c7e;
    --fbd-whatsapp-500:     #25d366;
    --fbd-whatsapp-50:      #e7f8ee;
    --fbd-shopify:          #5e8e3e;
    --fbd-shopify-50:       #eef6e8;

    /* Status */
    --fbd-success:          #059669;
    --fbd-success-50:       #ecfdf5;
    --fbd-warning:          #d97706;
    --fbd-warning-50:       #fffbeb;
    --fbd-danger:           #e11d48;
    --fbd-danger-50:        #fff1f3;
    --fbd-info:             #0284c7;
    --fbd-info-50:          #f0f9ff;

    /* Neutrals */
    --fbd-canvas:           #f6f7fb;
    --fbd-surface:          #ffffff;
    --fbd-surface-2:        #fbfcfe;
    --fbd-border:           #eef1f6;
    --fbd-border-strong:    #e2e8f0;
    --fbd-ink:              #0b1220;
    --fbd-ink-2:            #334155;
    --fbd-muted:            #64748b;
    --fbd-faint:            #94a3b8;

    /* Elevation */
    --fbd-shadow-xs:  0 1px 2px rgba(16, 24, 40, .04);
    --fbd-shadow-sm:  0 1px 3px rgba(16, 24, 40, .05), 0 1px 2px rgba(16, 24, 40, .03);
    --fbd-shadow-md:  0 4px 14px rgba(16, 24, 40, .06), 0 2px 4px rgba(16, 24, 40, .03);
    --fbd-shadow-lg:  0 18px 40px rgba(16, 24, 40, .10), 0 4px 10px rgba(16, 24, 40, .04);
    --fbd-shadow-brand: 0 8px 22px rgba(79, 70, 229, .22);

    /* Geometry */
    --fbd-r-sm: 8px;
    --fbd-r-md: 12px;
    --fbd-r-lg: 16px;
    --fbd-r-xl: 22px;

    --fbd-ease: cubic-bezier(.22, 1, .36, 1);

    /* Layout rail — topbar, content and footer all align to this */
    --fbd-rail: 1440px;
    --fbd-gutter: 32px;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--fbd-canvas);
    color: var(--fbd-ink);
    font-size: .9375rem;
    line-height: 1.55;
    letter-spacing: -0.006em;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fbd-num { letter-spacing: -0.028em; }

.fbd-num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.fbd-mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-variant-numeric: tabular-nums;
}

a { text-decoration: none; }
::selection { background: var(--fbd-brand-100); color: var(--fbd-brand-700); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dbe2ec; border-radius: 20px; border: 3px solid var(--fbd-canvas); }
::-webkit-scrollbar-thumb:hover { background: #c4cede; }

/* ---------- 3. App shell ------------------------------------------------- */
.fbd-shell {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(760px 380px at 100% -8%, rgba(79, 70, 229, .07), transparent 62%),
        radial-gradient(620px 340px at -6% 4%, rgba(37, 211, 102, .06), transparent 60%);
    background-repeat: no-repeat;
}

.fbd-main {
    width: 100%;
    max-width: var(--fbd-rail);
    margin: 0 auto;
    padding: 30px var(--fbd-gutter) 56px;
    flex: 1;
}

@media (max-width: 1599.98px) { :root { --fbd-gutter: 28px; } }
@media (max-width: 1199.98px) { :root { --fbd-gutter: 24px; } }
@media (max-width: 767.98px)  { :root { --fbd-gutter: 16px; } .fbd-main { padding-top: 22px; padding-bottom: 40px; } }

/* ---------- 4. Top bar --------------------------------------------------- */
.fbd-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px;
    padding: 0 var(--fbd-gutter);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--fbd-border-strong);
}

@media (max-width: 767.98px) { .fbd-topbar { height: 60px; } }

.fbd-topbar-inner {
    width: 100%;
    max-width: calc(var(--fbd-rail) - var(--fbd-gutter) * 2);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fbd-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--fbd-ink);
}

.fbd-logo {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(140deg, #6366f1 0%, #4f46e5 45%, #db2777 130%);
    box-shadow: var(--fbd-shadow-brand);
    position: relative;
    flex-shrink: 0;
}

.fbd-logo::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%);
}

.fbd-brand-name {
    font-weight: 800;
    font-size: 1.06rem;
    line-height: 1.1;
}

.fbd-brand-sub {
    font-size: .69rem;
    font-weight: 600;
    color: var(--fbd-faint);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fbd-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 11px;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid var(--fbd-border-strong);
    background: var(--fbd-surface);
    color: var(--fbd-muted);
    white-space: nowrap;
}

.fbd-chip-live { color: var(--fbd-success); border-color: #b9e9d3; background: var(--fbd-success-50); }

.fbd-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: fbd-pulse 2.2s var(--fbd-ease) infinite;
}

@keyframes fbd-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, .45); }
    70%  { box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.fbd-user {
    display: flex; align-items: center; gap: 9px;
    height: 38px; padding: 0 12px 0 6px;
    border-radius: 999px;
    border: 1px solid var(--fbd-border-strong);
    background: var(--fbd-surface);
    font-weight: 700; font-size: .82rem;
    color: var(--fbd-ink-2);
    box-shadow: var(--fbd-shadow-xs);
}

.fbd-avatar {
    width: 27px; height: 27px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--fbd-brand-400), var(--fbd-brand-700));
    color: #fff; font-size: .72rem; font-weight: 800;
}

/* ---------- 5. Buttons --------------------------------------------------- */
.fbd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 18px;
    border-radius: 10px;
    font-size: .855rem; font-weight: 700;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--fbd-ease), box-shadow .2s var(--fbd-ease),
                background-color .18s ease, border-color .18s ease, color .18s ease;
}

.fbd-btn:active { transform: translateY(1px) scale(.995); }
.fbd-btn:focus-visible { outline: 3px solid rgba(79, 70, 229, .28); outline-offset: 2px; }

.fbd-btn-primary {
    background: linear-gradient(180deg, #5b52ea, var(--fbd-brand-700));
    color: #fff;
    box-shadow: var(--fbd-shadow-brand);
}
.fbd-btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(79, 70, 229, .32); transform: translateY(-1px); }

.fbd-btn-ghost {
    background: var(--fbd-surface);
    border-color: var(--fbd-border-strong);
    color: var(--fbd-ink-2);
    box-shadow: var(--fbd-shadow-xs);
}
.fbd-btn-ghost:hover { color: var(--fbd-brand-700); border-color: var(--fbd-brand-400); background: var(--fbd-brand-50); }

.fbd-btn-sm { height: 34px; padding: 0 13px; font-size: .8rem; border-radius: 9px; }
.fbd-btn-block { width: 100%; }
.fbd-btn-lg { height: 46px; font-size: .92rem; border-radius: 12px; }

.fbd-btn i { font-size: 1em; line-height: 1; }

.fbd-btn-icon-spin:hover i { animation: fbd-spin .8s var(--fbd-ease); }
@keyframes fbd-spin { to { transform: rotate(360deg); } }

.fbd-link {
    color: var(--fbd-brand-700);
    font-weight: 700;
    font-size: .82rem;
    transition: opacity .15s ease;
}
.fbd-link:hover { opacity: .75; color: var(--fbd-brand-700); }

/* ---------- 6. Cards / panels -------------------------------------------- */
.fbd-card {
    background: var(--fbd-surface);
    border: 1px solid var(--fbd-border);
    border-radius: var(--fbd-r-lg);
    box-shadow: var(--fbd-shadow-sm);
}

.fbd-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--fbd-border);
}

.fbd-card-title {
    display: flex; align-items: center; gap: 9px;
    margin: 0;
    font-size: .95rem; font-weight: 800;
    color: var(--fbd-ink);
}

.fbd-card-title i { color: var(--fbd-brand); font-size: 1.02rem; }
.fbd-card-body { padding: 20px; }

.fbd-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--fbd-ink);
}

.fbd-page-sub {
    margin: 0;
    color: var(--fbd-muted);
    font-size: .875rem;
    font-weight: 500;
}

/* ---------- 7. KPI cards ------------------------------------------------- */
.fbd-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1199.98px) { .fbd-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .fbd-kpi-grid { grid-template-columns: 1fr; } }

.fbd-kpi {
    position: relative;
    overflow: hidden;
    background: var(--fbd-surface);
    border: 1px solid var(--fbd-border);
    border-radius: var(--fbd-r-lg);
    padding: 18px 18px 0;
    box-shadow: var(--fbd-shadow-sm);
    transition: transform .28s var(--fbd-ease), box-shadow .28s var(--fbd-ease), border-color .28s ease;
}

.fbd-kpi::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--kpi-color, var(--fbd-brand));
    opacity: .9;
}

.fbd-kpi::after {
    content: '';
    position: absolute; right: -40px; top: -60px;
    width: 170px; height: 170px; border-radius: 50%;
    background: var(--kpi-color, var(--fbd-brand));
    opacity: .05;
    transition: transform .45s var(--fbd-ease), opacity .45s ease;
}

.fbd-kpi:hover {
    transform: translateY(-3px);
    box-shadow: var(--fbd-shadow-lg);
    border-color: var(--fbd-border-strong);
}
.fbd-kpi:hover::after { transform: scale(1.25); opacity: .09; }

.fbd-kpi-top {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    position: relative; z-index: 1;
}

.fbd-kpi-label {
    font-size: .695rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fbd-faint);
    margin-bottom: 6px;
}

.fbd-kpi-value {
    font-size: 2.05rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--fbd-ink);
}

.fbd-kpi-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid; place-items: center;
    font-size: 1.05rem;
    color: var(--kpi-color, var(--fbd-brand));
    background: var(--kpi-tint, var(--fbd-brand-50));
    flex-shrink: 0;
}

.fbd-kpi-meta {
    display: flex; align-items: center; gap: 7px;
    margin-top: 9px;
    font-size: .755rem; font-weight: 600;
    color: var(--fbd-muted);
    position: relative; z-index: 1;
}

.fbd-delta {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: .715rem; font-weight: 800;
}
.fbd-delta-up   { color: var(--fbd-success); background: var(--fbd-success-50); }
.fbd-delta-down { color: var(--fbd-danger);  background: var(--fbd-danger-50); }
.fbd-delta-flat { color: var(--fbd-muted);   background: #f1f5f9; }

.fbd-kpi-spark { display: block; margin: 6px -18px 0; height: 42px; width: calc(100% + 36px); }

.fbd-kpi--total     { --kpi-color: #4f46e5; --kpi-tint: #eef2ff; }
.fbd-kpi--addon     { --kpi-color: #e11d48; --kpi-tint: #fff1f3; }
.fbd-kpi--pending   { --kpi-color: #d97706; --kpi-tint: #fffbeb; }
.fbd-kpi--delivered { --kpi-color: #059669; --kpi-tint: #ecfdf5; }

/* ---------- 8. Charts ---------------------------------------------------- */
.fbd-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
}

@media (max-width: 1099.98px) { .fbd-chart-grid { grid-template-columns: 1fr; } }

.fbd-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.fbd-legend-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .755rem; font-weight: 700;
    color: var(--fbd-muted);
}

.fbd-legend-swatch { width: 9px; height: 9px; border-radius: 3px; }

.fbd-chart { width: 100%; display: block; overflow: visible; }

.fbd-chart .grid-line { stroke: var(--fbd-border); stroke-width: 1; shape-rendering: crispEdges; }
.fbd-chart .axis-label { fill: var(--fbd-faint); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }

.series-line {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: var(--dash, 1200);
    stroke-dashoffset: var(--dash, 1200);
    animation: fbd-draw 1.5s var(--fbd-ease) forwards;
}

@keyframes fbd-draw { to { stroke-dashoffset: 0; } }

.series-area { opacity: 0; animation: fbd-fade .9s .5s ease forwards; }
@keyframes fbd-fade { to { opacity: 1; } }

.series-dot { opacity: 0; animation: fbd-fade .5s .9s ease forwards; }

.fbd-chart .hover-band { fill: transparent; cursor: pointer; }
.fbd-chart .hover-band:hover + .hover-rule { opacity: 1; }
.fbd-chart .hover-rule { stroke: var(--fbd-brand-400); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .15s ease; }

.fbd-tooltip {
    position: fixed;
    z-index: 2000;
    pointer-events: none;
    background: #0b1220;
    color: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 12px 28px rgba(11, 18, 32, .28);
    opacity: 0;
    transform: translate(-50%, -118%) scale(.96);
    transition: opacity .15s ease, transform .15s var(--fbd-ease);
    white-space: nowrap;
}
.fbd-tooltip.is-visible { opacity: 1; transform: translate(-50%, -118%) scale(1); }
.fbd-tooltip b { font-weight: 800; }
.fbd-tooltip .t-title { color: #94a3b8; font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: 3px; }
.fbd-tooltip .t-row { display: flex; align-items: center; gap: 6px; }
.fbd-tooltip .t-swatch { width: 8px; height: 8px; border-radius: 2px; }

/* Donut */
.fbd-donut-wrap { position: relative; display: grid; place-items: center; }
.fbd-donut-center { position: absolute; text-align: center; }
.fbd-donut-value { font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--fbd-ink); }
.fbd-donut-label { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--fbd-faint); margin-top: 4px; }

.fbd-donut-seg {
    stroke-dasharray: var(--len) 999;
    stroke-dashoffset: var(--len);
    animation: fbd-draw 1.1s var(--fbd-ease) forwards;
    transition: opacity .2s ease;
}
.fbd-donut-wrap:hover .fbd-donut-seg { opacity: .45; }
.fbd-donut-wrap .fbd-donut-seg:hover { opacity: 1; }

/* Status bars */
.fbd-bar-row { display: grid; grid-template-columns: 92px 1fr 42px; align-items: center; gap: 12px; margin-bottom: 13px; }
.fbd-bar-row:last-child { margin-bottom: 0; }
.fbd-bar-name { font-size: .78rem; font-weight: 700; color: var(--fbd-ink-2); }
.fbd-bar-track { display: block; height: 9px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.fbd-bar-fill {
    display: block;
    height: 100%; border-radius: 999px;
    width: 0;
    transition: width 1.1s var(--fbd-ease);
}
.fbd-bar-count { font-size: .8rem; font-weight: 800; color: var(--fbd-ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Pipeline / flow strip */
.fbd-flow {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.fbd-flow-node {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--fbd-surface-2);
    border: 1px solid var(--fbd-border);
    font-size: .78rem; font-weight: 700;
    color: var(--fbd-ink-2);
}
.fbd-flow-node i { font-size: 1rem; }
.fbd-flow-arrow { color: var(--fbd-faint); font-size: .8rem; }
.fbd-flow-node.is-shopify i { color: var(--fbd-shopify); }
.fbd-flow-node.is-engine i { color: var(--fbd-brand); }
.fbd-flow-node.is-wa i { color: var(--fbd-whatsapp); }

/* ---------- 9. Form controls --------------------------------------------- */
.fbd-field { margin-bottom: 16px; }

.fbd-label {
    display: block;
    font-size: .765rem;
    font-weight: 700;
    color: var(--fbd-ink-2);
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}

.fbd-input-wrap { position: relative; display: block; }

.fbd-input-wrap > i.fbd-input-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--fbd-faint);
    font-size: .95rem;
    pointer-events: none;
    transition: color .18s ease;
    z-index: 2;
}

.fbd-input-wrap:focus-within > i.fbd-input-icon { color: var(--fbd-brand); }

input.fbd-input,
select.fbd-input,
.fbd-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--fbd-border-strong);
    border-radius: 11px;
    background: var(--fbd-surface);
    font-size: .885rem;
    font-weight: 500;
    color: var(--fbd-ink);
    font-family: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    box-shadow: var(--fbd-shadow-xs);
}

.fbd-input-wrap > i.fbd-input-icon ~ input.fbd-input,
.fbd-input-wrap > i.fbd-input-icon ~ .fbd-input { padding-left: 39px; }

.fbd-input::placeholder { color: #aab4c4; font-weight: 500; }

input.fbd-input:focus,
select.fbd-input:focus,
.fbd-input:focus {
    outline: none;
    border-color: var(--fbd-brand-400);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
    background: #fff;
}

select.fbd-input {
    appearance: none; -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

.fbd-input-sm { height: 38px; font-size: .83rem; border-radius: 10px; }

.fbd-pass-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: none; background: transparent;
    color: var(--fbd-faint);
    border-radius: 8px;
    cursor: pointer;
    z-index: 3;
    transition: color .15s ease, background-color .15s ease;
}
.fbd-pass-toggle:hover { color: var(--fbd-brand); background: var(--fbd-brand-50); }

.fbd-error-text {
    display: block;
    margin-top: 6px;
    font-size: .755rem;
    font-weight: 700;
    color: var(--fbd-danger);
}

/* ---------- 10. Alerts --------------------------------------------------- */
.fbd-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid transparent;
    margin-bottom: 16px;
    animation: fbd-rise .45s var(--fbd-ease) both;
}

.fbd-alert i { font-size: 1rem; line-height: 1.35; flex-shrink: 0; }
.fbd-alert-danger  { background: var(--fbd-danger-50);  border-color: #fecdd3; color: #9f1239; }
.fbd-alert-success { background: var(--fbd-success-50); border-color: #a7f3d0; color: #065f46; }
.fbd-alert-info    { background: var(--fbd-info-50);    border-color: #bae6fd; color: #075985; }

/* ---------- 11. Table ---------------------------------------------------- */
.fbd-table-wrap {
    overflow-x: auto;
    border-radius: 0 0 var(--fbd-r-lg) var(--fbd-r-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--fbd-border-strong) transparent;
}
.fbd-table-wrap::-webkit-scrollbar { height: 6px; }
.fbd-table-wrap::-webkit-scrollbar-track { background: transparent; }
.fbd-table-wrap::-webkit-scrollbar-thumb { background: var(--fbd-border-strong); border-radius: 999px; }

.fbd-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    min-width: 1140px;
}

.fbd-table th {
    background: #f8fafc;
    color: var(--fbd-faint);
    font-weight: 800;
    font-size: .685rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--fbd-border-strong);
    white-space: nowrap;
    position: sticky; top: 0; z-index: 2;
}

.fbd-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--fbd-border);
    vertical-align: middle;
    font-size: .855rem;
    background: #fff;
}

.fbd-table tbody tr { transition: background-color .16s ease; }
.fbd-table tbody tr:hover td { background: #f8faff; }
.fbd-table tbody tr:last-child td { border-bottom: none; }

/* Column alignment & widths */
.fbd-table th.fbd-col-order, .fbd-table td.fbd-col-order { width: 120px; min-width: 110px; }
.fbd-table th.fbd-col-cust, .fbd-table td.fbd-col-cust { min-width: 190px; }
.fbd-table th.fbd-col-items, .fbd-table td.fbd-col-items { min-width: 180px; max-width: 270px; }
.fbd-table th.fbd-col-wa, .fbd-table td.fbd-col-wa { width: 115px; min-width: 110px; text-align: center; }
.fbd-table th.fbd-col-status, .fbd-table td.fbd-col-status { width: 135px; min-width: 130px; text-align: center; }
.fbd-table th.fbd-col-received, .fbd-table td.fbd-col-received { width: 135px; min-width: 130px; white-space: nowrap; }
.fbd-table th.fbd-col-actions, .fbd-table td.fbd-col-actions { width: 355px; min-width: 350px; text-align: right; }

.fbd-order-no {
    font-weight: 800;
    font-size: .92rem;
    color: var(--fbd-ink);
    font-variant-numeric: tabular-nums;
}

.fbd-cust {
    display: flex; align-items: center; gap: 10px;
}

.fbd-cust-avatar {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    font-size: .72rem; font-weight: 800;
    color: var(--fbd-brand-700);
    background: var(--fbd-brand-50);
    border: 1px solid var(--fbd-brand-100);
    flex-shrink: 0;
}

.fbd-cust-name { font-weight: 700; color: var(--fbd-ink); line-height: 1.25; }
.fbd-cust-meta { font-size: .745rem; color: var(--fbd-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 2px; }

.fbd-wa-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--fbd-whatsapp);
    font-weight: 800;
    font-size: .72rem;
    transition: opacity .15s ease;
}
.fbd-wa-link:hover { opacity: .7; color: var(--fbd-whatsapp); }

/* Pills */
.fbd-pill {
    display: inline-flex; align-items: center; gap: 5px;
    height: 24px; padding: 0 10px;
    border-radius: 999px;
    font-size: .715rem; font-weight: 800;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.fbd-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.fbd-pill-addon   { color: #be123c; background: var(--fbd-danger-50); border-color: #fecdd3; }
.fbd-pill-item    { color: var(--fbd-ink-2); background: var(--fbd-surface-2); border-color: var(--fbd-border-strong); margin: 2px 4px 2px 0; }
.fbd-pill-item i  { color: var(--fbd-brand-400); }

.fbd-pill-sent    { color: #047857; background: var(--fbd-whatsapp-50); border-color: #a7f3d0; }
.fbd-pill-pending { color: #b45309; background: var(--fbd-warning-50); border-color: #fde68a; }
.fbd-pill-failed  { color: #be123c; background: var(--fbd-danger-50); border-color: #fecdd3; }
.fbd-pill-na      { color: var(--fbd-muted); background: #f6f8fb; border-color: var(--fbd-border-strong); }

.fbd-pill-new          { color: #3730a3; background: var(--fbd-brand-50); border-color: var(--fbd-brand-100); }
.fbd-pill-acknowledged { color: #075985; background: var(--fbd-info-50); border-color: #bae6fd; }
.fbd-pill-preparing    { color: #b45309; background: var(--fbd-warning-50); border-color: #fde68a; }
.fbd-pill-ready        { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
.fbd-pill-delivered    { color: #047857; background: var(--fbd-success-50); border-color: #a7f3d0; }
.fbd-pill-cancelled    { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }

.fbd-empty { text-align: center; padding: 64px 20px; }
.fbd-empty-icon {
    width: 64px; height: 64px; border-radius: 20px;
    display: grid; place-items: center; margin: 0 auto 16px;
    font-size: 1.6rem; color: var(--fbd-brand);
    background: var(--fbd-brand-50);
}
.fbd-empty h6 { font-weight: 800; color: var(--fbd-ink); margin-bottom: 4px; }
.fbd-empty p { color: var(--fbd-muted); font-size: .82rem; margin: 0; }

/* Toolbar */
.fbd-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 210px auto;
    gap: 12px;
    align-items: center;
}
@media (max-width: 767.98px) { .fbd-toolbar { grid-template-columns: 1fr; } }

.fbd-toolbar-actions { display: flex; gap: 8px; }

/* ---------- 12. Auth ----------------------------------------------------- */
.fbd-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 18px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(99, 102, 241, .13), transparent 42%),
        radial-gradient(circle at 84% 82%, rgba(37, 211, 102, .12), transparent 44%),
        radial-gradient(circle at 78% 6%, rgba(219, 39, 119, .08), transparent 38%),
        var(--fbd-canvas);
}

.fbd-auth::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
    pointer-events: none;
}

.fbd-auth-inner { position: relative; z-index: 1; width: 100%; max-width: 428px; }

.fbd-auth-card {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--fbd-r-xl);
    box-shadow: 0 28px 60px rgba(15, 23, 42, .10), 0 6px 16px rgba(15, 23, 42, .05);
    padding: 34px 32px 28px;
    animation: fbd-rise .6s var(--fbd-ease) both;
}

@media (max-width: 479.98px) { .fbd-auth-card { padding: 26px 20px 22px; } }

@keyframes fbd-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fbd-auth-logo {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: grid; place-items: center;
    margin: 0 auto 16px;
    font-size: 1.5rem; color: #fff;
    background: linear-gradient(140deg, #6366f1 0%, #4f46e5 48%, #db2777 130%);
    box-shadow: 0 12px 26px rgba(79, 70, 229, .3);
    position: relative;
}
.fbd-auth-logo::after {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%);
}

.fbd-auth-title { font-size: 1.34rem; font-weight: 800; margin: 0 0 5px; color: var(--fbd-ink); }
.fbd-auth-sub { font-size: .835rem; color: var(--fbd-muted); font-weight: 500; margin: 0; }

.fbd-auth-brandline {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: .7rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--fbd-faint);
    margin-bottom: 22px;
}
.fbd-auth-brandline::before,
.fbd-auth-brandline::after {
    content: ''; height: 1px; flex: 1; max-width: 46px;
    background: linear-gradient(90deg, transparent, var(--fbd-border-strong));
}
.fbd-auth-brandline::after { background: linear-gradient(90deg, var(--fbd-border-strong), transparent); }

.fbd-auth-foot {
    margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--fbd-border);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: .755rem; font-weight: 700; color: var(--fbd-faint);
}
.fbd-auth-foot i { color: var(--fbd-success); }

.fbd-auth-trust {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 20px;
    font-size: .715rem; font-weight: 700; color: var(--fbd-faint);
}
.fbd-auth-trust span { display: inline-flex; align-items: center; gap: 5px; }
.fbd-auth-trust .is-shopify i { color: var(--fbd-shopify); }
.fbd-auth-trust .is-wa i { color: var(--fbd-whatsapp-500); }

/* ---------- 13. Motion utilities ----------------------------------------- */
.fbd-anim { animation: fbd-rise .55s var(--fbd-ease) both; }
.fbd-d1 { animation-delay: .05s; }
.fbd-d2 { animation-delay: .11s; }
.fbd-d3 { animation-delay: .17s; }
.fbd-d4 { animation-delay: .23s; }
.fbd-d5 { animation-delay: .29s; }
.fbd-d6 { animation-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ---------- 14. WebForms normalisation ----------------------------------- */
.aspNetDisabled { opacity: .6; }
input[type="submit"].fbd-btn, input[type="button"].fbd-btn { -webkit-appearance: none; appearance: none; }
.fbd-table td, .fbd-table th { border-color: var(--fbd-border); }

/* ---------- 15. Auth — split-screen brand panel --------------------------- */
.fbd-auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

@media (max-width: 991.98px) {
    .fbd-auth-split { grid-template-columns: 1fr; }
}

/* Left brand panel */
.fbd-brandpanel {
    position: relative;
    overflow: hidden;
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #eef2ff;
    background:
        radial-gradient(820px 520px at 12% 8%, rgba(129, 140, 248, .40), transparent 60%),
        radial-gradient(700px 520px at 92% 92%, rgba(219, 39, 119, .34), transparent 58%),
        radial-gradient(520px 420px at 88% 12%, rgba(37, 211, 102, .18), transparent 62%),
        linear-gradient(155deg, #211d52 0%, #1a1745 40%, #131132 100%);
}

@media (max-width: 991.98px) {
    .fbd-brandpanel { padding: 30px 24px 34px; min-height: auto; }
}

.fbd-brandpanel::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 30% 35%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 30% 35%, #000 0%, transparent 78%);
    pointer-events: none;
}

.fbd-brandpanel > * { position: relative; z-index: 1; }

.fbd-bp-brand { display: flex; align-items: center; gap: 12px; color: #fff; }

.fbd-bp-logo {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    font-size: 1.2rem; color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.fbd-bp-name { font-weight: 800; font-size: 1.06rem; line-height: 1.15; letter-spacing: -0.02em; }
.fbd-bp-tag { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(224, 231, 255, .62); }

.fbd-bp-mid { padding: 46px 0; max-width: 520px; }
@media (max-width: 991.98px) { .fbd-bp-mid { padding: 28px 0 22px; } }

.fbd-bp-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .705rem; font-weight: 800; letter-spacing: .04em;
    color: #d7defb;
    margin-bottom: 20px;
}
.fbd-bp-eyebrow .fbd-dot { background: #4ade80; animation: fbd-pulse-light 2.4s var(--fbd-ease) infinite; }

@keyframes fbd-pulse-light {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.fbd-bp-head {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
    color: #fff;
    margin: 0 0 14px;
}
@media (max-width: 991.98px) { .fbd-bp-head { font-size: 1.7rem; } }

.fbd-bp-head em {
    font-style: normal;
    background: linear-gradient(100deg, #a5b4fc 0%, #6ee7b7 88%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fbd-bp-copy {
    font-size: .93rem;
    line-height: 1.68;
    color: rgba(224, 231, 255, .74);
    font-weight: 500;
    margin: 0 0 30px;
    max-width: 440px;
}

/* Flow diagram */
.fbd-bp-flow {
    display: flex; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(10px);
    max-width: 470px;
}

.fbd-bp-step {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    padding: 4px 2px;
}

.fbd-bp-step-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.08rem;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    animation: fbd-float 3.6s ease-in-out infinite;
}
.fbd-bp-step:nth-child(3) .fbd-bp-step-icon { animation-delay: .35s; }
.fbd-bp-step:nth-child(5) .fbd-bp-step-icon { animation-delay: .7s; }

.fbd-bp-step.is-shopify .fbd-bp-step-icon { color: #a3e635; }
.fbd-bp-step.is-engine  .fbd-bp-step-icon { color: #a5b4fc; }
.fbd-bp-step.is-wa      .fbd-bp-step-icon { color: #4ade80; }

@keyframes fbd-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.fbd-bp-step-label { font-size: .705rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.fbd-bp-step-note  { font-size: .645rem; font-weight: 600; color: rgba(224, 231, 255, .5); }

.fbd-bp-conn {
    align-self: center;
    width: 34px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(165,180,252,.15), rgba(165,180,252,.7), rgba(165,180,252,.15));
    background-size: 200% 100%;
    animation: fbd-stream 1.9s linear infinite;
    margin-top: -18px;
}

@keyframes fbd-stream {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.fbd-bp-foot {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    font-size: .74rem; font-weight: 700;
    color: rgba(224, 231, 255, .58);
}
.fbd-bp-foot span { display: inline-flex; align-items: center; gap: 6px; }
.fbd-bp-foot i { color: #6ee7b7; font-size: .9rem; }

/* Right form column */
.fbd-formpanel {
    display: flex; align-items: center; justify-content: center;
    padding: 48px 40px;
    background: var(--fbd-surface);
    position: relative;
}
@media (max-width: 991.98px) { .fbd-formpanel { padding: 34px 20px 44px; } }

.fbd-formpanel::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(560px 380px at 78% 4%, rgba(79, 70, 229, .045), transparent 62%);
    pointer-events: none;
}

.fbd-form-inner {
    position: relative;
    width: 100%;
    max-width: 388px;
    animation: fbd-rise .55s var(--fbd-ease) both;
}

.fbd-form-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--fbd-brand-50);
    border: 1px solid var(--fbd-brand-100);
    color: var(--fbd-brand-700);
    font-size: .69rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 16px;
}

.fbd-form-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; color: var(--fbd-ink); }
.fbd-form-sub { font-size: .855rem; color: var(--fbd-muted); font-weight: 500; margin: 0 0 26px; }

.fbd-form-foot {
    margin-top: 26px; padding-top: 18px;
    border-top: 1px solid var(--fbd-border);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: .74rem; font-weight: 700; color: var(--fbd-faint);
}
.fbd-form-foot .is-secure { display: inline-flex; align-items: center; gap: 6px; }
.fbd-form-foot .is-secure i { color: var(--fbd-success); }

/* ---------- 16. Shell extras & utilities --------------------------------- */
.fbd-topbar-right { display: flex; align-items: center; gap: 10px; }

@media (max-width: 991.98px) {
    .fbd-topbar-right .fbd-chip-clock { display: none; }
}

@media (max-width: 767.98px) {
    .fbd-brand-sub { display: none; }
    .fbd-topbar-right .fbd-chip-live { display: none; }
    .fbd-brand-name { font-size: .98rem; }
    .fbd-user {
        max-width: 150px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

@media (max-width: 479.98px) {
    .fbd-user { padding-right: 0; max-width: none; }
    .fbd-user > *:not(.fbd-avatar) { display: none; }
    .fbd-user { border: none; background: transparent; box-shadow: none; padding: 0; }
}

.fbd-chip-clock i { color: var(--fbd-faint); }

.fbd-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    max-width: var(--fbd-rail); width: 100%;
    margin: 0 auto;
    padding: 20px var(--fbd-gutter) 28px;
    font-size: .745rem; font-weight: 600;
    color: var(--fbd-faint);
    border-top: 1px solid var(--fbd-border);
}

.fbd-footer-meta { display: inline-flex; align-items: center; gap: 7px; }
.fbd-footer-meta .bi-bag-check { color: var(--fbd-shopify); }
.fbd-footer-meta .bi-whatsapp { color: var(--fbd-whatsapp); }
.fbd-footer-meta .bi-arrow-right { color: var(--fbd-faint); font-size: .7rem; }

.d-block { display: block; }
.fbd-section { margin-top: 18px; }

.fbd-pagehead {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 22px;
}

.fbd-pagehead-actions { display: flex; align-items: center; gap: 10px; }

/* Card head that stacks a toolbar underneath on small screens */
.fbd-card-head-stack { flex-wrap: wrap; row-gap: 12px; }
.fbd-card-head-stack .fbd-toolbar { flex: 1; min-width: 300px; }
@media (max-width: 991.98px) { .fbd-card-head-stack .fbd-toolbar { min-width: 100%; } }

/* Legend variant stacked under the donut */
.fbd-legend-stack { justify-content: center; margin-top: 16px; gap: 12px 16px; }
.fbd-legend-stack .fbd-legend-item b { font-weight: 800; }

/* Automation mini stats */
.fbd-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.fbd-mini {
    display: flex; flex-direction: column; gap: 3px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--fbd-surface-2);
    border: 1px solid var(--fbd-border);
    transition: border-color .2s ease, background-color .2s ease;
}
.fbd-mini:hover { border-color: var(--fbd-brand-100); background: var(--fbd-brand-50); }

.fbd-mini-label { font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fbd-faint); }
.fbd-mini-value { font-size: 1.05rem; font-weight: 800; color: var(--fbd-ink); line-height: 1.2; }

/* Table cell helpers */
.fbd-order-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.fbd-cust {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fbd-cust-info { min-width: 0; }

.fbd-items { display: flex; flex-wrap: wrap; gap: 4px; max-width: 270px; }

/* Table row actions */
.fbd-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.fbd-status-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    padding: 3px 5px;
    border-radius: 10px;
    border: 1px solid var(--fbd-border-strong);
}

.fbd-status-select {
    width: 146px !important;
    height: 30px !important;
    padding: 0 22px 0 8px !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    border-radius: 7px !important;
    border: 1px solid transparent !important;
    background-color: #fff !important;
    color: var(--fbd-ink) !important;
    background-size: 10px 10px !important;
    background-position: right 7px center !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    text-overflow: clip;
}
.fbd-status-select:focus {
    border-color: var(--fbd-brand-400) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12) !important;
}

.fbd-btn-save {
    height: 30px !important;
    padding: 0 9px !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    border-radius: 7px !important;
    background: linear-gradient(180deg, #5b52ea, var(--fbd-brand-700)) !important;
    color: #fff !important;
    border: 1px solid var(--fbd-brand-700) !important;
    box-shadow: 0 2px 5px rgba(79, 70, 229, .22) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    transition: all .16s ease;
}
.fbd-btn-save:hover {
    color: #fff !important;
    background: #4338ca !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, .32) !important;
}
.fbd-btn-save i { font-size: .85rem; }

.fbd-action-btns {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fbd-btn-action {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: #fff !important;
    border: 1px solid var(--fbd-border-strong) !important;
    color: var(--fbd-ink-2) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
    text-decoration: none !important;
    transition: all .16s ease;
}
.fbd-btn-action:hover {
    background: var(--fbd-brand-50) !important;
    border-color: var(--fbd-brand-200) !important;
    color: var(--fbd-brand-700) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, .10) !important;
}
.fbd-btn-action i {
    font-size: .85rem;
    color: var(--fbd-muted);
    transition: color .16s ease;
}
.fbd-btn-action:hover i {
    color: var(--fbd-brand-700);
}

.fbd-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
    white-space: nowrap;
}
.fbd-time span:first-child { font-weight: 700; color: var(--fbd-ink-2); font-size: .82rem; }
.fbd-time-sub { font-size: .72rem; color: var(--fbd-faint); font-weight: 600; font-variant-numeric: tabular-nums; }

/* GridView emits its own table markup — normalise it */
.fbd-table > tbody > tr > th { background: #f8fafc; }
.fbd-table tr.fbd-empty-row td { padding: 0; }

/* Password strength meter */
.fbd-meter { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.fbd-meter-bar {
    display: block; flex: 1; height: 5px; border-radius: 999px;
    background: #eef1f6; overflow: hidden;
}
.fbd-meter-bar i {
    display: block; height: 100%; width: 0;
    border-radius: 999px; background: var(--fbd-faint);
    transition: width .35s var(--fbd-ease), background-color .3s ease;
}
.fbd-meter-text { font-size: .705rem; font-weight: 800; color: var(--fbd-faint); min-width: 84px; text-align: right; }

.fbd-meter.is-weak  .fbd-meter-bar i { background: var(--fbd-danger); }
.fbd-meter.is-fair  .fbd-meter-bar i { background: var(--fbd-warning); }
.fbd-meter.is-good  .fbd-meter-bar i { background: #0284c7; }
.fbd-meter.is-great .fbd-meter-bar i { background: var(--fbd-success); }
.fbd-meter.is-weak  .fbd-meter-text { color: var(--fbd-danger); }
.fbd-meter.is-fair  .fbd-meter-text { color: var(--fbd-warning); }
.fbd-meter.is-good  .fbd-meter-text { color: #0284c7; }
.fbd-meter.is-great .fbd-meter-text { color: var(--fbd-success); }

/* Login form: label row */
.fbd-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fbd-label-row .fbd-label { margin-bottom: 0; }

/* Validators render as spans — keep them on their own line */
span.fbd-error-text { display: block; }
