/**
 * 파일 경로: /assets/css/bids.css
 * 파일명: bids.css
 * 설명: 공개 입찰공고 목록/상세 레이아웃과 상태·관심·즐겨찾기 UI 스타일
 */

:root { --bids-max: 1180px; }

.bids-page,
.bid-detail-page { background: var(--bg); }

.bids-hero,
.bid-detail-head { padding: 34px 0 18px; }

.bids-title-row { margin-bottom: 4px; }
.bids-title-row h1 { margin: 0 !important; }
.bids-hero p,
.bid-detail-head p { margin: 0; color: var(--muted); font-size: 11px; }

.bids-content { padding: 0 0 70px; }

/* 비로그인 회원안내 박스의 시각 스타일은 ui-system.css 공통 컴포넌트를 사용 */
.bid-card.is-member-required { cursor: pointer; }
.bids-table tr[data-bid-member-required="1"] { cursor: pointer; }

.bids-filter {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.bids-filter-row { min-width: 0; }
.bids-filter-row-primary {
    display: grid;
    grid-template-columns: minmax(150px, .9fr) minmax(150px, .9fr) minmax(150px, .9fr) minmax(0, 3.3fr);
    gap: 12px;
    align-items: end;
}
.bids-filter-row-primary.is-without-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bids-filter-row-date {
    display: grid;
    grid-template-columns: minmax(150px, .9fr) minmax(0, 4.1fr);
    gap: 12px;
    align-items: end;
}
.bids-filter-row-search { min-width: 0; }
.bids-filter-field { min-width: 0; }
.bids-filter label,
.bids-per-page-form label { display: block; margin-bottom: 6px; font-weight: 800; }
.bids-filter select,
.bids-filter input,
.bids-per-page-form select {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--text);
}
.bids-filter select:disabled { opacity: .55; }

.bids-check-select {
    position: relative;
    min-width: 0;
}
.bids-check-select-toggle {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.bids-check-select-toggle:hover,
.bids-check-select-toggle:focus-visible {
    border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
    outline: none;
}
.bids-check-select-toggle > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bids-check-select-arrow {
    flex: 0 0 auto;
    margin-right: 1px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1;
}
.bids-check-select-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 5px);
    left: 0;
    width: max(100%, 210px);
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
.bids-check-select-panel[hidden] {
    display: none !important;
}
.bids-check-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0 !important;
    padding: 6px 8px;
    border-radius: 7px;
    color: var(--text);
    font-weight: 500 !important;
    cursor: pointer;
}
.bids-check-option:hover {
    background: var(--surface-2);
}
.bids-check-option.is-all {
    margin-bottom: 4px !important;
    border-bottom: 1px solid var(--line);
    border-radius: 7px 7px 0 0;
    font-weight: 800 !important;
}
.bids-filter .bids-check-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
    accent-color: #2563eb;
}
.bids-check-select.is-disabled .bids-check-select-toggle {
    cursor: not-allowed;
    opacity: .55;
    background: var(--surface-2);
}
.bids-status-filter { min-width: 0; }
.bids-status-filter-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: thin;
}
.bids-status-presets,
.bids-status-options {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.bids-status-divider {
    width: 1px;
    height: 22px;
    flex: 0 0 1px;
    background: var(--line);
}
.bids-status-preset,
.bids-status-option > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.bids-status-preset {
    font-family: inherit;
}
.bids-status-preset:hover,
.bids-status-option:hover > span {
    background: var(--surface-2);
    color: var(--text);
}
.bids-status-preset.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.bids-status-option {
    position: relative;
    display: inline-flex !important;
    margin: 0 !important;
    cursor: pointer;
}
.bids-filter .bids-status-option > input[type="checkbox"] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    margin: 0;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.bids-status-option > input[type="checkbox"]:checked + span {
    border-color: #15803d;
    background: #15803d;
    color: #fff;
}
.bids-status-option > input[type="checkbox"]:focus-visible + span,
.bids-status-preset:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
    outline-offset: 1px;
}
.bids-date-type-field {
    position: relative;
}
.bids-date-type-field::after {
    content: '▼';
    position: absolute;
    right: 12px;
    bottom: 15px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1;
    pointer-events: none;
}
.bids-date-type-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: none;
}

.bids-date-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bids-date-row > input[type="date"] { flex: 0 1 190px; min-width: 160px; }
.bids-date-separator { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.bids-quick-dates { display: flex; align-items: center; gap: 6px; margin-left: 2px; flex-wrap: wrap; }
.bids-date-quick { min-width: 58px; height: 42px; padding: 0 11px; }
.bids-filter-search { min-width: 0; }
.bids-search-row { display: flex; gap: 8px; }
.bids-search-row input[type="search"] { flex: 1 1 auto; min-width: 0; }
.bids-search-row input[type="hidden"] { display: none; }
.bids-search-row .btn { flex: 0 0 auto; min-width: 72px; height: 42px; }

.bids-result-head {
    display: flex; align-items: end; justify-content: space-between; gap: 14px;
    margin: 0 2px 10px;
}
.bids-result-head > div { display: flex; align-items: baseline; gap: 9px; }
.bids-result-head strong { font-size: 14px; }
.bids-result-head span { color: var(--muted); font-size: 11px; }
.bids-per-page-form { display: flex; align-items: center; gap: 8px; }
.bids-per-page-form label { margin: 0; color: var(--muted); white-space: nowrap; }
.bids-per-page-form select { width: 76px; height: 34px; padding: 0 9px; }

.bids-list { display: grid; gap: 9px; }
.bid-card {
    display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px;
    padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface); box-shadow: 0 7px 22px rgba(17,24,39,.045);
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.bid-card:hover,
.bid-card:focus-visible,
.bid-card:focus-within {
    border-color: #93b4f5;
    background: #eef4ff;
    box-shadow: inset 4px 0 0 #2563eb,
                0 7px 20px rgba(15, 23, 42, .07);
}

[data-theme="dark"] .bid-card:hover,
[data-theme="dark"] .bid-card:focus-visible,
[data-theme="dark"] .bid-card:focus-within {
    border-color: #3b82f6;
    background: #17243a;
    box-shadow: inset 4px 0 0 #60a5fa,
                0 7px 20px rgba(0, 0, 0, .22);
}
.bid-card-main { min-width: 0; }
.bid-card-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.bid-category,
.bid-status,
.bid-deadline {
    display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px;
    border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap;
}
.bid-category { background: var(--brand-soft); color: var(--brand); }
.bid-status { background: var(--surface-2); color: var(--muted); }
.bid-status.is-open { background: color-mix(in srgb, #16a34a 12%, var(--surface)); color: #15803d; }
.bid-status.is-success { background: color-mix(in srgb, #2563eb 12%, var(--surface)); color: #2563eb; }
.bid-status.is-danger { background: color-mix(in srgb, #dc2626 11%, var(--surface)); color: #dc2626; }
.bid-deadline { margin-left: 2px; background: var(--surface-2); color: var(--muted); }
.bid-deadline.is-open { color: #2563eb; background: color-mix(in srgb, #2563eb 10%, var(--surface)); }
.bid-deadline.is-soon { color: #b45309; background: color-mix(in srgb, #f59e0b 13%, var(--surface)); }
.bid-deadline.is-closed { color: var(--muted); }
.bid-card-title { display: block; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bid-card:hover .bid-card-title,
.bid-card:focus-visible .bid-card-title,
.bid-card:focus-within .bid-card-title { color: #1d4ed8; }
[data-theme="dark"] .bid-card:hover .bid-card-title,
[data-theme="dark"] .bid-card:focus-visible .bid-card-title,
[data-theme="dark"] .bid-card:focus-within .bid-card-title { color: #3b82f6; }
.bid-card-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 6px; color: var(--muted); font-size: 10px; }
.bid-card-restriction { margin-top: 7px; color: var(--muted); font-size: 10px; }
.bid-card-side { display: grid; grid-template-columns: 1fr; align-content: center; gap: 5px; padding-left: 20px; border-left: 1px solid var(--line); }
.bid-price,
.bid-end,
.bid-remain-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bid-price span,
.bid-end span,
.bid-remain-row > span { color: var(--muted); font-size: 10px; }
.bid-price strong,
.bid-end strong,
.bid-remain-row .bid-remaining { margin-left: auto; text-align: right; }
.bid-price strong { font-size: 14px; }
.bid-end strong { font-size: 11px; }
.bid-composition { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.bid-composition strong { color: var(--text); }

.bids-empty {
    padding: 38px 20px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface); color: var(--muted); text-align: center; font-size: 12px;
}
.bids-empty.is-compact { border: 0; border-radius: 0; box-shadow: none; padding: 22px; background: transparent; }
.bids-not-found { margin-top: 32px; }
.bids-not-found .btn { margin-top: 14px; }

.bids-pagination { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; margin-top: 20px; }
.bids-pagination a {
    min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
    color: var(--text); font-size: 12px; font-weight: 750;
}
.bids-pagination a:hover:not(.is-current):not(.is-disabled) { border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); color: var(--brand); }
.bids-pagination a.is-current { border-color: var(--brand); background: var(--brand); color: #fff; }
.bids-pagination a.is-disabled { pointer-events: none; opacity: .4; }

.bid-back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 750; }
.bid-back-link:hover { color: var(--brand); }
.bid-detail-title-line { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.bid-detail-title-line > div:first-child { min-width: 0; }
.bid-detail-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding-top: 2px; }
.bid-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.bid-summary-grid article { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bid-summary-grid span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; }
.bid-summary-grid strong { display: block; margin-top: 4px; font-size: 14px; }

.bid-detail-content { padding-top: 0; }
.bid-detail-panels { display: grid; gap: 14px; }
.bid-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.bid-panel-head { padding: 15px 17px 12px; border-bottom: 1px solid var(--line); }
.bid-panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.bid-panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.bid-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.bid-detail-grid > div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bid-detail-grid > div:last-child { border-bottom: 0; }
.bid-detail-grid .is-wide { grid-column: 1 / -1; }
.bid-detail-grid dt,
.bid-school-info-grid dt { color: var(--muted); font-size: 10px; font-weight: 750; }
.bid-detail-grid dd,
.bid-school-info-grid dd { margin: 3px 0 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }

.bid-region-pills { display: flex; flex-wrap: wrap; gap: 7px; padding: 15px 17px; }
.bid-region-pills span { padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); color: var(--brand); font-size: 11px; font-weight: 800; }
.bid-info-note { margin: 15px 17px; padding: 11px 13px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.bid-qualification { margin: 0 17px 15px; padding-top: 13px; border-top: 1px dashed var(--line); }
.bid-qualification strong { font-size: 11px; }
.bid-qualification p { margin: 5px 0 0; font-size: 11px; line-height: 1.7; }

.bid-school-list { display: grid; gap: 12px; padding: 14px; }
.bid-school-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.bid-school-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bid-school-head strong { display: block; font-size: 13px; }
.bid-school-head span,
.bid-school-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.bid-school-categories { display: grid; }
.bid-category-section + .bid-category-section { border-top: 1px solid var(--line); }
.bid-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    background: color-mix(in srgb, var(--brand) 4%, var(--surface));
    border-bottom: 1px solid var(--line);
}
.bid-category-head strong { display: block; font-size: 12px; }
.bid-category-head span,
.bid-category-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.bid-meal + .bid-meal { border-top: 1px solid var(--line); }
.bid-meal summary,
.bid-school-info summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 15px; cursor: pointer; font-size: 11px; font-weight: 850; }
.bid-meal summary small { color: var(--muted); font-size: 10px; }
.bid-meal[open] summary { background: color-mix(in srgb, var(--brand) 2.5%, var(--surface)); }
.bid-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.bid-product-table,
.bid-result-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.bid-product-table th,
.bid-product-table td,
.bid-result-table th,
.bid-result-table td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 10px; }
.bid-product-table th,
.bid-result-table th { background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 850; }
.bid-product-table tbody tr:last-child td,
.bid-result-table tbody tr:last-child td { border-bottom: 0; }
.bid-product-name { min-width: 310px; white-space: normal; }
.bid-product-name strong { display: block; font-size: 11px; }
.bid-product-name span { display: block; margin-top: 3px; color: var(--muted); line-height: 1.5; }
.is-money { text-align: right !important; white-space: nowrap; }

.bid-school-info { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.bid-school-info summary { justify-content: flex-start; color: var(--muted); }
.bid-school-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); background: var(--surface); }
.bid-school-info-grid > div { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bid-school-info-grid .is-wide { grid-column: 1 / -1; }

.bid-file-list { display: grid; gap: 8px; padding: 14px; }
.bid-file-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.bid-file-item strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.bid-file-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.bid-file-item .btn { min-height: 34px; padding: 0 12px; font-size: 11px; }

.bid-price-pills { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 16px; }
.bid-price-pills span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 10px; font-weight: 750; }
.bid-price-pills span.is-selected { border-color: #d99c00; background: color-mix(in srgb, #f6c000 16%, var(--surface)); color: #9a6a00; }
.bid-price-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px dashed var(--line); }
.bid-price-summary > div { padding: 12px 16px; }
.bid-price-summary span { display: block; color: var(--muted); font-size: 10px; }
.bid-price-summary strong { display: block; margin-top: 3px; font-size: 13px; }
.bid-price-summary .is-lowest strong { color: #0b9f68; }
.bid-winner { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, #16a34a 12%, var(--surface)); color: #15803d; font-size: 9px; font-weight: 850; }

@media (max-width: 980px) {
    .bids-filter-row-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bids-status-filter { grid-column: 1 / -1; }
    .bids-filter-row-date { grid-template-columns: 1fr; }
    .bids-date-row { flex-wrap: wrap; }
    .bid-card { grid-template-columns: 1fr; gap: 12px; }
    .bid-card-side { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .bid-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bid-detail-grid,
    .bid-school-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bid-detail-grid > div:not(:last-child) { border-bottom: 1px solid var(--line); }
    .bid-price-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .bids-filter { padding: 14px; }
    .bids-check-select-panel {
        max-width: calc(100vw - 36px);
    }
    .bids-filter-row-primary { grid-template-columns: 1fr; }
    .bids-status-filter { grid-column: auto; }
    .bids-status-filter-line { height: auto; min-height: 42px; }
    .bids-date-row { display: grid; grid-template-columns: 1fr auto 1fr; }
    .bids-date-row > input[type="date"] { min-width: 0; width: 100%; }
    .bids-quick-dates { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-left: 0; }
    .bids-date-quick { width: 100%; min-width: 0; }
    .bids-search-row { display: grid; grid-template-columns: 1fr 1fr; }
    .bids-search-row input[type="search"] { grid-column: 1 / -1; }
    .bids-result-head { align-items: center; }
    .bid-detail-title-line,
    .bid-school-head,
    .bid-file-item { flex-direction: column; align-items: flex-start; }
    .bid-detail-statuses { justify-content: flex-start; }
    .bid-summary-grid,
    .bid-detail-grid,
    .bid-school-info-grid,
    .bid-price-summary { grid-template-columns: 1fr; }
    .bid-detail-grid .is-wide,
    .bid-school-info-grid .is-wide { grid-column: 1; }
    .bid-detail-grid > div { border-bottom: 1px solid var(--line) !important; }
    .bid-detail-grid > div:last-child { border-bottom: 0 !important; }
    .bid-file-item .btn { width: 100%; }
}

/* 입찰공고 보기 방식 */
.bids-result-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bids-view-toggle {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}
.bids-view-btn {
    width: 31px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.bids-view-btn:hover {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.bids-view-btn.is-active {
    color: var(--brand);
    background: var(--brand-soft);
}
.bids-view-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* 리스트 보기: 관리자 입찰공고 목록과 동일한 테이블 구성 */
.bids-table-view[hidden],
.bids-card-view[hidden] { display: none !important; }
.bids-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
}
.bids-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: auto;
    color: var(--text);
    font-size: 11px;
}
.bids-table th {
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 90%, var(--page-bg));
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}
.bids-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    line-height: 1.45;
}
.bids-table tbody tr:last-child td { border-bottom: 0; }
.bids-table tbody tr[data-href] { cursor: pointer; outline: none; }
.bids-table tbody tr[data-href] td {
    transition: background .15s ease, box-shadow .15s ease;
}

.bids-table tbody tr[data-href]:hover td,
.bids-table tbody tr[data-href]:focus td,
.bids-table tbody tr[data-href]:focus-within td {
    background: #eef4ff;
    box-shadow: inset 0 1px 0 #93b4f5,
                inset 0 -1px 0 #93b4f5;
}

.bids-table tbody tr[data-href]:hover td:first-child,
.bids-table tbody tr[data-href]:focus td:first-child,
.bids-table tbody tr[data-href]:focus-within td:first-child {
    box-shadow: inset 4px 0 0 #2563eb,
                inset 0 1px 0 #93b4f5,
                inset 0 -1px 0 #93b4f5;
}

.bids-table tbody tr[data-href]:hover td:last-child,
.bids-table tbody tr[data-href]:focus td:last-child,
.bids-table tbody tr[data-href]:focus-within td:last-child {
    box-shadow: inset -1px 0 0 #93b4f5,
                inset 0 1px 0 #93b4f5,
                inset 0 -1px 0 #93b4f5;
}

[data-theme="dark"] .bids-table tbody tr[data-href]:hover td,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus td,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus-within td {
    background: #17243a;
    box-shadow: inset 0 1px 0 #3b82f6,
                inset 0 -1px 0 #3b82f6;
}

[data-theme="dark"] .bids-table tbody tr[data-href]:hover td:first-child,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus td:first-child,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus-within td:first-child {
    box-shadow: inset 4px 0 0 #60a5fa,
                inset 0 1px 0 #3b82f6,
                inset 0 -1px 0 #3b82f6;
}

[data-theme="dark"] .bids-table tbody tr[data-href]:hover td:last-child,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus td:last-child,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus-within td:last-child {
    box-shadow: inset -1px 0 0 #3b82f6,
                inset 0 1px 0 #3b82f6,
                inset 0 -1px 0 #3b82f6;
}

.bid-table-name strong {
    font-size: 13px;
    transition: color .15s ease;
}

.bids-table tbody tr[data-href]:hover .bid-table-name strong,
.bids-table tbody tr[data-href]:focus .bid-table-name strong,
.bids-table tbody tr[data-href]:focus-within .bid-table-name strong {
    color: #1d4ed8;
}

[data-theme="dark"] .bids-table tbody tr[data-href]:hover .bid-table-name strong,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus .bid-table-name strong,
[data-theme="dark"] .bids-table tbody tr[data-href]:focus-within .bid-table-name strong {
    color: #3b82f6;
}
.bids-table strong { color: var(--text); font-weight: 800; }
.bid-table-name { min-width: 300px; white-space: normal; }
.bid-table-sub {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}
.bid-table-region {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}
.bid-table-org {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
}
.bid-table-money { text-align: right !important; white-space: nowrap; }

/* 리스트형 기초가격: 좁게/넓게 보기 공통 굵기 제거 */
.bids-page .bids-table .bid-table-money strong {
    font-weight: 400;
}

.bid-table-composition { color: var(--muted); white-space: nowrap; }
.bid-table-composition strong { color: var(--text); }
.bid-table-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}
.bids-table .bid-status-success,
.bids-table .is-success { background: color-mix(in srgb, #16a34a 12%, transparent); color: #16a34a; }
.bids-table .bid-status-warning,
.bids-table .is-warning { background: color-mix(in srgb, #d97706 12%, transparent); color: #d97706; }
.bids-table .bid-status-danger,
.bids-table .is-danger { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }
.bids-table-empty { padding: 34px !important; text-align: center; color: var(--muted); }

@media (max-width: 680px) {
    .bids-result-head { align-items: flex-end; }
    .bids-result-tools { gap: 6px; }
    .bids-per-page-form label { display: none; }
    .bids-table-wrap { border-radius: 11px; }
}


/* 입찰 원천 상태별 배지 */
.bid-status.is-notice,
.bid-table-status.is-notice {
    background: color-mix(in srgb, #2563eb 13%, var(--surface));
    color: #2563eb;
}
.bid-status.is-progress,
.bid-table-status.is-progress {
    background: color-mix(in srgb, #16a34a 13%, var(--surface));
    color: #15803d;
}
.bid-status.is-rebid,
.bid-table-status.is-rebid {
    background: color-mix(in srgb, #0ea5e9 13%, var(--surface));
    color: #0369a1;
}
.bid-status.is-success,
.bid-table-status.is-success {
    background: color-mix(in srgb, #7c3aed 12%, var(--surface));
    color: #7c3aed;
}
.bid-status.is-failed,
.bid-table-status.is-failed {
    background: color-mix(in srgb, #d97706 13%, var(--surface));
    color: #b45309;
}
.bid-status.is-danger,
.bid-table-status.is-danger {
    background: color-mix(in srgb, #dc2626 12%, var(--surface));
    color: #dc2626;
}
.bid-status.is-neutral,
.bid-table-status.is-neutral {
    background: var(--surface-2);
    color: var(--muted);
}

/* 마감까지 남은 시간 */
.bid-remaining {
    display: block;
    font-size: 9px;
    line-height: 1.35;
    font-weight: 850;
    white-space: nowrap;
}
.bid-card .bid-remaining { margin-top: 0; font-size: 11px; }
.bid-table-deadline .bid-remaining { margin-bottom: 3px; }
.bid-remaining.is-safe { color: #2563eb; }
.bid-remaining.is-near { color: #15803d; }
.bid-remaining.is-soon { color: #d97706; }
.bid-remaining.is-urgent { color: #dc2626; }


/* 품목 부류 배지: 카드/리스트 공통 */
.bid-category.is-agricultural {
    background: color-mix(in srgb, #16a34a 13%, var(--surface));
    color: #15803d;
}
.bid-category.is-seafood {
    background: color-mix(in srgb, #0284c7 13%, var(--surface));
    color: #0369a1;
}
.bid-category.is-livestock {
    background: color-mix(in srgb, #ea580c 13%, var(--surface));
    color: #c2410c;
}
.bid-category.is-industrial {
    background: color-mix(in srgb, #2563eb 13%, var(--surface));
    color: #2563eb;
}
.bid-category.is-etc {
    background: color-mix(in srgb, #64748b 13%, var(--surface));
    color: #64748b;
}

/* 리스트형 컬럼 제목 가운데 정렬 */
.bids-table thead th:nth-child(6),
.bids-table thead th:nth-child(7) {
    text-align: center;
}

/* 야간모드 페이지 영문 제목 배지 가독성 */
html[data-theme="dark"] .bids-title-row .eyebrow {
    background: rgba(37, 99, 235, .18) !important;
    color: #93c5fd !important;
}

/* =========================================================
 * 2026-08-18 Stage 4: bid notice compact/wide typography
 * - public bid list + detail only (admin/header navigation excluded)
 * - compact: current bid-page typography +1px
 * - wide (1500px): one additional step up + roomier controls/cards
 * - tablet/mobile: compact density remains the baseline
 * ========================================================= */

/* page title / description */
.bids-page .bids-title-row h1 {
    font-size: 25px !important;
}
.bid-detail-page .bids-title-row h1 {
    font-size: 20px !important;
}
.bids-page .bids-title-row .eyebrow,
.bid-detail-page .bids-title-row .eyebrow {
    font-size: 11px !important;
}
.bids-page .bids-hero > .site-container > p,
.bid-detail-page .bid-detail-head p {
    font-size: 12px;
}

/* filters / result tools */
.bids-page .bids-date-separator { font-size: 13px; }
.bids-page .bids-result-head strong { font-size: 15px; }
.bids-page .bids-result-head span { font-size: 12px; }

/* cards */
.bids-page .bid-category,
.bids-page .bid-status,
.bids-page .bid-deadline {
    font-size: 11px;
}
.bids-page .bid-card-title { font-size: 13px; }
.bids-page .bid-card-meta,
.bids-page .bid-card-restriction,
.bids-page .bid-price span,
.bids-page .bid-end span,
.bids-page .bid-remain-row > span,
.bids-page .bid-composition {
    font-size: 11px;
}
.bids-page .bid-price strong { font-size: 15px; }
.bids-page .bid-end strong,
.bids-page .bid-card .bid-remaining { font-size: 12px; }
.bids-page .bids-empty { font-size: 13px; }
.bids-page .bids-pagination a { font-size: 13px; }

/* list table */
.bids-page .bids-table { font-size: 12px; }
.bids-page .bids-table th { font-size: 11px; }
.bids-page .bid-table-name strong { font-size: 13px; }
.bids-page .bid-table-sub,S
.bids-page .bid-table-region { font-size: 11px; }
.bids-page .bid-table-status { font-size: 10px; }
.bids-page .bid-remaining { font-size: 10px; }

/* detail */
.bid-detail-page .bid-back-link { font-size: 12px; }
.bid-detail-page .bid-status,
.bid-detail-page .bid-deadline { font-size: 11px; }
.bid-detail-page .bid-summary-grid span { font-size: 11px; }
.bid-detail-page .bid-summary-grid strong { font-size: 15px; }
.bid-detail-page .bid-panel-head h2 { font-size: 15px; }
.bid-detail-page .bid-panel-head p { font-size: 11px; }
.bid-detail-page .bid-detail-grid dt,
.bid-detail-page .bid-school-info-grid dt { font-size: 11px; }
.bid-detail-page .bid-detail-grid dd,
.bid-detail-page .bid-school-info-grid dd { font-size: 13px; }
.bid-detail-page .bid-region-pills span,
.bid-detail-page .bid-info-note,
.bid-detail-page .bid-qualification strong,
.bid-detail-page .bid-qualification p { font-size: 12px; }
.bid-detail-page .bid-school-head strong { font-size: 14px; }
.bid-detail-page .bid-school-head span,
.bid-detail-page .bid-school-head small,
.bid-detail-page .bid-category-head span,
.bid-detail-page .bid-category-head small,
.bid-detail-page .bid-meal summary small { font-size: 11px; }
.bid-detail-page .bid-category-head strong { font-size: 13px; }
.bid-detail-page .bid-meal summary,
.bid-detail-page .bid-school-info summary { font-size: 12px; }
.bid-detail-page .bid-product-table td,
.bid-detail-page .bid-result-table td { font-size: 11px; }
.bid-detail-page .bid-product-table th,
.bid-detail-page .bid-result-table th { font-size: 10px; }
.bid-detail-page .bid-product-name strong { font-size: 12px; }
.bid-detail-page .bid-price-pills span { font-size: 11px; }
.bid-detail-page .bid-price-summary span { font-size: 11px; }
.bid-detail-page .bid-price-summary strong { font-size: 14px; }
.bid-detail-page .bid-winner { font-size: 10px; }

@media (min-width: 901px) {
    /* common title scale for wide view */
    html[data-layout="wide"] .bids-page .bids-title-row h1 {
        font-size: 27px !important;
    }
    html[data-layout="wide"] .bid-detail-page .bids-title-row h1 {
        font-size: 22px !important;
    }
    html[data-layout="wide"] .bids-page .bids-title-row .eyebrow,
    html[data-layout="wide"] .bid-detail-page .bids-title-row .eyebrow {
        font-size: 12px !important;
    }
    html[data-layout="wide"] .bids-page .bids-hero > .site-container > p,
    html[data-layout="wide"] .bid-detail-page .bid-detail-head p {
        font-size: 13px;
    }

    /* filter area */
    html[data-layout="wide"] .bids-page .bids-filter {
        gap: 14px;
        padding: 20px;
    }
    html[data-layout="wide"] .bids-page .bids-filter-row-primary,
    html[data-layout="wide"] .bids-page .bids-filter-row-date {
        gap: 14px;
    }
    html[data-layout="wide"] .bids-page .bids-filter select,
    html[data-layout="wide"] .bids-page .bids-filter input,
    html[data-layout="wide"] .bids-page .bids-check-select-toggle {
        height: 46px;
        padding-left: 14px;
        padding-right: 14px;
}
    html[data-layout="wide"] .bids-page .bids-date-quick,
    html[data-layout="wide"] .bids-page .bids-search-row .btn {
        height: 46px;
}
    html[data-layout="wide"] .bids-page .bids-date-separator { font-size: 14px; }
    html[data-layout="wide"] .bids-page .bids-result-head strong { font-size: 16px; }
    html[data-layout="wide"] .bids-page .bids-result-head span { font-size: 13px; }
    html[data-layout="wide"] .bids-page .bids-per-page-form select {
        width: 84px;
        height: 36px;
}
    html[data-layout="wide"] .bids-page .bids-view-toggle { height: 36px; }
    html[data-layout="wide"] .bids-page .bids-view-btn { width: 32px; height: 30px; }
    html[data-layout="wide"] .bids-page .bids-view-btn svg { width: 18px; height: 18px; }

    /* card view */
    html[data-layout="wide"] .bids-page .bids-list { gap: 11px; }
    html[data-layout="wide"] .bids-page .bid-card {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 30px;
        padding: 20px 22px;
    }
    html[data-layout="wide"] .bids-page .bid-card-side { padding-left: 24px; }
    html[data-layout="wide"] .bids-page .bid-category,
    html[data-layout="wide"] .bids-page .bid-status,
    html[data-layout="wide"] .bids-page .bid-deadline {
        min-height: 26px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }
    html[data-layout="wide"] .bids-page .bid-card-title { font-size: 16px; }
    html[data-layout="wide"] .bids-page .bid-card-meta,
    html[data-layout="wide"] .bids-page .bid-card-restriction,
    html[data-layout="wide"] .bids-page .bid-price span,
    html[data-layout="wide"] .bids-page .bid-end span,
    html[data-layout="wide"] .bids-page .bid-remain-row > span,
    html[data-layout="wide"] .bids-page .bid-composition { font-size: 12px; }
    html[data-layout="wide"] .bids-page .bid-price strong { font-size: 16px; }
    html[data-layout="wide"] .bids-page .bid-end strong,
    html[data-layout="wide"] .bids-page .bid-card .bid-remaining { font-size: 13px; }

    /* table view */
    html[data-layout="wide"] .bids-page .bids-table {
        min-width: 1280px;
        font-size: 13px;
    }
    html[data-layout="wide"] .bids-page .bids-table th {
        padding: 13px 14px;
        font-size: 12px;
    }
    html[data-layout="wide"] .bids-page .bids-table td { padding: 14px; }
    html[data-layout="wide"] .bids-page .bid-table-name { min-width: 360px; }
    html[data-layout="wide"] .bids-page .bid-table-name strong { font-size: 15px; }
    html[data-layout="wide"] .bids-page .bid-table-sub,
    html[data-layout="wide"] .bids-page .bid-table-region { font-size: 12px; }
    html[data-layout="wide"] .bids-page .bid-table-status {
        min-height: 26px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 11px;
    }
    html[data-layout="wide"] .bids-page .bid-remaining { font-size: 11px; }
    html[data-layout="wide"] .bids-page .bids-pagination a {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* detail layout */
    html[data-layout="wide"] .bid-detail-page .bid-back-link { font-size: 13px; }
    html[data-layout="wide"] .bid-detail-page .bid-status,
    html[data-layout="wide"] .bid-detail-page .bid-deadline {
        min-height: 26px;
        font-size: 12px;
    }
    html[data-layout="wide"] .bid-detail-page .bid-summary-grid {
        gap: 12px;
        margin-top: 20px;
    }
    html[data-layout="wide"] .bid-detail-page .bid-summary-grid article { padding: 16px 17px; }
    html[data-layout="wide"] .bid-detail-page .bid-summary-grid span { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-summary-grid strong { font-size: 16px; }
    html[data-layout="wide"] .bid-detail-page .bid-detail-panels { gap: 16px; }
    html[data-layout="wide"] .bid-detail-page .bid-panel-head { padding: 17px 20px 14px; }
    html[data-layout="wide"] .bid-detail-page .bid-panel-head h2 { font-size: 16px; }
    html[data-layout="wide"] .bid-detail-page .bid-panel-head p { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-detail-grid > div { padding: 14px 18px; }
    html[data-layout="wide"] .bid-detail-page .bid-detail-grid dt,
    html[data-layout="wide"] .bid-detail-page .bid-school-info-grid dt { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-detail-grid dd,
    html[data-layout="wide"] .bid-detail-page .bid-school-info-grid dd { font-size: 14px; }
    html[data-layout="wide"] .bid-detail-page .bid-region-pills span,
    html[data-layout="wide"] .bid-detail-page .bid-info-note,
    html[data-layout="wide"] .bid-detail-page .bid-qualification strong,
    html[data-layout="wide"] .bid-detail-page .bid-qualification p { font-size: 13px; }
    html[data-layout="wide"] .bid-detail-page .bid-school-list { gap: 14px; padding: 16px; }
    html[data-layout="wide"] .bid-detail-page .bid-school-head { padding: 15px 18px; }
    html[data-layout="wide"] .bid-detail-page .bid-school-head strong { font-size: 15px; }
    html[data-layout="wide"] .bid-detail-page .bid-school-head span,
    html[data-layout="wide"] .bid-detail-page .bid-school-head small,
    html[data-layout="wide"] .bid-detail-page .bid-meal summary small { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-meal summary,
    html[data-layout="wide"] .bid-detail-page .bid-school-info summary {
        padding: 14px 18px;
        font-size: 13px;
    }
    html[data-layout="wide"] .bid-detail-page .bid-product-table,
    html[data-layout="wide"] .bid-detail-page .bid-result-table { min-width: 1120px; }
    html[data-layout="wide"] .bid-detail-page .bid-product-table td,
    html[data-layout="wide"] .bid-detail-page .bid-result-table td {
        padding: 12px 13px;
        font-size: 12px;
    }
    html[data-layout="wide"] .bid-detail-page .bid-product-table th,
    html[data-layout="wide"] .bid-detail-page .bid-result-table th { font-size: 11px; }
    html[data-layout="wide"] .bid-detail-page .bid-product-name strong { font-size: 13px; }
    html[data-layout="wide"] .bid-detail-page .bid-price-pills span { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-price-summary span { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-price-summary strong { font-size: 15px; }
    html[data-layout="wide"] .bid-detail-page .bid-winner { font-size: 11px; }
}

/* 좁게 보기 리스트형: 공고번호/마감일시 값 한 줄 유지 */
html:not([data-layout="wide"]) .bids-page .bids-table {
    min-width: 0;
    table-layout: fixed;
}
html:not([data-layout="wide"]) .bids-page .bids-table th:nth-child(1),
html:not([data-layout="wide"]) .bids-page .bids-table td:nth-child(1) { width: 6%; }
html:not([data-layout="wide"]) .bids-page .bids-table th:nth-child(2),
html:not([data-layout="wide"]) .bids-page .bids-table td:nth-child(2) {
    width: 13%;
    white-space: nowrap;
}
html:not([data-layout="wide"]) .bids-page .bids-table th:nth-child(3),
html:not([data-layout="wide"]) .bids-page .bids-table td:nth-child(3) { width: 12%; }
html:not([data-layout="wide"]) .bids-page .bids-table th:nth-child(4),
html:not([data-layout="wide"]) .bids-page .bids-table td:nth-child(4) { width: 50%; }
html:not([data-layout="wide"]) .bids-page .bids-table th:nth-child(5),
html:not([data-layout="wide"]) .bids-page .bids-table td:nth-child(5) { width: 10%; }
html:not([data-layout="wide"]) .bids-page .bids-table th:nth-child(6),
html:not([data-layout="wide"]) .bids-page .bids-table td:nth-child(6) { width: 13%; text-align: right; }
html:not([data-layout="wide"]) .bids-page .bids-table th:nth-child(7),
html:not([data-layout="wide"]) .bids-page .bids-table td:nth-child(7) { width: 8%; text-align: center; }
html:not([data-layout="wide"]) .bids-page .bid-table-deadline > span {
    display: block;
    white-space: nowrap;
}
html:not([data-layout="wide"]) .bids-page .bid-table-name {
    min-width: 0;
    width: auto;
}
html:not([data-layout="wide"]) .bids-page .bid-table-restriction-line .bid-table-sub {
    max-width: 500px;
}

/* =========================================================
   2026-08-19 입찰 상세 학교·끼니·품목 / 단가 입력 최종 정리
   - 현재 10열 구조만 유지
   - 과거 px 고정폭 / 8열 / 중복 override 제거
   ========================================================= */

.bid-detail-page .bid-products-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.bid-detail-page .bid-products-panel > .bid-panel-head {
    padding-left: 0;
    padding-right: 0;
    border-bottom: 0;
}

.bid-detail-page .bid-products-panel .bid-school-list {
    display: grid;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    gap: 16px;
    padding: 0 !important;
    margin: 0;
}

.bid-detail-page .bid-products-panel .bid-school-section {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.bid-detail-page .bid-products-panel .bid-school-head {
    padding: 15px 17px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
}

.bid-detail-page .bid-products-panel .bid-school-meals {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.bid-detail-page .bid-products-panel .bid-meal {
    border: 0;
}

.bid-detail-page .bid-products-panel .bid-meal + .bid-meal {
    border-top: 1px solid var(--line);
}

.bid-detail-page .bid-products-panel .bid-meal summary {
    padding: 12px 15px;
}

.bid-detail-page .bid-products-panel .bid-table-wrap {
    overflow-x: hidden;
    border-top: 1px solid var(--line);
}

/* 현재 10열:
   순번 / 식품코드 / 품목명 / 규격 / 단위 / 수량 /
   매입 단가 / 매출 단가 / 매입 합계 / 매출 합계 */
.bid-detail-page .bid-product-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.bid-detail-page .bid-product-table th:nth-child(1),
.bid-detail-page .bid-product-table td:nth-child(1) { width: 4%; text-align: center;}

.bid-detail-page .bid-product-table th:nth-child(2),
.bid-detail-page .bid-product-table td:nth-child(2) { width: 10%; text-align: center;}

.bid-detail-page .bid-product-table th:nth-child(3),
.bid-detail-page .bid-product-table td:nth-child(3) { width: 26%; }

.bid-detail-page .bid-product-table th:nth-child(4),
.bid-detail-page .bid-product-table td:nth-child(4) { width: 6%; text-align: center;}

.bid-detail-page .bid-product-table th:nth-child(5),
.bid-detail-page .bid-product-table td:nth-child(5) { width: 6%; text-align: center;}

.bid-detail-page .bid-product-table th:nth-child(6),
.bid-detail-page .bid-product-table td:nth-child(6) { width: 8%; text-align: center; }

.bid-detail-page .bid-product-table th:nth-child(7),
.bid-detail-page .bid-product-table td:nth-child(7),
.bid-detail-page .bid-product-table th:nth-child(8),
.bid-detail-page .bid-product-table td:nth-child(8) { width: 10%;}

.bid-detail-page .bid-product-table th:nth-child(9),
.bid-detail-page .bid-product-table td:nth-child(9){ width: 10%;}

.bid-detail-page .bid-product-table th:nth-child(10),
.bid-detail-page .bid-product-table td:nth-child(10) { width: 10%; padding-right: 16px;}

.bid-detail-page .bid-product-table th,
.bid-detail-page .bid-product-table td {
    vertical-align: middle;
}

.bid-detail-page .bid-product-table .is-price-head {
    text-align: center;
}

.bid-detail-page .bid-product-table th.is-money-head,
.bid-detail-page .bid-product-total {
    text-align: right;
}

.bid-detail-page .bid-product-name,
.bid-detail-page .bid-product-meta,
.bid-detail-page .bid-product-quantity {
    min-width: 0;
}

.bid-detail-page .bid-product-name {
    cursor: default;
}

/* 수량 0 경고: 크롤러 업로드는 허용하되 상세 화면에서 원본 확인이 필요함을 명확히 표시 */
.bid-detail-page .bid-inline-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    font-weight: 750;
    line-height: 1;
}

.bid-detail-page .bid-inline-quantity.is-zero {
    border-color: #f0a85a;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #f59e0b 10%, transparent);
}

.bid-detail-page .bid-product-name .bid-product-title,
.bid-detail-page .bid-product-meta > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bid-detail-page .bid-product-name .bid-product-title {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
}

.bid-detail-page .bid-product-description {
    display: none;
}

.bid-detail-page .bid-product-row {
    transition: background-color .14s ease, box-shadow .14s ease;
}

.bid-detail-page .bid-product-row:hover,
.bid-detail-page .bid-product-row:focus-within {
    background: #eef4ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

.bid-detail-page .bid-price-cell {
    text-align: center;
}

.bid-detail-page .bid-inline-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.bid-detail-page .bid-inline-price input {
    width: min(92px, calc(100% - 18px));
    min-width: 0;
    height: 31px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: #000;
    font: inherit;
    font-weight: 750;
    text-align: right;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease, color .14s ease;
}

.bid-detail-page .bid-inline-price.is-standard input { color: #8a94a3; }

/* 단가 미입력 강조: 실제 입력 가능한 빈 칸만 빨강 + 회색 계열로 표시 */
.bid-detail-page .bid-inline-price.is-empty input:not(:disabled) {
    border-color: #e5a6aa;
    background: #f6f1f2;
    color: #991b1b;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #dc2626 8%, transparent);
}
.bid-detail-page .bid-inline-price.is-empty input:not(:disabled)::placeholder {
    color: #b4232d;
    opacity: 1;
    font-weight: 800;
}
.bid-detail-page .bid-inline-price.is-empty input:not(:disabled):hover {
    border-color: #dc6b72;
    background: #fff1f2;
}
.bid-detail-page .bid-inline-price.is-empty input:not(:disabled):focus {
    border-color: #dc2626;
    background: #fff7f7;
    box-shadow: 0 0 0 2px color-mix(in srgb, #dc2626 18%, transparent);
}

.bid-detail-page .bid-inline-price input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px color-mix(in srgb, #3b82f6 18%, transparent);
}

.bid-detail-page .bid-inline-price input:disabled {
    cursor: not-allowed;
    opacity: .7;
    background: var(--surface-2);
}

.bid-detail-page .bid-inline-price input.is-saving { opacity: .7; }

.bid-detail-page .bid-inline-price > span {
    color: var(--muted);
    font-size: 10px;
}

.bid-detail-page .bid-product-total {
    padding-left: 4px;
    padding-right: 8px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.bid-hover-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: min(620px, calc(100vw - 24px));
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    pointer-events: none;
}

html[data-theme="dark"] .bid-detail-page .bid-product-row:hover,
html[data-theme="dark"] .bid-detail-page .bid-product-row:focus-within {
    background: #17243a;
    box-shadow: inset 3px 0 0 #60a5fa;
}

html[data-theme="dark"] .bid-detail-page .bid-inline-price input { color: var(--text); }
html[data-theme="dark"] .bid-detail-page .bid-inline-price.is-standard input { color: #94a3b8; }
html[data-theme="dark"] .bid-detail-page .bid-inline-quantity.is-zero {
    border-color: #d97706;
    background: color-mix(in srgb, var(--surface) 84%, #f59e0b 16%);
    color: #fbbf24;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #f59e0b 16%, transparent);
}
html[data-theme="dark"] .bid-detail-page .bid-inline-price.is-empty input:not(:disabled) {
    border-color: #7f3c43;
    background: #2a2227;
    color: #fecaca;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #f87171 10%, transparent);
}
html[data-theme="dark"] .bid-detail-page .bid-inline-price.is-empty input:not(:disabled)::placeholder {
    color: #fca5a5;
}
html[data-theme="dark"] .bid-detail-page .bid-inline-price.is-empty input:not(:disabled):hover {
    border-color: #b4535c;
    background: #33242a;
}
html[data-theme="dark"] .bid-detail-page .bid-inline-price.is-empty input:not(:disabled):focus {
    border-color: #f87171;
    background: #36252b;
    box-shadow: 0 0 0 2px color-mix(in srgb, #f87171 20%, transparent);
}

@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-products-panel .bid-school-head {
        padding: 17px 20px 14px;
    }

    html[data-layout="wide"] .bid-detail-page .bid-product-table th:nth-child(3),
    html[data-layout="wide"] .bid-detail-page .bid-product-table td:nth-child(3) {
        width: 30%;
    }

    html[data-layout="wide"] .bid-detail-page .bid-inline-price input {
        height: 34px;
    }

    html[data-layout="wide"] .bid-detail-page .bid-inline-price > span,
    html[data-layout="wide"] .bid-detail-page .bid-product-total {
        font-size: 11px;
    }

    html[data-layout="wide"] .bid-detail-page .bid-product-table th:nth-child(10),
    html[data-layout="wide"] .bid-detail-page .bid-product-table td:nth-child(10) {
        padding-right: 20px;
    }
}


/* 입찰 상세 손익 요약 */
.bid-detail-page .bid-profit-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}
.bid-detail-page .bid-profit-summary article {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.bid-detail-page .bid-profit-summary span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}
.bid-detail-page .bid-profit-summary strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-profit-summary { gap: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-profit-summary article { padding: 16px 17px; }
    html[data-layout="wide"] .bid-detail-page .bid-profit-summary span { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-profit-summary strong { font-size: 16px; }
}
@media (max-width: 680px) {
    .bid-detail-page .bid-profit-summary { grid-template-columns: 1fr 1fr; }
    .bid-detail-page .bid-profit-summary article:first-child { grid-column: 1 / -1; }
}

/* 손익 요약은 공고 상단 요약카드와 동일한 카드 스타일을 사용 */
.bid-detail-page .bid-profit-summary.bid-summary-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

/* 상단 요약카드 / 손익 요약카드 데이터 우측 정렬 */
.bid-detail-page .bid-summary-grid article strong,
.bid-detail-page .bid-profit-summary article strong {
    text-align: right;
}


/* 입찰 판단 요약 대시보드 */
.bid-detail-page .bid-decision-dashboard {
    overflow: visible;
}
.bid-detail-page .bid-decision-head {
    display: block;
}
.bid-detail-page .bid-decision-status {
    width: calc(100% - 34px);
    margin: 0 17px 18px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 88%, #2563eb 12%);
}
.bid-detail-page .bid-decision-status span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}
.bid-detail-page .bid-decision-status strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}
.bid-detail-page .bid-decision-status small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.bid-detail-page .bid-decision-status .bid-decision-zero-quantity {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid color-mix(in srgb, #f59e0b 30%, var(--line));
    color: #b45309;
    font-weight: 800;
}
html[data-theme="dark"] .bid-detail-page .bid-decision-status .bid-decision-zero-quantity {
    color: #fbbf24;
}

.bid-detail-page .bid-decision-status.is-positive {
    background: color-mix(in srgb, var(--surface) 86%, #16a34a 14%);
    border-color: color-mix(in srgb, var(--line) 72%, #16a34a 28%);
}
.bid-detail-page .bid-decision-status.is-warning {
    background: color-mix(in srgb, var(--surface) 86%, #f59e0b 14%);
    border-color: color-mix(in srgb, var(--line) 72%, #f59e0b 28%);
}
.bid-detail-page .bid-decision-status.is-danger {
    background: color-mix(in srgb, var(--surface) 86%, #ef4444 14%);
    border-color: color-mix(in srgb, var(--line) 72%, #ef4444 28%);
}
.bid-detail-page .bid-decision-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 17px 16px;
}
.bid-detail-page .bid-decision-card {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-2, color-mix(in srgb, var(--surface) 94%, #94a3b8 6%));
    box-shadow: var(--shadow);
    overflow: hidden;
}
.bid-detail-page .bid-decision-card > header {
    padding: 14px 15px 11px;
    border-bottom: 1px solid var(--line);
}
.bid-detail-page .bid-decision-card > header h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: -.01em;
}
.bid-detail-page .bid-decision-card > header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}
.bid-detail-page .bid-decision-card.is-market > header {
    background: color-mix(in srgb, var(--surface) 88%, #2563eb 12%);
}
.bid-detail-page .bid-decision-card.is-profit > header {
    background: color-mix(in srgb, var(--surface) 88%, #8b5cf6 12%);
}
.bid-detail-page .bid-decision-card.is-quality > header {
    background: color-mix(in srgb, var(--surface) 88%, #0f766e 12%);
}
.bid-detail-page .bid-decision-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}
.bid-detail-page .bid-decision-metrics.is-compact-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bid-detail-page .bid-decision-metrics.is-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bid-detail-page .bid-decision-metrics.is-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bid-detail-page .bid-decision-metrics article {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.bid-detail-page .bid-decision-metrics span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}
.bid-detail-page .bid-decision-metrics strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
}
.bid-detail-page .bid-decision-metrics strong.is-positive { color: #15803d; }
.bid-detail-page .bid-decision-metrics strong.is-danger { color: #dc2626; }
.bid-detail-page .bid-decision-metrics strong.is-warning { color: #b45309; }
.bid-detail-page .bid-decision-metrics strong.is-neutral { color: var(--text); }
.bid-detail-page .bid-decision-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 17px 18px;
}
.bid-detail-page .bid-decision-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, #94a3b8 8%);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}
@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-decision-status { width: calc(100% - 40px); margin: 0 20px 20px; padding: 15px 17px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-status span { font-size: 11px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-status strong { font-size: 19px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-status small { font-size: 12px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-sections { padding: 16px 20px 18px; gap: 16px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-card > header { padding: 16px 17px 13px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-card > header h3 { font-size: 15px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-card > header p { font-size: 11px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-metrics { padding: 16px; gap: 11px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-metrics article { padding: 14px 15px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-metrics span { font-size: 11px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-metrics strong { font-size: 17px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-notes { padding: 0 20px 20px; }
    html[data-layout="wide"] .bid-detail-page .bid-decision-note { font-size: 12px; }
}
@media (max-width: 1100px) {
    .bid-detail-page .bid-decision-metrics.is-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .bid-detail-page .bid-decision-status { width: calc(100% - 34px); margin: 0 17px 18px; }
    .bid-detail-page .bid-decision-metrics.is-cols-4,
    .bid-detail-page .bid-decision-metrics.is-cols-6,
    .bid-detail-page .bid-decision-metrics.is-compact-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .bid-detail-page .bid-decision-sections { padding: 12px 14px 14px; }
    .bid-detail-page .bid-decision-card > header { padding: 13px 14px 10px; }
    .bid-detail-page .bid-decision-metrics,
    .bid-detail-page .bid-decision-metrics.is-compact-3,
    .bid-detail-page .bid-decision-metrics.is-cols-4,
    .bid-detail-page .bid-decision-metrics.is-cols-6 { grid-template-columns: 1fr; padding: 12px; }
    .bid-detail-page .bid-decision-notes { padding: 0 14px 16px; }
    .bid-detail-page .bid-decision-status { width: calc(100% - 28px); margin: 0 14px 16px; }
}

/* 가상 복수예정가격 추천 */
.bid-detail-page .bid-virtual-price-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.bid-detail-page .bid-virtual-price-head > div:first-child { min-width: 0; }
.bid-detail-page .bid-virtual-price-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}
.bid-detail-page .bid-virtual-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
}
.bid-detail-page .bid-virtual-btn:disabled {
    cursor: not-allowed;
    opacity: .48;
}
.bid-detail-page .bid-virtual-price-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 12px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 10px;
}
@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-virtual-btn {
        min-height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }
    html[data-layout="wide"] .bid-detail-page .bid-virtual-price-meta { font-size: 11px; }
}
@media (max-width: 680px) {
    .bid-detail-page .bid-virtual-price-head { flex-direction: column; }
    .bid-detail-page .bid-virtual-price-actions { width: 100%; }
    .bid-detail-page .bid-virtual-btn { flex: 1 1 0; }
    .bid-detail-page .bid-virtual-price-meta { flex-direction: column; gap: 3px; }
}

/* 입찰 진행 공고 실제 투찰 전 확인 안내 */
.bid-detail-page .bid-final-check-notice {
    border-color: #f5d78e;
    background: #fffaf0;
}
.bid-detail-page .bid-final-check-notice-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
}
.bid-detail-page .bid-final-check-notice strong {
    flex: 0 0 auto;
    color: #9a6700;
    font-size: 11px;
    line-height: 1.55;
    white-space: nowrap;
}
.bid-detail-page .bid-final-check-notice p {
    margin: 0;
    color: #6b5a2b;
    font-size: 11px;
    line-height: 1.55;
}
html[data-theme="dark"] .bid-detail-page .bid-final-check-notice {
    border-color: rgba(245, 183, 58, .34);
    background: rgba(120, 78, 0, .14);
}
html[data-theme="dark"] .bid-detail-page .bid-final-check-notice strong { color: #f6c85f; }
html[data-theme="dark"] .bid-detail-page .bid-final-check-notice p { color: #d8c79a; }
@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-final-check-notice strong,
    html[data-layout="wide"] .bid-detail-page .bid-final-check-notice p { font-size: 12px; }
}
@media (max-width: 680px) {
    .bid-detail-page .bid-final-check-notice-inner {
        flex-direction: column;
        gap: 4px;
        padding: 14px 16px;
    }
}

/* 가상 복수예정가 / 실제 복수예정가 하단 4개 요약값 가운데 정렬 */
.bid-detail-page .bid-price-summary > div,
.bid-detail-page .bid-price-summary > div > span,
.bid-detail-page .bid-price-summary > div > strong {
    text-align: center;
}

/* =========================================================
   2026-08-19 첨부상품 -> 표준상품 매핑 V1
   ========================================================= */
/* 첨부상품 매핑 진입점: 식품코드 칸에서 상태 버튼으로 표시 */
.bid-detail-page .bid-product-code-cell {
    text-align: center;
}

.bid-detail-page .bid-product-description {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bid-detail-page .bid-product-mapping-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: #64748b;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.bid-detail-page .bid-product-mapping-btn.is-unmapped {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #b45309;
}

.bid-detail-page .bid-product-mapping-btn.is-mapped {
    border-color: #93b4f5;
    background: #eef4ff;
    color: #2563eb;
}

.bid-detail-page .bid-product-mapping-btn:hover,
.bid-detail-page .bid-product-mapping-btn:focus-visible {
    border-color: #2563eb;
    background: #eef4ff;
    color: #2563eb;
    outline: none;
}

html[data-theme="dark"] .bid-detail-page .bid-product-mapping-btn.is-unmapped {
    border-color: #d97706;
    background: #3a2a16;
    color: #fbbf24;
}

html[data-theme="dark"] .bid-detail-page .bid-product-mapping-btn.is-mapped,
html[data-theme="dark"] .bid-detail-page .bid-product-mapping-btn:hover,
html[data-theme="dark"] .bid-detail-page .bid-product-mapping-btn:focus-visible {
    border-color: #3b82f6;
    background: #17243a;
    color: #60a5fa;
}

.bid-mapping-dialog-foot [data-product-mapping-feedback].is-error {
    color: #dc2626;
    font-weight: 700;
}

.bid-mapping-dialog-foot [data-product-mapping-feedback].is-success {
    color: #15803d;
    font-weight: 700;
}

html[data-theme="dark"] .bid-mapping-dialog-foot [data-product-mapping-feedback].is-error {
    color: #f87171;
}

html[data-theme="dark"] .bid-mapping-dialog-foot [data-product-mapping-feedback].is-success {
    color: #4ade80;
}

html.is-bid-mapping-open,
html.is-bid-mapping-open body {
    overflow: hidden;
}

.bid-mapping-modal[hidden] {
    display: none !important;
}

.bid-mapping-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 22px;
}

.bid-mapping-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(2px);
}

.bid-mapping-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(900px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 44px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.bid-mapping-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid var(--line);
}

.bid-mapping-dialog-head h2 {
    margin: 0;
    font-size: 16px;
}

.bid-mapping-dialog-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.bid-mapping-close {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.bid-mapping-source {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.bid-mapping-source-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.bid-mapping-source-main strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bid-mapping-source-main span,
.bid-mapping-source-desc,
.bid-mapping-source-normalized {
    color: var(--muted);
    font-size: 10px;
}

.bid-mapping-source-desc {
    margin-top: 6px;
    line-height: 1.5;
}

.bid-mapping-source-normalized {
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bid-mapping-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
}

.bid-mapping-search input {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 11px;
    outline: none;
}

.bid-mapping-search input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px color-mix(in srgb, #3b82f6 17%, transparent);
}

.bid-mapping-results {
    display: grid;
    gap: 7px;
    min-height: 180px;
    overflow-y: auto;
    padding: 12px 20px 16px;
}

.bid-mapping-candidate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.bid-mapping-candidate:hover,
.bid-mapping-candidate.is-selected {
    border-color: #93b4f5;
    background: #eef4ff;
}

.bid-mapping-candidate.is-selected {
    box-shadow: inset 3px 0 0 #2563eb;
}

html[data-theme="dark"] .bid-mapping-candidate:hover,
html[data-theme="dark"] .bid-mapping-candidate.is-selected {
    border-color: #3b82f6;
    background: #17243a;
}

html[data-theme="dark"] .bid-mapping-candidate.is-selected {
    box-shadow: inset 3px 0 0 #60a5fa;
}

.bid-mapping-candidate input {
    margin-top: 3px;
}

.bid-mapping-candidate-main,
.bid-mapping-candidate-title {
    min-width: 0;
}

.bid-mapping-candidate-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bid-mapping-candidate-title strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bid-mapping-candidate-title em {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.bid-mapping-candidate-meta,
.bid-mapping-candidate-desc {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bid-mapping-empty {
    display: grid;
    min-height: 150px;
    place-items: center;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.bid-mapping-empty.is-error {
    color: #dc2626;
}

.bid-mapping-dialog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    border-top: 1px solid var(--line);
}

.bid-mapping-dialog-foot > span {
    color: var(--muted);
    font-size: 10px;
}

.bid-mapping-dialog-foot > div {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-product-mapping-btn {
        font-size: 10px;
    }
    html[data-layout="wide"] .bid-detail-page .bid-product-description {
        font-size: 11px;
    }

    html[data-layout="wide"] .bid-mapping-dialog-head h2 { font-size: 17px; }
    html[data-layout="wide"] .bid-mapping-dialog-head p,
    html[data-layout="wide"] .bid-mapping-search input,
    html[data-layout="wide"] .bid-mapping-empty { font-size: 12px; }
    html[data-layout="wide"] .bid-mapping-candidate-title strong { font-size: 13px; }
    html[data-layout="wide"] .bid-mapping-candidate-meta,
    html[data-layout="wide"] .bid-mapping-candidate-desc,
    html[data-layout="wide"] .bid-mapping-source-main span,
    html[data-layout="wide"] .bid-mapping-source-desc,
    html[data-layout="wide"] .bid-mapping-source-normalized,
    html[data-layout="wide"] .bid-mapping-dialog-foot > span { font-size: 11px; }
}

@media (max-width: 680px) {
    .bid-mapping-modal { padding: 10px; }
    .bid-mapping-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
    .bid-mapping-dialog-head,
    .bid-mapping-source,
    .bid-mapping-search,
    .bid-mapping-results,
    .bid-mapping-dialog-foot { padding-left: 14px; padding-right: 14px; }
    .bid-mapping-source-main,
    .bid-mapping-dialog-foot { align-items: flex-start; flex-direction: column; }
    .bid-mapping-dialog-foot > div { width: 100%; }
    .bid-mapping-dialog-foot .btn { flex: 1 1 0; }
}

/* =========================================================
   2026-08-20 사용자별 입찰공고 열람 표시
   - 열람한 공고의 배경색은 변경하지 않는다.
   - 별도 텍스트 배지 없이 공고 제목 오른쪽에 작은 눈 아이콘만 표시한다.
   - 카드형/리스트형 공통 아이콘 스타일을 사용한다.
   ========================================================= */
.bids-page .bid-viewed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    vertical-align: -2px;
    color: var(--muted);
    opacity: .72;
    flex: 0 0 auto;
}

.bids-page .bid-viewed-icon svg {
    display: block;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bids-page .bid-card-title .bid-viewed-icon,
.bids-page .bid-table-name strong .bid-viewed-icon {
    font-size: inherit;
}

html[data-theme="dark"] .bids-page .bid-viewed-icon {
    opacity: .78;
}

/* =========================================================
 * 2026-08-20 전체공고 목록: 열람 + 회사 관심 + 개인 즐겨찾기
 * - 별도 컬럼을 늘리지 않고 제목 오른쪽의 작은 아이콘 그룹으로 표시한다.
 * - 등록된 관심/즐겨찾기는 항상 보이고, 미등록 아이콘은 행/카드 hover 시 노출한다.
 * ========================================================= */
.bids-page .bid-card[data-href] {
    cursor: pointer;
}

.bids-page .bid-card-title,
.bids-page .bid-table-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.bids-page .bid-title-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bids-page .bid-title-flags {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.bids-page .bid-title-flags .bid-viewed-icon {
    margin-left: 0;
}

.bids-page .bid-list-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.bids-page .bid-list-action {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    opacity: 1;
    cursor: pointer;
    transition: color .14s ease, background .14s ease;
}

.bids-page .bid-list-action svg {
    display: block;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px;
    min-height: 15px;
    max-width: 15px;
    max-height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bids-page .bid-list-action:not(.is-active) {
    color: #6b7280;
}

.bids-page .bid-list-action.is-bookmark.is-active.is-review {
    color: #eab308;
}

.bids-page .bid-list-action.is-bookmark.is-active.is-interest {
    color: #38bdf8;
}

.bids-page .bid-list-action.is-bookmark.is-active svg {
    fill: currentColor;
}

.bids-page .bid-list-action:hover,
.bids-page .bid-list-action:focus-visible {
    opacity: 1 !important;
    background: color-mix(in srgb, currentColor 10%, transparent);
    outline: none;
}

html[data-theme="dark"] .bids-page .bid-list-action:not(.is-active) {
    color: #94a3b8;
}

html[data-theme="dark"] .bids-page .bid-list-action.is-bookmark.is-active.is-review {
    color: #facc15;
}

html[data-theme="dark"] .bids-page .bid-list-action.is-bookmark.is-active.is-interest {
    color: #7dd3fc;
}

.bids-page .bid-list-action:disabled {
    cursor: wait;
    opacity: .42 !important;
}

/* 관심/즐겨찾기 위치: 리스트는 제한지역 앞, 카드는 부류/진행상태 옆 */
.bids-page .bid-card-topline .bid-list-actions {
    margin-left: 2px;
}

.bids-page .bid-table-number-cell {
    white-space: nowrap;
}

.bids-page .bid-table-number {
    display: block;
    white-space: nowrap;
}

.bids-page .bid-table-restriction-line {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-bottom: 3px;
    white-space: nowrap;
}

.bids-page .bid-table-restriction-line .bid-list-actions {
    flex: 0 0 auto;
}

.bids-page .bid-table-restriction-line .bid-table-sub {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bids-page .bid-scope-notice {
    margin: 0 0 12px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

html[data-layout="wide"] .bids-page .bid-list-action {
    width: 22px;
    height: 22px;
}

html[data-layout="wide"] .bids-page .bid-list-action svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
}

html[data-layout="wide"] .bids-page .bid-scope-notice {
    font-size: 12px;
}

/* 넓게 보기 리스트형: 마감일시 / 상태 정렬 */
html[data-layout="wide"] .bids-page .bids-table th:nth-child(6),
html[data-layout="wide"] .bids-page .bids-table td:nth-child(6) {
    text-align: right;
}

html[data-layout="wide"] .bids-page .bids-table th:nth-child(7),
html[data-layout="wide"] .bids-page .bids-table td:nth-child(7) {
    text-align: center;
}


/* =========================================================
 * 2026-08-20 입찰 상세 상단 관심공고 / 즐겨찾기
 * - 진행상태·남은시간 옆 텍스트 버튼
 * - 회사 관심공고 / 사용자 즐겨찾기 기존 상태와 동일하게 토글
 * ========================================================= */
.bid-detail-page .bid-detail-statuses {
    align-items: center;
}

.bid-detail-page .bid-detail-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: #64748b;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}

.bid-detail-page .bid-detail-flag:hover,
.bid-detail-page .bid-detail-flag:focus-visible {
    border-color: #94a3b8;
    background: var(--surface-2);
    outline: none;
}

.bid-detail-page .bid-detail-flag.is-bookmark.is-active.is-review {
    border-color: #eab308;
    background: #facc15;
    color: #713f12;
}

.bid-detail-page .bid-detail-flag.is-bookmark.is-active.is-interest {
    border-color: #38bdf8;
    background: #e0f2fe;
    color: #075985;
}

.bid-detail-page .bid-detail-flag:disabled {
    cursor: wait;
    opacity: .65;
}

html[data-theme="dark"] .bid-detail-page .bid-detail-flag {
    color: #94a3b8;
}

html[data-theme="dark"] .bid-detail-page .bid-detail-flag.is-bookmark.is-active.is-review {
    border-color: #facc15;
    background: #ca8a04;
    color: #fff7cc;
}

html[data-theme="dark"] .bid-detail-page .bid-detail-flag.is-bookmark.is-active.is-interest {
    border-color: #7dd3fc;
    background: #0c4a6e;
    color: #e0f2fe;
}

@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-detail-flag {
        min-height: 26px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 11px;
    }
}

/* 참가 제한지역 > 기타 자격제한 전체 폭 사용 */
.bid-detail-page .bid-qualification {
    width: auto;
    max-width: none;
}
.bid-detail-page .bid-qualification p {
    width: 100%;
    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
}


/* 2026-08-27: 입찰공고 목록의 학교명/공고명 굵기 제거 */
.bids-page .bid-table-org,
.bids-page .bid-table-title-line,
.bids-page .bid-card-title {
    font-weight: 400;
}

/* 2026-08-27: 입찰 상세 페이지 실제 데이터 값 굵기 제거
   - 제목/라벨/상태 배지는 기존 강조 유지
   - 좁게/넓게 보기 공통 적용 */
.bid-detail-page .bid-summary-grid article strong,
.bid-detail-page .bid-detail-grid dd,
.bid-detail-page .bid-school-info-grid dd,
.bid-detail-page .bid-region-pills span,
.bid-detail-page .bid-school-head strong,
.bid-detail-page .bid-product-name .bid-product-title,
.bid-detail-page .bid-inline-price input,
.bid-detail-page .bid-inline-price.is-empty input:not(:disabled),
.bid-detail-page .bid-inline-price.is-empty input:not(:disabled)::placeholder,
.bid-detail-page .bid-product-total,
.bid-detail-page .bid-profit-summary strong,
.bid-detail-page .bid-decision-status strong,
.bid-detail-page .bid-decision-metrics strong,
.bid-detail-page .bid-price-pills span,
.bid-detail-page .bid-price-summary strong {
    font-weight: 400;
}

/* 2026-08-27: 입찰 상세 상단 제목을 공통 UI 제목 시스템에서 완전 분리 */
.bid-detail-page .bid-detail-notice-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.bid-detail-page .bid-detail-notice-title {
    min-width: 0;
    margin: 0;
    font-size: 20px !important;
    line-height: 1.28;
    letter-spacing: -.02em;
}

.bid-detail-page .bid-detail-notice-eyebrow {
    flex: 0 0 auto;
    margin: 0;
}

@media (min-width: 901px) {
    html[data-layout="wide"] .bid-detail-page .bid-detail-notice-title {
        font-size: 22px !important;
    }
}

@media (max-width: 680px) {
    .bid-detail-page .bid-detail-notice-title-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 6px 8px;
    }
}



/* =========================================================
 * 2026-09-05 낙찰공고 무료 서비스 후원 안내
 * - 낙찰 결과가 1건 이상일 때만 PHP에서 출력
 * ========================================================= */
.bids-page .bid-support-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 11px 14px;
    border: 1px solid color-mix(in srgb, #2563eb 22%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, #2563eb 5%, var(--surface));
    color: var(--text);
    line-height: 1.5;
}

.bids-page .bid-support-notice strong {
    flex: 0 0 auto;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.bids-page .bid-support-notice span {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
}

html[data-theme="dark"] .bids-page .bid-support-notice strong {
    color: #93c5fd;
}

html[data-layout="wide"] .bids-page .bid-support-notice strong {
    font-size: 13px;
}

html[data-layout="wide"] .bids-page .bid-support-notice span {
    font-size: 12px;
}

@media (max-width: 720px) {
    .bids-page .bid-support-notice {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .bids-page .bid-support-notice strong {
        white-space: normal;
    }
}

/* =========================================================
 * 2026-09-05 낙찰공고 후원 버튼 / 안내 모달
 * ========================================================= */
.bids-page .bid-support-notice-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.bids-page .bid-support-open-btn {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #2563eb;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.bids-page .bid-support-open-btn:hover,
.bids-page .bid-support-open-btn:focus-visible {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

html[data-layout="wide"] .bids-page .bid-support-open-btn {
    font-size: 12px;
}

html.has-bid-support-modal,
html.has-bid-support-modal body {
    overflow: hidden;
}

.bid-support-modal[hidden] {
    display: none !important;
}

.bid-support-modal {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: grid;
    place-items: center;
    padding: 20px;
}

.bid-support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.bid-support-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.bid-support-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 15px;
    border-bottom: 1px solid var(--line);
}

.bid-support-modal-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.bid-support-modal-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.bid-support-modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bid-support-modal-body {
    padding: 20px 22px;
    font-size: 13px;
    line-height: 1.7;
}

.bid-support-modal-body p {
    margin: 0 0 9px;
}

.bid-support-modal-body p:last-of-type {
    margin-bottom: 14px;
}

.bid-support-modal-note {
    margin-top: 12px;
    padding: 12px 13px;
    border: 1px solid color-mix(in srgb, #2563eb 20%, var(--line));
    border-radius: 9px;
    background: color-mix(in srgb, #2563eb 5%, var(--surface));
    color: var(--muted);
    font-size: 12px;
}

.bid-support-modal-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px 20px;
}

.bid-support-modal-confirm {
    min-width: 76px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

html[data-theme="dark"] .bid-support-modal-eyebrow {
    color: #93c5fd;
}

@media (max-width: 720px) {
    .bids-page .bid-support-notice-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .bids-page .bid-support-open-btn {
        width: 100%;
        margin-top: 5px;
    }

    .bid-support-modal {
        padding: 14px;
    }

    .bid-support-modal-head,
    .bid-support-modal-body {
        padding-left: 17px;
        padding-right: 17px;
    }

    .bid-support-modal-actions {
        padding-left: 17px;
        padding-right: 17px;
    }
}

/* =========================================================
 * 2026-09-05 후원 안내 관리자 설정 연동
 * - 안내는 낙찰공고 목록/페이지네이션 아래에 표시
 * - 계좌/정기후원 값이 있을 때만 해당 영역 표시
 * ========================================================= */
.bids-page .bids-pagination + .bid-support-notice,
.bids-page .bids-view-content + .bid-support-notice {
    margin-top: 14px;
}

.bid-support-method {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
}

.bid-support-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.bid-support-method-head strong {
    font-size: 12px;
    font-weight: 800;
}

.bid-support-account {
    display: grid;
    gap: 7px;
    margin: 0;
}

.bid-support-account > div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.bid-support-account dt {
    color: var(--muted);
    font-size: 11px;
}

.bid-support-account dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.bid-support-account-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.bid-support-account-number > span {
    overflow-wrap: anywhere;
}

.bid-support-copy-btn,
.bid-support-recurring-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #2563eb;
    border-radius: 7px;
    background: var(--surface);
    color: #2563eb;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.bid-support-copy-btn:hover,
.bid-support-copy-btn:focus-visible,
.bid-support-recurring-link:hover,
.bid-support-recurring-link:focus-visible {
    background: color-mix(in srgb, #2563eb 8%, var(--surface));
}

.bid-support-method-copy,
.bid-support-modal-copy {
    white-space: normal;
}

.bid-support-method-copy {
    margin: 0 0 10px !important;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

html[data-theme="dark"] .bid-support-copy-btn,
html[data-theme="dark"] .bid-support-recurring-link {
    color: #93c5fd;
    border-color: #60a5fa;
}

@media (max-width: 520px) {
    .bid-support-account > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .bid-support-account-number {
        align-items: stretch;
        flex-direction: column;
    }

    .bid-support-copy-btn,
    .bid-support-recurring-link {
        width: 100%;
    }
}

.bid-support-modal-dialog {
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
}

.bid-support-modal-head,
.bid-support-modal-actions {
    flex: 0 0 auto;
}

.bid-support-modal-body {
    min-height: 0;
    overflow-y: auto;
}


html[data-theme="dark"] .bids-status-preset.is-active {
    border-color: #3b82f6;
    background: #2563eb;
    color: #fff;
}

html[data-theme="dark"] .bids-status-option > input[type="checkbox"]:checked + span {
    border-color: #166534;
    background: #166534;
    color: #fff;
}


/* 멀티체크 드롭다운이 검색영역 바깥으로 자연스럽게 펼쳐지도록 허용 */
.bids-page .public-search-accordion:not(.is-collapsed) {
    overflow: visible;
}


/* 다크모드 날짜 입력 달력 아이콘 가독성 보정 */
html[data-theme="dark"] .bids-page input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.35);
    opacity: .9;
    cursor: pointer;
}
