/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* Importação da fonte Montserrat conforme o PRP */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* ── KVM Brand Colors ─────────────────────────────────────── */
  --kvm-petroleum:   #202A3F;
  --kvm-navy:        #2A3A70;
  --kvm-royal:       #364B94;

  /* ── Functional mappings ──────────────────────────────────── */
  --kvm-primary:       var(--kvm-navy);       /* main interactive color */
  --kvm-primary-dark:  var(--kvm-petroleum);  /* pressed / active state */
  --kvm-primary-light: var(--kvm-royal);      /* hover / accent */

  /* KVM brand gradient (sidebar, hero areas) */
  --kvm-gradient: linear-gradient(155deg, #202A3F 0%, #2A3A70 55%, #364B94 100%);

  /* ── Neutral palette ─────────────────────────────────────── */
  --kvm-text:      #1e2433;
  --kvm-text-muted:#64748b;
  --kvm-bg-light:  #f4f7fa;
  --kvm-white:     #ffffff;
  --kvm-border:    #e2e8f0;
  --kvm-surface:   #f8fafc;

  /* ── Semantic status colors (intentionally NOT KVM brand) ─── */
  --kvm-error:   #d32f2f;
  --kvm-success: #2e7d32;

  /* ── Shell tokens ────────────────────────────────────────── */
  --admin-header-height: 70px;
  --admin-sidebar-width: 250px;

  /* ── Reservation dashboard art-direction tokens ─────────────
     Scoped refresh for the Reservation-Operator header + the
     reservation dashboard page. Additive — existing --kvm-* tokens
     above are untouched so the rest of the admin app is unaffected. */
  --kvm-blue:       #2D3A72;
  --kvm-blue-dark:  #1F2A5C;
  --kvm-blue-soft:  #EEF2FF;

  --page-bg:        #EEF2F7;
  --surface:        #FFFFFF;
  --surface-border: #D7DEEA;

  --text-main:      #172033;
  --text-muted:     #718096;

  --success:        #22A447;
  --success-soft:   #ECFFF2;

  /* Shared horizontal rhythm for the reservation dashboard's content
     column — used by both the header's inner container and the dashboard
     page's content wrapper so their left/right edges always line up. */
  --dash-content-max-width: 1400px;
  --dash-content-padding-x: 12px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--kvm-bg-light);
  color: var(--kvm-text);
  line-height: 1.6;
}

/* ── Global utility ──────────────────────────────────────────── */
.container-fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kvm-card {
  background: var(--kvm-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
}

.kvm-button {
  background: var(--kvm-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  width: 100%;
  letter-spacing: 0.02em;
}

.kvm-button:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 4px 14px rgba(42, 58, 112, 0.35);
}

.kvm-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.kvm-input {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0 16px 0;
  border: 1.5px solid var(--kvm-border);
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--kvm-text);
  background: var(--kvm-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.kvm-input:focus {
  border-color: var(--kvm-royal);
  box-shadow: 0 0 0 3px rgba(54, 75, 148, 0.12);
}

/* ── Admin shell ─────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.admin-sidebar {
  width: var(--admin-sidebar-width);
  color: var(--kvm-white);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 50;
  flex-shrink: 0;
}

/* Flat — matches the top header bar (.admin-header) and the gradient's own
   0% stop, so the nav list below transitions into the gradient with no
   visible seam at the boundary. */
.admin-sidebar-header {
  height: var(--admin-header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background-color: #202A3F;
}

.admin-sidebar-nav {
  flex: 1 1;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  background: var(--kvm-gradient);
}

.admin-sidebar-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.admin-sidebar-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Immediate press feedback — without this, clicking felt unresponsive since
   nothing else changes on-screen until the destination page takes over. */
.admin-sidebar-link:active {
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0s;
}

.admin-sidebar-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.14);
  border-left-color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Clicked-but-not-yet-navigated state — bridges the gap between click and
   the destination page rendering (AdminLayout remounts per page, so this
   is the only feedback in that window). */
.admin-sidebar-link.is-pending {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-link-spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: admin-sidebar-link-spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes admin-sidebar-link-spin {
  to { transform: rotate(360deg); }
}

/* Draws attention to "Solicitar serviço" when opened via the Concierge
   shortcut button — two soft breathing pulses toward the Concierge purple,
   not a hard blink. */
@keyframes kvm-concierge-breathe {
  0%, 100% { color: #94a3b8; }
  50%      { color: #a78bfa; }
}
.concierge-breathe {
  animation: kvm-concierge-breathe 0.6s ease-in-out 2;
}

.admin-content-wrapper {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--kvm-bg-light);
}

.admin-header {
  height: var(--admin-header-height);
  background-color: #202A3F;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 8px rgba(32, 42, 63, 0.06);
  z-index: 40;
}

.admin-header-userinfo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.admin-main {
  flex: 1 1;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
}

/* ── Responsive sidebar ─────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
}

/* ── Outline button ──────────────────────────────────────────── */
.kvm-btn-outline {
  background: transparent;
  color: var(--kvm-navy);
  border: 1.5px solid var(--kvm-navy);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.kvm-btn-outline:hover {
  background: var(--kvm-navy);
  color: var(--kvm-white);
}

/* ── Reservation dashboard header logout button (on blue background) ───
   Kept separate from .kvm-btn-outline (used elsewhere on white surfaces)
   so this scoped restyle doesn't affect other pages. */
.kvm-btn-on-blue {
  background: var(--surface, #fff);
  color: var(--kvm-blue, #2D3A72);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.kvm-btn-on-blue:hover {
  background: var(--kvm-blue-soft, #EEF2FF);
}

/* ── Reservation dashboard header title (next to the logo) ─────────────
   Montserrat is already the app-wide font (loaded via @import above and
   applied on body, not next/font) — declared explicitly here anyway for
   robustness/clarity, matching the same pattern as .kvm-button/.kvm-btn-*. */
.dash-header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-header-divider {
  width: 1px;
  height: 26px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

@media (max-width: 640px) {
  .dash-header-title {
    font-size: 14px;
  }
  .dash-header-divider {
    display: none;
  }
  .header-clock-date {
    display: none;
  }
}

/* ── Hamburger ───────────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }
  .admin-header {
    padding: 0 1rem;
  }
}

/* ── Room / Kiosk shell ─────────────────────────────────────── */
.kiosk-mode {
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-user-drag: none;
}

.room-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: var(--kvm-bg-light);
  overflow: hidden;
}

.room-header {
  background-color: var(--kvm-primary);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.room-identity-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* Loading/pairing states render before the room name is known — center the
   logo instead of leaving it beside an empty slot (or a meaningless placeholder). */
.room-header--centered {
  justify-content: center;
}

.room-main {
  flex: 1 1;
  padding: 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* ── Loader overlay ──────────────────────────────────────────── */
.loading-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--kvm-primary);
  z-index: 100;
}

/* ── Touch / catalogue grid ─────────────────────────────────── */
.touch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
  grid-gap: 1rem;
  gap: 1rem;
  padding: 0.75rem 0;
}

.touch-card {
  background: var(--kvm-white);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 1.1rem 0.75rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.touch-card:active {
  transform: scale(0.96);
  border-color: var(--kvm-royal);
}

.touch-card-title {
  color: var(--kvm-primary);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ── Kiosk modal ─────────────────────────────────────────────── */
.kiosk-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(32, 42, 63, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-modal {
  background: var(--kvm-white);
  border-radius: 16px;
  padding: 2.5rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(32, 42, 63, 0.22);
  /* Own scroll + capped height so the modal never gets clipped by the
     viewport — matters most on phones where the keyboard opening for the
     Observações field shrinks available height. */
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  box-sizing: border-box;
}

.kiosk-notes-field {
  text-align: left;
  margin-top: 1.25rem;
}

.kiosk-notes-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kvm-text);
  margin-bottom: 0.4rem;
}

.kiosk-notes-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--kvm-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--kvm-text);
  resize: none;
  background: var(--kvm-bg-light);
}

.kiosk-notes-textarea:focus {
  outline: none;
  border-color: var(--kvm-royal);
  background: var(--kvm-white);
}

.room-active-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--kvm-white);
  border-top: 2px solid var(--kvm-primary);
  padding: 0.85rem 2rem 1rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 50;
}

.room-active-bar__label {
  text-align: center;
  font-weight: bold;
  color: var(--kvm-primary);
  white-space: nowrap;
}

.room-active-bar__list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  justify-content: safe center;
}

/* ── Phones (room kiosk stays untouched on tablets, ≥600px) ─────
   Same "stack it, shrink the padding" direction already used for
   the Central de Categoria mobile breakpoint. */
@media (max-width: 600px) {
  .room-header {
    padding: 0 1.25rem;
  }
  .room-identity-text {
    font-size: 1rem;
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .room-main {
    padding: 1.25rem 1rem;
  }
  .touch-grid {
    /* Fixed 2 columns (not auto-fill) so a category with several services
       reliably lays out 2x2, rather than however many happen to fit. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .touch-card {
    padding: 0.85rem 0.6rem;
    min-height: 56px;
  }
  .touch-card-title {
    font-size: 0.85rem;
  }
  .kiosk-modal {
    padding: 1.75rem 1.25rem;
    width: 92%;
  }
  .room-active-bar {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
}

.qty-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
  background: var(--kvm-bg-light);
  border-radius: 50px;
  padding: 0.5rem;
}

.qty-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--kvm-white);
  color: var(--kvm-primary);
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.15s;
}

.qty-btn:active {
  background: var(--kvm-bg-light);
}

.qty-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--kvm-text);
}

