:root {
  color-scheme: light;
  --ink: #153529;
  --muted: #65776e;
  --line: #dfe9e2;
  --surface: #ffffff;
  --canvas: #f4f8f5;
  --green: #287a52;
  --green-dark: #175d3b;
  --green-soft: #e8f5ed;
  --danger: #a02929;
  --shadow: 0 20px 50px rgba(24, 67, 47, 0.12);
}

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

html {
  min-height: 100%;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select {
  font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 300px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(40, 122, 82, 0.25);
  outline-offset: 2px;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    linear-gradient(rgba(245, 250, 246, 0.76), rgba(245, 250, 246, 0.92)),
    url("/assets/icon-bali-background.jpg") center / cover fixed;
}

.auth-layout {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-brand {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background:
    linear-gradient(145deg, rgba(25, 91, 56, 0.83), rgba(68, 128, 59, 0.72)),
    url("/assets/icon-bali-background.jpg") center / cover;
}

.auth-brand img {
  width: min(100%, 330px);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(9, 41, 25, 0.28));
}

.auth-brand p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 58px);
  background: rgba(255, 255, 255, 0.97);
}

.eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.auth-card-heading p,
.page-heading p {
  margin-top: 9px;
  color: var(--muted);
}

.auth-card form {
  margin-top: 30px;
}

.auth-card label {
  display: block;
  margin: 14px 0 7px;
  font-size: 13px;
  font-weight: 750;
}

.auth-card input,
.search-control input,
.page-size-control select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbdad0;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.auth-card input {
  padding: 11px 13px;
  font-size: 16px;
}

.auth-card input:focus,
.search-control input:focus,
.page-size-control select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(40, 122, 82, 0.12);
}

.auth-card button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
  color: #fff;
  background: var(--green);
}

.auth-card button:hover {
  background: var(--green-dark);
}

.auth-card button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-loading .spinner {
  display: block;
}

.form-error {
  min-height: 21px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 12px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.topbar-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.topbar-brand strong,
.topbar-brand small {
  display: block;
}

.topbar-brand strong {
  font-size: 16px;
}

.topbar-brand small {
  color: var(--muted);
  font-size: 11px;
}

.secondary-button {
  padding: 8px 15px;
  border: 1px solid #cbdad0;
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green-dark);
}

.secondary-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.dashboard-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 38px 24px 60px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-card,
.member-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(28, 74, 52, 0.055);
}

.stat-card {
  padding: 20px;
  border-radius: 15px;
}

.stat-card span,
.page-size-control span,
.search-control span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.1;
}

.member-panel {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 16px;
}

.member-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
}

.search-control {
  width: min(100%, 430px);
}

.search-control input {
  margin-top: 6px;
  padding: 9px 12px;
}

.page-size-control {
  min-width: 88px;
}

.page-size-control select {
  margin-top: 6px;
  padding: 8px 30px 8px 10px;
}

.member-feedback {
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 20px;
  border-bottom: 1px solid #e9efeb;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #f8faf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  font-size: 13px;
}

.member-name {
  font-weight: 750;
}

tbody tr:hover {
  background: #fbfdfb;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.pagination p {
  color: var(--muted);
  font-size: 12px;
}

.pagination-actions {
  display: flex;
  gap: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .auth-page {
    display: block;
    padding: 0;
  }

  .auth-layout {
    min-height: 100vh;
    min-height: 100svh;
    display: block;
    border: 0;
    border-radius: 0;
  }

  .auth-brand {
    min-height: 220px;
    padding: 28px 24px;
  }

  .auth-brand img {
    width: min(72%, 250px);
    max-height: 170px;
  }

  .auth-brand p {
    display: none;
  }

  .auth-card {
    min-height: calc(100svh - 220px);
    justify-content: flex-start;
    padding: 32px 24px max(32px, env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: 66px;
    padding: 8px 16px;
  }

  .topbar-brand img {
    width: 44px;
    height: 44px;
  }

  .dashboard-shell {
    padding: 26px 14px 40px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
  }

  .stat-card strong {
    margin: 0;
    font-size: 24px;
  }

  .member-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-size-control {
    width: 100%;
  }

  .table-scroll {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody tr {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
  }

  td {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
  }

  .member-name {
    font-size: 15px;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Refined admin interface */
:root {
  --ink: #18332b;
  --muted: #687b74;
  --line: #e2ebe6;
  --surface: #ffffff;
  --canvas: #f4f8f5;
  --green: #287b52;
  --green-dark: #175c3b;
  --green-soft: #e8f5ed;
  --lime-soft: #f1f8df;
  --blue-soft: #eaf4f4;
  --danger: #a02929;
  --shadow: 0 26px 70px rgba(19, 63, 43, 0.15);
}

body,
button,
input,
select {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-page {
  background:
    linear-gradient(120deg, rgba(241, 248, 240, 0.93), rgba(249, 252, 249, 0.8)),
    url("/assets/icon-bali-background.jpg") center 35% / cover fixed;
}

.auth-layout {
  width: min(100%, 1030px);
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-brand {
  min-height: 610px;
  align-items: stretch;
  justify-content: flex-end;
  padding: 48px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 72, 44, 0.1) 0%, rgba(13, 67, 42, 0.87) 100%),
    url("/assets/icon-bali-background.jpg") center / cover;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
}

.auth-brand img {
  width: min(82%, 350px);
  margin: 0 auto 56px;
  display: block;
  filter: drop-shadow(0 20px 25px rgba(8, 42, 25, 0.2));
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.brand-copy h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.auth-brand .brand-copy p {
  max-width: 400px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
}

.auth-mobile-logo {
  display: none;
}

.auth-card {
  padding: clamp(42px, 6vw, 68px);
  background: rgba(255, 255, 255, 0.98);
}

.auth-card-heading .eyebrow {
  margin-bottom: 10px;
}

.auth-card-heading h1 {
  font-size: clamp(31px, 4vw, 42px);
}

.auth-card-heading p {
  max-width: 330px;
  margin-top: 12px;
  line-height: 1.65;
}

.auth-card form {
  margin-top: 32px;
}

.auth-card label {
  margin: 17px 0 8px;
  color: #355148;
  font-size: 12px;
  letter-spacing: 0.015em;
}

.input-shell {
  position: relative;
}

.auth-card .input-shell input {
  min-height: 52px;
  padding: 12px 14px 12px 45px;
  border-color: #d5e2da;
  border-radius: 12px;
  background: #fbfdfb;
}

.auth-card input::placeholder,
.search-control input::placeholder {
  color: #9aa9a2;
}

.input-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  transform: translateY(-50%);
  border: 1.5px solid #759087;
  border-radius: 50%;
  color: #607c72;
  font-size: 9px;
  font-weight: 800;
}

.input-icon-lock {
  width: 16px;
  height: 14px;
  left: 16px;
  border-radius: 3px;
}

.input-icon-lock::before {
  content: "";
  width: 8px;
  height: 7px;
  position: absolute;
  top: -7px;
  left: 2px;
  border: 1.5px solid #759087;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.auth-card .password-shell input {
  padding-right: 64px;
}

.auth-card .password-toggle {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 4px 9px;
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  color: var(--green);
  background: transparent;
  font-size: 11px;
}

.auth-card .password-toggle:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}

.auth-card .primary-button {
  min-height: 52px;
  margin-top: 22px;
  border-radius: 12px;
  position: relative;
  background: linear-gradient(135deg, #2f865a, #1e6744);
  box-shadow: 0 10px 22px rgba(31, 105, 69, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-card .primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #27794f, #175c3b);
  box-shadow: 0 13px 25px rgba(31, 105, 69, 0.28);
}

.button-arrow {
  position: absolute;
  right: 18px;
  font-size: 18px;
  font-weight: 400;
}

.form-error {
  min-height: 20px;
  margin-top: 10px;
  line-height: 1.5;
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  color: #8a9c95;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(146, 202, 132, 0.11), transparent 29%),
    var(--canvas);
}

.topbar {
  min-height: 74px;
  padding: 9px max(24px, calc((100vw - 1240px) / 2));
  border-bottom-color: rgba(219, 231, 224, 0.9);
  box-shadow: 0 3px 18px rgba(23, 70, 48, 0.045);
}

.topbar-brand {
  gap: 11px;
}

.topbar-brand img {
  width: 48px;
  height: 48px;
}

.topbar-brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.topbar-brand small {
  margin-top: 1px;
  font-size: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  color: #577168;
  font-size: 11px;
  font-weight: 750;
}

.logout-button {
  min-height: 39px;
  border-radius: 9px;
  font-size: 12px;
}

.dashboard-shell {
  width: min(100%, 1240px);
  padding: 42px 24px 68px;
}

.page-heading {
  align-items: flex-end;
}

.page-heading h1 {
  font-size: clamp(30px, 4vw, 42px);
}

.page-heading p {
  font-size: 13px;
}

.last-updated {
  margin-bottom: 3px;
  color: #7a8e86 !important;
  font-size: 11px !important;
}

.stat-grid {
  gap: 14px;
  margin-top: 30px;
}

.stat-card {
  min-height: 138px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 17px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(25, 74, 51, 0.055);
}

.stat-card > div:last-child {
  min-width: 0;
}

.stat-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 850;
}

.stat-members {
  color: #267651;
}

.stat-members .stat-icon {
  color: #267651;
  background: var(--green-soft);
}

.stat-today {
  color: #7b8c2d;
}

.stat-today .stat-icon {
  color: #71852a;
  background: var(--lime-soft);
  font-size: 23px;
  font-weight: 500;
}

.stat-visits {
  color: #397b7d;
}

.stat-visits .stat-icon {
  color: #397b7d;
  background: var(--blue-soft);
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 30px;
}

.stat-card small {
  display: block;
  margin-top: 5px;
  color: #8b9c95;
  font-size: 10px;
}

.member-panel {
  margin-top: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(25, 74, 51, 0.055);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
}

.panel-heading h2 {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.015em;
}

.panel-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.member-count {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 800;
}

.member-toolbar {
  align-items: center;
  flex-wrap: wrap;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
}

.search-control {
  width: min(100%, 400px);
}

.search-shell {
  position: relative;
}

.search-control input {
  min-height: 44px;
  margin-top: 0;
  padding: 9px 13px 9px 42px;
  border-radius: 10px;
  font-size: 13px;
}

.search-icon {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  transform: translateY(-54%);
  border: 1.7px solid #789087;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  width: 6px;
  height: 1.7px;
  position: absolute;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: #789087;
}

.page-size-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-size-control span {
  flex: 0 0 auto;
}

.page-size-control select {
  width: 104px;
  min-height: 44px;
  margin-top: 0;
  border-radius: 10px;
  font-size: 12px;
}

.toolbar-actions,
.date-filter {
  display: flex;
  align-items: center;
}

.toolbar-actions {
  gap: 9px;
}

.date-filter {
  min-height: 44px;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border: 1px solid #d5e2da;
  border-radius: 10px;
  background: #fff;
}

.date-filter label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-filter label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.date-filter input {
  width: 117px;
  min-height: 34px;
  padding: 4px 3px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  outline: none;
}

.date-filter:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(40, 122, 82, 0.1);
}

.date-filter input:focus-visible {
  outline: none;
}

.date-separator {
  color: #a5b2ad;
  font-size: 11px;
}

.clear-filter-button {
  min-height: 31px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 9px;
}

.clear-filter-button:hover:not(:disabled) {
  background: #d9eee2;
}

.clear-filter-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.export-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2f865a, #1e6744);
  box-shadow: 0 7px 16px rgba(31, 105, 69, 0.16);
  font-size: 11px;
  white-space: nowrap;
}

.export-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #287a51, #175c3b);
}

.export-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.export-icon {
  width: 15px;
  height: 12px;
  position: relative;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.export-icon::before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  top: -5px;
  left: 3.5px;
  transform: rotate(45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.export-icon::after {
  content: "";
  width: 1.5px;
  height: 9px;
  position: absolute;
  top: -8px;
  left: 5.3px;
  background: currentColor;
}

.export-button.is-loading .export-icon {
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.export-button.is-loading .export-icon::before,
.export-button.is-loading .export-icon::after {
  display: none;
}

.member-feedback {
  padding: 55px 20px;
  font-size: 13px;
}

th,
td {
  padding: 15px 20px;
}

th {
  background: #f7faf8;
  font-size: 10px;
}

td {
  color: #425c53;
  font-size: 12px;
}

.member-name {
  color: var(--ink);
  font-size: 13px;
}

tbody tr {
  transition: background 120ms ease;
}

.pagination {
  min-height: 70px;
}

.pagination-actions .secondary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 11px;
}

@media (max-width: 820px) {
  .auth-page {
    display: block;
    padding: 0;
    background: #fff;
  }

  .auth-layout {
    min-height: 100vh;
    min-height: 100svh;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-brand {
    display: none;
  }

  .auth-card {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    padding: max(30px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.7), #fff 38%),
      url("/assets/icon-bali-background.jpg") top center / 100% auto no-repeat;
  }

  .auth-mobile-logo {
    display: block;
    margin: 0 auto 20px;
    text-align: center;
  }

  .auth-mobile-logo img {
    width: min(56vw, 210px);
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(19, 63, 43, 0.12));
  }

  .auth-card-heading,
  .auth-card form,
  .auth-security {
    width: min(100%, 430px);
    margin-right: auto;
    margin-left: auto;
  }

  .auth-card-heading h1 {
    font-size: 32px;
  }

  .auth-card form {
    margin-top: 25px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) and (min-width: 681px) {
  .member-toolbar {
    align-items: stretch;
  }

  .search-control,
  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 64px;
    padding: 7px 14px;
  }

  .topbar-brand img {
    width: 41px;
    height: 41px;
  }

  .topbar-brand small,
  .online-indicator {
    display: none;
  }

  .logout-button {
    padding: 7px 11px;
  }

  .dashboard-shell {
    padding: 26px 13px 42px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .last-updated {
    margin: 0 !important;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 22px;
  }

  .stat-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
  }

  .stat-card > div:last-child {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
  }

  .stat-card strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 25px;
  }

  .stat-card small {
    grid-column: 1;
    margin-top: 2px;
  }

  .member-panel {
    margin-top: 14px;
    border-radius: 15px;
  }

  .panel-heading {
    align-items: flex-start;
    padding: 18px 16px 15px;
  }

  .panel-heading p {
    max-width: 220px;
  }

  .member-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }

  .date-filter {
    grid-column: 1 / -1;
    padding-left: 8px;
  }

  .date-filter label {
    min-width: 0;
    flex: 1 1 0;
  }

  .date-filter input {
    width: 100%;
    min-width: 0;
  }

  .export-button {
    width: 100%;
  }

  .page-size-control {
    justify-content: space-between;
  }

  .page-size-control select {
    width: 120px;
  }

  .table-scroll {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody {
    padding: 0 11px;
  }

  tbody tr {
    margin: 10px 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(25, 74, 51, 0.035);
  }

  td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .member-name {
    padding-bottom: 9px;
    border-bottom: 1px solid #edf2ef;
    font-size: 14px;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
    padding: 15px 12px;
  }

  .pagination-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pagination-actions .secondary-button {
    justify-content: center;
    min-height: 42px;
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .auth-mobile-logo img {
    width: min(52vw, 180px);
    max-height: 125px;
  }

  .auth-card-heading h1 {
    font-size: 29px;
  }

  .panel-heading p {
    display: none;
  }
}
