/* =====================================================================
   Husnul Khotimah — Template UI (gaya dashboard HRIS modern)
   Palet hijau, bersih, kartu lembut. Tanpa dependensi eksternal.
   ===================================================================== */

:root {
  --brand:        #0d8a5f;   /* hijau utama */
  --brand-dark:   #0a6f4c;
  --brand-light:  #e8f5ef;
  --accent:       #14b8a6;
  --bg:           #f4f6f8;
  --surface:      #ffffff;
  --text:         #1f2a37;
  --text-soft:    #6b7280;
  --border:       #e5e8ec;
  --danger:       #e11d48;
  --warning:      #d97706;
  --success:      #16a34a;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --sidebar-w:    256px;
  --font:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout shell ---------- */
.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar (gaya Stisla: terang) ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  border-right: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(16,24,40,.04);
}
.sidebar__brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 64px; flex: none;
  border-bottom: 1px solid var(--border);
}
.sidebar__logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px; flex: none;
  box-shadow: 0 4px 10px rgba(13,138,95,.3);
}
.sidebar__title { font-weight: 800; color: var(--text); font-size: 15px; line-height: 1.2; }
.sidebar__subtitle { font-size: 11px; color: var(--text-soft); }

.nav { padding: 10px 12px; overflow-y: auto; flex: 1; }
.nav__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: #9aa4b2; font-weight: 700; margin: 18px 12px 6px;
}
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 1px 0;
  border-radius: var(--radius-sm);
  color: #56606e; font-weight: 600; font-size: 13.5px;
}
.nav a:hover { background: #f4f6f9; color: var(--brand-dark); text-decoration: none; }
.nav a.active {
  background: var(--brand-light); color: var(--brand-dark); font-weight: 700;
}
.nav a.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.nav a .ico { width: 20px; text-align: center; color: #9aa4b2; font-size: 15px; }
.nav a:hover .ico, .nav a.active .ico { color: var(--brand); }

.sidebar__foot {
  padding: 14px 18px; font-size: 11px; color: var(--text-soft);
  border-top: 1px solid var(--border);
}

/* ---------- Main ---------- */
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }

.topbar {
  height: 64px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 8px rgba(16,24,40,.04);
}
.topbar__left { display: flex; align-items: center; gap: 14px; }
.topbar__title { font-size: 16px; font-weight: 700; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none; width: 38px; height: 38px; border-radius: 9px; border: 0;
  background: #f4f6f9; color: #56606e; font-size: 17px; cursor: pointer; align-items: center; justify-content: center;
}
.hamburger:hover { background: #e9edf2; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: 999px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; flex: none;
}
.user-chip__name { font-weight: 600; font-size: 13px; }
.user-chip__role { font-size: 11px; color: var(--text-soft); }

.content { padding: 26px; }
.page-head { margin-bottom: 22px; padding-bottom: 4px; }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.page-head p { margin: 5px 0 0; color: var(--text-soft); font-size: 13.5px; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.stat__top { display: flex; align-items: center; justify-content: space-between; }
.stat__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--brand-light); color: var(--brand);
}
.stat__value { font-size: 28px; font-weight: 800; margin-top: 12px; }
.stat__label { color: var(--text-soft); font-size: 13px; }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.card__body { padding: 18px 20px; }
.card__body--flush { padding: 0; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-weight: 600; color: var(--text-soft);
  background: #fafbfc; padding: 12px 16px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
table.tbl tbody tr:hover { background: #fafdfb; }
table.tbl tbody tr:last-child td { border-bottom: none; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge--aktif    { background: #e7f7ee; color: #15803d; }
.badge--meninggal{ background: #fde8ec; color: #be123c; }
.badge--nonaktif { background: #eef0f3; color: #6b7280; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13.5px; cursor: pointer;
  border: 1px solid transparent; background: #eef0f3; color: var(--text);
  transition: filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; border-color: var(--border); }
.btn--danger { background: #fff; border-color: #f3c4cd; color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--sm { padding: 6px 11px; font-size: 12.5px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}
.form-actions { display: flex; gap: 10px; margin-top: 22px; }

/* ---------- Toolbar / search ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search { position: relative; }
.search input { padding: 9px 12px 9px 36px; min-width: 280px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-soft); }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.flash--success { background: #e7f7ee; color: #15803d; border-color: #bbe7cd; }
.flash--error   { background: #fde8ec; color: #be123c; border-color: #f5c2cf; }
.flash--info    { background: var(--brand-light); color: var(--brand-dark); border-color: #bfe6d6; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--text-soft); }
.empty .ico { font-size: 38px; opacity: .5; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero {
  background: linear-gradient(150deg, var(--brand-dark), #062b1f);
  color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center;
}
.login-hero__logo { width: 60px; height: 60px; border-radius: 16px; background: #fff; color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 26px; margin-bottom: 28px; }
.login-hero h1 { font-size: 32px; margin: 0 0 12px; line-height: 1.15; }
.login-hero p { color: #a9d6c5; max-width: 380px; }
.login-hero ul { list-style: none; padding: 0; margin: 28px 0 0; color: #cdeadd; }
.login-hero li { padding: 6px 0; display: flex; gap: 10px; align-items: center; }
.login-form-side { display: grid; place-items: center; padding: 40px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { margin: 0 0 6px; font-size: 24px; }
.login-card .sub { color: var(--text-soft); margin: 0 0 26px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }

/* ---------- ESS (Portal Anggota) ---------- */
.ess-hero {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #0f766e 0%, #0c3b37 100%);
  color: #fff; border-radius: var(--radius); padding: 22px 24px;
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.ess-hero__photo { width: 72px; height: 72px; border-radius: 50%; flex: none; overflow: hidden; border: 3px solid rgba(255,255,255,.3); }
.ess-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.ess-hero__photo--init { display: grid; place-items: center; font-size: 30px; font-weight: 800; background: rgba(255,255,255,.18); }
.ess-hero__info { flex: 1; min-width: 0; }
.ess-hero__hi { font-size: 13px; color: #bfe9dd; }
.ess-hero__name { font-size: 22px; font-weight: 800; }
.ess-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: #d7efe5; align-items: center; }
.ess-hero .badge { background: rgba(255,255,255,.22); color: #fff; }
.ess-hero .btn--ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }

.ess-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.ess-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 600; color: var(--text); transition: transform .12s ease, box-shadow .12s ease;
}
.ess-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,24,40,.1); border-color: #bfe6d6; }
.ess-tile__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; font-size: 24px; }
.ess-tile:nth-child(1) .ess-tile__ico { background: #e8f5ef; color: #0d8a5f; }
.ess-tile:nth-child(2) .ess-tile__ico { background: #eef2ff; color: #4f46e5; }
.ess-tile:nth-child(3) .ess-tile__ico { background: #fff4e5; color: #d97706; }
.ess-tile:nth-child(4) .ess-tile__ico { background: #fde8ef; color: #be123c; }

/* progress bar */
.progress { height: 12px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.progress__bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .5s ease; }

/* Kartu anggota digital */
.memcard {
  width: 420px; max-width: 100%; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0a5246); color: #fff;
  box-shadow: 0 16px 40px rgba(12,59,55,.35);
}
.memcard__top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: rgba(0,0,0,.15); }
.memcard__logo { width: 40px; height: 40px; border-radius: 9px; background: #fff; object-fit: contain; }
.memcard__logo--txt { display: grid; place-items: center; color: #0f766e; font-weight: 800; }
.memcard__org { font-weight: 800; font-size: 15px; }
.memcard__sub { font-size: 11px; color: #bfe9dd; }
.memcard__body { display: flex; gap: 16px; padding: 22px 20px; align-items: center; }
.memcard__photo { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; border: 2px solid rgba(255,255,255,.4); flex: none; }
.memcard__photo--init { display: grid; place-items: center; font-size: 34px; font-weight: 800; background: rgba(255,255,255,.18); }
.memcard__no { font-size: 13px; letter-spacing: 2px; color: #a7e0d2; }
.memcard__name { font-size: 21px; font-weight: 800; margin: 2px 0 6px; }
.memcard__row { font-size: 12.5px; color: #d7efe5; }
.memcard__foot { padding: 12px 20px; background: rgba(0,0,0,.18); font-size: 11.5px; color: #bfe9dd; text-align: center; }

@media (max-width: 720px) {
  .ess-tiles { grid-template-columns: repeat(2, 1fr); }
  .ess-hero { flex-wrap: wrap; }
}

/* ---------- Tema Portal Anggota ---------- */
.theme-portal .sidebar { background: linear-gradient(180deg, #0f766e 0%, #134e4a 100%); }
.theme-portal .nav a.active { background: #f59e0b; color: #3b2600; }
.theme-portal .sidebar__logo { color: #0f766e; }
.theme-portal .login-hero { background: linear-gradient(150deg, #0f766e, #0c3b37); }
.theme-portal .login-hero__logo { color: #0f766e; }

/* ---------- Input Iuran ---------- */
.search--lg { display: flex; gap: 10px; align-items: center; }
.search--lg input { flex: 1; min-width: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

.member-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 18px 22px;
  margin-bottom: 22px; box-shadow: var(--shadow);
}
.member-card__avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.18); display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
}
.member-card__info { flex: 1; min-width: 0; }
.member-card__name { font-size: 19px; font-weight: 800; }
.member-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: 13px; color: #d7efe5; align-items: center; }
.member-card .badge { background: rgba(255,255,255,.2); color: #fff; }
.member-card .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.member-card .btn--ghost:hover { background: rgba(255,255,255,.24); }

.periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.period {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 11px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13.5px; cursor: pointer; user-select: none;
  background: #fff; transition: all .12s ease; text-align: center;
}
.period:hover { border-color: var(--brand); }
.period__cb { position: absolute; opacity: 0; pointer-events: none; }
.period:has(.period__cb:checked),
.period.is-on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 4px 12px rgba(13,138,95,.25);
}
.period--lunas {
  background: var(--brand-light); border-color: #bfe6d6; color: var(--brand-dark);
  cursor: default; flex-direction: column; gap: 2px;
}
.period--lunas:hover { border-color: #bfe6d6; }
.period--pending {
  background: #fff4e5; border-color: #f5d9ab; color: #b45309;
  cursor: default; flex-direction: column; gap: 2px;
}
.period--pending:hover { border-color: #f5d9ab; }
.badge--verified { background: #e7f7ee; color: #15803d; }
.badge--pending  { background: #fff4e5; color: #b45309; }
.badge--ditolak  { background: #fde8ec; color: #be123c; }
.period__tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }

.total-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #fafbfc; border: 1px solid var(--border);
}
.total-bar__label { display: block; font-size: 12px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.total-bar__value { font-size: 26px; font-weight: 800; color: var(--brand); }
.total-bar__sub { font-size: 13px; color: var(--text-soft); margin-left: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}
@media (max-width: 720px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.18); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main { margin-left: 0; }
  body { background: #fff; }
}

/* ===================== Manajemen Makam ===================== */
.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 720px) { .mk-stats { grid-template-columns: repeat(2, 1fr); } }
.mk-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow); }
.mk-stat__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.mk-stat__ic.ic-slate { background: #eef1f5; color: #475569; }
.mk-stat__ic.ic-green { background: #e7f7ee; color: #15803d; }
.mk-stat__ic.ic-amber { background: #fef3c7; color: #b45309; }
.mk-stat__ic.ic-rose  { background: #fde8ec; color: #be123c; }
.mk-stat__v { font-size: 22px; font-weight: 800; line-height: 1; }
.mk-stat__l { font-size: 12px; color: var(--text-soft); margin-top: 3px; }

.mk-count { font-size: 12px; font-weight: 600; color: var(--text-soft); background: #f1f4f8; padding: 2px 9px; border-radius: 999px; margin-left: 8px; }
.mk-muted { color: var(--text-soft); font-size: 13px; }

.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-grid--3 { grid-template-columns: 1fr; } }

.mk-tools > summary { list-style: none; cursor: pointer; }
.mk-tools > summary::-webkit-details-marker { display: none; }
.mk-tools__box { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
@media (max-width: 720px) { .mk-tools__box { grid-template-columns: 1fr; } }
.mk-tools__t { font-size: 12.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 8px; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; }
.mk-plot { position: relative; border: 1px solid var(--border); border-radius: 11px; padding: 12px 6px 10px; background: var(--surface); cursor: pointer; text-align: center; font-family: var(--font); transition: transform .08s, box-shadow .12s; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mk-plot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mk-plot__no { font-weight: 700; font-size: 13px; }
.mk-plot i { font-size: 12px; opacity: .9; }
.mk-plot.is-kosong   { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.mk-plot.is-dipesan  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.mk-plot.is-terpakai { background: #fdf2f4; border-color: #f6c9d3; color: #9f1239; }

.mk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 14px 4px; font-size: 13px; color: var(--text-soft); }
.mk-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mk-dot { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.mk-dot.is-kosong { background: #86efac; } .mk-dot.is-dipesan { background: #fcd34d; } .mk-dot.is-terpakai { background: #fda4af; }

.mk-modal { position: fixed; inset: 0; background: rgba(16,24,40,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.mk-modal.open { display: flex; }
.mk-modal__box { background: var(--surface); border-radius: 16px; width: 100%; max-width: 440px; padding: 20px; box-shadow: 0 20px 60px rgba(16,24,40,.3); animation: mkUp .2s ease; }
@keyframes mkUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.mk-modal__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.mk-modal__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.mk-x { border: none; background: #f1f4f8; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; color: #516072; }
.mk-modal__links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mk-modal__links .btn { flex: 1; justify-content: center; }

/* ===================== Pagination ===================== */
.hk-pg { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-soft); }
.hk-pg__info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hk-pg__per { display: inline-flex; align-items: center; gap: 6px; }
.hk-pg__per select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 13px; background: #fff; cursor: pointer; color: var(--text); }
.hk-pg__nav { display: flex; align-items: center; gap: 5px; }
.hk-pg__b { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-weight: 600; text-decoration: none; }
.hk-pg__b:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.hk-pg__b.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.hk-pg__b.is-off { opacity: .4; pointer-events: none; }
.hk-pg__dots { padding: 0 2px; }
