/**
 * Theme modern (light) — base putih dengan perpaduan biru (primary) & orange (accent).
 * Scoped ke wrapper `.theme-modern`. Semua rule di-prefix `.theme-modern`
 * supaya CSS `modular-admin` legacy tetap default di halaman lain (kalau ada).
 *
 * Palette:
 *  - biru primary  : #2b6ee6 (untuk button, link, item active, chart)
 *  - orange accent : #ff8c42 (untuk hover, badge, highlight secondary)
 *  - bg utama      : #f5f7fb (very-light bluish-white)
 *  - card bg       : #ffffff
 *  - text dark     : #1a2138
 */

.theme-modern {
  /* Design tokens */
  --mg-bg: #f5f7fb;
  --mg-bg-card: #ffffff;
  --mg-bg-elevated: #ffffff;
  --mg-bg-soft: #eef2fa;

  --mg-primary: #2b6ee6;
  --mg-primary-2: #1e5ac9;
  --mg-primary-soft: rgba(43, 110, 230, 0.12);
  --mg-primary-shadow: rgba(43, 110, 230, 0.25);

  --mg-accent: #ff8c42;
  --mg-accent-2: #ff6b1a;
  --mg-accent-soft: rgba(255, 140, 66, 0.15);
  --mg-accent-shadow: rgba(255, 140, 66, 0.25);

  --mg-text: #1a2138;
  --mg-text-muted: #5a6478;
  --mg-text-faint: #8b93a7;
  --mg-border: #e5e9f0;
  --mg-border-strong: #ced4de;

  --mg-danger: #dc3545;
  --mg-warning: #f0a020;
  --mg-success: #22a06b;
  --mg-info: #17a2b8;

  background: var(--mg-bg);
  color: var(--mg-text);
  min-height: 100vh;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Typography ---------- */
.theme-modern h1,
.theme-modern h2,
.theme-modern h3,
.theme-modern h4,
.theme-modern h5,
.theme-modern h6,
.theme-modern .title,
.theme-modern .brand {
  color: var(--mg-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.theme-modern .text-muted,
.theme-modern .text-mini,
.theme-modern .title-description,
.theme-modern p,
.theme-modern small {
  color: var(--mg-text-muted);
}
.theme-modern .title-block { padding: 20px 0; }
.theme-modern .title-block .title { font-size: 1.75rem; margin: 0 0 4px; }

/* ---------- Card ---------- */
.theme-modern .card,
.theme-modern .card-default {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  color: var(--mg-text);
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.04);
}
.theme-modern .card-header {
  background: transparent;
  border-bottom: 1px solid var(--mg-border);
  padding: 18px 24px;
  color: var(--mg-text);
}
.theme-modern .card-header .title { color: var(--mg-text); }
.theme-modern .card-block,
.theme-modern .card-body {
  padding: 20px 24px;
  color: var(--mg-text);
}
.theme-modern .card-footer {
  background: transparent;
  border-top: 1px solid var(--mg-border);
  padding: 14px 24px;
}
.theme-modern .card-info,
.theme-modern .card-warning,
.theme-modern .card-success,
.theme-modern .card-danger,
.theme-modern .card-primary {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  color: var(--mg-text);
}

/* ---------- Button ---------- */
.theme-modern .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
/* Primary = biru. `!important` pada color supaya menang atas
   `.theme-modern .card-block a` (Link render <a> yang match kedua rule). */
.theme-modern .btn-primary,
.theme-modern .btn-info,
.theme-modern a.btn-primary,
.theme-modern a.btn-info {
  background: var(--mg-primary) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px var(--mg-primary-shadow);
}
.theme-modern .btn-primary:hover,
.theme-modern .btn-info:hover,
.theme-modern a.btn-primary:hover,
.theme-modern a.btn-info:hover {
  background: var(--mg-primary-2) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
/* Warning / secondary CTA = orange */
.theme-modern .btn-warning,
.theme-modern a.btn-warning {
  background: var(--mg-accent) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px var(--mg-accent-shadow);
}
.theme-modern .btn-warning:hover,
.theme-modern a.btn-warning:hover {
  background: var(--mg-accent-2) !important;
  color: #ffffff !important;
}
.theme-modern .btn-secondary,
.theme-modern .btn-default,
.theme-modern a.btn-secondary,
.theme-modern a.btn-default {
  background: #ffffff !important;
  color: var(--mg-text) !important;
  border-color: var(--mg-border-strong) !important;
}
.theme-modern .btn-secondary:hover,
.theme-modern .btn-default:hover,
.theme-modern a.btn-secondary:hover,
.theme-modern a.btn-default:hover {
  background: var(--mg-bg-soft) !important;
  color: var(--mg-text) !important;
}
.theme-modern .btn-success {
  background: var(--mg-success) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(34, 160, 107, 0.25);
}
.theme-modern .btn-success:hover {
  background: #1a8757 !important;
  color: #ffffff !important;
}
.theme-modern .btn-danger {
  background: var(--mg-danger) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.theme-modern .btn-danger:hover {
  background: #b02635 !important;
  color: #ffffff !important;
}
.theme-modern .btn-sm { padding: 4px 12px; font-size: 0.85rem; }
.theme-modern .btn-lg { padding: 12px 28px; font-size: 1.05rem; }
.theme-modern .btn-block { display: block; width: 100%; }
.theme-modern .rounded { border-radius: 999px; }

/* ---------- Form ---------- */
.theme-modern input.form-control,
.theme-modern select.form-control,
.theme-modern textarea.form-control,
.theme-modern .form-control {
  background: #fff;
  border: 1px solid var(--mg-border-strong);
  border-radius: 10px;
  color: var(--mg-text);
  padding: 10px 14px;
  font-size: 0.95rem;
}
.theme-modern input.form-control::placeholder,
.theme-modern textarea.form-control::placeholder {
  color: var(--mg-text-faint);
}
.theme-modern input.form-control:focus,
.theme-modern select.form-control:focus,
.theme-modern textarea.form-control:focus {
  outline: none;
  border-color: var(--mg-primary);
  box-shadow: 0 0 0 3px var(--mg-primary-shadow);
}
/* Autofill fix (Edge/Chrome inject bg biru muda) */
.theme-modern input:-webkit-autofill,
.theme-modern input:-webkit-autofill:hover,
.theme-modern input:-webkit-autofill:focus,
.theme-modern input:-webkit-autofill:active,
.theme-modern textarea:-webkit-autofill,
.theme-modern select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: var(--mg-text) !important;
  caret-color: var(--mg-text) !important;
  border-color: var(--mg-border-strong) !important;
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}
.theme-modern input:-webkit-autofill:focus {
  border-color: var(--mg-primary) !important;
}
.theme-modern label {
  color: var(--mg-text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: inline-block;
}
.theme-modern .form-group { margin-bottom: 16px; }
.theme-modern .input-lg { font-size: 1rem; padding: 12px 16px; }

/* ---------- Table ---------- */
.theme-modern table,
.theme-modern .table {
  background: transparent;
  color: var(--mg-text);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.theme-modern .table th,
.theme-modern table th {
  background: var(--mg-bg-soft);
  color: var(--mg-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mg-border-strong);
  border-top: 0;
}
.theme-modern .table td,
.theme-modern table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--mg-border);
  border-top: 0;
  color: var(--mg-text);
}
.theme-modern .table-bordered th,
.theme-modern .table-bordered td {
  border: 1px solid var(--mg-border);
}
.theme-modern .table-striped tbody tr:nth-of-type(odd) {
  background: rgba(43, 110, 230, 0.03);
}
.theme-modern .table-hover tbody tr:hover td {
  background: rgba(43, 110, 230, 0.05);
}

/* ---------- List group ---------- */
.theme-modern .list-group {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mg-border);
  margin-bottom: 12px;
}
.theme-modern .list-group-item {
  background: var(--mg-bg-card);
  border: 0;
  border-bottom: 1px solid var(--mg-border);
  color: var(--mg-text);
  padding: 14px 18px;
}
.theme-modern .list-group-item:last-child { border-bottom: 0; }
.theme-modern .list-group-item a {
  color: var(--mg-primary);
  font-weight: 600;
}
.theme-modern .list-group-item a:hover {
  color: var(--mg-accent);
}

/* ---------- Pagination ---------- */
.theme-modern .pagination { display: inline-flex; gap: 4px; padding: 0; }
.theme-modern .pagination .page-item .page-link {
  background: #fff;
  border: 1px solid var(--mg-border-strong);
  color: var(--mg-text);
  border-radius: 8px;
  padding: 6px 12px;
}
.theme-modern .pagination .page-item .page-link:hover {
  background: var(--mg-bg-soft);
  color: var(--mg-primary);
}
.theme-modern .pagination .page-item.active .page-link {
  background: var(--mg-primary);
  color: #fff;
  border-color: var(--mg-primary);
}
.theme-modern .pagination .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Alert ---------- */
.theme-modern .alert {
  border-radius: 12px;
  border: 1px solid var(--mg-border);
  padding: 12px 16px;
}
.theme-modern .alert-danger {
  background: rgba(220, 53, 69, 0.08);
  color: var(--mg-danger);
  border-color: rgba(220, 53, 69, 0.25);
}
.theme-modern .alert-success {
  background: rgba(34, 160, 107, 0.08);
  color: var(--mg-success);
  border-color: rgba(34, 160, 107, 0.25);
}
.theme-modern .alert-warning {
  background: var(--mg-accent-soft);
  color: var(--mg-accent-2);
  border-color: rgba(255, 140, 66, 0.3);
}
.theme-modern .alert-info {
  background: var(--mg-primary-soft);
  color: var(--mg-primary-2);
  border-color: rgba(43, 110, 230, 0.25);
}

/* ---------- Links ---------- */
.theme-modern a { color: var(--mg-primary); }
.theme-modern a:hover { color: var(--mg-accent); text-decoration: none; }

/* ---------- Dropdown menu ---------- */
.theme-modern .dropdown-menu {
  background: #fff;
  border: 1px solid var(--mg-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.theme-modern .dropdown-menu .dropdown-item {
  color: var(--mg-text);
  padding: 8px 16px;
}
.theme-modern .dropdown-menu .dropdown-item:hover {
  background: var(--mg-bg-soft);
  color: var(--mg-primary) !important;
}

/* ---------- Auth (Login) ---------- */
.theme-modern.auth {
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #eaf1ff 0%, #fff3e8 100%);
}
.theme-modern.auth .auth-container {
  width: 100%;
  max-width: 420px;
}
.theme-modern.auth .card {
  background: #fff;
  border: 1px solid var(--mg-border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  margin-bottom: 0;
}
.theme-modern.auth .auth-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mg-border);
  margin-bottom: 24px;
}
.theme-modern.auth .auth-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  background: linear-gradient(90deg, var(--mg-primary) 0%, var(--mg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Chart / Recharts light tune ---------- */
.theme-modern .recharts-cartesian-grid line,
.theme-modern .recharts-cartesian-axis line {
  stroke: var(--mg-border) !important;
}
.theme-modern .recharts-text {
  fill: var(--mg-text-muted) !important;
}

/* ---------- Nav tabs ---------- */
.theme-modern .nav-tabs {
  border-bottom: 1px solid var(--mg-border);
}
.theme-modern .nav-tabs .nav-link {
  color: var(--mg-text-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
}
.theme-modern .nav-tabs .nav-link.active,
.theme-modern .nav-tabs .nav-item.active .nav-link {
  color: var(--mg-primary);
  background: transparent;
  border-bottom-color: var(--mg-primary);
}

/* ---------- Progress ---------- */
.theme-modern .progress {
  background: var(--mg-bg-soft);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.theme-modern .progress-bar,
.theme-modern progress {
  background: var(--mg-primary);
}

/* ---------- Sections ---------- */
.theme-modern .section,
.theme-modern .content {
  background: transparent;
}

/* ---------- Sidebar (AppShell) ---------- */
.theme-modern .app,
.theme-modern .main-wrapper {
  background: var(--mg-bg);
}
.theme-modern .sidebar {
  background: #ffffff;
  border-right: 1px solid var(--mg-border);
}
.theme-modern .sidebar-container {
  background: transparent;
}
.theme-modern .sidebar-header {
  background: transparent;
  border-bottom: 1px solid var(--mg-border);
  padding: 16px 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-modern .sidebar-header img {
  opacity: 1;
}
.theme-modern .sidebar-header .brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--mg-primary) 0%, var(--mg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  margin: 0;
}
.theme-modern .sidebar .menu {
  padding: 12px 0;
}
.theme-modern .sidebar .nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.theme-modern .sidebar .nav > li {
  margin: 2px 12px;
}
.theme-modern .sidebar .nav > li > a,
.theme-modern .sidebar .nav li a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 14px !important;
  color: var(--mg-text-muted) !important;
  background-color: transparent !important;
  border-radius: 10px !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-modern .sidebar .nav > li > a:hover,
.theme-modern .sidebar .nav li a:hover {
  background-color: var(--mg-bg-soft) !important;
  color: var(--mg-primary) !important;
}
/* Parent "open" state — SS default bg-color #333e48 dark. Force transparent. */
.theme-modern .sidebar .nav > li.open > a,
.theme-modern .sidebar .nav li.open > a,
.theme-modern .sidebar .nav li.open a:hover {
  background-color: transparent !important;
  color: var(--mg-text-muted) !important;
}
/* Active (route match) — gradient biru→orange, PALING KUAT */
.theme-modern .sidebar .nav > li.active > a,
.theme-modern .sidebar .nav > li.active > a:hover,
.theme-modern .sidebar .nav > li.active.open > a,
.theme-modern .sidebar .nav > li > a.active {
  background: linear-gradient(90deg, var(--mg-primary) 0%, var(--mg-accent) 100%) !important;
  background-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--mg-primary-shadow);
}
.theme-modern .sidebar .nav > li.active > a .fa,
.theme-modern .sidebar .nav > li > a.active .fa {
  color: #ffffff !important;
}
.theme-modern .sidebar .nav > li > a .fa {
  color: var(--mg-text-faint);
  width: 20px;
  text-align: center;
}
/* arrow submenu */
.theme-modern .sidebar .nav > li > a .fa.arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
}
.theme-modern .sidebar .nav > li > a .fa.arrow::before {
  content: "\f107"; /* fa-angle-down */
}
.theme-modern .sidebar .nav > li.open > a .fa.arrow {
  transform: rotate(-180deg);
}
/* submenu — force bg light (kalahkan SS `sidebar .nav ul { background: #dark }`) */
.theme-modern .sidebar .nav ul {
  list-style: none !important;
  padding: 4px 0 4px 44px !important;
  margin: 0 !important;
  background: transparent !important;
}
.theme-modern .sidebar .nav > li.open > ul,
.theme-modern .sidebar .nav > li > ul {
  background: transparent !important;
}
.theme-modern .sidebar .nav ul > li {
  background: transparent !important;
  margin: 2px 0 !important;
}
.theme-modern .sidebar .nav ul > li > a {
  display: block !important;
  padding: 8px 12px !important;
  color: var(--mg-text-muted) !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  background: transparent !important;
}
.theme-modern .sidebar .nav ul > li > a:hover {
  color: var(--mg-primary) !important;
  background: var(--mg-bg-soft) !important;
}
.theme-modern .sidebar .nav ul > li.active > a,
.theme-modern .sidebar .nav ul > li > a.active {
  color: var(--mg-accent) !important;
  background: var(--mg-accent-soft) !important;
}
.theme-modern .sidebar-overlay { background: rgba(0,0,0,0.35); }

/* ---------- Sidebar collapsed (desktop): mode ikon saja ----------
   Layar < 992px tetap pakai off-canvas bawaan tema (`.sidebar-open`). */
.theme-modern .app .sidebar {
  transition: left 0.3s ease, width 0.25s ease;
}
@media (min-width: 992px) {
  .theme-modern .app.sidebar-collapsed { padding-left: 72px; }
  .theme-modern .app.sidebar-collapsed .sidebar { width: 72px; }
  .theme-modern .app.sidebar-collapsed .header { left: 72px; }
  .theme-modern .app.sidebar-collapsed .sidebar-header .brand { display: none; }
  .theme-modern .app.sidebar-collapsed .sidebar .nav > li { margin: 2px 10px; }
  .theme-modern .app.sidebar-collapsed .sidebar .nav > li > a {
    justify-content: center;
    gap: 0;
    padding: 10px 0 !important;
  }
  .theme-modern .app.sidebar-collapsed .sidebar .nav-label,
  .theme-modern .app.sidebar-collapsed .sidebar .nav > li > a .fa.arrow,
  .theme-modern .app.sidebar-collapsed .sidebar .nav ul {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-modern .app,
  .theme-modern .app .sidebar,
  .theme-modern .app .header {
    transition: none !important;
  }
}

/* ---------- Header / TopBar ---------- */
.theme-modern .header {
  background: #ffffff;
  border-bottom: 1px solid var(--mg-border);
  color: var(--mg-text);
}
.theme-modern .header .header-block {
  border-color: var(--mg-border);
}
.theme-modern .header .collapse-btn {
  background: transparent;
  color: var(--mg-text);
  border: 1px solid var(--mg-border-strong);
  border-radius: 8px;
  padding: 6px 10px;
}
.theme-modern .header .collapse-btn:hover {
  background: var(--mg-bg-soft);
  color: var(--mg-primary);
}
.theme-modern .nav-profile > li > a,
.theme-modern .header a.nav-link,
.theme-modern .header .profile .name {
  color: var(--mg-text);
}
.theme-modern .header .profile-dropdown-menu {
  background: #fff;
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.theme-modern .header .profile-dropdown-menu .dropdown-item {
  color: var(--mg-text);
}
.theme-modern .header .profile-dropdown-menu .dropdown-divider {
  border-color: var(--mg-border);
  background: var(--mg-border);
  height: 1px;
}
.theme-modern .header .notification-count,
.theme-modern .header .badge {
  background: var(--mg-accent);
  color: #ffffff;
}

/* ---------- Content area ---------- */
.theme-modern .content {
  background: var(--mg-bg);
  color: var(--mg-text);
  min-height: calc(100vh - 64px);
}

/* ---------- Page-detail specific (IssueDetailPage) ---------- */
.theme-modern .card-header-sm { padding: 18px 24px; }
.theme-modern .card-header.bordered { border-bottom: 1px solid var(--mg-border); }
.theme-modern .card-header hr,
.theme-modern .card-block hr,
.theme-modern hr {
  border-color: var(--mg-border);
  opacity: 1;
}
.theme-modern .card-header .title {
  font-size: 1.35rem;
  line-height: 1.2;
}
.theme-modern .history-col { margin-bottom: 20px; }

/* ---------- Announcement Banner ---------- */
.theme-modern .announcement-banner,
.theme-modern .announcement-banner .alert {
  background: var(--mg-accent-soft);
  color: var(--mg-text);
  border-color: rgba(255, 140, 66, 0.25);
}

/* ---------- Text helpers ---------- */
.theme-modern .text-danger { color: var(--mg-danger) !important; }
.theme-modern .text-warning { color: var(--mg-accent-2) !important; }
.theme-modern .text-success { color: var(--mg-success) !important; }
.theme-modern .text-info { color: var(--mg-primary) !important; }

/* ---------- Modal ---------- */
.theme-modern .modal-content {
  background: #fff;
  color: var(--mg-text);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}
.theme-modern .modal-header {
  border-bottom: 1px solid var(--mg-border);
}
.theme-modern .modal-footer {
  border-top: 1px solid var(--mg-border);
}
.theme-modern .modal-title { color: var(--mg-text); }

/* ---------- SweetAlert2 light tune ---------- */
.theme-modern ~ .swal2-container .swal2-popup,
.swal2-container .swal2-popup {
  background: #ffffff;
  color: var(--mg-text, #1a2138);
  border-radius: 16px;
}
.swal2-container .swal2-title,
.swal2-container .swal2-html-container {
  color: var(--mg-text, #1a2138) !important;
}
.swal2-container .swal2-confirm.swal2-styled {
  background: var(--mg-primary, #2b6ee6) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
}
.swal2-container .swal2-cancel.swal2-styled {
  background: #fff !important;
  color: var(--mg-text, #1a2138) !important;
  border: 1px solid var(--mg-border-strong, #ced4de) !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
}
.swal2-container .swal2-input {
  background: #fff !important;
  color: var(--mg-text, #1a2138) !important;
  border: 1px solid var(--mg-border-strong, #ced4de) !important;
  border-radius: 10px !important;
}

/* ---------- Date input calendar icon ---------- */
.theme-modern input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
  cursor: pointer;
  opacity: 0.65;
}

/* ---------- Priority Badge (existing kelas) ---------- */
.theme-modern .badge-priority-urgent { background: var(--mg-danger); color: #fff; }
.theme-modern .badge-priority-normal { background: var(--mg-primary); color: #fff; }
.theme-modern .badge-priority-low { background: var(--mg-text-muted); color: #fff; }

/* ---------- HEAVY OVERRIDES (kalahkan SS `app.css` legacy) ---------- */
.theme-modern .card .card-header,
.theme-modern .card > .card-header,
.theme-modern .card-header {
  background: transparent !important;
  color: var(--mg-text) !important;
  border-bottom: 1px solid var(--mg-border) !important;
}
.theme-modern .card .card-header .title,
.theme-modern .card > .card-header .title,
.theme-modern .card-header .title,
.theme-modern .card-header h3,
.theme-modern .card-header h4,
.theme-modern .card-header .header-block h3,
.theme-modern .card-header .header-block .title {
  color: var(--mg-text) !important;
  font-weight: 700 !important;
}
.theme-modern .card .card-header .subtitle,
.theme-modern .card-header .subtitle,
.theme-modern .card-header small {
  color: var(--mg-text-muted) !important;
}
.theme-modern .card,
.theme-modern .card.card-default,
.theme-modern .card.sameheight-item,
.theme-modern .card.card-info,
.theme-modern .card.card-warning,
.theme-modern .card.card-success,
.theme-modern .card.card-danger,
.theme-modern .card.card-primary {
  background: var(--mg-bg-card) !important;
  color: var(--mg-text) !important;
  border: 1px solid var(--mg-border) !important;
}
.theme-modern .card .card-block,
.theme-modern .card > .card-block,
.theme-modern .card-block,
.theme-modern .card .card-body,
.theme-modern .card-body {
  background: transparent !important;
  color: var(--mg-text) !important;
}
.theme-modern .card .card-block label,
.theme-modern .card-block label,
.theme-modern .card .card-header label,
.theme-modern .card-header label,
.theme-modern .form-group label,
.theme-modern label {
  color: var(--mg-text-muted) !important;
}
.theme-modern hr {
  border: 0 !important;
  border-top: 1px solid var(--mg-border) !important;
  background: transparent !important;
  opacity: 1 !important;
  margin: 12px 0 !important;
}
.theme-modern .card .table,
.theme-modern .card table {
  background: transparent !important;
  color: var(--mg-text) !important;
}
.theme-modern .card .table th,
.theme-modern .card table th {
  color: var(--mg-text-muted) !important;
  border-color: var(--mg-border-strong) !important;
  background: var(--mg-bg-soft) !important;
}
.theme-modern .card .table td,
.theme-modern .card table td {
  color: var(--mg-text) !important;
  border-color: var(--mg-border) !important;
}
/* Title-block breadcrumb link */
.theme-modern .title-block .title,
.theme-modern .title-block h3.title {
  color: var(--mg-text) !important;
}
.theme-modern .title-block .title a,
.theme-modern .title-block h3.title a {
  color: var(--mg-primary) !important;
  text-decoration: none;
}
.theme-modern .title-block .title a:hover {
  color: var(--mg-accent) !important;
}
/* Nav tabs di dalam card-header (pull-right) */
.theme-modern .card-header .nav-tabs {
  border-bottom: 0;
}
.theme-modern .card-header .nav-tabs .nav-link {
  color: var(--mg-text-muted) !important;
  background: transparent !important;
}
.theme-modern .card-header .nav-tabs .nav-link.active {
  color: var(--mg-primary) !important;
  background: transparent !important;
  border-bottom: 2px solid var(--mg-primary) !important;
}
/* Anchor default */
.theme-modern .card-block a,
.theme-modern .card-header a {
  color: var(--mg-primary);
}
.theme-modern .card-block a:hover,
.theme-modern .card-header a:hover {
  color: var(--mg-accent);
}

/* ---------- FIX: native `<select>` text ter-clip di SEMUA halaman.
   Bootstrap 3.3.7 `.form-control { height: 34px }` + native select rendering
   bikin top char ter-clip. Solusi: `appearance: none` + line-height=height
   + custom SVG arrow. */
.theme-modern select,
.theme-modern select.form-control,
.theme-modern .btn-group select,
.theme-modern .btn-group select.form-control,
.theme-modern .btn-group .form-control {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 36px 0 14px !important;
  line-height: 42px !important;
  font-size: 0.9rem !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='rgba(90,100,120,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  background-color: #ffffff !important;
  color: var(--mg-text) !important;
  border: 1px solid var(--mg-border-strong) !important;
  border-radius: 10px !important;
}
.theme-modern select:focus,
.theme-modern select.form-control:focus {
  outline: none !important;
  border-color: var(--mg-primary) !important;
  box-shadow: 0 0 0 3px var(--mg-primary-shadow) !important;
}
.theme-modern select option,
.theme-modern select.form-control option {
  background-color: #ffffff !important;
  color: var(--mg-text) !important;
  line-height: 1.4 !important;
  padding: 6px 10px !important;
}
.theme-modern input.form-control:not([type="checkbox"]):not([type="radio"]),
.theme-modern textarea.form-control {
  min-height: 42px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

/* ---------- Card-header layout fix ---------- */
.theme-modern .card .card-header,
.theme-modern .card-header {
  align-items: stretch !important;
  min-height: 50px !important;
}
.theme-modern .card-header .header-block {
  padding: 12px 20px !important;
  flex: 1 1 auto;
}
.theme-modern .card-header .pull-right {
  margin-left: auto;
  border-left: 1px solid var(--mg-border);
}

/* ==========================================================================
   Dashboard modular (grid 12-col + widget wrapper + customize drawer)
   ========================================================================== */

/* Header dashboard (title + Customize button) */
.theme-modern .dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--mg-border);
  margin-bottom: 20px;
}
.theme-modern .dash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Grid 12-col */
.theme-modern .dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-flow: dense;
}

/* Widget wrapper */
.theme-modern .dash-widget {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.04), 0 8px 20px rgba(11, 18, 32, 0.04);
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.theme-modern .dash-widget.size-sm { grid-column: span 3; }
.theme-modern .dash-widget.size-md { grid-column: span 4; }
.theme-modern .dash-widget.size-lg { grid-column: span 6; }
.theme-modern .dash-widget.size-xl { grid-column: span 8; }
.theme-modern .dash-widget.size-full { grid-column: span 12; }
.theme-modern .dash-widget.editing {
  outline: 2px dashed var(--mg-primary);
  outline-offset: 2px;
  cursor: move;
}
.theme-modern .dash-widget-body {
  min-width: 0;
  flex: 1;
}

/* Edit bar (drag + hide) */
.theme-modern .dash-widget-edit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: -8px -8px 10px;
  padding: 4px 8px;
  background: var(--mg-primary-soft);
  border-radius: 10px 10px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
}
.theme-modern .dash-widget-drag {
  color: var(--mg-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-modern .dash-widget-hide {
  border: 0;
  background: transparent;
  color: var(--mg-danger);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 6px;
}
.theme-modern .dash-widget-hide:hover {
  background: rgba(240, 78, 92, 0.1);
}

/* ---------- Ticket Style A: Focus tile + compact list (Linear/Notion) ----------
   Layout 2-kolom: kiri = focus tile OPEN (gradient warm + huge number),
   kanan = 7 status lain sebagai row list dgn dot color + label + count.
   Referensi: progressive disclosure (Linear/Notion dashboard patterns). */
.theme-modern .dash-widget .ticket-a-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .theme-modern .dash-widget .ticket-a-layout {
    grid-template-columns: 1fr;
  }
}
/* Focus tile */
.theme-modern .dash-widget .ticket-a-focus {
  background: linear-gradient(135deg, #fff5ec 0%, #ffffff 100%);
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none !important;
  color: inherit !important;
  min-height: 200px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-modern .dash-widget .ticket-a-focus:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 78, 92, 0.08);
  color: inherit !important;
}
.theme-modern .dash-widget .ticket-a-focus-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mg-danger);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.theme-modern .dash-widget .ticket-a-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mg-danger);
  box-shadow: 0 0 0 4px rgba(240, 78, 92, 0.15);
}
.theme-modern .dash-widget .ticket-a-focus-value {
  font-family: inherit;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--mg-text);
  font-variant-numeric: tabular-nums;
}
/* Compact list */
.theme-modern .dash-widget .ticket-a-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theme-modern .dash-widget .ticket-a-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.15s ease;
  text-decoration: none !important;
  color: inherit !important;
}
.theme-modern .dash-widget .ticket-a-row:hover {
  background: var(--mg-bg-soft);
  color: inherit !important;
}
.theme-modern .dash-widget .ticket-a-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mg-text-faint);
  flex-shrink: 0;
}
.theme-modern .dash-widget .ticket-a-dot[data-status="reOpen"] { background: var(--mg-warning); }
.theme-modern .dash-widget .ticket-a-dot[data-status="waitResponse"] { background: #8b5cf6; }
.theme-modern .dash-widget .ticket-a-dot[data-status="inProgress"] { background: var(--mg-primary); }
.theme-modern .dash-widget .ticket-a-dot[data-status="closedNotDone"] { background: var(--mg-danger); }
.theme-modern .dash-widget .ticket-a-dot[data-status="autoClosed"] { background: var(--mg-text-faint); }
.theme-modern .dash-widget .ticket-a-dot[data-status="waitingForClose"] { background: var(--mg-warning); }
.theme-modern .dash-widget .ticket-a-dot[data-status="closed"] { background: var(--mg-success); }
.theme-modern .dash-widget .ticket-a-label {
  color: var(--mg-text);
  font-size: 0.88rem;
  font-weight: 500;
}
.theme-modern .dash-widget .ticket-a-val {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mg-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.theme-modern .dash-widget .ticket-a-val.zero {
  color: var(--mg-text-faint);
  font-weight: 500;
}
.theme-modern .dash-widget .ticket-a-layout.is-loading .ticket-a-focus-value,
.theme-modern .dash-widget .ticket-a-layout.is-loading .ticket-a-val {
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

/* Ticket overview header: judul + filter periode */
.theme-modern .dash-widget .ticket-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.theme-modern .dash-widget .ticket-overview-head .subtitle-block {
  margin: 4px 0 0 !important;
}
.theme-modern .dash-widget .ticket-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.theme-modern .dash-widget .ticket-period-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--mg-bg-soft);
  border: 1px solid var(--mg-border);
  border-radius: 999px;
}
.theme-modern .dash-widget .ticket-period-tab {
  border: 0;
  background: transparent;
  color: var(--mg-text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-modern .dash-widget .ticket-period-tab:hover {
  color: var(--mg-primary);
}
.theme-modern .dash-widget .ticket-period-tab.active {
  background: #ffffff;
  color: var(--mg-primary);
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.08);
}
.theme-modern .dash-widget .ticket-period-tab:focus-visible {
  outline: 2px solid var(--mg-primary);
  outline-offset: 1px;
}
.theme-modern .dash-widget .ticket-period-dates {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-modern .dash-widget .ticket-period .ticket-period-dates input.form-control {
  width: auto !important;
  min-height: 34px !important;
  padding: 4px 10px !important;
  font-size: 0.8rem !important;
}
.theme-modern .dash-widget .ticket-period .ticket-period-dates input.form-control.is-invalid {
  border-color: var(--mg-danger) !important;
}
.theme-modern .dash-widget .ticket-period-sep {
  color: var(--mg-text-faint);
}
@media (max-width: 780px) {
  .theme-modern .dash-widget .ticket-period {
    align-items: flex-start;
  }
}
/* Tighten Bootstrap row/col spacing dalam widget children */
.theme-modern .dash-widget .row {
  margin-left: -4px;
  margin-right: -4px;
}
.theme-modern .dash-widget .row > [class*="col-"] {
  padding-left: 4px;
  padding-right: 4px;
  margin-bottom: 8px;
}
/* Status card di dalam widget (OPEN/RE OPEN/dst).
   SS asli pakai 3-col grid (label/icon/number horizontal), jadi awkward di tile
   kecil. Restructure jadi stacked vertical: label kecil di atas, angka besar
   di bawah. Icon FA di-hide (dot color di label sudah cukup jadi indikator). */
.theme-modern .dash-widget .card .card-block .row {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
}
.theme-modern .dash-widget .card .card-block .row > [class*="col-"] {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  flex: none !important;
  max-width: 100% !important;
}
/* Kolom icon (col-md-2) di-hide — icon FA jadi noise di tile kecil */
.theme-modern .dash-widget .card .card-block .col-md-2 {
  display: none !important;
}
.theme-modern .dash-widget .card .card-block .col-md-6 { order: 1; }
.theme-modern .dash-widget .card .card-block .col-md-4 { order: 2; }
.theme-modern .dash-widget .card .card-block .title {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: var(--mg-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}
.theme-modern .dash-widget .card .card-block h3.pull-right {
  float: none !important;
  text-align: left !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--mg-text) !important;
  margin: 0 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  font-family: inherit;
}
/* Ticket/WO anchor link — hilangkan underline default */
.theme-modern .dash-widget a.popup,
.theme-modern .dash-widget a.popup:hover {
  text-decoration: none;
  color: inherit;
}
/* Subtitle di dalam widget children (Ticket Complain Overview, dsb) → jadi header widget */
.theme-modern .dash-widget .subtitle-block {
  margin: 0 0 14px !important;
  padding: 0 !important;
}
.theme-modern .dash-widget .subtitle {
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-align: left !important;
  color: var(--mg-text) !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: inherit;
}
/* Nested "My Work Orders Pending" card di WorkOrderWidget: title-nya tetap tampil */
.theme-modern .dash-widget .card.tasks .card-header .title {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--mg-text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ==========================================================================
   Customize Drawer
   ========================================================================== */
.theme-modern .dash-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.theme-modern .dash-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.theme-modern .dash-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  max-width: 92vw;
  background: var(--mg-bg-card);
  box-shadow: 0 20px 60px rgba(11, 18, 32, 0.16);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.theme-modern .dash-drawer.show { transform: translateX(0); }
.theme-modern .dash-drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--mg-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.theme-modern .dash-drawer-head h2 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--mg-text);
}
.theme-modern .dash-drawer-head small {
  display: block;
  color: var(--mg-text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}
.theme-modern .dash-drawer-close {
  border: 0;
  background: transparent;
  color: var(--mg-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme-modern .dash-drawer-close:hover {
  background: var(--mg-bg-soft);
  color: var(--mg-text);
}
.theme-modern .dash-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.theme-modern .dash-drawer-section { margin-bottom: 28px; }
.theme-modern .dash-drawer-section h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mg-text-muted);
  margin: 0 0 12px;
  font-weight: 700;
}

/* Preset picker */
.theme-modern .dash-preset-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.theme-modern .dash-preset {
  padding: 14px 10px;
  background: var(--mg-bg-soft);
  border: 2px solid var(--mg-border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-family: inherit;
}
.theme-modern .dash-preset:hover { border-color: var(--mg-primary); }
.theme-modern .dash-preset.active {
  border-color: var(--mg-primary);
  background: var(--mg-primary-soft);
}
.theme-modern .dash-preset-preview {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
  height: 40px;
}
.theme-modern .dash-preset-preview .cell {
  background: var(--mg-border-strong);
  border-radius: 3px;
}
.theme-modern .dash-preset-preview.preset-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
}
.theme-modern .dash-preset-preview.preset-focus {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.theme-modern .dash-preset-preview.preset-focus .cell:first-child { grid-row: span 2; }
.theme-modern .dash-preset-preview.preset-compact {
  grid-template-columns: repeat(4, 1fr);
}
.theme-modern .dash-preset-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mg-text);
}

/* Toggle list */
.theme-modern .dash-toggle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-modern .dash-toggle-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: grab;
}
.theme-modern .dash-toggle-row:hover {
  background: var(--mg-bg-soft);
  border-color: var(--mg-border);
}
.theme-modern .dash-toggle-row.dragging { opacity: 0.4; }
.theme-modern .dash-drag {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--mg-text-faint);
  font-size: 1rem;
  user-select: none;
}
.theme-modern .dash-row-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mg-text);
}
.theme-modern .dash-row-info small {
  color: var(--mg-text-muted);
  font-size: 0.78rem;
}

/* Switch */
.theme-modern .dash-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.theme-modern .dash-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-modern .dash-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--mg-border-strong);
  border-radius: 999px;
  transition: 0.2s;
  cursor: pointer;
}
.theme-modern .dash-switch-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.theme-modern .dash-switch input:checked + .dash-switch-slider {
  background: linear-gradient(90deg, var(--mg-primary) 0%, var(--mg-accent) 100%);
}
.theme-modern .dash-switch input:checked + .dash-switch-slider::before {
  transform: translateX(18px);
}

/* Size list */
.theme-modern .dash-size-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-modern .dash-size-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--mg-bg-soft);
  border: 1px solid var(--mg-border);
  border-radius: 10px;
}
.theme-modern .dash-size-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mg-text);
}
.theme-modern .dash-size-picker {
  display: flex;
  gap: 3px;
}
.theme-modern .dash-size-btn {
  padding: 4px 10px;
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--mg-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.theme-modern .dash-size-btn:hover {
  border-color: var(--mg-primary);
  color: var(--mg-primary);
}
.theme-modern .dash-size-btn.active {
  background: var(--mg-primary);
  color: #fff;
  border-color: var(--mg-primary);
}
.theme-modern .dash-size-help {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--mg-text-muted);
}

.theme-modern .dash-drawer-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--mg-border);
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 1200px) {
  .theme-modern .dash-widget.size-sm { grid-column: span 6; }
  .theme-modern .dash-widget.size-md { grid-column: span 6; }
  .theme-modern .dash-widget.size-lg { grid-column: span 12; }
  .theme-modern .dash-widget.size-xl { grid-column: span 12; }
}
@media (max-width: 780px) {
  .theme-modern .dash-widget { grid-column: span 12 !important; }
}

/* ---------- Guest shell (Page.ss tanpa login: menu guest + article.custom-content) ---------- */
.theme-modern .guest-shell-toggle {
  display: none;
}
@media (max-width: 991px) {
  .theme-modern .guest-shell-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 15;
    width: 40px;
    height: 40px;
    border: 1px solid var(--mg-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--mg-text);
  }
  .theme-modern .guest-shell .custom-content {
    padding-top: 64px;
  }
}
@media (max-width: 575px) {
  .theme-modern .guest-shell .custom-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Logo SiteConfig di header sidebar (Menu.ss `$CustomSiteConfig.Logo.SetRatioSize(230,100)`) */
.theme-modern .sidebar-header img {
  max-width: 100%;
  height: auto;
}
@media (min-width: 992px) {
  .theme-modern .app.sidebar-collapsed .sidebar-header img {
    max-width: 48px !important;
  }
}

/* ---------- Footer (Includes/Footer.ss: "HELP DESK" + $SiteConfig.Title) ---------- */
.theme-modern .footer {
  background: #ffffff;
  border-top: 1px solid var(--mg-border);
  color: var(--mg-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: left 0.3s ease;
}
.theme-modern .footer .footer-block.buttons {
  font-weight: 700;
  color: var(--mg-text);
}
.theme-modern .footer .footer-block.author a {
  color: var(--mg-primary);
  text-decoration: none;
}
@media (min-width: 992px) {
  .theme-modern .app.sidebar-collapsed .footer { left: 72px; }
}

/* ---------- Breadcrumb TopBar (Includes/BreadcrumbCustom.ss di .header-block-search) ---------- */
.theme-modern .header .header-block-search {
  font-size: 0.9rem;
  color: var(--mg-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-modern .header .header-block-search a {
  color: var(--mg-primary);
  text-decoration: none;
}
.theme-modern .header .header-block-search a:hover {
  color: var(--mg-accent);
}

/* ---------- Login (Login.ss): logo SiteConfig + checkbox Remember Me ---------- */
.theme-modern.auth .auth-title img {
  display: inline-block;
  width: auto;
  height: auto;
}
.theme-modern.auth #RememberMe label {
  font-weight: 400;
  cursor: pointer;
}
.theme-modern.auth form > .row {
  margin-left: 0;
  margin-right: 0;
}
