/* 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. */

/* ===== Situação rápida (otimizado para toque) ===== */
.quick-status{
  border-top:1px dashed #eaeaea;
  margin-top:9px;
  padding-top:9px;
  display:grid;
  gap:9px
}
/* O painel do local reaproveita `.paint-bar`/`.paint-swatches` da barra da planta:
   mesma amostra, mesmo anel de selecao, mesmo "✓". Só muda a separacao do bloco. */
.local-status{
  border-bottom:1px dashed #eaeaea;
  margin:4px 0 0;
  padding-bottom:11px
}
.local-status .paint-bar-label{
  margin-bottom:8px
}
.quick-status-item{
  display:grid;
  gap:6px
}
.quick-status-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:9px
}
.quick-status-head strong{
  font-size:10px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.quick-status-head .local-open{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  min-height:34px;
  border:0;
  background:transparent;
  padding:0;
  color:inherit;
  text-align:left;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:#d0d1d2
}
.quick-status-head .local-open span{
  font-size:8px;
  color:#989a9c;
  white-space:nowrap
}
.quick-status-head .local-open:hover strong{
  color:var(--blue)
}
.quick-status-head .quick-feedback{
  font-size:8px;
  font-weight:700;
  color:#989a9c;
  white-space:nowrap
}
.quick-status-head .quick-feedback.ok{
  color:#17935f
}
.quick-status-head .quick-feedback.error{
  color:#c34646
}
.status-switch{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px
}
.status-switch button{
  min-height:46px;
  border:1px solid #e4e4e5;
  border-radius:9px;
  background:#fff;
  color:#68696b;
  font-size:10px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:4px 6px;
  line-height:1.2;
  text-align:center
}
.status-switch button i{
  width:9px;
  height:9px;
  border-radius:50%;
  flex:0 0 auto;
  display:block
}
.status-switch button[aria-pressed="true"]{
  color:#fff;
  border-color:#00000026;
  box-shadow:inset 0 0 0 2px #ffffff55;
  font-weight:800
}
.status-switch button[aria-pressed="true"] i{
  background:#fff!important
}
.status-switch button:disabled{
  opacity:.55
}
@media(min-width:620px){
  .status-switch{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .status-switch button{
    min-height:42px;
    font-size:9px
  }
}
/* ===== Galeria de fotografias nos relatórios ===== */
.report-floor{
  border-top:1px solid #f2f2f3;
  padding:11px 2px
}
.report-floor:first-child{
  border-top:0
}
.report-floor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:9px;
  flex-wrap:wrap
}
.report-floor-head strong{
  font-size:10px
}
.report-floor-head .report-floor-meta{
  font-size:8px;
  color:#989a9c
}
.status-legend{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:7px 0 0
}
.status-legend span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:#fafafa;
  border-radius:20px;
  padding:4px 9px;
  font-size:8px;
  color:#6f7072
}
.status-legend i{
  width:8px;
  height:8px;
  border-radius:50%;
  flex:0 0 auto
}
.photo-group{
  margin-top:9px
}
.photo-group-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  font-size:8px;
  color:#909294;
  margin-bottom:5px
}
.photo-group-head strong{
  color:#565758;
  font-size:9px
}
.photo-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(112px,1fr));
  gap:7px
}
.photo-gallery .gallery-cell{
  position:relative;
  border:0;
  padding:0;
  border-radius:8px;
  overflow:hidden;
  background:#f2f2f2;
  aspect-ratio:4/3;
  min-height:84px;
  cursor:zoom-in
}
.photo-gallery .gallery-cell img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#ededee;
  display:block
}
img[data-broken="true"]{
  visibility:hidden
}
.gallery-cell:has(img[data-broken="true"]):after,.photo-item:has(img[data-broken="true"]):after{
  content:"Imagem indisponível";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  text-align:center;
  padding:6px;
  background:#f2f2f2;
  color:#989a9c;
  font-size:8px;
  border-radius:8px
}
.photo-gallery .gallery-cell .gallery-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:#380f14cc;
  color:#fff;
  font-size:7px;
  padding:3px 5px;
  text-align:left
}
.photo-gallery .gallery-more{
  display:grid;
  place-items:center;
  background:#faeaec;
  color:var(--blue);
  font-size:9px;
  font-weight:700;
  border-radius:8px;
  min-height:84px;
  border:1px dashed #e6b9be
}
.floor-empty-note{
  font-size:8px;
  color:#a7a8a9;
  margin:6px 0 0
}
