:root {
  --paper: #f4ead8;
  --paper-soft: #fff9ed;
  --ink: #251f18;
  --seal: #9f3a22;
  --gold: #c98d38;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(201, 141, 56, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(159, 58, 34, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,0.35), transparent 45%);
}

h1, h2, h3, .display-font {
  font-family: inherit;
}

.ink-panel {
  background:
    linear-gradient(145deg, rgba(37,31,24,0.98), rgba(61,43,28,0.96)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,0.04) 18px 19px);
  box-shadow: 18px 0 60px rgba(37, 31, 24, 0.25);
}

.nav-item {
  display: block;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  color: rgba(245, 245, 244, 0.78);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:focus {
  outline: none;
  box-shadow: none;
}

.nav-item:focus-visible {
  outline: 2px solid rgba(201, 141, 56, 0.7);
  outline-offset: 2px;
}

.nav-item:hover, .nav-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ed;
  transform: translateX(3px);
}

.card {
  border: 1px solid rgba(120, 113, 108, 0.28);
  border-radius: 1.5rem;
  background: rgba(255, 249, 237, 0.82);
  box-shadow: 0 18px 50px rgba(79, 70, 58, 0.11);
  backdrop-filter: blur(14px);
}

.card label:not([class]) {
  display: block;
  min-width: 0;
}

.dashboard-action-row {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.dashboard-action-row .btn-primary,
.dashboard-action-row .btn-secondary {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.72rem clamp(0.6rem, 2.4vw, 1.1rem);
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  line-height: 1;
  white-space: nowrap;
}

.dashboard-count-value,
.dashboard-money-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dashboard-count-value {
  font-size: clamp(2rem, 10vw, 3rem);
}

.dashboard-money-value {
  font-size: clamp(0.9rem, 4.5vw, 2.25rem);
}

@media (min-width: 768px) {
  .dashboard-action-row {
    width: auto;
    gap: 0.75rem;
  }

  .dashboard-action-row .btn-primary,
  .dashboard-action-row .btn-secondary {
    flex: 0 0 auto;
  }
}

.btn-primary {
  border-radius: 999px;
  background: var(--ink);
  color: #fff7ed;
  padding: 0.75rem 1.15rem;
  font-weight: 800;
  transition: 160ms ease;
}

.btn-primary:hover {
  background: var(--seal);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(87, 83, 78, 0.28);
  border-radius: 999px;
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  font-weight: 800;
  transition: 160ms ease;
}

.btn-secondary:hover {
  border-color: var(--seal);
  color: var(--seal);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  padding: 0.75rem 1.15rem;
  font-weight: 800;
  transition: 160ms ease;
}

.btn-danger:hover {
  background: #991b1b;
  transform: translateY(-1px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  transition: 160ms ease;
}

.btn-icon:hover {
  background: rgba(37, 31, 24, 0.08);
}

.touch-row {
  min-height: 2.75rem;
}

@media (min-width: 640px) {
  .touch-row {
    min-height: 2.25rem;
  }
}

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 249, 237, 0.94);
  backdrop-filter: blur(8px);
}

/* ----- mobile chrome (drawer + bottom tab bar) -------------------------- */

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(145deg, rgba(37,31,24,0.98), rgba(61,43,28,0.96));
  color: #fff7ed;
  box-shadow: 0 12px 24px rgba(37, 31, 24, 0.18);
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.admin-topbar.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.admin-topbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.admin-topbar-brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.admin-topbar-brand span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(255, 247, 237, 0.7);
}

.admin-topbar-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ed;
  transition: 160ms ease;
}

.admin-topbar-hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.admin-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.admin-drawer-root[data-open="true"] {
  pointer-events: auto;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 31, 24, 0.55);
  opacity: 0;
  transition: opacity 200ms ease;
}

.admin-drawer-root[data-open="true"] .admin-drawer-backdrop {
  opacity: 1;
}

.admin-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(86vw, 22rem);
  background:
    linear-gradient(155deg, rgba(37,31,24,0.99), rgba(61,43,28,0.97));
  color: #fff7ed;
  padding: 1.25rem 1.25rem 2.5rem;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.admin-drawer-root[data-open="true"] .admin-drawer-panel {
  transform: translateX(0);
}

.admin-drawer-close {
  align-self: flex-end;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  font-weight: 800;
}

.admin-drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: rgba(245, 245, 244, 0.85);
  font-weight: 700;
  transition: 160ms ease;
}

.admin-drawer-nav-item:hover,
.admin-drawer-nav-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ed;
}

.admin-drawer-logout {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-weight: 800;
}

.admin-bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.45rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 249, 237, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(120, 113, 108, 0.18);
  box-shadow: 0 -10px 26px rgba(37, 31, 24, 0.08);
}

.admin-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.25rem;
  border-radius: 1rem;
  color: rgba(37, 31, 24, 0.6);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.admin-bottom-tab[aria-current="page"],
.admin-bottom-tab:hover {
  color: var(--seal);
  background: rgba(159, 58, 34, 0.08);
}

.admin-bottom-tab svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1024px) {
  .admin-topbar,
  .admin-bottom-tabs {
    display: none;
  }
}

.input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 1rem;
  border: 1px solid rgba(120, 113, 108, 0.35);
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  font: inherit;
  line-height: 1.5;
  padding: 0.75rem 0.95rem;
  outline: none;
}

input.input,
select.input {
  height: 3.25rem;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(37, 31, 24, 0.72) 50%),
    linear-gradient(135deg, rgba(37, 31, 24, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

input[type="date"].input {
  appearance: none;
  -webkit-appearance: none;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  text-align: left;
}

input[type="date"].input::-webkit-date-and-time-value {
  display: block;
  min-inline-size: 0;
  min-block-size: 1.5em;
  line-height: 1.5;
  text-align: left;
}

input[type="date"].input::-webkit-calendar-picker-indicator {
  margin-inline-start: 0;
}

/* Chinese-formatted date display overlay: hide native YYYY/MM/DD or DD/MM/YYYY
   text but keep the calendar picker UI fully usable. */
.date-field-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.date-field-wrap > input[type="date"].input {
  color: transparent;
  caret-color: transparent;
  background-color: rgba(255, 255, 255, 0.62);
}

.date-field-wrap > input[type="date"].input::-webkit-datetime-edit,
.date-field-wrap > input[type="date"].input::-webkit-datetime-edit-fields-wrapper,
.date-field-wrap > input[type="date"].input::-webkit-datetime-edit-text,
.date-field-wrap > input[type="date"].input::-webkit-datetime-edit-year-field,
.date-field-wrap > input[type="date"].input::-webkit-datetime-edit-month-field,
.date-field-wrap > input[type="date"].input::-webkit-datetime-edit-day-field {
  color: transparent;
}

.date-field-display {
  position: absolute;
  left: 0;
  right: 2.5rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 0.95rem;
  font: inherit;
  line-height: 1.5;
  color: var(--ink);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-field-display.is-empty {
  color: rgba(37, 31, 24, 0.42);
}

.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 141, 56, 0.16);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(159, 58, 34, 0.1);
  color: var(--seal);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.public-room-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  border: 1px solid rgba(87, 83, 78, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.48rem;
  color: rgba(37, 31, 24, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: 160ms ease;
}

.public-room-view-button:hover,
.public-room-view-active {
  border-color: rgba(159, 58, 34, 0.55);
  background: rgba(159, 58, 34, 0.1);
  color: var(--seal);
  transform: translateY(-1px);
}

.public-room-view-button svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-room-view-button svg path[d*="h5v5"],
.public-room-view-button svg path[d*="h5v8"] {
  fill: currentColor;
  stroke: none;
}

.public-room-list-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.public-room-list-media {
  display: block;
  flex: 0 0 auto;
}

.public-room-preview-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.22);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 24% 18%, rgba(201, 141, 56, 0.22), transparent 16rem),
    linear-gradient(145deg, rgba(255, 249, 237, 0.96), rgba(237, 224, 205, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 14px 32px rgba(37, 31, 24, 0.1);
}

.public-room-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.public-room-preview-media span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(37, 31, 24, 0.45);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.card:hover .public-room-preview-media img {
  transform: scale(1.035);
}

.public-room-masonry {
  column-count: 1;
  column-gap: 1.25rem;
}

.public-room-masonry-card,
.public-room-load-more,
.public-room-empty {
  break-inside: avoid;
}

.public-room-masonry-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.25rem;
}

.public-room-load-more {
  width: 100%;
  padding: 1.5rem 0;
  text-align: center;
}

@media (min-width: 640px) {
  .public-room-view-button {
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
  }

  .public-room-view-button svg {
    width: 1rem;
    height: 1rem;
  }

  .public-room-list-card {
    flex-direction: row;
  }

  .public-room-list-media {
    width: min(34vw, 15rem);
  }
}

.admin-room-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.admin-room-card-grid .public-room-masonry-card {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  margin-bottom: 0;
}

.admin-room-action-button {
  min-height: 2.25rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

@media (min-width: 768px) {
  .admin-room-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 1280px) {
  .admin-room-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (min-width: 1536px) {
  .admin-room-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .public-room-masonry {
    column-count: 2;
  }
}

@media (min-width: 1280px) {
  .public-room-masonry {
    column-count: 3;
  }
}

.room-media-shell {
  padding: 1rem 1rem 0.35rem;
}

.room-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.78;
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.22);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 22% 12%, rgba(201, 141, 56, 0.18), transparent 22rem),
    linear-gradient(145deg, rgba(255, 249, 237, 0.96), rgba(237, 224, 205, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 14px 32px rgba(37, 31, 24, 0.12);
}

.room-media-scroll,
.gallery-screen-scroll {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.room-media-slide,
.gallery-screen-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-align: center;
  background:
    radial-gradient(circle at 18% 10%, rgba(201, 141, 56, 0.2), transparent 20rem),
    linear-gradient(145deg, rgba(255, 249, 237, 0.96), rgba(237, 224, 205, 0.9));
}

.media-blur-backdrop {
  position: absolute;
  inset: -1.25rem;
  width: calc(100% + 2.5rem);
  height: calc(100% + 2.5rem);
  object-fit: cover;
  opacity: 0.42;
  filter: blur(22px) saturate(0.9);
  transform: scale(1.04);
}

.room-media-slide::after,
.gallery-screen-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 249, 237, 0.42), rgba(255, 249, 237, 0.12));
  pointer-events: none;
}

.room-media-hit,
.gallery-media-hit {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.room-media-object,
.gallery-media-object {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  box-shadow: 0 16px 34px rgba(37, 31, 24, 0.16);
}

.room-media-fallback,
.gallery-media-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 249, 237, 0.72);
  color: var(--ink);
  font-weight: 900;
}

.media-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 2.3rem;
  height: 2.6rem;
  transform: translate(-42%, -50%);
  background: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 3px 5px rgba(37, 31, 24, 0.34));
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 8C11 8 8 20 8 32C8 44 11 56 20 56C23 56 26 55 29 53L52 38C57 35 57 29 52 26L29 11C26 9 23 8 20 8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 8C11 8 8 20 8 32C8 44 11 56 20 56C23 56 26 55 29 53L52 38C57 35 57 29 52 26L29 11C26 9 23 8 20 8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.media-play-button::after {
  content: none;
}

.gallery-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.78;
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.22);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 22% 12%, rgba(201, 141, 56, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(255, 249, 237, 0.96), rgba(237, 224, 205, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 18px 48px rgba(37, 31, 24, 0.12);
}

.gallery-thumb-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.25rem 0.1rem 0.65rem;
  scroll-snap-type: x proximity;
}

.gallery-thumb {
  transition: 160ms ease;
  scroll-snap-align: start;
}

.gallery-thumb-media {
  position: relative;
  display: block;
  height: 4rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(255, 249, 237, 0.96), rgba(237, 224, 205, 0.9));
}

.gallery-thumb-media img,
.gallery-thumb-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.2rem;
  height: 1.35rem;
  transform: translate(-42%, -50%);
  background: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 2px 3px rgba(37, 31, 24, 0.34));
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 8C11 8 8 20 8 32C8 44 11 56 20 56C23 56 26 55 29 53L52 38C57 35 57 29 52 26L29 11C26 9 23 8 20 8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 8C11 8 8 20 8 32C8 44 11 56 20 56C23 56 26 55 29 53L52 38C57 35 57 29 52 26L29 11C26 9 23 8 20 8Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gallery-thumb-play::after {
  content: none;
}

.payments-table .col-tenant {
  width: 260px;
  min-width: 260px;
}

.payments-table .col-month,
.payments-table .col-amount,
.payments-table .col-status {
  width: 120px;
  min-width: 120px;
}

.payments-table .col-actions {
  width: 180px;
  min-width: 180px;
}

.payments-table .col-note {
  min-width: 240px;
}

.payment-tenant-link {
  color: var(--seal);
  cursor: pointer;
}

.payment-tenant-link:hover {
  text-decoration: underline;
}

.payment-action-button {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: center;
}

.payment-mobile-card {
  border: 1px solid rgba(120, 113, 108, 0.24);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.64);
  padding: 1rem;
}

.admin-mobile-card {
  border: 1px solid rgba(120, 113, 108, 0.24);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.64);
  padding: 1rem;
}

.admin-action-button {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: center;
}

.admin-list-row-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.admin-list-row-mobile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 0.55rem;
}

.admin-list-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-list-row-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 900;
  color: rgb(28, 25, 23);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.admin-list-row-subtitle {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgb(87, 83, 78);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row-meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgb(120, 113, 108);
  line-height: 1;
}

.admin-list-row-meta-dot {
  opacity: 0.5;
}

.admin-list-row-side {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.1;
}

.admin-list-row-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: rgb(146, 64, 14);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.admin-list-row-unit {
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgb(120, 113, 108);
  white-space: nowrap;
}

.admin-list-row-overdue-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgb(220, 38, 38);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.admin-room-list-action-button {
  min-height: 2.75rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.1rem;
}

@media (min-width: 640px) {
  .admin-room-list-action-button {
    min-height: 2rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.78rem;
  }
}

.filter-chip-option {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  border: 1px solid rgba(120, 113, 108, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.55rem 0.9rem;
  transition: 160ms ease;
}

.payment-summary-tile {
  position: relative;
  display: block;
  border: 1px solid rgba(120, 113, 108, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.85rem 0.9rem;
  transition: 160ms ease;
}

@media (min-width: 768px) {
  .payment-summary-tile {
    padding: 1rem 1.1rem;
  }
}

.payment-summary-tile:hover {
  border-color: rgba(87, 83, 78, 0.5);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -16px rgba(41, 37, 36, 0.45);
}

.payment-summary-tile-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgb(120, 113, 108);
}

@media (min-width: 768px) {
  .payment-summary-tile-label {
    font-size: 0.82rem;
  }
}

.payment-summary-tile-value {
  margin-top: 0.5rem;
  font-size: clamp(0.85rem, 4.2vw, 1.1rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 768px) {
  .payment-summary-tile-value {
    font-size: 1.55rem;
  }
}

.payment-summary-tile-hint {
  margin-top: 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(120, 113, 108, 0.7);
  opacity: 0;
  transition: 160ms ease;
}

.payment-summary-tile:hover .payment-summary-tile-hint,
.payment-summary-tile.is-active .payment-summary-tile-hint {
  opacity: 1;
}

@media (min-width: 768px) {
  .payment-summary-tile-hint {
    font-size: 0.68rem;
  }
}

.payment-summary-tile.is-active {
  border-color: var(--ink);
  background: rgba(244, 234, 216, 0.95);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.payment-summary-tile.is-active .payment-summary-tile-label {
  color: var(--ink);
}

.payment-summary-tile-checkout.has-alert {
  border-color: rgba(180, 83, 9, 0.55);
  background: rgba(255, 247, 224, 0.85);
}

.payment-summary-tile-checkout.has-alert .payment-summary-tile-label {
  color: rgb(146, 64, 14);
}

.payment-summary-tile-checkout.is-active.has-alert {
  border-color: rgb(146, 64, 14);
  background: rgba(254, 240, 199, 0.95);
  box-shadow: inset 0 0 0 1px rgb(146, 64, 14);
}

.payment-filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(87, 83, 78, 0.28);
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.7);
  color: var(--ink);
  transition: 160ms ease;
}

.payment-filter-pill::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  opacity: 0.55;
  transition: 160ms ease;
}

.payment-filter-pill:hover {
  border-color: var(--seal);
  color: var(--seal);
}

.payment-filter-pill:hover::after {
  opacity: 0.9;
}

.payment-filter-pill-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0.6rem 2.1rem 0.6rem 1.05rem;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  color: inherit;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.payment-filter-pill-select:focus {
  outline: none;
}

.payment-filter-pill:focus-within {
  border-color: var(--seal);
  box-shadow: 0 0 0 3px rgba(159, 58, 34, 0.12);
}

.payment-filter-pill[data-payment-filter-active="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff7ed;
}

.payment-filter-pill[data-payment-filter-active="true"]::after {
  opacity: 0.85;
}

.payment-filter-pill[data-payment-filter-active="true"]:hover {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff7ed;
}

@media (max-width: 640px) {
  .payment-filter-pill {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }
  .payment-filter-pill-select {
    padding: 0.6rem 2rem 0.6rem 1rem;
    font-size: 0.82rem;
  }
}

.filter-chip-active,
.filter-chip-option:hover {
  border-color: var(--seal);
  background: rgba(159, 58, 34, 0.1);
  color: var(--seal);
}

.payment-scope-option span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  cursor: pointer;
  border: 1px solid rgba(120, 113, 108, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.55rem 0.9rem;
  transition: 160ms ease;
}

.payment-scope-option input:checked + span {
  border-color: var(--seal);
  background: rgba(159, 58, 34, 0.1);
  color: var(--seal);
}

@media (max-width: 380px) {
  .payment-scope-option span {
    min-height: 2.25rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .payments-table th.payment-sticky-left,
  .payments-table td.payment-sticky-left {
    position: sticky;
    left: 0;
    z-index: 10;
    background: rgba(255, 249, 237, 0.96);
  }

  .payments-table th.payment-sticky-right,
  .payments-table td.payment-sticky-right {
    position: sticky;
    right: 0;
    z-index: 10;
    background: rgba(255, 249, 237, 0.96);
  }

  .payments-table thead th.payment-sticky-left,
  .payments-table thead th.payment-sticky-right {
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
  }
}
