/* ═══════════════════════════════════════════════════════════════
   eBay Seller Hub — Filament 3 theme
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
    --ebay-blue: #3665f3;
    --ebay-blue-hover: #2850d9;
    --ebay-blue-light: #eef2ff;
    --ebay-red: #e53238;
    --ebay-yellow: #f5af02;
    --ebay-green: #5ba71b;

    --sh-bg: #ffffff;
    --sh-page-bg: #ffffff;
    --sh-border: #e5e5e5;
    --sh-border-dark: #c5c5c5;
    --sh-text: #191919;
    --sh-text-muted: #707070;
    --sh-sidebar-bg: #fafafa;
    --sh-sidebar-hover: #f0f0f0;
    --sh-sidebar-active: #e8e8e8;
    --sh-filter-bg: #fafafa;
    --sh-radius: 8px;
    --sh-radius-pill: 999px;
}

/* ── Base typography ─────────────────────────────────────────── */
/* Heading / label / UI chrome — Google Sans, Roboto fallback */
.fi-body,
.fi-layout,
.fi-sidebar-item-label,
.fi-topbar,
.fi-page-heading,
.fi-wi-stats-overview-stat-label,
.fi-wi-stats-overview-stat-value {
    font-family: "Google Sans", Roboto, Arial, sans-serif !important;
    color: var(--sh-text);
}

/* Body / general content — Google dùng Roboto cho body text */
.fi-ta-text,
.fi-wi-stats-overview-stat-description,
.fi-fo-field-wrp,
p, td, th {
    font-family: Roboto, Arial, sans-serif !important;
    letter-spacing: 0.0142857143em !important;   /* Google body letter-spacing */
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.25rem !important;
}

/* ── Page background ─────────────────────────────────────────── */
.fi-main-ctn {
    background-color: var(--sh-page-bg) !important;
}

.fi-main {
    padding-top: 0 !important;
}

/* ══════════════════════════════════════════
   SELLER HUB HEADER STRIP
   ══════════════════════════════════════════ */
.sh-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--sh-bg);
    border-bottom: 1px solid var(--sh-border);
}

.sh-header-strip__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sh-text);
    letter-spacing: -0.02em;
}

.sh-header-strip__subtitle {
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
    margin-top: 0.125rem;
}

.sh-header-strip__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--sh-border-dark);
    border-radius: var(--sh-radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sh-text);
    background: var(--sh-bg);
    text-decoration: none;
    transition: background 0.15s;
}

.sh-header-strip__badge:hover {
    background: var(--sh-sidebar-hover);
}

/* ══════════════════════════════════════════
   BRAND / LOGO
   ══════════════════════════════════════════ */
.fi-topbar a:has(.fi-logo) {
    text-decoration: none;
}

.fi-logo {
    display: block;
    width: 80px;
    height: 32px;
    background-image: url("/images/ebay-logo.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    font-size: 0 !important;
}

.fi-logo::before,
.fi-logo::after {
    display: none !important;
    content: none !important;
}

/* ══════════════════════════════════════════
   TOP NAVIGATION (eBay horizontal tabs)
   ══════════════════════════════════════════ */
.fi-topbar {
    background-color: var(--sh-bg) !important;
    border-bottom: 1px solid var(--sh-border) !important;
    box-shadow: none !important;
    padding-inline: 0 !important;
}

.fi-topbar nav.fi-topbar-nav {
    gap: 0 !important;
    padding-inline: 1rem !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.fi-topbar nav.fi-topbar-nav::-webkit-scrollbar {
    display: none;
}

.fi-topbar ul {
    align-self: stretch !important;
    height: 100% !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}

.fi-topbar .fi-dropdown,
.fi-topbar .fi-dropdown-trigger {
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
}

.fi-topbar-item {
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    white-space: nowrap !important;
}

.fi-topbar-item-button {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 0 !important;
    padding: 0 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--sh-text) !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -1px !important;
    background: transparent !important;
    transition:
        color 0.15s,
        border-color 0.15s !important;
    white-space: nowrap !important;
}

.fi-topbar-item-button:hover {
    color: var(--ebay-blue) !important;
    background: transparent !important;
}

.fi-topbar-item-active .fi-topbar-item-button,
.fi-topbar .fi-active .fi-topbar-item-button {
    color: var(--ebay-blue) !important;
    font-weight: 600 !important;
    border-bottom-color: var(--ebay-blue) !important;
    background: transparent !important;
}

.fi-topbar-item-label {
    font-family: "Google Sans", Roboto, Arial, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.fi-topbar-open-sidebar-btn {
    border-radius: var(--sh-radius) !important;
}

/* ══════════════════════════════════════════
   SIDEBAR (mobile / collapsible)
   ══════════════════════════════════════════ */
.fi-sidebar {
    background-color: var(--sh-sidebar-bg) !important;
    border-right: 1px solid var(--sh-border) !important;
    box-shadow: none !important;
}

.fi-sidebar-header {
    border-bottom: 1px solid var(--sh-border) !important;
}

.fi-sidebar-group-label {
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--sh-text-muted) !important;
}

.fi-sidebar .fi-sidebar-item-button {
    border-radius: var(--sh-radius) !important;
    margin-inline: 0.5rem !important;
    padding-inline: 0.75rem !important;
}

/* Nav item label — Google spec exact (from DevTools myaccount.google.com) */
.fi-sidebar-item-label {
    font-family: "Google Sans", Roboto, Arial, sans-serif !important;
    font-size: 0.875rem !important;      /* --gm3-navigation-rail-label-text-size */
    font-weight: 500 !important;         /* --gm3-navigation-rail-label-text-weight */
    letter-spacing: 0rem !important;     /* --gm3-navigation-rail-label-text-tracking: 0rem */
    line-height: 1.4285714286 !important;/* --gm3-navigation-rail-label-text-line-height */
    color: #1f1f1f !important;           /* --gm3-sys-color-on-surface (on-surface, NOT on-surface-variant) */
}

.fi-sidebar .fi-sidebar-item-button:hover {
    background-color: var(--sh-sidebar-hover) !important;
}

/* Chỉ highlight item đang active — không dùng .fi-active .fi-sidebar-item-button
   vì group cha cũng có class fi-active và sẽ làm sáng cả nhóm con. */
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-button,
.fi-sidebar .fi-sidebar-item.fi-sidebar-item-active > .fi-sidebar-item-button {
    background-color: var(--sh-sidebar-active) !important;
}

.fi-sidebar
    .fi-sidebar-item.fi-active
    > .fi-sidebar-item-button
    .fi-sidebar-item-label,
.fi-sidebar
    .fi-sidebar-item.fi-sidebar-item-active
    > .fi-sidebar-item-button
    .fi-sidebar-item-label {
    color: #1f1f1f !important;            /* Google active label color */
    font-weight: 600 !important;
}

.fi-sidebar
    .fi-sidebar-item.fi-active
    > .fi-sidebar-item-button
    .fi-sidebar-item-icon,
.fi-sidebar
    .fi-sidebar-item.fi-sidebar-item-active
    > .fi-sidebar-item-button
    .fi-sidebar-item-icon {
    color: var(--ebay-blue) !important;
}

/* ══════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════ */
.fi-header-heading {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--sh-text) !important;
    letter-spacing: -0.02em !important;
}

.fi-header-subheading {
    color: var(--sh-text-muted) !important;
    font-size: 0.875rem !important;
}

.fi-page-header-main-ctn {
    padding-bottom: 0.5rem !important;
}

/* ══════════════════════════════════════════
   LEFT SUB-NAVIGATION (eBay Orders sidebar)
   ══════════════════════════════════════════ */
.fi-page-sub-navigation-sidebar-ctn {
    width: 13rem !important;
    min-width: 13rem !important;
    padding-right: 1.5rem !important;
    border-right: 1px solid var(--sh-border) !important;
    margin-right: 1.5rem !important;
}

.fi-page-sub-navigation-sidebar {
    gap: 1.25rem !important;
}

.fi-page-sub-navigation-sidebar .fi-sidebar-group-label {
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--sh-text-muted) !important;
    padding-inline: 0.75rem !important;
    margin-bottom: 0.25rem !important;
}

.fi-page-sub-navigation-sidebar .fi-sidebar-item-button {
    border-radius: var(--sh-radius) !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--sh-text) !important;
    margin-inline: 0 !important;
}

.fi-page-sub-navigation-sidebar .fi-sidebar-item-button:hover {
    background-color: var(--sh-sidebar-hover) !important;
}

.fi-page-sub-navigation-sidebar
    .fi-sidebar-item.fi-active
    > .fi-sidebar-item-button,
.fi-page-sub-navigation-sidebar
    .fi-sidebar-item.fi-sidebar-item-active
    > .fi-sidebar-item-button {
    background-color: var(--sh-sidebar-active) !important;
    font-weight: 600 !important;
}

.fi-page-sub-navigation-sidebar
    .fi-sidebar-item.fi-active
    > .fi-sidebar-item-button
    .fi-sidebar-item-label,
.fi-page-sub-navigation-sidebar
    .fi-sidebar-item.fi-sidebar-item-active
    > .fi-sidebar-item-button
    .fi-sidebar-item-label {
    color: var(--sh-text) !important;
}

.fi-page-sub-navigation-sidebar
    .fi-sidebar-item:not(.fi-active)
    > .fi-sidebar-item-button {
    background-color: transparent !important;
}

.fi-page-sub-navigation-sidebar .fi-sidebar-item-icon {
    display: none !important;
}

/* Page layout: sidebar + content */
.fi-page:has(.fi-page-sub-navigation-sidebar-ctn) .fi-page-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .fi-page-sub-navigation-select {
        margin-bottom: 1rem !important;
    }
}

/* ══════════════════════════════════════════
   LISTINGS PAGE (eBay Manage active listings)
   ══════════════════════════════════════════ */
.fi-resource-list-records .fi-header-actions .fi-btn-color-primary {
    padding-inline: 1.25rem !important;
    font-size: 0.875rem !important;
}

.fi-ta-search-field {
    margin-right: 12px;
}

.fi-ta-search-field input {
    min-width: 18rem;
}

/* ══════════════════════════════════════════
   LISTINGS TABLE — eBay Seller Hub style
   ══════════════════════════════════════════ */

/* thumbnail compact */
.fi-ta-col-item .fi-ta-image img {
    border-radius: 4px;
    object-fit: cover;
}

/* header labels không xuống dòng */
.fi-ta-header-cell-label {
    white-space: nowrap !important;
}

/* all cells vertical-center */
.fi-ta-cell {
    vertical-align: middle !important;
}

/* metric columns — monospace numbers, nhỏ gọn */
.fi-ta-cell[class*="views"],
.fi-ta-cell[class*="watchers"],
.fi-ta-cell[class*="questions"],
.fi-ta-cell[class*="bids"],
.fi-ta-cell[class*="time"] {
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem !important;
    color: var(--sh-text-muted);
}

.ebay-listing-quantity-inline {
    width: 4.5rem !important;
    min-width: 4.5rem !important;
    margin-inline: auto;
}

.ebay-listing-quantity-inline input {
    min-width: 0;
    padding-inline: 0.4rem !important;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Actions dropdown button */
.fi-ta-actions .fi-btn {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    padding-inline: 0.75rem !important;
}

/* title + description (item number) */
.fi-ta-col-title .fi-ta-col-title__description {
    font-size: 0.75rem !important;
    color: var(--sh-text-muted) !important;
}

.fi-ta-filters-above-content-collapsible-ctn {
    background: var(--sh-filter-bg) !important;
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    margin-bottom: 1rem !important;
}

/* ══════════════════════════════════════════
   TABLE & FILTERS (Manage all orders style)
   ══════════════════════════════════════════ */
.fi-ta {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    box-shadow: none !important;
    overflow: hidden;
    background: var(--sh-bg) !important;
}

.fi-ta-header-cell {
    background-color: var(--sh-bg) !important;
    border-bottom: 1px solid var(--sh-border) !important;
}

.fi-ta-header-cell-label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--sh-text) !important;
}

.fi-ta-row {
    border-bottom: 1px solid #f0f0f0 !important;
}

.fi-ta-row:hover {
    background-color: #fafafa !important;
}

.fi-ta-row-striped:nth-child(even) {
    background-color: transparent !important;
}

.fi-ta-filters-above-content-ctn {
    background: var(--sh-filter-bg) !important;
    border-radius: var(--sh-radius) !important;
    margin-bottom: 0.75rem !important;
}

.fi-ta-filters-above-content-ctn .fi-fo-component-ctn {
    align-items: end !important;
}

.fi-ta-filters-above-content-ctn .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--sh-text) !important;
    margin-bottom: 0.375rem !important;
}

.fi-ta-header-toolbar {
    padding: 0.75rem 1rem !important;
    border-bottom: none !important;
}

.fi-ta-pagination {
    background-color: var(--sh-bg) !important;
    border-top: 1px solid var(--sh-border) !important;
}

.fi-ta-empty-state {
    padding: 3rem 1rem !important;
}

.fi-ta-empty-state-heading {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--sh-text-muted) !important;
}

/* ══════════════════════════════════════════
   SECTIONS & CARDS
   ══════════════════════════════════════════ */
.fi-section {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    box-shadow: none !important;
    background: var(--sh-bg) !important;
}

.fi-section-header {
    background-color: var(--sh-bg) !important;
    border-bottom: 1px solid var(--sh-border) !important;
    border-left: none !important;
}

.fi-section-header-heading {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* ══════════════════════════════════════════
   BUTTONS (eBay pill style)
   ══════════════════════════════════════════ */
.fi-btn {
    border-radius: var(--sh-radius-pill) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    transition:
        background 0.15s,
        border-color 0.15s !important;
}

.fi-btn-color-primary {
    background-color: var(--ebay-blue) !important;
    color: #fff !important;
}

.fi-btn-color-primary:hover {
    background-color: var(--ebay-blue-hover) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ToggleButtons (Kỳ báo cáo, Nhóm biểu đồ, …) — tránh nền xanh + chữ đen */
.fi-fo-toggle-buttons label.fi-btn {
    background-color: #fff !important;
    color: #191919 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
}

.fi-fo-toggle-buttons label.fi-btn:hover {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #191919 !important;
}

.fi-fo-toggle-buttons input:checked + label.fi-btn {
    background-color: var(--ebay-blue) !important;
    border-color: var(--ebay-blue) !important;
    color: #fff !important;
}

.fi-fo-toggle-buttons input:checked + label.fi-btn:hover {
    background-color: var(--ebay-blue-hover) !important;
    border-color: var(--ebay-blue-hover) !important;
    color: #fff !important;
}

.fi-fo-toggle-buttons input:checked + label.fi-btn .fi-btn-label,
.fi-fo-toggle-buttons input:checked + label.fi-btn .fi-btn-icon {
    color: #fff !important;
}

.fi-btn-color-gray {
    border-color: var(--sh-border-dark) !important;
    color: var(--sh-text) !important;
}

.fi-btn-color-gray:hover {
    background-color: var(--sh-sidebar-hover) !important;
}

.fi-ac-btn-action {
    border-radius: var(--sh-radius-pill) !important;
}

/* ══════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════ */
.fi-badge {
    border-radius: var(--sh-radius) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* ══════════════════════════════════════════
   STATS WIDGETS — Clean card style
   ══════════════════════════════════════════ */

.fi-wi-stats-overview {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.fi-wi-stats-overview-stats-ctn {
    gap: 0.875rem !important;
}

.fi-dashboard-widgets-ctn {
    gap: 0.875rem !important;
    align-items: stretch !important;
}

/* Table widgets cùng chiều cao khi đứng ngang nhau */
.fi-wi-table {
    display: flex !important;
    flex-direction: column !important;
}

.fi-wi-table > section,
.fi-wi-table > div {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.fi-wi-table .fi-ta-ctn {
    flex: 1 !important;
}


/* Card — bo tròn 16px, shadow tinh tế */
.fi-wi-stats-overview-stat {
    border-radius: 16px !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    padding: 1.25rem !important;
    background: #fff !important;
    transition: box-shadow 0.15s, transform 0.15s !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* Label */
.fi-wi-stats-overview-stat-label {
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: #888 !important;
    line-height: 1.2 !important;
}

/* Value */
.fi-wi-stats-overview-stat-value {
    font-size: 1.625rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
    color: #111 !important;
}

/* Description */
.fi-wi-stats-overview-stat-description {
    font-size: 0.75rem !important;
    color: #888 !important;
    line-height: 1.4 !important;
}


/* ══════════════════════════════════════════
   FORMS & INPUTS
   ══════════════════════════════════════════ */
.fi-input-wrp {
    border-radius: var(--sh-radius) !important;
    border-color: var(--sh-border-dark) !important;
}

.fi-select-input,
.fi-input input {
    font-size: 0.875rem !important;
}

.choices__list--dropdown .choices__item--choice,
.choices__list[aria-expanded] .choices__item--choice {
    position: relative;
}

.choices__list--dropdown .choices__item--choice.is-selected,
.choices__list[aria-expanded] .choices__item--choice.is-selected {
    padding-inline-end: 2rem;
}

.choices__list--dropdown .choices__item--choice.is-selected::after,
.choices__list[aria-expanded] .choices__item--choice.is-selected::after {
    content: "✓";
    position: absolute;
    inset-inline-end: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--sh-text);
}

/* ══════════════════════════════════════════
   DASHBOARD HEADER WIDGET
   ══════════════════════════════════════════ */

.sh-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.25rem 0 0.5rem;
}

.sh-dh-greeting {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #1f1f1f;
    margin: 0;
    line-height: 1.4;
}

.sh-dh-greeting strong {
    font-weight: 600;
}

.sh-dh-date {
    font-family: Roboto, Arial, sans-serif;
    font-size: 0.8125rem;
    color: #444746;
    margin: 0.125rem 0 0;
    letter-spacing: 0.0142857143em;
}

.sh-dh-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sh-dh-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #fff0f0;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 0.25rem 0.875rem 0.25rem 0.625rem;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.sh-dh-alert:hover {
    background: #fee2e2;
}

.sh-dh-alert-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.sh-dh-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #15803d;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
}

.sh-dh-ok-icon {
    width: 1rem;
    height: 1rem;
}

.sh-dh-time {
    font-family: "Roboto Mono", "SF Mono", monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #444746;
    letter-spacing: 0.04em;
    min-width: 6rem;
    text-align: right;
}

/* ══════════════════════════════════════════
   TABLE WIDGETS (RecentOrders, TopSKU, AccountHealth)
   ══════════════════════════════════════════ */

/* Widget heading */
.fi-wi-table .fi-header-heading {
    font-family: "Google Sans", Roboto, Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    letter-spacing: 0 !important;
}

/* Table header cells — chỉ scope trong dashboard widget, không ảnh hưởng bảng orders */
.fi-wi-table .fi-ta-header-cell,
.fi-wi-table .fi-ta-header-cell-label {
    font-family: "Google Sans", Roboto, Arial, sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #444746 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

/* Table rows — chỉ scope trong dashboard widget */
.fi-wi-table .fi-ta-row td {
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 0.875rem !important;
    color: #1f1f1f !important;
}

/* Badge in table */
.fi-badge {
    font-family: "Google Sans", Roboto, Arial, sans-serif !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

/* ══════════════════════════════════════════
   DROPDOWN MENU — match topbar nav label style
   ══════════════════════════════════════════ */

/* Dropdown panel */
.fi-dropdown-panel {
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
    border: 1px solid #e0e0e0 !important;
    overflow: hidden !important;
}

/* Dropdown item label — cùng spec với fi-sidebar-item-label */
.fi-dropdown-list-item-label {
    font-family: "Google Sans", Roboto, Arial, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.4285714 !important;
    color: #1f1f1f !important;
}

/* Dropdown item hover */
.fi-dropdown-list-item:hover .fi-dropdown-list-item-label {
    color: #1f1f1f !important;
}

/* Dropdown item button */
.fi-dropdown-list-item button,
.fi-dropdown-list-item a {
    border-radius: 8px !important;
    margin: 0.125rem 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    width: calc(100% - 0.75rem) !important;
}

/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.fi-modal-window {
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    border: 1px solid var(--sh-border) !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.fi-modal-header {
    background-color: var(--sh-bg) !important;
    border-bottom: none !important;
}

.fi-modal-footer {
    background-color: var(--sh-bg) !important;
    border-top: none !important;
}

.fi-modal-footer.fi-sticky {
    border-top: none !important;
}

/* ══════════════════════════════════════════
   LINKS
   ══════════════════════════════════════════ */
a.fi-link {
    color: var(--ebay-blue) !important;
}

/* ══════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* ══════════════════════════════════════════
   DATABASE NOTIFICATIONS (eBay: chỉ đọc, không xóa)
   ══════════════════════════════════════════ */
#database-notifications [wire\:click="clearNotifications"] {
    display: none !important;
}

/* ══════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════ */
.fi-simple-layout {
    background: var(--sh-page-bg) !important;
}

.fi-simple-main-ctn {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

/* ══════════════════════════════════════════
   ORDERS TABLE — eBay Manage all orders
   ══════════════════════════════════════════ */
.ebay-orders-page .fi-ta-ctn {
    --tw-ring-shadow: 0 0 #0000 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.ebay-orders-page .fi-ta {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ebay-orders-page .fi-ta-ctn.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 1px !important;
    border-top-color: var(--sh-border) !important;
}

.ebay-orders-page .fi-ta-header-ctn.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 0 !important;
}

/* Filter box: override Tailwind py-4 px-4 bằng padding cân bằng */
.ebay-orders-page .fi-ta-filters-above-content-ctn {
    background: var(--sh-bg) !important;
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 1.25rem !important;
}

/* Xóa padding/margin thừa từ Filament form wrappers bên trong */
.ebay-orders-page .fi-ta-filters-above-content-ctn form,
.ebay-orders-page .fi-ta-filters-above-content-ctn .fi-fo-component-ctn {
    padding: 0 !important;
    margin: 0 !important;
}

.ebay-orders-page .fi-ta-filters-above-content-ctn .fi-fo-component-ctn {
    align-items: end !important;
    gap: 0.75rem 1rem !important;
}

.ebay-orders-page .fi-ta-filters-above-content-ctn .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.ebay-orders-page .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--sh-text-muted) !important;
    margin-bottom: 0.25rem !important;
}

.ebay-orders-page .fi-ta-filters-above-content-ctn .fi-select-input,
.ebay-orders-page .fi-ta-filters-above-content-ctn .fi-input-wrp {
    min-height: 2.25rem;
}

.ebay-orders-page .fi-ta-filters-above-content-ctn .fi-input {
    font-size: 0.8125rem !important;
}

.ebay-orders-page .fi-ta-header-toolbar {
    display: none !important;
}

/* Indicators card: khi có filter active, nằm sau filter box */
.ebay-orders-page .fi-ta-filter-indicators {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    padding: 0.4rem 1rem !important;
    margin-bottom: 1.25rem !important;
    background: var(--sh-bg) !important;
}

/* Khi indicators xuất hiện: gộp với filter box thành 1 card liền nhau */
.ebay-orders-page:has(.fi-ta-filter-indicators:not(:empty)) .fi-ta-filters-above-content-ctn {
    border-bottom: none !important;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
    margin-bottom: 0 !important;
}

.ebay-orders-page:has(.fi-ta-filter-indicators:not(:empty)) .fi-ta-filter-indicators {
    border-top: none !important;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius) !important;
}

.ebay-orders-page .fi-ta-content {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
    overflow: hidden !important;
    background: var(--sh-bg) !important;
}

.ebay-orders-page .fi-ta-pagination {
    border: 1px solid var(--sh-border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius) !important;
    background: var(--sh-bg) !important;
}

.ebay-orders-page .fi-ta-filters {
    gap: 0.75rem !important;
}

.ebay-orders-page .fi-ta-filters h4 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

/* eBay unified search bar */
.ebay-orders-page .sh-ebay-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 36rem;
    min-height: 2.5rem;
    border: 1px solid #c9c9c9;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
}

.ebay-orders-page .sh-ebay-search__segment {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ebay-orders-page .sh-ebay-search__segment--type {
    position: relative;
    gap: 0.25rem;
    padding: 0 2rem 0 0.875rem;
    max-width: 15rem;
    cursor: pointer;
}

.ebay-orders-page .sh-ebay-search__prefix {
    font-size: 0.8125rem;
    color: #555;
    white-space: nowrap;
}

.ebay-orders-page .sh-ebay-search__value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #191919;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebay-orders-page .sh-ebay-search__select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}

.ebay-orders-page .sh-ebay-search__chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #707070;
    pointer-events: none;
}

.ebay-orders-page .sh-ebay-search__divider {
    width: 1px;
    align-self: stretch;
    background: #e0e0e0;
    flex-shrink: 0;
}

.ebay-orders-page .sh-ebay-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    color: #191919;
}

.ebay-orders-page .sh-ebay-search__input::placeholder {
    color: #707070;
}

.ebay-orders-page .sh-ebay-search__segment--icon {
    justify-content: center;
    width: 2.75rem;
    color: #191919;
}

.ebay-orders-page .sh-ebay-search__icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Hide Filament wrappers around custom search view */
.ebay-orders-page .fi-fo-field-wrp:has(.sh-ebay-search) {
    margin: 0 !important;
}

.ebay-orders-page .fi-fo-field-wrp:has(.sh-ebay-search) .fi-fo-field-wrp-label {
    display: none !important;
}

.ebay-orders-page .sh-ebay-search-hidden {
    display: none !important;
}

.ebay-orders-page .fi-ta-filters-above-content-ctn form > .fi-fo-component-ctn {
    align-items: end !important;
}

.ebay-orders-page .fi-ta-table {
    table-layout: fixed;
    width: 100%;
}

.ebay-orders-page .fi-ta-cell {
    vertical-align: top !important;
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
    overflow: hidden;
}

.ebay-orders-page .fi-ta-cell .fi-ta-col-wrp,
.ebay-orders-page .fi-ta-cell .fi-ta-col-wrp > div,
.ebay-orders-page .fi-ta-cell .fi-ta-col-wrp > a {
    min-width: 0;
    max-width: 100%;
}

.ebay-orders-page .fi-ta-header-cell {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    padding-inline: 0.35rem !important;
}

.ebay-orders-page .fi-table-header-cell-ebay-quantity,
.ebay-orders-page .fi-table-header-cell-ebay-subtotal,
.ebay-orders-page .fi-table-header-cell-ebay-total,
.ebay-orders-page .fi-table-header-cell-ebay-date-sold,
.ebay-orders-page .fi-table-header-cell-ebay-date-paid {
    font-size: 0.6875rem;
    white-space: normal;
    text-align: right;
}

.ebay-orders-page .fi-table-header-cell-ebay-quantity {
    text-align: center;
}

.ebay-orders-page .fi-table-header-cell-ebay-actions,
.ebay-orders-page .fi-table-cell-ebay-actions {
    width: 11rem;
    min-width: 11rem;
    max-width: 11rem;
}

.ebay-orders-page .fi-table-cell-ebay-actions {
    overflow: visible !important;
}

.ebay-orders-page .fi-ta-actions-header-cell,
.ebay-orders-page .fi-ta-actions-cell {
    display: none !important;
}

.ebay-orders-page .fi-table-header-cell-ebay-order,
.ebay-orders-page .fi-table-cell-ebay-order {
    width: auto;
    max-width: 0;
    overflow: hidden;
}

.ebay-orders-page .fi-table-cell-ebay-order .fi-ta-col-wrp > div,
.ebay-orders-page .fi-table-cell-ebay-order .fi-ta-col-wrp > a {
    display: block;
    width: 100%;
}

.ebay-orders-page .fi-table-header-cell-ebay-quantity,
.ebay-orders-page .fi-table-cell-ebay-quantity {
    width: 4.5rem;
    min-width: 4.5rem;
    max-width: 4.5rem;
}

.ebay-orders-page .fi-table-header-cell-ebay-subtotal,
.ebay-orders-page .fi-table-cell-ebay-subtotal,
.ebay-orders-page .fi-table-header-cell-ebay-total,
.ebay-orders-page .fi-table-cell-ebay-total {
    width: 5.75rem;
    min-width: 5.75rem;
    max-width: 5.75rem;
}

.ebay-orders-page .fi-table-header-cell-ebay-date-sold,
.ebay-orders-page .fi-table-cell-ebay-date-sold {
    width: 6.25rem;
    min-width: 6.25rem;
    max-width: 6.25rem;
}

.ebay-orders-page .fi-table-header-cell-ebay-date-paid,
.ebay-orders-page .fi-table-cell-ebay-date-paid {
    width: 9rem;
    min-width: 9rem;
    max-width: 9rem;
    white-space: nowrap;
}

.ebay-orders-page .fi-table-header-cell-ebay-account,
.ebay-orders-page .fi-table-cell-ebay-account {
    width: 7.5rem;
    min-width: 7.5rem;
    max-width: 7.5rem;
}

.ebay-orders-page .fi-table-cell-ebay-account,
.ebay-orders-page .fi-table-cell-ebay-quantity,
.ebay-orders-page .fi-table-cell-ebay-subtotal,
.ebay-orders-page .fi-table-cell-ebay-total,
.ebay-orders-page .fi-table-cell-ebay-date-sold,
.ebay-orders-page .fi-table-cell-ebay-date-paid {
    font-size: 0.75rem;
    padding-inline: 0.35rem !important;
}

.ebay-orders-page .fi-table-cell-ebay-actions,
.ebay-orders-page .fi-table-header-cell-ebay-actions {
    padding-left: 1rem !important;
}

.ebay-orders-page .fi-table-cell-ebay-date-paid,
.ebay-orders-page .fi-table-header-cell-ebay-date-paid {
    padding-right: 1.25rem !important;
}

.sh-order-actions {
    max-width: 100%;
    min-width: 0;
    padding-inline: 0.25rem;
    padding-top: 0.125rem;
}

.sh-order-link {
    color: var(--ebay-blue);
    text-decoration: underline;
    font-weight: 500;
}

.sh-order-link:hover {
    color: var(--ebay-blue-hover);
    text-decoration: underline;
}

.sh-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--sh-radius-pill);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid var(--sh-border-dark);
    background: var(--sh-bg);
    color: var(--sh-text);
    white-space: nowrap;
    transition: background 0.15s;
}

.sh-order-btn:hover {
    background: var(--sh-sidebar-hover);
}

.sh-order-actions__buttons {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.sh-order-actions__buttons .sh-order-btn {
    margin-top: 0;
}

.sh-order-more {
    position: relative;
    flex: 0 0 auto;
}

.sh-order-more__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    padding: 0;
    border: 1px solid var(--sh-border-dark);
    border-radius: 50%;
    background: var(--sh-bg);
    color: var(--sh-text);
    cursor: pointer;
}

.sh-order-more__trigger:hover,
.sh-order-more__trigger[aria-expanded="true"] {
    background: var(--sh-sidebar-hover);
}

.sh-order-more__trigger svg {
    width: 1rem;
    height: 1rem;
}

.sh-order-more__menu {
    position: fixed;
    z-index: 100;
    width: 13.5rem;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.375rem;
    border: 1px solid var(--sh-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.sh-order-more__menu a,
.sh-order-more__menu button {
    display: flex;
    width: 100%;
    padding: 0.55rem 0.625rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--sh-text);
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.sh-order-more__menu a:hover,
.sh-order-more__menu button:hover {
    background: var(--sh-sidebar-hover);
}

.sh-order-more__separator {
    height: 1px;
    margin: 0.375rem -0.375rem;
    background: var(--sh-border);
}

.sh-order-payment-modal__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sh-order-payment-modal {
    display: grid;
    gap: 1.25rem;
}

.sh-order-payment-modal section {
    padding-top: 1rem;
    border-top: 1px solid var(--sh-border);
}

.sh-order-payment-modal h3 {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.sh-order-destination-modal {
    display: grid;
    justify-items: start;
    gap: 1rem;
}

.sh-order-destination-modal p {
    margin: 0;
    color: var(--sh-text-muted);
}

.sh-order-actions__headline {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sh-text);
}

.sh-order-actions__subline {
    font-size: 0.6875rem;
    line-height: 1.3;
    color: var(--sh-text-muted);
    margin-top: 0.125rem;
}

.sh-order-actions__subline--danger {
    color: var(--ebay-red);
    font-weight: 600;
}

.sh-order-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-inline: 0.25rem;
}

.sh-order-detail-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sh-order-detail-cell .sh-order-seller-note,
.sh-order-detail-cell .sh-order-seller-note-link {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

.sh-order-detail__left {
    flex: 0 0 6.5rem;
    width: 6.5rem;
    max-width: 6.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    overflow: hidden;
    padding-top: 0.125rem;
}

.sh-order-detail__right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-top: 0.125rem;
}

.sh-order-detail__order-id {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-all;
    overflow-wrap: anywhere;
}



.sh-order-detail__thumb {
    display: block;
    width: 5.25rem;
    height: 5.25rem;
    flex-shrink: 0;
    border: 1px solid var(--sh-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
}

.sh-order-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sh-order-detail__thumb--empty {
    background: #f0f0f0;
}

.sh-order-detail__title {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ebay-blue);
    text-decoration: underline;
    margin-top: 0;
    margin-bottom: 0.0625rem;
}

.sh-order-detail__title:hover {
    color: var(--ebay-blue-hover);
    text-decoration: underline;
}

.sh-order-detail__buyer {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.125rem;
}

.sh-order-detail__item-id {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--sh-text-muted);
    margin-bottom: 0.125rem;
}

.sh-order-detail__shop {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--sh-text-muted);
    margin-top: 0.0625rem;
}

.sh-order-detail__tracking {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--sh-text-muted);
    margin-bottom: 0.125rem;
}

.sh-order-detail__tracking span {
    display: block;
}

.sh-order-detail__tracking .sh-order-detail__value {
    display: block;
    margin-top: 0.0625rem;
}

.sh-order-detail__zip {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--sh-text-muted);
}

.sh-order-detail__value {
    color: var(--sh-text);
    word-break: break-all;
}

.sh-order-seller-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.625rem;
    padding: 0.375rem 0.625rem;
    background: #fff8dc;
    border: 1px solid #f0e6a8;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.sh-order-seller-note-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    color: var(--ebay-blue);
    text-decoration: underline;
    cursor: pointer;
}

.sh-order-seller-note-link:hover {
    color: var(--ebay-blue-hover);
}

.sh-order-seller-note-link__icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.sh-order-seller-note-link__spinner,
.sh-order-seller-note__icon--spin,
.sh-order-seller-note-modal__spinner {
    animation: sh-order-note-spin 0.75s linear infinite;
}

@keyframes sh-order-note-spin {
    to {
        transform: rotate(360deg);
    }
}

.sh-order-seller-note-link__spinner {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.sh-order-seller-note__icon--spin {
    width: 1rem;
    height: 1rem;
}

.sh-order-seller-note-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 7rem;
    font-size: 0.875rem;
    color: #64748b;
}

.sh-order-seller-note-modal__spinner {
    width: 2rem;
    height: 2rem;
    color: var(--ebay-blue, #3665f3);
}

.sh-order-seller-note--empty {
    display: none;
}

.sh-order-seller-note__label {
    flex: 0 0 auto;
    font-weight: 600;
    color: #5c4b00;
}

.sh-order-seller-note__text,
.sh-order-seller-note__placeholder {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: #333;
}

.sh-order-seller-note__placeholder {
    color: #888;
    font-style: italic;
}

.sh-order-seller-note__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.sh-order-seller-note__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #5c4b00;
    cursor: pointer;
}

.sh-order-seller-note__btn:hover {
    background: rgba(92, 75, 0, 0.08);
}

.sh-order-seller-note__icon {
    width: 1rem;
    height: 1rem;
}

.sh-order-seller-note-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sh-order-seller-note-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.sh-order-seller-note-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    padding: 1.25rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.sh-order-seller-note-modal__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.sh-order-seller-note-modal__hint,
.sh-order-seller-note-editor__hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.sh-order-seller-note-modal__input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--sh-border, #d1d5db);
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.45;
    resize: vertical;
}

.sh-order-seller-note-modal__footer,
.sh-order-seller-note-editor__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.sh-order-detail__tracking-action {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.sh-order-tracking-modal__panel {
    width: min(100%, 30rem);
}

.sh-order-tracking-modal__fields {
    display: grid;
    gap: 0.75rem;
}

.sh-order-tracking-modal__field {
    display: grid;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.sh-order-tracking-modal__field small {
    font-weight: 400;
    color: #64748b;
}

.sh-order-tracking-modal__error {
    color: #dc2626 !important;
}

.sh-order-seller-note-editor {
    margin-bottom: 1rem;
}

.sh-order-metric {
    text-align: center;
    font-size: 0.75rem;
}

.sh-order-metric__value {
    font-weight: 700;
    font-size: 0.8125rem;
}

.sh-order-metric__muted {
    display: block;
    font-size: 0.6875rem;
    color: var(--sh-text-muted);
    margin-top: 0.125rem;
}

.sh-order-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sh-order-money__amount {
    font-size: 0.75rem;
    font-weight: 600;
}

.sh-order-money__amount--total {
    font-size: 0.8125rem;
}

.sh-order-money__note {
    font-size: 0.6875rem;
    color: var(--sh-text-muted);
    margin-top: 0.125rem;
    line-height: 1.25;
}

.sh-order-date {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sh-order-date__day {
    font-size: 0.75rem;
    font-weight: 500;
}

.sh-order-date__time {
    font-size: 0.6875rem;
    color: var(--sh-text-muted);
    margin-top: 0.125rem;
}

@media (max-width: 1024px) {
    .ebay-orders-page .fi-table-header-cell-ebay-quantity,
    .ebay-orders-page .fi-table-cell-ebay-quantity,
    .ebay-orders-page .fi-table-header-cell-ebay-subtotal,
    .ebay-orders-page .fi-table-cell-ebay-subtotal,
    .ebay-orders-page .fi-table-header-cell-ebay-date-paid,
    .ebay-orders-page .fi-table-cell-ebay-date-paid {
        display: none;
    }
}

/* ══════════════════════════════════════════
   ORDER DETAIL — eBay Order details
   ══════════════════════════════════════════ */
.ebay-order-detail-page .fi-header-heading {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.ebay-order-detail-page .fi-page-main {
    max-width: 72rem;
}

.ebay-order-detail-page .fi-page-sub-navigation-sidebar-ctn,
.ebay-order-detail-page .fi-page-sub-navigation-select {
    display: none !important;
}

.sh-order-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sh-order-view__hero {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.25rem 0 0.75rem;
}

.sh-order-view__hero-thumb {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid var(--sh-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f7f7f7;
}

.sh-order-view__hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-order-view__hero-thumb--empty {
    background: #ececec;
}

.sh-order-view__hero-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sh-text);
    margin: 0;
}

.sh-order-view__hero-meta {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
}

.sh-order-view__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: 1rem;
    align-items: start;
}

.sh-order-view__main,
.sh-order-view__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.sh-order-card {
    background: #fff;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 1rem 1.125rem;
}

.sh-order-card__header {
    margin-bottom: 1rem;
}

.sh-order-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sh-text);
}

.sh-order-card__title--section {
    font-size: 1rem;
    margin-bottom: 0.875rem;
}

.sh-order-card__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
}

.sh-order-card__actions {
    margin-top: 1rem;
}

.sh-order-view__alert {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.sh-order-view__alert--info {
    background: #f0f6fd;
    border: 1px solid #c5d9f2;
    color: #2f3c4d;
}

.sh-order-view__alert--danger {
    background: #fff4f4;
    border: 1px solid #f2c0c0;
    color: #8a1f1f;
}

.sh-order-stepper {
    display: flex;
    width: 100%;
    margin-top: 0.25rem;
}

.sh-order-stepper__col {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.35rem;
}

.sh-order-stepper__connector {
    position: absolute;
    top: 0.875rem;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #d8d8d8;
    z-index: 0;
    transform: translateY(-50%);
}

.sh-order-stepper__connector--active {
    background: #3665f3;
}

.sh-order-stepper__node {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.625rem;
    border-radius: 999px;
    border: 2px solid #d8d8d8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.sh-order-stepper__col--done .sh-order-stepper__node {
    border-color: #3665f3;
    background: #3665f3;
    color: #fff;
}

.sh-order-stepper__check {
    width: 1rem;
    height: 1rem;
}

.sh-order-stepper__label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 8.5rem;
}

.sh-order-stepper__text {
    min-width: 0;
}

.sh-order-stepper__date {
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    color: var(--sh-text-muted);
    line-height: 1.3;
}

.sh-order-shipping-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
}

.sh-order-shipping-phone,
.sh-order-shipping-tracking {
    margin-top: 1rem;
}

.sh-order-kv__value--strong {
    font-weight: 700;
    color: var(--sh-text);
}

.sh-order-kv__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sh-text-muted);
    margin-bottom: 0.25rem;
}

.sh-order-kv__value {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--sh-text);
}

.sh-order-kv__muted {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
}

.sh-order-item {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-top: 1px solid var(--sh-border);
}

.sh-order-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.sh-order-item__thumb {
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--sh-border);
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f7f7f7;
}

.sh-order-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-order-item__thumb--empty {
    background: #ececec;
}

.sh-order-item__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.sh-order-item__meta {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    line-height: 1.4;
}

.sh-order-item__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: start;
}

.sh-order-item__metric {
    min-width: 4.5rem;
    text-align: right;
}

.sh-order-item__metric-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--sh-text-muted);
    margin-bottom: 0.15rem;
}

.sh-order-item__metric-value {
    font-size: 0.8125rem;
    font-weight: 600;
}

.sh-order-item__metric--cost {
    min-width: 9.5rem;
}

.sh-order-cost-input {
    display: inline-flex;
    align-items: stretch;
    height: 1.875rem;
    border: 1px solid var(--sh-border-dark);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.sh-order-cost-input:focus-within {
    border-color: var(--ebay-blue);
    box-shadow: 0 0 0 1px var(--ebay-blue);
}

.sh-order-cost-input__currency {
    display: inline-flex;
    align-items: center;
    padding: 0 0.4rem;
    color: var(--sh-text-muted);
    background: #f7f7f7;
    border-right: 1px solid var(--sh-border);
    font-size: 0.75rem;
}

.sh-order-cost-input__field {
    width: 4.75rem;
    min-width: 0;
    padding: 0 0.4rem;
    border: 0;
    outline: 0;
    font-size: 0.75rem;
    color: var(--sh-text);
    background: transparent;
}

.sh-order-cost-input__save {
    padding: 0 0.5rem;
    border: 0;
    border-left: 1px solid var(--sh-border);
    background: #f7f7f7;
    color: var(--ebay-blue);
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
}

.sh-order-cost-input__save:hover {
    background: var(--sh-sidebar-hover);
}

.sh-order-cost-input__save:disabled {
    opacity: 0.55;
    cursor: wait;
}

.sh-order-cost-input__error {
    display: block;
    margin-top: 0.25rem;
    color: #b91c1c;
    font-size: 0.6875rem;
    text-align: left;
}

.sh-order-dl__row,
.sh-order-money-dl__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.8125rem;
}

.sh-order-dl__row dt,
.sh-order-money-dl__row dt {
    color: var(--sh-text-muted);
    flex: 1 1 auto;
}

.sh-order-dl__row dd,
.sh-order-money-dl__row dd {
    margin: 0;
    text-align: right;
    font-weight: 500;
    color: var(--sh-text);
}

.sh-order-dl__muted {
    font-size: 0.75rem;
    color: var(--sh-text-muted);
    font-weight: 400;
}

.sh-order-money-dl__row--total {
    border-top: 1px solid var(--sh-border);
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    font-weight: 700;
}

.sh-order-funds {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    padding-top: 0.5rem;
}

.sh-order-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 1rem;
    border-radius: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.sh-order-view-btn--outline {
    background: #fff;
    border-color: #767676;
    color: var(--sh-text);
}

.sh-order-view-btn--outline:hover {
    background: #f7f7f7;
}

.sh-order-view-btn--block {
    width: 100%;
    margin-top: 0.875rem;
}

@media (max-width: 1024px) {
    .sh-order-view__grid {
        grid-template-columns: 1fr;
    }

    .sh-order-shipping-grid {
        grid-template-columns: 1fr;
    }

    .sh-order-item {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .sh-order-item__metrics {
        grid-column: 1 / -1;
        justify-content: flex-start;
        text-align: left;
    }

    .sh-order-item__metric {
        text-align: left;
    }

    .sh-order-stepper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .sh-order-stepper__connector {
        display: none;
    }

    .sh-order-stepper__col {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 0.75rem;
        padding: 0;
    }

    .sh-order-stepper__node {
        margin-bottom: 0;
    }

    .sh-order-stepper__label {
        max-width: none;
    }
}

/* ══════════════════════════════════════════
   ORDER — Message buyer (eBay style)
   ══════════════════════════════════════════ */
.sh-buyer-message {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sh-buyer-message__buyer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sh-buyer-message__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #f0f0f0;
    color: #707070;
}

.sh-buyer-message__avatar-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.sh-buyer-message__buyer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sh-text);
}

.sh-buyer-message__context {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--sh-border);
    border-radius: 0.75rem;
    background: #fafafa;
}

.sh-buyer-message__thumb {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sh-border);
}

.sh-buyer-message__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-buyer-message__thumb--empty {
    background: #f0f0f0;
}

.sh-buyer-message__context-body {
    min-width: 0;
}

.sh-buyer-message__item-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sh-text);
}

.sh-buyer-message__order-ref {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--sh-text-muted);
}

.sh-buyer-message__order-ref span {
    color: var(--sh-text);
    font-weight: 600;
}

.sh-buyer-message__notice {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--sh-text-muted);
}

.sh-buyer-message__thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.sh-buyer-message__thread-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--sh-text-muted);
    border: 1px dashed var(--sh-border);
    border-radius: 0.75rem;
    background: #fafafa;
}

.sh-buyer-message__bubble-wrap {
    display: flex;
    justify-content: flex-start;
}

.sh-buyer-message__bubble-wrap--seller {
    justify-content: flex-end;
}

.sh-buyer-message__bubble {
    max-width: 85%;
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    background: #f3f3f3;
    color: var(--sh-text);
}

.sh-buyer-message__bubble--seller {
    background: var(--ebay-blue);
    color: #fff;
}

.sh-buyer-message__bubble-meta {
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    opacity: 0.75;
}

.sh-buyer-message__bubble-text {
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.sh-buyer-message__composer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.sh-buyer-message__input {
    width: 100%;
    min-height: 6rem;
    padding: 0.875rem 1rem;
    border: 1px solid #c9c9c9;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    resize: vertical;
    background: #fff;
    color: var(--sh-text);
}

.sh-buyer-message__input:focus {
    outline: none;
    border-color: var(--ebay-blue);
    box-shadow: 0 0 0 3px rgba(54, 101, 243, 0.12);
}

.sh-buyer-message__error {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ebay-red);
}

.sh-buyer-message__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: stretch;
}

.sh-buyer-message__actions .fi-btn {
    flex: 1;
    justify-content: center;
    border-radius: 999px !important;
}

.sh-buyer-message__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sh-buyer-message__attach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--ebay-border);
    background: #fff;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
}

.sh-buyer-message__attach-btn:hover {
    background: #f5f5f5;
}

.sh-buyer-message__attachment-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.sh-buyer-message__attachment-preview-img {
    max-width: 120px;
    max-height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.sh-buyer-message__attachment-preview-remove {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.sh-buyer-message__uploading {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #707070;
}

.sh-buyer-message__bubble-media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sh-buyer-message__bubble-img {
    max-width: 180px;
    max-height: 140px;
    border-radius: 8px;
    object-fit: cover;
}

.sh-buyer-message__bubble-file {
    font-size: 0.75rem;
    text-decoration: underline;
}

.ebay-fb__comment-media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ebay-fb__comment-img {
    max-width: 120px;
    max-height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--ebay-border);
}

.ebay-fb__comment-file {
    font-size: 0.8125rem;
    text-decoration: underline;
}

/* ══════════════════════════════════════════
   MESSAGES INBOX — eBay 3-column layout
   ══════════════════════════════════════════ */

/* Ẩn breadcrumb dư thừa */
.ebay-messages-page .fi-breadcrumbs {
    display: none !important;
}

/* Ẩn heading "Tin nhắn" — đã có trong tab menu */
.ebay-messages-page .fi-header {
    display: none !important;
}

/* Section: bỏ padding Tailwind py-8 gap-y-8 */
.fi-page.ebay-messages-page > section {
    padding: 0.5rem 0 0 0 !important;
    gap: 0 !important;
}

/* ebay-msgs: chiếm đúng viewport trừ overhead
   Overhead: sandbox banner ~2rem + topbar 4rem + section padding 0.5rem + chút margin = 7rem */
.ebay-msgs {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    height: calc(100dvh - 7rem);
    border: 1px solid var(--sh-border, #e5e5e5);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.ebay-msgs__nav {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
    background: #fafafa;
}

.ebay-msgs__nav-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #191919;
}

.ebay-msgs__nav-title-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.ebay-msgs__nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem;
}

.ebay-msgs__nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    font-size: 0.875rem;
    color: #191919;
    text-align: left;
    cursor: pointer;
}

.ebay-msgs__nav-item:hover {
    background: #f0f0f0;
}

.ebay-msgs__nav-item--active {
    background: #e5e5e5;
    font-weight: 600;
}

.ebay-msgs__nav-badge {
    min-width: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #e53238;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.ebay-msgs__nav-footer {
    padding: 0.75rem;
    border-top: 1px solid #e5e5e5;
}

.ebay-msgs__nav-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ebay-msgs__center {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.ebay-msgs__list-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid #e5e5e5;
    position: relative;
}

.ebay-msgs__type-filter {
    display: flex;
    gap: 0.375rem;
    padding: 0.75rem 0.75rem 0;
}

.ebay-msgs__type-filter-btn {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ebay-msgs__type-filter-btn:hover {
    border-color: #3665f3;
    color: #3665f3;
}

.ebay-msgs__type-filter-btn--active {
    border-color: #3665f3;
    background: #e7f0ff;
    color: #174ea6;
}

.ebay-msgs__search-wrap {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.ebay-msgs__search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: #707070;
    pointer-events: none;
}

.ebay-msgs__search {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    font-size: 0.875rem;
    outline: none;
}

.ebay-msgs__search:focus {
    border-color: #3665f3;
    box-shadow: 0 0 0 2px rgba(54, 101, 243, 0.15);
}

.ebay-msgs__toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.ebay-msgs__toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #707070;
    cursor: pointer;
}

.ebay-msgs__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.ebay-msgs__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ebay-msgs__row:hover {
    background: #fafafa;
}

.ebay-msgs__row--active {
    background: #f7f7f7;
}

.ebay-msgs__row--unread .ebay-msgs__row-sender,
.ebay-msgs__row--unread .ebay-msgs__row-subject {
    font-weight: 700;
}

.ebay-msgs__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.ebay-msgs__row-thumb {
    position: relative;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
}

.ebay-msgs__row-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.ebay-msgs__avatar--overlay {
    position: absolute;
    right: -0.2rem;
    bottom: -0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.625rem;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ebay-msgs__avatar--lg {
    width: 2.75rem;
    height: 2.75rem;
}

.ebay-msgs__avatar--sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.ebay-msgs__avatar--ebay {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.ebay-msgs__avatar-ebay {
    font-size: 0.625rem;
    font-weight: 800;
    color: #3665f3;
}

.ebay-msgs__row-content {
    flex: 1;
    min-width: 0;
}

.ebay-msgs__row-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.ebay-msgs__row-sender {
    font-size: 0.875rem;
    font-weight: 700;
    color: #191919;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebay-msgs__row-order {
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
    color: #707070;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebay-msgs__row-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #707070;
}

.ebay-msgs__row-subject {
    font-size: 0.8125rem;
    color: #191919;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebay-msgs__row-preview {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #707070;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebay-msgs__unread-dot {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: #3665f3;
}

.ebay-msgs__list-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #707070;
}

.ebay-msgs__thread-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.ebay-msgs__thread-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.75rem;
    color: #707070;
    font-size: 0.875rem;
}

.ebay-msgs__thread-empty-icon {
    width: 3rem;
    height: 3rem;
    opacity: 0.35;
}

.ebay-msgs__thread {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
}

.ebay-msgs__thread-loading {
    display: none;
}

.wire-load-pane {
    position: relative;
    min-height: 0;
}

.wire-load-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    text-align: center;
}

.wire-load-overlay--compact {
    inset: auto 0.75rem auto auto;
    top: 0.75rem;
    bottom: auto;
    left: auto;
    width: auto;
    min-width: 12rem;
    flex-direction: row;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wire-load-overlay__spinner {
    width: 2rem;
    height: 2rem;
}

.wire-load-overlay__spinner--compact {
    width: 1rem;
    height: 1rem;
}

.wire-load-overlay__label {
    font-size: 0.875rem;
    color: #555;
}

.wire-load-overlay--compact .wire-load-overlay__label {
    font-size: 0.8125rem;
}

.wire-load-pane--dim > .wire-load-pane__content[wire\\:loading\\.class] {
    opacity: 0.55;
}

.ebay-msgs__list-pane.is-loading,
.ebay-msgs__thread-pane.is-loading {
    pointer-events: none;
}

.ebay-msgs__toolbar-btn[disabled],
.ebay-msgs__accounts-sync[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.ebay-fb-page__content {
    position: relative;
    min-height: 0;
}

.ebay-fb__table-wrap {
    position: relative;
    min-height: 12rem;
}

.sh-buyer-message__thread-wrap {
    position: relative;
    min-height: 8rem;
}

.sh-order-view-btn[wire\\:loading] {
    opacity: 0.7;
    cursor: wait;
}

.ebay-msgs__thread-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.ebay-msgs__thread-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ebay-msgs__thread-username {
    font-size: 1rem;
    font-weight: 700;
}

.ebay-msgs__thread-account {
    font-size: 0.75rem;
    color: #707070;
}

.ebay-msgs__thread-actions {
    display: flex;
    gap: 0.25rem;
}

.ebay-msgs__thread-action {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #707070;
    cursor: pointer;
}

.ebay-msgs__product-card {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.75rem 1rem 0;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    background: #fafafa;
}

.ebay-msgs__product-img {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.ebay-msgs__product-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3665f3;
}

.ebay-msgs__product-title a {
    color: inherit;
    text-decoration: none;
}

.ebay-msgs__product-title a:hover {
    text-decoration: underline;
}

.ebay-msgs__product-order {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #707070;
}

.ebay-msgs__product-order a {
    color: #3665f3;
    text-decoration: none;
}

.ebay-msgs__product-order a:hover {
    text-decoration: underline;
}

.ebay-msgs__thread-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}

.ebay-msgs__date-divider {
    margin: 1rem 0 0.75rem;
    font-size: 0.75rem;
    color: #707070;
    text-align: center;
}

.ebay-msgs__msg-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ebay-msgs__msg-row--seller {
    justify-content: flex-end;
}

.ebay-msgs__bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: #f0f0f0;
}

.ebay-msgs__bubble--seller {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.ebay-msgs__bubble-text {
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.ebay-msgs__bubble-time {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    color: #707070;
}

.ebay-msgs__composer {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.ebay-msgs__composer-template {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.ebay-msgs__composer-template-label {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b4b4b;
}

.ebay-msgs__composer-template-select {
    width: min(100%, 22rem);
    min-width: 0;
    padding: 0.4rem 2.25rem 0.4rem 0.65rem;
    border: 1px solid #c7c7c7;
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 0.8125rem;
    line-height: 1.25rem;
}

.ebay-msgs__composer-template-select:disabled {
    color: #707070;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.ebay-msgs__composer-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #c7c7c7;
    border-radius: 999px;
    background: #fff;
}

.ebay-msgs__composer-icon {
    display: flex;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #707070;
    cursor: pointer;
}

.ebay-msgs__composer-icon:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ebay-msgs__composer-icon--send {
    color: #191919;
}

.ebay-msgs__composer-icon--send:disabled {
    opacity: 0.35;
}

.ebay-msgs__composer-field {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.5rem;
    max-height: 8rem;
    padding: 0.35rem 0.25rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    line-height: 1.4;
    outline: none;
    resize: vertical;
}

@media (max-width: 640px) {
    .ebay-msgs__composer-template {
        align-items: stretch;
        flex-direction: column;
        gap: 0.35rem;
    }

    .ebay-msgs__composer-template-select {
        width: 100%;
    }
}

.ebay-msgs__composer-field::placeholder {
    color: #707070;
}

.ebay-msgs__composer-error {
    margin: 0.35rem 0 0 0.75rem;
    font-size: 0.75rem;
    color: #d32f2f;
}

.ebay-msgs__composer-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ebay-msgs__composer-preview {
    position: relative;
    display: inline-block;
    margin: 0 0 0.5rem 0.75rem;
}

.ebay-msgs__composer-preview-img {
    max-width: 120px;
    max-height: 90px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e5e5;
}

.ebay-msgs__composer-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: #191919;
    color: #fff;
    cursor: pointer;
}

.ebay-msgs__composer-uploading {
    margin: 0.25rem 0 0 0.75rem;
    font-size: 0.75rem;
    color: #707070;
}

.ebay-msgs__bubble-media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ebay-msgs__bubble-img {
    max-width: 180px;
    max-height: 140px;
    border-radius: 8px;
    object-fit: cover;
}

.ebay-msgs__bubble-file {
    font-size: 0.75rem;
    text-decoration: underline;
}

.ebay-msgs__accounts {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid #e5e5e5;
    background: #fafafa;
}

.ebay-msgs__accounts-title {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #707070;
}

.ebay-msgs__accounts-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem 0.75rem;
}

.ebay-msgs__account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ebay-msgs__account-item--active {
    background: #e8f0fe;
}

.ebay-msgs__account-name {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebay-msgs__account-badge {
    min-width: 1.125rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #e53238;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
}

.ebay-msgs__accounts-footer {
    padding: 0.75rem;
    border-top: 1px solid #e5e5e5;
}

.ebay-msgs__accounts-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ebay-msgs__accounts-sync:hover {
    background: #f7f7f7;
}

/* ══════════════════════════════════════════
   FEEDBACK RECEIVED — eBay list layout
   ══════════════════════════════════════════ */
.ebay-feedback-page .fi-page-main {
    padding-top: 0.5rem;
}

.ebay-fb-page {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    height: calc(100vh - 7rem);
    min-height: 32rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.ebay-fb-page__content {
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.ebay-fb {
    border: none;
    border-radius: 0;
    background: #fff;
    overflow: visible;
}

.ebay-fb__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.ebay-fb__search-block {
    flex: 1 1 20rem;
    min-width: 0;
}

.ebay-fb__search-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #191919;
}

.ebay-fb__search-wrap {
    position: relative;
}

.ebay-fb__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    transform: translateY(-50%);
    color: #707070;
    pointer-events: none;
}

.ebay-fb__search {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.35rem;
    border: 1px solid #c7c7c7;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: #fff;
    outline: none;
}

.ebay-fb__search:focus {
    border-color: #3665f3;
    box-shadow: 0 0 0 2px rgba(54, 101, 243, 0.15);
}

.ebay-fb__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.ebay-fb__filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ebay-fb__filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #707070;
}

.ebay-fb__select-wrap {
    position: relative;
    display: inline-block;
}

.ebay-fb__select {
    min-width: 8.5rem;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    border: 1px solid #c7c7c7;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: #fff;
    background-image: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.ebay-fb__select:focus {
    outline: none;
    border-color: #3665f3;
    box-shadow: 0 0 0 2px rgba(54, 101, 243, 0.15);
}

.ebay-fb__select-chevron {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: #707070;
    pointer-events: none;
}

.ebay-fb__sync {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid #c7c7c7;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #191919;
    cursor: pointer;
}

.ebay-fb__sync:hover {
    background: #f7f7f7;
}

.ebay-fb__head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 8.5rem;
    gap: 1rem;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.ebay-fb__head-col {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #707070;
}

.ebay-fb__row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 8.5rem;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e5e5;
}

.ebay-fb__row:last-child {
    border-bottom: none;
}

.ebay-fb__feedback-main {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.ebay-fb__rating {
    display: flex;
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    margin-top: 0.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

.ebay-fb__rating--positive {
    background: #3db330;
    color: #fff;
}

.ebay-fb__rating--neutral {
    background: #767676;
    color: #fff;
    font-size: 0.5rem;
}

.ebay-fb__rating--negative {
    background: #e53238;
    color: #fff;
    font-size: 0.6875rem;
}

.ebay-fb__comment {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: #191919;
}

.ebay-fb__item-line {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #191919;
}

.ebay-fb__item-title {
    font-weight: 400;
}

.ebay-fb__item-id {
    margin-left: 0.2rem;
    color: #3665f3;
    text-decoration: none;
}

.ebay-fb__item-id:hover {
    text-decoration: underline;
}

.ebay-fb__reply-preview {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #707070;
}

.ebay-fb__buyer-line {
    font-size: 0.875rem;
    line-height: 1.45;
}

.ebay-fb__buyer-label {
    color: #191919;
}

.ebay-fb__buyer-name {
    color: #3665f3;
    text-decoration: none;
}

.ebay-fb__buyer-name:hover {
    text-decoration: underline;
}

.ebay-fb__score {
    display: inline-flex;
    align-items: center;
    margin-left: 0.1rem;
    font-size: 0.8125rem;
    color: #191919;
}

.ebay-fb__score-num {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ebay-fb__star-icon {
    width: 0.8rem;
    height: 0.8rem;
    margin: 0 0.05rem;
    flex-shrink: 0;
}

.ebay-fb__star--yellow {
    color: #f5af02;
}
.ebay-fb__star--blue {
    color: #00a6e8;
}
.ebay-fb__star--turquoise {
    color: #00838f;
}
.ebay-fb__star--purple {
    color: #7e1a9b;
}
.ebay-fb__star--red {
    color: #e53238;
}
.ebay-fb__star--green {
    color: #86b817;
}
.ebay-fb__star--none {
    color: #707070;
}

.ebay-fb__price {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #191919;
}

.ebay-fb__verified {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: #707070;
}

.ebay-fb__order-link {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #3665f3;
    text-decoration: none;
}

.ebay-fb__order-link:hover {
    text-decoration: underline;
}

.ebay-fb__when {
    font-size: 0.875rem;
    color: #707070;
}

.ebay-fb__reply-btn {
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #3665f3;
    cursor: pointer;
    text-decoration: none;
}

.ebay-fb__reply-btn:hover {
    text-decoration: underline;
}

.ebay-fb__replied {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #707070;
}

.ebay-fb__empty {
    padding: 3rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #707070;
}

.ebay-fb__pagination {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e5e5e5;
}

.ebay-fb__modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
}

.ebay-fb__reply-modal {
    width: min(100%, 40rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem 1.75rem 1.25rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.ebay-fb__reply-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ebay-fb__reply-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #191919;
}

.ebay-fb__reply-close {
    display: flex;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #707070;
    cursor: pointer;
}

.ebay-fb__reply-close:hover {
    background: #f0f0f0;
}

.ebay-fb__reply-notice {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #191919;
}

.ebay-fb__reply-details {
    margin: 0 0 1.25rem;
}

.ebay-fb__reply-detail {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.75rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.ebay-fb__reply-detail:last-child {
    border-bottom: none;
}

.ebay-fb__reply-detail dt {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #191919;
}

.ebay-fb__reply-detail dd {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #191919;
}

.ebay-fb__reply-detail--comment dd {
    min-width: 0;
}

.ebay-fb__reply-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.ebay-fb__reply-comment-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.ebay-fb__reply-compose {
    position: relative;
    margin-bottom: 0.5rem;
}

.ebay-fb__reply-textarea {
    display: block;
    width: 100%;
    min-height: 7.5rem;
    padding: 0.75rem 0.85rem 1.75rem;
    border: 1px solid #c7c7c7;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    resize: vertical;
    outline: none;
}

.ebay-fb__reply-textarea:focus {
    border-color: #3665f3;
    box-shadow: 0 0 0 2px rgba(54, 101, 243, 0.15);
}

.ebay-fb__reply-counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.55rem;
    font-size: 0.75rem;
    color: #707070;
    pointer-events: none;
}

.ebay-fb__reply-error {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #e53238;
}

.ebay-fb__reply-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.ebay-fb__reply-send {
    min-width: 5.5rem;
    padding: 0.55rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #c7c7c7;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    cursor: not-allowed;
}

.ebay-fb__reply-send--active {
    background: #3665f3;
    cursor: pointer;
}

.ebay-fb__reply-send--active:hover {
    background: #2f56cf;
}

@media (max-width: 900px) {
    .ebay-fb__head {
        display: none;
    }

    .ebay-fb__row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}

/* ══════════════════════════════════════════
   INVENTORY TABLE — same as orders
   ══════════════════════════════════════════ */
.ebay-inventory-page .fi-ta-ctn {
    --tw-ring-shadow: 0 0 #0000 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.ebay-inventory-page .fi-ta {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ebay-inventory-page .fi-ta-ctn.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 1px !important;
    border-top-color: var(--sh-border) !important;
}

.ebay-inventory-page
    .fi-ta-header-ctn.divide-y
    > :not([hidden])
    ~ :not([hidden]) {
    border-top-width: 0 !important;
}

/* Filter box: override Tailwind py-4 px-4 bằng padding cân bằng */
.ebay-inventory-page .fi-ta-filters-above-content-ctn {
    background: var(--sh-bg) !important;
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 1.25rem !important;
}

/* Xóa padding/margin thừa từ Filament form wrappers bên trong */
.ebay-inventory-page .fi-ta-filters-above-content-ctn form,
.ebay-inventory-page .fi-ta-filters-above-content-ctn .fi-fo-component-ctn {
    padding: 0 !important;
    margin: 0 !important;
}

.ebay-inventory-page .fi-ta-filters-above-content-ctn .fi-fo-component-ctn {
    align-items: end !important;
    gap: 0.75rem 1rem !important;
}

.ebay-inventory-page .fi-ta-filters-above-content-ctn .fi-fo-field-wrp {
    margin-bottom: 0 !important;
}

.ebay-inventory-page .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--sh-text-muted) !important;
    margin-bottom: 0.25rem !important;
}

.ebay-inventory-page .fi-ta-filters-above-content-ctn .fi-select-input,
.ebay-inventory-page .fi-ta-filters-above-content-ctn .fi-input-wrp {
    min-height: 2.25rem;
}

.ebay-inventory-page .fi-ta-filters-above-content-ctn .fi-input {
    font-size: 0.8125rem !important;
}

.ebay-inventory-page .fi-ta-header-toolbar {
    display: none !important;
}

/* Indicators card: khi có filter active, nằm sau filter box */
.ebay-inventory-page .fi-ta-filter-indicators {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    padding: 0.4rem 1rem !important;
    margin-bottom: 1.25rem !important;
    background: var(--sh-bg) !important;
}

/* Khi indicators xuất hiện: gộp với filter box thành 1 card liền nhau */
.ebay-inventory-page:has(.fi-ta-filter-indicators:not(:empty)) .fi-ta-filters-above-content-ctn {
    border-bottom: none !important;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
    margin-bottom: 0 !important;
}

.ebay-inventory-page:has(.fi-ta-filter-indicators:not(:empty)) .fi-ta-filter-indicators {
    border-top: none !important;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius) !important;
}

.ebay-inventory-page .fi-ta-content {
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
    overflow: hidden !important;
    overflow-x: auto;
    background: var(--sh-bg) !important;
}

.ebay-inventory-page .fi-ta-pagination {
    border: 1px solid var(--sh-border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius) !important;
    background: var(--sh-bg) !important;
}

.ebay-inventory-page .fi-ta-filters {
    gap: 0.75rem !important;
}

.ebay-inventory-page .fi-ta-filters h4 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

/* eBay unified search bar */
.ebay-inventory-page .sh-ebay-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 36rem;
    min-height: 2.5rem;
    border: 1px solid #c9c9c9;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
}

.ebay-inventory-page .sh-ebay-search__segment {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ebay-inventory-page .sh-ebay-search__segment--type {
    position: relative;
    gap: 0.25rem;
    padding: 0 2rem 0 0.875rem;
    max-width: 15rem;
    cursor: pointer;
}

.ebay-inventory-page .sh-ebay-search__prefix {
    font-size: 0.8125rem;
    color: #555;
    white-space: nowrap;
}

.ebay-inventory-page .sh-ebay-search__value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #191919;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebay-inventory-page .sh-ebay-search__select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
}

.ebay-inventory-page .sh-ebay-search__chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #707070;
    pointer-events: none;
}

.ebay-inventory-page .sh-ebay-search__divider {
    width: 1px;
    align-self: stretch;
    background: #e0e0e0;
    flex-shrink: 0;
}

.ebay-inventory-page .sh-ebay-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    color: #191919;
}

.ebay-inventory-page .sh-ebay-search__input::placeholder {
    color: #707070;
}

.ebay-inventory-page .sh-ebay-search__segment--icon {
    justify-content: center;
    width: 2.75rem;
    color: #191919;
}

.ebay-inventory-page .sh-ebay-search__icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Hide Filament wrappers around custom search view */
.ebay-inventory-page .fi-fo-field-wrp:has(.sh-ebay-search) {
    margin: 0 !important;
}

.ebay-inventory-page
    .fi-fo-field-wrp:has(.sh-ebay-search)
    .fi-fo-field-wrp-label {
    display: none !important;
}

.ebay-inventory-page .sh-ebay-search-hidden {
    display: none !important;
}

.ebay-inventory-page
    .fi-ta-filters-above-content-ctn
    form
    > .fi-fo-component-ctn {
    align-items: end !important;
}

.ebay-inventory-page .fi-ta-table {
    table-layout: auto;
    width: 100%;
    min-width: 44rem;
}

.ebay-inventory-page .fi-ta-cell {
    vertical-align: top !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    overflow: visible !important;
}

.ebay-inventory-page .fi-ta-cell .fi-ta-col-wrp,
.ebay-inventory-page .fi-ta-cell .fi-ta-col-wrp > div,
.ebay-inventory-page .fi-ta-cell .fi-ta-col-wrp > a {
    min-width: 0;
    max-width: 100%;
}

.ebay-inventory-page .fi-ta-header-cell {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    padding-inline: 0.35rem !important;
}

.ebay-inventory-page .fi-table-header-cell-ebay-quantity,
.ebay-inventory-page .fi-table-header-cell-ebay-subtotal,
.ebay-inventory-page .fi-table-header-cell-ebay-total,
.ebay-inventory-page .fi-table-header-cell-ebay-date-sold,
.ebay-inventory-page .fi-table-header-cell-ebay-date-paid {
    font-size: 0.6875rem;
    white-space: normal;
    text-align: right;
}

.ebay-inventory-page .fi-table-header-cell-ebay-quantity {
    text-align: center;
}

.ebay-inventory-page .fi-table-header-cell-ebay-actions,
.ebay-inventory-page .fi-table-cell-ebay-actions {
    width: 8.5rem;
    min-width: 8.5rem;
    max-width: 8.5rem;
}

.ebay-inventory-page .fi-table-header-cell-ebay-order,
.ebay-inventory-page .fi-table-cell-ebay-order {
    width: auto;
    max-width: 0;
    overflow: hidden;
}

.ebay-inventory-page .fi-table-cell-ebay-order .fi-ta-col-wrp > div,
.ebay-inventory-page .fi-table-cell-ebay-order .fi-ta-col-wrp > a {
    display: block;
    width: 100%;
}

.ebay-inventory-page .fi-table-header-cell-ebay-quantity,
.ebay-inventory-page .fi-table-cell-ebay-quantity {
    width: 3.75rem;
    min-width: 3.75rem;
    max-width: 3.75rem;
}

.ebay-inventory-page .fi-table-header-cell-ebay-subtotal,
.ebay-inventory-page .fi-table-cell-ebay-subtotal,
.ebay-inventory-page .fi-table-header-cell-ebay-total,
.ebay-inventory-page .fi-table-cell-ebay-total {
    width: 5.75rem;
    min-width: 5.75rem;
    max-width: 5.75rem;
}

.ebay-inventory-page .fi-table-header-cell-ebay-date-sold,
.ebay-inventory-page .fi-table-cell-ebay-date-sold {
    width: 6.25rem;
    min-width: 6.25rem;
    max-width: 6.25rem;
}

.ebay-inventory-page .fi-table-header-cell-ebay-date-paid,
.ebay-inventory-page .fi-table-cell-ebay-date-paid {
    width: 6.75rem;
    min-width: 6.75rem;
    max-width: 6.75rem;
    white-space: nowrap;
}

.ebay-inventory-page .fi-table-cell-ebay-quantity,
.ebay-inventory-page .fi-table-cell-ebay-subtotal,
.ebay-inventory-page .fi-table-cell-ebay-total,
.ebay-inventory-page .fi-table-cell-ebay-date-sold,
.ebay-inventory-page .fi-table-cell-ebay-date-paid {
    font-size: 0.75rem;
    padding-inline: 0.35rem !important;
}

/* Inventory column widths */
.ebay-inventory-page .fi-table-header-cell-inventory-actions,
.ebay-inventory-page .fi-table-cell-inventory-actions {
    width: 8.5rem;
    min-width: 8.5rem;
    max-width: 8.5rem;
}

.ebay-inventory-page .fi-table-header-cell-inventory-product,
.ebay-inventory-page .fi-table-cell-inventory-product,
.ebay-inventory-page .sh-inv-product-cell {
    width: auto;
    min-width: 10rem;
    max-width: none;
    overflow: visible !important;
}

.ebay-inventory-page .fi-table-cell-inventory-product .fi-ta-col-wrp > a {
    display: block;
    width: 100%;
    min-width: 0;
}

.ebay-inventory-page .fi-table-header-cell-inventory-stock,
.ebay-inventory-page .fi-table-cell-inventory-stock {
    width: 5.5rem;
    min-width: 5.5rem;
    max-width: 5.5rem;
    text-align: center;
}

.ebay-inventory-page .fi-table-header-cell-inventory-listings,
.ebay-inventory-page .fi-table-cell-inventory-listings {
    width: 8.5rem;
    min-width: 8.5rem;
    max-width: 8.5rem;
}

.ebay-inventory-page .fi-table-header-cell-updated-at,
.ebay-inventory-page .fi-table-cell-updated-at {
    width: 8.75rem;
    min-width: 8.75rem;
    max-width: 8.75rem;
    white-space: nowrap;
    font-size: 0.75rem;
}

.sh-inv-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
}

.sh-inv-stock--success {
    background: #e6f4ea;
    color: #137333;
}

.sh-inv-stock--warning {
    background: #fef7e0;
    color: #b06000;
}

.sh-inv-stock--danger {
    background: #fce8e6;
    color: #c5221f;
}

.sh-inv-listings {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding-inline: 0.25rem;
}

.sh-inv-listings__count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #191919;
}

.sh-inv-listings__accounts {
    font-size: 0.75rem;
    color: #707070;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.sh-inv-actions__headline--danger {
    color: #c5221f;
}

.sh-inv-actions__headline--warning {
    color: #b06000;
}

/* Inventory product — global (no page-class dependency) */
td.fi-table-cell-inventory-product,
td.fi-table-cell-inventory-product .fi-ta-col-wrp,
td.fi-table-cell-inventory-product .fi-ta-col-wrp > div,
td.fi-table-cell-inventory-product .fi-ta-col-wrp > a,
td.fi-table-cell-inventory-product .sh-inv-product,
td.fi-table-cell-inventory-product .sh-inv-product__text-cell,
td.fi-table-cell-inventory-product .sh-inv-product__title-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: none !important;
}

table.sh-inv-product {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sh-inv-product__thumb-cell {
    width: 3.5rem;
    padding: 0;
    vertical-align: top;
}

.sh-inv-product__text-cell {
    padding: 0 0 0 0.625rem;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.sh-inv-product__title-text {
    display: block;
    margin: 0.15rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sh-text);
}

.fi-ta-table
    > tbody.whitespace-nowrap
    > tr
    > td.fi-table-cell-inventory-product {
    white-space: normal !important;
}

/* Inventory product cell — compact, title wraps */
.ebay-inventory-page .fi-table-cell-inventory-product,
.ebay-inventory-page .fi-table-cell-inventory-product * {
    white-space: normal !important;
    text-overflow: clip !important;
}

.ebay-inventory-page .fi-table-cell-inventory-product {
    vertical-align: top !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.ebay-inventory-page .fi-table-cell-inventory-product .fi-ta-col-wrp,
.ebay-inventory-page .fi-table-cell-inventory-product .fi-ta-col-wrp > div,
.ebay-inventory-page .fi-table-cell-inventory-product .fi-ta-col-wrp .flex {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
}

table.sh-inv-product {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sh-inv-product__thumb {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--sh-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
}

.sh-inv-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sh-inv-product__thumb--empty {
    background: #f0f0f0;
}

.sh-inv-product__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sh-inv-product__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.3rem;
    font-size: 0.6875rem;
    line-height: 1.3;
    color: var(--sh-text-muted);
}

.sh-inv-product__label {
    font-weight: 600;
    color: var(--sh-text-muted);
    flex-shrink: 0;
}

.sh-inv-product__value {
    color: var(--sh-text);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.sh-inv-product__title-link {
    display: block;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sh-text);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.sh-inv-product__empty {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--sh-text-muted);
}

.ebay-inventory-page .fi-table-cell-inventory-product .sh-order-detail {
    gap: 0.875rem;
}

.ebay-inventory-page .fi-table-cell-inventory-product .sh-order-detail__right {
    min-width: 0;
}

.ebay-inventory-page .fi-table-cell-inventory-product .sh-order-detail__title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* ── Seller Hub overview (báo cáo giống eBay) ── */
.sh-hub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sh-hub__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.sh-hub__filter {
    min-width: 220px;
    max-width: 320px;
}

.sh-hub__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.sh-hub__hero-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sh-hub__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #707070;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.sh-hub__hero-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #191919;
}

.sh-hub__hero-sub {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    color: #707070;
}

.sh-hub__hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sh-hub__metric {
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.sh-hub__metric:hover .sh-hub__metric-value {
    color: #3665f3;
}

.sh-hub__metric-value {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: #191919;
    line-height: 1.2;
}

.sh-hub__metric-label {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #707070;
    text-decoration: underline;
}

.sh-hub__grid {
    display: grid;
    gap: 1rem;
}

.sh-hub__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-hub__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .sh-hub__grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sh-hub__grid--2 {
        grid-template-columns: 1fr;
    }
}

.sh-hub-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    min-height: 200px;
}

.sh-hub-card__head {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 1rem;
    font-weight: 700;
}

.sh-hub-card__head a {
    color: #191919;
    text-decoration: none;
}

.sh-hub-card__head a:hover {
    color: #3665f3;
    text-decoration: underline;
}

.sh-hub-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-hub-links li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.sh-hub-links li:last-child {
    border-bottom: none;
}

.sh-hub-links a {
    color: #3665f3;
    text-decoration: none;
}

.sh-hub-links a:hover {
    text-decoration: underline;
}

.sh-hub-links span {
    color: #191919;
    font-weight: 600;
    white-space: nowrap;
}

.sh-hub-links--plain li {
    justify-content: flex-start;
}

.sh-hub-card--sales {
    display: flex;
    flex-direction: column;
}

.sh-hub-sales-chart {
    height: 160px;
    padding: 0.75rem 1rem 0;
}

.sh-hub-sales-totals {
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f0f0f0;
}

.sh-hub-sales-totals div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.sh-hub-sales-totals dt {
    margin: 0;
    color: #707070;
    font-weight: 400;
}

.sh-hub-sales-totals dd {
    margin: 0;
    text-align: right;
}

.sh-hub-trend {
    margin-left: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.sh-hub-trend.is-up {
    color: #5ba71b;
}

.sh-hub-trend.is-down {
    color: #e53238;
}

.sh-hub-metrics-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.sh-hub-metrics-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.sh-hub-metrics-list li:last-child {
    border-bottom: none;
}

.sh-hub-metrics-list strong {
    font-weight: 700;
    color: #191919;
}

.sh-hub-note,
.sh-hub-empty {
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    font-size: 0.75rem;
    color: #707070;
}

.sh-hub-feedback-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.sh-hub-feedback-summary small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #707070;
}

.sh-hub-feedback-summary .is-positive {
    color: #5ba71b;
}

.sh-hub-feedback-summary .is-neutral {
    color: #707070;
}

.sh-hub-feedback-summary .is-negative {
    color: #e53238;
}

.sh-hub-feedback-recent {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-hub-feedback-recent li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: start;
    padding: 0.625rem 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8125rem;
}

.sh-hub-feedback-badge {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.sh-hub-feedback-badge.is-positive {
    background: #5ba71b;
}

.sh-hub-feedback-badge.is-neutral {
    background: #707070;
}

.sh-hub-feedback-badge.is-negative {
    background: #e53238;
}

.sh-hub-feedback-date {
    color: #707070;
    white-space: nowrap;
}

.sh-hub-limit {
    padding: 0.75rem 1rem 0.25rem;
}

.sh-hub-limit__headline {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #191919;
}

.sh-hub-limit__bar {
    height: 8px;
    background: #e5e5e5;
    border-radius: 999px;
    overflow: hidden;
}

.sh-hub-limit__bar span {
    display: block;
    height: 100%;
    background: #5ba71b;
    border-radius: 999px;
}

/* Scroll ngang cho bảng orders */
.ebay-orders-page .fi-ta-ctn {
    overflow: visible !important;
}

.ebay-orders-page .fi-ta-content {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.ebay-orders-page .fi-ta-table {
    min-width: 1200px !important;
}

/* Ẩn tiêu đề "Bộ lọc" và hàng chứa nó để tiết kiệm diện tích */
.fi-ta-filters > div:first-child:has(h4) {
    display: none !important;
}

.fi-ta-filters > .flex.items-center.justify-between {
    display: none !important;
}

/* Ẩn nút Đặt lại (màu đỏ) dư thừa trong phần bộ lọc của bảng */
.fi-ta-filters [wire\:click="resetTableFiltersForm"] {
    display: none !important;
}

/* Đổi nút × (fi-icon-btn) xóa tất cả bộ lọc thành text button "Xóa bộ lọc" */
/* Filament render x-filament::icon-button thành button.fi-icon-btn */
.fi-ta-filter-indicators .fi-icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.2rem 0.75rem !important;
    border: 1px solid var(--sh-border-dark) !important;
    border-radius: var(--sh-radius-pill) !important;
    background: var(--sh-bg) !important;
    cursor: pointer !important;
    color: var(--sh-text) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
}

.fi-ta-filter-indicators .fi-icon-btn > * {
    display: none !important;
}

.fi-ta-filter-indicators .fi-icon-btn::after {
    content: "Xóa bộ lọc";
    display: block;
}

/* Unified visible filters for Filament table pages */
.fi-page:has(.fi-ta) .fi-ta-ctn {
    --tw-ring-shadow: 0 0 #0000 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.fi-page:has(.fi-ta) .fi-ta {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
}

.fi-page:has(.fi-ta) .fi-ta-ctn.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-width: 0 !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-toolbar {
    background: transparent !important;
    border: none !important;
    padding: 0 0 1rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-toolbar:has(.fi-ta-search-field) {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    background: var(--sh-bg) !important;
    border-color: var(--sh-border) !important;
    border-style: solid !important;
    border-width: 1px 1px 1px 0 !important;
    border-radius: 0 var(--sh-radius) var(--sh-radius) 0 !important;
    padding: 1rem !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    position: static !important;
    z-index: auto !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-toolbar:has(.fi-ta-search-field) > .flex.shrink-0:empty {
    display: none !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-toolbar:has(.fi-ta-search-field) > div:has(.fi-ta-search-field) {
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-toolbar:has(.fi-ta-search-field) .fi-ta-search-field {
    flex: 0 1 28rem !important;
    width: min(100%, 28rem) !important;
    max-width: 28rem !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-toolbar:has(.fi-ta-search-field) .fi-ta-search-field .fi-input-wrp {
    width: 100% !important;
    max-width: 28rem !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-filters-above-content-ctn {
    border-bottom-width: 1px !important;
    border-right-width: 0 !important;
    border-radius: var(--sh-radius) 0 0 var(--sh-radius) !important;
    margin-bottom: 1.25rem !important;
    flex: 0 1 31rem !important;
    width: 31rem !important;
    max-width: 100% !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field):has(
        .fi-ta-filters-above-content-ctn .fi-fo-component-ctn > [class*="col-"]:nth-child(2)
    )
    .fi-ta-filters-above-content-ctn {
    flex-basis: 60rem !important;
    width: 60rem !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field):has(
        .fi-ta-filters-above-content-ctn .fi-fo-component-ctn > [class*="col-"]:nth-child(3)
    )
    .fi-ta-filters-above-content-ctn {
    flex-basis: 89rem !important;
    width: 89rem !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field)
    .fi-ta-header-toolbar:has(.fi-ta-search-field) {
    border-color: var(--sh-border) !important;
    border-style: solid !important;
    border-width: 1px 1px 1px 0 !important;
    border-radius: 0 var(--sh-radius) var(--sh-radius) 0 !important;
}

.fi-page:has(.fi-ta-header-toolbar .fi-ta-search-field):not(:has(.fi-ta-filters-above-content-ctn))
    .fi-ta-header-toolbar:has(.fi-ta-search-field) {
    border-width: 1px !important;
    border-radius: var(--sh-radius) !important;
}

.fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-ctn {
    justify-content: flex-start !important;
}

.fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field)
    .fi-ta-header-toolbar:has(.fi-ta-search-field) {
    order: 1 !important;
    flex: 0 0 30rem !important;
    min-width: 0 !important;
    border-width: 1px 0 1px 1px !important;
    border-radius: var(--sh-radius) 0 0 var(--sh-radius) !important;
}

.fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-filters-above-content-ctn {
    order: 2 !important;
    flex: 0 0 14rem !important;
    width: 14rem !important;
    border-width: 1px 1px 1px 0 !important;
    border-radius: 0 var(--sh-radius) var(--sh-radius) 0 !important;
    margin-bottom: 1.25rem !important;
}

.fi-page.audit-log-page .fi-ta-filters-above-content-ctn .fi-fo-component-ctn > [class*="col-"] {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.fi-page.audit-log-page .fi-ta-filters-above-content-ctn .fi-fo-field-wrp {
    display: flex !important;
    align-items: center !important;
    min-height: 2.25rem !important;
}

.fi-page.audit-log-page .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label {
    display: none !important;
}

.fi-page.audit-log-page .fi-ta-filters-above-content-ctn .fi-fo-field-wrp > .grid {
    display: block !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field):has(.fi-ta-filter-indicators:not(:empty))
    .fi-ta-header-toolbar:has(.fi-ta-search-field) {
    border-bottom-width: 0 !important;
    border-radius: 0 var(--sh-radius) 0 0 !important;
    margin-bottom: 0 !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field):has(.fi-ta-filter-indicators:not(:empty))
    .fi-ta-filters-above-content-ctn {
    border-bottom-width: 0 !important;
    border-radius: var(--sh-radius) 0 0 0 !important;
    margin-bottom: 0 !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-ctn {
    display: flex !important;
    flex-wrap: wrap !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    align-items: stretch !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-ctn > .fi-ta-header {
    flex: 0 0 100% !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-filters-above-content-ctn {
    min-width: 0 !important;
}

.fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-toolbar:has(.fi-ta-search-field) {
    flex: 1 1 28rem !important;
    min-width: 18rem !important;
}

@media (max-width: 1023px) {
    .fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-filters-above-content-ctn,
    .fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-toolbar:has(.fi-ta-search-field) {
        flex-basis: 100% !important;
        width: 100% !important;
        border-width: 1px !important;
        border-radius: var(--sh-radius) !important;
    }

    .fi-page:not(.ebay-listing-page):has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-toolbar:has(.fi-ta-search-field) {
        margin-top: -0.75rem !important;
    }
}

.fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-ctn {
    position: relative !important;
    display: block !important;
}

.fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field)
    .fi-ta-header-toolbar:has(.fi-ta-search-field) {
    width: 100% !important;
    flex: 0 0 100% !important;
    border-width: 1px !important;
    border-radius: var(--sh-radius) !important;
}

.fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-filters-above-content-ctn {
    position: absolute !important;
    top: 0 !important;
    left: 31rem !important;
    z-index: 2 !important;
    width: 14rem !important;
    height: 4.375rem !important;
    padding: 1rem 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field)
    .fi-ta-filters-above-content-ctn
    .fi-fo-component-ctn {
    height: 100% !important;
    align-items: center !important;
}

@media (max-width: 1023px) {
    .fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-header-ctn {
        display: flex !important;
    }

    .fi-page.audit-log-page:has(.fi-ta-header-toolbar .fi-ta-search-field) .fi-ta-filters-above-content-ctn {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 1rem 1rem !important;
    }
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn {
    background: var(--sh-bg) !important;
    border-color: var(--sh-border) !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-radius: var(--sh-radius) !important;
    padding: 1rem !important;
    margin-bottom: 1.25rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters {
    display: block !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters > :first-child {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn form,
.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn .fi-fo-component-ctn {
    padding: 0 !important;
    margin: 0 !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn .fi-fo-component-ctn {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: end !important;
    gap: 1rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn .fi-fo-component-ctn > [class*="col-"] {
    flex: 0 1 28rem !important;
    width: min(100%, 28rem) !important;
    min-width: min(100%, 16rem) !important;
    max-width: 28rem !important;
}

.fi-page:has(.fi-ta)
    .fi-ta-filters-above-content-ctn
    .fi-fo-component-ctn
    > [class*="col-"]:has(.sh-ebay-search) {
    flex-basis: 36rem !important;
    width: min(100%, 36rem) !important;
    max-width: 36rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn .fi-fo-field-wrp {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn .fi-fo-field-wrp:has(.sh-ebay-search) {
    width: min(100%, 36rem) !important;
    max-width: 36rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn .fi-fo-field-wrp > .grid {
    gap: 0.375rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-filters-above-content-ctn .fi-fo-field-wrp-label {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-filter-indicators {
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1.25rem !important;
    border: 1px solid var(--sh-border) !important;
    border-radius: var(--sh-radius) !important;
    background: #f7f7f7 !important;
}

.fi-page:has(.fi-ta-filter-indicators:not(:empty)) .fi-ta-filters-above-content-ctn {
    border-bottom-width: 0 !important;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
    margin-bottom: 0 !important;
}

.fi-page:has(.fi-ta-filter-indicators:not(:empty)) .fi-ta-filter-indicators {
    border-top-width: 0 !important;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius) !important;
}

.fi-ta-filter-indicators .fi-icon-btn {
    min-height: 2rem !important;
    padding: 0.375rem 0.875rem !important;
    border-color: var(--ebay-blue) !important;
    background: #fff !important;
    color: var(--ebay-blue) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}

.fi-ta-filter-indicators .fi-icon-btn:hover {
    background: var(--ebay-blue-light) !important;
    border-color: var(--ebay-blue-hover) !important;
    color: var(--ebay-blue-hover) !important;
}

.sh-report-download-action,
.sh-sync-listings-action {
    min-height: 2.5rem !important;
    padding-inline: 1.125rem !important;
    box-shadow: none !important;
}

/* Common table gutters and clean header background for management tables */
.fi-page:has(.fi-ta) .fi-ta-content,
.fi-page:has(.fi-ta) .fi-ta-table,
.fi-page:has(.fi-ta) .fi-ta-table thead,
.fi-page:has(.fi-ta) .fi-ta-table thead tr,
.fi-page:has(.fi-ta) .fi-ta-header-cell {
    background: var(--sh-bg) !important;
}

.fi-page:has(.fi-ta) .fi-ta-content {
    border-color: var(--sh-border) !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
}

.fi-page:has(.fi-ta) .fi-ta-pagination {
    border-color: var(--sh-border) !important;
    border-style: solid !important;
    border-width: 0 1px 1px !important;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius) !important;
    background: var(--sh-bg) !important;
}

.fi-page.ebay-listing-page:has(.fi-ta) .fi-ta-header-toolbar {
    display: none !important;
}

.fi-page.ebay-listing-page:has(.fi-ta) .fi-ta-header-ctn {
    display: block !important;
}

.fi-page.ebay-listing-page:has(.fi-ta) .fi-ta-filters-above-content-ctn {
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    border-width: 1px !important;
    border-radius: var(--sh-radius) !important;
}

.fi-page.ebay-listing-page:has(.fi-ta-filter-indicators:not(:empty)) .fi-ta-filters-above-content-ctn {
    border-bottom-width: 0 !important;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
    margin-bottom: 0 !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-cell:first-child,
.fi-page:has(.fi-ta) .fi-ta-cell:first-child {
    padding-left: 1rem !important;
}

.fi-page:has(.fi-ta) .fi-ta-header-cell:last-child,
.fi-page:has(.fi-ta) .fi-ta-cell:last-child {
    padding-right: 1rem !important;
}

@media (min-width: 640px) {
    .fi-page:has(.fi-ta) .fi-ta-header-cell:first-child,
    .fi-page:has(.fi-ta) .fi-ta-cell:first-child {
        padding-left: 1.5rem !important;
    }

    .fi-page:has(.fi-ta) .fi-ta-header-cell:last-child,
    .fi-page:has(.fi-ta) .fi-ta-cell:last-child {
        padding-right: 1.5rem !important;
    }
}

/* Common horizontal scrolling for Filament tables */
.fi-page:has(.fi-ta) {
    --sh-table-min-width: 64rem;
}

.ebay-orders-page {
    --sh-table-min-width: 75rem;
}

.ebay-inventory-page {
    --sh-table-min-width: 44rem;
}

.ebay-listing-page {
    --sh-table-min-width: 72rem;
}

.fi-page:has(.fi-ta) .fi-ta-ctn,
.fi-page:has(.fi-ta) .fi-ta {
    overflow: visible !important;
}

.fi-page:has(.fi-ta) .fi-ta-content {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.fi-page:has(.fi-ta) .fi-ta-table {
    width: 100% !important;
    min-width: max(100%, var(--sh-table-min-width)) !important;
}

/* ============================================================
   Báo cáo tài chính (Finance reports) — KPI cards, charts, tables
   ============================================================ */
.fin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.fin-kpi {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dark .fin-kpi {
    background: rgb(24 24 27);
    border-color: rgb(39 39 42);
}

.fin-kpi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fin-kpi__label {
    font-size: 0.8125rem;
    color: #707070;
    font-weight: 500;
}

.dark .fin-kpi__label {
    color: #a1a1aa;
}

.fin-kpi__icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #9ca3af;
}

.fin-kpi__value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #191919;
}

.dark .fin-kpi__value {
    color: #f4f4f5;
}

.fin-kpi__foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fin-kpi__sub {
    font-size: 0.75rem;
    color: #707070;
}

.fin-kpi__delta {
    font-size: 0.75rem;
    font-weight: 600;
}

.fin-kpi__delta.is-up {
    color: #15803d;
}

.fin-kpi__delta.is-down {
    color: #dc2626;
}

.fin-kpi--positive .fin-kpi__value {
    color: #15803d;
}

.fin-kpi--negative .fin-kpi__value {
    color: #dc2626;
}

.fin-kpi--warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.dark .fin-kpi--warning {
    background: rgba(120, 53, 15, 0.2);
    border-color: #b45309;
}

.fin-chart {
    position: relative;
    width: 100%;
    height: 320px;
}

.fin-chart--sm {
    height: 240px;
}

.fin-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.fin-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
    table-layout: auto;
}

.fin-table thead {
    background: #f9fafb;
}

.dark .fin-table thead {
    background: rgb(39 39 42);
}

.fin-table th {
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.fin-table th.fin-num,
.fin-table td.fin-num {
    text-align: right;
}

.dark .fin-table th {
    color: #d4d4d8;
}

.fin-table td {
    padding: 0.625rem 0.875rem;
    border-top: 1px solid #f0f0f0;
    vertical-align: middle;
}

.dark .fin-table td {
    border-top-color: rgb(39 39 42);
}

.fin-table tbody tr:hover {
    background: #fafafa;
}

.dark .fin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.fin-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fin-pos {
    color: #15803d;
    font-weight: 600;
}

.fin-neg {
    color: #dc2626;
    font-weight: 600;
}

.fin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.fin-badge--ok {
    background: #dcfce7;
    color: #15803d;
}

.fin-badge--warn {
    background: #fef3c7;
    color: #b45309;
}

.fin-badge--bad {
    background: #fee2e2;
    color: #b91c1c;
}
.sh-order-item__source-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}

.sh-order-item__source-links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.sh-order-item__source-links a:hover {
    text-decoration: underline;
}
