/* ==================================================================
   Just Inn — Panel Management
   Tampilan sengaja dibuat padat dan cepat dibaca, berbeda dari
   landing page yang lebih lapang.
   ================================================================== */

:root {
  --ink:       #12151B;
  --ink-2:     #191E27;
  --ink-3:     #232935;
  --bg:        #F5F4F1;
  --surface:   #FFFFFF;
  --surface-2: #FAF9F7;
  --line:      #E5E2DC;
  --line-2:    #D3CEC6;
  --text:      #23282F;
  --muted:     #7B746C;
  --gold:      #B98C46;
  --gold-2:    #E3C285;
  --gold-soft: rgba(185, 140, 70, .12);

  --ok:      #2F7D51;
  --ok-bg:   rgba(47, 125, 81, .1);
  --warn:    #A96A16;
  --warn-bg: rgba(169, 106, 22, .12);
  --info:    #2C6394;
  --info-bg: rgba(44, 99, 148, .1);
  --danger:  #A83E2A;
  --danger-bg: rgba(168, 62, 42, .1);

  --radius:    14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(18, 21, 27, .05);
  --shadow:    0 6px 22px rgba(18, 21, 27, .07);
  --shadow-lg: 0 20px 48px rgba(18, 21, 27, .14);
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --sidebar-w: 252px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -.22em; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }

.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.inline { display: inline; }

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: rgba(233, 230, 226, .78);
  z-index: 40;
  transition: transform .38s var(--ease);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sidebar__mark { width: 32px; height: 32px; color: var(--gold-2); flex: none; }
.sidebar__brand b { display: block; color: #FBF8F3; font-size: 1rem; line-height: 1.2; }
.sidebar__brand small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(233, 230, 226, .45); }

.sidebar__nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }

.sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: .89rem;
  font-weight: 500;
  color: rgba(233, 230, 226, .72);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.sidebar__link:hover { background: rgba(255, 255, 255, .06); color: #FBF8F3; }

.sidebar__link.is-active {
  background: var(--gold-soft);
  color: var(--gold-2);
  font-weight: 600;
}

.sidebar__link.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 20px;
  margin-top: -10px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-2);
}

.sidebar__link span { flex: 1; }

.sidebar__badge {
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
}

.sidebar__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.sidebar__user {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .25s var(--ease);
}

.sidebar__user:hover { background: rgba(255, 255, 255, .06); }
.sidebar__user-text { min-width: 0; }
.sidebar__user b { display: block; font-size: .85rem; color: #FBF8F3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user small { font-size: .72rem; color: rgba(233, 230, 226, .5); }

.sidebar__logout {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius-sm);
  color: rgba(233, 230, 226, .6);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.sidebar__logout:hover { background: var(--danger-bg); color: #E88A76; }

.sidebar__scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(18, 21, 27, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
}

.avatar--sm { width: 32px; height: 32px; font-size: .74rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.15rem; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

/* ---------- Topbar ---------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(245, 244, 241, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__burger {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
}

.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.topbar__title span { font-size: .78rem; color: var(--muted); }
.topbar__actions { display: flex; gap: 8px; }

/* ---------- Konten ---------------------------------------------- */
.content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fade-up .4s var(--ease) both;
}

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Tombol ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: #A87C39; box-shadow: 0 4px 14px rgba(185, 140, 70, .3); }

.btn--ghost { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.btn--danger { background: var(--danger-bg); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }

.btn--sm { padding: 8px 13px; font-size: .8rem; }
.btn--tiny { padding: 5px 10px; font-size: .75rem; border-radius: 7px; }
.btn--icon { padding: 5px 7px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .22s var(--ease);
}

.back-link:hover { color: var(--gold); }

.row-actions { display: inline-flex; gap: 5px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }

/* ---------- Alert ----------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  animation: fade-up .35s var(--ease) both;
}

.alert--ok    { background: var(--ok-bg);     color: var(--ok); }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert span { flex: 1; }
.alert__close { color: inherit; opacity: .6; }
.alert__close:hover { opacity: 1; }

/* ---------- Kartu statistik -------------------------------------- */
.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.card--stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }

.card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-bottom: 10px;
}

.card--warn .card__icon { background: var(--warn-bg);   color: var(--warn); }
.card--info .card__icon { background: var(--info-bg);   color: var(--info); }
.card--ok   .card__icon { background: var(--ok-bg);     color: var(--ok); }
.card--gold .card__icon { background: var(--gold-soft); color: var(--gold); }

.card__value { font-size: 1.85rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.card__label { font-size: .85rem; font-weight: 600; }
.card__note  { font-size: .76rem; color: var(--muted); }

/* ---------- Panel ------------------------------------------------ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  font-size: .98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel__head .muted { font-size: .78rem; }
.panel__body { padding: 18px; }
.panel__foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }

.grid { display: grid; gap: 20px; align-items: start; }

/* minmax(0, 1fr) supaya tabel lebar menyusut dan menggulir di dalam
   panelnya sendiri, bukan mendorong kolom di sebelahnya. */
@media (min-width: 1100px) {
  .grid--2-1 { grid-template-columns: minmax(0, 1fr) 330px; }
  .grid--1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.stack-panels { display: grid; gap: 20px; align-content: start; }

.pill-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Tabel ------------------------------------------------ */
.table-wrap { overflow-x: auto; }

/* Tabel dengan banyak kolom lebih baik menggulir mendatar daripada
   kolomnya diperas sampai setiap sel terpotong jadi beberapa baris. */
.table--wide { min-width: 780px; }

.table th {
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 13px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: .86rem;
  white-space: nowrap;
}

.table tbody tr { transition: background .2s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.is-off { opacity: .55; }
.table td small { display: block; font-size: .76rem; }
.table td b { font-weight: 600; }
.table a.mono { color: var(--gold); font-weight: 600; }
.table a.mono:hover { text-decoration: underline; }

.user-cell { display: flex; align-items: center; gap: 10px; }

/* Matriks ketersediaan */
.table--matrix td:first-child,
.table--matrix th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  min-width: 180px;
}

.table--matrix th:first-child { background: var(--surface-2); }
.table--matrix th.is-today { color: var(--gold); }
.table--matrix th.is-weekend { background: #F1EEE8; }
.table--matrix th small { display: block; font-size: .64rem; font-weight: 600; opacity: .75; }
.table--matrix td { padding: 7px 8px; }

.cell {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 700;
  transition: transform .2s var(--ease);
}

a.cell:hover { transform: scale(1.12); }

.cell--free { background: var(--ok-bg);     color: var(--ok); }
.cell--some { background: var(--info-bg);   color: var(--info); }
.cell--busy { background: var(--warn-bg);   color: var(--warn); }
.cell--full { background: var(--danger-bg); color: var(--danger); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .78rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; min-width: 16px; border-radius: 5px; }

/* ---------- Badge status ----------------------------------------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge--pending     { background: var(--warn-bg);   color: var(--warn); }
.badge--confirmed   { background: var(--info-bg);   color: var(--info); }
.badge--checked_in  { background: var(--ok-bg);     color: var(--ok); }
.badge--checked_out { background: rgba(123, 116, 108, .14); color: var(--muted); }
.badge--cancelled   { background: var(--danger-bg); color: var(--danger); }

/* ---------- Filter & toolbar ------------------------------------- */
.filters,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toolbar { justify-content: space-between; }
.toolbar__nav, .toolbar__form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.filters__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.filters__search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

.filters__search input {
  flex: 1;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: none;
  outline: none;
  font-size: .86rem;
  color: var(--text);
}

.filters__date { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: var(--radius-sm); }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background .22s var(--ease), color .22s var(--ease);
}

.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.tab__count {
  font-style: normal;
  padding: 1px 7px;
  border-radius: 9px;
  background: var(--gold);
  color: #fff;
  font-size: .7rem;
}

/* ---------- Form ------------------------------------------------- */
.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .87rem;
  color: var(--text);
  outline: none;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.input--sm { width: auto; padding: 8px 11px; font-size: .82rem; }
textarea.input { resize: vertical; min-height: 84px; }
select.input { cursor: pointer; }

.field-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-group > span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.field-group > span i { font-style: normal; color: var(--danger); }
.hint { font-size: .74rem; color: var(--muted); line-height: 1.5; }
.hint code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .95em; }

.form-grid { display: grid; gap: 16px; }

@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-group--full { grid-column: 1 / -1; }
}

.stack-form { display: flex; flex-direction: column; gap: 14px; }

.check { display: flex; align-items: center; gap: 8px; font-size: .85rem; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

.check-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.settings { display: flex; flex-direction: column; gap: 20px; }

.settings__save {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-head { flex-direction: row; align-items: center; gap: 14px; }
.profile-head b { display: block; font-size: 1.05rem; }

/* ---------- Daftar & detail --------------------------------------- */
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }

.list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  transition: background .2s var(--ease);
}

.list a:hover { background: var(--surface-2); }
.list__text { flex: 1; min-width: 0; }
.list__text b { display: block; font-size: .87rem; font-weight: 600; }
.list__text small { font-size: .77rem; color: var(--muted); }

.detail { display: grid; gap: 0; }
.detail > div { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.detail > div:last-child { border-bottom: 0; }
.detail dt { flex: 0 0 148px; font-size: .8rem; color: var(--muted); }
.detail dd { flex: 1; font-size: .88rem; }
.detail a { color: var(--gold); }
.detail a:hover { text-decoration: underline; }

.note-box {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: #7A4E12;
  font-size: .85rem;
}

.note-box b { display: block; margin-bottom: 3px; }

.figure { display: flex; align-items: center; gap: 14px; }
.figure .ico { color: var(--gold); }
.figure b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.figure small { font-size: .78rem; color: var(--muted); }

.timeline { padding: 6px 18px 16px; }

.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 11px 0 11px 4px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 26px;
  bottom: -6px;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::before { display: none; }

.timeline__dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  z-index: 1;
}

.timeline b { display: block; font-size: .85rem; font-weight: 600; }
.timeline small { font-size: .76rem; color: var(--muted); }
.timeline__note { margin-top: 4px; font-size: .8rem; color: var(--muted); font-style: italic; }

/* Daftar kamar */
.room-list li { border-bottom: 1px solid var(--line); }
.room-list li:last-child { border-bottom: 0; }

.room-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; transition: background .2s var(--ease); }
.room-item:hover { background: var(--surface-2); }
.room-item.is-off { opacity: .55; }

.room-item__img {
  width: 58px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}

.room-item__img--empty { display: grid; place-items: center; color: var(--muted); }
.room-item__body { flex: 1; min-width: 0; }
.room-item__body b { display: block; font-size: .88rem; }
.room-item__body small { font-size: .77rem; }

/* Pesan masuk */
.messages { display: grid; gap: 14px; }

.message {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: pop .35s var(--ease) both;
}

.message.is-unread { border-left: 3px solid var(--gold); }
.message__head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.message__meta { flex: 1; min-width: 0; }
.message__meta b { font-size: .89rem; }
.message__meta small { display: block; font-size: .77rem; color: var(--muted); }
.message__meta a:hover { color: var(--gold); }
.message__head time { font-size: .76rem; white-space: nowrap; }
.message__subject { font-size: .92rem; font-weight: 700; margin-bottom: 5px; }
.message__body { font-size: .87rem; color: #3A4048; }
.message__foot { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Kosong & pagination ---------------------------------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
}

.empty .ico { color: var(--line-2); }
.empty--sm { padding: 26px 18px; font-size: .85rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 5px; padding: 14px 18px; border-top: 1px solid var(--line); }

.pagination__item {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.pagination__item:hover { border-color: var(--gold); color: var(--gold); }
.pagination__item.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination__gap { display: grid; place-items: center; width: 26px; height: 34px; color: var(--muted); }

/* ---------- Halaman login ---------------------------------------- */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(760px 480px at 20% 12%, rgba(185, 140, 70, .3), transparent 62%),
    radial-gradient(680px 420px at 82% 88%, rgba(78, 100, 114, .3), transparent 60%),
    var(--ink);
}

.login { width: min(100%, 420px); }

.login__card {
  padding: clamp(26px, 5vw, 38px);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: fade-up .5s var(--ease) both;
}

.login__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.login__mark { width: 38px; height: 38px; color: var(--gold); }
.login__brand b { display: block; font-size: 1.05rem; }
.login__brand small { font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.login__card h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.login__sub { font-size: .87rem; color: var(--muted); margin-bottom: 20px; }
.login__form { display: flex; flex-direction: column; gap: 15px; margin-bottom: 18px; }
.login__form .btn { margin-top: 4px; padding: 12px; }
.login__card .alert { margin-bottom: 16px; }
.login__back { display: block; text-align: center; font-size: .8rem; color: var(--muted); }
.login__back:hover { color: var(--gold); }

/* ---------- Responsive ------------------------------------------- */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .sidebar__scrim.is-open { opacity: 1; visibility: visible; }
  .main { margin-left: 0; }
  .topbar__burger { display: grid; }
}

@media (max-width: 640px) {
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .topbar__actions .btn span { display: none; }
  .detail > div { flex-direction: column; gap: 2px; }
  .detail dt { flex: none; }
  .settings__save { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
