/* Corrections from the mobile review, kept after the theme and staff styles. */
@media (max-width: 768px) {
  body.ge-staff-v2-template #ge5d-mobile-menu.ge5d-staff-mobile-menu.active {
    position: fixed !important;
    inset: 62px 0 0 !important;
    width: 100vw !important;
    height: calc(100dvh - 62px) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 62px) !important;
    box-sizing: border-box !important;
    padding: 18px 8px 28px !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin !important;
    scrollbar-color: #8d7440 #090b0e !important;
    background: #090b0e !important;
    opacity: 1 !important;
    transition: none !important;
    backdrop-filter: none !important;
    z-index: 99998 !important;
  }
  body.ge-staff-v2-template #ge5d-mobile-menu.ge5d-staff-mobile-menu .ge5d-mobile-links,
  body.ge-staff-v2-template #ge5d-mobile-menu.ge5d-staff-mobile-menu .ge5d-mobile-actions {
    width: 100% !important;
    max-width: 460px !important;
    margin-inline: auto !important;
  }
  body.ge-staff-v2-template #ge5d-mobile-menu.ge5d-staff-mobile-menu .ge5d-mobile-links {
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
  }
  body.ge-staff-v2-template #ge5d-mobile-menu.ge5d-staff-mobile-menu.active::-webkit-scrollbar {
    width: 6px !important;
  }
  body.ge-staff-v2-template #ge5d-mobile-menu.ge5d-staff-mobile-menu.active::-webkit-scrollbar-thumb {
    background: #8d7440 !important;
    border-radius: 6px !important;
  }
  body.ge-staff-v2-template #ge5d-mobile-menu.ge5d-staff-mobile-menu .ge5d-mobile-links a {
    color: #e8d48b !important;
  }

  body .ge5d-client-detail-v105 .ge5d-main > .ge5d-panel,
  body .ge5d-client-detail-v105 .ge5d-side > .ge5d-panel,
  body .ge5d-client-detail-v105 .ge5d-summary-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }
  body .ge5d-client-detail-v105 .ge5d-summary-content {
    box-sizing: border-box !important;
  }
  body .ge5d-client-detail-v105 .ge5d-summary-img {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  body .ge5d-client-detail-v105 .ge5d-summary-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  body .ge5d-client-detail-v105 .ge5d-summary-image-label {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    max-width: calc(100% - 24px) !important;
    text-align: center !important;
  }

  html body#fived-body.fived-theme.fived-skin .gs-page-sms > .gs-hero.fived-staff-masthead {
    display: block !important;
    min-height: 0 !important;
    padding: 20px 14px 24px !important;
    margin: 0 0 22px !important;
    text-align: left !important;
  }
  html body#fived-body.fived-theme.fived-skin .gs-page-sms .fived-staff-heading {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }
  html body#fived-body.fived-theme.fived-skin .gs-page-sms .gs-title-with-icon,
  html body#fived-body.fived-theme.fived-skin .gs-page-sms .gs-title-with-icon > span:last-child {
    width: auto !important;
    justify-content: flex-start !important;
    margin: 5px 0 0 !important;
    text-align: left !important;
  }
  html body#fived-body.fived-theme.fived-skin .gs-page-sms .gs-title-icon {
    display: none !important;
  }
  html body#fived-body.fived-theme.fived-skin .gs-page-sms .fived-staff-heading > p {
    max-width: 33rem !important;
    margin: 9px 0 0 !important;
    text-align: left !important;
  }
}

/* Swipe and pagination dots provide extras navigation on small screens. */
@media (max-width: 768px) {
  html body#fived-body .ge-reserva-v3 .ge-extra-horizontal-shell,
  html body#fived-body .ge-reserva-v3 .ge-extra-horizontal-shell.is-first-page,
  html body#fived-body .ge-reserva-v3 .ge-extra-horizontal-shell.is-last-page,
  html body#fived-body .ge-reserva-v3 .ge-extra-horizontal-shell.is-first-page.is-last-page {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: 'cards' 'dots' !important;
    padding-inline: 0 !important;
  }
  html body#fived-body .ge-reserva-v3 .ge-extra-horizontal-shell .ge-extra-carousel-nav {
    display: none !important;
  }
}

.ge5d-sms-history{box-sizing:border-box;min-width:0;padding:0 24px 24px}
.ge5d-sms-history-scroll{box-sizing:border-box;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.ge5d-report-config .ge5d-report-weekday[hidden],
.ge5d-report-config .ge5d-report-custom[hidden]{display:none!important}
.ge5d-report-config .ge5d-report-custom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ge5d-report-config .ge5d-report-custom .gs-field{min-width:0}
.ge5d-report-config .ge5d-report-custom input{box-sizing:border-box;width:100%;min-width:0}
.ge5d-report-config .ge5d-report-custom small{grid-column:1/-1;color:#b9bbc3}
@media(max-width:768px){
  #sms .ge5d-sms-history{padding:0 16px 20px}
  #sms .ge5d-sms-history-scroll{width:100%;max-width:100%;border:1px solid rgba(255,255,255,.12);border-radius:8px}
  #sms .ge5d-sms-history-scroll table{width:930px!important;min-width:930px!important;table-layout:fixed!important}
  #sms .ge5d-sms-history-scroll th,#sms .ge5d-sms-history-scroll td{box-sizing:border-box;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;vertical-align:middle}
  #sms .ge5d-sms-history-scroll th:nth-child(1){width:145px}
  #sms .ge5d-sms-history-scroll th:nth-child(2){width:105px}
  #sms .ge5d-sms-history-scroll th:nth-child(3){width:160px}
  #sms .ge5d-sms-history-scroll th:nth-child(4){width:100px}
  #sms .ge5d-sms-history-scroll th:nth-child(5){width:200px}
  #sms .ge5d-sms-history-scroll th:nth-child(6){width:220px}
  #sms .ge5d-sms-history-scroll td:nth-child(6){overflow-wrap:anywhere!important}
  .ge5d-report-config .ge5d-report-custom{grid-template-columns:minmax(0,1fr)}
}

/* Reservation detail: compact event summary and clearly grouped decoration plan. */
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-summary-card {
  display: grid !important;
  grid-template-columns: minmax(185px, 230px) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 20px !important;
  padding: 18px !important;
  border: 1px solid rgba(201, 168, 76, .2) !important;
  border-radius: 12px !important;
  background: #1b1f28 !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-summary-img {
  width: 100% !important;
  min-height: 300px !important;
  border-radius: 9px !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-summary-content {
  display: grid !important;
  align-content: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  padding: 0 !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-summary-head { display: none !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-details-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border: 1px solid rgba(201, 168, 76, .16) !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  background: rgba(0, 0, 0, .12) !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-details-grid::before,
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail::before,
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail::after { display: none !important; content: none !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail {
  min-width: 0 !important;
  min-height: 60px !important;
  padding: 10px 13px !important;
  border: 0 !important;
  border-top: 1px solid rgba(201, 168, 76, .13) !important;
  border-radius: 0 !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail:nth-child(-n+2) { border-top: 0 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail:nth-child(odd):not(:last-child) { border-right: 1px solid rgba(201, 168, 76, .13) !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail:last-child { grid-column: 1 / -1 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail span { font-size: 10px !important; line-height: 1.3 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-detail strong { font-size: 13px !important; line-height: 1.35 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-summary-time-control {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px !important;
  background: #11151a !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-deposit-panel .ge5d-deposit-summary { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-deposit-panel .ge5d-deposit-summary small { display: grid !important; align-content: center !important; gap: 5px !important; min-width: 0 !important; min-height: 58px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-deposit-panel .ge5d-deposit-summary small span { color: #aeb3bd !important; font-size: 10px !important; line-height: 1.25 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-deposit-panel .ge5d-deposit-summary small strong { color: #f5f0e8 !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1.3 !important; white-space: nowrap !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-panel .ge5d-panel-title { margin-bottom: 20px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-form { gap: 18px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-fields {
  padding: 18px !important;
  border: 1px solid rgba(201, 168, 76, .16) !important;
  border-radius: 11px !important;
  background: rgba(0, 0, 0, .12) !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-field-heading { grid-column: 1 / -1 !important; margin-bottom: 2px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-field-heading h3 { margin: 0 0 5px !important; font-size: 16px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-field-heading p { font-size: 12px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 details.ge5d-decoration-materials {
  display: block !important;
  padding: 0 !important;
  border: 1px solid rgba(201, 168, 76, .25) !important;
  border-radius: 11px !important;
  background: #151a20 !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-summary,
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  cursor: pointer !important;
  list-style: none !important;
}
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials summary::-webkit-details-marker { display: none !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-summary { min-height: 64px !important; padding: 13px 16px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-summary strong { display: block !important; color: #f5f0e8 !important; font-size: 16px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-summary small { display: block !important; margin-top: 4px !important; color: #b7b8bd !important; font-size: 12px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-summary em { flex: none !important; color: #d8bd72 !important; font-size: 11px !important; font-style: normal !important; white-space: nowrap !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-summary::after,
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group > summary::after { content: '' !important; width: 8px !important; height: 8px !important; flex: none !important; border-right: 1px solid #d8bd72 !important; border-bottom: 1px solid #d8bd72 !important; transform: rotate(45deg) !important; transition: transform .2s ease !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials[open] > summary::after,
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group[open] > summary::after { transform: rotate(225deg) !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-body { display: grid !important; gap: 12px !important; padding: 0 16px 16px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials:not([open]) > .ge5d-decoration-materials-body,
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group:not([open]) > .ge5d-decoration-group-body { display: none !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-body > p { line-height: 1.55 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group { border: 1px solid rgba(255, 255, 255, .12) !important; border-radius: 9px !important; background: #1b1f28 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group > summary { min-height: 46px !important; padding: 10px 14px !important; color: #f5f0e8 !important; font-size: 13px !important; font-weight: 700 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group > summary small { margin-left: auto !important; color: #b7b8bd !important; font-size: 11px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-group-body { display: grid !important; gap: 10px !important; padding: 10px 14px 14px !important; border-top: 1px solid rgba(255, 255, 255, .1) !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-replace { margin: 0 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-included { display: block !important; color: #b7b8bd !important; font-size: 11px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-photos { padding: 18px !important; border: 1px solid rgba(201, 168, 76, .16) !important; border-radius: 11px !important; background: rgba(0, 0, 0, .12) !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-actions { padding-top: 16px !important; border-top: 1px solid rgba(201, 168, 76, .18) !important; }
html body#fived-body.fived-theme.fived-skin .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-panel-title h2 { font: 600 18px/1.2 var(--fived-sans) !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-panel-title p { font-size: 12px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-steps { gap: 16px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-step { grid-template-columns: 30px minmax(0, 1fr) !important; gap: 10px !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-step-icon { width: 30px !important; height: 30px !important; font-size: 12px !important; }
html body#fived-body.fived-theme.fived-skin .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-step h3 { margin: 1px 0 4px !important; font: 600 15px/1.3 var(--fived-sans) !important; letter-spacing: 0 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-step p { font-size: 12px !important; line-height: 1.5 !important; }
html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-next-steps-panel .ge5d-mini-btn { font-size: 10px !important; line-height: 1.25 !important; }
@media (max-width: 900px) {
  html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-summary-card { grid-template-columns: 1fr !important; }
  html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-detail-summary-panel .ge5d-summary-img { min-height: 200px !important; max-height: 260px !important; }
}
@media (max-width: 600px) {
  html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-fields { padding: 14px !important; }
  html body:not(.wp-admin) .ge5d-client-detail-v105 .ge5d-decoration-materials-summary { flex-wrap: wrap !important; }
}

body .ge5d-client-detail-v105 .ge5d-package-line > div > span {
  color: #e8d48b !important;
}

body.ge-staff-v2-template .gs-page-relatorios .ge-report-layout--single {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients .ge-client-card-link {
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients .ge-client-head {
  flex-wrap: wrap !important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients .ge-client-identity {
  flex: 1 1 150px !important;
  min-width: 0 !important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients .ge-client-stats,
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients .ge-client-stats span {
  min-width: 0 !important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients :is(h3, p, .ge-client-note, .ge-client-stats b) {
  overflow-wrap: anywhere !important;
}
body.ge-staff-v2-template .gs-page-relatorios .ge-report-clients .ge-client-stats b {
  font-size: clamp(12px, 1.2vw, 15px) !important;
}
@media (min-width: 769px) and (max-width: 1199px) {
  html body#fived-body.ge-staff-v2-template .gs-page-relatorios #clientes-list .ge-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.ge5d-sms-example-text,
.ge-sms-message-preview {
  white-space: pre-line !important;
}

/* Keep notice dialogs centred on small screens after the theme's mobile rules. */
@media (max-width: 768px) {
  html body.ge-staff-v2-template .gs-notice-modal {
    align-items: center !important;
    padding: 16px !important;
  }
  html body.ge-staff-v2-template .gs-notice-modal__card {
    width: min(480px, 100%) !important;
    border-radius: 24px !important;
    padding: 26px 20px 22px !important;
  }
}

/* The image value is supplied as --ge-card-image on each extras card. */
html body .ge-reserva-v3 .ge-extra-horizontal-shell .ge-extra-card.has-media {
  background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.82)), var(--ge-card-image) !important;
  background-position: center center !important;
  background-size: cover !important;
}
html body .ge-reserva-v3 .ge-extra-horizontal-shell .ge-extra-card {
  box-sizing: border-box !important;
  min-height: 460px !important;
}
@media (max-width: 768px) {
  html body .ge-reserva-v3 .ge-extra-horizontal-shell,
  html body .ge-reserva-v3 .ge-extra-horizontal-shell.is-first-page,
  html body .ge-reserva-v3 .ge-extra-horizontal-shell.is-last-page {
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: 'cards' 'dots' !important;
    gap: 8px !important;
    padding: 0 38px !important;
  }
  html body .ge-reserva-v3 .ge-extra-horizontal-shell .ge-extra-carousel-nav {
    position: absolute !important;
    top: 50% !important;
    z-index: 5 !important;
    width: 36px !important;
    height: 36px !important;
    transform: translateY(-50%) !important;
  }
  html body .ge-reserva-v3 .ge-extra-horizontal-shell .ge-extra-carousel-nav.is-prev {
    left: 0 !important;
  }
  html body .ge-reserva-v3 .ge-extra-horizontal-shell .ge-extra-carousel-nav.is-next {
    right: 0 !important;
  }
  html body .ge-reserva-v3 .ge-extra-horizontal-shell .ge-extra-card {
    height: 440px !important;
    min-height: 440px !important;
  }
}
