/* ════════════════════════════════════════════════════════════════
   OrderProject design system — slate / azure editorial palette.
   Same architecture as TGift's cream-theme (animated radial body
   gradient + frosted-glass cards + Georgia serif headings) but on
   a cool blue palette instead of warm cream/gold.
   Loaded LAST in App.razor so it overrides Bootstrap & Syncfusion.
   ════════════════════════════════════════════════════════════════ */

:root {
    /* ── Palette: slate / azure ────────────────────── */
    --op-bg-1:        #eef2f7;
    --op-bg-2:        #d8e2ee;
    --op-radial-1:    #e3eaf4;
    --op-radial-2:    #d0dcec;

    --op-text:         #14253d;
    --op-text-strong:  #0a1729;
    --op-text-muted:   #5a6c85;
    --op-text-soft:    #6b7d96;

    --op-eyebrow:      #2f5496;
    --op-azure:        #2563eb;
    --op-azure-deep:   #1d4ed8;
    --op-azure-light:  #93c5fd;

    --op-line:         rgba(37, 99, 235, .22);
    --op-line-strong:  rgba(37, 99, 235, .50);

    --op-card-bg:        rgba(255, 255, 255, .65);
    --op-card-bg-soft:   rgba(255, 255, 255, .55);
    --op-card-bg-strong: rgba(255, 255, 255, .82);
    --op-card-border:    rgba(37, 99, 235, .20);

    /* ── AppBar: dark navy ─────────────────────────── */
    --op-appbar-bg:        #0f172a;
    --op-appbar-line:      rgba(148, 163, 184, .08);
    --op-appbar-text:      #f1f5f9;
    --op-appbar-text-mut:  #94a3b8;
    --op-appbar-active:    #818cf8;
    --op-appbar-active-bg: rgba(129, 140, 248, .12);

    /* ── Status colors ─────────────────────────────── */
    --op-success:      #059669;
    --op-success-soft: #d1fae5;
    --op-warn:         #d97706;
    --op-warn-soft:    #fef3c7;
    --op-danger:       #dc2626;
    --op-danger-soft:  #fee2e2;
    --op-info:         #0284c7;
    --op-info-soft:    #dbeafe;

    /* ── Spacing ───────────────────────────────────── */
    --op-sp-1: .25rem;
    --op-sp-2: .5rem;
    --op-sp-3: .75rem;
    --op-sp-4: 1rem;
    --op-sp-5: 1.5rem;
    --op-sp-6: 2rem;
    --op-sp-8: 3rem;

    /* ── Radius / shadow ───────────────────────────── */
    --op-r-sm: 6px;
    --op-r-md: 10px;
    --op-r-lg: 14px;
    --op-r-xl: 20px;

    --op-shadow-sm: 0 1px 2px rgba(20, 37, 61, .06);
    --op-shadow:    0 2px 8px rgba(20, 37, 61, .08);
    --op-shadow-md: 0 12px 28px rgba(20, 37, 61, .12);
    --op-shadow-lg: 0 16px 40px rgba(20, 37, 61, .18);

    /* ── Layout ────────────────────────────────────── */
    --op-appbar-h:  56px;
    --op-content-w: 1400px;

    /* ── Typography — Georgia serif for editorial headings ── */
    --op-serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
    --op-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Roboto, Arial, sans-serif;
}

/* ──────────────────────────────────────────────────────
   Body canvas — slate gradient + ambient drift + grain
   (mirrors cream-theme but in blue)
   ────────────────────────────────────────────────────── */
html, body {
    background: transparent;
    font-family: var(--op-sans);
}

body {
    min-height: 100vh;
    color: var(--op-text);
    background-color: var(--op-bg-1);
    background-image:
        radial-gradient(900px 500px at 25% 18%, var(--op-radial-1) 0%, transparent 65%),
        radial-gradient(700px 500px at 80% 90%, var(--op-radial-2) 0%, transparent 70%),
        linear-gradient(135deg, var(--op-bg-1) 0%, var(--op-bg-2) 100%);
    background-attachment: fixed;
    background-size: 110% 110%, 110% 110%, 100% 100%;
    animation: op-ambient 28s ease-in-out infinite;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(20, 37, 61, .045) 1px, transparent 1px),
        radial-gradient(rgba(20, 37, 61, .035) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1.5px 1.5px;
    mix-blend-mode: multiply;
    opacity: .55;
}

@keyframes op-ambient {
    0%, 100% { background-position: 25% 18%, 80% 90%, 0% 0%; }
    50%      { background-position: 32% 24%, 72% 84%, 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

/* App content sits above the grain */
.op-shell, .op-appbar, .op-body, article.content { position: relative; z-index: 1; }

/* Touch-friendly tap targets on small screens */
@media (max-width: 480px) {
    html, body { font-size: 15px; }
}

a { color: var(--op-azure); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────
   App shell + AppBar (dark navy, like TGift)
   ────────────────────────────────────────────────────── */
.op-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.op-appbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--op-appbar-bg);
    border-bottom: 1px solid var(--op-appbar-line);
    height: var(--op-appbar-h);
}

.op-body {
    flex: 1;
    width: 100%;
    padding: var(--op-sp-5) var(--op-sp-4) var(--op-sp-8);
}
@media (min-width: 768px) {
    .op-body { padding: var(--op-sp-6) var(--op-sp-5) var(--op-sp-8); }
}

/* ──────────────────────────────────────────────────────
   Page container + editorial heading style
   ────────────────────────────────────────────────────── */
.op-page {
    max-width: var(--op-content-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-5);
}

.op-page__head {
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-1);
}
.op-page__title {
    margin: 0;
    font-family: var(--op-serif);   /* ← editorial serif */
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--op-text-strong);
    font-size: 1.65rem;
}
@media (min-width: 768px) {
    .op-page__title { font-size: 1.95rem; }
}
.op-page__subtitle {
    margin: 0;
    font-family: var(--op-serif);   /* ← italic warm subtitle, like TGift */
    font-style: italic;
    color: var(--op-text-muted);
    font-size: 1rem;
}

/* ──────────────────────────────────────────────────────
   Cards / panels — frosted glass with azure border
   ────────────────────────────────────────────────────── */
.op-card {
    background: var(--op-card-bg);
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-r-lg);
    box-shadow: var(--op-shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--op-sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-4);
    transition: border-color .2s, box-shadow .2s;
}
.op-card:hover {
    border-color: var(--op-line-strong);
    box-shadow: var(--op-shadow-md);
}

.op-card__title {
    font-family: var(--op-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--op-text-strong);
    letter-spacing: -.01em;
}
.op-card__subtitle {
    font-size: .85rem;
    color: var(--op-text-muted);
}

/* ──────────────────────────────────────────────────────
   Buttons — azure primary, ghost neutral
   ────────────────────────────────────────────────────── */
.op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--op-sp-2);
    padding: .55rem 1rem;
    min-height: 40px;
    font-family: var(--op-sans);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid var(--op-line);
    background: var(--op-card-bg-soft);
    color: var(--op-text);
    border-radius: var(--op-r-md);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .05s;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.op-btn:hover    { background: rgba(255, 255, 255, .85); border-color: var(--op-line-strong); }
.op-btn:active   { transform: translateY(1px); }
.op-btn:disabled { opacity: .55; cursor: not-allowed; }

.op-btn--primary,
body .btn-primary {
    background: var(--op-azure) !important;
    border-color: var(--op-azure) !important;
    color: #fff !important;
    backdrop-filter: none;
}
.op-btn--primary:hover,
body .btn-primary:hover,
body .btn-primary:focus {
    background: var(--op-azure-deep) !important;
    border-color: var(--op-azure-deep) !important;
    color: #fff !important;
}

.op-btn--danger {
    background: var(--op-danger);
    border-color: var(--op-danger);
    color: #fff;
    backdrop-filter: none;
}
.op-btn--danger:hover { background: #b91c1c; border-color: #b91c1c; }

.op-btn--ghost {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
}
.op-btn--ghost:hover { background: rgba(37, 99, 235, .08); }

.op-btn--block { width: 100%; }

.op-actions { display: flex; gap: var(--op-sp-2); flex-wrap: wrap; }
.op-text-right { text-align: right; }

/* ──────────────────────────────────────────────────────
   Form fields — semi-transparent with azure focus ring
   ────────────────────────────────────────────────────── */
.op-input,
.op-select,
.op-textarea,
input.form-control, select.form-select, textarea.form-control {
    width: 100%;
    padding: .55rem .75rem;
    min-height: 40px;
    font-family: var(--op-sans);
    font-size: .95rem;
    color: var(--op-text);
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--op-line);
    border-radius: var(--op-r-md);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.op-input:focus, .op-select:focus, .op-textarea:focus,
input.form-control:focus, select.form-select:focus, textarea.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, .95);
    border-color: var(--op-azure);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.op-lbl {
    display: block;
    font-family: var(--op-sans);
    font-size: .8rem;
    font-weight: 600;
    color: var(--op-text-muted);
    margin-bottom: var(--op-sp-1);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.op-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--op-sp-3);
    align-items: start;
}
@media (min-width: 768px) {
    .op-form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.op-check {
    display: inline-flex;
    align-items: center;
    gap: var(--op-sp-2);
    font-size: .95rem;
    color: var(--op-text);
}

/* ──────────────────────────────────────────────────────
   Tables — frosted glass with azure header accent
   ────────────────────────────────────────────────────── */
.op-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-r-md);
    background: var(--op-card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-overflow-scrolling: touch;
}

.op-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.op-table thead th {
    background: rgba(255, 255, 255, .35);
    color: var(--op-eyebrow);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .14em;
    padding: var(--op-sp-3) var(--op-sp-4);
    border-bottom: 1px solid var(--op-line);
    text-align: left;
    white-space: nowrap;
}
.op-table tbody td {
    padding: var(--op-sp-3) var(--op-sp-4);
    border-top: 1px solid var(--op-line);
    color: var(--op-text);
    vertical-align: middle;
}
.op-table tbody tr:hover { background: rgba(255, 255, 255, .35); }

/* Mobile: stack rows as cards via data-label="…" attributes */
@media (max-width: 600px) {
    .op-table thead { display: none; }
    .op-table, .op-table tbody, .op-table tr, .op-table td { display: block; width: 100%; }
    .op-table tr {
        padding: var(--op-sp-3);
        border-top: 1px solid var(--op-line);
    }
    .op-table tbody td {
        padding: var(--op-sp-2) 0;
        border: none;
        display: flex;
        justify-content: space-between;
        gap: var(--op-sp-3);
    }
    .op-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--op-text-muted);
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
    .op-table tbody td:not([data-label])::before { content: ""; }
}

/* ──────────────────────────────────────────────────────
   Banners / pills
   ────────────────────────────────────────────────────── */
.op-banner {
    padding: var(--op-sp-3) var(--op-sp-4);
    border-radius: var(--op-r-md);
    font-size: .9rem;
    border: 1px solid;
    backdrop-filter: blur(6px);
}
.op-banner--ok    { background: rgba(5, 150, 105, .12);  color: #047857; border-color: rgba(5, 150, 105, .35); }
.op-banner--warn  { background: rgba(220, 38, 38, .10);  color: var(--op-danger); border-color: rgba(220, 38, 38, .30); }
.op-banner--info  { background: rgba(37, 99, 235, .10);  color: var(--op-azure-deep); border-color: rgba(37, 99, 235, .30); }

.op-pill {
    display: inline-flex;
    align-items: center;
    padding: .15rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: var(--op-text-muted);
    border: 1px solid var(--op-line);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.op-pill--ok    { background: rgba(5, 150, 105, .12);  color: #047857;             border-color: rgba(5, 150, 105, .30); }
.op-pill--warn  { background: rgba(217, 119, 6, .12);  color: var(--op-warn);      border-color: rgba(217, 119, 6, .30); }
.op-pill--info  { background: rgba(37, 99, 235, .12);  color: var(--op-azure-deep); border-color: rgba(37, 99, 235, .30); }

.op-muted { color: var(--op-text-muted); font-size: .9rem; }

/* ──────────────────────────────────────────────────────
   Dashboard tiles (Home)
   ────────────────────────────────────────────────────── */
.op-tiles {
    display: grid;
    gap: var(--op-sp-4);
    grid-template-columns: 1fr;
}
@media (min-width: 540px)  { .op-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .op-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .op-tiles { grid-template-columns: repeat(4, 1fr); } }

.op-tile {
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-2);
    padding: var(--op-sp-5);
    border-radius: var(--op-r-lg);
    background: var(--op-card-bg);
    border: 1px solid var(--op-card-border);
    color: var(--op-text);
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: var(--op-shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.op-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--op-shadow-md);
    border-color: var(--op-line-strong);
}
.op-tile__icon {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--op-r-md);
    background: rgba(37, 99, 235, .12);
    color: var(--op-azure-deep);
    font-size: 1.35rem;
}
.op-tile__title {
    margin: 0;
    font-family: var(--op-serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--op-text-strong);
}
.op-tile__desc {
    margin: 0;
    color: var(--op-text-muted);
    font-size: .88rem;
}

/* ──────────────────────────────────────────────────────
   Auth screens (full-bleed, editorial)
   ────────────────────────────────────────────────────── */
.op-auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--op-sp-5);
    position: relative;
    z-index: 1;
}
.op-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--op-card-bg-strong);
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-r-xl);
    box-shadow: var(--op-shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--op-sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-4);
}
.op-auth-card__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--op-sp-2);
    text-align: center;
    margin-bottom: var(--op-sp-2);
}
.op-auth-card__logo {
    width: 60px; height: 60px;
    border-radius: var(--op-r-lg);
    background: rgba(37, 99, 235, .12);
    color: var(--op-azure-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--op-serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -.02em;
}
.op-auth-card__title {
    margin: 0;
    font-family: var(--op-serif);
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--op-text-strong);
}
.op-auth-card__subtitle {
    margin: 0;
    font-family: var(--op-serif);
    font-style: italic;
    color: var(--op-text-muted);
    font-size: .95rem;
}

.op-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--op-sp-3);
    padding: .8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--op-text);
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--op-line);
    border-radius: var(--op-r-md);
    transition: border-color .15s, box-shadow .15s, background .15s;
    text-decoration: none !important;
    width: 100%;
    min-height: 50px;
    backdrop-filter: blur(6px);
}
.op-google-btn:hover {
    background: #fff;
    border-color: var(--op-azure);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* ──────────────────────────────────────────────────────
   AppBar internals (dark navy, like TGift)
   ────────────────────────────────────────────────────── */
.op-nav {
    height: 100%;
    max-width: var(--op-content-w);
    margin: 0 auto;
    padding: 0 var(--op-sp-4);
    display: flex;
    align-items: center;
    gap: var(--op-sp-3);
    color: var(--op-appbar-text-mut);
}

.op-nav__brand {
    display: flex;
    align-items: center;
    gap: var(--op-sp-2);
    font-family: var(--op-serif);
    font-weight: 400;
    color: var(--op-appbar-text);
    font-size: 1.2rem;
    text-decoration: none !important;
    letter-spacing: -.02em;
    flex-shrink: 0;
}
.op-nav__brand:hover { text-decoration: none !important; }

.op-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--op-r-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--op-appbar-text);
    cursor: pointer;
    margin-left: auto;
}
.op-nav__toggle:hover { background: rgba(148, 163, 184, .08); }
.op-nav__toggle-bars,
.op-nav__toggle-bars::before,
.op-nav__toggle-bars::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--op-appbar-text-mut);
    border-radius: 2px;
    position: relative;
}
.op-nav__toggle-bars::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; }
.op-nav__toggle-bars::after  { content: ""; position: absolute; top:  6px; left: 0; right: 0; }

.op-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.op-nav__user {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--op-sp-3);
    margin-left: auto;
    flex-shrink: 0;
}

.op-nav__item { position: relative; }

.op-nav__link {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    color: var(--op-appbar-text-mut);
    border-radius: var(--op-r-sm);
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    background: transparent;
    border: none;
    white-space: nowrap;
    line-height: 1.4;
    font-family: var(--op-sans);
    transition: color .15s, background .15s;
}
.op-nav__link:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, .08);
}
.op-nav__link--active {
    color: var(--op-appbar-active);
    background: var(--op-appbar-active-bg);
}

/* Hover-driven on desktop — opens on mouse-enter parent <li>, closes
   on mouse-leave. No click-state to keep stuck open. On mobile the
   sheet shows the panel inline (see mobile breakpoint below). */
.op-nav__dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 200px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    pointer-events: none;
}
.op-nav__item:hover > .op-nav__dropdown,
.op-nav__item:focus-within > .op-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.op-nav__dropdown a {
    display: block;
    padding: 6px 10px;
    color: var(--op-appbar-text-mut);
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1.4;
    transition: color .12s, background .12s;
}
.op-nav__dropdown a:hover { background: rgba(148, 163, 184, .08); color: #e2e8f0; }
.op-nav__dropdown a.op-nav__link--active { color: var(--op-appbar-active); background: var(--op-appbar-active-bg); }

/* Chevron — rotate on hover so user gets feedback the menu is open */
.op-nav__chevron {
    margin-left: 3px;
    opacity: .55;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.op-nav__item:hover > .op-nav__link > .op-nav__chevron,
.op-nav__item:focus-within > .op-nav__link > .op-nav__chevron {
    transform: rotate(180deg);
}

.op-nav__role-pill {
    font-size: .6rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.op-nav__role-pill--admin { background: rgba(139, 92, 246, .18); color: #a78bfa; }
.op-nav__role-pill--su    { background: rgba(59, 130, 246, .18); color: #60a5fa; }

.op-nav__name {
    color: #64748b;
    font-size: .78rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* AppBar logout ghost button (override op-btn--ghost on dark bg) */
.op-nav__user .op-btn,
.op-nav__user .op-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: #64748b;
    backdrop-filter: none;
}
.op-nav__user .op-btn:hover,
.op-nav__user .op-btn--ghost:hover {
    color: #f87171;
    background: rgba(248, 113, 113, .08);
    border-color: transparent;
}

/* Mobile nav: collapse into slide-down sheet */
@media (max-width: 900px) {
    .op-nav__menu,
    .op-nav__user {
        position: absolute;
        top: var(--op-appbar-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--op-appbar-bg);
        border-bottom: 1px solid var(--op-appbar-line);
        padding: var(--op-sp-3);
        gap: var(--op-sp-1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
        max-height: calc(100vh - var(--op-appbar-h));
        overflow-y: auto;
        display: none;
    }
    .op-nav--open .op-nav__menu,
    .op-nav--open .op-nav__user {
        display: flex;
    }
    .op-nav__user {
        top: auto;
        padding-top: 0;
        border-top: 1px solid var(--op-appbar-line);
    }
    .op-nav__link { padding: .7rem .85rem; font-size: .9rem; }

    /* Mobile sheet — show dropdown panels inline as nested lists,
       no hover/click toggle needed. */
    .op-nav__dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 var(--op-sp-3);
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
    .op-nav__chevron { display: none; }
}
@media (min-width: 901px) {
    .op-nav__toggle { display: none; }
}

/* ──────────────────────────────────────────────────────
   Misc
   ────────────────────────────────────────────────────── */
.op-spacer  { flex: 1; }
.op-hidden  { display: none !important; }
.op-h-stack { display: flex; align-items: center; gap: var(--op-sp-3); flex-wrap: wrap; }
.op-v-stack { display: flex; flex-direction: column; gap: var(--op-sp-3); }

.op-divider {
    height: 1px;
    width: 100%;
    background: var(--op-line);
    border: none;
    margin: 0;
}

.op-google-icon { width: 20px; height: 20px; }

/* ──────────────────────────────────────────────────────
   Bootstrap card / dropdown bridges — soften legacy markup
   so business pages still using Bootstrap classes match the
   new theme without being rewritten.
   ────────────────────────────────────────────────────── */
body .card {
    background: var(--op-card-bg);
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-r-lg);
    box-shadow: var(--op-shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body .card-header { background: rgba(255, 255, 255, .35); border-bottom-color: var(--op-line); }
body .text-muted  { color: var(--op-text-muted) !important; }

/* ──────────────────────────────────────────────────────
   Syncfusion popup overrides — dropdown lists, dialogs,
   tooltips render in a portal outside the body cascade,
   so we re-assert solid surface + readable text colour
   to undo any "trắng-trên-trắng" cases.
   ────────────────────────────────────────────────────── */
body .e-popup,
body .e-popup-open,
body .e-ddl.e-popup,
body .e-dropdownbase {
    background: #fff !important;
    color: var(--op-text) !important;
    border: 1px solid var(--op-line) !important;
    box-shadow: var(--op-shadow-md) !important;
}

/* Cast wide on text-fill-color for every descendant of a popup so any
   inner <span> / Syncfusion wrapper inherits readable colour. The
   "trắng-trên-trắng" case happens because Syncfusion bootstrap5 sets
   -webkit-text-fill-color on items; without overriding it `color` alone
   loses on Chromium. */
body .e-popup .e-list-item,
body .e-popup .e-list-item *,
body .e-ddl-popup .e-list-item,
body .e-ddl-popup .e-list-item *,
body .e-popup-open .e-list-item,
body .e-popup-open .e-list-item * {
    color: var(--op-text-strong) !important;
    -webkit-text-fill-color: var(--op-text-strong) !important;
    opacity: 1 !important;
}
body .e-popup .e-list-item,
body .e-ddl-popup .e-list-item,
body .e-popup-open .e-list-item {
    background: transparent !important;
    padding: 8px 12px !important;
}

body .e-popup .e-list-item:hover,
body .e-popup .e-list-item:hover *,
body .e-popup .e-list-item.e-hover,
body .e-popup .e-list-item.e-hover *,
body .e-ddl-popup .e-list-item:hover,
body .e-ddl-popup .e-list-item:hover * {
    color: var(--op-text-strong) !important;
    -webkit-text-fill-color: var(--op-text-strong) !important;
}
body .e-popup .e-list-item:hover,
body .e-popup .e-list-item.e-hover,
body .e-ddl-popup .e-list-item:hover {
    background: rgba(37, 99, 235, .08) !important;
}

body .e-popup .e-list-item.e-active,
body .e-popup .e-list-item.e-active *,
body .e-popup .e-list-item.e-item-focus,
body .e-popup .e-list-item.e-item-focus *,
body .e-ddl-popup .e-list-item.e-active,
body .e-ddl-popup .e-list-item.e-active * {
    color: var(--op-azure-deep) !important;
    -webkit-text-fill-color: var(--op-azure-deep) !important;
}
body .e-popup .e-list-item.e-active,
body .e-popup .e-list-item.e-item-focus,
body .e-ddl-popup .e-list-item.e-active {
    background: rgba(37, 99, 235, .14) !important;
}

/* ──────────────────────────────────────────────────────
   NUCLEAR fallback — match any element under any class
   containing "popup" or "ddl". Catches Syncfusion popup
   variants we haven't enumerated explicitly above.
   ────────────────────────────────────────────────────── */
body [class*="popup"] li,
body [class*="popup"] li *,
body [class*="ddl"]   li,
body [class*="ddl"]   li *,
body [class*="popup"] .e-list-item,
body [class*="popup"] .e-list-item * {
    color: #14253d !important;
    -webkit-text-fill-color: #14253d !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}
body [class*="popup"] li,
body [class*="ddl"]   li {
    background-color: transparent !important;
}
/* Solid white container so items have something to contrast against */
body [class*="popup"][class*="e-"] {
    background: #fff !important;
}

/* Even broader nets — any ARIA listbox / option, any popover element. */
body [role="listbox"],
body [role="listbox"] *,
body [role="option"],
body [role="option"] * {
    color: #14253d !important;
    -webkit-text-fill-color: #14253d !important;
    opacity: 1 !important;
}
body [role="listbox"] {
    background: #fff !important;
}

/* The HTML5 popover API element (used by some browsers / extensions for
   autocomplete). Don't override its position/sizing — just text colour. */
body [popover] *:not(button):not(input) {
    color: #14253d !important;
    -webkit-text-fill-color: #14253d !important;
}

/* Chrome extensions (Microsoft Wallet, Bitwarden, 1Password, etc.) inject
   <div popover="manual"> overlays that render with backdrop-filter: blur,
   washing out everything underneath. The overlay is invisible by default
   (opacity:0) but some extensions dynamically toggle it on focus into
   address-shaped inputs. Disable the blur so it can't hide our content. */
body > div[popover="manual"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ──────────────────────────────────────────────────────
   Native <select> dropdown — replacement for the
   problem-prone Syncfusion popup variants. Native browser
   widget so no extension popover can overlay it.
   ────────────────────────────────────────────────────── */
.op-native-select {
    width: 100%;
    height: 36px;
    padding: 0 .65rem;
    font-family: var(--op-sans);
    font-size: .9rem;
    color: #14253d !important;
    -webkit-text-fill-color: #14253d !important;
    background: #fff !important;
    border: 1px solid var(--op-line);
    border-radius: var(--op-r-md);
    appearance: auto;
    -webkit-appearance: auto;
}
.op-native-select:focus {
    outline: none;
    border-color: var(--op-azure);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.op-native-select option {
    color: #14253d !important;
    -webkit-text-fill-color: #14253d !important;
    background: #fff !important;
}

/* Plain number input without browser up/down spin buttons. */
.op-input--no-spin { -moz-appearance: textfield; }
.op-input--no-spin::-webkit-outer-spin-button,
.op-input--no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ──────────────────────────────────────────────────────
   Inline cell controls (Notion-style direct-edit grids)
   ────────────────────────────────────────────────────── */

/* Compact <select> sized for grid cells */
.op-cell-select {
    height: 32px !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: .85rem !important;
    background: rgba(255, 255, 255, .9) !important;
    border: 1px solid var(--op-line) !important;
    border-radius: var(--op-r-sm) !important;
}
.op-cell-select:focus {
    border-color: var(--op-azure) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .15) !important;
}

/* iOS-style toggle switch */
.op-switch {
    display: inline-block;
    position: relative;
    width: 38px; height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}
.op-switch input {
    opacity: 0; width: 0; height: 0;
    position: absolute;
}
.op-switch__track {
    position: absolute; inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background .15s;
}
.op-switch__track::before {
    content: "";
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.op-switch input:checked + .op-switch__track {
    background: var(--op-success);
}
.op-switch input:checked + .op-switch__track::before {
    transform: translateX(16px);
}
.op-switch input:focus-visible + .op-switch__track {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

/* ──────────────────────────────────────────────────────
   Unified toolbar — single horizontal bar with controls
   left and stats right. Wraps on small screens.
   ────────────────────────────────────────────────────── */
.op-toolbar {
    display: flex;
    align-items: center;
    gap: var(--op-sp-3);
    flex-wrap: wrap;
    padding: var(--op-sp-3) var(--op-sp-4);
    background: var(--op-card-bg);
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-r-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: var(--op-sp-3);
}
.op-toolbar__group { display: flex; align-items: center; gap: var(--op-sp-2); }
.op-toolbar__search {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.op-toolbar__search > .bi-search {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--op-text-muted);
    pointer-events: none;
}
.op-toolbar__search > .op-input {
    height: 34px; min-height: 34px;
    padding-left: 36px; padding-right: 32px;
    font-size: .88rem;
}
.op-toolbar__search-clear {
    position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    border: none; background: transparent;
    color: var(--op-text-muted);
    border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.op-toolbar__search-clear:hover { background: rgba(37, 99, 235, .08); color: var(--op-text); }

.op-toolbar__stats {
    display: flex; align-items: center;
    gap: var(--op-sp-4);
    flex-wrap: wrap;
    margin-left: auto;
    padding-left: var(--op-sp-3);
    border-left: 1px solid var(--op-line);
}
.op-stat {
    display: inline-flex; flex-direction: column;
    line-height: 1.1; gap: 1px;
}
.op-stat__label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--op-text-muted);
    font-weight: 600;
}
.op-stat__value {
    font-size: .98rem;
    color: var(--op-text-strong);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Mobile — stack stats under controls */
@media (max-width: 720px) {
    .op-toolbar__stats {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
    }
}

/* Segmented control (iOS / macOS style) — replaces a pair of toggle buttons */
.op-segmented {
    display: inline-flex;
    background: rgba(37, 99, 235, .08);
    border: 1px solid var(--op-line);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}
.op-segmented__btn {
    display: inline-flex; align-items: center; gap: var(--op-sp-1);
    padding: 5px 12px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--op-text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}
.op-segmented__btn:hover { color: var(--op-text); }
.op-segmented__btn--active {
    color: var(--op-azure-deep);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    font-weight: 600;
}

/* Compact dropdown sized for toolbar */
.op-toolbar select.op-input,
.op-toolbar .e-input-group {
    height: 34px !important;
    min-height: 34px !important;
    font-size: .88rem;
}

/* Dialog with internal toolbar + scrollable grid */
.lpp-dialog {
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-3);
    height: 100%;
}
.lpp-dialog__toolbar {
    display: flex;
    align-items: center;
    gap: var(--op-sp-3);
    flex-wrap: wrap;
}
.lpp-dialog__grid {
    flex: 1;
    max-height: 60vh;
    overflow: auto;
}

/* Two-pane product + warehouse picker */
.lpp-picker {
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-3);
    height: 100%;
}
.lpp-picker__toolbar {
    display: flex;
    align-items: center;
    gap: var(--op-sp-3);
    flex-wrap: wrap;
}
.lpp-picker__panes {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--op-sp-4);
    height: 62vh;
    min-height: 360px;
}
.lpp-picker__pane {
    display: flex;
    flex-direction: column;
    background: var(--op-card-bg);
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-r-md);
    overflow: hidden;
    min-height: 0;
}
.lpp-picker__pane-head {
    padding: var(--op-sp-2) var(--op-sp-4);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--op-text-muted);
    background: var(--op-card-bg-soft);
    border-bottom: 1px solid var(--op-line);
}
.lpp-picker__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--op-sp-5);
}

/* Left list */
.lpp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    flex: 1;
    min-height: 0;
}
.lpp-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--op-sp-3);
    padding: var(--op-sp-3) var(--op-sp-4);
    border-bottom: 1px solid var(--op-line);
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.lpp-list__item:hover {
    background: rgba(37, 99, 235, .06);
}
.lpp-list__item--active {
    background: rgba(37, 99, 235, .12);
    box-shadow: inset 3px 0 0 var(--op-azure);
}
.lpp-list__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lpp-list__name {
    font-weight: 600;
    color: var(--op-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lpp-list__meta {
    display: flex;
    gap: var(--op-sp-2);
    font-size: .82rem;
    color: var(--op-text-muted);
}
.lpp-list__side {
    display: flex;
    align-items: center;
    gap: var(--op-sp-2);
    flex-shrink: 0;
}
.lpp-list__stock {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--op-text);
    min-width: 42px;
    text-align: right;
}

/* Right pane: product header + warehouse rows */
.lpp-picker__product {
    padding: var(--op-sp-3) var(--op-sp-4);
    border-bottom: 1px solid var(--op-line);
    background: var(--op-card-bg-soft);
}
.lpp-picker__product-name {
    font-weight: 700;
    color: var(--op-text-strong);
    font-size: 1rem;
}
.lpp-picker__product-meta {
    display: flex;
    gap: var(--op-sp-4);
    margin-top: 2px;
    font-size: .85rem;
    color: var(--op-text-muted);
}
.lpp-kho {
    overflow: auto;
    flex: 1;
    min-height: 0;
}
.lpp-kho__head,
.lpp-kho__row {
    display: grid;
    grid-template-columns: 1fr 80px 110px 100px;
    align-items: center;
    gap: var(--op-sp-2);
    padding: var(--op-sp-2) var(--op-sp-4);
}
.lpp-kho__head {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--op-text-muted);
    background: var(--op-card-bg-soft);
    border-bottom: 1px solid var(--op-line);
    position: sticky;
    top: 0;
    z-index: 1;
}
.lpp-kho__row {
    border-bottom: 1px solid var(--op-line);
}
.lpp-kho__row:last-child { border-bottom: none; }
.lpp-kho__row--off { opacity: .55; }
.lpp-kho__name {
    font-weight: 500;
    color: var(--op-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lpp-kho__num { text-align: right; font-variant-numeric: tabular-nums; }
.lpp-kho__qty {
    width: 90px;
    height: 34px;
    text-align: center;
    margin-left: auto;
}

@media (max-width: 880px) {
    .lpp-picker__panes {
        grid-template-columns: 1fr;
        height: auto;
    }
    .lpp-picker__pane { min-height: 280px; }
    .lpp-kho__head, .lpp-kho__row {
        grid-template-columns: 1fr 60px 90px 80px;
    }
}

/* Sticky cart action bar */
.lpp-cart-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: var(--op-sp-4);
    padding: var(--op-sp-3) var(--op-sp-5);
    background: var(--op-card-bg-strong);
    border: 1px solid var(--op-card-border);
    border-radius: var(--op-r-lg);
    box-shadow: 0 -8px 24px rgba(20, 37, 61, .08);
    backdrop-filter: blur(8px);
    margin-top: var(--op-sp-3);
}
.lpp-cart-bar__stats {
    display: flex;
    gap: var(--op-sp-5);
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.lpp-cart-bar__stat {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.lpp-cart-bar__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--op-text-muted);
}
.lpp-cart-bar__value {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--op-text-strong);
}
.lpp-cart-bar__stat--strong .lpp-cart-bar__value {
    font-size: 1.25rem;
    color: var(--op-azure-deep);
}
.lpp-cart-bar__submit {
    height: 44px;
    padding: 0 var(--op-sp-5);
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .lpp-cart-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--op-sp-3);
    }
    .lpp-cart-bar__submit { width: 100%; }
}

/* Confirm dialog list */
.lpp-confirm {
    display: flex;
    flex-direction: column;
    gap: var(--op-sp-2);
    padding: var(--op-sp-3) var(--op-sp-4);
    background: var(--op-card-bg-soft);
    border: 1px solid var(--op-line);
    border-radius: var(--op-r-md);
}
.lpp-confirm__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .92rem;
}
.lpp-confirm__row--strong {
    padding-top: var(--op-sp-2);
    border-top: 1px solid var(--op-line);
    font-size: 1.05rem;
}
.lpp-confirm__row--strong strong {
    color: var(--op-azure-deep);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   "Report-order" filter family — clean, light, label-on-top
   Used by /report-order and /local-orders?stage=approve
   ============================================================ */
.ro-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .65rem .9rem;
    margin-bottom: .75rem;
}
.ro-filter        { display: flex; flex-direction: column; gap: .25rem; min-width: 160px; }
.ro-filter-grow   { flex: 1; min-width: 220px; }
.ro-filter-label  { font-size: .72rem; text-transform: uppercase; color: #64748b; font-weight: 600; letter-spacing: .04em; }
.ro-filter-input  {
    padding: .4rem .55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
    height: 34px;
}
.ro-filter-input:focus {
    outline: none;
    border-color: var(--op-azure, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .15);
}
.ro-filter-quick { display: flex; gap: .3rem; flex-wrap: wrap; }
.ro-quick-btn {
    background: #fff; border: 1px solid #cbd5e1; color: #334155;
    padding: .4rem .65rem; border-radius: 6px; font-size: .8rem; font-weight: 600;
    cursor: pointer;
    transition: border-color .12s, color .12s, background .12s;
    display: inline-flex; align-items: center; gap: .35rem;
}
.ro-quick-btn:hover { background: #f8fafc; border-color: var(--op-azure, #2563eb); color: var(--op-azure-deep, #1e40af); }
.ro-quick-btn:disabled { opacity: .5; cursor: not-allowed; }
.ro-filter-reloading { color: var(--op-azure-deep, #1e40af); font-size: .85rem; font-weight: 600; align-self: flex-end; padding-bottom: .35rem; }

/* Status pills */
.ro-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.ro-pill {
    background: #fff; border: 1px solid #cbd5e1; color: #475569;
    padding: .4rem .85rem; border-radius: 999px;
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: border-color .12s, color .12s, background .12s;
}
.ro-pill:hover        { border-color: var(--op-azure, #2563eb); color: var(--op-azure-deep, #1e40af); }
.ro-pill-active       { background: var(--op-azure, #2563eb); border-color: var(--op-azure, #2563eb); color: #fff; }
.ro-pill-active:hover { color: #fff; }

/* Stat cards */
.ro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin-bottom: .75rem;
}
.ro-card        { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: .9rem 1rem; }
.ro-card-accent { border-color: #0ea5e9; background: linear-gradient(180deg, #f0f9ff, #fff); }
.ro-label       { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.ro-value       { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.ro-sub         { font-size: .85rem; color: #94a3b8; font-weight: 500; }
.ro-card-accent .ro-value { color: var(--op-azure-deep, #1e40af); }

/* Status cell: switch + tiny hint text */
.op-status-cell {
    display: inline-flex;
    align-items: center;
    gap: var(--op-sp-2);
}
.op-status-cell__hint {
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--op-warn-soft);
    color: var(--op-warn);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.op-status-cell__hint--danger {
    background: var(--op-danger-soft);
    color: var(--op-danger);
}

/* Syncfusion sets -webkit-text-fill-color on input elements; just overriding
   `color` is not enough on Chromium — the fill colour wins. Force both. */
body .e-input-group,
body .e-input-group .e-input,
body .e-ddl .e-input,
body .e-dropdownlist.e-input,
body input.e-input,
body .e-control.e-input {
    color: var(--op-text-strong) !important;
    -webkit-text-fill-color: var(--op-text-strong) !important;
    background: #fff !important;
    opacity: 1 !important;
}
body .e-input-group input.e-input::placeholder,
body .e-ddl .e-input::placeholder,
body input.e-input::placeholder {
    color: var(--op-text-muted) !important;
    -webkit-text-fill-color: var(--op-text-muted) !important;
    opacity: 1 !important;
}
/* Disabled / read-only state — keep readable, just slightly faded */
body .e-input-group.e-disabled .e-input,
body .e-input-group .e-input[readonly] {
    color: var(--op-text-muted) !important;
    -webkit-text-fill-color: var(--op-text-muted) !important;
}

/* Dialog header / content / footer — readable warm slate */
body .e-dialog,
body .e-dialog .e-dlg-header-content,
body .e-dialog .e-dlg-content,
body .e-dialog .e-footer-content {
    background: #fff !important;
    color: var(--op-text) !important;
}
body .e-dialog .e-dlg-header,
body .e-dialog .e-dlg-header * {
    color: var(--op-text-strong) !important;
}
