/* Relatórios: barra de ações, cartões, lista de pavimentos e histórico.

   Faz parte de src/estilos/, carregado pelo index.html em ordem numerada.
   A ordem importa: regras de arquivos posteriores sobrepõem as anteriores,
   de propósito. */

.report-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:20px 0 14px
}
.select-field{
  height:32px;
  min-width:180px;
  border:1px solid #e6e6e6;
  border-radius:7px;
  background:white;
  padding:0 9px;
  color:#5c5d5e;
  font-size:9px
}
.action-button{
  height:32px;
  padding:0 11px;
  border:1px solid #e6e6e6;
  border-radius:7px;
  background:white;
  color:#58595a;
  font-size:9px;
  font-weight:600
}
.action-button:hover{
  border-color:#d89ea5;
  color:var(--blue)
}
.report-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:12px
}
.report-metric{
  padding:10px 8px;
  text-align:center;
  border-radius:8px;
  background:#fdeff0;
  color:var(--blue)
}
.report-metric:nth-child(2){
  background:#edfbf4;
  color:#17a66f
}
.report-metric:nth-child(3){
  background:#fdf0f1;
  color:#ca3445
}
.report-metric:nth-child(4){
  background:#fef1f3;
  color:#e65e6e
}
.report-metric strong{
  font:800 16px var(--display);
  display:block
}
.report-metric span{
  font-size:8px;
  color:#828385
}
.total-progress{
  padding:11px 12px;
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  margin-bottom:16px
}
.total-progress-head{
  display:flex;
  justify-content:space-between;
  font-size:8px;
  margin-bottom:7px
}
.total-progress .progress-track{
  height:6px;
  background:#eeeeee
}
.total-progress .progress-fill{
  background:var(--brand)
}
.report-heading{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:9px;
  font-weight:700;
  margin:13px 0 8px
}
.report-card{
  overflow:hidden;
  margin-bottom:11px
}
.report-card-head{
  background:linear-gradient(110deg,var(--brand),#9f2836);
  color:#fff;
  padding:11px 13px
}
.report-card-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px
}
.report-card-title strong{
  font-size:9px
}
.report-card-head small{
  display:block;
  color:#ebc5c9;
  font-size:8px;
  margin-top:3px
}
.report-card-head .progress-track{
  height:4px;
  margin-top:9px;
  background:#ffffff44
}
.report-card-head .progress-fill{
  background:#38c993
}
.report-breakdown{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-bottom:1px solid #f0f0f1
}
.report-breakdown div{
  text-align:center;
  padding:8px 4px;
  border-right:1px solid #f0f0f1
}
.report-breakdown div:last-child{
  border:0
}
.report-breakdown strong{
  display:block;
  font-size:9px
}
.report-breakdown span{
  color:#989a9c;
  font-size:8px
}
.report-card-toggle{
  width:100%;
  border:0;
  background:#fff;
  text-align:left;
  padding:8px 12px;
  color:#67696b;
  font-size:8px;
  display:flex;
  justify-content:space-between
}
.floor-list{
  padding:0 12px 10px
}
.floor-row{
  display:grid;
  grid-template-columns:1.2fr .7fr .7fr .7fr;
  gap:8px;
  align-items:center;
  padding:8px 2px;
  border-top:1px solid #f2f2f3;
  font-size:8px;
  color:#838486
}
.floor-row strong{
  color:#48494b
}
.floor-row .done{
  color:#16a971
}
.floor-row .pending{
  color:#e49a25
}
.history-list{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px
}
.history-row{
  display:grid;
  grid-template-columns:26px 1fr auto;
  align-items:start;
  gap:9px;
  padding:12px;
  border-bottom:1px solid #f2f2f2
}
.history-row:last-child{
  border:0
}
.history-symbol{
  width:23px;
  height:23px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fdeff0;
  color:#a73542
}
.history-row strong{
  display:block;
  font-size:9px
}
.history-row p{
  margin:2px 0 0;
  color:#949698;
  font-size:8px
}
.history-row time{
  font-size:8px;
  color:#a8a9aa;
  white-space:nowrap
}
.empty-state{
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  padding:32px 16px;
  text-align:center;
  color:#98999b;
  font-size:10px;
  grid-column:1/-1
}
.empty-state strong{
  display:block;
  color:#4e4f51;
  font-size:11px;
  margin-bottom:4px
}

/* ===== Filtro do relatório: obra e período ===== */
.report-filter{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px
}
.report-filter-field{
  display:grid;
  gap:4px
}
.report-filter-field label{
  font-size:9px;
  font-weight:700;
  color:#7d7e80
}
.report-filter-field .select-field{
  min-height:38px
}
/* O aviso só aparece quando há pavimento fora, e precisa ser notado: imprimir
   sem um pavimento por engano é o erro que ele existe para evitar. */
.report-excluded{
  margin:0 0 14px;
  padding:8px 11px;
  border-radius:8px;
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-size:10px;
  font-weight:700
}
.report-excluded button{
  margin-left:6px;
  border:0;
  background:none;
  color:var(--brand-dark);
  font:inherit;
  text-decoration:underline
}
/* O "x" de tirar o pavimento fica no cabeçalho colorido do cartão. */
/* Botão escrito, não um "×": a ação tira o pavimento DESTA entrega e não
   apaga nada, e um x num círculo dizia o contrário. */
.rf-remove{
  flex:none;
  border:0;
  border-radius:99px;
  background:#ffffff2e;
  color:#fff;
  font:700 9px var(--display);
  letter-spacing:.03em;
  padding:7px 11px;
  white-space:nowrap
}
.rf-remove:hover{
  background:#ffffff4d
}
@media print{
  .report-filter,.report-excluded,.rf-remove{
    display:none!important
  }
}
