/* ==========================================================
   Solstitium Reservation Manager
   v36.5 - Check-in page scoped refinement
   Scope: #check-in only
   ========================================================== */

#check-in {
  --checkin-border: rgba(214, 165, 47, 0.48);
  --checkin-border-soft: rgba(214, 165, 47, 0.28);
  --checkin-panel: rgba(18, 17, 12, 0.92);
  --checkin-panel-soft: rgba(32, 28, 18, 0.74);
  --checkin-gold: #f2c94c;
  --checkin-text: #f8edd0;
  --checkin-muted: rgba(248, 237, 208, 0.66);
}

#check-in .sol-checkin-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 24px;
}

#check-in .sol-checkin-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 520px);
  gap: 22px;
  align-items: center;
  min-height: 0;
  padding: 24px 24px;
  border: 1px solid var(--checkin-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 201, 76, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(31, 28, 18, 0.96), rgba(11, 11, 8, 0.94));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

#check-in .sol-checkin-hero .sol-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 76, 0.45);
  background: rgba(242, 201, 76, 0.10);
  color: #ffe8a4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#check-in .page-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.25vw, 2.2rem);
  line-height: 1;
  color: var(--checkin-text);
  letter-spacing: -0.04em;
}

#check-in .sol-checkin-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  justify-self: end;
  width: 100%;
}

#check-in .checkin-search {
  width: 100%;
  min-height: 48px;
  padding: 0 17px;
  border-radius: 15px;
  border: 1px solid var(--checkin-border-soft);
  background: rgba(0, 0, 0, 0.34);
  color: var(--checkin-text);
  font-size: 0.92rem;
  outline: none;
}

#check-in .checkin-search:focus {
  border-color: rgba(242, 201, 76, 0.82);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.12);
}

#check-in .checkin-scan-btn,
#check-in #btn-print-bookings,
#check-in .checkin-table button {
  border: 1px solid rgba(242, 201, 76, 0.54);
  border-radius: 14px;
  background: linear-gradient(135deg, #f2c94c, #bd8d20);
  color: #171105;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 22px rgba(242, 201, 76, 0.15);
  cursor: pointer;
}

#check-in .checkin-scan-btn {
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}

#check-in .sol-checkin-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

#check-in .checkin-kpi-card {
  min-height: 92px;
  padding: 18px 18px;
  border: 1px solid var(--checkin-border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 22, 16, 0.98), rgba(12, 12, 9, 0.96));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

#check-in .checkin-kpi-card .kpi-number {
  margin: 0 0 6px;
  color: var(--checkin-gold);
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  line-height: 1;
  font-weight: 900;
}

#check-in .checkin-kpi-card .kpi-label {
  color: var(--checkin-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#check-in .sol-checkin-list-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px;
}

#check-in .check-in-subtitle {
  margin: 0;
  color: var(--checkin-text);
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

#check-in .sol-checkin-list-head span {
  color: var(--checkin-muted);
  font-size: 0.82rem;
}

#check-in #btn-print-bookings {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.78rem;
  white-space: nowrap;
}

#check-in .sol-checkin-table-wrapper {
  border: 1px solid var(--checkin-border-soft);
  border-radius: 18px;
  background: rgba(10, 10, 8, 0.82);
  overflow: hidden;
}

#check-in .checkin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--checkin-text);
}

#check-in .checkin-table thead th {
  padding: 14px 15px;
  border-bottom: 1px solid rgba(242, 201, 76, 0.20);
  background: rgba(242, 201, 76, 0.06);
  color: #ffe8a4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

#check-in .checkin-table tbody td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(242, 201, 76, 0.11);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.9rem;
  vertical-align: middle;
}

#check-in .checkin-table tbody tr:last-child td {
  border-bottom: 0;
}

#check-in .checkin-table tbody tr:hover td {
  background: rgba(242, 201, 76, 0.055);
}

#check-in .checkin-table button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.78rem;
}

#check-in .status-badge,
#check-in .badge,
#check-in .pill,
#check-in [class*="status"] {
  max-width: fit-content;
}

#check-in .checkin-table .status-arrivato,
#check-in .checkin-table .arrivato,
#check-in .checkin-table span[class*="arriv"] {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(32, 201, 151, 0.18);
  color: #71e6b8;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 920px) {
  #check-in .sol-checkin-shell {
    padding: 18px 14px;
  }

  #check-in .sol-checkin-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  #check-in .sol-checkin-actions {
    justify-self: stretch;
    grid-template-columns: 1fr;
  }

  #check-in .sol-checkin-kpi-row {
    grid-template-columns: 1fr;
  }

  #check-in .sol-checkin-list-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #check-in .sol-checkin-table-wrapper {
    overflow-x: auto;
  }

  #check-in .checkin-table {
    min-width: 720px;
  }
}
