/* MasterPlating V1145 — refinamento da tela Plano de Calibração.
   Mantém a identidade global e o padrão de ações V1118; não altera regras de negócio. */
.metro-table-card {
  padding: 16px !important;
  border: 1px solid #d8e3ef !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.metro-table-card .metro-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px !important;
  min-width: 0;
}
.metro-table-card .metro-table-head .mp-section-title {
  margin: 0 0 3px !important;
  color: var(--text-primary, #193b60);
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3;
}
.metro-table-card .metro-table-head > div > span {
  display: inline-block;
  margin-top: 2px;
  color: var(--text-secondary, #65788c);
  font-size: 11px;
}
.metro-table-card .table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d7e3f1;
  border-radius: 10px;
  background: #fff;
  scrollbar-gutter: stable;
}
.metro-dashboard-table {
  width: 100% !important;
  min-width: 1280px !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 12px !important;
}
.metro-dashboard-table thead th {
  padding: 12px 10px !important;
  background: #f3f7fc !important;
  color: #24496f !important;
  border-bottom: 1px solid #d7e3f1 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: .015em;
  text-align: left;
  text-transform: uppercase;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: middle;
}
.metro-dashboard-table tbody td {
  padding: 14px 10px !important;
  color: var(--text-primary, #24364b);
  border-bottom: 1px solid #e7edf5 !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  vertical-align: middle !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metro-dashboard-table tbody tr:last-child td { border-bottom: 0 !important; }
.metro-dashboard-table tbody tr:hover td { background: #fbfdff; }
/* Distribuição explícita: reserva espaço real para fornecedor e ações sem comprimir os dados. */
.metro-dashboard-table th:nth-child(1), .metro-dashboard-table td:nth-child(1) { width: 7%; }
.metro-dashboard-table th:nth-child(2), .metro-dashboard-table td:nth-child(2) { width: 8%; }
.metro-dashboard-table th:nth-child(3), .metro-dashboard-table td:nth-child(3) { width: 13%; }
.metro-dashboard-table th:nth-child(4), .metro-dashboard-table td:nth-child(4) { width: 12%; }
.metro-dashboard-table th:nth-child(5), .metro-dashboard-table td:nth-child(5) { width: 8%; }
.metro-dashboard-table th:nth-child(6), .metro-dashboard-table td:nth-child(6) { width: 12%; }
.metro-dashboard-table th:nth-child(7), .metro-dashboard-table td:nth-child(7) { width: 16%; }
.metro-dashboard-table th:nth-child(8), .metro-dashboard-table td:nth-child(8) { width: 10%; }
.metro-dashboard-table th:nth-child(9), .metro-dashboard-table td:nth-child(9) { width: 14%; }
.metro-dashboard-table td:nth-child(1),
.metro-dashboard-table td:nth-child(2),
.metro-dashboard-table td:nth-child(4),
.metro-dashboard-table td:nth-child(5),
.metro-dashboard-table td:nth-child(6) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.metro-dashboard-table td:nth-child(3),
.metro-dashboard-table td:nth-child(7) {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip;
}
.metro-dashboard-table td:nth-child(3) strong { font-weight: 650; }
.metro-dashboard-table .mono { font-variant-numeric: tabular-nums; }
.metro-dashboard-table .metro-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.metro-dashboard-table .metro-status-badge i { flex: 0 0 6px; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.metro-dashboard-table .metro-status-badge.success { background: #e4f6ed; color: #18794e; }
.metro-dashboard-table .metro-status-badge.success i { background: #20a36b; }
.metro-dashboard-table .metro-status-badge.warning { background: #fff4dc; color: #986300; }
.metro-dashboard-table .metro-status-badge.warning i { background: #e6a008; }
.metro-dashboard-table .metro-status-badge.danger { background: #ffebea; color: #b42318; }
.metro-dashboard-table .metro-status-badge.danger i { background: #dc3939; }
.metro-dashboard-table td.metro-actions-cell { overflow: visible; }
.metro-dashboard-table .metro-row-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  min-width: 38px;
  white-space: nowrap !important;
  padding: 2px 4px;
}
.metro-dashboard-table .metro-row-actions .mp-icon-action {
  margin: 0 !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
}
.metro-dashboard-table .metro-empty {
  padding: 26px 16px !important;
  color: #65788c;
  text-align: center;
  white-space: normal;
}
.metro-filter-card {
  border: 1px solid #d8e3ef !important;
  border-radius: 12px !important;
}
.metro-filter-card .metro-filter-head { gap: 16px; }
.metro-filter-card .metro-filter-actions { gap: 14px; align-items: end; }
.metro-filter-card .field label {
  display: block;
  margin-bottom: 6px;
  color: #344e6b;
  font-size: 11px;
  font-weight: 650;
}
.metro-filter-card .field input,
.metro-filter-card .field select {
  min-height: 36px;
  border-color: #d3dfed;
  border-radius: 7px;
}
.metro-dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 3px 0;
  color: #65788c;
  font-size: 10.5px;
}
@media (max-width: 900px) {
  .metro-filter-card .metro-filter-head { align-items: stretch; flex-direction: column; }
  .metro-filter-card .metro-filter-actions { width: 100%; flex-wrap: wrap; }
  .metro-filter-card .metro-search { flex: 1 1 260px; }
  .metro-filter-card .metro-status { flex: 1 1 180px; }
}
@media (max-width: 640px) {
  .metro-table-card { padding: 11px !important; }
  .metro-table-card .metro-table-head .mp-section-title { font-size: 14px !important; }
  .metro-dashboard-table { min-width: 1040px !important; }
  .metro-dashboard-table thead th { padding: 10px 8px !important; }
  .metro-dashboard-table tbody td { padding: 11px 8px !important; }
  .metro-filter-card .metro-filter-actions { gap: 10px; }
  .metro-dashboard-footer { align-items: flex-start; flex-direction: column; }
}
