﻿/* ===================================
   SEVANI — STYLES (SINGLE FILE)
   Gabungan dari css/base.css, auth.css, layout.css, modal.css, habits.css, pages.css, rekap.css
   =================================== */

/* ===== SOURCE: css/base.css ===== */

/* ===================================
  SEVANI - BASE
   Reset, variables, utilities, buttons, forms
   =================================== */

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

/* ===== LIGHT MODE (DEFAULT) ===== */
:root {
  --primary: #38BDF8;
  --primary-light: #7DD3FC;
  --primary-dark: #0EA5E9;
  --secondary: #FACC15;
  --accent: #F472B6;
  --green: #4ADE80;
  --orange: #F97316;
  --blue: #38BDF8;
  --yellow: #FACC15;
  --bg: #F8FAFC;
  --bg2: #EFF6FF;
  --card: #FFFFFF;
  --sidebar: #FFFFFF;
  --sidebar-hover: #EFF6FF;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow: 0 4px 20px rgba(56,189,248,.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --radius: 14px;
  --radius-sm: 8px;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --font: 'Inter', sans-serif;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg: #0F172A;
  --bg2: #1A2540;
  --card: #1E293B;
  --sidebar: #1E293B;
  --sidebar-hover: #162036;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #475569;
  --border: #334155;
  --primary: #0EA5E9;
  --primary-light: #38BDF8;
  --primary-dark: #0284C7;
  --secondary: #EAB308;
  --accent: #DB2777;
  --green: #22C55E;
  --orange: #FB923C;
  --shadow: 0 4px 20px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 99px; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }
.text-muted { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 8px 0; }
.req { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 16px rgba(56,189,248,.4);
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(56,189,248,.55); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  background: var(--bg); color: var(--text); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; transition: all .2s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,92,231,.06); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  background: #fff5f5; color: #e53e3e; border: 2px solid #fecaca;
  border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn-danger:hover { background: #e53e3e; color: #fff; border-color: #e53e3e; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  background: transparent; color: var(--text-muted); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-full { width: 100%; justify-content: center; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.form-group label i { color: var(--primary); width: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; color: var(--text); background: var(--card);
  transition: border-color .2s, box-shadow .2s, background-color .3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.input-pass { position: relative; }
.input-pass input { padding-right: 44px; }
.toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 15px;
  padding: 4px; transition: color .2s;
}
.toggle-pass:hover { color: var(--primary); }

.form-error {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #ef4444;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px;
}

.form-row { display: flex; gap: 16px; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* SELECT FILTER */
.select-sm {
  padding: 8px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; background: var(--card); color: var(--text);
  cursor: pointer; outline: none; transition: border-color .2s, background-color .3s;
}
.select-sm:focus { border-color: var(--primary); }

/* RATING */
.rating-wrap { display: flex; align-items: center; gap: 16px; }
.rating-wrap input[type=range] { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 99px; background: var(--bg2); outline: none; }
.rating-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  cursor: pointer; box-shadow: 0 2px 8px rgba(108,92,231,.4);
}
.rating-badge {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(108,92,231,.35);
}

/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.badge-subject { background: rgba(56,189,248,.12); color: var(--primary-dark); }
.badge-category { background: rgba(74,222,128,.12); color: #15803d; }
[data-theme="dark"] .badge-category { color: var(--green); }
.badge-rating { background: rgba(250,204,21,.15); color: #854d0e; }
[data-theme="dark"] .badge-rating { color: var(--secondary); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state i { font-size: 54px; color: var(--text-light); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* TOAST */
.toast {
  position: fixed; bottom: 28px; right: 28px; padding: 14px 22px;
  background: var(--primary-dark); color: #fff; border-radius: 12px; font-size: 14px; font-weight: 600;
  z-index: 9999; box-shadow: 0 8px 28px rgba(56,189,248,.45);
  animation: slideRight .3s ease; display: flex; align-items: center; gap: 10px;
  max-width: 340px;
}
.toast.success { background: #16a34a; box-shadow: 0 8px 28px rgba(22,163,74,.4); }
.toast.error   { background: #dc2626; box-shadow: 0 8px 28px rgba(220,38,38,.4); }

/* ANIMATIONS */
@keyframes fadeIn    { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideRight{ from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }

/* PRINT */
@media print {
  .sidebar, .topbar, .modal-overlay { display: none !important; }
  .main-content { margin: 0; padding: 20px; }
  body { background: white; }
}

/* ===== SOURCE: css/auth.css ===== */

/* ===================================
  SEVANI - AUTH SCREEN
   =================================== */

.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #7DD3FC 100%);
  position: relative; overflow: hidden;
}
[data-theme="dark"] .auth-screen {
  background: linear-gradient(135deg, #0A0F1E 0%, #0F172A 55%, #0C2848 100%);
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-blob {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08); animation: blobMove 8s ease-in-out infinite;
}
.blob1 { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.blob2 { width: 300px; height: 300px; bottom: -80px; left: -60px; animation-delay: -3s; }
.blob3 { width: 200px; height: 200px; top: 50%; left: 30%; animation-delay: -6s; }
@keyframes blobMove {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(.95); }
}

.auth-card {
  background: var(--card); border-radius: 24px; padding: 40px 36px;
  width: 100%; max-width: 440px; position: relative; z-index: 1;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  animation: slideUp .5s ease;
  transition: background-color .3s ease;
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-img {
  width: 120px; height: auto; margin: 0 auto 10px;
  display: block; object-fit: contain;
}
.logo-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; box-shadow: 0 8px 24px rgba(56,189,248,.4);
}
.logo-icon.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; flex-shrink: 0; }
.auth-logo h1 { font-size: 26px; font-weight: 800; color: var(--text); }
.auth-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.auth-tabs {
  display: flex; gap: 4px; background: var(--bg); border-radius: 10px;
  padding: 4px; margin-bottom: 24px;
}
.tab-btn {
  flex: 1; padding: 9px; border: none; border-radius: 8px; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-muted);
  background: transparent; transition: all .25s;
}
.tab-btn.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }

.auth-hint { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-hint a { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.auth-hint a:hover { text-decoration: underline; }

/* 7 Kebiasaan chips */
.habits-strip {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
}
.habit-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: rgba(56,189,248,.1); color: var(--primary-dark);
  border: 1px solid rgba(56,189,248,.2);
}
[data-theme="dark"] .habit-chip { background: rgba(14,165,233,.15); color: var(--primary-light); border-color: rgba(14,165,233,.25); }
.habit-chip .habit-num {
  width: 18px; height: 18px; border-radius: 50%; background: var(--primary-dark);
  color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

@media (max-width: 768px) {
  .auth-card { padding: 28px 20px; }
}

.auth-form { animation: fadeIn .3s ease; }

/* ===== SOURCE: css/layout.css ===== */

/* ===================================
  SEVANI - APP LAYOUT
   Sidebar, topbar, main content, cards, page transitions
   =================================== */

.app-screen { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w); background: var(--sidebar); color: var(--text);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0;
  height: 100vh; z-index: 100; transition: transform .3s ease;
  overflow-y: auto; overflow-x: hidden;
  border-right: 1px solid var(--border);
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
}
.sidebar-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-logo-img {
  width: 110px; height: auto; object-fit: contain;
  display: block;
}
.sidebar-user {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.user-class { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 10px; color: var(--text-muted); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.nav-item:hover { background: var(--bg2); color: var(--primary-dark); }
.nav-item.active { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; box-shadow: 0 4px 16px rgba(56,189,248,.35); }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }

.btn-logout {
  display: flex; align-items: center; gap: 10px; margin: 12px; padding: 11px 14px;
  border: none; border-radius: 10px; background: rgba(239,68,68,.07);
  color: #ef4444; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn-logout:hover { background: rgba(239,68,68,.15); color: #dc2626; }
.btn-logout i { width: 18px; text-align: center; }

/* AVATAR */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  font-weight: 800; color: #fff; flex-shrink: 0; text-transform: uppercase;
}
.avatar.lg { width: 80px; height: 80px; font-size: 32px; }

.avatar.gender-avatar,
.topbar-avatar.gender-avatar,
.profile-avatar.gender-avatar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--topbar-h);
  background: var(--card); border-bottom: 1px solid var(--border); display: flex;
  align-items: center; padding: 0 24px; gap: 16px; z-index: 90;
  box-shadow: var(--shadow-sm); transition: background-color .3s ease;
}
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--bg); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 16px; color: var(--text-muted);
  transition: all .2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: rgba(56,189,248,.1); }
.menu-toggle { display: none; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--text); }
.topbar-title { flex: 1; font-size: 16px; font-weight: 700; color: var(--text); }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  font-weight: 800; color: #fff; cursor: pointer; flex-shrink: 0; text-transform: uppercase;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w); margin-top: var(--topbar-h);
  padding: 28px 28px 40px; min-height: calc(100vh - var(--topbar-h));
  max-width: 1200px; width: 100%;
}

/* PAGE */
.page { animation: fadeIn .3s ease; }
.page.active { display: block; }
.page.hidden { display: none !important; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h2 { font-size: 24px; font-weight: 800; color: var(--text); }
.page-sub { font-size: 14px; color: var(--text-muted); margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* CARD */
.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-header h3 { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-header h3 i { color: var(--primary); }
.link-sm { font-size: 13px; color: var(--primary); cursor: pointer; font-weight: 600; }
.link-sm:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }

  :root { --sidebar-w: 0px; }

  /* Switch sidebar into bottom navbar for tablet & phone */
  .sidebar {
    width: 100%;
    height: auto;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    border-right: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
    overflow: visible;
  }
  .sidebar-logo,
  .sidebar-user,
  .btn-logout { display: none; }

  .sidebar-nav {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--card);
  }

  body.role-teacher .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.role-teacher .sidebar-nav .nav-item {
    width: auto;
    max-width: none;
  }

  .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    text-align: center;
  }
  .nav-item i {
    width: auto;
    font-size: 17px;
    line-height: 1;
  }
  .nav-item span {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .topbar { left: 0; }
  .menu-toggle { display: none; }

  .main-content {
    margin-left: 0;
    padding: 20px 20px calc(94px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 768px) {
  .main-content { padding: 16px 14px calc(92px + env(safe-area-inset-bottom, 0px)); }

  .topbar {
    height: 56px;
    padding: 0 12px;
  }
  .topbar-title { font-size: 15px; }

  .form-row { flex-direction: column; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .header-actions { width: 100%; }
  .modal-card { padding: 24px 20px; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== SOURCE: css/modal.css ===== */

/* ===================================
  SEVANI - MODALS & TOAST
   Journal detail modal, confirm dialog, toast notification
   =================================== */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px); animation: fadeIn .2s;
}
.modal-card {
  background: var(--card); border-radius: 20px; padding: 32px; max-width: 680px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative; animation: slideUp .3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border: none; background: var(--bg); border-radius: 50%; cursor: pointer;
  font-size: 16px; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: rgba(239,68,68,.15); color: #ef4444; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* Modal content */
.modal-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 12px; padding-right: 40px; }
.modal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-section { margin-bottom: 20px; }
.modal-section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 8px; }
.modal-body { font-size: 14px; line-height: 1.8; color: var(--text); }
.modal-keypoints, .modal-questions {
  background: var(--bg2); border-radius: var(--radius-sm); padding: 14px;
  font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap;
}
.modal-mood-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.modal-mood { font-size: 32px; }
.modal-date { font-size: 13px; color: var(--text-muted); }

/* Confirm dialog */
.confirm-card {
  background: var(--card); border-radius: 20px; padding: 36px; max-width: 380px; width: 100%;
  text-align: center; animation: slideUp .3s ease; box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.confirm-icon { font-size: 48px; color: var(--orange); margin-bottom: 14px; }
.confirm-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.confirm-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* ===== SOURCE: css/habits.css ===== */

/* ===================================
  SEVANI - HABIT CARDS & HABIT MODAL
   =================================== */

/* ===== SHOLAT CHECKBOXES (Beribadah - Islam) ===== */
.sholat-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.sholat-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  transition: all .18s;
  user-select: none;
}
.sholat-check-item:hover {
  border-color: var(--primary);
  background: rgba(56,189,248,.07);
}
.sholat-check-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px; height: 15px;
  cursor: pointer;
}

/* ===== HABIT CARDS SECTION ===== */
.habit-cards-section { margin-bottom: 24px; }

.habits-progress {
  font-size: 12px; font-weight: 700; color: var(--primary-dark);
  background: rgba(56,189,248,.1); padding: 5px 14px; border-radius: 99px;
  border: 1px solid rgba(56,189,248,.2);
}
[data-theme="dark"] .habits-progress {
  background: rgba(14,165,233,.15); color: var(--primary-light);
  border-color: rgba(14,165,233,.25);
}

.habit-header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.habit-date-input { cursor: pointer; }

/* ===== CARDS GRID ===== */
.habit-cards-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.habit-card {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 10px 16px;
  cursor: pointer;
  text-align: center;
  transition: all .25s;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.habit-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--card);
}
.habit-card.done {
  background: rgba(74,222,128,.07);
  border: 2px solid #4ADE80;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74,222,128,.2);
}
[data-theme="dark"] .habit-card.done {
  background: rgba(34,197,94,.1);
  border-color: #22C55E;
  box-shadow: 0 4px 16px rgba(34,197,94,.2);
}
.habit-card:active { transform: scale(.97); }

.habit-card-check {
  position: absolute; top: 8px; right: 8px;
  font-size: 17px; color: var(--border);
  transition: all .25s;
}
.habit-card.done .habit-card-check { color: #4ADE80; }
[data-theme="dark"] .habit-card.done .habit-card-check { color: #22C55E; }

.habit-card-emoji {
  font-size: 38px; margin-bottom: 8px; line-height: 1;
  display: block; transition: transform .2s;
}
.habit-card:hover .habit-card-emoji,
.habit-card.done .habit-card-emoji { transform: scale(1.14); }

.habit-card-num {
  font-size: 9px; font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px;
}
.habit-card-name {
  font-size: 12px; font-weight: 700;
  color: var(--text); line-height: 1.35; margin-bottom: 10px;
}

.habit-card-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; transition: all .2s;
}
.status-pending { background: var(--bg2); color: var(--text-muted); }
.status-done { background: rgba(74,222,128,.18); color: #16a34a; }
[data-theme="dark"] .status-done { background: rgba(34,197,94,.18); color: #4ADE80; }

/* ===== CARD DETAIL (done state) ===== */
.habit-card-detail {
  margin: 8px 0 6px; padding-top: 8px;
  border-top: 1px solid rgba(74,222,128,.3);
}
[data-theme="dark"] .habit-card-detail { border-color: rgba(34,197,94,.25); }
.hcd-waktu {
  font-size: 11px; font-weight: 700; color: var(--primary-dark);
  display: flex; align-items: center; gap: 4px; justify-content: center; margin-bottom: 4px;
}
[data-theme="dark"] .hcd-waktu { color: var(--primary-light); }
.hcd-meta-row {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px;
}
.hcd-mood { font-size: 16px; line-height: 1; }
.hcd-rating { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.hcd-ket {
  font-size: 10px; color: var(--text-muted); line-height: 1.4;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ===== HABIT MODAL ===== */
.habit-modal-card {
  background: var(--card); border-radius: 20px; padding: 32px;
  max-width: 480px; width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative; animation: slideUp .3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.habit-modal-header {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.habit-modal-emoji { font-size: 54px; line-height: 1; flex-shrink: 0; }
.habit-modal-num {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px;
}
.habit-modal-name { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.3; }
.habit-modal-actions {
  display: flex; align-items: center; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}

/* Mood buttons inside habit modal */
.habit-mood-btn {
  width: 40px; height: 40px; border: 2px solid var(--border); border-radius: 10px;
  cursor: pointer; background: var(--card); font-size: 20px; display: flex; align-items: center;
  justify-content: center; transition: all .2s; line-height: 1;
}
.habit-mood-btn:hover { border-color: var(--primary); transform: scale(1.12); }
.habit-mood-btn.selected { border-color: var(--primary); background: rgba(56,189,248,.1); transform: scale(1.08); }

/* Mood selector wrapper (reused on write page) */
.mood-selector { display: flex; gap: 8px; margin-top: 4px; }
.mood-btn {
  width: 40px; height: 40px; border: 2px solid var(--border); border-radius: 10px;
  cursor: pointer; background: var(--card); font-size: 20px; display: flex; align-items: center;
  justify-content: center; transition: all .2s; line-height: 1;
}
.mood-btn:hover { border-color: var(--primary); transform: scale(1.12); }
.mood-btn.selected { border-color: var(--primary); background: rgba(108,92,231,.08); transform: scale(1.08); }

/* ===== STATUS BADGES ===== */
.status-pending {
  background: var(--bg2); color: var(--text-muted);
}
.status-done {
  background: rgba(74,222,128,.18); color: #16a34a;
}
[data-theme="dark"] .status-done {
  background: rgba(34,197,94,.18); color: #4ADE80;
}

/* ===== HABIT HISTORY GRID ===== */
.habit-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.habit-history-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  cursor: pointer; transition: all .2s;
}
.habit-history-card:hover {
  border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow);
}
.hh-date-str {
  font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.hh-subline {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; flex-wrap: wrap; gap: 4px;
}
.hh-progress-str {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  display: flex; align-items: center; gap: 5px;
}
.hh-full    { background: rgba(74,222,128,.15); color: #15803d; }
.hh-partial { background: rgba(56,189,248,.1);  color: var(--primary-dark); }
[data-theme="dark"] .hh-full    { color: #4ADE80; }
[data-theme="dark"] .hh-partial { color: var(--primary-light); }
.hh-day-meta { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.hh-emojis {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.hh-emoji-item { font-size: 18px; opacity: .22; transition: opacity .2s; line-height: 1; }
.hh-emoji-item.done { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .habit-cards-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .habit-history-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .habit-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .habit-card { padding: 16px 8px 14px; }
  .habit-card-emoji { font-size: 30px; }
  .habit-header-right { justify-content: flex-end; }

  .habit-modal-card {
    max-height: calc(100vh - 18px);
    padding: 22px 16px;
    border-radius: 16px;
  }
}
@media (max-width: 360px) {
  .habit-cards-grid { grid-template-columns: 1fr; }
}

/* ===== SOURCE: css/pages.css ===== */

/* ===================================
  SEVANI - PAGES
   Dashboard, Journals list, Search, Profile
   =================================== */

/* ===== DASHBOARD ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center;
  gap: 16px; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card.purple { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.stat-card.blue   { background: linear-gradient(135deg, #6366F1, #818CF8); }
.stat-card.green  { background: linear-gradient(135deg, #10B981, #4ADE80); }
.stat-card.orange { background: linear-gradient(135deg, #F472B6, #F9A8D4); }
.stat-icon { font-size: 26px; opacity: .85; }
.stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; opacity: .85; margin-top: 4px; font-weight: 500; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-grid > .card:only-child { grid-column: 1 / -1; }

.mood-bars { display: flex; flex-direction: column; gap: 10px; }
.mood-bar-row { display: flex; align-items: center; gap: 12px; }
.mood-emoji { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.mood-bar-bg { flex: 1; height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.mood-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 99px; transition: width .5s ease; }
.mood-count { font-size: 12px; font-weight: 700; color: var(--text-muted); width: 24px; text-align: right; }

.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg); border-radius: var(--radius-sm); cursor: pointer;
  transition: background .2s, transform .15s;
}
.recent-item:hover { background: var(--bg2); transform: translateX(3px); }
.recent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.recent-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.recent-date { font-size: 11px; color: var(--text-muted); }
.recent-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 20px; }

.subject-bars { display: flex; flex-direction: column; gap: 12px; }
.sub-bar-row { display: flex; align-items: center; gap: 14px; }
.sub-name { font-size: 13px; font-weight: 600; color: var(--text); width: 130px; flex-shrink: 0; }
.sub-bar-bg { flex: 1; height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.sub-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--secondary), #55efc4); transition: width .5s ease; }
.sub-count { font-size: 12px; font-weight: 700; color: var(--text-muted); width: 28px; text-align: right; }

/* ===== JOURNALS LIST ===== */
.view-toggle { display: flex; gap: 8px; margin-bottom: 20px; }
.view-btn {
  padding: 8px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); cursor: pointer; font-family: var(--font); font-size: 13px;
  font-weight: 600; color: var(--text-muted); transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.view-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(108,92,231,.06); }

.journals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.journals-grid.list-view { grid-template-columns: 1fr; }

.journal-card {
  background: var(--card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border);
  cursor: pointer; transition: all .25s; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.journal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }

.jcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.jcard-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; flex: 1; }
.jcard-mood { font-size: 22px; flex-shrink: 0; }
.jcard-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.jcard-preview { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jcard-footer { display: flex; align-items: center; justify-content: space-between; }
.jcard-date { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.jcard-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.journal-card:hover .jcard-actions { opacity: 1; }
.jcard-btn {
  width: 30px; height: 30px; border: none; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .15s;
}
.jcard-btn.edit { background: rgba(108,92,231,.1); color: var(--primary); }
.jcard-btn.del  { background: rgba(239,68,68,.1);  color: #e53e3e; }
.jcard-btn:hover { transform: scale(1.1); }

/* List view card */
.journals-grid.list-view .journal-card { display: flex; align-items: center; gap: 20px; padding: 16px 20px; }
.journals-grid.list-view .journal-card::before { width: 3px; height: 100%; top: 0; left: 0; right: auto; }
.journals-grid.list-view .jcard-body { flex: 1; }
.journals-grid.list-view .jcard-preview { -webkit-line-clamp: 1; }

/* ===== SEARCH PAGE ===== */
.search-box-wrap { position: relative; margin-bottom: 16px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }
.search-box {
  width: 100%; padding: 14px 48px; border: 2px solid var(--border); border-radius: 14px;
  font-family: var(--font); font-size: 15px; color: var(--text); outline: none;
  transition: all .2s; background: var(--card); box-shadow: var(--shadow-sm);
}
.search-box:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(56,189,248,.12); }
.search-clear { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 16px; }
.search-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 6px 16px; border: 2px solid var(--border); border-radius: 99px;
  background: var(--card); cursor: pointer; font-family: var(--font); font-size: 13px;
  font-weight: 600; color: var(--text-muted); transition: all .2s;
}
.filter-chip.active { border-color: var(--primary); color: var(--primary); background: rgba(56,189,248,.08); }

/* ===== TEACHER HISTORY ===== */
.teacher-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.teacher-filter-card .form-group { margin-bottom: 0; }
.teacher-class-card .card-header { margin-bottom: 14px; }
.teacher-profile-card-actions { margin-top: 12px; }

.teacher-student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.teacher-student-card {
  border: 2px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.teacher-student-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.teacher-student-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}

.teacher-student-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.teacher-student-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.teacher-student-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-student-detail {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.jcard-student-meta {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .jcard-student-meta {
  color: var(--text-light);
}

/* ===== PROFILE PAGE ===== */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.profile-card { text-align: center; }
.profile-avatar-wrap { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  font-weight: 800; color: #fff; margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(108,92,231,.3);
  text-transform: uppercase;
}
.profile-name { font-size: 17px; font-weight: 800; color: var(--text); }
.profile-class { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.profile-stats { display: flex; justify-content: center; gap: 24px; }
.pstat { text-align: center; }
.pstat-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.pstat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.export-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.danger-card { border-color: #fecaca; }

/* ===== WRITE PAGE ===== */
.write-card { padding: 32px; }
.form-row { display: flex; gap: 16px; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* RICH EDITOR */
.editor-toolbar {
  display: flex; align-items: center; gap: 2px; padding: 8px 12px;
  background: var(--bg2); border: 2px solid var(--border); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0; flex-wrap: wrap;
}
.editor-toolbar button {
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  border-radius: 6px; color: var(--text-muted); font-size: 13px;
  transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.editor-toolbar button:hover { background: var(--primary); color: #fff; }
.editor-toolbar .separator { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.rich-editor {
  width: 100%; min-height: 200px; padding: 14px; border: 2px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: var(--font);
  font-size: 14px; color: var(--text); background: var(--card); outline: none; line-height: 1.7;
  transition: border-color .2s, background-color .3s;
}
.rich-editor:focus { border-color: var(--primary); }
.rich-editor:empty::before { content: attr(placeholder); color: var(--text-light); pointer-events: none; }

/* ===== PROFILE ===== */

/* Responsive */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .journals-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .teacher-filter-row { grid-template-columns: 1fr; }
  .teacher-student-grid { grid-template-columns: 1fr; }
  body.role-teacher .sidebar-nav .nav-item { width: auto; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== SOURCE: css/rekap.css ===== */

/* ===================================
  SEVANI - REKAP PAGE
   =================================== */

.rekap-filter { margin-bottom: 24px; }
.rekap-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(260px, auto);
  align-items: end;
  gap: 14px;
}
.rekap-filter-row .form-group {
  margin-bottom: 0;
  min-width: 0;
}
.rekap-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  align-items: end;
}
.rekap-filter-actions button {
  width: 100%;
  justify-content: center;
}
.rekap-filter-actions .btn-primary {
  grid-column: 1 / -1;
}

.rekap-group { margin-bottom: 28px; }
.rekap-date-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.rekap-date-badge {
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700;
  color: var(--primary-dark);
}
.rekap-date-badge i { font-size: 14px; }
.rekap-date-count {
  font-size: 12px; font-weight: 700;
  background: rgba(56,189,248,.1); color: var(--primary-dark);
  padding: 4px 12px; border-radius: 99px;
}

@media (max-width: 1024px) {
  .rekap-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .rekap-filter-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .rekap-filter-actions .btn-primary {
    grid-column: span 1;
  }
}
@media (max-width: 768px) {
  .rekap-filter-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rekap-filter-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rekap-filter-actions .btn-primary {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .rekap-filter-actions {
    grid-template-columns: 1fr;
  }
  .rekap-filter-actions .btn-primary {
    grid-column: auto;
  }
}

