:root {
  --bg: #eef2f4;
  --panel: #ffffff;
  --ink: #18232d;
  --muted: #5d6b7c;
  --line: #d5dde6;
  --brand: #0f4c5c;
  --brand-2: #1b6b7a;
  --accent: #c45c26;
  --ok: #1f7a4c;
  --danger: #a33b3b;
  --shadow: 0 12px 28px rgba(24, 35, 45, 0.07);
  --radius: 14px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 76, 92, 0.09), transparent 42%),
    linear-gradient(180deg, #f5f7f9 0%, var(--bg) 100%);
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

.app-shell {
  --sidebar-w: 250px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .28s ease;
  width: 100%;
  max-width: 100vw;
  /* overflow-x:hidden di sini mematahkan sticky → sidebar terputus saat scroll */
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #0f4c5c 0%, #123b48 100%);
  color: #edf4f6;
  padding: 1.25rem 0.9rem 1.5rem;
  transition: padding .28s ease;
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.brand-block {
  padding: 0.35rem 0.35rem 0.75rem;
  min-width: 0;
  flex: 1;
  transition: opacity .2s ease;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.brand-logo {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,.12);
  flex: 0 0 auto;
}
.brand {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9.5rem;
}
.brand-sub {
  color: rgba(237, 244, 246, 0.7);
  font-size: 0.82rem;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.sidebar-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf4f6;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}
.sidebar-toggle .ico-expand { display: none; }
.app-shell.sidebar-collapsed .sidebar-toggle .ico-collapse { display: none; }
.app-shell.sidebar-collapsed .sidebar-toggle .ico-expand { display: block; }

.sidebar-toggle-mobile {
  display: none;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.sidebar-toggle-float {
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 40;
}

.nav-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(237, 244, 246, 0.55);
  margin: 1.1rem 0.75rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .18s ease, height .18s ease, margin .18s ease;
}

.nav-link,
.nav-group-toggle,
.nav-subgroup-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  color: #edf4f6;
  padding: 0.58rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.2rem;
  transition: background .18s ease, transform .18s ease, padding .28s ease;
  white-space: nowrap;
  overflow: hidden;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nav-link:hover,
.nav-group-toggle:hover,
.nav-subgroup-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-link.active,
.nav-group-toggle.is-active,
.nav-subgroup-toggle.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #e8b86d;
}
.nav-link.active {
  transform: translateX(2px);
}
.nav-link.active .nav-ico,
.nav-group-toggle.is-active .nav-ico,
.nav-subgroup-toggle.is-active .nav-ico {
  background: rgba(232, 184, 109, 0.35);
  color: #fff;
}

.nav-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  line-height: 1;
}
.nav-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-caret {
  flex: 0 0 auto;
  font-size: 0.68rem;
  opacity: 0.7;
  transition: transform .22s ease;
}
.nav-group.is-open > .nav-group-toggle .nav-caret,
.nav-subgroup.is-open > .nav-subgroup-toggle .nav-caret {
  transform: rotate(180deg);
}

.nav-group { position: relative; margin-bottom: 0.15rem; }
.nav-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 0.35rem;
  transition: max-height .32s ease, opacity .22s ease, margin .22s ease;
}
.nav-group.is-open > .nav-submenu,
.nav-subgroup.is-open > .nav-submenu {
  max-height: 920px;
  opacity: 1;
  margin-bottom: 0.25rem;
}
.nav-submenu.nested {
  margin-left: 0.55rem;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 0.35rem;
}
.nav-submenu .nav-link,
.nav-submenu .nav-subgroup-toggle {
  padding: 0.48rem 0.7rem;
  font-size: 0.92rem;
}
.nav-subgroup-toggle {
  color: rgba(237, 244, 246, 0.88);
  font-weight: 600;
}
.nav-link-logout { margin-top: 0.35rem; }

/* Collapsed rail */
.app-shell.sidebar-collapsed {
  --sidebar-w: 76px;
}
.app-shell.sidebar-collapsed .sidebar {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  overflow: visible;
}
.app-shell.sidebar-collapsed .brand-block,
.app-shell.sidebar-collapsed .nav-section,
.app-shell.sidebar-collapsed .nav-text,
.app-shell.sidebar-collapsed .nav-caret {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
.app-shell.sidebar-collapsed .sidebar-head {
  justify-content: center;
  margin-bottom: 0.75rem;
}
.app-shell.sidebar-collapsed .nav-link,
.app-shell.sidebar-collapsed .nav-group-toggle,
.app-shell.sidebar-collapsed .nav-subgroup-toggle {
  justify-content: center;
  padding: 0.55rem 0.35rem;
  gap: 0;
}
.app-shell.sidebar-collapsed .nav-link.active { transform: none; }
.app-shell.sidebar-collapsed .nav-ico {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.9rem;
}
.app-shell.sidebar-collapsed .nav-group > .nav-submenu {
  display: none;
  position: absolute;
  left: calc(100% + 0.45rem);
  top: 0;
  min-width: 230px;
  max-height: none;
  opacity: 1;
  overflow: visible;
  background: #123b48;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
  padding: 0.45rem;
  z-index: 60;
  margin: 0;
}
.app-shell.sidebar-collapsed .nav-group:hover > .nav-submenu,
.app-shell.sidebar-collapsed .nav-group:focus-within > .nav-submenu {
  display: block;
}
.app-shell.sidebar-collapsed .nav-submenu .nav-text,
.app-shell.sidebar-collapsed .nav-submenu .nav-caret {
  opacity: 1;
  width: auto;
  height: auto;
  overflow: visible;
  pointer-events: auto;
}
.app-shell.sidebar-collapsed .nav-submenu .nav-link,
.app-shell.sidebar-collapsed .nav-submenu .nav-subgroup-toggle {
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.48rem 0.7rem;
}
.app-shell.sidebar-collapsed .nav-submenu.nested {
  position: static;
  display: none;
  margin: 0.15rem 0 0.25rem 0.55rem;
  min-width: 0;
  max-height: none;
  opacity: 1;
  box-shadow: none;
  border: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  padding: 0 0 0 0.35rem;
}
.app-shell.sidebar-collapsed .nav-subgroup.is-open > .nav-submenu.nested {
  display: block;
}

.content {
  padding: 1.35rem 1.5rem 2rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.global-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(15, 76, 92, 0.08), rgba(196, 92, 38, 0.06));
  border: 1px solid rgba(15, 76, 92, 0.18);
  border-radius: var(--radius);
}
.global-project-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-width: min(100%, 420px);
  flex: 1 1 320px;
}
.global-project-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 7rem;
}
.global-project-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.global-project-form .select2-container,
.global-project-form select {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
}
.global-project-status {
  flex: 1 1 220px;
  font-size: 0.88rem;
  color: var(--muted);
}
.global-project-status.is-active {
  color: var(--brand);
}
.global-project-status.is-active strong {
  color: var(--ink);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.topbar .page-title { flex: 1; min-width: 0; }
.topbar .sidebar-toggle-mobile { margin-right: 0.15rem; }
.page-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
}
.page-title p { margin: 0.25rem 0 0; color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.card.table-wrap {
  /* Scroll hanya di dalam card putih */
  overflow-x: hidden;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
}
table.data th,
table.data td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
table.data th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7f9fb;
}
table.data tbody tr { transition: background .15s ease; }
table.data tbody tr:hover { background: #f7fafb; }
.table-dense th, .table-dense td { padding: 0.5rem 0.45rem; font-size: 0.88rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-active { background: rgba(31, 122, 76, 0.12); color: var(--ok); }
.badge-inactive { background: rgba(163, 59, 59, 0.12); color: var(--danger); }
.badge-in { background: rgba(31, 122, 76, 0.12); color: var(--ok); }
.badge-out { background: rgba(196, 92, 38, 0.14); color: var(--accent); }
.badge-warn { background: rgba(180, 130, 20, 0.14); color: #8a6a10; }
.badge-over-limit {
  background: #a33b3b;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge-talangan {
  background: #6b4f1d;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}
tr.row-over-limit { background: rgba(163, 59, 59, 0.08); }
tr.row-over-limit:hover { background: rgba(163, 59, 59, 0.12); }
tr.row-talangan { background: rgba(107, 79, 29, 0.08); }
tr.row-talangan:hover { background: rgba(107, 79, 29, 0.12); }

.detail-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.65rem 1rem;
}
.detail-grid dt { color: var(--muted); font-size: 0.85rem; }
.detail-grid dd { margin: 0; font-weight: 700; }

.filters.filters-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  gap: 0.65rem 0.75rem;
  align-items: end;
  width: 100%;
  max-width: 100%;
}
.filters.filters-wrap input,
.filters.filters-wrap select { width: 100%; min-width: 0; }
.filters.filters-wrap .filter-actions,
.filters.filters-wrap > .btn,
.filters.filters-wrap > a.btn {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}
.filters.filters-wrap .filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-secondary { background: #e8edf2; color: var(--ink); }
.btn-danger { background: rgba(163, 59, 59, 0.12); color: var(--danger); }
.btn-warning { background: rgba(196, 92, 38, 0.12); color: var(--accent); }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; }

.toolbar {
  display: block;
  margin-bottom: 1rem;
}
.toolbar .filters,
.card > .filters,
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  gap: 0.65rem 0.75rem;
  align-items: end;
  width: 100%;
}
.filters input,
.filters select {
  width: 100%;
  min-width: 0;
}
.filters .filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.filters > .btn,
.filters > a.btn {
  width: auto;
  white-space: nowrap;
}

/* Panel filter laporan / dashboard-style */
.dash-filters {
  margin-bottom: 1rem;
  min-width: 0;
  max-width: 100%;
}
.dash-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  min-width: 0;
  width: 100%;
}
.dash-filter-grid .form-group {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.dash-filter-grid .form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.dash-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-bottom: 0.1rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="email"],
select,
textarea,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus,
.form-group input:not([type="hidden"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(15, 76, 92, 0.25);
  border-color: var(--brand-2);
}
input[readonly],
.form-group input[readonly] {
  background: #f4f7f9;
  color: var(--muted);
  cursor: not-allowed;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

/* Input standar — selaras dengan Select2 */
.field-control,
.form-group input.field-control,
.form-group textarea.field-control {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input.field-control[type="password"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  font-family: inherit;
}
.field-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.field-control:focus,
.form-group input.field-control:focus,
.form-group textarea.field-control:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}
.form-group input.field-control:-webkit-autofill,
.form-group input.field-control:-webkit-autofill:hover,
.form-group input.field-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  animation: fadeSlide .35s ease;
}
.alert-success { background: rgba(31, 122, 76, 0.1); color: var(--ok); }
.alert-error { background: rgba(163, 59, 59, 0.1); color: var(--danger); }
.alert-warn { background: rgba(180, 130, 20, 0.12); color: #8a6a10; }

.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pager { margin-top: 1rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.4rem; margin-top: 0.25rem; }
.stat span { color: var(--muted); font-size: 0.85rem; }

/* ===== Excel-like dashboard ===== */
.excel-board {
  display: grid;
  gap: 1rem;
  animation: fadeSlide .4s ease;
}
.excel-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.35rem;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(15,76,92,1) 0%, rgba(27,107,122,.95) 55%, rgba(196,92,38,.85) 130%);
  box-shadow: var(--shadow);
}
.excel-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.excel-title {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
}
.excel-sub {
  margin: 0.4rem 0 0;
  opacity: 0.88;
  font-size: 0.92rem;
  max-width: 58ch;
}
.excel-title-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.live-dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7dffb0;
  box-shadow: 0 0 0 0 rgba(125,255,176,.7);
  animation: pulseDot 1.8s infinite;
}
.live-dot.is-busy::before {
  background: #ffd27a;
  animation: none;
}

.excel-slicer-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.excel-slicer-panel .slicer-actions {
  grid-column: 1 / -1;
}
.slicer-block {
  border: 1px solid #e3e9ef;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fbfcfd;
}
.slicer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}
.linkish {
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.slicer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.slicer-chips-scroll {
  max-height: 150px;
  overflow: auto;
}
.slicer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cfd8e2;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.slicer-chip input { display: none; }
.slicer-chip:hover { transform: translateY(-1px); border-color: var(--brand-2); }
.slicer-chip.is-on {
  background: rgba(15, 76, 92, 0.12);
  border-color: rgba(15, 76, 92, 0.45);
  color: var(--brand);
}
.slicer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.kpi-card {
  border-radius: 16px;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 130px;
}
.kpi-excel {
  position: relative;
  overflow: hidden;
}
.kpi-excel::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.kpi-out {
  background: linear-gradient(160deg, #fff 0%, #fff3ea 100%);
  border-color: rgba(196, 92, 38, 0.28);
}
.kpi-in {
  background: linear-gradient(160deg, #fff 0%, #eaf7f0 100%);
  border-color: rgba(31, 122, 76, 0.28);
}
.kpi-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-value {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.kpi-meta {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.kpi-pulse { animation: kpiFlash .55s ease; }

.chart-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}
.chart-card { min-height: 340px; }
.chart-card-wide { grid-column: 1 / -1; min-height: 420px; }
.excel-chart {
  animation: fadeSlide .45s ease;
}
.chart-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.chart-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(15, 76, 92, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.chart-canvas-wrap { position: relative; height: 280px; }
.chart-canvas-doughnut { height: 280px; }
.chart-canvas-wide { height: 360px; }

.loading-veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--brand);
  pointer-events: none;
}
.loading-veil.is-active {
  display: grid;
  pointer-events: auto;
}
.excel-board.is-loading .excel-charts { opacity: 0.85; }

.home-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.home-hero-card {
  padding: 1.35rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0f4c5c, #1b6b7a 60%, #9a5a32);
  box-shadow: var(--shadow);
}
.home-hero-card h2 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1.7rem;
}
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.quick-link {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  color: var(--ink);
  transition: transform .15s ease, border-color .15s ease;
}
.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(15,76,92,.35);
  color: var(--ink);
}
.quick-link strong { display: block; margin-bottom: 0.15rem; }
.quick-link span { color: var(--muted); font-size: 0.82rem; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(125,255,176,.55); }
  70% { box-shadow: 0 0 0 8px rgba(125,255,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,255,176,0); }
}
@keyframes kpiFlash {
  0% { box-shadow: 0 0 0 0 rgba(15,76,92,.25); }
  100% { box-shadow: var(--shadow); }
}
.text-danger { color: var(--danger); }

.kpi-grid.mandor-kpi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media print {
  @page {
    margin: 12mm 10mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .sidebar,
  .sidebar-toggle,
  .sidebar-toggle-mobile,
  .sidebar-toggle-float,
  .global-context-bar,
  .topbar .sidebar-toggle-mobile,
  .topbar .actions,
  .btn,
  .no-print,
  .dash-filters,
  .content > form,
  .content form.card,
  .slicer-actions,
  .excel-title-actions,
  .dataTables_length,
  .dataTables_filter,
  .dataTables_info,
  .dataTables_paginate,
  .dataTables_wrapper .row:has(.dataTables_length),
  div.dataTables_wrapper > .dataTables_length,
  div.dataTables_wrapper > .dataTables_filter,
  div.dataTables_wrapper > .dataTables_info,
  div.dataTables_wrapper > .dataTables_paginate,
  .select2-container,
  .alert {
    display: none !important;
  }

  .app-shell {
    display: block !important;
    grid-template-columns: 1fr !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .app-shell::before { display: none !important; }

  .content {
    padding: 0 !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .topbar {
    display: none !important;
  }

  .report-print-header {
    display: block !important;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #18232d;
  }

  .report-print-footer {
    display: block !important;
    margin-top: 1.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ccc;
    font-size: 0.75rem;
    color: #555;
  }

  .card,
  .excel-slicer-panel,
  .kpi-card,
  .table-wrap {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .kpi-grid {
    break-inside: avoid;
  }

  table.data {
    width: 100% !important;
    font-size: 0.78rem;
  }

  table.data th,
  table.data td {
    padding: 0.35rem 0.4rem !important;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }

  .table-scroll {
    overflow: visible !important;
  }
}

.report-print-header,
.report-print-footer {
  display: none;
}

.report-print-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.report-print-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.report-print-company {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #18232d;
}

.report-print-meta {
  font-size: 0.8rem;
  color: #5d6b7c;
}

.report-print-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.report-print-subtitle {
  margin: 0.2rem 0 0;
  color: #5d6b7c;
  font-size: 0.9rem;
}

.report-print-date {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #5d6b7c;
}

.btn-print-report i,
.btn-excel-report i {
  margin-right: 0.35rem;
}

.report-export-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-excel-report {
  background: #e7f4ec !important;
  color: #1b6b3a !important;
}

.btn-excel-report:hover {
  background: #d4eadc !important;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    --sidebar-w: 0px;
  }
  .app-shell.sidebar-collapsed {
    --sidebar-w: 0px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    transform: translateX(-105%);
    transition: transform .28s ease;
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
    padding-bottom: 1.5rem;
  }
  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .app-shell.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(18, 28, 36, 0.42);
    z-index: 45;
  }
  .sidebar-head { align-items: center; }
  .brand-block,
  .nav-section,
  .nav-text,
  .nav-caret {
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: initial;
    padding: initial;
    overflow: visible !important;
    pointer-events: auto !important;
  }
  .app-shell.sidebar-collapsed .brand-block,
  .app-shell.sidebar-collapsed .nav-section,
  .app-shell.sidebar-collapsed .nav-text,
  .app-shell.sidebar-collapsed .nav-caret {
    opacity: 1;
    width: auto;
    height: auto;
    pointer-events: auto;
  }
  .app-shell.sidebar-collapsed .nav-link,
  .app-shell.sidebar-collapsed .nav-group-toggle,
  .app-shell.sidebar-collapsed .nav-subgroup-toggle {
    justify-content: flex-start;
    padding: 0.58rem 0.85rem;
    gap: 0.65rem;
  }
  .app-shell.sidebar-collapsed .nav-group > .nav-submenu {
    display: block;
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding-left: 0.35rem;
    max-height: 0;
    opacity: 0;
  }
  .app-shell.sidebar-collapsed .nav-group.is-open > .nav-submenu {
    max-height: 920px;
    opacity: 1;
  }
  .side-nav {
    display: block;
    overflow: visible;
  }
  .nav-section { display: block; }
  .nav-link {
    white-space: nowrap;
    margin-bottom: 0.2rem;
  }
  .sidebar-toggle#sidebar-toggle { display: none; }
  .sidebar-toggle-mobile { display: inline-flex; }
  .topbar { gap: 0.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .stats, .kpi-grid, .home-hero, .quick-links { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .excel-slicer-panel { grid-template-columns: 1fr; }
  .dash-filter-grid,
  .filters,
  .filters.filters-wrap,
  .toolbar .filters {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .chart-canvas-wrap,
  .chart-canvas-doughnut { height: 250px; }
  .chart-canvas-wide { height: 300px; }
  .excel-titlebar { flex-direction: column; }
}

@media (max-width: 640px) {
  .stats, .kpi-grid, .home-hero, .quick-links { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
}

/* —— Auth / login —— */
.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: #f4f1ea;
  background: #06262f;
}
.login-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 480px);
}
.login-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(6, 38, 47, 0.55) 0%, rgba(6, 38, 47, 0.2) 40%, rgba(6, 38, 47, 0.72) 100%),
    linear-gradient(160deg, #0a3d4a 0%, #0f4c5c 42%, #163a44 100%);
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.login-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
  animation: loginGridDrift 18s linear infinite;
}
.login-hero-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 640px;
  max-height: 640px;
  right: -12%;
  top: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 90, 0.28) 0%, transparent 68%);
  animation: loginGlow 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.login-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 28ch;
  animation: loginRise 0.7s ease-out both;
}
.login-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.62);
}
.login-hero-mark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f7f3ea;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.login-hero-line {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(244, 241, 234, 0.78);
  max-width: 26ch;
}
.login-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 76, 92, 0.08), transparent 40%),
    #f4f7f8;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.login-panel-inner {
  width: 100%;
  max-width: 360px;
  animation: loginRise 0.75s 0.08s ease-out both;
}
.login-panel-head { margin-bottom: 1.5rem; }
.login-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.login-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 6.5rem;
  max-width: min(100%, 18rem);
  object-fit: contain;
}
.login-logo-name {
  display: block;
  text-align: center;
  line-height: 1.25;
}
.login-panel-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.login-panel-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.login-form {
  display: grid;
  gap: 0.95rem;
}
.login-recaptcha {
  display: flex;
  justify-content: flex-start;
  margin: 0.15rem 0 0.25rem;
  min-height: 78px;
}
.login-recaptcha .g-recaptcha {
  transform-origin: left center;
}
.login-field {
  display: grid;
  gap: 0.4rem;
}
.login-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}
.login-field input {
  width: 100%;
  border: 1px solid #c9d4dc;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  box-shadow: none;
}
.login-field input[type="password"] {
  border: 1px solid #c9d4dc;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
}
.login-field input::placeholder { color: #94a3b8; }
.login-field input:focus {
  outline: none;
  border-color: rgba(15, 76, 92, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 76, 92, 0.12);
}
.login-submit {
  margin-top: 0.35rem;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: #f7f3ea;
  background: linear-gradient(135deg, #0f4c5c 0%, #163a44 100%);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 10px 24px rgba(15, 76, 92, 0.22);
}
.login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.login-submit:active { transform: translateY(0); }
.login-alert {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.login-alert-ok {
  background: rgba(31, 122, 76, 0.1);
  color: #145c38;
  border: 1px solid rgba(31, 122, 76, 0.22);
}
.login-alert-err {
  background: rgba(163, 59, 59, 0.1);
  color: #8a2f2f;
  border: 1px solid rgba(163, 59, 59, 0.22);
}
.login-foot {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.login-foot code {
  font-size: 0.76rem;
  background: rgba(15, 76, 92, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.user-chip {
  margin-top: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
}
.user-chip-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.user-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-chip-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.user-chip strong { font-size: 0.88rem; }
.user-chip span { opacity: .75; letter-spacing: .04em; }

.project-color-dot {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  flex: 0 0 auto;
}
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}
.project-badge span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.color-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.color-swatch {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  padding: 0;
}
.color-swatch.is-selected {
  border-color: var(--ink);
  transform: scale(1.08);
}
.color-custom-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.color-custom-row input[type="color"] {
  width: 2.5rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}
.color-custom-row input[type="text"] {
  max-width: 8rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.settings-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.settings-avatar-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.settings-avatar-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(15,76,92,.08);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.settings-avatar-preview.company { border-radius: 14px; }
.settings-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings-avatar-fallback {
  color: var(--muted);
  font-size: 1.35rem;
}
@media (max-width: 960px) {
  .settings-grid { grid-template-columns: 1fr; }
}

@keyframes loginRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loginGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); opacity: 1; }
}
@keyframes loginGridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 48px, 0); }
}

@media (max-width: 900px) {
  .login-stage { grid-template-columns: 1fr; }
  .login-hero {
    min-height: 38vh;
    padding: 1.75rem 1.35rem 1.5rem;
  }
  .login-hero-mark { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .login-panel { min-height: 62vh; align-items: flex-start; padding-top: 2rem; }
}

.mandor-kpi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}
@media (max-width: 960px) {
  .mandor-kpi { grid-template-columns: 1fr; }
}

/* —— Select2 —— */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 4px 8px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px;
  color: var(--ink);
  padding-left: 4px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: rgba(15,76,92,.1);
  border: 1px solid rgba(15,76,92,.2);
  border-radius: 8px;
  color: var(--ink);
}
.select2-dropdown {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--brand);
}
.filters .select2-container,
.toolbar .select2-container,
.dash-filter-grid .select2-container,
.filters.filters-wrap .select2-container {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
}

/* —— DataTables —— */
table.data.datatable {
  width: 100% !important;
}
div.dataTables_wrapper {
  font-size: 0.9rem;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
div.dataTables_wrapper .dataTables_scroll {
  width: 100% !important;
}
div.dataTables_wrapper table {
  margin: 0 !important;
}
div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter,
div.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper .dataTables_paginate {
  margin: 0.65rem 0;
  color: var(--muted);
}
div.dataTables_wrapper .dataTables_filter input,
div.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: #fff;
  color: var(--ink);
}
div.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: 1px solid transparent !important;
}
div.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: rgba(15,76,92,.12) !important;
  border-color: rgba(15,76,92,.25) !important;
  color: var(--ink) !important;
}
div.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(15,76,92,.08) !important;
  border-color: rgba(15,76,92,.18) !important;
  color: var(--ink) !important;
}
.input-rupiah {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
table.data.datatable thead th {
  white-space: nowrap;
}
table.data.datatable tbody td .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

