/* assets/css/eanbid-bidlist.css */

/* Global Scrollbar Hide (Keep function) */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Table Column Widths */
.col-check {
    width: 44px;
    text-align: center;
}

.col-id {
    width: 60px;
    text-align: center;
}

.col-info {
    min-width: 340px;
}

.col-base {
    width: 140px;
    text-align: right;
}

.col-dday-center {
    width: 80px;
    text-align: center;
}

.col-bid {
    width: 150px;
    text-align: right;
}

.col-state {
    width: 180px;
    text-align: center;
}

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

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

.td-middle {
    vertical-align: middle !important;
}

.meta-center-muted {
    text-align: center !important;
    font-weight: 800;
    color: var(--text-sub);
}

/* Title line */
.bid-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bid-nm {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.4;
    flex: 1;
    word-break: keep-all;
}

.headline-info {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.col-base-price {
    width: 120px;
    text-align: right;
    padding-right: 20px;
    border-right: 1px solid #f1f5f9;
}

.col-dday {
    width: 75px;
    display: flex;
    justify-content: center;
    border-right: 1px solid #f1f5f9;
}

.col-bid-price {
    width: 130px;
    padding-left: 20px;
    text-align: right;
}

.price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-text {
    font-weight: 800;
    font-size: 15px;
    color: #dc2626;
}

.predicted-price {
    font-weight: 900;
    font-size: 15px;
    color: var(--primary);
}

.predicted-sub {
    font-size: 10px;
    font-weight: 800;
    color: #6366f1;
    opacity: .85;
    margin-top: 2px;
}

/* Meta lines */
.meta-line {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    opacity: .9;
}

.meta-sep {
    color: #cbd5e1;
}

.meta-item b {
    color: #334155;
    font-weight: 900;
    margin-right: 4px;
}

.info-bar-line {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-divider {
    color: #e2e8f0;
}

/* D-day badge */
.d-day-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--primary);
    min-width: 65px;
    text-align: center;
    white-space: nowrap;
}

.d-day-today {
    background: #fee2e2;
    color: #dc2626;
}

/* Labels */
.badge-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    margin-left: 4px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.label-급 {
    background: #f87171;
}

.label-취소 {
    background: #9ca3af;
}

.label-정 {
    background: #4ade80;
    color: #064e3b;
}

.label-제한 {
    background: #ea580c;
}

.label-공가 {
    background: #b91c1c;
}

.label-PQ {
    background: #3b82f6;
}

.label-기초 {
    background: #8b5cf6;
}

.label-수의 {
    background: #14b8a6;
}

/* New icon */
.badge-new-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 4px;
    margin-right: 4px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
}

/* Status chip */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: .15s ease;
}

.status-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-pending {
    background: #94a3b8;
}

.dot-estimate {
    background: #fbbf24;
}

.dot-pq {
    background: #818cf8;
}

.dot-bidding {
    background: #10b981;
}

/* Cycle Status Button */
.btn-cycle-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    min-width: 82px;
    height: 36px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-cycle-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.btn-cycle-status:active {
    transform: translateY(0);
}

/* Status Colors */
.status-wait {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.status-submit {
    background: #ebf5ff;
    color: #3b82f6;
    border-color: #bfdbfe;
}

.status-bid {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.status-open {
    background: #faf5ff;
    color: #9333ea;
    border-color: #e9d5ff;
}

.state-stack {
    display: flex;
    align-items: center;
    gap: 6px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================
   Row Action Icon Buttons
   ========================= */

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    color: var(--text-sub);
}

.icon-btn i {
    font-size: 14px;
    transition: .18s ease;
}

/* Hover */
.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, .35);
    background: rgba(79, 70, 229, .05);
    color: var(--primary);
}

/* Active - 즐겨찾기 */
.icon-btn.star.active-star {
    background: #fff7ed;
    border-color: #fbbf24;
    color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .25);
}

/* Active - 참여완료 */
.icon-btn.part.active-part {
    background: #ecfdf5;
    border-color: #34d399;
    color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, .25);
}

/* 메모 */
.icon-btn.memo.has-content {
    background: #fef9c3;
    border-color: #fde047;
    color: #d97706;
}

.spotlight-urgent {
    border-left-color: #dc2626 !important;
    background: #fffdfd !important;
}

/* =========================
   Bid List Layout (moved from bid_list.php)
   ========================= */
/* Local Structural Adjustments for Toolbar and Table inside App Shell */
.page-head {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-head .kicker {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-sub);
    text-transform: uppercase;
}

.page-head .metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.page-head .metric-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.page-head .metric-label {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 700;
}

.toolbar {
    display: flex;
    gap: 15px;
    align-items: stretch;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 6px 4px 18px;
    flex: 1;
    min-width: 300px;
}

.search-pill:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-pill .search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
}

.table-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    table-layout: fixed;
}

.table th {
    background: #f8fafc;
    padding: 14px 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-sub);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.table tr {
    cursor: pointer;
}

.table tr:hover td {
    background: #f8fafc;
}

.selected-row td {
    background: #f1f5f9;
}

/* Floating Action Bar */
.floating-action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 40px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 2500;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-action-bar.active {
    transform: translateX(-50%) translateY(0);
}

.floating-count {
    font-weight: 800;
    font-size: 15px;
    color: #fde68a;
}

.floating-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.floating-btn:hover {
    color: white;
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}