/* Simulador "Planejar reserva". Folha na base no celular, centralizado no computador.
   Cada versao ajusta as variaveis --rs-* no proprio estilo.css. */
.h62r-locked { overflow: hidden; }
dialog#hub62-reserva {
  --rs-ink: #252525;
  --rs-red: #D80100;
  --rs-red-forte: #B50100;
  --rs-muted: #5F5B55;
  --rs-line: #D9D6CE;
  --rs-paper: #F9F8F5;
  --rs-soft: #F1EEE7;
  --rs-raio: 18px;
  --rs-ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100vw;
  height: auto;
  max-height: min(92vh, 780px);
  max-height: min(92dvh, 780px);
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--rs-raio) var(--rs-raio) 0 0;
  background: var(--rs-paper);
  color: var(--rs-ink);
  font: 400 15px/1.5 "Instrument Sans", "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: left;
  letter-spacing: normal;
  box-shadow: 0 -10px 50px #25252526;
}
#hub62-reserva:not([open]), #hub62-reserva [hidden] { display: none !important; }
#hub62-reserva[open] { display: flex; flex-direction: column; animation: h62r-sobe 280ms var(--rs-ease); }
#hub62-reserva::backdrop { background: #25252580; animation: h62r-fundo 280ms ease-out; }
#hub62-reserva.h62r-saindo { animation: h62r-desce 200ms ease-in forwards; }
#hub62-reserva.h62r-saindo::backdrop { animation: h62r-fundo-sai 200ms ease-in forwards; }
@keyframes h62r-sobe { from { transform: translateY(100%); } to { transform: none; } }
@keyframes h62r-desce { from { transform: none; } to { transform: translateY(100%); } }
@keyframes h62r-fundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes h62r-fundo-sai { from { opacity: 1; } to { opacity: 0; } }
@keyframes h62r-entra { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes h62r-sai { from { transform: none; opacity: 1; } to { transform: translateY(8px) scale(.985); opacity: 0; } }
#hub62-reserva *, #hub62-reserva *::before, #hub62-reserva *::after { box-sizing: border-box; }
#hub62-reserva :is(button,input,select,textarea) { font: inherit; color: inherit; letter-spacing: normal; }
#hub62-reserva button { cursor: pointer; margin: 0; text-transform: none; }
#hub62-reserva :is(button,input,select,summary,textarea):focus-visible { outline: 3px solid var(--rs-ink); outline-offset: 3px; }
#hub62-reserva :is(p,h2,h3,fieldset,legend,dl,dt,dd,summary,label) { margin: 0; }
#hub62-reserva svg { display: block; width: 20px; height: 20px; }
#hub62-reserva .h62r-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#hub62-reserva .h62r-header {
  flex: none; padding: 18px 20px 14px; border-bottom: 1px solid var(--rs-line);
  display: flex; align-items: center; gap: 12px;
}
#hub62-reserva .h62r-simbolo { width: 20px; height: 33px; flex: none; }
#hub62-reserva .h62r-header h2 { flex: 1; font: 600 24px/1.1 "Instrument Sans", "Segoe UI", Arial, sans-serif; letter-spacing: -.02em; }
#hub62-reserva .h62r-header h2:focus { outline: 0; }
#hub62-reserva .h62r-close {
  background: transparent; width: 44px; height: 44px; border: 1px solid var(--rs-line); border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 44px; padding: 0;
  transition: transform 140ms ease-out, background-color 140ms ease-out;
}
#hub62-reserva .h62r-close:active { transform: scale(.94); }
#hub62-reserva .h62r-form, #hub62-reserva .h62r-result { flex: 1; min-height: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
#hub62-reserva .h62r-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 22px; }
#hub62-reserva .h62r-intro { color: var(--rs-muted); margin-bottom: 20px; max-width: 40ch; }
#hub62-reserva :is(.h62r-label,.h62r-field,legend) { display: block; font-size: 13px; line-height: 1.4; font-weight: 650; }
#hub62-reserva .h62r-label { margin-bottom: 7px; }
#hub62-reserva .h62r-room {
  display: flex; align-items: center; gap: 13px; background: var(--rs-soft);
  border-radius: 8px; border: 1px solid var(--rs-line); min-height: 70px; padding: 8px 10px;
}
/* Miniatura na proporcao original da foto (3:2), sem corte. */
#hub62-reserva .h62r-thumb { width: 78px; height: 52px; border-radius: 4px; display: block; flex: none; }
#hub62-reserva .h62r-roomtext { flex: 1; min-width: 0; }
#hub62-reserva .h62r-roomtext select {
  width: 100%; border: 0; border-radius: 3px; background-color: transparent;
  padding: 5px 25px 5px 0; font-size: 16px; line-height: 1.3; font-weight: 650;
}
#hub62-reserva .h62r-roomtext select, #hub62-reserva .h62r-field select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23252525' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
#hub62-reserva .h62r-roomnote { display: block; font-size: 12px; color: var(--rs-muted); }
#hub62-reserva .h62r-group { padding: 0; border: 0; margin: 22px 0 0; min-width: 0; }
#hub62-reserva legend { padding: 0 0 9px; }
#hub62-reserva .h62r-options { display: flex; flex-wrap: wrap; gap: 6px; }
#hub62-reserva .h62r-options label { display: inline-flex; position: relative; cursor: pointer; }
#hub62-reserva .h62r-options input { position: absolute; opacity: 0; width: 1px; height: 1px; top: 50%; left: 50%; }
#hub62-reserva .h62r-options span {
  font-size: 14px; line-height: 1.25; font-weight: 550; min-height: 44px; padding: 10px 15px;
  display: flex; align-items: center; border: 1px solid var(--rs-line); border-radius: 99px; background: var(--rs-paper);
  transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out;
}
#hub62-reserva .h62r-options input:checked + span { background: var(--rs-ink); color: #fff; border-color: var(--rs-ink); }
#hub62-reserva .h62r-options input:focus-visible + span { outline: 3px solid var(--rs-ink); outline-offset: 2px; }
#hub62-reserva .h62r-details { margin-top: 18px; }
#hub62-reserva .h62r-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
#hub62-reserva .h62r-field :is(input,select) {
  width: 100%; min-width: 0; min-height: 46px; border: 1px solid #BDB8AE; border-radius: 6px;
  padding: 9px 12px; background-color: #fff; font-size: 16px; line-height: 1.4; font-weight: 450;
}
#hub62-reserva .h62r-field select { padding-right: 31px; }
#hub62-reserva .h62r-note, #hub62-reserva .h62r-modehint { color: var(--rs-muted); font-size: 13px; line-height: 1.5; margin-top: 8px; }
#hub62-reserva .h62r-modehint { margin-top: 0; }
/* Regua fina da duracao (so na Hora Marcada). Indicacao visual, sem funcao propria. */
#hub62-reserva .h62r-regua {
  position: relative; display: grid; grid-template-columns: repeat(10, 1fr); margin-top: 10px;
  border-top: 1px solid var(--rs-ink); font-size: 11px; color: var(--rs-muted); text-align: center;
}
#hub62-reserva .h62r-regua i { font-style: normal; padding-top: 7px; border-left: 1px solid var(--rs-line); }
#hub62-reserva .h62r-regua i:first-of-type { border-left: 0; }
#hub62-reserva .h62r-regua-marca {
  position: absolute; top: -2px; left: 0; width: 10%; height: 4px; background: var(--rs-red);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
#hub62-reserva .h62r-agenda { border-block: 1px solid var(--rs-line); padding: 0; margin-top: 20px; }
#hub62-reserva .h62r-agenda summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 50px;
  padding: 13px 1px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 550;
}
#hub62-reserva .h62r-agenda summary::-webkit-details-marker { display: none; }
#hub62-reserva .h62r-agenda summary span { font-size: 22px; font-weight: 350; line-height: 1; transition: transform 160ms ease-out; }
#hub62-reserva .h62r-agenda[open] summary span { transform: rotate(45deg); }
#hub62-reserva .h62r-agenda-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 12px; }
#hub62-reserva .h62r-agenda .h62r-note { padding-bottom: 12px; }
#hub62-reserva .h62r-services { display: grid; gap: 2px; }
#hub62-reserva .h62r-services label { min-height: 44px; display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 14px; font-weight: 450; cursor: pointer; }
#hub62-reserva .h62r-services input { appearance: auto; accent-color: var(--rs-red); width: 18px; height: 18px; padding: 0; margin: 0; }
#hub62-reserva .h62r-foot { flex: none; padding: 14px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rs-line); background: var(--rs-soft); }
#hub62-reserva .h62r-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 44px; }
#hub62-reserva .h62r-price > div { min-width: 0; }
#hub62-reserva .h62r-price-label { display: block; font-size: 14px; font-weight: 650; }
#hub62-reserva .h62r-pricenote { display: block; color: var(--rs-muted); font-size: 12px; margin-top: 3px; }
#hub62-reserva .h62r-total { text-align: right; white-space: nowrap; font-size: 28px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
#hub62-reserva .h62r-primary, #hub62-reserva .h62r-secondary {
  width: 100%; min-height: 50px; border: 1px solid transparent; border-radius: 6px; padding: 10px 16px;
  font-size: 16px; font-weight: 650; display: flex; align-items: center; justify-content: space-between;
  transition: transform 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
}
#hub62-reserva .h62r-primary { background: var(--rs-red); color: #fff; }
#hub62-reserva .h62r-secondary { background: transparent; border-color: #A9A399; justify-content: center; margin-top: 8px; }
#hub62-reserva :is(.h62r-primary,.h62r-secondary):active { transform: scale(.98); }
#hub62-reserva .h62r-status { font-size: 13px; color: var(--rs-muted); }
#hub62-reserva .h62r-status:not(:empty) { margin-bottom: 10px; }
#hub62-reserva .h62r-ticket { border-block: 1px solid var(--rs-line); padding: 20px 0; margin: 3px 0 8px; }
#hub62-reserva .h62r-ticket h3 { font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin-bottom: 18px; }
#hub62-reserva .h62r-rows { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(100px, 1.55fr); gap: 9px 14px; }
#hub62-reserva .h62r-rows dt { font-size: 13px; color: var(--rs-muted); }
#hub62-reserva .h62r-rows dd { font-size: 14px; text-align: right; font-weight: 550; overflow-wrap: anywhere; }
#hub62-reserva .h62r-edit { min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; padding: 6px 0; border: 0; background: transparent; }
#hub62-reserva .h62r-fallback { position: fixed; left: -200vw; width: 50px; height: 50px; }
@media (hover: hover) and (pointer: fine) {
  #hub62-reserva .h62r-close:hover { background: var(--rs-soft); }
  #hub62-reserva .h62r-primary:hover { background: var(--rs-red-forte); }
  #hub62-reserva .h62r-secondary:hover { border-color: var(--rs-ink); }
}
@media (min-width: 720px) {
  dialog#hub62-reserva {
    inset: 0; margin: auto; width: 520px; height: fit-content;
    max-height: min(88vh, 800px); border-radius: 12px; box-shadow: 0 24px 80px #25252533;
  }
  #hub62-reserva[open] { animation: h62r-entra 280ms cubic-bezier(0.23, 1, 0.32, 1); }
  #hub62-reserva.h62r-saindo { animation: h62r-sai 200ms ease-in forwards; }
  #hub62-reserva .h62r-header { padding: 22px 28px 16px; }
  #hub62-reserva .h62r-body { padding: 22px 28px 26px; }
  #hub62-reserva .h62r-foot { padding: 16px 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #hub62-reserva[open], #hub62-reserva.h62r-saindo { animation: h62r-fundo 160ms ease-out; }
  #hub62-reserva::backdrop, #hub62-reserva.h62r-saindo::backdrop { animation: none; }
  #hub62-reserva * { transition-duration: 0ms !important; }
}
