/* Hotel check-in: compact, accessible, reception-first workflow. */
.role-hotel { --sb-w: 240px; background: #f8fafc; }
.role-hotel .sidebar { background: #0f172a; }
.role-hotel .sidebar::before { display: none; }
.role-hotel .brand-glyph { background: #2563eb; box-shadow: none; }
.role-hotel .sidebar-brand { padding: 20px 18px 14px; }
.role-hotel .profile-card { margin: 8px 14px 20px; padding: 12px; border: 1px solid rgba(226,232,240,.15); background: rgba(255,255,255,.055); box-shadow: none; }
.role-hotel .side-nav { padding: 0 10px; }
.role-hotel .side-nav a { margin: 3px 0; padding: 10px 12px; border-left: 0; border-radius: 8px; color: #cbd5e1; }
.role-hotel .side-nav a:hover { background: rgba(255,255,255,.075); color: #fff; }
.role-hotel .side-nav a.active { background: rgba(37,99,235,.24); box-shadow: inset 3px 0 #2563eb; color: #fff; }
.role-hotel .side-nav a i { color: #94a3b8; }
.role-hotel .side-nav a.active i { color: #bfdbfe; }
.role-hotel .sidebar-footer { display: none; }
.role-hotel .workspace { background: #f8fafc; }
.role-hotel .workspace-header { min-height: 66px; padding: 12px 28px; border-bottom: 1px solid #dce3ec; background: #fff; box-shadow: none; }
.role-hotel .workspace-header .eyebrow { font-size: .7rem; color: #64748b; letter-spacing: .09em; }
.role-hotel .workspace-header strong { font-size: .98rem; }
.role-hotel .logout { min-height: 38px; padding: 0 13px; border-color: #dce3ec; box-shadow: none; font-size: .84rem; }
.role-hotel .main { max-width: 1220px; width: 100%; margin: 0 auto; padding: 16px 24px 26px; }
.sidebar-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; margin-right: .7rem; padding: 0 .65rem; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; color: #334155; font: 700 .78rem/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.sidebar-toggle span { font-size: 1.05rem; }.sidebar-toggle em { font-style: normal; }.sidebar-backdrop { display: none; }
body.view-hotel-checkin.sidebar-collapsed { --sb-w: 68px; } body.view-hotel-checkin.sidebar-collapsed .sidebar-brand > span:last-child, body.view-hotel-checkin.sidebar-collapsed .profile-card > div, body.view-hotel-checkin.sidebar-collapsed .nav-label, body.view-hotel-checkin.sidebar-collapsed .side-nav a span { display: none; } body.view-hotel-checkin.sidebar-collapsed .sidebar-brand, body.view-hotel-checkin.sidebar-collapsed .profile-card, body.view-hotel-checkin.sidebar-collapsed .side-nav a { justify-content: center; } body.view-hotel-checkin.sidebar-collapsed .sidebar-brand { padding-left: 0; padding-right: 0; } body.view-hotel-checkin.sidebar-collapsed .profile-card { margin-left: 8px; margin-right: 8px; padding: 10px; } body.view-hotel-checkin.sidebar-collapsed .side-nav { padding: 0 6px; } body.view-hotel-checkin.sidebar-collapsed .side-nav a { padding-left: 8px; padding-right: 8px; }

.checkin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.35rem; }
.checkin-header h1 { margin: 0; color: #0f172a; font-size: 1.8rem; font-weight: 750; letter-spacing: -.035em; }
.checkin-header p { margin: .25rem 0 0; color: #64748b; font-size: .92rem; }
.checkin-security-note { display: inline-flex; align-items: center; gap: .42rem; padding: .42rem .65rem; border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: #15803d; font-size: .76rem; font-weight: 700; }
.checkin-security-note::before { width: .42rem; height: .42rem; border-radius: 50%; background: #16a34a; content: ""; }

.checkin-wizard { overflow: hidden; border: 1px solid #dce3ec; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.wizard-steps { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.25rem; border-bottom: 1px solid #dce3ec; background: #fff; }
.wizard-steps button { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent; color: #64748b; font: 650 .82rem/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.wizard-steps button b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e8eef6; color: #64748b; font-size: .74rem; }
.wizard-steps button.active { color: #2563eb; }
.wizard-steps button.active b { background: #2563eb; color: #fff; }
.wizard-steps button.complete { color: #0f766e; }
.wizard-steps button.complete b { background: #dcfce7; color: #15803d; font-size: 0; }
.wizard-steps button.complete b::after { content: "✓"; font-size: .82rem; }
.wizard-steps i { width: clamp(2rem, 7vw, 5.2rem); height: 1px; flex: 1 1 auto; background: #dce3ec; }
.wizard-panel { padding: 1rem 1.25rem 1.15rem; }
.step-heading { display: flex; flex-direction: column; gap: .18rem; margin: 0 0 .9rem; padding-bottom: .65rem; border-bottom: 1px solid #eef2f7; }
.step-heading h2 { margin: 0; color: #0f172a; font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.step-heading p { margin: 0; color: #64748b; font-size: .8rem; line-height: 1.35; }
.guest-count-prompt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: .8rem .95rem; border: 1px solid #dbeafe; border-radius: 9px; background: #f8fbff; }
.guest-count-prompt > div:first-child { display: grid; gap: .25rem; }
.guest-count-prompt strong { color: #1e3a5f; font-size: .88rem; }
.guest-count-prompt span { color: #64748b; font-size: .76rem; }
.checkin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .78rem 1rem; }
.checkin-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkin-field { min-width: 0; }
.checkin-span-full { grid-column: 1 / -1; }
.checkin-span-2 { grid-column: span 2; }
.checkin-camera-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.checkin-field label { display: block; margin: 0 0 .3rem; color: #334155; font-size: .79rem; font-weight: 680; }
.checkin-field label.required::after { margin-left: .2rem; color: #dc2626; content: "*"; }
.checkin-field .label-optional { color: #64748b; font-size: .73rem; font-weight: 500; }
.checkin-wizard input:not([type="checkbox"]), .checkin-wizard select, .checkin-wizard textarea { width: 100%; border: 1px solid #dce3ec; border-radius: 8px; outline: 0; background: #fff; color: #0f172a; font: 400 .88rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif; transition: border-color .15s, box-shadow .15s; }
.checkin-wizard input:not([type="checkbox"]), .checkin-wizard select { height: 39px; padding: 0 .7rem; }
.checkin-wizard textarea { min-height: 39px; height: auto; padding: .52rem .7rem; line-height: 1.4; resize: none; overflow-y: hidden; field-sizing: content; }
.checkin-wizard select { padding-right: 2.4rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right .85rem center; background-repeat: no-repeat; }
.checkin-wizard input:focus, .checkin-wizard select:focus, .checkin-wizard textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.checkin-wizard input[readonly] { color: #64748b; background: #f8fafc; cursor: default; }
.checkin-field small { display: block; margin-top: .32rem; color: #64748b; font-size: .72rem; line-height: 1.35; }
.checkin-field small[data-state="error"] { color: #b91c1c; font-weight: 650; }
.age-input-wrap { position: relative; display: flex; align-items: center; }
.age-input-wrap:has(.age-status-badge:not([hidden])) input { padding-right: 5.2rem; }
.age-status-badge { display: inline-flex; align-items: center; padding: .16rem .55rem; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.age-status-badge[hidden] { display: none; }
.age-input-wrap .age-status-badge { position: absolute; right: .5rem; pointer-events: none; }
.age-status-badge.is-minor { background: #fef3c7; color: #b45309; }
.minor-guardian-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin-top: .9rem; padding: .7rem .95rem; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 9px; background: #fffbeb; }
.minor-guardian-notice.is-satisfied { border-color: #a7f3d0; border-left-color: #10b981; background: #ecfdf5; }
.minor-guardian-notice.is-satisfied .guardian-badge { background: #dcfce7; border-color: #86efac; color: #15803d; }
.minor-guardian-notice.is-satisfied [data-minor-notice-text] { color: #065f46; }
.minor-guardian-copy { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .8rem; font-weight: 600; color: #92400e; }
.minor-guardian-btn { border: 1px solid #f59e0b; border-radius: 7px; padding: .42rem .75rem; background: #fff; color: #b45309; font: 700 .76rem/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.minor-guardian-btn:hover { background: #fef3c7; }
.guardian-badge { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; font-size: .68rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.companion-card > header { margin-bottom: .75rem; }
.companion-title-row { display: inline-flex; align-items: center; gap: .5rem; }
.companion-card:has([data-companion-relation-wrap]:not([hidden])) .companion-address-field { grid-column: 1 / -1; }
.foreign-guest-panel { padding: 1rem 1.05rem; border: 1px solid #bfdbfe; border-left: 4px solid #2563eb; border-radius: 10px; background: #f8fbff; }
.foreign-panel-header { margin-bottom: .8rem; }
.foreign-panel-header h3 { margin: .3rem 0 .15rem; color: #1e3a8a; font-size: .95rem; }
.foreign-panel-header p { margin: 0; color: #475569; font-size: .77rem; }
.foreign-badge { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: .68rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.form-c-aligned { display: flex; align-items: flex-end; min-height: 39px; padding-bottom: .45rem; }
.stay-extras { margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid #eef2f7; }
.stay-extras h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; color: #334155; font-size: .88rem; }
.stay-extras h3 span { padding: .16rem .42rem; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .67rem; font-weight: 650; }
.form-c-field label, .consent label { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: #334155; font-size: .85rem; }
.form-c-field input, .consent input { width: 1rem; height: 1rem; accent-color: #2563eb; }
.consent { padding: .95rem 1rem; border: 1px solid #dbeafe; border-radius: 8px; background: #f8fbff; }
.companion-panel { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #eef2f7; }
.companion-panel-header, .companion-card > header, .companion-verification > header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.companion-panel-header h3, .companion-verification h3 { margin: 0; color: #0f172a; font-size: .88rem; }
.companion-panel-header p, .companion-verification header p { margin: .12rem 0 0; color: #64748b; font-size: .74rem; line-height: 1.35; }
.companion-count-control { width: min(100%, 180px); flex: 0 0 180px; }
.companion-count-control label { display: block; margin-bottom: .35rem; color: #334155; font-size: .78rem; font-weight: 700; }
.companion-count-control input { height: 42px !important; }
.companion-count-control small { display: block; margin-top: .3rem; color: #64748b; font-size: .69rem; line-height: 1.3; }
.companion-card, .companion-verification { margin-top: 1rem; padding: 1rem; border: 1px solid #dce3ec; border-radius: 9px; background: #fbfdff; }
.companion-card > header strong { color: #0f172a; font-size: .88rem; }
.companion-remove { border: 0; background: transparent; color: #b91c1c; font: 700 .78rem/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.companion-remove:hover { text-decoration: underline; }
.companion-empty { margin: .8rem 0 0; color: #64748b; font-size: .8rem; }
.companion-verification-list { display: grid; gap: 1rem; margin-top: 1rem; }
.camera-quality { margin: .5rem 0 0; padding: .45rem .6rem; border-radius: 6px; font-size: .75rem; }
.camera-quality[data-state="warning"] { background: #fffbeb; color: #b45309; }
.camera-quality[data-state="ok"] { background: #f0fdf4; color: #15803d; }
.ocr-button { border: 1px solid #bfdbfe; border-radius: 7px; padding: .55rem .75rem; background: #eff6ff; color: #1d4ed8; font: 700 .78rem/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.ocr-button:hover { background: #dbeafe; }
.ocr-note { display: inline-block; margin-left: .6rem; }
.wizard-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; border-top: 1px solid #dce3ec; background: #fff; }
.wizard-footer > div, .wizard-actions { display: flex; align-items: center; gap: .65rem; }
.wizard-footer [data-wizard-note] { color: #64748b; font-size: .78rem; }
.wizard-back, .wizard-continue, .wizard-submit { min-height: 38px; border-radius: 8px; padding: 0 1rem; font: 700 .84rem/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.wizard-back { border: 1px solid #dce3ec; background: #fff; color: #334155; }
.wizard-back:hover { background: #f8fafc; border-color: #cbd5e1; }
.wizard-continue, .wizard-submit { min-width: 118px; border: 1px solid #2563eb; background: #2563eb; color: #fff; }
.wizard-continue:hover, .wizard-submit:hover { background: #1d4ed8; }
.wizard-submit[disabled] { cursor: wait; opacity: .7; }

@media (max-width: 900px) {
  .role-hotel .main { padding: 16px; }
  .wizard-panel { padding: 1rem; }
  .checkin-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-camera-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .role-hotel .sidebar { display: flex; width: 240px; transform: translateX(-100%); box-shadow: 12px 0 32px rgba(15,23,42,.2); }.role-hotel.sidebar-open .sidebar { transform: translateX(0); }.role-hotel .sidebar-backdrop { position: fixed; z-index: 90; inset: 0; display: block; border: 0; background: rgba(15,23,42,.38); }.role-hotel .sidebar-backdrop[hidden] { display: none; }.sidebar-toggle em { display: none; }
  .role-hotel .main { padding: 14px 12px 84px; }
  .checkin-header { align-items: flex-start; }
  .checkin-header h1 { font-size: 1.45rem; }
  .checkin-security-note { display: none; }
  .checkin-wizard { border-radius: 10px; }
  .wizard-steps { gap: .38rem; padding: .75rem .8rem; }
  .wizard-steps button { gap: 0; }
  .wizard-steps button span { display: none; }
  .wizard-steps button b { width: 1.7rem; height: 1.7rem; }
  .wizard-steps i { min-width: 1.1rem; }
  .wizard-panel { padding: 1rem; }
  .step-heading { margin-bottom: 1rem; }
  .guest-count-prompt { align-items: stretch; flex-direction: column; }
  .checkin-grid, .checkin-grid--3 { grid-template-columns: 1fr; gap: .75rem; }
  .checkin-span-full, .checkin-span-2 { grid-column: auto; }
  .companion-panel-header { flex-direction: column; }
  .companion-count-control { width: 100%; flex-basis: auto; }
  .wizard-footer { position: sticky; bottom: 0; z-index: 4; padding: .85rem 1rem; }
  .wizard-footer [data-wizard-note] { display: none; }
  .wizard-footer, .wizard-footer > div, .wizard-actions { width: 100%; }
  .wizard-back, .wizard-continue, .wizard-submit { flex: 1; min-width: 0; }
}
