/* Yoma portal skin — layered over Filament's compiled stylesheet.
   Brand: navy #273d8d, orange #ee8022. Loaded by both panels. */

:root {
    --yoma-navy: #273d8d;
    --yoma-navy-deep: #121c4d;
    --yoma-navy-mid: #1d2f78;
    --yoma-orange: #ee8022;
    --yoma-bg: #f3f5fa;
    --yoma-card-shadow: 0 1px 2px rgba(16, 24, 64, .05), 0 10px 28px -14px rgba(16, 24, 64, .16);
}

/* ---------- page canvas ---------- */
body.fi-body { background: var(--yoma-bg); }
.dark body.fi-body, body.fi-body:where(.dark, .dark *) { background: #0b0f1c; }
.fi-main { padding-top: 1.5rem; }

/* ---------- sidebar: deep navy, orange active marker ---------- */
.fi-sidebar {
    background: linear-gradient(185deg, var(--yoma-navy-mid) 0%, var(--yoma-navy-deep) 100%) !important;
    border: 0 !important;
    box-shadow: 6px 0 30px -12px rgba(10, 16, 48, .45) !important;
}
.fi-sidebar-header {
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.fi-sidebar-header .fi-icon-btn,
.fi-sidebar-header button { color: rgba(255, 255, 255, .7) !important; }
.fi-sidebar-header button:hover { background: rgba(255, 255, 255, .1) !important; }

.fi-sidebar-nav { padding-top: 1.25rem; }
.fi-sidebar-group-label,
.fi-sidebar-group-button span {
    color: rgba(255, 255, 255, .42) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.fi-sidebar-group-button svg { color: rgba(255, 255, 255, .42) !important; }

.fi-sidebar-item-button {
    border-radius: 12px !important;
    padding: .55rem .7rem !important;
    transition: background .15s ease, transform .15s ease;
}
.fi-sidebar-item-button span,
.fi-sidebar-item-button svg { color: rgba(255, 255, 255, .72) !important; }
.fi-sidebar-item-button:hover { background: rgba(255, 255, 255, .09) !important; }
.fi-sidebar-item-button:hover span,
.fi-sidebar-item-button:hover svg { color: #fff !important; }

.fi-sidebar-item-active > .fi-sidebar-item-button,
.fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background: linear-gradient(90deg, rgba(238, 128, 34, .26), rgba(238, 128, 34, .06)) !important;
    box-shadow: inset 3px 0 0 var(--yoma-orange);
}
.fi-sidebar-item-active > .fi-sidebar-item-button span,
.fi-sidebar-item.fi-active > .fi-sidebar-item-button span { color: #fff !important; font-weight: 600; }
.fi-sidebar-item-active > .fi-sidebar-item-button svg,
.fi-sidebar-item.fi-active > .fi-sidebar-item-button svg { color: var(--yoma-orange) !important; }

/* ---------- top bar ---------- */
.fi-topbar > nav {
    background: rgba(255, 255, 255, .78) !important;
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(16, 24, 64, .06) !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}
.dark .fi-topbar > nav { background: rgba(15, 19, 36, .78) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) !important; }

/* ---------- headings ---------- */
.fi-header-heading {
    font-weight: 800 !important;
    letter-spacing: -.02em;
}
.fi-breadcrumbs { font-size: 12px; }

/* ---------- cards: sections, tables, stats ---------- */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-fo-wizard,
.fi-in-section,
.fi-wi-chart,
.fi-ta-table-widget .fi-ta-ctn {
    border-radius: 18px !important;
    box-shadow: var(--yoma-card-shadow) !important;
    --tw-ring-color: rgba(16, 24, 64, .05) !important;
}
.dark .fi-section, .dark .fi-ta-ctn, .dark .fi-wi-stats-overview-stat { box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .6) !important; }
.fi-section-header-heading { font-weight: 700; letter-spacing: -.01em; }

/* ---------- tables ---------- */
.fi-ta-header-cell { background: rgba(39, 61, 141, .045); }
.dark .fi-ta-header-cell { background: rgba(255, 255, 255, .04); }
.fi-ta-header-cell-label,
.fi-ta-header-cell button span {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #5b6488 !important;
}
.dark .fi-ta-header-cell-label { color: #9aa3c7 !important; }
.fi-ta-row { transition: background .12s ease; }
.fi-ta-row:hover { background: rgba(238, 128, 34, .045); }
.fi-ta-record-url:hover { background: transparent; }

/* ---------- buttons & badges ---------- */
.fi-btn { border-radius: 12px !important; font-weight: 600; }
.fi-btn.fi-color-primary:not(.fi-outlined) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)) !important;
    box-shadow: 0 8px 16px -8px rgba(238, 128, 34, .75) !important;
}
.fi-badge { border-radius: 999px !important; font-weight: 600; }
.fi-input-wrp { border-radius: 12px !important; }

/* ---------- dashboard widgets ---------- */
.yoma-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 30px 34px;
    color: #fff;
    background:
        radial-gradient(520px 260px at 88% 0%, rgba(238, 128, 34, .55), transparent 70%),
        linear-gradient(120deg, #243788 0%, #16205c 62%, #0f1740 100%);
    box-shadow: 0 22px 44px -24px rgba(18, 28, 77, .75);
}
.yoma-hero::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -46px;
    width: 250px;
    height: 310px;
    background: url('/images/brand/logo-collapse-white.svg') center / contain no-repeat;
    opacity: .09;
    transform: rotate(-8deg);
}
.yoma-hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.yoma-hero h2 { margin: 6px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.yoma-hero p { margin: 0; max-width: 520px; color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.5; }
.yoma-hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.yoma-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 12px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    transition: background .15s ease, transform .15s ease;
}
.yoma-chip:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.yoma-chip.is-primary { background: var(--yoma-orange); border-color: transparent; box-shadow: 0 10px 20px -10px rgba(238, 128, 34, .9); }
.yoma-chip svg { width: 16px; height: 16px; }

.fi-wi-stats-overview-stat { position: relative; overflow: hidden; border-top: 3px solid var(--yoma-orange) !important; }
.fi-wi-stats-overview-stat-value { font-size: 1.9rem !important; font-weight: 800 !important; letter-spacing: -.02em; }
.fi-wi-stats-overview-stat-label { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; }

/* =====================================================================
   Merchant portal: light frosted-glass sidebar
   A pale glass panel over soft brand-coloured light — navy text, orange
   active marker. (The admin portal keeps its solid navy sidebar.)
   ===================================================================== */

/* soft colour behind the glass */
body.fi-panel-merchant::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(440px 440px at 2% 80%, rgba(238, 128, 34, .32), transparent 70%),
        radial-gradient(540px 540px at 8% 6%, rgba(59, 87, 196, .26), transparent 70%),
        radial-gradient(640px 420px at 94% 0%, rgba(238, 128, 34, .1), transparent 70%);
}

body.fi-panel-merchant .fi-sidebar {
    background: linear-gradient(170deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .48) 100%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    border-right: 1px solid rgba(255, 255, 255, .7) !important;
    box-shadow:
        inset -1px 0 0 rgba(39, 61, 141, .08),
        inset 0 1px 0 rgba(255, 255, 255, .8),
        10px 0 36px -22px rgba(16, 24, 64, .32) !important;
}
body.fi-panel-merchant .fi-sidebar-header { border-bottom: 1px solid rgba(39, 61, 141, .08); }
body.fi-panel-merchant .fi-sidebar-header .fi-icon-btn,
body.fi-panel-merchant .fi-sidebar-header button { color: #5b6488 !important; }
body.fi-panel-merchant .fi-sidebar-header button:hover { background: rgba(39, 61, 141, .08) !important; }

body.fi-panel-merchant .fi-sidebar-group-label,
body.fi-panel-merchant .fi-sidebar-group-button span,
body.fi-panel-merchant .fi-sidebar-group-button svg { color: #8a93b6 !important; }

body.fi-panel-merchant .fi-sidebar-item-button {
    border: 1px solid transparent;
    border-radius: 14px !important;
}
body.fi-panel-merchant .fi-sidebar-item-button span { color: #3b4470 !important; text-shadow: none; }
body.fi-panel-merchant .fi-sidebar-item-button svg { color: #7a84ab !important; }
body.fi-panel-merchant .fi-sidebar-item-button:hover {
    background: rgba(255, 255, 255, .55) !important;
    border-color: rgba(255, 255, 255, .8);
    box-shadow: 0 4px 12px -8px rgba(16, 24, 64, .25);
}
body.fi-panel-merchant .fi-sidebar-item-button:hover span { color: #1b2a66 !important; }
body.fi-panel-merchant .fi-sidebar-item-button:hover svg { color: #273d8d !important; }

body.fi-panel-merchant .fi-sidebar-item-active > .fi-sidebar-item-button,
body.fi-panel-merchant .fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background: linear-gradient(90deg, rgba(238, 128, 34, .2), rgba(255, 255, 255, .35)) !important;
    border-color: rgba(238, 128, 34, .26);
    box-shadow: inset 3px 0 0 var(--yoma-orange), inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 16px -10px rgba(238, 128, 34, .45);
}
body.fi-panel-merchant .fi-sidebar-item-active > .fi-sidebar-item-button span,
body.fi-panel-merchant .fi-sidebar-item.fi-active > .fi-sidebar-item-button span { color: #1b2a66 !important; font-weight: 700; }
body.fi-panel-merchant .fi-sidebar-item-active > .fi-sidebar-item-button svg,
body.fi-panel-merchant .fi-sidebar-item.fi-active > .fi-sidebar-item-button svg { color: var(--yoma-orange) !important; }

/* top bar */
body.fi-panel-merchant .fi-topbar > nav {
    background: rgba(255, 255, 255, .8) !important;
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    box-shadow: 0 1px 0 rgba(16, 24, 64, .06) !important;
}

/* collapsed-sidebar icon logo: colour on light, white on dark / admin */
.yoma-collapse-white { display: none; }
body.fi-panel-merchant .yoma-collapse-color { display: block; }
body.fi-panel-admin .yoma-collapse-color { display: none; }
body.fi-panel-admin .yoma-collapse-white { display: block; }

/* ---------- merchant, dark mode: dark frosted glass ---------- */
.dark body.fi-panel-merchant .fi-sidebar {
    background: rgba(17, 22, 52, .72) !important;
    border-right: 1px solid rgba(255, 255, 255, .08) !important;
}
.dark body.fi-panel-merchant .fi-sidebar-header { border-bottom-color: rgba(255, 255, 255, .08); }
.dark body.fi-panel-merchant .fi-sidebar-header .fi-icon-btn,
.dark body.fi-panel-merchant .fi-sidebar-header button { color: rgba(255, 255, 255, .7) !important; }
.dark body.fi-panel-merchant .fi-sidebar-group-label,
.dark body.fi-panel-merchant .fi-sidebar-group-button span,
.dark body.fi-panel-merchant .fi-sidebar-group-button svg { color: rgba(255, 255, 255, .45) !important; }
.dark body.fi-panel-merchant .fi-sidebar-item-button span { color: rgba(255, 255, 255, .75) !important; }
.dark body.fi-panel-merchant .fi-sidebar-item-button svg { color: rgba(255, 255, 255, .6) !important; }
.dark body.fi-panel-merchant .fi-sidebar-item-button:hover { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .08); }
.dark body.fi-panel-merchant .fi-sidebar-item-button:hover span,
.dark body.fi-panel-merchant .fi-sidebar-item-button:hover svg { color: #fff !important; }
.dark body.fi-panel-merchant .fi-sidebar-item-active > .fi-sidebar-item-button span,
.dark body.fi-panel-merchant .fi-sidebar-item.fi-active > .fi-sidebar-item-button span { color: #fff !important; }
.dark body.fi-panel-merchant .fi-topbar > nav { background: rgba(15, 19, 36, .6) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) !important; }
.dark body.fi-panel-merchant .yoma-collapse-color { display: none; }
.dark body.fi-panel-merchant .yoma-collapse-white { display: block; }

/* ---------- order page (OrderResource infolist + filament/orders/*) ---------- */
.yo-order-eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.yo-order-muted { font-size: .8rem; color: #6b7280; }

.yo-order-summary { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.yo-order-summary__main { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.yo-order-summary__id { display: flex; align-items: center; gap: .35rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; color: #0f172a; }
.yo-order-summary__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: #4b5563; }
.yo-order-dot { width: 4px; height: 4px; border-radius: 50%; background: #d1d5db; }
.yo-order-summary__total { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; text-align: right; }
.yo-order-summary__amount { font-size: 1.6rem; font-weight: 700; color: var(--yoma-navy); font-variant-numeric: tabular-nums; }
.yo-order-copy { display: inline-flex; padding: .3rem; border-radius: .45rem; color: #9ca3af; transition: color .15s, background .15s; }
.yo-order-copy:hover { color: var(--yoma-navy); background: rgba(39, 61, 141, .08); }
.yo-order-copy__icon { width: 1.1rem; height: 1.1rem; }

.yo-order-items { display: flex; flex-direction: column; }
.yo-order-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid #eef0f4; }
.yo-order-item:first-child { padding-top: 0; }
.yo-order-item__thumb { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; overflow: hidden; border-radius: .65rem; background: #f3f4f6; border: 1px solid #e5e7eb; }
.yo-order-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yo-order-item__placeholder { width: 1.4rem; height: 1.4rem; color: #9ca3af; }
.yo-order-item__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.yo-order-item__name { overflow-wrap: anywhere; font-size: .9rem; font-weight: 600; line-height: 1.35; color: #111827; }
.yo-order-item__sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: #6b7280; }
.yo-order-item__qty { font-size: .8rem; color: #4b5563; font-variant-numeric: tabular-nums; }
.yo-order-item__total { white-space: nowrap; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }
.yo-order-totals { display: flex; flex-direction: column; gap: .35rem; min-width: 14rem; margin-left: auto; padding-top: .9rem; font-size: .85rem; color: #4b5563; font-variant-numeric: tabular-nums; }
.yo-order-totals > div { display: flex; justify-content: space-between; gap: 2rem; }
.yo-order-totals__grand { font-size: 1rem; font-weight: 700; color: #0f172a; }

.yo-order-timeline { display: flex; flex-direction: column; gap: 1.1rem; margin: 0; padding: 0 0 0 1.25rem; list-style: none; border-left: 2px solid #e5e7eb; }
.yo-order-timeline__item { position: relative; }
.yo-order-timeline__dot { position: absolute; top: .3rem; left: calc(-1.25rem - 7px); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--status-color); }
.yo-order-timeline__item.is-current .yo-order-timeline__dot { background: var(--status-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color) 22%, transparent); }
.yo-order-timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.yo-order-timeline__remarks { margin-top: .4rem; padding: .5rem .7rem; border-radius: .5rem; background: #f6f7fb; font-size: .85rem; color: #374151; }

@media (max-width: 640px) {
    .yo-order-summary__total { align-items: flex-start; text-align: left; }
    .yo-order-totals { min-width: 0; width: 100%; }
}

.dark .yo-order-eyebrow, .dark .yo-order-muted, .dark .yo-order-item__sku { color: #9ca3af; }
.dark .yo-order-summary__id, .dark .yo-order-item__name, .dark .yo-order-item__total, .dark .yo-order-totals__grand { color: #f3f4f6; }
.dark .yo-order-summary__meta, .dark .yo-order-item__qty, .dark .yo-order-totals { color: #d1d5db; }
.dark .yo-order-summary__amount { color: #a5b4fc; }
.dark .yo-order-dot { background: #4b5563; }
.dark .yo-order-copy:hover { color: #c7d2fe; background: rgba(255, 255, 255, .06); }
.dark .yo-order-item { border-bottom-color: rgba(255, 255, 255, .07); }
.dark .yo-order-item__thumb { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.dark .yo-order-timeline { border-left-color: rgba(255, 255, 255, .1); }
.dark .yo-order-timeline__dot { background: #111827; }
.dark .yo-order-timeline__remarks { background: rgba(255, 255, 255, .04); color: #d1d5db; }

/* ---------- store switcher (topbar): search box stays put while the list scrolls ---------- */
.store-switcher-search { position: sticky; top: 0; z-index: 1; padding: .5rem; background: #fff; border-bottom: 1px solid rgba(17, 24, 39, .06); }
.store-switcher-empty { padding: .75rem .5rem; font-size: .875rem; text-align: center; color: #6b7280; }
.dark .store-switcher-search { background: #111827; border-bottom-color: rgba(255, 255, 255, .06); }
.dark .store-switcher-empty { color: #9ca3af; }
