/* Página /estado — layout fluido + secções */
.estado-page {
  padding: 28px 18px 72px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.estado-hero {
  padding: 28px 28px 24px;
  background:
    linear-gradient(135deg, rgba(28, 146, 189, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.estado-hero-copy { max-width: 52ch; margin-bottom: 22px; }
.estado-kicker {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.estado-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}
.estado-hero .muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.estado-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.estado-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.estado-form label.lbl { font-weight: 600; font-size: .88rem; color: var(--navy); }
.estado-form input {
  font: inherit; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; width: 100%;
}
.estado-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28, 146, 189, .12); }
.estado-form .btn { white-space: nowrap; }

.estado-results { min-width: 0; }

/* Resultado: grelha de painéis */
.estado-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.estado-board-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  align-items: start;
}
@media (min-width: 900px) {
  .estado-board-row.is-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.estado-panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  min-width: 0;
  box-sizing: border-box;
}
.estado-panel-body { min-width: 0; }
.estado-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.estado-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
}
.estado-panel-title .panel-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #e8f5fb; color: var(--teal-dark); font-size: 1.05rem;
}
.estado-panel-sub {
  margin: 4px 0 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.4;
}

.estado-summary { padding: 22px 24px; }
.estado-summary .result-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.estado-summary-title {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0;
}
.estado-summary-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.estado-summary-actions .btn { text-decoration: none; }
.estado-summary .ref {
  font-weight: 800; color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -.01em;
}

.estado-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.estado-meta-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f7fafc;
  border: 1px solid var(--line);
  min-width: 0;
}
.estado-meta-item span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.estado-meta-item strong {
  display: block;
  font-size: .95rem;
  color: var(--navy);
  word-break: break-word;
  line-height: 1.35;
}
.estado-meta-item.is-wide { grid-column: 1 / -1; }
.estado-meta-item.is-wide strong { font-weight: 600; white-space: pre-wrap; }

.result-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.result-row span:first-child { color: var(--muted); }

.timeline { margin-top: 4px; border-left: 2px solid var(--line); padding-left: 18px; }
.tl-item { position: relative; padding: 4px 0 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); border: 2px solid #fff;
}
.tl-item .tl-state { font-weight: 700; color: var(--navy); }
.tl-item .tl-date { font-size: .8rem; color: var(--muted); }
.tl-item .tl-note { font-size: .88rem; color: var(--text); }

/* Pitch agendado — cartão para o candidato */
.badge-pitch-agendado { background: linear-gradient(135deg, #e6f4fb 0%, #d4ecf5 100%); color: var(--teal-dark); font-weight: 800; }
.pitch-public-card {
  margin: 0; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%);
  border: 1.5px solid #d4ecf5; box-shadow: 0 4px 18px rgba(28, 146, 189, .08);
}
.pitch-public-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.pitch-public-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #1c92bd 0%, #157a9e 100%);
  color: #fff; display: grid; place-items: center; font-size: 1.3rem;
}
.pitch-public-head strong { display: block; font-size: 1.02rem; color: var(--navy); margin-bottom: 4px; }
.pitch-public-head span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.pitch-public-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.pitch-public-detail {
  padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.pitch-public-detail span { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.pitch-public-detail strong { font-size: 1.05rem; color: var(--navy); }
.pitch-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; font-size: .95rem; font-weight: 800;
  margin-bottom: 12px; text-decoration: none;
}
.pitch-public-link {
  display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted);
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.pitch-public-link a { color: var(--teal-dark); word-break: break-all; font-weight: 600; }
.pitch-public-mini { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.pitch-mini-sched { font-size: .84rem; color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pitch-mini-sched .bi { color: var(--teal); }
.pitch-mini-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 7px 12px; background: #f0f9fc; border: 1px solid #d4ecf5; border-radius: 6px;
  color: var(--teal-dark); font-size: .82rem; font-weight: 700; text-decoration: none;
}
.pitch-mini-link:hover { background: #e6f4fb; border-color: var(--teal); color: var(--navy); }

.not-found {
  text-align: center; padding: 40px 24px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.not-found .ico { font-size: 2.4rem; color: var(--muted); }
.not-found .ico .bi { line-height: 1; }
.not-found h3 { margin: 10px 0 6px; }

.pub-section { margin-top: 0; padding-top: 0; border-top: 0; }
.pub-section h3, .pub-section-title {
  margin: 0 0 12px; font-size: 1rem; color: var(--navy);
}
.pub-section h4 { margin: 0 0 6px; font-size: .92rem; color: var(--navy); }
.muted-sm { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.pub-mon-actions { margin: 14px 0; }
.field-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* Collapse procurement (auto fechado no mobile) */
.estado-collapse {
  padding: 0;
  overflow: hidden;
}
.estado-collapse > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  user-select: none;
}
.estado-collapse > summary::-webkit-details-marker { display: none; }
.estado-collapse-summary-main {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1;
}
.estado-collapse-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.estado-collapse-chevron {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: #f0f4f8; color: var(--navy);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.estado-collapse[open] > summary .estado-collapse-chevron {
  transform: rotate(180deg);
}
.estado-collapse-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}
.estado-collapse-hint {
  display: none;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 768px) {
  .estado-collapse:not([open]) .estado-collapse-hint { display: block; }
}
@media (min-width: 769px) {
  .estado-collapse.collapse-mobile > summary {
    cursor: default;
  }
  .estado-collapse.collapse-mobile > summary .estado-collapse-chevron {
    display: none;
  }
}

/* Listas + documentos com icon buttons */
.pub-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pub-list-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fafbfd;
  display: flex; flex-direction: column; gap: 6px;
}
.pub-list-item-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.pub-list-item-copy { min-width: 0; flex: 1; }
.pub-list-item strong { display: block; color: var(--navy); font-size: .9rem; }
.pub-list-item span { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.pub-list-item p { margin: 4px 0 0; font-size: .86rem; }
.pub-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.doc-actions {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap;
}
.btn.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: 8px;
}
.btn.btn-icon .bi { margin: 0; font-size: 1.05rem; line-height: 1; }
.btn.doc-btn { text-decoration: none; }
.btn.doc-btn:hover { text-decoration: none; border-color: var(--teal); color: var(--teal-dark); }

.pub-docs {
  margin: 6px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.pub-docs li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--muted); margin: 0;
}
.pub-docs .doc-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .estado-hero { padding: 22px 18px; }
  .estado-form { grid-template-columns: 1fr; }
  .estado-form .btn { width: 100%; }
  .estado-panel { padding: 16px; }
  .estado-collapse > summary { padding: 16px; }
  .estado-collapse-body { padding: 0 16px 16px; }
  .pitch-public-grid { grid-template-columns: 1fr; }
  .pub-list-grid { grid-template-columns: 1fr; }
}

/* Modal candidato */
.pub-modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center;
  justify-content: center; padding: 16px;
}
.pub-modal.hidden { display: none; }
.pub-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 42, 85, .45); backdrop-filter: blur(2px);
}
.pub-modal-panel {
  position: relative; width: min(640px, 100%); max-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 42, 85, .2);
  overflow: hidden;
}
.pub-modal-header {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 18px 20px 12px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f4fafd 0%, #fff 100%);
  flex-shrink: 0;
}
.pub-modal-header h4 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.pub-modal-sub { margin: 4px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.pub-modal-close {
  border: 0; background: transparent; font-size: 1.5rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px;
}
.pub-modal-body { padding: 16px 20px 8px; overflow: auto; flex: 1; min-height: 0; }
.pub-modal-panel.pub-proc-panel {
  width: min(720px, 100%);
}
#pub-proc-modal .pub-modal-body {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 42, 85, 0.28) transparent;
}
#pub-proc-modal .pub-modal-body::-webkit-scrollbar {
  width: 6px;
}
#pub-proc-modal .pub-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
#pub-proc-modal .pub-modal-body::-webkit-scrollbar-thumb {
  background: rgba(15, 42, 85, 0.22);
  border-radius: 999px;
}
#pub-proc-modal .pub-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 42, 85, 0.38);
}
body.pub-proc-modal-open {
  overflow: hidden;
}
.pub-excel-bar {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 10px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid #d7e8f4; background: #f4fafd; border-radius: 10px;
}
.pub-excel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pub-excel-text strong { font-size: .9rem; color: var(--navy); }
.pub-excel-text span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.pub-excel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-excel-import-btn { margin: 0; cursor: pointer; }
.pub-excel-import-btn.is-loading {
  opacity: .65; pointer-events: none; cursor: wait;
}
.pub-excel-error {
  padding: 10px 12px; border-radius: 8px;
  background: #fff5f5; border: 1px solid rgba(198, 40, 40, .35);
  color: #8b1a12; font-size: .84rem; line-height: 1.4;
}
.pub-excel-error.hidden { display: none !important; }
.pub-ben-table-wrap { margin: 10px 0 12px; overflow-x: auto; }
.pub-ben-table-hint {
  font-size: .78rem; color: var(--muted); margin-bottom: 6px;
}
.pub-ben-table-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.pub-ben-search {
  flex: 1 1 200px; min-width: 0; max-width: 320px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: .86rem;
}
.pub-ben-search:focus { outline: none; border-color: var(--teal); }
.pub-ben-count { font-size: .78rem; color: var(--muted); }
.pub-ben-table-host .table-pagination { margin-top: 8px; }
.table-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.table-pagination .pg-info { font-size: .82rem; color: var(--muted); }
.table-pagination .pg-btns { display: flex; gap: 6px; align-items: center; }
.table-pagination .pg-btns button {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font-size: .82rem; cursor: pointer;
}
.table-pagination .pg-btns button:disabled { opacity: .45; cursor: not-allowed; }
.table-pagination .pg-btns button:not(:disabled):hover { border-color: var(--teal); color: var(--teal-dark); }
.pub-ben-table {
  width: 100%; border-collapse: collapse; font-size: .86rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.pub-ben-table th,
.pub-ben-table td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line);
}
.pub-ben-table th {
  background: #f4fafd; color: var(--navy); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .02em;
}
.pub-ben-table tbody tr:last-child td { border-bottom: none; }
.pub-ben-row-click { cursor: pointer; transition: background .12s; }
.pub-ben-row-click:hover { background: #f0f8fc; }
.pub-benef-detail-grid { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }
.pub-benef-detail-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem;
}
.pub-benef-detail-row span { color: var(--muted); font-weight: 600; }
.pub-benef-detail-row strong { color: var(--navy); text-align: right; word-break: break-word; }
.pub-benef-section-title {
  margin: 14px 0 6px; font-size: .9rem; color: var(--navy); font-weight: 700;
}
.pub-benef-desc { margin: 0 0 8px; font-size: .88rem; line-height: 1.45; color: var(--text); }
.pub-import-done { margin-bottom: 8px; }
.pub-preview {
  border: 1px solid #d7e8f4; background: #f8fbff; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 8px;
}
.pub-preview-head { margin-bottom: 12px; }
.pub-preview-head strong { display: block; color: var(--navy); font-size: .95rem; }
.pub-preview-head span { font-size: .82rem; color: var(--muted); }
.pub-preview-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem;
}
.pub-preview-row span:first-child { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.pub-preview-row span:last-child { text-align: right; color: var(--navy); max-width: 65%; word-break: break-word; }
.pub-preview-ben-title {
  margin: 12px 0 6px; font-size: .88rem; font-weight: 700; color: var(--navy);
}
.pub-preview-table-wrap {
  overflow-x: auto; margin-top: 4px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
.pub-preview-table {
  width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 420px;
}
.pub-preview-table th, .pub-preview-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.pub-preview-table th {
  background: #f0f6fa; color: var(--muted); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .03em; font-weight: 700;
}
.pub-preview-table tbody tr:last-child td { border-bottom: none; }
.pub-preview-table td { color: var(--navy); }
.pub-preview-warn {
  background: #fff4e8; border: 1px solid #f0b86a; color: #8a4b00;
  border-radius: 8px; padding: 10px 12px; font-size: .86rem; margin-bottom: 12px; line-height: 1.4;
}
.toast-host {
  position: fixed; top: 76px; right: 24px; z-index: 400;
  display: flex; flex-direction: column-reverse; gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border-left: 4px solid var(--teal);
  box-shadow: 0 10px 28px rgba(15, 42, 85, .14);
  border-radius: 8px; padding: 12px 16px; font-size: .88rem;
  min-width: 220px; line-height: 1.45;
}
.toast-ico { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.toast.success { border-color: var(--green); }
.toast.success .toast-ico { color: var(--green); }
.toast.error { border-color: var(--err); }
.toast.error .toast-ico { color: var(--err); }
.toast.warning { border-color: var(--gold); }
.toast.warning .toast-ico { color: var(--gold-dark); }
.toast.info { border-color: var(--teal); }
.toast.info .toast-ico { color: var(--teal); }
.hidden { display: none !important; }

.pub-modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
.pub-modal-grid .pub-field.full { grid-column: 1 / -1; }
.pub-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pub-field label { font-size: .84rem; font-weight: 600; color: var(--navy); }
.pub-field > input,
.pub-field > select,
.pub-field > textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 8px; box-sizing: border-box; background: #fff; color: var(--text, #1a2b3c);
}
.pub-field > input:focus,
.pub-field > select:focus,
.pub-field > textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 146, 189, .12);
}
.pub-field .dp-wrap { width: 100%; }
.pub-field .dp-wrap .dp-display {
  min-height: 42px; height: 42px; box-sizing: border-box;
}
.pub-ben-block {
  border: 1px solid #d7e8f4; background: #f8fbff; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
}
.pub-ben-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px;
}
.pub-ben-head label { font-weight: 700; color: var(--navy); font-size: .88rem; }
.pub-ben-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.pub-ben-row {
  display: grid; grid-template-columns: 1.2fr 1fr .85fr .85fr auto; gap: 8px; align-items: center;
  min-width: 0;
}
.pub-ben-row input, .pub-ben-row select {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: 8px; font: inherit; box-sizing: border-box;
}
.pub-ben-rm {
  border: 0; background: #fdecea; color: #b42318; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 1.1rem; flex-shrink: 0;
}
.pub-file-field { margin-bottom: 8px; }
.pub-file-upload {
  position: relative; border: 1.5px dashed #b7d7e8; border-radius: 10px;
  background: #f7fbfe; transition: border-color .15s, background .15s;
}
.pub-file-upload:hover { border-color: var(--teal); background: #eef8fc; }
.pub-file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.pub-file-label {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; margin: 0;
}
.pub-file-ico {
  width: 40px; height: 40px; border-radius: 10px; background: #e6f4fb;
  color: var(--teal-dark); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.pub-file-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pub-file-text strong { font-size: .9rem; color: var(--navy); }
.pub-file-text span {
  font-size: .8rem; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}

/* Itens do orçamento no modal de proforma (candidato) */
.pub-proc-linhas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 2px;
  align-content: start;
}
.pub-proc-linha {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
  min-width: 0;
  cursor: pointer;
  margin: 0;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pub-proc-linha:hover {
  border-color: #b7c9d9;
  background: #fff;
}
.pub-proc-linha.is-on {
  border-color: #7cbc95;
  background: #f4fbf7;
  box-shadow: inset 0 0 0 1px rgba(126, 188, 149, .35);
}
.pub-proc-linha > input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0; pointer-events: none;
}
.pub-proc-linha-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.pub-proc-linha-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.pub-proc-linha-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  word-break: break-word;
}
.pub-proc-linha-orc {
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.25;
}
.pub-proc-linha-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid #c5d0dc;
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  line-height: 1;
}
.pub-proc-linha.is-on .pub-proc-linha-mark {
  border-color: #2f9e6a;
  background: #2f9e6a;
  color: #fff;
}
.pub-proc-linha-mont {
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pub-proc-linha.is-on .pub-proc-linha-mont {
  display: flex;
}
.pub-proc-linha-mont-lbl {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.pub-proc-linha-mont input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  font-size: .92rem;
  background: #fff;
}
.pub-proc-linha-mont input[type="number"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 146, 189, .12);
}

@media (max-width: 600px) {
  .pub-proc-linhas { grid-template-columns: 1fr; }
}

.pub-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px 18px; border-top: 1px solid var(--line);
  flex-shrink: 0; background: #fff;
}

@media (max-width: 600px) {
  .pitch-public-grid { grid-template-columns: 1fr; }
  .pub-modal-grid, .pub-ben-row { grid-template-columns: 1fr; }
  .toast-host { top: 72px; right: 16px; left: 16px; max-width: none; }
  .pub-modal {
    padding: 0; align-items: stretch; justify-content: stretch;
  }
  .pub-modal-panel {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .pub-modal-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .pub-modal-footer .btn { flex: 1 1 auto; min-width: 0; }

  .pub-ben-table-wrap,
  .pub-preview-table-wrap { overflow-x: visible; }
  table.pub-ben-table.is-responsive,
  table.pub-preview-table.is-responsive {
    min-width: 0; border: 0;
  }
  table.pub-ben-table.is-responsive thead,
  table.pub-preview-table.is-responsive thead {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); border: 0;
  }
  table.pub-ben-table.is-responsive tbody,
  table.pub-preview-table.is-responsive tbody { display: block; }
  table.pub-ben-table.is-responsive tr,
  table.pub-preview-table.is-responsive tr {
    display: block; margin: 0 0 10px; padding: 4px 0;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
  }
  table.pub-ben-table.is-responsive td,
  table.pub-preview-table.is-responsive td {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 10px; width: 100%; box-sizing: border-box;
    padding: 8px 12px; border-bottom: 1px dashed var(--line); text-align: right;
  }
  table.pub-ben-table.is-responsive td:last-child,
  table.pub-preview-table.is-responsive td:last-child { border-bottom: 0; }
  table.pub-ben-table.is-responsive td::before,
  table.pub-preview-table.is-responsive td::before {
    content: attr(data-label);
    flex: 0 0 36%; font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .03em;
    color: var(--muted); text-align: left;
  }
}
