.frattis-history { width: 100%; min-width: 0; }
.frattis-history-scroll { max-width: 100%; overflow: auto; border: 1px solid #deddd6; border-radius: 10px; background: #fff; }
.frattis-history table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .875rem; line-height: 1.5; }
.frattis-history td, .frattis-history th { padding: 12px 10px; text-align: left; vertical-align: middle; }
.frattis-history th { background: #35433b; color: #fff; font-weight: 600; }
.frattis-history th:first-child { width: 30%; }
.frattis-history th:nth-child(2) { width: 15%; }
.frattis-history th:nth-child(3) { width: 26%; }
.frattis-history td { border-top: 1px solid #ecebe6; }
.frattis-history tbody tr:first-child td { border-top: 0; }
.frattis-history tbody tr:nth-child(even) { background: #f8f8f5; }
.frattis-history td:first-child { overflow-wrap: anywhere; }
.frattis-history td:nth-child(2) { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.frattis-history td:last-child { color: #62665e; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.frattis-history [data-history-status] { display: inline-block; padding: 4px 8px; border-radius: 6px; line-height: 1.4; font-size: .8125rem; font-weight: 600; }
.frattis-history [data-history-status="active"], .frattis-history [data-history-status="winning"], .frattis-history [data-history-status="winner"] { background: #e5efe5; color: #2e603a; }
.frattis-history [data-history-status="outbid"] { background: #f7ecd9; color: #795419; }
@media (min-width: 768px) {
    .frattis-history table { table-layout: auto; }
    .frattis-history th:first-child, .frattis-history th:nth-child(2), .frattis-history th:nth-child(3) { width: auto; }
    .frattis-history [data-history-status] { white-space: nowrap; }
}
.frattis-history nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0 4px; }
.frattis-history nav button { min-height: 36px; padding: 6px 12px; border: 1px solid #35433b; border-radius: 6px; background: #35433b; color: white; font: inherit; font-size: .8125rem; cursor: pointer; }
.frattis-history nav button:disabled { color: #767b76; border-color: #deddd6; background: #f0f1ed; cursor: default; }
.frattis-history nav button:focus-visible { outline: 2px solid #ab836a; outline-offset: 3px; }
.frattis-history [hidden] { display: none !important; }
.frattis-history [data-history-state], [data-frattis-popup-connection] {
    display: flex; align-items: center; gap: 8px; width: fit-content;
    margin: 0 0 12px; padding: 5px 9px; border: 1px solid #dce4dd; border-radius: 6px;
    background: #edf3ee; color: #35433b; font-size: .8125rem; font-weight: 600; line-height: 1.5;
}
.frattis-history [data-history-state]::before, [data-frattis-popup-connection]::before {
    content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #39734b;
}
.frattis-history [data-connection-state="offline"], [data-frattis-popup-connection][data-connection-state="offline"],
.frattis-history [data-connection-state="connecting"], [data-frattis-popup-connection][data-connection-state="connecting"] { background: #fbf4e9; color: #794419; border-color: #ead8be; }
.frattis-history [data-connection-state="offline"]::before, [data-frattis-popup-connection][data-connection-state="offline"]::before,
.frattis-history [data-connection-state="connecting"]::before, [data-frattis-popup-connection][data-connection-state="connecting"]::before { background: #98651d; }
[data-frattis-popup-connection] { margin: 12px auto 16px; }
[data-frattis-history-owned="1"] .frattis-history [data-connection-state="live"] { display: none; }
/* A realtime popup has no polling countdown. Keep the auction deadline visible. */
[data-frattis-history-owned="1"] :is(.live-refresh-countdown,.live-refresh-countdown-main),
[data-frattis-history-owned="1"] .brxe-heading:has(.live-refresh-countdown) { display: none !important; }
/* Popup hydration must not depend on a legacy page-wide polling flag. */
[data-frattis-history-owned="1"] [data-frattis-realtime-ready="1"]:is(.live-current-price-value,.live-bid-count-value,.live-bidders-count-value,.live-minimum-bid-value,.live-extension-count-value) {
    color: inherit !important; background: none; animation: none;
}
[data-frattis-history-owned="1"] [data-frattis-realtime-ready="1"]:is(.live-bid-status,.frattis-quick-bids-buttons)::after { content: none; }
[data-frattis-history-owned="1"] [data-frattis-realtime-ready="1"].frattis-quick-bid-btn { opacity: 1 !important; }
@media (max-width: 480px) {
    .frattis-history td, .frattis-history th { padding: 9px 6px; font-size: .75rem; }
    .frattis-history td:last-child, .frattis-history [data-history-status] { font-size: .6875rem; }
    .frattis-history [data-history-status] { padding: 4px 5px; }
    .frattis-history th:first-child { width: 28%; }
    .frattis-history th:nth-child(2) { width: 17%; }
}
