/* Tender / sebut harga listing. Inherits template palette with fallbacks. */
.tender { --td-line: var(--line,#DFE4EA); --td-navy: var(--navy-900,#062F5C);
          --td-blue: var(--navy-800,#0B4D8F); --td-ink: var(--ink-900,#12171F);
          --td-muted: var(--ink-600,#48525F); --td-soft: var(--bg-soft,#F5F7FA); }
.tender__title { font-size:1.75rem; color:var(--td-navy); margin-bottom:20px; }
.tender__filters { background:var(--td-soft); border:1px solid var(--td-line);
  border-radius:10px; padding:20px; margin-bottom:24px; }
.tender__row { display:grid; grid-template-columns:2fr 1fr; gap:12px; margin-bottom:16px; }
.tender__field label { display:block; font-size:.8125rem; font-weight:600; color:var(--td-muted); margin-bottom:5px; }
.tender__field input, .tender__field select { width:100%; min-height:42px; padding:8px 12px;
  font-size:.9375rem; font-family:inherit; border:1px solid var(--td-line); border-radius:6px; background:#fff; }
.tender__actions { display:flex; gap:10px; flex-wrap:wrap; }
.tender .btn { display:inline-flex; align-items:center; justify-content:center; min-height:42px;
  padding:10px 22px; border-radius:6px; font-weight:600; font-size:.9375rem;
  text-decoration:none; border:2px solid transparent; cursor:pointer; }
.tender .btn--primary { background:var(--td-blue); color:#fff; }
.tender .btn--primary:hover { background:var(--td-navy); }
.tender .btn--ghost-dark { border-color:var(--td-blue); color:var(--td-blue); background:none; }
.tender__count { margin:0 0 12px; color:var(--td-muted); font-size:.9375rem; }
.tender__empty { padding:28px; text-align:center; color:var(--td-muted);
  background:var(--td-soft); border:1px dashed var(--td-line); border-radius:10px; }
.tender__tablewrap { overflow-x:auto; }
.tender__table { width:100%; border-collapse:collapse; font-size:.875rem; }
.tender__table th, .tender__table td { text-align:left; padding:12px 14px;
  border-bottom:1px solid var(--td-line); vertical-align:top; }
.tender__table thead th { background:var(--td-navy); color:#fff; font-weight:600;
  font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; border-bottom:0; }
.tender__table tbody tr:hover { background:var(--td-soft); }
.tender__table tbody th { font-weight:700; color:var(--td-ink); }
.tender__status { display:inline-block; font-size:.6875rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.04em; padding:2px 9px; border-radius:999px; margin-left:8px; }
.tender__status.is-dibuka { background:#DDF3EF; color:#0B5F56; }
.tender__status.is-ditutup { background:#EEF1F4; color:#48525F; }
.tender__status.is-dibatalkan { background:#FDECEA; color:#7A1D12; }
.tender__status.is-diputuskan { background:#E3F0FF; color:#0B4D8F; }
.tender__nota { display:block; font-size:.75rem; color:var(--td-muted); margin-top:2px; }
.tender__pagination { margin-top:20px; }
.tender__pagination ul { display:flex; gap:6px; flex-wrap:wrap; list-style:none; padding:0; }
.tender__pagination a, .tender__pagination span { display:inline-flex; align-items:center;
  justify-content:center; min-width: 44px; min-height: 44px; padding:0 10px;
  border:1px solid var(--td-line); border-radius:6px; text-decoration:none; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
@media (max-width:900px){ .tender__row{ grid-template-columns:1fr; } }
/* Card layout at every width.

   The site wrapper caps this column at 808px, so seven columns never fit --
   the title cell wrapped to eight lines and the officer column spilled out of
   the container. A table was the wrong presentation for heterogeneous notices
   at this width, so the rows are laid out as cards instead.

   The <table>, <caption>, <th scope> and data-label markup is untouched: only
   the presentation changes, so screen-reader and keyboard behaviour is exactly
   as before. */
.tender__tablewrap { overflow-x:visible; }
.tender__table thead { display:none; }
.tender__table, .tender__table tbody, .tender__table tr,
.tender__table th, .tender__table td { display:block; }

/* The row itself is the grid: reference and title span the full width, the
   remaining cells flow into as many columns as fit. No wrapper element is
   needed, so the table markup stays valid. */
.tender__table tr {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px 18px; align-items:start;
  border:1px solid var(--td-line); border-left:4px solid var(--td-blue);
  border-radius:10px; background:#fff; padding:16px 18px; margin-bottom:14px;
}
.tender__table tbody tr:hover { background:#fff; border-color:var(--td-blue); }
.tender__table th, .tender__table td { border-bottom:0; padding:0; min-width:0; }

.tender__table td[data-label]::before, .tender__table th[data-label]::before {
  content:attr(data-label); display:block;
  font-size:.6875rem; font-weight:700; letter-spacing:.03em;
  color:var(--td-muted); margin-bottom:3px;
}

/* Reference: small line above the title, its label suppressed as redundant. */
.tender__table td.tender__c-ref {
  grid-column:1 / -1; font-size:.75rem; font-weight:600;
  letter-spacing:.02em; color:var(--td-muted);
}
.tender__table td.tender__c-ref::before { display:none; }

/* Title: the card heading. */
.tender__table th[scope="row"] {
  grid-column:1 / -1; font-size:1.0625rem; line-height:1.4;
  color:var(--td-navy); padding-bottom:12px; border-bottom:1px solid var(--td-line);
}
.tender__table th[scope="row"]::before { display:none; }

.tender__table td.tender__c-closing strong,
.tender__table td.tender__c-closing time { font-weight:700; color:var(--td-ink); }

/* Attachments as chips rather than a bulleted list squeezed into a cell. */
.tender__files { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.tender__files li { margin:0; }
.tender__files a {
  display:inline-flex; align-items:center; min-height:36px; padding:6px 12px;
  border:1px solid var(--td-line); border-radius:6px;
  color:var(--td-blue); text-decoration:none; font-size:.8125rem; background:#fff;
}
.tender__files a:hover { border-color:var(--td-blue); text-decoration:underline; }

/* Attachments and the contact officer each take a full row: chips and a
   name-plus-phone-plus-email block are unreadable squeezed into a 160px grid
   column. The three dates keep the auto-fit columns. */
.tender__table td.tender__c-files,
.tender__table td.tender__c-officer { grid-column:1 / -1; }
.tender__table td.tender__c-officer { padding-top:10px; border-top:1px solid var(--td-line); }

/* .page__main ul sets list-style:disc at (0,1,1) and outranks a single class,
   so the chip list keeps its markers unless scoped. Same trap as the
   breadcrumbs and the article attachments. */
.tender .tender__files { list-style:none; margin:0; padding:0; }

/* Single notice ------------------------------------------------------------
   Scoped under .tender so the palette variables above are in scope, and so the
   template's .page__main descendant rules (0,1,1) do not outrank these. */
.tender--single .notis__meta { margin-bottom:10px; }
.tender--single .notis__title { font-size:1.6rem; line-height:1.25; color:var(--td-navy); margin:0 0 16px; }

/* The closing date is the one fact a bidder came for, so it leads. */
.tender--single .notis__closing {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px;
  background:var(--td-soft); border-left:4px solid var(--td-blue);
  border-radius:0 6px 6px 0; padding:14px 18px; margin:0 0 24px;
}
.tender--single .notis__closing-label { font-size:.8125rem; font-weight:600; color:var(--td-muted); }
.tender--single .notis__closing strong { font-size:1.125rem; color:var(--td-ink); }
.tender--single .notis__nota { flex:1 0 100%; font-size:.8125rem; color:var(--td-muted); }

.tender--single .notis__facts {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:16px 24px; margin:0 0 28px;
  padding:18px 0; border-top:1px solid var(--td-line); border-bottom:1px solid var(--td-line);
}
.tender--single .notis__facts dt { font-size:.75rem; font-weight:700; letter-spacing:.02em; color:var(--td-muted); margin-bottom:4px; }
.tender--single .notis__facts dd { margin:0; font-size:.9375rem; color:var(--td-ink); }

.tender--single h2 { font-size:1.125rem; color:var(--td-navy); margin:0 0 12px; }
.tender--single .notis__body { margin-bottom:28px; }
.tender--single .notis__body p { margin:0 0 12px; }

.tender--single .notis__files { margin-bottom:28px; }
.tender--single .notis__files ul { list-style:none; margin:0; padding:0; }
.tender--single .notis__files li {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px;
  padding:12px 0; border-bottom:1px solid var(--td-line);
}
.tender--single .notis__files li:last-child { border-bottom:0; }
.tender--single .notis__filemeta { font-size:.75rem; color:var(--td-muted); }

.tender--single .notis__officer { margin-bottom:28px; }
.tender--single .notis__officer p { margin:0 0 4px; }
.tender--single .notis__pegawai { font-weight:600; }

.tender--single .notis__actions { margin:0; }

@media (max-width:620px) {
  .tender--single .notis__title { font-size:1.35rem; }
  .tender--single .notis__facts { grid-template-columns:1fr; gap:14px; }
}
