/* ===== CloverFevers — Clean / Light / Minimal (Letters design system) ===== */
:root {
  --paper: #ffffff;
  --cloud: #f5f5f5;
  --obsidian: #070709;
  --ink: #151515;
  --charcoal: #60606c;
  --slate: #8b8b8b;
  --blue: #2597d0;            /* hanya ikon / penanda kecil */
  --sky-tint: #d7e6f5;
  --sky: linear-gradient(180deg, #779bc1 0%, #9abfda 58%, #cbdcec 100%);
  --line: #ececf0;
  --line-strong: #dcdce2;
  --ok: #2f7d4f;
  --danger: #b4232a;

  --r-pill: 100px;
  --r-input: 12px;
  --r-card: 24px;
  --r-lg: 32px;

  --shadow-sm: 0 1px 2px rgba(36,36,40,.06), 0 1px 1px rgba(228,229,231,.24);
  --shadow-card: 0 1px 2px rgba(36,36,40,.05), 0 17px 37px rgba(16,55,132,.04), 0 4px 12px rgba(16,55,132,.03);
  --shadow-float: 0 12px 32px rgba(7,7,9,.18);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--paper);
  color: var(--obsidian);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
.hidden { display: none !important; }

/* dekorasi lama dimatikan agar canvas tetap bersih */
#clover-snow { display: none; }

/* atmosfer latar: gradasi langit + butiran titik halus */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 560px at 8% -10%, rgba(119,155,193,.36), transparent 62%),
    radial-gradient(760px 520px at 104% 2%, rgba(215,230,245,.95), transparent 64%),
    radial-gradient(900px 640px at 90% 108%, rgba(154,191,218,.30), transparent 62%),
    radial-gradient(600px 420px at 0% 100%, rgba(215,230,245,.7), transparent 66%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(rgba(7,7,9,.085) 1px, transparent 1.2px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

/* splash */
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 50; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--obsidian); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== auth: split layout + animasi ===== */
.hero-orbs { position: absolute; inset: -40px -20px 0; z-index: -1; pointer-events: none; --rise: 320px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb.o1 { width: 320px; height: 320px; left: -60px; top: -80px; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.7), rgba(255,255,255,0) 70%); animation: drift-a 14s ease-in-out infinite alternate; }
.orb.o2 { width: 260px; height: 260px; right: -40px; top: 22%; background: radial-gradient(circle at 40% 40%, rgba(215,230,245,.95), rgba(215,230,245,0) 70%); animation: drift-b 17s ease-in-out infinite alternate; }
.orb.o3 { width: 200px; height: 200px; left: 38%; bottom: 8%; background: radial-gradient(circle at 40% 40%, rgba(37,151,208,.22), rgba(37,151,208,0) 70%); animation: drift-a 19s ease-in-out infinite alternate-reverse; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); animation: ring-pulse 7s ease-in-out infinite; }
.ring.r1 { width: 380px; height: 380px; right: -110px; top: 6%; }
.ring.r2 { width: 560px; height: 560px; right: -200px; top: -4%; animation-delay: -2.4s; }
.ring.r3 { width: 760px; height: 760px; right: -300px; top: -14%; animation-delay: -4.8s; }
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px,40px,0) scale(1.15); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-50px,60px,0) scale(.9); } }
@keyframes ring-pulse { 0%,100% { opacity: .25; transform: scale(.97); } 50% { opacity: .9; transform: scale(1.03); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sweep { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.auth-brand, .hero-title, .hero-sub, .auth-head, .auth-wrap .card { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-title { animation-delay: .08s; } .hero-sub { animation-delay: .18s; } .auth-head { animation-delay: .15s; } .auth-wrap .card { animation-delay: .25s; }
.btn.primary#btn-member-login, .btn.primary#btn-admin-login { background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); background-size: 200% 100%; animation: sweep 3.6s linear infinite; }

#view-auth.view {
  position: relative; min-height: 100vh; overflow-x: hidden;
  background: linear-gradient(180deg, #779bc1 0%, #96bad6 240px, #cbdcec 440px, rgba(203,220,236,0) 680px);
}
.auth-shell { display: block; position: relative; }
.auth-hero {
  position: relative; isolation: isolate;
  margin: 0; padding: max(28px, env(safe-area-inset-top)) 22px 28px;
  color: var(--obsidian);
}
.auth-hero::before, .auth-hero::after { display: none; content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.auth-hero::before { width: 520px; height: 300px; left: -140px; bottom: -120px; background: radial-gradient(closest-side, rgba(255,255,255,.75), transparent); filter: blur(6px); }
.auth-hero::after { width: 460px; height: 260px; right: -120px; top: 12%; background: radial-gradient(closest-side, rgba(255,255,255,.5), transparent); filter: blur(10px); }
.auth-grid-deco {
  display: none; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 70%);
}
.auth-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
.logo { width: 44px; height: 44px; border-radius: 50%; background: var(--paper) url("./assets/Ava.png") center / 66% no-repeat; box-shadow: var(--shadow-card); flex: none; }
.hero-title { font-family: var(--font-display); font-size: clamp(36px, 10.5vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; margin: 32px 0 12px; max-width: 12ch; }
.hero-sub { margin: 0; font-size: 16px; line-height: 1.5; color: var(--obsidian); opacity: .78; max-width: 40ch; }

.auth-panel { padding: 8px 16px 40px; margin-top: 0; }
.auth-wrap { position: relative; z-index: 2; max-width: 440px; margin: 0 auto; padding: 0; text-align: left; }
.title-lg { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--obsidian); margin: 0; }
.subtitle { color: var(--charcoal); margin: 10px 0 24px; font-size: 15px; }
.auth-head { display: none; }
.admin-corner-btn {
  position: absolute; top: 26px; right: 26px; z-index: 5;
  border: 0; background: rgba(255,255,255,.78); color: var(--obsidian); backdrop-filter: blur(8px);
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer; box-shadow: var(--shadow-sm); transition: background .15s, transform .1s;
}
.admin-corner-btn:hover { background: var(--paper); }
.admin-corner-btn:active { transform: scale(.96); }

@media (min-width: 900px) {
  .auth-shell { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 100vh; }
  #view-auth.view { background: none; overflow: visible; }
  .auth-hero { margin: 16px 0 16px 16px; padding: 40px 48px; border-radius: 40px; display: flex; flex-direction: column; min-height: calc(100vh - 32px); overflow: hidden; background: var(--sky); box-shadow: var(--shadow-card); }
  .auth-hero::before, .auth-hero::after, .auth-grid-deco { display: block; }
  .hero-orbs { inset: 0; overflow: hidden; --rise: 85vh; }
  .auth-brand { font-size: 22px; }
  .logo { width: 48px; height: 48px; }
  .hero-title { font-size: clamp(56px, 6.2vw, 80px); line-height: .92; margin: auto 0 20px; max-width: 9ch; position: relative; z-index: 2; }
  .hero-sub { font-size: 17px; position: relative; z-index: 2; }
    .auth-panel { display: grid; place-items: center; padding: 40px 40px; margin-top: 0; }
  .auth-wrap { width: 100%; }
  .auth-head { display: block; margin-bottom: 28px; }
  .auth-head .title-lg { font-size: 48px; }
  .subtitle { margin-bottom: 0; }
  .admin-corner-btn { top: 32px; right: 32px; }
}

/* ===== cards & fields ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: box-shadow .25s, border-color .25s;
}
@media (hover: hover) { .card:hover { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(36,36,40,.06), 0 24px 48px rgba(16,55,132,.07), 0 6px 16px rgba(16,55,132,.04); } }
#view-auth .card { border-radius: var(--r-lg); padding: 32px 24px; border-color: transparent; margin-bottom: 0; }
.label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; color: var(--obsidian); margin: 0 0 20px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.q { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 20px; color: var(--obsidian); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--charcoal); margin-bottom: 6px; font-weight: 500; }
.opt { font-weight: 400; color: var(--slate); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 15px; letter-spacing: -0.01em; color: var(--obsidian);
  background: var(--cloud); border: 1px solid transparent; border-radius: var(--r-input); padding: 12px 14px;
  outline: none; resize: vertical; appearance: none; transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--slate); }
input:focus, textarea:focus, select:focus { background: var(--paper); border-color: var(--obsidian); }
input[readonly] { color: var(--charcoal); }
input:disabled, textarea:disabled, select:disabled { opacity: .5; }

.btn {
  width: 100%; border: 0; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-pill); background: var(--cloud); color: var(--obsidian);
  transition: transform .1s, background .15s, opacity .2s; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--obsidian); color: var(--paper); box-shadow: 0 6px 16px rgba(7,7,9,.18); }
@media (hover: hover) { .btn.primary:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(7,7,9,.24); } .btn:not(.primary):hover { background: var(--line); opacity: 1; } }
.btn[disabled] { opacity: .45; }
.btn-ghost { border: 0; background: transparent; color: var(--charcoal); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill); }
.btn-ghost:active { background: var(--cloud); }

.uploader { display: grid; place-items: center; min-height: 120px; border: 1px dashed var(--line-strong); background: var(--cloud); border-radius: 18px; color: var(--charcoal); font-size: 14px; overflow: hidden; padding: 8px; }
.uploader img { max-width: 100%; max-height: 220px; border-radius: 12px; display: block; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.card .row-between:first-child { border-top: 0; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: var(--r-pill); transition: .25s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; background: var(--paper); border-radius: 50%; box-shadow: var(--shadow-sm); transition: .25s; }
.switch input:checked + span { background: var(--obsidian); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ===== app shell: top bar + sidebar (desktop) / floating pill (mobile) ===== */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 20px 14px;
  background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav > div:first-child { min-width: 0; flex: 1 1 auto; }
.nav-title { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; color: var(--obsidian); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-sub { margin: 0 0 2px; font-size: 12px; color: var(--charcoal); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { max-width: 1000px; margin: 0 auto; padding: 24px 16px calc(112px + var(--safe-b)); }
.tabpane:not(.hidden) { animation: pane-in .28s ease both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%);
  z-index: 20; display: flex; align-items: center; justify-content: flex-start; gap: 2px;
  max-width: calc(100% - 24px);
  padding: 6px; border-radius: var(--r-pill);
  background: var(--obsidian);
  box-shadow: var(--shadow-float);
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar-brand { display: flex; align-items: center; flex: none; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; color: var(--obsidian); }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--paper) url("./assets/Ava.png") center / 65% no-repeat; }
.brand-name { display: none; }
.tab {
  flex-direction: row; align-items: center; gap: 7px; border: 0; background: transparent;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--paper);
  display: flex; flex: none; padding: 9px 14px; border-radius: var(--r-pill); white-space: nowrap; opacity: .62; transition: opacity .15s, background .15s, color .15s;
}
.tab .ico { width: 18px; height: 18px; display: grid; place-items: center; color: inherit; }
.tab .ico svg { width: 18px; height: 18px; stroke: currentColor; }
.tab.active { opacity: 1; background: var(--paper); color: var(--obsidian); }
.tab.active .ico { color: var(--blue); }

@media (min-width: 960px) {
  .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; padding-top: 36px; padding-bottom: 4px; align-items: flex-end; }
  .nav-sub { font-size: 14px; margin-bottom: 8px; }
  .nav-title { font-size: 44px; line-height: 1; }
  .nav-right { padding-bottom: 6px; }
  .tabbar { padding: 8px; gap: 4px; }
  .tab { padding: 11px 20px; font-size: 14px; }
  .tab:hover { opacity: 1; background: rgba(255,255,255,.12); }
  .tab.active:hover { background: var(--paper); }
}

/* ===== list ===== */
.list { display: grid; gap: 4px; max-width: 480px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .name { font-size: 15px; font-weight: 600; color: var(--obsidian); }
.item .meta { font-size: 13px; color: var(--charcoal); }
.item .pts { font-weight: 600; color: var(--obsidian); font-family: var(--font-display); font-size: 17px; letter-spacing: -0.03em; }
.mp-num-input { width: 64px; flex: none; text-align: center; padding: 8px 4px; font-weight: 600; }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.empty { color: var(--charcoal); font-size: 14px; text-align: center; padding: 16px 0; }

.log-tag { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 2px 10px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: middle; background: var(--cloud); color: var(--charcoal); }
.log-login { color: var(--ok); background: #eaf5ee; }
.log-logout { color: var(--charcoal); }
.log-hapus { color: var(--danger); background: #fbeceb; }

.icon-btn { border: 0; background: var(--cloud); color: var(--obsidian); border-radius: var(--r-pill); width: 34px; height: 34px; display: grid; place-items: center; flex: none; cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.icon-btn.danger { color: var(--danger); }
.icon-btn:active { transform: scale(.94); }

/* ===== table ===== */
.table-card { padding: 8px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: right; font-size: 12.5px; color: var(--charcoal); font-weight: 500; padding: 16px 10px; white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 1; min-width: 130px; }
.table td { text-align: right; padding: 14px 10px; border-top: 1px solid var(--line); white-space: nowrap; min-width: 70px; font-weight: 500; }
.table td:first-child { font-weight: 600; color: var(--obsidian); }
.table td:last-child { font-weight: 600; color: var(--obsidian); font-size: 16px; font-family: var(--font-display); letter-spacing: -0.03em; }
.table tbody tr[data-uid] { cursor: pointer; }
.table tbody tr[data-uid]:active { background: var(--cloud); }
.table tbody tr.expanded td:first-child { color: var(--obsidian); }
.detail-row td { padding: 0; border-top: 0; }
.detail-row .detail-box { text-align: left; white-space: normal; background: var(--cloud); border-radius: 18px; padding: 16px 18px; margin: 0 0 10px; }
.detail-box .d-title { font-size: 12.5px; color: var(--charcoal); margin: 0 0 8px; font-weight: 500; }
.detail-box .d-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-strong); font-size: 13.5px; }
.detail-box .d-row:first-of-type { border-top: 0; }
.detail-box .d-row .d-pts { font-weight: 600; color: var(--obsidian); flex: none; }
.detail-box table.d-table { display: table !important; width: 100%; border-collapse: collapse; font-size: 13.5px; }
.detail-box table.d-table thead { display: table-header-group; }
.detail-box table.d-table tbody { display: table-row-group; }
.detail-box table.d-table tfoot { display: table-footer-group; }
.detail-box table.d-table tr { display: table-row; }
.detail-box table.d-table th, .detail-box table.d-table td { display: table-cell; width: auto; position: static; min-width: 0; padding: 8px 6px; text-align: left; white-space: normal; border-top: 1px solid var(--line-strong); font-family: inherit; font-size: 13.5px; background: transparent; }
.detail-box table.d-table thead th { border-top: 0; font-size: 12px; color: var(--charcoal); font-weight: 500; }
.detail-box table.d-table th:last-child, .detail-box table.d-table td.d-pts { text-align: right; }
.detail-box table.d-table td { font-weight: 500; color: var(--obsidian); }
.detail-box table.d-table td.d-pts { font-weight: 600; }
.detail-box table.d-table td::before { content: none; }
.detail-box table.d-table tfoot td { font-weight: 600; border-top: 1px solid var(--obsidian); }

.table-hajatan th:last-child, .table-hajatan td:last-child { text-align: center; }
.table-hajatan td:last-child { font-family: inherit; font-weight: 400; color: var(--obsidian); font-size: 15px; letter-spacing: -0.01em; }
.table-hajatan input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--obsidian); cursor: pointer; }

.table-log th:nth-child(2), .table-log td:nth-child(2) { text-align: left; }
.table-log th:nth-child(3), .table-log td:nth-child(3) { text-align: left; white-space: normal; min-width: 220px; }
.table-log td:last-child { font-family: inherit; font-weight: 400; font-size: 13.5px; color: var(--charcoal); white-space: nowrap; letter-spacing: -0.01em; }

/* table-anggota */
.card-clients { box-shadow: var(--shadow-card); padding: 0; overflow: hidden; }
.card-clients .label { padding: 24px 24px 8px; margin: 0; }
.table-anggota { width: 100%; font-size: 14.5px; }
.table-anggota thead th { text-align: left; font-size: 13px; font-weight: 500; color: var(--charcoal); padding: 12px 24px; white-space: nowrap; position: static; background: transparent; border-bottom: 1px solid var(--line); }
.table-anggota thead th:last-child { text-align: center; }
.table-anggota thead th:first-child { position: static; background: transparent; min-width: 0; }
.table-anggota tbody td { text-align: left; padding: 14px 24px; border-top: 0; border-bottom: 1px solid var(--line); white-space: nowrap; min-width: 0; font-weight: 400; color: var(--obsidian); position: static; background: transparent; }
.table-anggota tbody td:first-child { font-weight: 600; color: var(--obsidian); position: static; background: transparent; min-width: 0; }
.table-anggota tbody tr[data-uid] { background: var(--paper); transition: background .12s; }
.table-anggota tbody tr[data-uid].row-alt { background: var(--paper); }
.table-anggota tbody tr[data-uid]:hover { background: var(--cloud); }
.table-anggota td.aksi-cell { text-align: center; width: 1%; }
.kebab-btn { border: 0; background: transparent; color: var(--charcoal); width: 32px; height: 32px; border-radius: var(--r-pill); display: inline-grid; place-items: center; cursor: pointer; }
.kebab-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.kebab-btn:hover { background: var(--line); color: var(--obsidian); }
#kebab-menu { position: fixed; z-index: 60; min-width: 160px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-float); overflow: hidden; padding: 6px; }
#kebab-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--obsidian); padding: 10px 14px; border-radius: 12px; cursor: pointer; }
#kebab-menu button:hover { background: var(--cloud); }
#kebab-menu button.danger { color: var(--danger); }

.notice { background: var(--cloud); border-radius: 18px; padding: 14px 18px; font-size: 14px; color: var(--charcoal); margin-bottom: 16px; font-weight: 500; }
.notice.ok { color: var(--ok); background: #eaf5ee; }
.err { color: var(--danger); font-size: 13.5px; min-height: 18px; margin: 12px 0 0; text-align: center; font-weight: 500; }
.wk-label { text-align: center; display: grid; }
.wk-label strong { font-family: var(--font-display); color: var(--obsidian); font-size: 18px; letter-spacing: -0.03em; font-weight: 600; }
.wk-label small { color: var(--charcoal); font-size: 12.5px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(92vw, 520px);
  background: var(--obsidian); color: var(--paper); padding: 12px 20px 12px 14px; border-radius: 22px;
  font-size: 14px; line-height: 1.4; font-weight: 500; text-align: left; opacity: 0; pointer-events: none; transition: .25s; z-index: 400;
  box-shadow: var(--shadow-float);
}
.toast::before { display: none; flex: none; width: 22px; height: 22px; border-radius: 50%; place-items: center; font-size: 13px; font-weight: 700; line-height: 1; }
.toast.ok::before { content: "✓"; display: grid; background: var(--ok); color: #fff; }
.toast.err { background: var(--danger); }
.toast.err::before { content: "!"; display: grid; background: rgba(255,255,255,.25); color: #fff; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.role-badge {
  font-size: 12px; font-weight: 500; color: var(--charcoal); background: var(--cloud);
  padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap;
  max-width: 34vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle;
}
.role-badge.badge-admin { color: var(--paper); background: var(--obsidian); }

/* ===== a11y / pointer ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--obsidian); outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { opacity: .9; cursor: pointer; }
  .btn-ghost:hover { background: var(--cloud); cursor: pointer; }
  .tab:hover { opacity: 1; cursor: pointer; }
  .icon-btn:hover { background: var(--line); cursor: pointer; }
  .table tbody tr[data-uid]:hover { background: var(--cloud); }
  .seg:hover:not(.active) { color: var(--obsidian); cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== tablet ===== */
@media (min-width: 700px) {
  .content { padding-left: 24px; padding-right: 24px; }
  .tabpane[data-pane="games"],
  .tabpane[data-pane="pertanyaan"],
  .tabpane[data-pane="poin"],
  .tabpane[data-pane="anggota"],
  .tabpane[data-pane="akun"] {
    display: grid; grid-template-columns: minmax(280px, 400px) 1fr; align-items: start; gap: 20px;
  }
  .tabpane .card.wide { grid-column: 1 / -1; }
  .tabpane[data-pane="absen"] .card { max-width: 640px; }
}

/* ===== desktop: padding kartu besar ===== */
@media (min-width: 880px) {
  .card { padding: 40px; border-radius: var(--r-lg); }
  #view-auth .card { padding: 40px; }
  .table-card { padding: 16px 32px; }
  .card-clients .label { padding: 32px 40px 8px; }
  .table-anggota thead th, .table-anggota tbody td { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 960px) {
  .content { max-width: 1160px; padding: 24px 40px 120px; }
}
@media (min-width: 700px) {
  .tabpane[data-pane="games"] > .card, .tabpane[data-pane="pertanyaan"] > .card, .tabpane[data-pane="poin"] > .card,
  .tabpane[data-pane="anggota"] > .card, .tabpane[data-pane="akun"] > .card { margin-bottom: 0; }
}
.row-between ~ .btn, .field ~ .btn, .list ~ .btn { margin-top: 20px; }
.card .btn-ghost { background: var(--cloud); padding: 10px 18px; color: var(--obsidian); }
.card .btn-ghost:hover { background: var(--line); }
@media (min-width: 1100px) {
  .tabpane[data-pane="akun"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .nav { padding: 12px 14px 10px; }
  .nav-title { font-size: 21px; }
  .role-badge { max-width: 26vw; font-size: 11px; padding: 4px 9px; }
  .tab { padding: 8px 11px; font-size: 12px; }
  .tab .ico { width: 16px; height: 16px; }
}

/* ===== mobile: tabel jadi kartu bertumpuk ===== */
@media (max-width: 640px) {
  .table-card { padding: 4px 8px; overflow-x: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr[data-uid], .table tr[data-id] {
    background: var(--cloud); border-radius: 20px; padding: 12px 16px; margin-bottom: 10px;
  }
  .table td {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 8px 2px; border-top: 1px solid var(--line-strong); white-space: normal; min-width: 0;
    text-align: right; font-weight: 500;
  }
  .table td:first-child { position: static; background: transparent; border-top: 0; min-width: 0; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.03em; padding-bottom: 6px; }
  .table td::before { content: attr(data-label); font-size: 12.5px; color: var(--charcoal); font-weight: 500; text-align: left; }
  .table td:first-child::before { display: none; }
  .table tr.detail-row { background: transparent; border: 0; padding: 0; margin: -6px 0 10px; }
  .table tr.detail-row td { display: block; padding: 0; border-top: 0; }
  .table tr.detail-row td:first-child { padding: 0; }
  .table td.empty { display: block; text-align: center; padding: 20px 2px; }
  .table td.empty::before { content: none; }
}

/* ===== fix teks keluar tabel ===== */
body { overflow-x: hidden; }
.tabpane > * { min-width: 0; max-width: 100%; }
.tabpane .notice { grid-column: 1 / -1; }
.card, .item .name, .q, .detail-box, .detail-box .d-row > * { overflow-wrap: anywhere; }
.item .name { min-width: 0; }
.detail-box .d-row { flex-wrap: wrap; }
.table td:first-child { white-space: normal; max-width: 200px; overflow-wrap: anywhere; }
.table-hajatan th, .table-hajatan td, .table-log th, .table-log td { text-align: left; }
.table-hajatan td, .table-log td, .table-anggota tbody td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.table-hajatan td:nth-child(1), .table-hajatan td:nth-child(2) { min-width: 110px; }
.table-hajatan td:nth-child(3) { min-width: 180px; }
.table-hajatan td:nth-child(4) { white-space: nowrap; }
.table-hajatan th:last-child, .table-hajatan td:last-child { text-align: center; }
.table-log td:last-child { white-space: nowrap; }
.table-anggota td.aksi-cell { white-space: nowrap; }

@media (max-width: 640px) {
  input, textarea, select { font-size: 16px; }
  .content { padding: 16px 12px calc(104px + var(--safe-b)); }
  .card { padding: 24px 20px; }
  #view-auth .card { padding: 28px 20px; }
  .q { font-size: 22px; }
  .nav { padding: 12px 14px 10px; }
  .nav-title { font-size: 22px; }
  .list { max-width: none; }
  .table tbody td:nth-child(n) {
    width: 100%; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere;
    padding: 8px 2px; text-align: right; border-top: 1px solid var(--line-strong); border-bottom: 0;
    position: static; background: transparent;
  }
  .table tbody td:first-child { text-align: left; border-top: 0; padding-bottom: 6px; }
  .table td::before { flex: none; max-width: 45%; }
  .table td > * { max-width: 100%; }
  .table tbody tr.detail-row td:nth-child(n) { padding: 0; border: 0; }
  .table tbody td.empty { text-align: center; }
  .table-anggota tbody tr[data-uid] { border-radius: 20px; }
  .table-anggota td.aksi-cell { width: 100%; }
  .card-clients { padding: 0 0 4px; }
  .card-clients .label { padding: 20px 20px 8px; }
}
@media (max-width: 380px) {
  .content { padding-left: 10px; padding-right: 10px; }
  .role-badge { max-width: 30vw; }
}
.list { grid-template-columns: minmax(0, 1fr); }
.item { min-width: 0; }
.item .meta { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* ===== MOTW ===== */
.table-motw th, .table-motw td { text-align: left; }
.table-motw th:last-child, .table-motw td:last-child { text-align: right; }
.table-motw td { white-space: normal; overflow-wrap: anywhere; }
.table-motw tbody tr.motw-row td, .table-motw tbody tr.motw-row td:first-child { background: var(--cloud); }
.motw-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: var(--r-pill); vertical-align: middle; font-family: var(--font); font-size: 11.5px; font-weight: 500; background: var(--obsidian); color: var(--paper); }
.motw-hero { background: var(--sky); color: var(--obsidian); border-radius: var(--r-lg); padding: 28px 20px 20px; margin-bottom: 16px; }
.motw-hero-label { margin: 0 0 18px; text-align: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
.motw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.motw-card { background: var(--paper); color: var(--obsidian); border-radius: var(--r-card); padding: 20px; min-width: 0; box-shadow: var(--shadow-card); }
.motw-card-head { display: flex; align-items: center; gap: 12px; }
.motw-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cloud); color: var(--obsidian); font-weight: 600; font-size: 18px; font-family: var(--font-display); }
.motw-card-id { min-width: 0; }
.motw-name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--obsidian); overflow-wrap: anywhere; line-height: 1.25; }
.motw-user { margin: 2px 0 0; font-size: 13px; color: var(--charcoal); overflow-wrap: anywhere; }
.motw-main { background: var(--obsidian); color: var(--paper); border-radius: 20px; padding: 18px 16px 14px; margin: 16px 0 12px; text-align: center; }
.motw-main-label { display: block; font-size: 12.5px; font-weight: 500; opacity: .7; }
.motw-main-num { display: block; font-family: var(--font-display); font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; margin: 6px 0 12px; }
.motw-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.motw-parts span { background: rgba(255,255,255,.14); border-radius: var(--r-pill); padding: 3px 12px; font-size: 12px; font-weight: 400; }
.motw-parts b { font-weight: 600; margin-left: 2px; }
.motw-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.motw-sub > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; background: var(--cloud); border-radius: 14px; padding: 8px 12px; }
.motw-sub span { font-size: 12px; color: var(--charcoal); }
.motw-sub b { font-size: 13.5px; color: var(--obsidian); font-weight: 600; }
.motw-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--charcoal); }
.motw-why li { padding-left: 16px; position: relative; overflow-wrap: anywhere; }
.motw-why li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.row-name { display: inline; }
.row-why { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--charcoal); font-family: var(--font); }
@media (max-width: 640px) {
  .table-motw tbody tr.motw-row { background: var(--cloud); }
  .table-motw tbody tr.motw-row td:nth-child(n) { background: transparent; }
}
@media (min-width: 700px) { .tabpane[data-pane="akun"] > .card:nth-child(2) { grid-row: auto; } }
.table-motw th:nth-child(n+3), .table-motw td:nth-child(n+3) { text-align: right; }
.table-motw td.c-main { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.03em; color: var(--obsidian); }
.table-motw td.c-games { font-family: var(--font); font-size: 12.5px; font-weight: 400; color: var(--charcoal); }
.table-motw td.c-total { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--obsidian); }

/* ===== Mensive ===== */
.mensive-timeline { position: relative; padding: 8px 0 8px 48px; }
.mensive-timeline::before { content: ""; position: absolute; left: 17px; top: 4px; bottom: 4px; border-left: 1px solid var(--line-strong); }
.mensive-month { position: relative; margin-bottom: 48px; }
.mensive-month:last-child { margin-bottom: 8px; }
.mensive-month .dot {
  position: absolute; left: -48px; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--paper);
  background: var(--obsidian) !important; font-family: var(--font-display); z-index: 1;
}
.mensive-month-head h3 { margin: 2px 0 0; font-family: var(--font-display); color: var(--obsidian); font-size: 24px; font-weight: 600; letter-spacing: -0.04em; }
.mensive-month-head small { color: var(--charcoal); font-size: 12.5px; }
.mensive-message { white-space: pre-line; color: var(--charcoal); font-size: 15px; line-height: 1.6; margin: 10px 0 16px; max-width: 640px; }
.mensive-empty { color: var(--slate); font-size: 13.5px; margin: 6px 0 14px; }
.mensive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; padding-top: 6px; }
.mensive-grid.single { grid-template-columns: minmax(0, 300px); justify-content: center; }
.mensive-item { position: relative; margin: 0; cursor: zoom-in; }
.mensive-item::before { content: none; }
.mensive-item:nth-child(odd), .mensive-item:nth-child(even) { transform: none; }
.mensive-item img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: var(--shadow-card); transition: transform .2s; }
.mensive-item:hover img { transform: translateY(-2px); }
.mensive-item figcaption { margin: 10px 2px 2px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--charcoal); }
.mensive-edit-toggle { margin: 4px 0 0; }
.mensive-edit-panel { margin-top: 16px; padding: 20px; background: var(--cloud); border-radius: 20px; }
.mensive-edit-panel .item .thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.mensive-edit-panel .icon-btn { position: relative; overflow: hidden; background: var(--paper); }
.mensive-edit-panel .icon-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mensive-bulk-label { display: inline-block; position: relative; overflow: hidden; }
.mensive-bulk-label input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mensive-add-month { position: relative; }
.mensive-add-month .dot { background: transparent !important; border: 1.5px dashed var(--line-strong); color: var(--charcoal); cursor: pointer; font-size: 20px; }
.mensive-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(7,7,9,.82); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.mensive-lightbox img { max-width: min(90vw, 480px); max-height: 70vh; border-radius: 24px; box-shadow: var(--shadow-float); }
.mensive-lightbox-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--paper); font-size: 22px; cursor: pointer; }
.mensive-lightbox .btn { width: auto; background: var(--paper); color: var(--obsidian); text-decoration: none; }

/* tabel Total Poin (semua waktu) */
.detail-box .d-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-box table.d-table.d-wide { width: 100%; }
.detail-box table.d-table.d-wide th { text-align: right; white-space: nowrap; padding: 12px 10px; }
.detail-box table.d-table.d-wide td { text-align: right; white-space: nowrap; padding: 14px 10px; font-size: 15px; font-weight: 500; border-top: 1px solid var(--line-strong); }
.detail-box table.d-table.d-wide th:first-child, .detail-box table.d-table.d-wide td:first-child { text-align: left; min-width: 110px; font-weight: 600; color: var(--obsidian); }
.detail-box table.d-table.d-wide td.d-pts { font-size: 16px; font-weight: 600; color: var(--obsidian); font-family: var(--font-display); letter-spacing: -0.03em; }

/* ===== validasi: kolom salah ditandai jelas ===== */
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); background: var(--paper); box-shadow: 0 0 0 3px rgba(180,35,42,.10); animation: nudge .28s ease; }
.field.invalid .uploader { border-color: var(--danger); background: #fff6f6; }
.field.invalid > label:first-child { color: var(--danger); }
.field-err { margin: 6px 4px 0; font-size: 13px; line-height: 1.4; color: var(--danger); font-weight: 500; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.btn[disabled] { cursor: progress; }
.item input.invalid, .mp-num-input[aria-invalid="true"] { border-color: var(--danger); }

/* ===== responsif semua perangkat ===== */
:root { --content-w: 1160px; }
body { min-height: 100vh; min-height: 100dvh; }
.content { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
img, svg, video { max-width: 100%; }
@media (min-width: 960px) { .nav { padding-left: max(40px, calc((100vw - var(--content-w)) / 2 + 40px)); padding-right: max(40px, calc((100vw - var(--content-w)) / 2 + 40px)); } }
@media (min-width: 1600px) { :root { --content-w: 1360px; } .content { max-width: var(--content-w); } }
@media (min-width: 2200px) { html { font-size: 18px; } }
@media (min-width: 900px) { #view-auth.view, .auth-shell { min-height: 100vh; min-height: 100dvh; } .auth-hero { min-height: calc(100dvh - 32px); } }
/* HP kecil */
@media (max-width: 360px) {
  .card { padding: 20px 16px; }
  .nav-title { font-size: 20px; }
  .hero-title { font-size: 32px; }
  .tab { padding: 8px 10px; }
  .toast { max-width: 94vw; font-size: 13px; }
}
/* HP landscape: tabbar tidak boleh menutup konten */
@media (max-height: 480px) and (orientation: landscape) {
  .tabbar { bottom: calc(8px + var(--safe-b)); }
  .content { padding-bottom: calc(84px + var(--safe-b)); }
  .hero-title { margin-top: 16px; }
  .toast { bottom: calc(76px + var(--safe-b)); }
}
/* tablet portrait: dua kolom boleh lebih lega */
@media (min-width: 700px) and (max-width: 959px) {
  .content { max-width: 860px; }
  .tabbar { max-width: calc(100% - 32px); }
}

/* ===== login: motion ===== */
.bubble { position: absolute; bottom: -24px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25)); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 4px 14px rgba(16,55,132,.10); opacity: 0; animation: bubble-up var(--d, 9s) ease-in infinite; animation-delay: var(--dl, 0s); }
.bubble.b1 { left: 8%;  width: 14px; height: 14px; --d: 8s;  --dl: -1s; }
.bubble.b2 { left: 24%; width: 26px; height: 26px; --d: 11s; --dl: -5s; }
.bubble.b3 { left: 46%; width: 10px; height: 10px; --d: 7s;  --dl: -3s; }
.bubble.b4 { left: 63%; width: 20px; height: 20px; --d: 10s; --dl: -7s; }
.bubble.b5 { left: 80%; width: 12px; height: 12px; --d: 8.5s; --dl: -2s; }
.bubble.b6 { left: 92%; width: 30px; height: 30px; --d: 12s; --dl: -9s; }
@keyframes bubble-up {
  0% { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  12% { opacity: .95; }
  50% { transform: translate3d(14px, calc(var(--rise) * -.5), 0) scale(1); }
  100% { transform: translate3d(-10px, calc(var(--rise) * -1), 0) scale(1.1); opacity: 0; }
}
.hero-title .w { display: inline-block; opacity: 0; animation: word-in .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
@keyframes word-in { from { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero-title .hl { position: relative; }
.hero-title .hl::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.04em; height: .1em; border-radius: 100px; background: var(--blue); opacity: .75; transform: scaleX(0); transform-origin: left; animation: underline-in .8s cubic-bezier(.2,.8,.2,1) 1s forwards; }
@keyframes underline-in { to { transform: scaleX(1); } }
.logo { animation: logo-bob 4.5s ease-in-out infinite; }
@keyframes logo-bob { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-6deg); } 75% { transform: translateY(-1px) rotate(6deg); } }
.auth-wrap .card { animation: card-in .9s cubic-bezier(.2,.9,.25,1.1) .3s both; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-wrap .field { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.auth-wrap .field:nth-child(1) { animation-delay: .55s; } .auth-wrap .field:nth-child(2) { animation-delay: .63s; } .auth-wrap .field:nth-child(3) { animation-delay: .71s; }
.auth-wrap .btn.primary { animation: rise .6s cubic-bezier(.2,.7,.2,1) .8s both, sweep 3.6s linear 1.4s infinite; }
.auth-wrap input:focus { box-shadow: 0 0 0 4px rgba(7,7,9,.06); }

.detail-box .d-table { display: table !important; width: 100%; table-layout: auto; border-collapse: collapse; }
.detail-box .d-table thead { display: table-header-group !important; }
.detail-box .d-table tbody { display: table-row-group !important; }
.detail-box .d-table tr { display: table-row !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.detail-box .d-table th,
.detail-box .d-table td {
  display: table-cell !important; width: auto !important; padding: 6px 6px !important;
  text-align: left !important; font-size: 12.5px; line-height: 1.35; vertical-align: top;
  word-break: break-word; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.detail-box .d-table td::before { content: none !important; display: none !important; }
.detail-box .d-table th:last-child,
.detail-box .d-table td.d-pts { text-align: right !important; white-space: nowrap; font-weight: 700; }