/* Private tender desk: keep human notes and exact references readable. */
.participation-text { overflow-wrap:anywhere; }
.participation-text .participation-prose { white-space:pre-wrap; overflow-wrap:anywhere; }

/* Tender status line (2026-11-22): one card with the current step, the owner, the price and the next-step buttons. */
.tw-status-card { background:var(--card,#fff); border:1px solid var(--line,#d4e4ec); border-top:3px solid var(--brand,#0d7a9a);
  border-radius:12px; padding:18px 20px; margin:0 0 18px; display:grid; gap:14px; }
.tw-status-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:flex-start; }
.tw-status-head h2 { margin:0; font-size:22px; }
.tw-status-kicker { margin:0; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted,#5a7584); }
.tw-status-owner { display:grid; gap:2px; text-align:right; }
.tw-status-owner span { font-size:12px; color:var(--muted,#5a7584); }
.tw-status-line { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.tw-status-line li { padding:6px 12px; border-radius:999px; border:1px solid var(--line-strong,#bcd3de); background:#fff;
  color:var(--muted,#5a7584); font-size:13px; font-weight:600; }
.tw-status-line li.done { background:var(--teal-soft,#e8f4f7); border-color:var(--teal,#0d7a9a); color:var(--navy,#063d50); }
.tw-status-line li.current { background:var(--navy,#063d50); border-color:var(--navy,#063d50); color:#fff; }
.tw-status-line li.dropped { background:#7d95a1; border-color:#7d95a1; }
.tw-status-price { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:0; }
.tw-status-price div { border:1px solid var(--line,#d4e4ec); border-radius:9px; padding:8px 12px; }
.tw-status-price dt { font-size:12px; color:var(--muted,#5a7584); }
.tw-status-price dd { margin:2px 0 0; font-weight:600; overflow-wrap:anywhere; }
.tw-status-actions { display:flex; flex-wrap:wrap; gap:10px; }
.boq-form { max-width:900px; }
.boq-form [hidden] { display:none; }
.boq-source { display:flex; flex-wrap:wrap; gap:12px; }
.boq-source > div { min-width:0; }
.boq-source input, .boq-source select { max-width:100%; }
.boq-items { width:100%; table-layout:fixed; overflow-wrap:anywhere; }
.boq-items th:first-child { width:42%; }
.boq-items tbody th { text-align:left; font-weight:600; }
.boq-items input { min-width:0; width:100%; }
.boq-summary { display:grid; gap:12px; margin:16px 0; }
.boq-summary input { max-width:100px; }
.boq-manual { margin-top:20px; }
.boq-form button { margin-top:10px; }
.boq-mobile-label { display:none; }
@media(max-width:650px) {
  .boq-source { display:grid; }
  .boq-items, .boq-items tbody { display:block; }
  .boq-items thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .boq-items tr { display:grid; grid-template-columns:1fr 1fr; padding:8px; gap:4px 10px; border-bottom:1px solid var(--line,#d4e4ec); }
  .boq-items th:first-child { width:auto; grid-column:1/-1; }
  .boq-items td, .boq-items th { border:0; padding:4px; min-width:0; }
  .boq-mobile-label { display:block; color:var(--muted,#5a7584); font-size:12px; }
}
.tw-status-history summary { cursor:pointer; font-weight:600; color:var(--teal,#0d7a9a); }
@media (max-width:560px) { .tw-status-owner { text-align:left; } }

/* Site visit (2026-11-22): rule-based result from the read tender documents. */
.tw-site-visit { border:1px solid var(--line,#d4e4ec); border-left:3px solid var(--gold,#e8b84b); border-radius:9px;
  background:var(--card,#fff); padding:10px 14px; margin:0 0 16px; }
.tw-site-visit p { margin:0; }
.tw-site-visit blockquote { margin:6px 0 0; padding-left:10px; border-left:2px solid var(--line-strong,#bcd3de); color:var(--muted,#5a7584); }
.tw-annexures { border:1px solid var(--line,#d4e4ec); border-radius:12px; background:var(--card,#fff); padding:14px 18px; margin:0 0 16px; }
.tw-annexures h2 { margin:0 0 4px; font-size:18px; }
.tw-annexures .table-wrap { overflow-x:auto; }
.tw-annexures table { width:100%; border-collapse:collapse; font-size:13.5px; }
.tw-annexures th, .tw-annexures td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line,#d4e4ec); vertical-align:top; }

.tw-bid-prep { min-inline-size:0; overflow-wrap:anywhere; }
.tw-bid-prep details { margin-block:12px; border-block-end:1px solid var(--line,#d4e4ec); padding-block-end:10px; }
.tw-bid-prep summary { cursor:pointer; font-weight:600; padding-block:6px; }
.tw-bid-prep form { margin-block-start:12px; }
.tw-bid-status { display:inline-block; border-radius:4px; padding:2px 7px; font-weight:600; }
.tw-on-record { color:#1b5434; background:#deefdf; }
.tw-to-prepare, .tw-annexure-review textarea.tw-bid-blank { color:#603d09; background:#fff2d4; }
.tw-annexure-title { display:block; font-weight:400; }
.tw-annexure-review label { display:block; margin-block-start:10px; }
.tw-annexure-review textarea { box-sizing:border-box; inline-size:100%; max-inline-size:100%; }

.tw-bid-prep .tw-bid-table th[scope="row"] {
  background:var(--card,#fff);
  color:var(--ink,#172f43);
  font-size:inherit;
}
.tw-bid-cell-label { display:none; }

@media (max-width:760px) {
  .tw-bid-prep .tw-bid-table {
    display:block;
    background:transparent;
    border:0;
    border-radius:0;
    overflow:visible;
    position:relative;
  }
  .tw-bid-prep .tw-bid-table thead {
    position:absolute;
    inline-size:1px;
    block-size:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .tw-bid-prep .tw-bid-table tbody { display:grid; gap:10px; }
  .tw-bid-prep .tw-bid-table tbody tr {
    display:grid;
    min-inline-size:0;
    padding:12px;
    border:1px solid var(--line,#d4e4ec);
    border-radius:9px;
    background:var(--card,#fff);
  }
  .tw-bid-prep .tw-bid-table th[scope="row"] {
    display:block;
    padding:0 0 7px;
    font-size:14px;
  }
  .tw-bid-prep .tw-bid-table td {
    display:grid;
    grid-template-columns:minmax(4.25rem,29%) minmax(0,1fr);
    gap:8px;
    align-items:baseline;
    padding:5px 0;
    border:0;
  }
  .tw-bid-prep .tw-bid-table .tw-bid-unavailable { display:none; }
  .tw-bid-prep .tw-bid-table td a { margin:0; padding-block:3px; }
  .tw-bid-cell-label {
    display:block;
    color:var(--muted,#536577);
    font-size:12px;
    font-weight:650;
  }
}
.tw-buyer-drop {
  position: relative;
}
.tw-buyer-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.tw-buyer-drop:focus-within,
.tw-buyer-drop.is-dragged-over {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.tw-buyer-document-list li {
  overflow-wrap: anywhere;
}
.tw-workbench {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.tw-workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  flex-wrap: wrap;
}
.tw-workbench-head h2 { margin: 0; }
.tw-workbench-head p { margin: 4px 0 12px; }
.tw-workbench-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 0 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.tw-workbench-steps li { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.tw-workbench-steps li.done { background: var(--teal-soft); color: var(--navy); }
.tw-workbench-steps li[aria-current="step"] { background: var(--gold-soft); color: var(--navy); font-weight: 700; }
.tw-workbench-fold { margin-bottom: 12px; }
.tw-team-fold { margin-top: 12px; border-top: 1px solid var(--line); }
.tw-team-fold .tw-team-owner { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0; }
.tw-team-fold .tw-team-owner strong { color: var(--navy); }
.tw-team-fold .tw-action-menu { margin: 12px 0 4px; }
.tw-workbench-price [data-boq-result] button[type="submit"] { background: var(--gold); color: var(--navy); }
.tw-workbench-workbook { position: relative; }
.tw-workbench-workbook input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.tw-workbench-workbook:focus-within { outline: 2px solid var(--navy); outline-offset: 3px; }
.tw-workbench:has(.boq-manual[open]) .tw-workbench-price { display: none; }
.tw-workbench-price:has([data-boq-rate]) .tw-workbench-workbook {
  background: white;
  color: var(--navy);
}
@media (min-width: 601px) {
  .tw-workbench-price [data-boq-fragment] { display: grid; min-width: 0; gap: 8px; }
  .tw-workbench-price [data-boq-fragment] .tw-workbench-primary { grid-row: 1; justify-self: end; }
}
@media (max-width: 600px) {
  .tw-workbench-steps li { padding: 5px 7px; font-size: 0.82rem; }
  .tw-team-fold > summary { scroll-margin-block-end: 72px; }
  .tw-workbench:has(.tw-workbench-primary) { padding-bottom: 62px; }
  .tw-workbench-primary {
    position: fixed;
    z-index: 10;
    inset: auto 16px max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
  }
  .tw-workbench:has(.tw-team-fold[open]) { padding-bottom: 18px; }
  .tw-workbench:has(.tw-team-fold[open]) .tw-workbench-primary { position: static; width: auto; }
}

.tw-desk-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tw-desk-filters .chip { text-decoration: none; }
.tw-desk-filters [aria-current="page"] { background: var(--navy); color: white; }
.tw-desk-rows .tw-desk-row {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  overflow-wrap: anywhere;
}
.tw-desk-row h2 { font-size: 1rem; margin: 0 0 2px; }
.tw-desk-owner { display: flex; align-items: center; gap: 6px; }
.tw-owner-initial {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--navy);
  font-weight: 700;
}
.tw-price-wait { display: block; }
@media (max-width: 760px) {
  .tw-desk-rows .tw-desk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tw-desk-row > :first-child, .tw-desk-row > :last-child { grid-column: 1 / -1; }
  .tw-desk-row > :last-child > a { display: inline-flex; }
}
