/* GeeBaht Trip — Premium Craft Edition Styles */
:root,
html {
  color-scheme: only light !important;
  supported-color-schemes: only light;
  forced-color-adjust: none !important;
  -webkit-forced-color-adjust: none !important;
  background-color: #f5f9fc;
}

body {
  font-family: 'Kanit', 'Sukhumvit Set', 'Thonburi', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  background-color: #f5f9fc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  touch-action: manipulation;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.hidden,
[hidden] {
  display: none !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#pov-chips,
#entry-cat-row,
#ocr-cat-row,
#settle-hub-chips {
  overscroll-behavior-x: contain;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.premium-card {
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.045), 0 1px 2px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-dock {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.11), 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ticket-notch-l,
.ticket-notch-r {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 9999px;
}

.ticket-notch-l {
  left: -7px;
}

.ticket-notch-r {
  right: -7px;
}

/* Micro-shadows used by the Premium Craft design */
.shadow-2xs {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
}

.safe-dock-bottom {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.anim-fade-up {
  animation: fadeSlideUp 0.14s ease-out;
}

/* Ensure QR code rendered image/canvas stays crisp and centered */
#qr-render-target canvas,
#qr-render-target img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Remove number input spin buttons for clean craft UI */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type='number'] {
  -moz-appearance: textfield;
}

/* Prevent mobile browsers (iOS Safari/Chrome) from auto-zooming on input focus */
input[type='text'],
input[type='number'],
input[type='tel'],
input[type='url'],
input[type='date'],
input[type='search'],
input:not([type]),
textarea,
select {
  font-size: 16px !important;
  line-height: 1.35;
}

#entry-expr-input {
  font-size: 30px !important;
  line-height: 1.15;
}

/* Custom Date Pill with Native Transparent Overlay (Anti-Zoom 16px Preserved) */
.gbt-date-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  height: 32px;
  padding: 0 0.625rem;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.09);
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.gbt-date-pill.flex-1 {
  flex: 1 1 0%;
  min-width: 0;
}

.gbt-date-pill:focus-within {
  border-color: rgba(15, 23, 42, 0.28);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.gbt-date-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

.gbt-date-overlay::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

/* Refined Title Inputs (Entry & OCR) */
.gbt-title-input {
  font-weight: 600;
  color: #0f172a;
}

.gbt-title-input::placeholder {
  font-weight: 400;
  color: #94a3b8;
}

.gbt-title-input-sub {
  font-weight: 400;
  color: #64748b;
}

.gbt-title-input-sub::placeholder {
  font-weight: 400;
  color: #cbd5e1;
}

.gbt-rate-trigger {
  white-space: nowrap;
  max-width: 100%;
}

.gbt-currency-toggle {
  max-width: 100%;
}

/* Manage Trip Craft Inputs & Controls (Anti-Zoom 16px Preserved) */
.gbt-manage-input {
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.gbt-manage-input:focus {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.28);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.gbt-manage-input::placeholder {
  font-weight: 400;
  color: #94a3b8;
  opacity: 1;
}

.gbt-trip-name-input {
  font-weight: 600;
}

.gbt-member-name-input {
  font-weight: 600;
}

.gbt-member-name-input::placeholder {
  font-weight: 400;
  opacity: 0.7;
}

.gbt-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.625rem;
  justify-items: center;
}

.gbt-color-input {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 9999px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
}

.gbt-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.gbt-color-input::-webkit-color-swatch {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 9999px;
}

.gbt-rate-badge {
  min-width: 68px;
  text-align: center;
  display: inline-block;
  flex-shrink: 0;
}

.gbt-h-10 {
  height: 2.5rem;
}
