/* Bids - packages, vendor directory, tracking, review, leveling.
   (base styles from dashboard.css / projects.css; .sch-back/.sch-ghost
   reused from schedule.css conventions are redefined here standalone.) */

.bid-tab.active { color: var(--gold-bright); border-color: var(--gold-faint); }
.bid-badge { display: inline-block; min-width: 17px; text-align: center; background: #d4af5f; color: #1a1408; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 5px; margin-left: 4px; }

.bid-card { border: 1px solid var(--hair); border-radius: 14px; background: var(--panel); padding: 18px 20px 20px; margin-bottom: 14px; }
.bid-card h2 { margin: 0 0 6px; font-size: 18px; color: var(--text-hi); }
.bid-hint { font-size: 13px; color: var(--text-mid); line-height: 1.55; margin: 0 0 10px; }
.bid-dim { color: var(--text-dim); font-size: 12px; }
.bid-toolrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bid-runrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sch-ghost { background: none !important; color: var(--gold-bright) !important; border: 1px solid var(--hair) !important; }
.sch-back { display: inline-block; font-size: 13px; color: var(--gold-bright); text-decoration: none; margin-bottom: 8px; }
.sch-back:hover { text-decoration: underline; }

/* chips */
.bid-chip { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 8px; padding: 1px 7px; border: 1px solid var(--hair); color: var(--text-mid); }
.bid-chip.ok { color: #a9c8e3; border-color: rgba(142,167,194,0.4); }
.bid-chip.recd { color: #a9e3b8; border-color: rgba(92,138,73,0.55); }
.bid-chip.warn { color: #e0c274; border-color: rgba(212,175,95,0.55); background: rgba(212,175,95,0.12); }
.bid-chip.late { color: #f0b1ad; border-color: rgba(191,54,54,0.5); background: rgba(191,54,54,0.16); }
.bid-chip.gold { color: #1a1408; background: #d4af5f; border-color: #d4af5f; }

/* the sent/received ledger strip on a project's bids dashboard */
.bid-ledger { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bid-ledger > div { border: 1px solid var(--hair); border-radius: 12px; background: var(--panel); padding: 10px 18px; min-width: 108px; }
.bid-ledger b { display: block; font-size: 22px; color: var(--text-hi); }
.bid-ledger span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.bid-ledger .hot b { color: #e0c274; }
.bid-ledger .hot { border-color: rgba(212,175,95,0.5); }
.bid-ledger .warn b { color: #e0c274; }
.bid-ledger .bad b { color: #f0b1ad; }
.bid-ledger .bad { border-color: rgba(191,54,54,0.5); }

/* project tiles */
.bid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.bid-projtile { margin-bottom: 0; }
.bid-projtile .bid-pkg-top b { font-size: 17px; }

/* cost-code table (the project bids dashboard) */
.bid-cctable td { vertical-align: middle; }
.bid-cc { white-space: nowrap; width: 60px; color: var(--gold-bright); }
.bid-chips { max-width: 480px; }
.bid-vchip {
  display: inline-block; font-size: 11.5px; color: var(--text-mid); border: 1px solid var(--hair);
  border-radius: 999px; padding: 2px 10px; margin: 2px 3px 2px 0; white-space: nowrap;
}
.bid-vchip i { font-style: normal; color: var(--text-dim); font-size: 10.5px; }
.bid-vchip.seen { border-color: rgba(142,167,194,0.5); }
.bid-vchip.seen i { color: #a9c8e3; }
.bid-vchip.rev { border-color: rgba(212,175,95,0.6); background: rgba(212,175,95,0.1); }
.bid-vchip.rev i { color: #e0c274; }
.bid-vchip.recd { border-color: rgba(92,138,73,0.6); background: rgba(92,138,73,0.12); color: var(--text-hi); }
.bid-vchip.recd i { color: #a9e3b8; font-weight: 700; }
.bid-vchip.decl { opacity: 0.55; text-decoration: line-through; }
.bid-vchip.decl i { text-decoration: none; }
.bid-vchip.unsent { border-style: dashed; }
.bid-vchip.islate { box-shadow: inset 0 0 0 1px rgba(191,54,54,0.55); }

/* package list */
.bid-pkg { display: block; text-decoration: none; color: var(--text-mid); border: 1px solid var(--hair); border-radius: 14px; background: var(--panel); padding: 14px 16px; margin-bottom: 10px; transition: border-color .15s ease; }
.bid-pkg:hover { border-color: var(--gold-faint); }
.bid-pkg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bid-pkg-top b { color: var(--gold-bright); font-size: 15.5px; }
.bid-pkg-meta { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.bid-pkg-stats { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; }
.bid-scope { color: #c9c6bf; font-size: 13.5px; line-height: 1.6; border-left: 3px solid var(--gold-faint); padding-left: 12px; margin: 10px 0; }
.bid-file { display: inline-block; font-size: 12px; color: var(--gold-bright); border: 1px solid var(--hair); border-radius: 8px; padding: 2px 9px; margin: 2px 4px 2px 0; text-decoration: none; }
.bid-file button { background: none; border: 0; color: #d95753; cursor: pointer; font-size: 13px; }
.bid-filelist { margin-top: 6px; }
.bid-filerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bid-filerow input[type="file"] { font-size: 12.5px; color: var(--text-dim); max-width: 320px; }

/* forms */
.bid-formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; margin: 10px 0; }
.bid-formgrid.two { grid-template-columns: 1fr 1fr; }
.bid-formgrid label, .bid-block { display: block; font-size: 12px; color: var(--text-dim); }
.bid-block { margin: 10px 0; }
.bid-lbl { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.bid-formgrid input[type="text"], .bid-formgrid input[type="email"], .bid-formgrid input[type="tel"], .bid-formgrid input[type="date"],
.bid-block textarea, .bid-search {
  display: block; width: 100%; box-sizing: border-box; margin-top: 4px; font: inherit; font-size: 13.5px; color: var(--text-hi);
  background: rgba(0,0,0,0.2); border: 1px solid var(--hair); border-radius: 10px; padding: 9px 12px;
}
.bid-formgrid select { display: block; margin-top: 4px; width: 100%; }
.bid-vchip.draft { color: #ecc978; border-style: dashed; border-color: rgba(212,175,95,0.55); background: none; }
/* division-to-price toggles (built from the project's budget cost codes) */
.bid-divchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bid-divchip {
  -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit;
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--hair); background: rgba(18,20,24,0.55); color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.bid-divchip:hover { color: var(--text-mid); border-color: var(--gold-faint); }
.bid-divchip.on { color: var(--gold-bright); border-color: var(--gold-line); background: rgba(212,175,95,0.13); font-weight: 600; }
.bid-divchip.on::before { content: "✓ "; }
.bid-divchip b { color: inherit; margin-right: 4px; }
/* preview modal: the sub's email, rendered exactly as it will send */
.bid-pv-frame { width: 100%; height: 62vh; border: 1px solid var(--hair); border-radius: 12px; background: #24272c; }
.bid-pv-subj { font-size: 13px; color: var(--text-mid); margin: 8px 0 10px; }
.bid-pv-subj b { color: var(--text-hi); }
.bid-pv-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.bid-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-mid); padding: 6px 0; }
.bid-check input { accent-color: #d4af5f; width: 15px; height: 15px; }
.bid-search { max-width: 380px; margin: 0; }

/* tables */
.bid-tablewrap { overflow-x: auto; }
.bid-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text-mid); }
.bid-table th { text-align: left; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); padding: 8px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.bid-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
.bid-table td b { color: var(--text-hi); }
.bid-status { line-height: 1.9; }
.bid-amt { white-space: nowrap; font-size: 14px; }
.bid-actions { white-space: nowrap; text-align: right; }
.bid-mini { font: inherit; font-size: 11.5px; color: var(--text-mid); background: none; border: 1px solid var(--hair); border-radius: 8px; padding: 3px 9px; cursor: pointer; margin-left: 5px; }
.bid-mini:hover { border-color: var(--gold-faint); color: var(--gold-bright); }
.bid-mini.gold { color: #1a1408; background: #d4af5f; border-color: #d4af5f; font-weight: 700; }
.bid-mini.danger:hover { border-color: #d95753; color: #d95753; }
.bid-table.lvl tr.low td { background: rgba(92,138,73,0.12); }
.bid-table.lvl tr.unrev td { opacity: 0.55; }
.bid-table.lvl a { color: var(--gold-bright); }

/* review + inbox */
.bid-review { border: 1px dashed var(--gold-faint); border-radius: 10px; padding: 12px 14px; margin: 4px 0 10px; }
.bid-review a { color: var(--gold-bright); }
.bid-preview { font-size: 12px; color: var(--text-dim); background: rgba(0,0,0,0.18); border-radius: 8px; padding: 8px 10px; margin: 8px 0; white-space: pre-wrap; max-height: 110px; overflow: hidden; }
.bid-inboxitem b { color: var(--text-hi); }

/* vendor picker on a package */
.bid-venpick { border: 1px solid var(--hair); border-radius: 10px; padding: 12px 14px; margin-top: 12px; max-height: 380px; overflow-y: auto; }
.bid-venpick-trade { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-bright); margin: 10px 0 2px; }
.bid-venpick-trade:first-child { margin-top: 0; }

@media screen and (max-width: 700px) {
  .bid-card { padding: 14px; }
  .bid-formgrid.two { grid-template-columns: 1fr; }
  .bid-actions { white-space: normal; }
}

/* awards + document addenda + project status (v1.1.78) */
.bid-vchip.award { border-color: #d4af5f; background: rgba(212,175,95,0.18); color: var(--text-hi); }
.bid-vchip.award i { color: #ecc978; font-weight: 700; }
.bid-statusbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--hair); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; background: var(--panel); }
.bid-statusbar.on { border-style: solid; border-color: rgba(212,175,95,0.6); background: rgba(212,175,95,0.08); }
.bid-statusbar .bid-mini { margin-left: auto; }
.bid-award-box { border: 1px solid rgba(212,175,95,0.5); border-radius: 12px; padding: 12px 14px; background: rgba(212,175,95,0.06); margin: 8px 0; display: grid; gap: 8px; }
.bid-award-box label { display: block; font-size: 12px; color: var(--text-mid); }
.bid-award-box input[type=text], .bid-award-box textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--hair); background: rgba(255,255,255,.04); color: var(--text); }
.bid-award-box .bid-check { font-size: 13px; }
.bid-table tr.awarded td { background: rgba(212,175,95,0.10); }
.bid-addenda { font-size: 12.5px; color: var(--text-mid); margin-top: 8px; }
.bid-addenda li { margin: 3px 0; }
.bid-tile-active { color: #1a1408; background: #d4af5f; border-color: #d4af5f; }
