/* GE 2.5.279 - comentários 1–13: autenticação, relatórios, reserva e galerias. */

/* Login: o contorno pertence apenas ao contentor, sem cantos residuais no input. */
.ge-login-v56 .ge-login-v56-pass{
  isolation:isolate!important;
  background:var(--fived-ink)!important;
  background-clip:padding-box!important;
}
.ge-login-v56 .ge-login-v56-pass input,
.ge-login-v56 .ge-login-v56-pass input:hover,
.ge-login-v56 .ge-login-v56-pass input:focus,
.ge-login-v56 .ge-login-v56-pass input:active,
.ge-login-v56 .ge-login-v56-pass input:-webkit-autofill,
.ge-login-v56 .ge-login-v56-pass input:-webkit-autofill:hover,
.ge-login-v56 .ge-login-v56-pass input:-webkit-autofill:focus{
  height:calc(100% - 2px)!important;
  margin-block:1px!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:var(--fived-ink)!important;
  background-clip:padding-box!important;
  -webkit-box-shadow:0 0 0 1000px var(--fived-ink) inset!important;
  box-shadow:0 0 0 1000px var(--fived-ink) inset!important;
  clip-path:inset(0 1px)!important;
}

/* Notificações: ação compacta, legível e sem quebra em qualquer largura. */
html body .ge5d-notifications-drawer .ge5d-notifications-head .ge5d-notifications-read-all{
  display:inline-flex!important;
  width:max-content!important;
  max-width:none!important;
  min-height:34px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 14px!important;
  border-radius:999px!important;
  background:var(--fived-ink)!important;
  background-image:none!important;
  color:var(--fived-gold-light)!important;
  font-size:10.5px!important;
  line-height:1!important;
  letter-spacing:.07em!important;
  white-space:nowrap!important;
}

/* Relatórios: a secção de clientes usa o mesmo cartão e alinhamento das restantes. */
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients.gs-card{
  width:100%!important;
  margin-top:18px!important;
  padding:24px!important;
  border:1px solid rgba(201,168,76,.16)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#10100f,var(--fived-input))!important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients>.gs-card-head{
  width:100%!important;
  margin-bottom:18px!important;
  text-align:left!important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients>.gs-card-head>div{
  width:100%!important;
}

/* Detalhe da reserva: preço do pacote alinhado e com escala contida. */
body.ge-staff-v2-template .ge5d-client-detail-v105 .ge5d-package-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:20px!important;
}
body.ge-staff-v2-template .ge5d-client-detail-v105 .ge5d-package-line>strong{
  align-self:start!important;
  margin:0!important;
  padding-top:2px!important;
  color:var(--fived-gold-light)!important;
  font-size:20px!important;
  line-height:1.1!important;
  text-align:right!important;
  white-space:nowrap!important;
}

/* Reserva: a informação de mesas/cadeiras comporta-se como ligação para a galeria. */
.ge-reserva-v3 .ge-package-furniture-link{
  display:inline!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  font:inherit!important;
  line-height:inherit!important;
  text-decoration:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.ge-reserva-v3 .ge-package-furniture-link:hover,
.ge-reserva-v3 .ge-package-furniture-link:focus-visible{color:var(--fived-gold-light)!important;outline:0!important}

/* Editor de pacotes: uma imagem por linha e ordem explícita. */
body.ge-staff-v2-template .ge-package-gallery-editor{grid-column:1/-1!important}
body.ge-staff-v2-template .ge-package-gallery-editor>small,
body.ge-staff-v2-template .ge-package-stock-field>small{
  display:block!important;
  margin:5px 0 12px!important;
  color:rgba(245,240,232,.62)!important;
  font-size:12px!important;
  line-height:1.45!important;
}
body.ge-staff-v2-template .ge-package-gallery-rows{display:grid!important;gap:10px!important}
body.ge-staff-v2-template .ge-package-gallery-row{
  display:grid!important;
  grid-template-columns:86px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:10px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:12px!important;
  background:rgba(0,0,0,.2)!important;
}
body.ge-staff-v2-template .ge-package-gallery-row .gs-media-preview{
  width:86px!important;
  height:68px!important;
  min-height:68px!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:9px!important;
}
body.ge-staff-v2-template .ge-package-gallery-row .gs-media-preview img{width:100%!important;height:100%!important;object-fit:cover!important}
body.ge-staff-v2-template .ge-package-gallery-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
body.ge-staff-v2-template .ge-package-gallery-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center!important}
body.ge-staff-v2-template .ge-package-gallery-actions>[data-package-gallery-move],
body.ge-staff-v2-template .ge-stock-order-actions button{
  display:inline-grid!important;
  width:34px!important;
  height:34px!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(201,168,76,.32)!important;
  border-radius:9px!important;
  background:var(--fived-input)!important;
  color:var(--fived-gold-light)!important;
  cursor:pointer!important;
}
body.ge-staff-v2-template .ge-package-gallery-actions button:disabled,
body.ge-staff-v2-template .ge-stock-order-actions button:disabled{opacity:.28!important;cursor:default!important}
body.ge-staff-v2-template .ge-package-gallery-add{margin-top:12px!important}

body.ge-staff-v2-template .ge-package-stock-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
body.ge-staff-v2-template .ge-package-stock-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:7px!important;
  align-items:center!important;
  padding:9px!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:10px!important;
}
body.ge-staff-v2-template .ge-package-stock-item>label{
  display:grid!important;
  grid-template-columns:42px auto minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
}
body.ge-staff-v2-template .ge-package-stock-item>label b{min-width:0!important;overflow-wrap:anywhere!important}
body.ge-staff-v2-template .ge-stock-order-actions{display:none!important;gap:5px!important}
body.ge-staff-v2-template .ge-package-stock-item.is-selected .ge-stock-order-actions{display:flex!important}

/* Em ecrãs estreitos, mostrar a fotografia inteira sem corte lateral. */
@media(max-width:768px){
  body.ge-staff-v2-template .ge-staff-v2 .gsv2-alert-card{display:block!important}
  body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients.gs-card{padding:18px 14px!important}
  body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients .ge-client-grid{
    width:100%!important;
    margin-left:0!important;
    padding-inline:0!important;
  }
  body.ge-staff-v2-template .ge5d-client-detail-v105 .ge5d-package-line{grid-template-columns:1fr!important;gap:12px!important}
  body.ge-staff-v2-template .ge5d-client-detail-v105 .ge5d-package-line>strong{text-align:left!important}
  .ge-package-lightbox.is-gallery-only .ge-package-lightbox-card{height:100svh!important;background:#090909!important}
  .ge-package-lightbox.is-gallery-only .ge-package-lightbox-media{padding:8px!important;background:#090909!important}
  .ge-package-lightbox.is-gallery-only .ge-package-lightbox-media img{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  body.ge-staff-v2-template .ge-package-stock-options{grid-template-columns:1fr!important}
  body.ge-staff-v2-template .ge-package-gallery-row{grid-template-columns:72px minmax(0,1fr)!important}
  body.ge-staff-v2-template .ge-package-gallery-row .gs-media-preview{width:72px!important;height:60px!important;min-height:60px!important}
}
