/* =========================================================
   Moodswimming — Dashboard
   Tema mengikuti landing page: kuning ceria + navy.
   Desktop : sidebar tetap + konten
   Mobile  : kartu bertumpuk + bottom nav mengambang (mengikuti referensi)
   ========================================================= */

:root {
  --dash-side: 264px;
  --dash-bg: #f6f8fb;
  --dash-line: #e9eff5;
}

.dash-body {
  background: var(--dash-bg);
  font-family: var(--ms-font-body);
  color: var(--ms-ink);
  min-height: 100vh;
}

/* ---------------- Sidebar ---------------- */
.dash-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--dash-side); z-index: 1045;
  background: #fff; border-right: 1px solid var(--dash-line);
  display: flex; flex-direction: column; padding: 1rem .9rem 1.1rem;
  transition: transform .28s ease;
}
.dash-sidebar__brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: .2rem .35rem 1rem;
}
.dash-sidebar__brand img { height: 52px; width: auto; }
.dash-sidebar__close {
  border: none; background: transparent; color: var(--ms-muted); font-size: 1.2rem;
}

/* profil menggantikan tombol Masuk */
.dash-profile {
  display: flex; align-items: center; gap: .7rem;
  background: var(--ms-yellow-tint); border-radius: 18px; padding: .7rem .8rem;
  margin-bottom: 1.1rem;
}
.dash-profile__ava {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: 0 4px 10px -4px rgba(18,58,99,.4);
}
.dash-profile__ava--initial {
  display: grid; place-items: center; background: var(--ms-navy); color: #fff;
  font-family: var(--ms-font-head); font-weight: 800; font-size: 1.05rem;
}
.dash-profile__id { min-width: 0; }
.dash-profile__name {
  display: block; font-family: var(--ms-font-head); font-weight: 800;
  color: var(--ms-navy); font-size: .95rem; line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-profile__mail {
  display: block; color: #8a7220; font-size: .74rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.dash-nav { flex: 1 1 auto; overflow-y: auto; }
.dash-nav ul { list-style: none; padding: 0; margin: 0 0 .2rem; }
.dash-nav__head {
  font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-muted);
  font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0 .55rem .35rem; margin: 0;
}
.dash-nav__link {
  display: flex; align-items: center; gap: .72rem;
  padding: .62rem .7rem; border-radius: 14px; margin-bottom: .16rem;
  font-family: var(--ms-font-head); font-weight: 700; font-size: .92rem;
  color: var(--ms-navy); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.dash-nav__link .dash-nav__ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; }
.dash-nav__link i { width: 1.15rem; text-align: center; color: var(--ms-muted); font-size: .95rem; }

/* Badge merah untuk notifikasi pesan belum direspon */
.nav-badge-dot {
  position: absolute; top: -6px; right: -7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #dc3545;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(220,53,69,.4);
  pointer-events: none;
}
.dash-nav__link.is-active .nav-badge-dot { border-color: var(--ms-navy); }
.dash-nav__link.is-soon .nav-badge-dot { display: none; }

/* Bottom sheet pakai lebar ikon sedikit lebih besar */
.dash-sheet__item .dash-nav__ico { width: 1.2rem; }
.dash-nav__link:hover { background: #f2f8ff; color: var(--ms-navy); }
.dash-nav__link.is-active { background: var(--ms-navy); color: #fff; }
.dash-nav__link.is-active i { color: var(--ms-yellow); }
.dash-nav__link.is-soon { color: #9fb0c2; cursor: default; }
.dash-nav__link.is-soon i { color: #c3d0dc; }
.dash-nav__link.is-soon small {
  margin-left: auto; font-size: .62rem; font-weight: 800; color: #a9b8c6;
  background: #eef3f8; border-radius: 999px; padding: .12rem .45rem;
}

.dash-logout {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  border: 2px solid #ffd9d9; color: #c0392b; background: #fff5f5;
  border-radius: 14px; padding: .6rem; font-family: var(--ms-font-head); font-weight: 800;
  font-size: .9rem; text-decoration: none; margin-top: .6rem;
}
.dash-logout:hover { background: #ffecec; color: #a5281a; }

.dash-backdrop {
  position: fixed; inset: 0; background: rgba(12,32,52,.45); z-index: 1040;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.dash-backdrop.is-on { opacity: 1; pointer-events: auto; }

/* ---------------- Main & topbar ---------------- */
.dash-main { margin-left: var(--dash-side); min-height: 100vh; display: flex; flex-direction: column; }
.dash-topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.5rem; background: #fff; border-bottom: 1px solid var(--dash-line);
  position: sticky; top: 0; z-index: 1020;
}
.dash-topbar__title h1 {
  font-size: 1.35rem; margin: 0; color: var(--ms-navy);
  font-family: var(--ms-font-head); font-weight: 800;
}
.dash-topbar__title p { margin: 0; color: var(--ms-muted); font-size: .84rem; font-weight: 600; }
.dash-topbar__right { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.dash-topbar__ava {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--ms-yellow);
}
.dash-topbar__ava--initial {
  display: grid; place-items: center; background: var(--ms-navy); color: #fff;
  font-family: var(--ms-font-head); font-weight: 800;
}
.dash-burger {
  border: none; background: var(--ms-yellow-tint); color: var(--ms-navy);
  width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem;
}
.dash-content { padding: 1.5rem; flex: 1 1 auto; }

/* ---------------- Kartu dashboard ---------------- */
.dcard {
  background: #fff; border: 1px solid var(--dash-line); border-radius: 22px;
  padding: 1.15rem 1.25rem; box-shadow: 0 10px 26px -22px rgba(18,58,99,.5);
}
.dcard__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.dcard__title { font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy); font-size: 1.02rem; margin: 0; }
.dcard__sub { color: var(--ms-muted); font-size: .8rem; font-weight: 600; margin: 0; }
.dcard__link { font-family: var(--ms-font-head); font-weight: 800; font-size: .8rem; color: var(--ms-blue); text-decoration: none; }

/* Kartu utama paket — sorotan kuning seperti hero landing page */
.dhero {
  border-radius: 26px; padding: 1.4rem 1.5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ms-yellow) 0%, #ffdb54 55%, #ffe98a 100%);
  box-shadow: 0 18px 40px -24px rgba(255, 180, 0, .95);
}
.dhero::after {
  content: ""; position: absolute; right: -40px; bottom: -70px;
  width: 210px; height: 210px; border-radius: 50%; background: rgba(255,255,255,.35);
}
.dhero__label { font-weight: 800; color: #8a6d00; font-size: .78rem; letter-spacing: .4px; text-transform: uppercase; }
.dhero__value { font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy); font-size: 2.4rem; line-height: 1.05; margin: .1rem 0 .1rem; }
.dhero__meta { color: #7c6410; font-weight: 700; font-size: .86rem; position: relative; z-index: 1; }
.dhero__foot { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; position: relative; z-index: 1; }
.dhero__chip {
  background: rgba(255,255,255,.7); border-radius: 999px; padding: .3rem .75rem;
  font-weight: 800; font-size: .78rem; color: var(--ms-navy);
}
.dhero__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.55); overflow: hidden; margin-top: .9rem; position: relative; z-index: 1; }
.dhero__bar span { display: block; height: 100%; border-radius: 999px; background: var(--ms-navy); }

/* Chip statistik (Spent/Earned/Cashback pada referensi) */
.dstat {
  background: #fff; border: 1px solid var(--dash-line); border-radius: 18px;
  padding: .85rem .9rem; height: 100%;
}
.dstat__ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-size: .9rem; margin-bottom: .5rem;
}
.dstat__ico--yellow { background: var(--ms-yellow-tint); color: #a6790a; }
.dstat__ico--blue   { background: #e4f7ff; color: #0784a8; }
.dstat__ico--green  { background: #e5f9ec; color: #1c7a44; }
.dstat__val { font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy); font-size: 1.2rem; line-height: 1.1; }
.dstat__lbl { color: var(--ms-muted); font-weight: 700; font-size: .74rem; }

/* Baris daftar (jadwal / transaksi) */
.drow {
  display: flex; align-items: center; gap: .8rem; padding: .72rem 0;
  border-bottom: 1px solid #f0f4f8;
}
.drow:last-child { border-bottom: none; padding-bottom: 0; }
.drow__ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  flex-shrink: 0; background: var(--ms-yellow-tint); color: #a6790a;
  font-family: var(--ms-font-head); font-weight: 800; font-size: .9rem;
}
.drow__ico--blue { background: #e4f7ff; color: #0784a8; }
.drow__ico--green { background: #e5f9ec; color: #1c7a44; }
.drow__ico--grey { background: #eef2f6; color: #7b8ea1; }
.drow__body { min-width: 0; flex: 1 1 auto; }
.drow__t { font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy); font-size: .92rem; line-height: 1.2; }
.drow__s { color: var(--ms-muted); font-weight: 600; font-size: .78rem; }
.drow__amt { font-family: var(--ms-font-head); font-weight: 800; font-size: .9rem; white-space: nowrap; color: var(--ms-navy); }
.drow__amt--out { color: #c0392b; }
.drow__amt--in { color: #1c7a44; }

.dbadge { font-weight: 800; font-size: .7rem; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
.dbadge--ok { background: #e5f9ec; color: #1c7a44; }
.dbadge--warn { background: var(--ms-yellow-tint); color: #a6790a; }
.dbadge--grey { background: #eef2f6; color: #7b8ea1; }
.dbadge--blue { background: #e4f7ff; color: #0784a8; }

/* Chart */
.dchart { position: relative; }
.dchart--donut { max-width: 230px; margin-inline: auto; }
.dchart__center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
}
.dchart__center b { display: block; font-family: var(--ms-font-head); font-size: 1.6rem; color: var(--ms-navy); line-height: 1; }
.dchart__center span { color: var(--ms-muted); font-size: .74rem; font-weight: 700; }
.dlegend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; margin-top: .9rem; }
.dlegend span { display: inline-flex; align-items: center; gap: .38rem; font-size: .78rem; font-weight: 700; color: var(--ms-muted); }
.dlegend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Kondisi kosong */
.dempty { text-align: center; padding: 2rem 1rem; }
.dempty i { font-size: 2rem; color: var(--ms-blue); margin-bottom: .6rem; }
.dempty h5 { font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy); }
.dempty p { color: var(--ms-muted); font-weight: 600; font-size: .9rem; }

/* ---------------- Notifikasi ---------------- */
.dash-bell {
  position: relative; border: none; background: var(--ms-yellow-tint);
  color: var(--ms-navy); width: 40px; height: 40px; border-radius: 12px;
  font-size: 1.02rem; flex-shrink: 0;
}
.dash-bell:hover { background: #ffe9a8; }
.dash-bell__dot {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 999px; background: #dc3545; color: #fff;
  font-family: var(--ms-font-head); font-weight: 800; font-size: .64rem;
  display: grid; place-items: center; border: 2px solid #fff;
}

.notif-menu {
  width: min(92vw, 22rem); padding: 0; border: 1px solid var(--dash-line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 44px -20px rgba(18,58,99,.55);
}
.notif-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .9rem; border-bottom: 1px solid var(--dash-line);
  font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy); font-size: .92rem;
}
.notif-menu__read {
  border: none; background: none; color: var(--ms-blue);
  font-family: var(--ms-font-head); font-weight: 800; font-size: .74rem;
}
.notif-menu__body { max-height: 22rem; overflow-y: auto; }
.notif-menu__all {
  display: block; text-align: center; padding: .65rem;
  border-top: 1px solid var(--dash-line); background: #f8fbff;
  font-family: var(--ms-font-head); font-weight: 800; font-size: .82rem;
  color: var(--ms-blue); text-decoration: none;
}
.notif-menu__all:hover { background: #eef5ff; }
.notif-menu__empty {
  display: grid; place-items: center; gap: .4rem; padding: 1.6rem 1rem;
  color: var(--ms-muted); font-weight: 600; font-size: .85rem;
}
.notif-menu__empty i { font-size: 1.5rem; color: #c3d0dc; }

.notif-item {
  display: flex; gap: .65rem; padding: .7rem .9rem; text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}
.notif-item:hover { background: #f8fbff; }
.notif-item.is-unread { background: #fffdf2; }
.notif-item.is-unread:hover { background: #fff8e2; }
.notif-item__ico {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .85rem;
}
.notif-item__ico--green { background: #e7f7ee; color: #1c7a4b; }
.notif-item__ico--red   { background: #fdecea; color: #c0392b; }
.notif-item__ico--amber { background: #fff5da; color: #a9761a; }
.notif-item__ico--blue  { background: #e9f3ff; color: #1668b8; }
.notif-item__body { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.notif-item__title {
  font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy);
  font-size: .84rem; line-height: 1.25;
}
.notif-item__text {
  color: var(--ms-muted); font-size: .78rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-item__time { color: #9fb0c2; font-size: .7rem; font-weight: 700; }

/* Baris notifikasi belum dibaca di halaman penuh */
.drow--unread { background: #fffdf2; }

/* Baris status cabang di kartu paket */
.dpkg-branch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .5rem .1rem .2rem; font-weight: 600; font-size: .85rem;
  color: var(--ms-muted);
}

/* Tombol aktif / nonaktif — menggantikan ikon mata yang ambigu */
.dtoggle {
  font-family: var(--ms-font-head); font-weight: 800; font-size: .74rem;
  border-radius: 999px; border: 2px solid transparent; white-space: nowrap;
}
.dtoggle--on  { background: #e7f7ee; border-color: #b7e6cd; color: #1c7a4b; }
.dtoggle--on:hover  { background: #d5f0e1; color: #14603a; }
.dtoggle--off { background: #f1f4f8; border-color: #dbe3ec; color: #7b8794; }
.dtoggle--off:hover { background: #e6ebf2; color: #5d6874; }

/* Baris pengajuan pindah jadwal di dalam kartu sesi */
.session-row__resched {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed #e6eef5;
}

/* ---------------- Bottom nav (mobile) ---------------- */
.dash-bottom {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 9px; z-index: 1050;
  width: min(94vw, 460px);
  display: flex; align-items: center; justify-content: space-around;
  background: var(--ms-navy); border-radius: 24px; padding: .5rem .4rem;
  box-shadow: 0 16px 34px -14px rgba(12,32,52,.75);
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
  gap: 2px;
}
.dash-bottom__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: rgba(255,255,255,.62); text-decoration: none; flex: 1 1 0; min-width: 0;
  font-family: var(--ms-font-head); font-weight: 700; font-size: .6rem;
  padding: .3rem .1rem; transition: color .15s ease; cursor: pointer;
  border: none; background: none;
}
.dash-bottom__item i { font-size: 1.05rem; }
.dash-bottom__item.is-active { color: var(--ms-yellow); }
.dash-bottom__item:active { transform: scale(.92); }
.dash-bottom__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Tombol Lainnya — beda warna biar keliatan interaktif */
.dash-bottom__item--more { color: rgba(255,255,255,.78); }
.dash-bottom__item--more i { color: var(--ms-yellow); }

/* FAB tombol Booking (hanya user) */
.dash-bottom__fab {
  width: 46px; height: 46px; border-radius: 16px; flex: 0 0 auto;
  display: grid; place-items: center; margin: 0 .15rem;
  background: var(--ms-yellow); color: var(--ms-navy); font-size: 1.05rem;
  box-shadow: 0 8px 18px -6px rgba(255,204,1,.9);
  transition: transform .15s ease;
}
.dash-bottom__fab:hover { color: var(--ms-navy); }
.dash-bottom__fab:active { transform: scale(.88); }

/* ===== Modal Bottom Sheet ===== */
.dash-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(12,32,52,.5); z-index: 1055;
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.dash-sheet-backdrop.is-on { opacity: 1; pointer-events: auto; }

.dash-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
  background: #fff; border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.32,.72,0,1);
  max-height: 72vh; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dash-sheet.is-open { transform: translateY(0); }

/* Handle bar (drag indicator) */
.dash-sheet__handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: #d0d8e0; margin: 10px auto 4px; flex-shrink: 0;
}

/* Header sheet */
.dash-sheet__header {
  text-align: center; padding: .4rem 1.25rem .8rem;
  border-bottom: 1px solid var(--dash-line); flex-shrink: 0;
}
.dash-sheet__header h3 {
  font-family: var(--ms-font-head); font-weight: 800;
  color: var(--ms-navy); font-size: 1rem; margin: 0;
}

/* Body sheet — scrollable */
.dash-sheet__body {
  flex: 1 1 auto; overflow-y: auto; padding: .25rem 0;
  -webkit-overflow-scrolling: touch;
}

/* Item di dalam sheet */
.dash-sheet__item {
  display: flex; align-items: center; gap: .85rem;
  padding: .72rem 1.25rem; text-decoration: none; color: var(--ms-navy);
  font-family: var(--ms-font-head); font-weight: 700; font-size: .9rem;
  transition: background .12s ease;
  border: none; background: none; width: 100%; text-align: left; cursor: pointer;
}
.dash-sheet__item:active { background: #f2f8ff; }
.dash-sheet__item i {
  width: 1.2rem; text-align: center; color: var(--ms-muted); font-size: 1rem; flex-shrink: 0;
}
.dash-sheet__item.is-active { color: var(--ms-blue); }
.dash-sheet__item.is-active i { color: var(--ms-blue); }

/* Divider di dalam sheet */
.dash-sheet__divider { height: 1px; background: var(--dash-line); margin: .2rem 1.25rem; }

/* Footer sheet — sticky di bawah */
.dash-sheet__footer {
  border-top: 1px solid var(--dash-line); padding: .5rem 1.25rem;
  flex-shrink: 0;
}
.dash-sheet__footer .dash-sheet__item { padding: .6rem 0; }
.dash-sheet__footer .dash-sheet__item--out { color: #c0392b; }
.dash-sheet__footer .dash-sheet__item--out i { color: #c0392b; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  .dash-sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(12,32,52,.25); }
  .dash-sidebar.is-open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .dash-topbar { padding: .85rem 1rem; }
  .dash-topbar__title h1 { font-size: 1.1rem; }
  .dash-topbar__title p { display: none; }
  .dash-content { padding: 1rem; padding-bottom: 104px; }

  /* mobile mengikuti referensi: kartu penuh, angka besar */
  .dhero { border-radius: 24px; padding: 1.2rem 1.25rem; }
  .dhero__value { font-size: 1rem; }
  .dcard { border-radius: 20px; padding: 1rem 1.05rem; }
}

@media (min-width: 992px) {
  .dash-bottom { display: none !important; }
  .dash-backdrop { display: none; }
}

/* Kartu pilihan program di halaman booking */
.dcourse {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  background: #fff; border: 2px solid var(--dash-line); border-radius: 18px;
  padding: 1rem .7rem; height: 100%; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dcourse:hover {
  border-color: var(--ms-yellow); transform: translateY(-3px);
  box-shadow: 0 12px 24px -16px rgba(255,180,0,.9);
}
.dcourse__ico { width: 44px; height: 44px; object-fit: contain; margin-bottom: .2rem; }
.dcourse__name {
  font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-navy);
  font-size: .88rem; line-height: 1.2;
}
.dcourse__age { color: var(--ms-muted); font-weight: 600; font-size: .72rem; }

/* Form jadwal di dalam kartu dashboard */
.dash-content .session-row__fields .form-control,
.dash-content .session-row__fields .form-select { font-size: .85rem; }

/* ===== Halaman admin: daftar pembayaran ===== */
/* Kartu statistik yang bisa diklik sebagai filter */
a.dstat { display: flex; align-items: center; gap: .75rem; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
a.dstat .dstat__ico { margin-bottom: 0; flex: 0 0 auto; }
a.dstat:hover { border-color: var(--ms-yellow); }
.dstat--on { border-color: var(--ms-yellow); box-shadow: 0 0 0 3px var(--ms-yellow-tint); }
.dstat__ico--red { background: #ffeaea; color: #c0392b; }

/* Baris daftar yang bisa diklik */
.drow--link { text-decoration: none; }
.drow--link:hover { background: #fffdf5; }
.drow--link:hover .drow__t { color: #0784a8; }

.drow__ico--red   { background: #ffeaea; color: #c0392b; }
.drow__ico--amber { background: var(--ms-yellow-tint); color: #a6790a; }
.dbadge--red      { background: #ffeaea; color: #c0392b; }

/* ===== Kartu booking di beranda member (2 kolom kiri-kanan, feedback 6 Agu) ===== */
.bcard {
  border: 1px solid #e8eef5; border-radius: 18px; background: #fff;
  padding: .5rem .95rem .95rem;
  box-shadow: 0 10px 22px -18px rgba(16,42,67,.28);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bcard:hover { border-color: #bfd9ee; box-shadow: 0 14px 26px -18px rgba(2,203,255,.45); }
.bcard .drow { border-bottom: 1px dashed #eef4f9; margin-bottom: .5rem; }

/* ===== Halaman admin: sesi latihan ===== */
.dsession { padding: .85rem 0; border-bottom: 1px solid #f0f4f8; }
.dsession:last-child { border-bottom: 0; }
.dsession__main { display: flex; align-items: flex-start; gap: .8rem; }
.dsession__coach {
  font-family: var(--ms-font-head); font-weight: 800;
  font-size: .82rem; color: var(--ms-navy); white-space: nowrap;
}
.dsession__coach--over { color: #0784a8; font-size: .75rem; font-weight: 700; }

.dsession__act { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; padding-left: 2.9rem; }
.dsession__form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.dsession__form .form-select-sm { width: auto; min-width: 9.5rem; }
.dsession__form .form-control-sm { width: auto; min-width: 11rem; }

.dsession__force {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; color: var(--ms-muted); white-space: nowrap;
}
.dsession__note {
  margin: .5rem 0 0 2.9rem; padding: .45rem .7rem; border-radius: 10px;
  background: #e4f7ff; color: #0784a8; font-weight: 700; font-size: .78rem;
}

@media (max-width: 575.98px) {
  .dsession__act, .dsession__note { padding-left: 0; margin-left: 0; }
  .dsession__form { width: 100%; }
  .dsession__form .form-select-sm,
  .dsession__form .form-control-sm { width: 100%; }
}
.dsession__locked {
  display: inline-flex; align-items: center;
  font-size: .76rem; font-weight: 700; color: var(--ms-muted);
  background: #eef2f6; border-radius: 999px; padding: .3rem .7rem;
}

/* ===== Halaman admin: penggajian ===== */
.dpay {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .72rem 0; border-bottom: 1px solid #f0f4f8; cursor: pointer;
}
.dpay:last-of-type { border-bottom: 0; }
.dpay:hover { background: #fffdf5; }
.dpay__check { margin-top: .35rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--ms-yellow); }
.dpay__body { min-width: 0; flex: 1 1 auto; }
.dpay__split { color: var(--ms-muted); font-weight: 600; font-size: .7rem; white-space: nowrap; }

/* ===== Tabel ringkas (laporan per cabang) ===== */
.dtable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.dtable th {
  text-align: left; font-family: var(--ms-font-head); font-weight: 800;
  color: var(--ms-muted); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .03em; padding: .5rem .6rem; border-bottom: 2px solid var(--dash-line);
  white-space: nowrap;
}
.dtable td {
  padding: .6rem; border-bottom: 1px solid #f0f4f8;
  color: var(--ms-navy); font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: #fffdf5; }

/* ===== Catatan coach & rapot (sisi member) ===== */
.dnote {
  margin-top: .5rem; padding: .55rem .8rem; border-radius: 12px;
  background: #f4f7fa; border-left: 3px solid var(--ms-blue);
  font-size: .8rem; font-weight: 600; color: var(--ms-muted); line-height: 1.5;
}
.dnote b { color: var(--ms-navy); font-weight: 800; }

.dreport { padding: .85rem 0; border-bottom: 1px solid #f0f4f8; }
.dreport:last-child { border-bottom: 0; }
.dskills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.dskill {
  background: var(--ms-yellow-tint); color: #a6790a; border-radius: 999px;
  padding: .25rem .7rem; font-size: .74rem; font-weight: 700;
}
.dskill b { color: var(--ms-navy); margin-left: .25rem; }

/* ===== Form penilaian rapot ===== */
.dskillform { display: flex; flex-direction: column; gap: .5rem; }
.dskillform__row {
  display: flex; align-items: center; gap: .75rem;
  padding: .4rem .65rem; background: #f7fafc; border-radius: 12px;
}
.dskillform__label {
  flex: 1 1 auto; font-weight: 700; font-size: .84rem; color: var(--ms-navy);
}
.dskillform__row .form-select-sm { flex: 0 0 auto; width: auto; min-width: 9.5rem; }

@media (max-width: 575.98px) {
  .dskillform__row { flex-direction: column; align-items: stretch; gap: .35rem; }
  .dskillform__row .form-select-sm { width: 100%; }
}

/* ===== Tab & aksi modul konten ===== */
.dtabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.dtab {
  display: inline-flex; align-items: center; text-decoration: none;
  background: #fff; border: 1px solid var(--dash-line); border-radius: 999px;
  padding: .5rem 1rem; font-weight: 700; font-size: .85rem; color: var(--ms-muted);
}
.dtab:hover { border-color: var(--ms-yellow); color: var(--ms-navy); }
.dtab.is-active { background: var(--ms-yellow); border-color: var(--ms-yellow); color: var(--ms-navy); }

.dcontent__act { display: flex; gap: .35rem; flex: 0 0 auto; }

/* ===== Tombol Bantuan (WhatsApp) di-highlight ===== */
.dash-nav__link--help {
  background: #e9fbef; color: #128c3e !important; font-weight: 800;
}
.dash-nav__link--help i { color: #25d366 !important; }
.dash-nav__link--help:hover { background: #d6f7e1; }

.dash-bottom__item--help i { color: #25d366; }
.dash-bottom__item--help span { color: #128c3e; font-weight: 800; }

/* ===== Toggle collapse ala FAQ di dashboard ===== */
.dcollapse-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; border: none; background: none; padding: 0; text-align: left; cursor: pointer;
}
.dcollapse-caret { color: var(--ms-muted); transition: transform .2s ease; flex: 0 0 auto; }
.dcollapse-toggle[aria-expanded="true"] .dcollapse-caret { transform: rotate(180deg); }

/* Spring animation untuk collapse/expand accordion */
.collapsing {
  transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ===== select2 selaras tema ===== */
.select2-container--default .select2-selection--single {
  height: 44px; border: 1px solid var(--dash-line); border-radius: 12px;
  display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal; font-weight: 600; color: var(--ms-navy);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--ms-yellow); color: var(--ms-navy);
}
.select2-dropdown { border: 1px solid var(--dash-line); border-radius: 12px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }

/* ===== Master data: cabang/program/kolam/paket ===== */
.dbranch { border-bottom: 1px solid #f0f4f8; padding-bottom: .3rem; margin-bottom: .3rem; }
.dbranch:last-child { border-bottom: 0; margin-bottom: 0; }

/* Matriks harga paket per kolam */
.dprice-branch { font-family: var(--ms-font-head); font-weight: 800; color: var(--ms-muted);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; margin: .6rem 0 .3rem; }
.dprice-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .25rem 0; }
.dprice-row__name { font-weight: 700; font-size: .84rem; color: var(--ms-navy); }

/* ===== Pagination (custom view) ===== */
.d-pagination {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: .8rem 0 .2rem; margin-top: .6rem;
  border-top: 1px solid var(--dash-line);
}
.d-pagination__info {
  font-family: var(--ms-font-head); font-weight: 700; font-size: .78rem;
  color: var(--ms-muted);
}
.d-pagination__list {
  display: flex; align-items: center; gap: .3rem;
  list-style: none; padding: 0; margin: 0;
}
.d-pagination__item {
  display: flex;
}
.d-pagination__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .55rem;
  border-radius: 10px; font-family: var(--ms-font-head); font-weight: 800; font-size: .84rem;
  color: var(--ms-navy); text-decoration: none;
  border: 1.5px solid var(--dash-line); background: #fff;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.d-pagination__link:hover {
  border-color: var(--ms-yellow); background: var(--ms-yellow-tint); color: var(--ms-navy);
}
.d-pagination__item--active .d-pagination__link {
  background: var(--ms-navy); color: #fff; border-color: var(--ms-navy);
}
.d-pagination__item--active .d-pagination__link:hover {
  background: var(--ms-navy-deep); border-color: var(--ms-navy-deep); color: #fff;
}
.d-pagination__item--disabled .d-pagination__link {
  color: #c3d0dc; border-color: #e9eff5; background: #f8fafc; cursor: default; pointer-events: none;
}
.d-pagination__link--dots {
  border: none; background: none; min-width: auto; padding: 0 .35rem;
  color: var(--ms-muted); font-size: .9rem;
}

/* Responsive: stack info on top. Label "Sebelumnya/Selanjutnya" disembunyikan
   supaya tombol prev/next kembali sekotak dengan tombol nomor. */
@media (max-width: 575.98px) {
  .d-pagination__list { gap: .2rem; }
  .d-pagination__link { min-width: 32px; height: 32px; font-size: .78rem; border-radius: 8px; }
  .d-pagination__label { display: none; }
}
