/* Quadro, agenda, indicadores, prazos e organizações */

.seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; overflow: hidden; }
.seg-btn { background: transparent; color: inherit; border: 0; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid rgba(255, 255, 255, 0.35); }
.seg-btn.is-on { background: rgba(255, 255, 255, 0.92); color: var(--brand-800, #172c48); font-weight: 600; }
.island-body .seg { border-color: var(--brand-300, #8faacb); }
.island-body .seg-btn.is-on { background: var(--brand-700, #1f3a5f); color: #fff; }
.green-header .seg-btn { color: rgba(255, 255, 255, 0.88); }
.green-header .seg-btn:not(.is-on):hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.green-header .seg-btn.is-on { color: var(--brand-800, #172c48); }

/* Abas do Quadro */
.qd-tabs { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid #e4e8ef; }
.qd-tabs a { padding: 9px 16px; font-size: 14px; font-weight: 500; color: #475467; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.qd-tabs a:hover { color: var(--brand-800, #172c48); }
.qd-tabs a.is-on { color: var(--brand-800, #172c48); border-bottom-color: var(--brand-700, #1f3a5f); font-weight: 600; }

/* Quadro de tarefas */
.tk-board { grid-auto-columns: minmax(280px, 1fr); }
.tk-col--andamento .kb-col-head { box-shadow: inset 0 3px 0 #d68b1e; border-radius: 12px 12px 0 0; }
.tk-col--concluida .kb-col-head { box-shadow: inset 0 3px 0 var(--ok-600, #067647); border-radius: 12px 12px 0 0; }
.tk-col--pendente .kb-col-head { box-shadow: inset 0 3px 0 var(--brand-500, #3a6291); border-radius: 12px 12px 0 0; }
.tk-card { background: #fff; border: 1px solid #dde3ec; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; cursor: grab; box-shadow: 0 1px 2px rgba(15, 30, 51, 0.05); transition: box-shadow 0.15s; }
.tk-card:hover { box-shadow: 0 4px 12px rgba(15, 30, 51, 0.1); }
.tk-card:focus-visible { outline: 2px solid var(--brand-500, #3a6291); outline-offset: 2px; }
.tk-card.is-dragging { opacity: 0.45; }
.tk-card.is-late { border-left: 3px solid var(--bad-600, #b42318); }
.tk-card.is-done { opacity: 0.72; }
.tk-card.is-done .tk-title { text-decoration: line-through; text-decoration-color: #98a2b3; }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tk-done { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c9d3e0; background: #fff; color: #98a2b3; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tk-done:hover, .tk-done:focus-visible { border-color: var(--ok-600, #067647); color: var(--ok-600, #067647); background: #e3f4ea; outline: none; }
.tk-check { color: var(--ok-600, #067647); font-weight: 700; }
.tk-title { margin: 0; font-size: 14px; line-height: 1.3; color: var(--brand-900, #0f1e33); }
.tk-lic { font-size: 12.5px; font-weight: 500; color: var(--brand-700, #1f3a5f); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-line { font-size: 12px; color: #667085; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-suspended { color: #475467; font-style: italic; }
.tk-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.tk-people { display: inline-flex; }
.tk-people .kb-avatar + .kb-avatar { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.tk-due { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: #f2f4f7; color: #344054; }
.tk-due--warn { background: #fef6e7; color: var(--warn-600, #b54708); }
.tk-due--bad { background: #fdecea; color: var(--bad-600, #b42318); font-weight: 600; }
.tk-due--none { color: #98a2b3; }
.tk-noone { font-size: 11.5px; font-weight: 600; color: var(--warn-600, #b54708); background: #fef6e7; padding: 2px 7px; border-radius: 6px; }
.tk-flag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tk-flag--bad { background: #fdecea; color: var(--bad-600, #b42318); }
.tk-flag--warn { background: #fef6e7; color: var(--warn-600, #b54708); }

/* Etapas e responsáveis (aba Checklist) */
.stg-heading { margin-top: 22px; }
.stg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.stg { border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; }
.stg[open] { box-shadow: 0 4px 14px rgba(15, 30, 51, 0.07); }
.stg.is-current { border-color: var(--brand-500, #3a6291); box-shadow: 0 0 0 2px rgba(58, 98, 145, 0.12); }
.stg.is-late { border-left: 3px solid var(--bad-600, #b42318); }
.stg.is-done summary .stg-main strong { color: #667085; }
.stg summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.stg summary::-webkit-details-marker { display: none; }
.stg-main { display: flex; flex-direction: column; min-width: 0; }
.stg-main strong { font-size: 14px; font-weight: 600; color: var(--brand-900, #0f1e33); }
.stg-main small { font-size: 11.5px; color: #667085; }
.stg-due { font-size: 12.5px; color: #475467; white-space: nowrap; }
.stg-who { display: inline-flex; min-width: 24px; justify-content: flex-end; }
.stg-who .kb-avatar + .kb-avatar { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.stg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 4px 14px 14px; border-top: 1px dashed #e4e8ef; margin: 0; }
.stg-people { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stg-people legend { font-size: 0.75rem; font-weight: 600; margin-bottom: 6px; padding: 0; width: 100%; }
.stg-person { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid #d5dde8; border-radius: 999px; font-size: 13px; cursor: pointer; background: #fff; }
.stg-person input { margin: 0; accent-color: var(--brand-700, #1f3a5f); }
.stg-person:has(input:checked) { background: var(--brand-50, #f1f5fa); border-color: var(--brand-500, #3a6291); color: var(--brand-800, #172c48); font-weight: 600; }
.stg-new { border-style: dashed; background: #fafbfd; }
.stg-new summary { grid-template-columns: 1fr; }
@media (max-width: 700px) {
  .stg summary { grid-template-columns: 1fr auto; }
  .stg-form { grid-template-columns: 1fr; }
}

/* Lista de licitações: cartões e tabela */
.lic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; padding: 16px 24px 24px; }
.lic-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #dde3ec; border-radius: 12px; padding: 14px 16px; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 30, 51, 0.05); transition: box-shadow 0.15s, border-color 0.15s; }
.lic-card:hover { box-shadow: 0 6px 18px rgba(15, 30, 51, 0.1); border-color: #c9d3e0; }
.lic-card.is-selected { border-color: var(--brand-700, #1f3a5f); box-shadow: 0 0 0 2px rgba(31, 58, 95, 0.18); }
.lic-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lic-card-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lic-card-pick { display: inline-flex; padding: 4px; cursor: pointer; }
.lic-card-pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-700, #1f3a5f); cursor: pointer; }
.lic-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--brand-900, #0f1e33); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tipo-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tipo-badge--risco { color: #8a3b00; background: #fff1e0; }
.tipo-badge--contrato { color: #0f5132; background: #e3f4ea; }
.kb-card-tipo { margin: 2px 0 4px; }
.tipo-badge--vazio { color: #6b7280; background: #f1f3f6; font-weight: 500; }
.lic-card-company { font-size: 12px; font-weight: 600; color: var(--brand-700, #1f3a5f); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lic-card-title:hover { color: var(--brand-700, #1f3a5f); text-decoration: underline; }
.lic-card-org { font-size: 12.5px; color: #667085; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lic-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid #eef1f5; }
.lic-card-facts div { min-width: 0; }
.lic-card-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: #8a94a6; }
.lic-card-facts dd { margin: 2px 0 0; font-size: 13px; color: #1d2939; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lic-card-progress { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.lic-card-progress small { font-size: 11.5px; color: #667085; white-space: nowrap; }
.lic-row td { padding-top: 10px; padding-bottom: 10px; }
.lic-row:hover { background: #f7f9fc; }
.lic-row a { color: var(--brand-900, #0f1e33); text-decoration: none; }
.lic-row a:hover { text-decoration: underline; }

.kb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 18px 4px; }
.kb-chip-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #d5dde8; border-radius: 999px; background: #fff; font-size: 13px; cursor: pointer; }
.kb-chip-toggle input { margin: 0; accent-color: var(--brand-700, #1f3a5f); }
.kb-hint { font-size: 12px; }
.kb-hint kbd { border: 1px solid #c9d3e0; border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; font-size: 11px; background: #f6f8fb; }

.kb-page { display: flex; flex-direction: column; min-height: calc(100vh - 140px); }
.kb-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 12px;
  padding: 12px 18px 18px;
  overflow-x: auto;
  align-items: start;
  flex: 1;
}
.kb-col { background: #eef2f7; border: 1px solid #dfe5ee; border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); min-width: 0; }
.kb-col.is-terminal { background: #f3f4f6; }
.kb-col.is-collapsed { grid-column: span 1; max-width: 140px; }
.kb-col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #dfe5ee; position: sticky; top: 0; }
.kb-col-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kb-col-title strong { font-size: 13px; color: var(--brand-900, #0f1e33); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-count { display: inline-flex; min-width: 22px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--brand-700, #1f3a5f); font-size: 12px; font-weight: 600; border: 1px solid #d5dde8; }
.kb-col-toggle { border: 0; background: transparent; color: var(--brand-500, #3a6291); font: inherit; font-size: 12px; cursor: pointer; }
.kb-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 80px; flex: 1; border-radius: 0 0 12px 12px; transition: background 0.15s; }
.kb-list.is-over { background: var(--brand-50, #f1f5fa); outline: 2px dashed var(--brand-300, #8faacb); outline-offset: -6px; }
.kb-empty { margin: 8px 0; text-align: center; font-size: 12px; color: #8a94a6; }
.kb-placeholder { height: 56px; border: 2px dashed var(--brand-300, #8faacb); border-radius: 10px; background: rgba(143, 170, 203, 0.12); flex-shrink: 0; }

.kb-card {
  background: #fff;
  border: 1px solid #dde3ec;
  border-left: 3px solid var(--brand-500, #3a6291);
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(15, 30, 51, 0.05);
  transition: box-shadow 0.15s, transform 0.15s;
}
.kb-card:hover { box-shadow: 0 4px 12px rgba(15, 30, 51, 0.1); }
.kb-card:focus-visible { outline: 2px solid var(--brand-500, #3a6291); outline-offset: 2px; }
.kb-card.is-dragging { opacity: 0.45; transform: rotate(1deg); }
.kb-card.is-high { border-left-color: var(--bad-600, #b42318); }
.kb-card.is-suspended { background: repeating-linear-gradient(135deg, #fff, #fff 10px, #f6f7f9 10px, #f6f7f9 20px); border-left-color: #98a2b3; }
.kb-card.is-closed { border-left-color: #98a2b3; }
.kb-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kb-company { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: hsl(var(--hue, 214), 45%, 28%); background: hsl(var(--hue, 214), 55%, 93%); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-card-menu { border: 0; background: transparent; color: #667085; font-size: 18px; line-height: 1; padding: 0 4px 4px; border-radius: 6px; cursor: pointer; }
.kb-card-menu:hover, .kb-card-menu:focus-visible { background: #eef2f7; color: var(--brand-800, #172c48); }
.kb-card-kicker { font-size: 11px; color: #667085; text-transform: uppercase; letter-spacing: 0.02em; }
.kb-card-title { margin: 0; font-size: 13.5px; line-height: 1.3; color: var(--brand-900, #0f1e33); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card-line { font-size: 12px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-values { color: #344054; }
.kb-due { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: baseline; font-size: 12px; padding: 3px 7px; border-radius: 6px; background: #f2f4f7; color: #344054; width: fit-content; }
.kb-due--warn { background: #fef6e7; color: var(--warn-600, #b54708); }
.kb-due--bad { background: #fdecea; color: var(--bad-600, #b42318); }
.kb-progress { display: flex; align-items: center; gap: 8px; }
.kb-progress-bar { flex: 1; height: 5px; background: #e6eaf0; border-radius: 99px; overflow: hidden; }
.kb-progress-bar span { display: block; height: 100%; background: var(--brand-500, #3a6291); border-radius: 99px; }
.kb-progress small { font-size: 11px; color: #667085; white-space: nowrap; }
.kb-card-foot { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.kb-alerts { display: flex; gap: 4px; flex-wrap: wrap; }
.kb-alert { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; padding: 1px 5px; border-radius: 6px; background: #f2f4f7; cursor: help; }
.kb-alert b { font-size: 11px; }
.kb-alert--OVERDUE, .kb-alert--HAB_GAPS { background: #fdecea; }
.kb-alert--DOCS_EXPIRING, .kb-alert--NO_OUTCOME { background: #fef6e7; }
.kb-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-700, #1f3a5f); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

.kb-outcome, .phase-badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #e9eef5; color: var(--brand-800, #172c48); white-space: nowrap; }
.kb-outcome--ganha { background: #e3f4ea; color: var(--ok-600, #067647); }
.kb-outcome--perdida { background: #fdecea; color: var(--bad-600, #b42318); }
.kb-outcome--fracassada, .kb-outcome--deserta { background: #fef6e7; color: var(--warn-600, #b54708); }
.kb-outcome--declinada, .kb-outcome--revogada, .kb-outcome--anulada, .kb-outcome--none { background: #eef0f3; color: #475467; }
.phase-badge--prospeccao { background: #eef0f3; color: #344054; }
.phase-badge--analise { background: #e8eef8; color: #2c4f7c; }
.phase-badge--preparacao { background: #dce6f2; color: #1f3a5f; }
.phase-badge--enviada { background: #e5effa; color: #1d4f8c; }
.phase-badge--disputa { background: #fef1df; color: #93560b; }
.phase-badge--pos_sessao { background: #f2ebfa; color: #5b3b8c; }
.phase-badge--contratacao { background: #e3f4ea; color: #067647; }
.phase-badge--suspensa { background: #f2f4f7; color: #475467; border: 1px dashed #98a2b3; }

.kb-menu { position: fixed; z-index: 1200; min-width: 220px; background: #fff; border: 1px solid #d5dde8; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 30, 51, 0.18); padding: 6px; display: flex; flex-direction: column; }
.kb-menu-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #667085; padding: 6px 10px 4px; }
.kb-menu button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 13.5px; color: #1d2939; cursor: pointer; }
.kb-menu button:hover:not([disabled]), .kb-menu button:focus-visible { background: var(--brand-50, #f1f5fa); outline: none; }
.kb-menu button[disabled] { color: #98a2b3; cursor: default; }
.kb-menu hr { border: 0; border-top: 1px solid #eaecf0; margin: 4px 0; }

.kb-dialog { width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; }
.kb-dlg-sub { margin-top: -4px; }
.kb-dlg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 12px 0 4px; }
.kb-dlg-form > * { grid-column: 1 / -1; }
.kb-dlg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kb-dlg-block { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.kb-dlg-block .led-field-full { grid-column: 1 / -1; }
.kb-dlg-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.kb-dlg-check input { margin-top: 2px; accent-color: var(--brand-700, #1f3a5f); }
.kb-dlg-warn { background: #fef6e7; border: 1px solid #f6d9a8; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; color: #6b3f06; font-size: 13.5px; }
.kb-dlg-error { color: var(--bad-600, #b42318); font-weight: 600; margin: 0; }
.kb-dlg-errors { margin: 0; padding: 8px 12px 8px 28px; background: #fdecea; border-radius: 8px; color: var(--bad-600, #b42318); font-size: 13px; }
@media (max-width: 600px) { .kb-dlg-grid, .kb-dlg-block { grid-template-columns: 1fr; } }

/* Agenda */
.ag-day { margin: 0 0 18px; }
.ag-day h3 { font-size: 14px; margin: 0 0 8px; color: var(--brand-900, #0f1e33); display: flex; align-items: center; gap: 8px; }
.ag-day--overdue h3 { color: var(--bad-600, #b42318); }
.ag-item { display: grid; grid-template-columns: 56px minmax(140px, 220px) 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid #e4e8ef; border-left: 3px solid #98a2b3; border-radius: 8px; background: #fff; margin-bottom: 6px; color: inherit; text-decoration: none; font-size: 13.5px; }
.ag-item:hover { background: var(--brand-50, #f1f5fa); }
.ag-item--info { border-left-color: var(--brand-500, #3a6291); }
.ag-item--warn { border-left-color: var(--warn-600, #b54708); }
.ag-item--bad { border-left-color: var(--bad-600, #b42318); }
.ag-item.is-done { opacity: 0.6; }
.ag-time { font-weight: 600; color: var(--brand-800, #172c48); font-variant-numeric: tabular-nums; }
.ag-kind { font-weight: 600; }
.ag-lic { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-status { font-size: 11px; color: var(--ok-600, #067647); }
@media (max-width: 700px) { .ag-item { grid-template-columns: 48px 1fr; } .ag-lic { grid-column: 2; } }

/* Indicadores */
.ind-kpis .stat { min-height: 92px; }
.ind-hint { font-size: 11px; margin-top: 4px; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.ind-panel { border: 1px solid #e4e8ef; border-radius: 12px; padding: 14px 16px; background: #fff; }
.ind-panel h3 { margin: 0 0 12px; font-size: 14px; color: var(--brand-900, #0f1e33); }
.ind-bars { display: flex; flex-direction: column; gap: 8px; }
.ind-bar { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.ind-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #344054; }
.ind-bar-track { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.ind-bar-track span { display: block; height: 100%; background: var(--brand-500, #3a6291); border-radius: 99px; min-width: 2px; }
.ind-bar-value { font-variant-numeric: tabular-nums; color: #475467; white-space: nowrap; }

/* Prazos e histórico */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.tl-panel { border: 1px solid #e4e8ef; border-radius: 12px; padding: 14px 16px; background: #fff; }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tl-head h3 { margin: 0; font-size: 15px; }
.tl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tl-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #e9edf3; border-radius: 8px; font-size: 13.5px; }
.tl-row.is-muted { opacity: 0.65; }
.tl-actions { display: flex; gap: 6px; align-items: flex-start; }
.tl-actions select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid #d0d5dd; border-radius: 6px; }
.tl-form { border-top: 1px dashed #e4e8ef; padding-top: 12px; }
.tl-history { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #dce3ec; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.tl-history li { position: relative; }
.tl-history li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-500, #3a6291); border: 2px solid #fff; }
.tl-when { font-size: 11.5px; color: #667085; }

/* Início */
.phase-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.phase-strip-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid #e1e7ef; background: #f7f9fc; text-decoration: none; color: inherit; border-top: 3px solid var(--brand-500, #3a6291); }
.phase-strip-item:hover { background: var(--brand-50, #f1f5fa); }
.phase-strip-n { font-size: 22px; font-weight: 700; color: var(--brand-900, #0f1e33); }
.phase-strip-label { font-size: 12px; color: #475467; }
.phase-strip-item--disputa { border-top-color: #d68b1e; }
.phase-strip-item--pos_sessao { border-top-color: #7a56b0; }
.phase-strip-item--contratacao { border-top-color: var(--ok-600, #067647); }
.phase-strip-item--prospeccao { border-top-color: #98a2b3; }
.home-grid--compact .stat { min-height: auto; }
.stat--bad .v { color: var(--bad-600, #b42318); }
.stat--warn .v { color: var(--warn-600, #b54708); }
.home-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #667085; margin: 6px 0; }
.home-sub--bad { color: var(--bad-600, #b42318); }

/* Lista em tabela e formulário */
.lic-table--main td { vertical-align: middle; }
.lic-table--main tr.is-selected { background: var(--brand-50, #f1f5fa); }
.lic-table .col-pick { width: 32px; }
.progress--sm { height: 5px; width: 80px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.form-section { margin: 14px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-700, #1f3a5f); border-top: 1px solid #e4e8ef; padding-top: 12px; }

/* Organizações e usuários */
.org-list { display: flex; flex-direction: column; gap: 12px; }
.org-row { border: 1px solid #e4e8ef; border-radius: 12px; padding: 12px 14px; background: #fff; }
.org-row.is-active { border-color: var(--brand-500, #3a6291); box-shadow: 0 0 0 2px rgba(58, 98, 145, 0.12); }
.org-row-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; }
.org-row-meta { grid-column: 1 / -1; font-size: 12.5px; }
.org-row-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.user-role-select { font: inherit; font-size: 12.5px; padding: 4px 6px; border: 1px solid #d0d5dd; border-radius: 6px; margin-right: 6px; }
.users-scope { margin-left: 10px; font-weight: 400; }
