/* Tata letak halaman pengelola (admin) */

body.adm { background: var(--paper); }

.adm-shell { display: flex; min-height: 100vh; }

.adm-side {
  width: 258px; flex: none; background: var(--navy-900); color: #C7D2E6;
  padding: 0 0 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.adm-brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; color: #fff; text-decoration: none; }
.adm-brand:hover { text-decoration: none; }
.adm-brand .crest {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, var(--gold), #8C6A00); font-weight: 800; font-size: .85rem;
}
.adm-brand b { display: block; font-size: .95rem; }
.adm-brand span span { font-size: .74rem; color: #93A3BF; }

.adm-group {
  margin: 16px 18px 6px; font-size: .68rem; font-weight: 800; color: #6C7C9B;
  letter-spacing: .07em; text-transform: uppercase;
}
.adm-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: #C7D2E6;
  font-size: .875rem; font-weight: 500; border-left: 3px solid transparent;
}
.adm-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.adm-side nav a.active { background: rgba(191,144,0,.16); border-left-color: var(--gold); color: #fff; font-weight: 600; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.adm-top {
  display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.adm-top h1 { margin: 0; font-size: 1.15rem; }
.adm-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.adm-user { text-align: right; line-height: 1.25; padding-left: 6px; }
.adm-user b { display: block; font-size: .84rem; }
.adm-user span { font-size: .74rem; color: var(--muted); }
.adm-toggle { display: none; border-color: var(--line); color: var(--ink); }

.adm-content { padding: 22px 24px 40px; flex: 1; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar .right { margin-left: auto; display: flex; gap: 8px; align-items: flex-end; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }

.conflict {
  border-left: 4px solid var(--busy); background: var(--busy-bg); color: var(--busy);
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .88rem;
}
.ok-note {
  border-left: 4px solid var(--free); background: var(--free-bg); color: var(--free);
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .88rem;
}

.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
}
.login-card { background: var(--surface); border-radius: 14px; padding: 30px; width: min(420px, 100%); box-shadow: var(--shadow-lg); }
.login-card .crest {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--gold), #8C6A00); font-weight: 800; margin-bottom: 14px;
}
.login-card h1 { font-size: 1.3rem; margin-bottom: .15em; }
.login-card p.sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.login-foot { text-align: center; margin-top: 18px; font-size: .84rem; color: #A9B7D0; }
.login-foot a { color: #fff; }

@media (max-width: 900px) {
  .adm-side {
    position: fixed; z-index: 40; transform: translateX(-100%); transition: transform .2s;
    box-shadow: var(--shadow-lg);
  }
  .adm-side.open { transform: translateX(0); }
  .adm-toggle { display: inline-grid; }
  .form-grid { grid-template-columns: 1fr; }
  .adm-user { display: none; }
}
