/* =============================================
   UNIFIED STYLESHEET — All Pages
   Dashboard, Status, Approval Meeting,
   Riwayat Kegiatan, Pilih Jadwal

   Palette: Institut Teknologi Kalimantan (ITK)
   Primary blue  : #1a56db
   Dark navy     : #003f8a
   Light bg      : #eff6ff
   Accent yellow : #f0a500
   ============================================= */

/* ─── CSS VARIABLES ─── */
:root {
  --primary:       #1a56db;   /* ITK main blue */
  --primary-dark:  #003f8a;   /* ITK navy */
  --primary-mid:   #1251a3;   /* hover state */
  --primary-light: #dbeafe;   /* badge/chip bg */
  --primary-pale:  #eff6ff;   /* section bg */
  --accent:        #f0a500;   /* ITK yellow accent */
  --accent-light:  #fef3c7;   /* accent pale bg */
  --bg:            #f0f5ff;   /* page background - light blue tint */
  --card-bg:       #FFFFFF;
  --sidebar-bg:    #FFFFFF;
  --text-dark:     #0d1b3e;   /* near-black navy */
  --text-mid:      #4a6080;   /* muted blue-grey */
  --text-light:    #8aa0bf;   /* light muted */
  --event-bg:      #1a56db;   /* event card = primary blue */
  --event-bg2:     #1251a3;   /* event card alt = darker blue */
  --radius:        18px;
  --radius-sm:     10px;
  /* ── alias ── */
  --salmon:        #1a56db;   /* remapped → ITK primary blue */
  --salmon-pale:   #eff6ff;   /* remapped → ITK pale blue */
}

/* ─── RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── BODY ─── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
}

/* ─── ROOT APP GRID ─── */
.app {
  display: grid;
  grid-template-columns: 220px 1fr 260px;  /* lebih kecil agar muat 1366px viewport */
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  height: auto;
  background: var(--bg);
  border-radius: 0;
  box-sizing: border-box;
  padding: 16px 16px 16px;  /* padding seragam, top tidak perlu terlalu besar */
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  background: var(--sidebar-bg);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(26,86,219,0.08);
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0eaff;
  margin-bottom: 12px;
  transition: opacity 0.15s;
}
.profile:hover { opacity: 0.75; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
  flex-shrink: 0;
}

.profile-info .name { font-weight: 600; font-size: 14px; color: var(--text-dark); }
.profile-info .role { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-mid);
  font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav-item:hover          { background: var(--primary-pale); color: var(--primary); }
.nav-item.active         { color: var(--primary); font-weight: 600; background: var(--primary-pale); }

.nav-icon  { font-size: 18px; width: 22px; text-align: center; }
.nav-arrow { margin-left: auto; font-size: 12px; color: var(--text-light); }

.sub-menu { background: var(--primary-pale); border-radius: var(--radius-sm); padding: 8px 0; margin: 0 -4px; }

.sub-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; font-size: 13px; color: var(--text-mid);
  cursor: pointer; border-radius: 8px; transition: all 0.15s;
}
.sub-item:hover       { color: var(--primary); }
.sub-item.active      { color: var(--primary); font-weight: 600; }

.sub-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-light); flex-shrink: 0; transition: background 0.15s;
}
.sub-item.active .sub-dot { background: var(--primary); }

.nav-spacer { flex: 1; }

.logout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-light);
  font-size: 14px; font-weight: 500; transition: all 0.2s;
  border-top: 1px solid #e0eaff; padding-top: 18px; margin-top: 8px;
}
.logout:hover { color: var(--primary); }

/* =============================================
   RIGHT PANEL (calendar sidebar)
   ============================================= */
.right-panel { display: flex; flex-direction: column; gap: 14px; height: auto; }
.right-card  {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 4px 24px rgba(26,86,219,0.08);
  height: auto;
}

/* Toggle BULAN / TAHUN */
.toggle-row {
  display: flex; background: var(--primary-pale); border-radius: 30px; padding: 4px; gap: 2px;
}
.toggle-btn {
  flex: 1; padding: 8px 0; border: none; border-radius: 26px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.toggle-btn.active        { background: var(--primary); color: #fff; }
.toggle-btn:not(.active)  { background: transparent; color: var(--text-light); }

/* Mini calendar */
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 12px;
}
.cal-title { font-size: 18px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; }
.cal-title span { color: var(--text-mid); font-weight: 400; font-size: 16px; font-family: 'DM Sans', sans-serif; margin-left: 4px; }

.cal-nav { display: flex; gap: 6px; }
.cal-nav-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #c7d9f5; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-mid); transition: all 0.15s;
}
.cal-nav-btn:hover { border-color: var(--primary); color: var(--primary); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.cal-day-label {
  text-align: center; font-size: 11px; font-weight: 600;
  color: var(--text-light); padding: 4px 0 8px;
}
.cal-day {
  text-align: center; font-size: 13px; padding: 7px 4px;
  border-radius: 50%; cursor: pointer; color: var(--text-mid);
  transition: all 0.15s; line-height: 1; font-weight: 400; position: relative;
}
.cal-day:hover:not(.today):not(.other-month) { background: var(--primary-light); color: var(--primary); }
.cal-day.today       { background: var(--primary); color: #fff; font-weight: 700; border-radius: 50%; }
.cal-day.other-month { color: #c5d4ec; }

/* Calendar dot indicator */
.cal-dot {
  position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
}

/* CTA button */
.cta-btn {
  width: 100%; padding: 16px;
  border: 2px solid var(--primary); background: transparent;
  border-radius: 14px; color: var(--primary);
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.cta-btn:hover { background: var(--primary); color: #fff; }

/* Varian kecil untuk cta-btn, dipakai inline di header (bukan full-width) */
.cta-btn-sm {
  width: auto; padding: 10px 22px; font-size: 13px;
  flex-shrink: 0; white-space: nowrap;
}

/* Dipakai saat halaman tidak menampilkan right-panel, agar main melebar
   mengisi ruang kolom kanan (grid .app: sidebar / main / right-panel) */
.main-full { grid-column: 2 / -1; }

/* See all link */
.see-all { display: flex; justify-content: flex-end; margin-top: 12px; }
.see-all a {
  font-size: 13px; color: var(--primary); font-weight: 600;
  text-decoration: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px; transition: gap 0.2s;
}
.see-all a:hover { gap: 8px; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BADGES / PILLS
   ============================================= */
.badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.badge-rektor  { background: var(--primary-pale); color: var(--primary); }
.badge-wakil1  { background: #E3F0FE; color: #4A7CC9; }
.badge-wakil2  { background: #E8FEE3; color: #3A9A52; }
.badge-kepala  { background: var(--accent-light); color: #9a6700; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill-menunggu   { background: var(--accent-light); color: #9a6700; }
.pill-disetujui  { background: #EDFBF2; color: #2D9B58; }
.pill-ditolak    { background: #FFF0F0; color: #D94040; }
.pill-reschedule { background: #F3EFFE; color: #7B52C8; }

/* Status badge */
.status-badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.status-badge.reschedule { background: var(--primary-pale); color: var(--primary); border: 1px solid var(--primary-light); }
.status-badge.ditolak    { background: #FFF0F0; color: #D94040; border: 1px solid #F9CACA; }
.status-badge.pending    { background: var(--accent-light); color: #9a6700; border: 1px solid #f5dfa0; }

/* =============================================
   MINI SELECT
   ============================================= */
.mini-select {
  border: 1.5px solid #c7d9f5; border-radius: 8px; padding: 5px 28px 5px 10px;
  font-size: 12px; font-family: 'DM Sans', sans-serif; color: var(--text-mid);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238aa0bf' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none; outline: none; cursor: pointer;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
/* Varian rata-tengah, dipakai di halaman yang paginationnya cuma berisi
   tombol saja (tanpa teks info di kiri seperti "Menampilkan 1-3 dari 12") */
.pagination.center { justify-content: center; gap: 6px; }
.pag-info { font-size: 12px; color: var(--text-light); }
.pag-btns { display: flex; gap: 4px; }
.pag-btn {
  width: 30px; height: 30px; border-radius: 7px;
  border: 1.5px solid #c7d9f5; background: #fff;
  font-size: 12px; font-weight: 500; color: var(--text-mid);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.pag-btn:hover  { border-color: var(--primary); color: var(--primary); }
.pag-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pag-btn.nav    { width: auto; padding: 0 8px; }

.page-btn {
  min-width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid #c7d9f5; background: #fff;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px; gap: 4px; transition: all 0.15s;
}
.page-btn:hover  { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.nav    { color: var(--text-light); }

/* =============================================
   DASHBOARD
   ============================================= */
.main {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 28px 28px 0 28px;
  display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 4px 24px rgba(26,86,219,0.08);
}
.main-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.main-header .label {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
  color: var(--text-dark); letter-spacing: -0.5px;
}
.main-header .date { font-size: 20px; font-weight: 600; color: var(--primary); font-family: 'Playfair Display', serif; }

/* Timeline */
.timeline { flex: 1; overflow-y: auto; padding-right: 4px; position: relative; }
.timeline::-webkit-scrollbar { width: 4px; }
.timeline::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

.time-slot { display: flex; align-items: flex-start; gap: 16px; min-height: 70px; position: relative; }
.time-label { width: 56px; font-size: 12px; color: var(--text-light); padding-top: 2px; flex-shrink: 0; text-align: right; font-weight: 500; }
.time-line  { flex: 1; position: relative; }
.time-divider { height: 1px; background: #e0eaff; margin-top: 8px; }
.events-row { display: flex; gap: 10px; padding: 6px 0; }

/* Event cards */
.event {
  background: var(--event-bg); border-radius: 14px; padding: 14px 16px;
  color: #fff; flex: 1; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s; position: relative;
  min-height: 70px; display: flex; flex-direction: column; justify-content: space-between;
  animation: fadeUp 0.4s ease both;
}
.event:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,0.3); }
.event:nth-child(2) { flex: 0.7; background: var(--event-bg2); }
.event-top    { display: flex; align-items: flex-start; justify-content: space-between; }
.event-title  { font-size: 14px; font-weight: 600; line-height: 1.3; }
.event-dots   { display: flex; gap: 3px; align-items: center; margin-top: 2px; }
.event-dot    { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.7); }
.event-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.event-time   { font-size: 12px; opacity: 0.85; font-weight: 400; }
.event-guests { font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 4px; }

/* Current time indicator */
.current-time { display: flex; align-items: center; gap: 0; padding: 4px 0; position: relative; }
.current-time-pill { background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; z-index: 2; }
.current-time-line { flex: 1; height: 1.5px; background: var(--primary); opacity: 0.4; position: relative; }
.current-time-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

.main-content {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 24px 22px 20px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 4px 24px rgba(26,86,219,0.08); overflow-y: visible;
}
.top-bar  { display: flex; align-items: flex-start; justify-content: space-between; }
.greeting h1 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text-dark); }
.greeting p  { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.top-right   { display: flex; align-items: center; gap: 16px; }

.notif-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #c7d9f5; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all 0.2s;
}
.notif-btn:hover { border-color: var(--primary); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--primary); color: #fff; font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff;
}
.date-time .dt-date { font-size: 13px; font-weight: 600; color: var(--text-dark); text-align: right; }
.date-time .dt-time { font-size: 12px; color: var(--text-light); text-align: right; margin-top: 1px; }

/* Stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card {
  background: #fff; border: 1.5px solid #dbeafe; border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
  animation: fadeUp 0.4s ease both; transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(26,86,219,0.1); }
.stat-icon-wrap { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 4px; }
.si-red    { background: var(--primary-pale); }
.si-orange { background: var(--accent-light); }
.si-green  { background: #EDFBF2; }
.si-pink   { background: var(--primary-light); }
.stat-num   { font-size: 26px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-light); }
.stat-link  { font-size: 11px; color: var(--primary); font-weight: 600; cursor: pointer; margin-top: 4px; }
.stat-link:hover { text-decoration: underline; }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: #fff; border: 1.5px solid #dbeafe; border-radius: 14px; padding: 18px 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-title  { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.panel-link   { font-size: 12px; color: var(--primary); font-weight: 600; cursor: pointer; }
.panel-link:hover { text-decoration: underline; }

.agenda-item   { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e0eaff; }
.agenda-item:last-child { border-bottom: none; }
.agenda-time   { font-size: 12px; font-weight: 700; color: var(--primary); min-width: 56px; line-height: 1.4; flex-shrink: 0; }
.agenda-info   { flex: 1; min-width: 0; }
.agenda-title  { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.agenda-loc    { font-size: 11px; color: var(--text-light); margin-bottom: 2px; }
.agenda-guests { font-size: 11px; color: var(--text-light); }

.donut-wrap  { display: flex; align-items: center; gap: 20px; }
.legend-list { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.legend-row  { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-mid); }
.legend-left { display: flex; align-items: center; gap: 6px; }
.legend-dot2 { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-val  { font-weight: 600; color: var(--text-dark); font-size: 12px; }
.legend-pct  { color: var(--text-light); font-size: 11px; }

.avg-box   { background: var(--primary-pale); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.avg-icon  { font-size: 20px; }
.avg-label { font-size: 11px; color: var(--text-light); }
.avg-num   { font-size: 20px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1; }
.avg-trend { font-size: 11px; color: #2D9B58; font-weight: 600; margin-top: 2px; }

.approval-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.approval-item { background: #fff; border: 1.5px solid #dbeafe; border-radius: 12px; padding: 14px 12px; text-align: center; }
.appr-icon  { font-size: 22px; margin-bottom: 6px; }
.appr-num   { font-size: 22px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1; }
.appr-label { font-size: 11px; color: var(--text-light); margin: 2px 0 6px; }
.appr-link  { font-size: 11px; color: var(--primary); font-weight: 600; cursor: pointer; }
.appr-link:hover { text-decoration: underline; }

.bar-item  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-name  { font-size: 12px; color: var(--text-mid); min-width: 90px; }
.bar-track { flex: 1; background: #e0eaff; border-radius: 20px; height: 8px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 20px; transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }
.bar-num   { font-size: 12px; font-weight: 700; color: var(--text-dark); min-width: 20px; text-align: right; }

.upcoming-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.upcoming-day   { background: #fff; border: 1.5px solid #dbeafe; border-radius: 12px; padding: 14px; }
.upcoming-date  { font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 10px; }
.upcoming-body  { display: flex; align-items: center; gap: 10px; }
.upcoming-count { font-size: 20px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1; }

/* =============================================
   STATUS PAGES
   ============================================= */
.status-main {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 4px 24px rgba(26,86,219,0.08);
}
.status-header { margin-bottom: 20px; }
.status-header h1 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text-dark); }
.status-header p  { font-size: 13px; color: var(--text-light); margin-top: 2px; }

.status-tabs { display: flex; gap: 0; border-bottom: 1px solid #dbeafe; margin-bottom: 20px; }
.tab-btn {
  padding: 8px 18px; font-size: 13px; font-weight: 500; color: var(--text-light);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center;
}
.tab-btn:hover  { color: var(--primary); }
.tab-btn.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); }

.schedule-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0; }
.schedule-list::-webkit-scrollbar { width: 4px; }
.schedule-list::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

.schedule-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid #e0eaff;
  animation: fadeUp 0.35s ease both;
}
.schedule-item:last-child { border-bottom: none; }

.sched-date     { text-align: center; min-width: 52px; flex-shrink: 0; }
.sched-day-name { font-size: 11px; color: var(--text-light); font-weight: 500; text-transform: capitalize; }
.sched-day-num  { font-size: 28px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1.1; }
.sched-month    { font-size: 11px; color: var(--text-light); }

.sched-content  { flex: 1; min-width: 0; }
.sched-time     { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.sched-title    { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-location { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.sched-guests   { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-light); }

.sched-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.reschedule-info  { margin-top: 6px; font-size: 12px; color: var(--text-mid); background: var(--primary-pale); border-radius: 8px; padding: 6px 10px; line-height: 1.5; }
.reschedule-info strong { color: var(--text-dark); }
.reject-reason    { margin-top: 6px; font-size: 12px; color: var(--text-mid); background: #FFF3F3; border-radius: 8px; padding: 6px 10px; }
.pending-note     { margin-top: 6px; font-size: 12px; color: #9a6700; background: var(--accent-light); border-radius: 8px; padding: 6px 10px; }

/* =============================================
   APPROVAL MEETING
   ============================================= */
.am-main {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 4px 24px rgba(26,86,219,0.08); overflow-y: auto;
}
.am-header h1 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text-dark); }
.am-header p  { font-size: 12px; color: var(--text-light); margin-top: 3px; }

.am-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.am-tab {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1.5px solid transparent; cursor: pointer; font-family: 'DM Sans', sans-serif;
  color: var(--text-mid); background: transparent; transition: all 0.15s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.am-tab:hover { color: var(--primary); }
.am-tab.active         { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.am-tab.active-green   { background: #EDFBF2; color: #2D9B58; border-color: #AADFC0; font-weight: 600; }
.am-tab.active-red     { background: #FFF0F0; color: #D94040; border-color: #F9CACA; font-weight: 600; }
.am-tab.active-purple  { background: #F3EFFE; color: #7B52C8; border-color: #C9B5F0; font-weight: 600; }
.am-tab.active-orange  { background: var(--accent-light); color: #9a6700; border-color: #f5d48a; font-weight: 600; }

.tab-spacer { flex: 1; }

.filter-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1.5px solid #c7d9f5; border-radius: 8px; background: #fff;
  font-size: 13px; color: var(--text-mid); cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.search-row   { display: flex; gap: 10px; align-items: center; }
.search-input {
  flex: 1; border: 1.5px solid #c7d9f5; border-radius: 10px;
  padding: 9px 14px 9px 36px; font-size: 13px; font-family: 'DM Sans', sans-serif;
  color: var(--text-dark); outline: none; transition: border-color 0.2s;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238aa0bf' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
}
.search-input:focus { border-color: var(--primary); }

.am-table { width: 100%; border-collapse: collapse; }
.am-table th {
  font-size: 11px; font-weight: 600; color: var(--text-light);
  text-align: left; padding: 8px 12px; border-bottom: 1.5px solid #dbeafe;
  background: #FAFCFF; text-transform: uppercase; letter-spacing: 0.5px;
}
.am-table th:first-child { border-radius: 8px 0 0 0; }
.am-table th:last-child  { border-radius: 0 8px 0 0; }
.am-table td { padding: 13px 12px; border-bottom: 1px solid #e0eaff; vertical-align: top; font-size: 13px; color: var(--text-dark); }
.am-table tr:last-child td { border-bottom: none; }
.am-table tr:hover td     { background: #f7faff; }
.am-table tr.row-clickable { cursor: pointer; }
.am-table tr.row-clickable:hover td { background: #eff6ff; }

.td-date .day-name { font-size: 11px; color: var(--text-light); }
.td-date .day-num  { font-size: 20px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1.1; }
.td-date .month    { font-size: 11px; color: var(--text-light); }

.td-kegiatan .keg-title { font-weight: 600; font-size: 13px; color: var(--text-dark); margin-bottom: 3px; }
.td-kegiatan .keg-org   { font-size: 11px; color: var(--text-light); margin-bottom: 2px; }
.td-kegiatan .keg-loc   { font-size: 11px; color: var(--text-light); }
.td-kegiatan .keg-time  { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.action-dots { cursor: pointer; color: var(--text-light); font-size: 16px; letter-spacing: 2px; padding: 4px 6px; border-radius: 6px; transition: all 0.15s; }
.action-dots:hover { background: #e0eaff; color: var(--text-dark); }

.reject-detail { background: #FFF8F8; border-radius: 0 0 10px 10px; padding: 10px 14px; margin-top: 8px; font-size: 12px; }
.reject-detail .rd-label { color: var(--text-light); margin-bottom: 2px; }
.reject-detail .rd-value { color: var(--text-dark); font-weight: 500; }
.reject-detail .rd-meta  { color: var(--text-light); margin-top: 4px; font-size: 11px; display: flex; align-items: center; gap: 4px; }

.sched-suggest       { background: #F5F0FF; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.sched-suggest-label { font-size: 11px; color: #7B52C8; font-weight: 600; margin-bottom: 6px; }
.sched-slots { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sched-slot {
  padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 600;
  border: 1.5px solid #C9B5F0; color: #7B52C8; background: #fff;
  cursor: pointer; transition: all 0.15s;
}
.sched-slot:hover,
.sched-slot.selected { background: #7B52C8; color: #fff; border-color: #7B52C8; }
.sched-slot.na { background: #F5F5F5; color: #AAA; border-color: #E0E0E0; cursor: default; }
.btn-other {
  padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 600;
  border: 1.5px solid var(--primary); color: var(--primary); background: transparent;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.btn-other:hover { background: var(--primary); color: #fff; }

.summary-box       { background: #fff; border: 1.5px solid #dbeafe; border-radius: 14px; padding: 18px; margin-top: 14px; }
.summary-box-title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.sum-row  { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sum-row:last-child { margin-bottom: 0; }
.sum-icon { font-size: 22px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sum-num  { font-size: 20px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1; }
.sum-label { font-size: 11px; color: var(--text-light); margin-top: 1px; }

.report-link { display: block; text-align: right; font-size: 12px; color: var(--primary); font-weight: 600; cursor: pointer; margin-top: 14px; }
.report-link:hover { text-decoration: underline; }

.reason-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 12px; color: var(--text-mid); }
.reason-bar     { flex: 1; background: #e0eaff; border-radius: 20px; height: 6px; overflow: hidden; }
.reason-fill    { height: 100%; border-radius: 20px; background: #E84040; }
.reason-num     { font-size: 12px; font-weight: 700; color: var(--text-dark); min-width: 16px; text-align: right; }

/* =============================================
   RIWAYAT KEGIATAN
   ============================================= */
.filter-bar { display: flex; gap: 12px; margin-bottom: 24px; align-items: center; flex-wrap: wrap; }
.filter-select,
.filter-date,
.filter-search {
  border: 1.5px solid #c7d9f5; border-radius: 10px; padding: 9px 14px;
  font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text-mid);
  background: #fff; outline: none; transition: border-color 0.2s;
}
.filter-select {
  appearance: none; padding-right: 32px; min-width: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238aa0bf' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter-date   { min-width: 200px; }
.filter-date-range { display: flex; align-items: center; gap: 6px; }
.filter-date-range .filter-date { min-width: 132px; }
.filter-date-sep { color: var(--text-light); font-size: 13px; }
.filter-search {
  flex: 1; min-width: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238aa0bf' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter-select:focus,
.filter-date:focus,
.filter-search:focus { border-color: var(--primary); }

.history-card {
  background: #fff; border: 1.5px solid #dbeafe; border-radius: 14px;
  padding: 20px 24px; margin-bottom: 16px;
  display: flex; gap: 20px; align-items: flex-start;
  animation: fadeUp 0.35s ease both; transition: box-shadow 0.2s;
}
.history-card:hover { box-shadow: 0 4px 20px rgba(26,86,219,0.1); }

.hist-date     { text-align: center; min-width: 58px; flex-shrink: 0; padding-top: 2px; }
.hist-day-name { font-size: 12px; color: var(--text-light); font-weight: 500; }
.hist-day-num  { font-size: 32px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; line-height: 1; }
.hist-month    { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.hist-divider  { width: 1px; background: #dbeafe; align-self: stretch; flex-shrink: 0; }

.hist-content  { flex: 1; min-width: 0; }
.hist-top      { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hist-time     { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); }
.hist-title    { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.hist-location { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); margin-bottom: 14px; }

.hist-actions  { display: flex; gap: 10px; flex-wrap: wrap; }
.action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; background: transparent;
}
.action-btn.notulensi   { border: 1.5px solid var(--primary); color: var(--primary); }
.action-btn.dokumentasi { border: 1.5px solid #E8A83A; color: #E8A83A; }
.action-btn.ai          { border: 1.5px solid #8B6FD4; color: #8B6FD4; }
.action-btn.notulensi:hover   { background: var(--primary); color: #fff; }
.action-btn.dokumentasi:hover { background: #E8A83A; color: #fff; }
.action-btn.ai:hover          { background: #8B6FD4; color: #fff; }

.info-box {
  background: var(--primary-pale); border: 1.5px solid var(--primary-light); border-radius: 12px;
  padding: 14px; display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; margin-bottom: 20px; font-size: 12px; color: var(--text-mid); line-height: 1.5;
}
.info-box-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.summary-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.stat-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e0eaff; }
.stat-item:last-child { border-bottom: none; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.stat-icon.green  { background: #EDFBF2; }
.stat-icon.orange { background: var(--accent-light); }
.stat-icon.purple { background: #F3EFFE; }

/* =============================================
   PILIH JADWAL
   ============================================= */
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.back-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #c7d9f5; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--text-mid);
  transition: all 0.15s; flex-shrink: 0;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }

.form-section { background: #fff; border: 1.5px solid #dbeafe; border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.form-section-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }

.form-row   { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-group.full { flex: 1 1 100%; }

.form-label     { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.form-label .req { color: var(--primary); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  border: 1.5px solid #c7d9f5; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text-dark);
  background: #fff; outline: none; transition: border-color 0.2s; width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-light); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--primary); }

.form-error-text {
  color: #f80202;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238aa0bf' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.form-input-icon { position: relative; }
.form-input-icon .form-input { padding-right: 36px; }
.form-input-icon .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 15px; pointer-events: none; }

.form-textarea { resize: none; height: 90px; line-height: 1.5; }
.char-count    { text-align: right; font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* Calendar picker */
.cal-picker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-picker-title  { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.cal-picker-nav    { display: flex; gap: 6px; }
.cal-picker-nav-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid #c7d9f5; background: transparent;
  cursor: pointer; font-size: 12px; color: var(--text-mid); transition: all 0.15s;
}
.cal-picker-nav-btn:hover { border-color: var(--primary); color: var(--primary); }

.cal-picker-grid  { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 6px; }
.cal-picker-label { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-light); padding: 4px 0 6px; }
.cal-picker-day   {
  text-align: center; font-size: 12px; padding: 6px 2px; border-radius: 50%;
  cursor: pointer; color: var(--text-mid); transition: all 0.15s; line-height: 1; font-weight: 400; position: relative;
}
.cal-picker-day:hover:not(.other):not(.selected) { background: var(--primary-light); color: var(--primary); }
.cal-picker-day.selected      { background: var(--primary); color: #fff; font-weight: 700; }
.cal-picker-day.today-outline { border: 1.5px solid var(--primary); color: var(--primary); font-weight: 600; }
.cal-picker-day.other         { color: #c5d4ec; }

.cal-picker-day .dot { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; }

/* Info filter tanggal terpilih & empty state (dipakai di kalender interaktif Status & Riwayat) */
.cal-filter-info {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--primary-pale, #eff6ff); border-radius: 8px;
  padding: 8px 10px; margin-top: 10px; font-size: 11.5px; color: var(--primary); font-weight: 600;
}
.cal-filter-reset {
  border: none; background: none; cursor: pointer; font-size: 11px; font-weight: 600;
  color: var(--text-light); white-space: nowrap;
}
.cal-filter-reset:hover { color: #D94040; }
.cal-empty-state {
  text-align: center; padding: 22px 12px; margin-top: 8px;
  background: #F7F9FC; border-radius: 12px;
}
.cal-empty-icon  { font-size: 34px; margin-bottom: 10px; line-height: 1; }
.cal-empty-title { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.cal-empty-sub   { font-size: 12px; color: var(--text-light); line-height: 1.4; }
.dot-green  { background: #3DBD70; }
.dot-orange { background: #E8A83A; }
.dot-red    { background: #E84040; }
.dot-purple { background: #8B6FD4; }

/* Time slots */
.time-section-header { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-slot-btn {
  border-radius: 10px; padding: 10px 8px; text-align: center;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; border: 1.5px solid transparent; transition: all 0.15s;
}
.slot-tersedia         { background: #EDFBF2; color: #2D9B58; border-color: #AADFC0; }
.slot-tersedia:hover   { background: #D4F5E3; }
.slot-terisi           { background: #F5F5F5; color: #AAAAAA; border-color: #E8E8E8; cursor: default; }
.slot-sebagian         { background: var(--accent-light); color: #9a6700; border-color: #f5d48a; }
.slot-sebagian:hover   { background: #fde9a0; }
.slot-selected         { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot-label            { font-size: 11px; font-weight: 400; margin-top: 2px; opacity: 0.8; }

.notice-box {
  background: var(--primary-pale); border: 1.5px solid var(--primary-light); border-radius: 12px;
  padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px;
  margin-top: 20px; font-size: 12px; color: var(--text-mid); line-height: 1.6;
}
.notice-icon { font-size: 20px; flex-shrink: 0; }

.form-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dbeafe; }
.btn-batal {
  padding: 12px 32px; border-radius: 12px; border: 1.5px solid var(--primary);
  background: transparent; color: var(--primary); font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.btn-batal:hover  { background: var(--primary-pale); }
.btn-simpan {
  padding: 12px 32px; border-radius: 12px; border: none;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.btn-simpan:hover { background: var(--primary-mid); }
.btn-simpan:disabled { opacity: 0.6; cursor: not-allowed; }

/* Legend */
.legend-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin: 16px 0 12px; }
.legend-item  { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.legend-dot   { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.legend-text .leg-label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.legend-text .leg-desc  { font-size: 11px; color: var(--text-light); margin-top: 1px; }

.tips-box {
  background: var(--primary-pale); border-radius: 10px; padding: 12px 14px; margin-top: 16px;
  display: flex; gap: 8px; font-size: 12px; color: var(--text-mid); line-height: 1.5;
}

.picker-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* =============================================
   BUAT JADWAL — dipadatkan agar muat 1 layar tanpa scroll,
   panel kanan (Keterangan) dilebarkan mengikuti tinggi form.
   Class ini HANYA dipakai di halaman buat jadwal, tidak
   mengubah tampilan Dashboard/Status/Riwayat/dll.
   ============================================= */
.buat-main {
  height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px 22px 16px;
}
.buat-main::-webkit-scrollbar { width: 4px; }
.buat-main::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

.buat-main .page-header        { margin-bottom: 2px; }
.buat-main .am-tabs            { margin-top: 8px; }
.buat-main .form-section       { padding: 14px 16px; margin-bottom: 10px; margin-top: 10px !important; }
.buat-main .form-section-title { margin-bottom: 10px; }
.buat-main .form-row           { margin-bottom: 10px; gap: 12px; }
.buat-main .form-textarea      { height: 52px; }
.buat-main .char-count         { margin-top: 2px; }

.buat-main .picker-layout      { gap: 16px; }
.buat-main .cal-picker-header  { margin-bottom: 8px; }
.buat-main .cal-picker-grid    { margin-bottom: 2px; }
.buat-main .cal-picker-day     { padding: 4px 2px; font-size: 11px; }
.buat-main .time-section-header{ margin-bottom: 8px; }
.buat-main .time-grid          { gap: 6px; }
.buat-main .time-slot-btn      { padding: 7px 6px; font-size: 11px; }
.buat-main .slot-label         { font-size: 10px; margin-top: 1px; }

.buat-main .notice-box         { margin-top: 10px; padding: 10px 12px; }
.buat-main .form-footer        { margin-top: 12px; padding-top: 10px; }

/* Panel kanan mengikuti tinggi penuh form */
.buat-right {
  height: calc(100vh - 32px);
}
.buat-right-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.buat-right-card .legend-title { margin: 14px 0 12px; }
.buat-right-card .legend-item  { margin-bottom: 18px; }
.buat-right-card .tips-box     { margin-top: auto; }

/* =============================================
   APPROVAL DETAIL PAGE
   ============================================= */

/* Topbar */
.detail-topbar {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 4px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary); background: var(--primary-pale);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.back-btn:hover { background: var(--primary-light); }
.detail-header-info h1 {
  font-family: 'Playfair Display', serif; font-size: 20px;
  font-weight: 700; color: var(--text-dark); margin: 0;
}
.detail-header-info p { font-size: 12px; color: var(--text-light); margin: 2px 0 0; }

/* Status Banner */
.status-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: 12px; margin-bottom: 4px;
}
.status-banner.pending { background: var(--accent-light); border: 1px solid #f5d48a; }
.status-banner.disetujui { background: #EDFBF2; border: 1px solid #AADFC0; }
.status-banner.ditolak { background: #FFF0F0; border: 1px solid #F9CACA; }
.status-banner.reschedule { background: #F3EFFE; border: 1px solid #C9B5F0; }
.banner-icon { font-size: 24px; }
.banner-label { font-size: 11px; color: var(--text-mid); font-weight: 500; }
.banner-value { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.banner-meta {
  margin-left: auto; display: flex; flex-direction: column;
  gap: 2px; text-align: right; font-size: 11px; color: var(--text-mid);
}

/* Two-column detail grid */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  align-items: start; /* cegah kartu pendek di kanan ikut melar saat kartu kiri lebih tinggi */
}
.detail-card {
  background: #fff; border: 1px solid #e0eaff; border-radius: 14px;
  padding: 20px 22px;
}
.detail-card-title {
  font-size: 13px; font-weight: 700; color: var(--primary);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e0eaff;
}
.detail-field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.detail-field:last-child { margin-bottom: 0; }
.df-label { font-size: 11px; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.df-value { font-size: 13px; color: var(--text-dark); font-weight: 500; }
.df-desc  { font-size: 12px; color: var(--text-mid); line-height: 1.6; font-weight: 400; }

/* Attachment */
.attachment-list { display: flex; flex-direction: column; gap: 10px; }
.attachment-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: var(--primary-pale);
  border: 1px solid var(--primary-light);
}
.att-icon { font-size: 20px; }
.att-info { flex: 1; }
.att-name { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.att-size { font-size: 11px; color: var(--text-light); }
.att-download {
  font-size: 12px; font-weight: 600; color: var(--primary);
  text-decoration: none; white-space: nowrap;
}
.att-download:hover { text-decoration: underline; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 7px; top: 16px;
  width: 2px; height: calc(100% - 8px); background: #e0eaff;
}
.tl-dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
}
.dot-blue   { background: var(--primary); }
.dot-yellow { background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.dot-green  { background: #2D9B58; }
.dot-red    { background: #D94040; }
.tl-title { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.tl-time  { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* Action Buttons */
.detail-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding-top: 4px;
}
.action-btn {
  padding: 10px 22px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.15s;
}
.btn-setujui   { background: var(--primary); color: #fff; }
.btn-setujui:hover { background: var(--primary-mid); }
.btn-tolak     { background: #FFF0F0; color: #D94040; border: 1px solid #F9CACA; }
.btn-tolak:hover { background: #ffe0e0; }
.btn-reschedule{ background: #F3EFFE; color: #7B52C8; border: 1px solid #C9B5F0; }
.btn-reschedule:hover { background: #e8e0fc; }
.action-btn:disabled {
  opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3);
}
.action-btn:disabled:hover { background: inherit; }

.readonly-note {
  display: flex; align-items: center; gap: 8px;
  background: #F5F7FA; border: 1px solid #E3E8EF; color: var(--text-mid);
  font-size: 12.5px; padding: 10px 14px; border-radius: 10px;
  margin-bottom: 10px;
}

/* Slot items */
.slot-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: 8px; font-size: 12px;
  font-weight: 500; color: var(--text-dark); margin-bottom: 6px;
}
.slot-pill {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
}
.slot-terisi    { background: #FFF0F0; }
.slot-tersedia  { background: #EDFBF2; }
.slot-diminta   { background: var(--primary-pale); padding: 8px 10px; }
.tersedia { background: #AADFC0; color: #1a6a38; }
.terisi   { background: #F9CACA; color: #9a2020; }
.diminta  { background: var(--primary); color: #fff; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-box {
  background: #fff; border-radius: 18px; padding: 32px 28px;
  width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-icon {
  width: 52px; height: 52px; border-radius: 14px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--text-dark); text-align: center; margin-bottom: 6px; }
.modal-desc  { font-size: 13px; color: var(--text-mid); text-align: center; line-height: 1.5; margin-bottom: 20px; }
.modal-field { margin-bottom: 14px; }
.mf-label { font-size: 12px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; display: block; }
.mf-input {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid #dbeafe; font-size: 13px; color: var(--text-dark);
  font-family: inherit; resize: vertical; transition: border 0.15s;
  box-sizing: border-box;
}
.mf-input:focus { outline: none; border-color: var(--primary); }
.mf-error {
  margin-top: -4px; margin-bottom: 12px; padding: 8px 12px;
  background: #FFF0F0; border: 1px solid #F9CACA; border-radius: 8px;
  color: #D94040; font-size: 12px; font-weight: 600;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.mbtn {
  padding: 9px 20px; border-radius: 9px; font-size: 13px;
  font-weight: 600; border: none; cursor: pointer; transition: all 0.15s;
}
.mbtn-cancel  { background: #f1f3f5; color: var(--text-mid); }
.mbtn-cancel:hover { background: #e0e5eb; }
.mbtn-confirm { color: #fff; }
.mbtn:disabled { opacity: 0.6; cursor: not-allowed; }
.confirm-green  { background: #2D9B58; }
.confirm-green:hover  { background: #24804a; }
.confirm-red    { background: #D94040; }
.confirm-red:hover    { background: #b83030; }
.confirm-purple { background: #7B52C8; }
.confirm-purple:hover { background: #6240aa; }

/* Toast */
.toast-notif {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  padding: 13px 20px; border-radius: 12px; font-size: 13px;
  font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.toast-green  { background: #2D9B58; color: #fff; }
.toast-red    { background: #D94040; color: #fff; }
.toast-purple { background: #7B52C8; color: #fff; }

/* Sembunyikan elemen ber-atribut x-cloak sebelum Alpine.js selesai inisialisasi
   (mencegah modal/dropdown "berkedip" tampil sesaat saat halaman dimuat) */
[x-cloak] { display: none !important; }
/* ── Pemohon cell di tabel approval ── */
.td-pemohon {
  display: flex; align-items: center; gap: 10px;
}
.pemohon-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
}
.pemohon-info { display: flex; flex-direction: column; gap: 1px; }
.pemohon-name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.pemohon-unit { font-size: 11px; color: var(--text-light); }

/* Kartu ringkasan pemohon/akun (dipakai di halaman Profil) */
.pemohon-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--primary-pale); border: 1.5px solid var(--primary-light);
  border-radius: 14px; padding: 14px 18px;
}
.pemohon-card .pemohon-date { margin-left: auto; }

/* Tombol aksi detail di tabel approval */
.aksi-detail-btn {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 7px;
  font-size: 12px; font-weight: 600;
  color: var(--primary); background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.aksi-detail-btn:hover {
  background: var(--primary); color: #fff;
}

/* =============================================
   AUTH — LOGIN & REGISTER
   Layout dua kolom: panel brand (kiri) + form (kanan),
   memakai variabel warna & font yang sama dengan halaman lain.
   ============================================= */
.auth-shell {
  width:100%; min-height: 100vh; display: grid; grid-template-columns: 48% 52%; overflow: hidden;
  background: var(--card-bg);
}
.auth-brand {
  position: relative; overflow: hidden;
  background: var(--primary-pale);
  padding: 72px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand-top   { position: relative; z-index: 2; }

.auth-brand-logo{ width:100%; max-width:520px; margin-bottom:36px; }
.auth-brand-logo img{ width:100%; height:auto; display:block; object-fit:contain; }

.auth-logo {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(26,86,219,0.25);
}
.auth-brand-name    { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--text-dark); margin: 0 0 10px; }
.auth-brand-tagline { font-size: 15px; color: var(--text-mid); max-width: 360px; line-height: 1.8; }
.auth-brand-footer  { position: relative; z-index: 2; font-size: 12.5px; color: var(--text-light); }

.auth-circle { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffffff, var(--primary-light) 70%); opacity: .6; }
.auth-circle.c1 { width: 480px; height: 480px; top: -180px;  left: -160px; }
.auth-circle.c2 { width: 300px; height: 300px; bottom: 40px; left: 70px; }
.auth-circle.c3 { width: 220px; height: 220px; bottom: -90px; right: -50px; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 72px; }
.auth-form-card { width: 100%; max-width: 430px; }

.auth-form-card { background:#fff; padding:42px; border-radius:22px; border:1px solid rgba(26,86,219,.08); box-shadow: 0 16px 40px rgba(26,86,219,.08); }
.auth-form { display:flex; flex-direction:column; gap:18px; }

.auth-alert {
  display: flex; align-items: center; gap: 10px;
  background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647;
  padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 22px;
}
.auth-alert.error { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }

.auth-title     { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; }
.auth-sub       { font-size: 13.5px; color: var(--text-mid); margin: 0 0 4px; line-height: 1.5; }
.auth-home-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; margin-bottom: 26px; }
.auth-home-link:hover { text-decoration: underline; }

.auth-field      { margin-bottom: 18px; }
.auth-field-row  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.auth-label      { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.auth-link-sm    { font-size: 12.5px; color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-link-sm:hover { text-decoration: underline; }

.auth-input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--primary-pale); border: 1px solid transparent;
  border-radius: 12px; padding: 0 14px; transition: border-color .15s, background .15s;
}
.auth-input-wrap:focus-within { background: #fff; border-color: var(--primary); }
.auth-input-icon { color: var(--text-light); font-size: 14px; margin-right: 10px; display: flex; }
.auth-input-wrap input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text-dark);
  padding: 13px 0;
}
.auth-input-toggle { border: none; background: none; cursor: pointer; color: var(--text-light); font-size: 14px; display: flex; align-items: center; padding: 4px; }
.auth-field-error  { font-size: 12px; color: #D92D20; margin-top: 6px; }

.auth-submit-btn {
  width: 100%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 14.5px; font-weight: 600; padding: 14px 18px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.auth-submit-btn:hover { background: var(--primary-mid); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-light); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e5ebf5; }

.auth-outline-btn {
  width: 100%; display: block; box-sizing: border-box; text-align: center; text-decoration: none;
  border: 1.5px solid #dbe4f3; color: var(--text-dark); font-weight: 600; font-size: 14.5px;
  padding: 13px 18px; border-radius: 12px; transition: border-color .15s, background .15s;
}
.auth-outline-btn:hover { border-color: var(--primary); background: var(--primary-pale); }

@media (max-width: 1024px) {
  .auth-shell     { grid-template-columns: 1fr; }
  .auth-brand     { display: none; }
  .auth-form-side { padding: 40px 24px; }
  .auth-form-card { max-width:440px; padding:36px; }
}

.type-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.type-upcoming   { background: #e6f4ea; color: #1e7e34; }
.type-reschedule { background: #f3e8fd; color: #7c3aed; }
.type-rejected   { background: #fdecec; color: #d92d20; }
.type-pending    { background: #fff4e5; color: #b45309; }

/* ===========================
   Logout Button
=========================== */

.logout-form{
    display:flex;
    justify-content:center;
    align-items:center;
}

.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 2px 2px 10px rgba(0,0,0,.15);
    background: #fff;
}

.Btn .sign {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.Btn .sign svg {
    width: 17px;
    height: 17px;
}

.Btn .sign svg path {
    fill: #000;
    transition: .3s;
}

.Btn .text{
    position:absolute;
    right:0;
    width:0;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;

    color:#fff;
    font-size:14px;
    font-weight:600;

    white-space:nowrap;

    transition:.3s;
}

/* Hover */
.Btn:hover{
    width:125px;
    border-radius:40px;
    background:#2982DC;
}

.Btn:hover .sign{
    width:30%;
    padding-left:20px;
}

.Btn:hover .sign svg path{
    fill:#fff;
}

.Btn:hover .text{
    opacity:1;
    width:70%;
    padding-right:12px;
}

/* Active */
.Btn:active {
    transform: translate(2px, 2px);
}

.Btn{
    flex-shrink:0;
}

.logout-form{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
}

/* Sidebar Tree */

.sidebar-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tree-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    transition: .25s;
}

.tree-parent:hover{
    background: rgba(26,86,219,.08);
    color: var(--primary);
}

.tree-parent.active{
    background: var(--primary);
    color:white;
}

.tree-children{

    margin-left:22px;
    padding-left:18px;

    border-left:2px solid rgba(26,86,219,.18);
}

.tree-child{

    display:flex;
    align-items:center;

    gap:10px;

    padding:9px 12px;

    margin:4px 0;

    border-radius:8px;

    color:#5f6b7a;

    transition:.25s;
}

.tree-child:hover{

    background:#EFF6FF;

    color:var(--primary);
}

.tree-child.active{

    color:var(--primary);

    font-weight:600;

    background:#EFF6FF;
}

.tree-child::before{

    content:"";

    width:8px;

    height:8px;

    border-radius:50%;

    background:#BFD7FF;

    margin-left:-23px;
}