#auction_results td, #auction_results th {
    padding: 2px;
}
#past-auction-modal {
    min-height: 80vh !important;
}
/* Ensure the table wrapper doesn't overflow */
.dataTables_wrapper {
    overflow-x: auto;
}

/* Let table try to fit full width */
#auction_results {
    width: 100% !important;
    table-layout: auto;
    word-wrap: break-word;
    border-collapse: separate;
}

/* Make sure cells don't overflow */
#auction_results td, #auction_results th {
    white-space: normal !important;
}

#auction_results thead th {
    position: sticky;
    top: 85px;
    background-color: white;
    z-index: 3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.summary-col-hidden {
    display: none !important;
}

#auction_results tbody tr:first-child td {
    border-top: none !important;
}

#auction_results tbody tr.child td {
    padding: 0;
    border-top: none;
}

.auction-detail-card.ui.fluid.card {
    width: 100%;
    margin: 0;
    border-radius: 0 0 0.75rem 0.75rem;
}

.auction-detail-card .content {
    padding: 0.9rem 1.4rem;
}

.detail-grid .column {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.detail-label {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
}

.detail-value {
    text-align: right;
}

.filter-button-group .ui.tertiary.button {
    box-sizing: border-box;
    border-radius: 100%;
    border: 0 !important;
    box-shadow: inset 0 0 0 1px transparent !important;
    background: rgba(0,0,0,0.001);
    transition: box-shadow .12s ease, background-color .12s ease;
}

.filter-button-group .ui.tertiary.button:hover,
.filter-button-group .ui.tertiary.button:focus {
    box-shadow: inset 0 0 0 1px rgba(128,128,128,.5) !important;
    border-bottom: 0 !important;
    text-decoration: none !important;
    border-radius: 100%;
}

.filter-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.sticky-container {
    top: 0;
    position: sticky;
    z-index: 2;
    background: #fff;
}

.filter-box {
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

#filters {
    /* min-height: 475px; */
    position: relative;
    transition: all 1s ease;
    margin-top: 10px;
}

#filters:has(.subheading.collapsed) {
    min-height: 0;
}

.row-pb {
    background-color: #bbf7d053 !important;
    box-shadow: inset 0 0 0 1px #86efad5b !important;
}

#auction_results.dataTable.hover > tbody > tr.row-viewed > * {
    box-shadow: inset 0 0 0 9999px rgba(var(--dt-row-hover), 0.035) !important;
}

#auction_results tbody tr.row-selected > * {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

#bulk-status-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #d4d4d8;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}
#bulk-status-bar.visible { display: flex; }
#bulk-status-bar .bulk-count {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    margin-right: 4px;
}
#bulk-status-bar .bulk-status-menu {
    display: flex;
    gap: 4px;
}
#bulk-status-bar .bulk-status-menu button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    transition: transform .12s, box-shadow .12s;
}
#bulk-status-bar .bulk-status-menu button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}
#bulk-status-bar .bulk-clear-btn {
    background: none;
    border: 1px solid #d4d4d8;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #71717a;
    margin-left: 4px;
}
#bulk-status-bar .bulk-clear-btn:hover {
    background: #f4f4f5;
}
#bulk-status-bar .bulk-filter-btn {
    background: none;
    border: 1px solid #d4d4d8;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #3b82f6;
    font-weight: 600;
    margin-left: 4px;
}
#bulk-status-bar .bulk-filter-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.ui.dropdown.status_code .menu .item {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.ui.dropdown.status_code .menu .item .count-pill {
    margin-left: auto;
    font-size: 11px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 9999px;
    background: #eef2ff;
    color: #374151;
}

.count-pill:empty,
.count-pill[data-count="0"],
.count-pill[data-count=""],
.count-pill:not([data-count]) {
    display: none !important;
}

.status-pill {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    flex: 0 0 10px;
}

.status-pill[data-status="AN"] { background:#95979b; }
.status-pill[data-status="PE"] { background:yellow; }
.status-pill[data-status="EX"] { background:#454952; }
.status-pill[data-status="OK"] { background:#10b981; }
.status-pill[data-status="BP"] { background:#3b82f6; }
.status-pill[data-status="WP"] { background:#f59e0b; }
.status-pill[data-status="WF"] { background:#9333ea; }
.status-pill[data-status="LO"] { background:#ef4444; }

.dt-layout-row.dt-layout-top {
    position: relative;
}

.dt-layout-row.dt-layout-top .dt-center-action {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ui.dropdown.status_code .label[data-value="AN"] { background:#95979b !important; color:#fff !important; }
.ui.dropdown.status_code .label[data-value="PE"] { background:yellow !important; color:#000 !important; }
.ui.dropdown.status_code .label[data-value="EX"] { background:#454952 !important; color:#fff !important; }
.ui.dropdown.status_code .label[data-value="OK"] { background:#10b981 !important; color:#fff !important; }
.ui.dropdown.status_code .label[data-value="BP"] { background:#3b82f6 !important; color:#fff !important; }
.ui.dropdown.status_code .label[data-value="WP"] { background:#f59e0b !important; color:#fff !important; }
.ui.dropdown.status_code .label[data-value="WF"] { background:#9333ea !important; color:#fff !important; }
.ui.dropdown.status_code .label[data-value="LO"] { background:#ef4444 !important; color:#fff !important; }

.ui.dropdown.status_code .label .delete.icon { filter: brightness(0) invert(1); opacity:.9; }


.status-col { width: 48px; }

.status-cell {
    position: relative;
    padding: 0;
    text-align: center;
}

.status-cell.suppress-hover .status-menu {
    display: none !important;
}

.status-cell.status-watchlist {
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 5px;
    margin-top: 5px;
}

.status-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.06);
    transition: opacity .12s ease;
}

.status-cell .status-dot::after {
    content: attr(data-status);
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    color: #fff;
}

.status-menu {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) scale(.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    gap: 6px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    white-space: nowrap;
    transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}

.status-menu::before,
.status-menu::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
}

.status-menu::before {
    right: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #e5e7eb;
}

.status-menu::after {
    right: -5px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #fff;
}

.status-cell:hover .status-menu,
.status-cell:focus-within .status-menu {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    visibility: visible;
    pointer-events: auto;
    transition: opacity .12s ease, transform .12s ease, visibility 0s;
}

.status-cell:hover .status-dot {
    opacity: .50;
}

.status-menu button {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 0;
    cursor: pointer;
    font: 600 11px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #fff;
    opacity: 0;
    transform: translateX(10px) scale(.96);
    transition: opacity .18s ease, transform .18s ease;
}

.status-cell .status-menu button:nth-last-child(1) { transition-delay: .00s; }
.status-cell .status-menu button:nth-last-child(2) { transition-delay: .03s; }
.status-cell .status-menu button:nth-last-child(3) { transition-delay: .06s; }
.status-cell .status-menu button:nth-last-child(4) { transition-delay: .09s; }
.status-cell .status-menu button:nth-last-child(5) { transition-delay: .12s; }
.status-cell .status-menu button:nth-last-child(6) { transition-delay: .15s; }
.status-cell .status-menu button:nth-last-child(7) { transition-delay: .18s; }
.status-cell .status-menu button:nth-last-child(8) { transition-delay: .21s; }

.status-cell:hover .status-menu button,
.status-cell:focus-within .status-menu button {
    opacity: 1;
    transform: none;
}

.status-dot[data-status="AN"], .status-menu button[data-s="AN"] { background:#95979b; }
.status-dot[data-status="PE"], .status-menu button[data-s="PE"] { background:yellow; color: black; }
.status-dot[data-status="EX"], .status-menu button[data-s="EX"] { background:#454952; }
.status-dot[data-status="OK"], .status-menu button[data-s="OK"] { background:#10b981; }
.status-dot[data-status="BP"], .status-menu button[data-s="BP"] { background:#3b82f6; }
.status-dot[data-status="WP"], .status-menu button[data-s="WP"] { background:#f59e0b; }
.status-dot[data-status="WF"], .status-menu button[data-s="WF"] { background:#9333ea; }
.status-dot[data-status="LO"], .status-menu button[data-s="LO"] { background:#ef4444; }

.aria-tip {
    position: relative;
    display: inline-flex;
}

.status-menu button::after,
.aria-tip::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%,-2px) scale(.98);
    background: rgba(17,17,17,.95);
    color: #fff;
    font: 600 11px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
}

.status-menu button::before,
.aria-tip::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%) scale(.98);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(17,17,17,.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
}

.status-menu button:hover::after,
.status-menu button:hover::before,
.aria-tip:hover::after,
.aria-tip:hover::before,
.aria-tip:focus::after,
.aria-tip:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%,-6px) scale(1);
}

/* top-right tooltip variant for elements that need it */
.aria-tip.--tr::after {
    bottom: 100%;
    right: auto;
    left: 0;
    transform: translate(8px, -2px) scale(.98) !important;
}

.aria-tip.--tr::before {
    bottom: calc(100% - 2px);
    right: auto;
    left: 12px;
    transform: translateX(0) scale(.98) !important;
}

#status-box {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    box-shadow: none;
}

#status-box .status-menu {
    position: static;
    right: auto;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
    border: 0;
    padding: 0;
    padding-top: 8px;
    box-shadow: none;
}

#status-box .status-menu::before,
#status-box .status-menu::after {
    content: none;
}

#status-box .status-menu button {
    opacity: 1;
    transform: none;
    transition: opacity .06s linear, filter .06s linear;
}

#status-box.has-active .status-menu button {
    opacity: .45;
    filter: grayscale(35%);
}

#status-box.has-active .status-menu button.is-active {
    opacity: 1;
    filter: none;
    box-shadow: inset 0 0 1px black;
}

nav {
    background-color: #fff;
    color: #000;
}
nav a, nav a:hover, nav a:focus {
    color: #000;
}
.nav > li > a:hover, .nav > li > a:focus {
    background-color: transparent;
}

div.v-middle > * {
    vertical-align: super;
    line-height: normal;
}

.alert:not(.login-alert) {
    z-index: 100;
    position: fixed;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    display: none;
    padding: 20px;
}
td.regional_price.usd {
    color: blue; 
}
input[type=checkbox] {
    height: 20px;
    width: 20px;
    vertical-align: sub;
    margin: 5px;
}

input[type=number] {
    margin: 5px;
}

li {
    display: inline-block;
}

.li-item {
    border-bottom: solid 1px #e5e5e5;
    border-right: solid 1px #e5e5e5;
}

.navbar {
    height: 85px;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

#leftsidebar {
    z-index: 100 !important;
}

.bars::before, .bars::after {
    margin-top: 8px;
}

.navbar-nav > li > a {
    padding: unset;
    margin: unset;
    margin-top: 22px;
    padding: 0 5px;
}

nav i.material-icons {
    display: unset;
    height: unset;
}

.ui.selection.dropdown { cursor: text; }

.ui.selection.dropdown > .dropdown.icon { cursor: pointer; }

.ui.selection.dropdown.nojs {
    min-width: unset !important;
}

.dropdown.inline-display, .inline-display .dropdown {
    display: inline !important;
    width: unset !important;
    min-width: unset;
}

#part_type_filter h2 select {
    width: 150px !important;
}

.info-box div.row {
    padding: 5px;
}

a {
    cursor: pointer;
}

div.header.alternate {
    background-color: #343434;
    color: #fff;
}

div.header .dropdown {
    font-size: 13px;
}

.card .header.alternate h2, .card .header.alternate a {
    color: #fff;
}

.close-btn-ind-new, .close-btn-ind-upd {
    color: #000;
}

/* end aaron */

#freight_settings label {
    font-weight: normal;
}

.last-clicked {
    background: darkgrey;
}

.center {
    text-align: center !important;
}

#add-watchlist-btn.green:hover {
    background-color: #db2828 !important;
}

#watchlist_wrapper {
    width: 75%;
}

#watchlist_toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: flex-end;
}

.vehicle-card {
    position: relative;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important; */
}

.vehicle-card .header {
    padding: 0px !important;
    border-bottom: none !important;
}

.vehicle-card .amounts {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.vehicle-card .status-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
}

.vehicle-card .status-label.green {
    background: #21ba45;
}

.vehicle-card .status-label.red {
    background: #db2828;
}

.vehicle-card .ai-score {
    position: absolute;
    top: 10px;
    left: 10px;
}

.ai-score {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 1rem;
    text-align: center;

}

.vehicle-card img {
    padding: 0px !important;
}

.vehicle-card .profit.positive {
    color: #21ba45;
    font-weight: bold;
}

.vehicle-card .profit.neutral {
    color: #555;
}

.vehicle-card .damage {
    background: #f1f1f1;
    margin-top: 10px;
    font-size: 0.75rem;
}

.vehicle-card-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

#watchlist_table {
    text-align: center;
}

#watchlist_table td, #watchlist_table th {
    vertical-align: middle;
    background-color: white !important;
}

.no-marg {
    margin: 0 !important;
}

#brokering_markup {
    padding: 15px;
}

#markup_by_part_cost, #markup_by_part_type {
    margin-top: 25px;
}

div.error label {
    border: 1px solid #e0b4b4 !important;
    background-color: #fff6f6 !important;
    color: #9f3a38 !important;
    box-shadow: none !important;
}

#login-btn {
    background-color: #227FDE !important;
    color: #fff !important;
}

.nav label {
    color: lightgreen;
}

.nav li {
    margin-right:10px;
    margin-top:10px;
}

/* Center the title in jQuery-ui dialogs */
.ui-dialog .ui-dialog-title {
    text-align: center;
    width: 100%;
}

#confirmation_dialog > button {
    color: black;
    background: burlywood;
}

table.nested_table td {
    padding-right:5px;
}

.row {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: .33em;
}

.button .red {
    background-color: #AB2016;
}

.button .green {
    background-color: #16ab39;
}

.page-heading {
    font-size: 4em;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
    margin-left: 15px;
    margin-right: 15px;
}

.filters-card {
    padding: 16px 18px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    border: none !important;
    padding: 0 !important;
}

.filters-card .ui.dropdown,
.filters-card .ui.input input {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.active-filters-row {
    margin-top: 8px;
    padding: 10px 12px 2px;
    background: #ffffff;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.active-filters-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.active-filters-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #4b5563;
}

.active-filters-chipset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f3f3f3;
    color: #111827;
    font-size: 12px;
    line-height: 1.2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    transform-origin: center;
}

.filter-chip .chip-label {
    font-weight: 600;
    color: #374151;
}

.filter-chip .chip-value {
    color: #1f2937;
}

.filter-chip .chip-remove {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 0;
    color: #6b7280;
    transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.chip-remove .remove {
    margin: 0 !important;
}

.filter-chip .chip-remove:hover,
.filter-chip .chip-remove:focus {
    background: rgba(0, 0, 0, 0.06);
    color: #111827;
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

.filter-chip.chip-empty {
    background: #f9fafb;
    border-style: dashed;
    color: #6b7280;
    padding-right: 12px;
}

.filter-chip.chip-enter {
    animation: chip-in 160ms ease forwards;
}

.filter-chip.is-leaving {
    animation: chip-out 140ms ease forwards;
    pointer-events: none;
}

.filter-chip.chip-static {
    animation: none !important;
}

.part-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#deleted-cols,
#summary-deleted-cols {
    display: flex;
    justify-content: flex-end;
}

#deleted-cols .deleted-cols-actions,
#summary-deleted-cols .deleted-cols-actions {
    justify-content: flex-end;
}

#deleted-cols .deleted-cols-dropdown,
#summary-deleted-cols .deleted-cols-dropdown {
    z-index: 6;
}

#deleted-cols .deleted-cols-restore-all.ui.button,
#summary-deleted-cols .deleted-cols-restore-all.ui.button {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb !important;
}

#deleted-cols .deleted-cols-restore-all.ui.button:hover,
#deleted-cols .deleted-cols-restore-all.ui.button:focus,
#summary-deleted-cols .deleted-cols-restore-all.ui.button:hover,
#summary-deleted-cols .deleted-cols-restore-all.ui.button:focus {
    color: #1d4ed8 !important;
    outline: none;
    text-decoration: underline;
}

#deleted-cols .deleted-col-chip,
#summary-deleted-cols .deleted-col-chip {
    justify-content: space-between;
}

.filters-card .is-filter-active,
.filters-card .is-filter-active input {
    background: #f4f7ff !important;
    border-color: #dce7ff !important;
    color: #111827 !important;
    box-shadow: inset 0 0 0 1px #dce7ff !important;
}

@keyframes chip-in {
    from { opacity: 0; transform: translateY(4px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chip-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-4px) scale(.92); }
}

.ui.horizontal.divider {
    color: #4c4f57;
    font-weight: 600;
}

.subheading {
    padding: .5em;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    transition: margin-bottom 0.5s ease-in-out;
}

.subheading {
    background-color: #343434;
    color: #fff;
}

.subheading.white {
    background-color: #f8f9fa !important;
    color:rgba(0, 0, 0, 0.87) !important;
}

.subheading:hover {
    background-color: #585858;
}

.subheading.white:hover {
    background-color: #dbdbdb !important;
}

#rank-list {
    margin: 0;
    height: auto !important;
}

/* Erases the bullet points. Have to do it this way because Fomantic reasons */
#rank-list.ui.list li:before {
    content: none !important;
}

#rank-list .drag-handle {
    color: #000;
    margin-right: 1em;
    opacity: 0.7;
    font-size: 1.2em;
    display: inline-block;
    user-select: none;
}

#rank-list .drag-handle:hover {
    opacity: 1;
    color: #000;
}

#rank-list.ui.list li {
    padding: 0.75em 1em;
    margin: 0.25em 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5em;
    position: relative;
    z-index: 1;
}

#rank-list.ui.list li:hover {
    z-index: 10;
}

#rank-list li:has(.rank-color-cell.is-open) {
    z-index: 100;
}

#rank-list li:hover {
    cursor: grab;
}

#rank-list .rank-number {
    min-width: 2em;
    color: #888;
    font-size: 0.85em;
    flex-shrink: 0;
}

#rank-list .rank-label {
    flex: 1;
}

.rank-color-cell {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.rank-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.12);
    cursor: pointer;
    transition: box-shadow .12s ease;
    flex-shrink: 0;
}

.rank-color-swatch:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,.2);
}

.rank-color-menu {
    position: absolute;
    right: calc(100% + 8px);
    bottom: 0;
    top: auto;
    transform: scale(.97);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(5, 22px);
    gap: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}

/* First two items: flip to open downward so they don't clip above the container */
#rank-list li:first-child .rank-color-menu,
#rank-list li:nth-child(2) .rank-color-menu {
    bottom: auto;
    top: 0;
    transform-origin: top right;
}

.rank-color-menu::before,
.rank-color-menu::after {
    content: "";
    position: absolute;
    bottom: 10px;
    top: auto;
    width: 0;
    height: 0;
}

.rank-color-menu::before {
    right: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #e5e7eb;
}

.rank-color-menu::after {
    right: -5px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #fff;
}

/* Caret at top edge for the downward-opening items */
#rank-list li:first-child .rank-color-menu::before,
#rank-list li:first-child .rank-color-menu::after,
#rank-list li:nth-child(2) .rank-color-menu::before,
#rank-list li:nth-child(2) .rank-color-menu::after {
    bottom: auto;
    top: 10px;
}

.rank-color-cell.is-open .rank-color-menu {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
    transition: opacity .15s ease, transform .15s ease, visibility 0s;
}

.rank-color-opt {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,.1);
    cursor: pointer;
    transition: transform .1s ease, box-shadow .1s ease;
}

.rank-color-opt:hover {
    transform: scale(1.25);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,.25);
    z-index: 1;
    position: relative;
}

.rank-color-none {
    background: repeating-linear-gradient(
        45deg,
        #e5e7eb,
        #e5e7eb 2px,
        #fff 2px,
        #fff 7px
    );
}

.price-rank-badge {
    font-size: 0.75em;
    color: #888;
    margin-left: 4px;
}

.item.placeholder {
  height: 2.5em;
  background: rgba(0,0,0,0.05);
  border: 1px dashed rgba(34,36,38,.15);
}

.ghost {
  opacity: 0.4;
}

.subheading.white:hover {
    background-color: #dbdbdb;
}

.item.placeholder {
  height: 2.5em;
  background: rgba(0,0,0,0.05);
  border: 1px dashed rgba(34,36,38,.15);
}

.ghost {
  opacity: 0.4;
}

.expand-icon {
    float: right;
    vertical-align: middle;
    color: inherit;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.subheading.collapsed .expand-icon {
    transform: rotate(180deg);
}

.subheading.collapsed.ui.divider {
    margin-bottom: 0 !important;
}

.card {
    border: 2px solid #ddd;
    margin-bottom: 0;
}

.inner-content {
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: #f8f9fa;
    /* box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3); */
    border: 1px solid #ddd;
    display: block;
    padding: 0.5rem 1rem;
    padding: 0.5rem 1rem;
}

.subheading .subheading-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9em;
    color: #6b7280;
    margin-left: 0.5rem;
}

.subheading.collapsed .subheading-controls {
    color: #4b5563;
}

.subheading .subheading-controls .expand-icon {
    float: none;
    margin: 0;
    font-size: 20px;
    line-height: 1;
}

.filters-header {
    background-color: white;
    color: black;
    border-bottom: 1px solid grey !important;
}

.filters-header:hover {
    background-color: #f8f9fa;
}

.filters-card .filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    padding: 0.4rem 0.75rem;
    gap: 0.75rem;
}

.filters-card .filters-title {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.filters-card .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px !important;
    padding: 0.3rem 0.75rem !important;
    box-shadow: none !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
    background: #fff !important;
}

.filters-card .filters-toggle .expand-icon {
    float: none;
    margin: 0;
    color: #4b5563;
}

.filters-card .subheading.collapsed .filters-toggle {
    color: #1f2937 !important;
}

.filters-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.filters-card .inner-content {
    border: none;
    box-shadow: none;
}

.inner-content:not(.collapsed) {
    max-height: 100%;
    padding: 1rem;
}

.filters-card .field label {
    position: relative;
    padding-right: 28px;
}

.filters-card .hide-filter-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none !important;
    background: transparent !important;
    opacity: 0;
    transition: opacity .15s ease, box-shadow .15s ease;
    padding: 0;
    box-shadow: none !important;
}

.filters-card .field:hover .hide-filter-btn {
    opacity: 1;
}

.filters-card .hide-filter-btn:hover,
.filters-card .hide-filter-btn:focus,
.filters-card .hide-filter-btn:active {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.filters-card .hide-filter-btn i {
    margin: 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 16px;
}

.filters-grid form {
    margin: 0;
}

.filters-grid .col-md-2,
.filters-grid .col-xs-6 {
    width: 100%;
    padding: 0;
    float: none;
}

.filters-grid .field {
    width: 100%;
}

@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .filters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hidden-filters {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 260px;
    max-width: 340px;
    display: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    margin-top: 0;
    z-index: 5;
}

.is-hidden-filter {
    display: none !important;
}

.hidden-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    padding-right: 0.25rem;
}

.hidden-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hidden-filter-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px !important;
    padding: 0.3rem 0.7rem !important;
    box-shadow: none !important;
}

.hidden-filters-tab {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0;
    opacity: 1 !important;
    background: #fff !important;
    color: #343434 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 0.35rem 0.8rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    transform: translateY(-3px);
}

.hidden-filters-tab .icon {
    margin: 0;
    transition: transform 0.15s ease;
}

.hidden-filters-tab.is-open .icon {
    transform: rotate(180deg);
}

.hidden-filters.is-open {
    display: block;
}

.tab-content {
    margin-bottom: 20px;
}

.nav-tabs > li > a {
    font-size: 20px;
    font-weight: bold;
    color: #111 !important;
    padding: 4px 15px;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    font-size: 20px;
    font-weight: bold;
    color: #111;
}

.inner-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    overflow: hidden;
}

.dropdown-desc {
    top: -20px;
}

.fees {
    overflow: hidden;
}

.flex {
    display: flex;
    flex-direction: row;
}

.flex > div {
    width: 50%;
}

.dt-column-order {
    display: none;
}

.sort-option {
    display: inline-block;
    font-size: 12px;
    margin: 0 5px;
    color: #9E9E9E;
    position: relative;
    top: 5px;
}

.sort-option {
    visibility: hidden;
}

.sort-option.active-sort {
    visibility: visible;
    color: #2196F3;
    font-weight: bold;
}

.sort-icon { 
    color: #007bff;
    display: inline-block; 
    transition: transform .2s; 
    opacity: .6; 
}

.sorted-asc .sort-icon { 
    transform: rotate(0deg);   
}
.sorted-desc .sort-icon { 
    transform: rotate(180deg); 
}

#auction-group-tab th {
    position: relative;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

#auction-group-tab th.auction_site_name,
#auction-group-tab td.auction_site_name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    width: 100%;
}

.toggle-container .ui.toggle.checkbox {
    display: flex;
    justify-content: space-between;
}

#auction-groups-wrapper {
    width: 100%;
    overflow-x: auto;
}

.dirty {
    background-color: rgb(253, 253, 149) !important;
}

.fields.dirty-asterisk > h4::after,
label.dirty-asterisk::after,
.ui.checkbox.dirty-asterisk::after {
    content: ' *';
    color: #2247ee;
    margin-left: 2px;
    font-weight: bold;
}

.ui.checkbox.dirty-asterisk {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.subheading.dirty-asterisk::after {
    content: ' *';
    color: #ffffff;
    margin-left: 2px;
    font-weight: bold;
}

.ui.modal {
    max-height: 20vh;
    max-width: 35vw;
}

.ui.modal.billing-info-notice {
    max-height: 35vh;
    height: auto;
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui.modal.billing-info-notice > .content {
    max-height: none !important;
}

[class*="copy-msg-"] {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 520px;
    z-index: 100;
}

.ui.modal.billing-info-notice > .header {
    display: flex !important;
    align-items: center;
    gap: .5rem;
}

.ui.modal.billing-info-notice > .header .billing-header-icon,
.ui.modal.billing-info-notice > .header .billing-header-icon > i.icon {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ui.modal.billing-info-notice > .header .billing-header-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.ui.modal.billing-info-notice > .header .billing-header-icon > i.icon {
    position: static !important;
    float: none !important;
    top: auto !important;
    left: auto !important;
    font-size: 1.1em !important;
    line-height: 1;
}

.ui.page.modals > .ui.modal {
    position: fixed !important;
    margin: 0 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    visibility: hidden;
}
.ui.page.modals > .ui.modal.transition.visible.active {
    visibility: visible;
}

.dirty-details {
    border: 1px solid rgba(114, 110, 255, 1);
}

#auction-group-tab td.auction_site_name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px !important;
}

.space-between {
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}

#auction-tabs {
    margin: 0;
    padding-left: 0;
    width: 500px !important;
    border-top: none !important;
    justify-self: start;
}

#auction-tabs .item.active {
    background-color: #ffffff;
    border-bottom: none;
    border-right: none;
    border-left: none;
    border-top: 2px solid #2196F3;
    z-index: 2;
}

.auction-fee-tab {
    border-collapse: collapse;
}

.bar::before,
.bar::after {
    content: none !important;
    display: none !important;
}

.bar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left center right";
  align-items: center;
  gap: .75rem;
}

.bar .left  { grid-area: left; justify-self: start; }
.bar .center { grid-area: center; justify-self: center; }
.bar .right { grid-area: right; justify-self: end; }

@media (max-width: 1400px) {
    .bar { 
        grid-template-columns: 1fr;
        grid-template-areas: "center" "left" "right";
    }
    .bar .left {
        grid-area: left;
        justify-self: center !important;
    }
    .bar .right {
        grid-area: right;
        justify-self: center;
    }
    .bar .right .ui.button {
        float: none !important;
        margin-right: 0 !important;
        width: auto;
    }
}

#auctions_dropdown {
    justify-self: center;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: left;
    align-content: center;
}

#auctions_dropdown .menu > .item {
    width: 100%;
    
}

#auction-grid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    width: 700px;
}

#auctions_dropdown .menu > .message {
    display: none !important;
}

#save-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

#save-btn .material-icons {
  margin-right: 0.5em;
  font-family: 'Material Icons' !important;
}

/* Bid calculation coloring */

.band-0 { background: #f77464 !important; }
.band-1 { background: #fec232 !important; }
.band-2 { background: #a0c046 !important; }
.band-3 { background: #56b950 !important; }
.band-4 { background: #338350 !important; }

.auction-fee-tab th, .auction-fee-tab td {
    padding: 1em;
}

.auction-fee-tab th {
    min-width: 12em;
    text-align: center;
}

td {
  position: relative;
  padding: 0;
}

.currency-input {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.currency-input .currency-symbol {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    color: #333;
    pointer-events: none;
}

.currency-input input {
    width: 100%;
    padding-left: 20px;
    box-sizing: border-box;
    min-height: 100%;
    font-size: 1em;
    font-weight: normal;
    border: none;
}

.input-error {
    outline: 1px solid red;
}

.sidebar {
    height: calc(100vh - 85px) !important;
    top: 85px !important;
}

.sidebar .legal {
    border-top: none;
}

.sidebar .support {
    text-align: center;
    padding: 13px 15px 12px 15px;
    border-bottom: 1px solid #e9e9e9;
    margin-bottom: 13px;
}

.sidebar .user-info .info-container {
    top: 15px;
}

.text-right {
    text-align: right !important;
}

.card {
    border-radius: 12px;
}

.card img {
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
}

.badge-custom {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

.section-title {
    font-weight: 600;
    margin-bottom: 0;
}

.text-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.question {
  display: inline-block;
  position: relative;
  top: -10px;
  color: rgb(0, 122, 204);
}

.hover-wrapper {
    position: relative; 
    display: inline-block;
    width: 100%;
}

#auction-fees {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    white-space: nowrap;
    margin-bottom: 1em;
}

.hover-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.hover-target {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.hover-card {
    display: inline-block;
    width: max-content;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5%;
    padding: 1em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
    pointer-events: none;
}

.hover-trigger .hover-card {
    top: 50%;
    right: 100%;
    left: auto;
    margin-top: 0;
    margin-right: 8px;
    transform: translateY(-50%);
}

.hover-card.close-ratio {
    left: 100%;
    right: 0;
    top: -100%;
    z-index: 15;
}

.hover-target:hover + .hover-card,
.hover-target:focus-within + .hover-card {
    opacity: 1;
    pointer-events: auto;
}

.hover-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 100%;
    pointer-events: auto;
}

.hover-card span {
    margin-left: 2em;
}

.hover-card.close-ratio {
    white-space: normal;
    max-width: 400px;
    overflow-wrap: normal;
    border-radius: 0;
    cursor: default;
}

#close-ratio-label {
    cursor: pointer;
}

.label-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.label-bar .hide-filter-btn {
    margin-left: auto;
    position: static;
    opacity: 0;
    top: auto;
    transform: none;
    align-self: center;
}

.label-bar:hover .hide-filter-btn,
.field:hover .label-bar .hide-filter-btn {
    opacity: 1;
}

#planned_bid .ui.left.icon.input,
.editable-field.input {
    width: 25%;
}

#planned_bid .ui.left.icon.input i {
    background-color: #b0b0b0;
}

.ui.labeled.input.transparent {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.ui.labeled.input.transparent .ui.label {
    padding: 0 .5em;
    margin-right: .25em;
    border: none !important;
    background: transparent !important;
}

.editable-field.ui.span {
    text-align: right !important;
    padding-right: 0.5em !important;
    padding-left: 0.5em !important;
    transition: background-color .3s;
    border-bottom: 1px dashed rgb(0,122,204);
}

.editable-field:not(:focus-within).ui.span:hover {
    background: rgba(0,122,204,0.1);
}

.editable-field.ui.span:focus {
    outline: none;
    border-bottom: 1px solid rgb(0,122,204) !important;
}

#save-container {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    bottom: 0;
    right: 0.7em;
    flex-direction: row;
    border-bottom: none;
    width: 100%;
}

#change-box {
    display: flex;
    flex-direction: row;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-left: 0;
    border-bottom: none;
    box-shadow: none;
}

#change-box i {
    margin: 0;
}

.profit-box {
    background-color: #ecfdf5;
    border: 1px solid #d1fae5;
    padding: 15px;
    border-radius: 8px;
}

.badge-group {
    position: absolute;
    top: 2rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.auction_details_row:not(.special_note), .bidding_info_row {
    display: flex;
    justify-content: space-between;
    font-size: medium;
}

.special_note {
    display: inline-block;
    position: relative;
    padding: 8px 12px 8px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    color: #374151;
    width: max-content;
}

.special_note::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
}


#screen-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.positive td, .positive th:last-child {
    box-shadow: 0 0 0 #a3c293 inset !important;
    background: #fcfff5 !important;
    color: #2c662d !important;
}

.negative td, .negative th:last-child {
    box-shadow: 0 0 0 #e0b4b4 inset !important;
    background: #fff6f6 !important;
    color: #9f3a38 !important;
}

#details-table thead th { 
    cursor: pointer;
    user-select: none;
    position: relative;
    text-align: center;
    padding-top: 24px;
}

#details-table thead th .col-delete {
    position: absolute;
    top: 4px;
    right: 25%;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease-in-out, visibility 0.12s ease-in-out, background-color 0.12s ease-in-out, color 0.12s ease-in-out, border-color 0.12s ease-in-out;
}

#auction_results thead th .col-delete {
    position: absolute;
    bottom: 2px;
    left: calc(50% + 2px);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease-in-out, visibility 0.12s ease-in-out, background-color 0.12s ease-in-out, color 0.12s ease-in-out, border-color 0.12s ease-in-out;
}

#details-table thead th .col-delete .icon,
#auction_results thead th .col-delete .icon {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.95rem;
}

#details-table thead th .col-drag-handle {
    position: absolute;
    top: 4px;
    right: 50%;
    left: auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.95rem;
    letter-spacing: -1px;
    font-family: monospace;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: grab;
    user-select: none;
    transition: opacity 0.12s ease-in-out, visibility 0.12s ease-in-out, background-color 0.12s ease-in-out, color 0.12s ease-in-out, border-color 0.12s ease-in-out;
}

#auction_results thead th .col-drag-handle {
    position: absolute;
    bottom: 2px;
    left: calc(50% - 22px);
    right: auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.95rem;
    letter-spacing: -1px;
    font-family: monospace;
    font-weight: 700;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: grab;
    user-select: none;
    transition: opacity 0.12s ease-in-out, visibility 0.12s ease-in-out, background-color 0.12s ease-in-out, color 0.12s ease-in-out, border-color 0.12s ease-in-out;
}

#details-table thead th .col-drag-handle:active,
#auction_results thead th .col-drag-handle:active {
    cursor: grabbing;
}

#details-table thead th .col-delete:hover,
#details-table thead th .col-drag-handle:hover,
#details-table thead th .col-delete:focus,
#details-table thead th .col-drag-handle:focus,
#auction_results thead th .col-delete:hover,
#auction_results thead th .col-drag-handle:hover,
#auction_results thead th .col-delete:focus,
#auction_results thead th .col-drag-handle:focus {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #1f2937;
    outline: none;
}

#details-table thead th:hover .col-drag-handle,
#details-table thead th:hover .col-delete,
#details-table thead th:focus-within .col-drag-handle,
#details-table thead th:focus-within .col-delete,
#details-table thead th.is-dragging-col .col-drag-handle,
#auction_results thead th:hover .col-drag-handle,
#auction_results thead th:hover .col-delete,
#auction_results thead th.is-dragging-col .col-drag-handle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: white;
}

#details-table thead th.col-drop-target,
#auction_results thead th.col-drop-target {
    outline: 2px dashed #b5b5b5;
    outline-offset: -4px;
}

#details-table thead th.is-dragging-col,
#auction_results thead th.is-dragging-col {
    opacity: 0.6;
}

#details-table thead th .sort-option {
    display: block;
    margin: 4px auto 0;
}

#details-table td {
    vertical-align: middle;
    padding: 0;
}

.estimated-price-td {
    height: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.good-toggle {
    border: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
}

.good-toggle > span {
    display: inline-block;
    min-width: 8ch;
    text-align: center;
}

#extra-bid-amt, #extra-sale-price {
    vertical-align: middle;
}

.editable-wrapper {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border: 1px dashed transparent;
    border-radius: 4px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    cursor: text;
    min-width: 80px;
}

.editable-wrapper div {
    width: 100%;
}

.editable-wrapper:hover,
.editable-wrapper:focus-within {
    border-color: #ebebeb;
    background-color: #f0f0f0;
}

.currency-symbol {
    margin-right: 6px;
    font-weight: bold;
    color: #333;
}

.estimated-price {
    flex: 1; 
    outline: none;
    padding: 2px 4px;
    min-width: 40px;
}

.estimated-price:focus {
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.5);
    border-radius: 2px;
}

@media print {
    @page { 
        size: landscape; 
    }
    table.dataTable {
        width: 100% !important;
        height: 90% !important;
        table-layout: auto;
        font-size: 11pt;
        border-collapse: collapse;
    }
    table.dataTable, 
    table.dataTable th, 
    table.dataTable td {
        border: 1px solid #333 !important;
    }
}

.ui-datepicker {
    z-index: 1000 !important;
}

.has-clear {
    position: relative;
}

.has-clear .clear-calendar {
    position: absolute;
    right: 0.5rem;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .25rem;
    background: transparent;
    box-shadow: none !important;
}

.has-clear input {
    padding-right: 2.4rem !important;
}

td.asking_price .asking_price_wrap {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

td.asking_price .asking_price_wrap .price-diff-help {
    position: absolute;
    left: 100%;
    margin-left: 4px;
    top: 0;
    transform: translateY(-25%);
    margin: 0;
}

.details_vehicle_gallery {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.details_vehicle_gallery_wrap {
    margin: 6px 0 0px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    height: 120px;
}

.details_vehicle_list_shell {
    position: relative;
    height: 120px;
}

.details_vehicle_gallery.ui.cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    height: 100%;
    align-items: center;
}

.details-gallery-dimmer {
    position: absolute !important;
    inset: 0;
    display: none !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
    pointer-events: none;
}

.details-gallery-dimmer.is-visible {
    display: flex !important;
}

#details_vehicle_list {
    flex: 1 1 100%;
    text-align: center;
    align-self: center;
}

.details_vehicle_gallery .details_vehicle_card {
    flex: 0 0 320px;
    height: 100%;
    max-height: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    cursor: pointer;
}

.details_vehicle_gallery .details_vehicle_card > .image {
    width: 40%;
    height: 100%;
    flex: 0 0 40%;
    overflow: hidden;
}

.details_vehicle_gallery .details_vehicle_card > .image img {
    width: 100%;
    height: 100%;
}

.details_vehicle_gallery .details_vehicle_card > .content {
    width: 60%;
    flex: 1 1 60%;
    padding: 6px 8px !important;
    font-size: 0.9rem !important;
    overflow: hidden;
}

.details_vehicle_gallery .details_vehicle_card > .content > .header {
    font-size: 0.9rem !important;
    line-height: 1.1;
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details_vehicle_gallery .details_vehicle_card > .content > .meta,
.details_vehicle_gallery .details_vehicle_card > .content > .description {
    font-size: 0.85rem !important;
    line-height: 1.1;
    margin: 3px 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details_vehicle_gallery .details_vehicle_card > .content > .meta.gallery-lot {
    overflow: visible;
}

.details_vehicle_gallery .details_vehicle_card > .content > .meta.gallery-lot a {
    color: #4183c4;
    text-decoration: none;
    font-weight: 600;
}

.details_vehicle_gallery .details_vehicle_card > .content > .meta.gallery-lot a:hover {
    text-decoration: underline;
}

.details_vehicle_gallery .details_vehicle_card.is-current {
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.35);
    background: rgba(33, 150, 243, 0.06);
}

td.asking_price .asking_price_wrap {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

td.asking_price .asking_price_wrap .price-diff-help {
    position: absolute;
    left: 100%;
    margin-left: 4px;
    top: 0;
    transform: translateY(-25%);
    margin: 0;
}
.vehicle_detail_images .gallery-trigger {
    width: 144px; /* Current standard size seen in your inspector */
    height: auto;
    margin: 5px;
    cursor: pointer;
    transition: width 0.3s ease, transform 0.2s ease;
}

/* Modifier class for 100% larger thumbnails */
.double-thumbs .vehicle_detail_images .gallery-trigger {
    width: 288px !important; /* 100% increase from 144px */
}

/* Ensure images don't look blurry when scaled */
.double-thumbs .vehicle_detail_images .gallery-trigger {
    image-rendering: -webkit-optimize-contrast;
}

/* ===== Vehicle Grade Badge ===== */

.vehicle-grade-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;
    cursor: default;
}

.grade-excellent { background-color: #198754; }
.grade-good { background-color: #0d6efd; }
.grade-fair { background-color: #fd7e14; }
.grade-poor { background-color: #dc3545; }
.grade-na { background-color: #6c757d; }

/* Grade column: shrink to badge width, no overflow */
#auction_results th.grade-col,
#auction_results td.grade-col {
    width: 1%;
    white-space: nowrap;
    padding: 4px 6px;
}


@media print {
    .vehicle-grade-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===== Live Bid Tab ===== */

.livebid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.livebid-tile.ui.segment {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.livebid-lane-header.ui.header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.livebid-print-btn {
    margin-left: auto !important;
}

.livebid-lane-header .ui.label {
    font-size: 0.8rem;
    padding: 4px 8px;
    background: #eef2ff;
    color: #374151;
}

.livebid-auction-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #111827;
    margin: 0 0 6px 0;
}

.livebid-table.ui.table {
    margin: 0;
    font-size: 0.9rem;
}

.livebid-table-wrap {
    overflow-x: auto;
}

.livebid-table.ui.table {
    min-width: 860px;
}

.livebid-table th {
    padding: 6px 8px !important;
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6b7280;
}

.livebid-table td {
    padding: 4px 8px !important;
    vertical-align: middle;
}

.livebid-table tr.livebid-row {
    cursor: pointer;
}

.livebid-table tr.livebid-row:hover {
    background: #f3f4f6;
}

.livebid-table .status-col {
    width: 48px;
    text-align: center;
}

.livebid-table .status-menu {
    right: 100%;
    left: auto;
}

#batch-print-modal {
    width: 550px !important;
    height: auto !important;
    max-height: 90vh !important;
    overflow: visible !important;
}
#batch-print-modal .content {
    overflow-y: visible !important;
}
#batch-print-modal .ui.form {
    padding: 0;
    max-width: 100%;
}
#batch-print-modal .field {
    margin-bottom: 1.5rem;
}
#batch-print-modal label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 14px;
}
#batch-print-auction {
    width: 100% !important;
    min-width: 100%;
}
#batch-print-status-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#batch-print-status-options .ui.checkbox {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}
#batch-print-status-options .ui.checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
}
#batch-print-status-options .ui.checkbox label {
    margin: 0 !important;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}
#batch-print-modal .actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .livebid-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .livebid-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* Row drag-and-drop reorder */
.row-drag-handle {
    display: none;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    color: #aaa;
    font-size: 14px;
    padding: 2px 4px;
    user-select: none;
    z-index: 1;
    letter-spacing: 2px;
}

.custom-sort-active .row-drag-handle {
    display: inline-block;
}

.custom-sort-active tbody tr {
    cursor: grab;
    position: relative;
}

.custom-sort-active tbody tr td:first-child {
    position: relative;
    padding-left: 22px !important;
}

tr.is-dragging-row {
    opacity: 0.4;
}

tr.row-drop-target td {
    border-top: 2px dashed #2185d0 !important;
}

#custom-sort-toggle.active {
    background-color: #2185d0 !important;
    color: #fff !important;
}

.lot-history-scroll {
    overflow-y: scroll;
    max-height: 520px;
}
.lot-history-scroll::-webkit-scrollbar {
    width: 10px;
}
.lot-history-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
}
.lot-history-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.lot-history-scroll {
    scrollbar-color: #888 #e0e0e0;
    scrollbar-width: thin;
}
.recycle-bid-icon {
    color: #22c55e;
    font-size: 0.85em;
    margin-right: 2px;
    opacity: 0.85;
}
