:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #152033;
  --muted: #65758b;
  --line: #dfe6ef;
  --primary: #0f6bcb;
  --primary-dark: #0b55a4;
  --sidebar-bg: #10233f;
  --sidebar-text: #ffffff;
  --sidebar-text-muted: #d9e5f5;
  --login-bg-end: #173a68;
  --danger: #c93636;
  --success: #137a48;
  --shadow: 0 16px 45px rgba(23, 38, 64, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

body.sidebar-collapsed {
  grid-template-columns: 76px 1fr;
}

body.booting .login-screen,
body.booting .sidebar,
body.booting .app,
body.booting .app-footer {
  display: none;
}

body.logged-out {
  display: block;
}

body.logged-out .sidebar,
body.logged-out .app,
body.logged-out .app-footer {
  display: none;
}

body.logged-in .login-screen {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sidebar {
  min-height: 100vh;
  padding: 22px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  transition: padding 0.2s ease;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--login-bg-end) 100%);
}

.login-hero-logo {
  width: min(170px, 44vw);
  height: auto;
  display: block;
  margin: 0 auto 14px;
  border-radius: 8px;
}

.login-card {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(7, 18, 35, 0.24);
}

.login-brand {
  color: var(--text);
  margin-bottom: 18px;
  text-align: center;
}

.login-brand strong {
  color: var(--text);
}

.brand.login-brand span {
  color: #4b5563 !important;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #42526a;
  font-weight: 700;
  font-size: 12px;
}

.brand {
  display: block;
  text-align: center;
  margin-bottom: 26px;
}

.sidebar-logo {
  width: min(130px, 72%);
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5c744;
  color: #14213b;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: var(--sidebar-text);
  font-size: 12px;
  line-height: 1.35;
}

.nav {
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
}

.nav-item {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover,
.nav-item.active {
  background: var(--primary-dark);
  color: #fff;
}

body.sidebar-collapsed .sidebar {
  padding: 18px 12px;
}

body.sidebar-collapsed .brand {
  margin-bottom: 18px;
}

body.sidebar-collapsed .sidebar-logo {
  width: 42px;
  margin-bottom: 0;
}

body.sidebar-collapsed .brand div,
body.sidebar-collapsed .nav-item > span:not(.nav-icon) {
  display: none;
}

body.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 11px;
}

body.sidebar-collapsed .nav-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

body.sidebar-collapsed .nav-icon svg {
  width: 22px;
  height: 22px;
}

.personalization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.personalization-grid label {
  display: grid;
  gap: 8px;
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
}

.personalization-grid input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 4px;
}

.logo-upload-field,
.personalization-preview,
.personalization-actions {
  grid-column: 1 / -1;
}

.personalization-preview {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.personalization-preview img {
  width: min(150px, 45vw);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #eef3f9 25%, transparent 25%),
    linear-gradient(-45deg, #eef3f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef3f9 75%),
    linear-gradient(-45deg, transparent 75%, #eef3f9 75%);
  background-color: #fff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.personalization-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.subnav-item {
  background: #e8eef7;
  color: #42526a;
}

.subnav-item:hover,
.subnav-item.active {
  background: var(--primary);
  color: #fff;
}

.app {
  min-width: 0;
  padding: 26px 26px 82px;
}

.app-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 280px;
  z-index: 20;
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 14px 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(8px);
}

body.sidebar-collapsed .app-footer {
  left: 76px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.sidebar-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--primary);
  cursor: pointer;
}

.sidebar-toggle span {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.sidebar-toggle:hover {
  border-color: var(--primary);
  background: #eef6ff;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 23px;
}

h2 {
  font-size: 17px;
}

.session {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.current-user {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.current-user strong,
.current-user span {
  line-height: 1.15;
}

.current-user span {
  color: var(--muted);
  font-size: 12px;
}

.session label {
  display: grid;
  gap: 4px;
}

.session select,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
  color: var(--text);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

body.is-rendered .view.active > .panel,
body.is-rendered .view.active > .dashboard-filter,
body.is-rendered .view.active > .dashboard-charts,
body.is-rendered .view.active > .subnav,
body.is-rendered .view.active > .module-panel.active {
  animation: contentEnter 0.7s ease both;
}

.module-panel {
  display: none;
}

.module-panel.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-filter {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.dashboard-filter label {
  display: grid;
  gap: 5px;
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
}

.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.panel {
  padding: 18px;
}

.notification-panel {
  margin-top: 16px;
}

.log-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.log-head h2 {
  margin-bottom: 0;
}

.log-head label {
  display: grid;
  gap: 5px;
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pager div,
.pager-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pager .page-number {
  min-width: 32px;
  padding-inline: 10px;
}

.pager .page-number.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  opacity: 1;
}

.pager-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.chart-panel {
  margin-bottom: 16px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.chart-head h2,
.chart-head p {
  margin-bottom: 6px;
}

.chart-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart-filters label {
  display: grid;
  gap: 5px;
  color: #42526a;
  font-size: 12px;
  font-weight: 700;
}

.line-chart {
  width: 100%;
  overflow-x: auto;
}

.line-chart svg {
  width: 100%;
  min-width: 720px;
  display: block;
}

.chart-grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.chart-area {
  fill: rgba(15, 107, 203, 0.08);
  opacity: 0;
}

.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.chart-point {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.chart-label {
  fill: #64748b;
  font-size: 9px;
}

.month-label {
  text-anchor: middle;
}

.chart-value {
  fill: #152033;
  font-size: 9px;
  font-weight: 700;
  text-anchor: middle;
}

.pie-layout {
  display: grid;
  place-items: center;
  min-height: 370px;
}

.pie-layout svg {
  width: min(100%, 620px);
  height: auto;
}

.pie-slice {
  opacity: 0;
  transform: scale(0.86);
  transform-box: fill-box;
  transform-origin: center;
}

.pie-total {
  fill: var(--text);
  font-size: 30px;
  font-weight: 800;
  text-anchor: middle;
}

.pie-caption {
  fill: var(--muted);
  font-size: 12px;
  text-anchor: middle;
}

.pie-callout path {
  fill: none;
  stroke: var(--slice-color);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.pie-callout circle {
  fill: var(--slice-color);
  opacity: 0;
}

.pie-callout-label {
  fill: var(--text);
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
}

.pie-callout-value {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
}

body.is-rendered .chart-area {
  animation: fadeIn 0.95s ease 0.35s both;
}

body.is-rendered .chart-line {
  animation: drawLine 1.8s ease both;
}

body.is-rendered .chart-point {
  animation: popIn 0.55s ease both;
  animation-delay: calc(0.32s + var(--point-index) * 0.07s);
}

body.is-rendered .pie-slice {
  animation: pieSliceIn 0.85s ease both;
  animation-delay: calc(var(--slice-index) * 0.18s);
}

body.is-rendered .pie-callout path {
  animation: drawLine 0.85s ease both;
  animation-delay: calc(0.65s + var(--slice-index) * 0.18s);
}

body.is-rendered .pie-callout circle,
body.is-rendered .pie-callout-label,
body.is-rendered .pie-callout-value {
  animation: fadeIn 0.5s ease both;
  animation-delay: calc(1.05s + var(--slice-index) * 0.18s);
}

body.no-animations .chart-area,
body.no-animations .chart-point,
body.no-animations .pie-slice,
body.no-animations .pie-callout circle,
body.no-animations .pie-callout-label,
body.no-animations .pie-callout-value {
  animation: none;
  opacity: 1;
  transform: none;
}

body.no-animations .chart-line,
body.no-animations .pie-callout path {
  animation: none;
  stroke-dashoffset: 0;
}

.empty-chart {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@keyframes contentEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.65);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pieSliceIn {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-head h2,
.section-head p {
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.toolbar input {
  flex: 1;
  min-width: 180px;
}

.export-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.export-tools label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.export-tools select {
  min-width: 92px;
  padding: 8px 9px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.primary:hover {
  background: var(--primary-dark);
}

.ghost {
  background: #eef3f9;
  color: #1d2d44;
}

.danger {
  background: #ffe9e9;
  color: var(--danger);
}

.success {
  color: var(--success);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef3f9;
  color: #42526a;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.terkirim {
  background: #e5f6ed;
  color: #137a48;
}

.status-pill.gagal,
.status-pill.tanpa_penerima {
  background: #ffe9e9;
  color: #c93636;
}

.status-pill.simulasi {
  background: #fff4d6;
  color: #8a5b00;
}

.status-pill.unggah {
  background: #e5f6ed;
  color: #137a48;
}

.status-pill.ubah {
  background: #e8f1ff;
  color: #0f6bcb;
}

.status-pill.delete {
  background: #ffe9e9;
  color: #c93636;
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: #526174;
  font-size: 11px;
  text-transform: uppercase;
}

.sort-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.sort-button:hover {
  color: var(--primary);
}

[data-sort-indicator] {
  min-width: 12px;
  color: var(--primary);
  font-size: 11px;
}

td.actions {
  white-space: nowrap;
}

td.actions button,
td.actions a {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 8px;
  padding: 7px 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

td.actions a {
  background: #e8f1ff;
  color: var(--primary);
}

dialog {
  width: min(860px, calc(100vw - 26px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(7, 18, 35, 0.25);
  overflow: hidden;
}

dialog.wide-dialog {
  width: min(1180px, calc(100vw - 26px));
}

dialog::backdrop {
  background: rgba(10, 20, 36, 0.42);
}

#recordForm,
#deleteActivityForm,
#deleteNotificationForm {
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.dialog-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.dialog-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.bulk-log-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.bulk-log-actions label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}

.delete-log-list {
  max-height: 55vh;
}

.delete-log-list th:first-child,
.delete-log-list td:first-child {
  text-align: center;
  width: 58px;
}

.icon {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 22px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: #42526a;
  font-weight: 700;
  font-size: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid input[readonly] {
  background: #f3f6fa;
  color: #4b5b70;
}

menu {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.webgrid {
  margin: 14px 0;
  max-height: 520px;
  overflow: auto;
  border: 1px solid #b8c4d2;
  border-radius: 4px;
  background: #fff;
}

.grid-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}

.sheet-table {
  width: 100%;
  min-width: 980px;
  font-size: 12px;
  border-collapse: collapse;
  table-layout: fixed;
}

.sheet-table.naskah {
  min-width: 1180px;
}

.sheet-table.ba {
  min-width: 1060px;
}

.sheet-table th,
.sheet-table td {
  border: 1px solid #cfd7e3;
  padding: 0;
  vertical-align: middle;
}

.sheet-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 30px;
  padding: 6px 8px;
  background: #e9edf3;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.sheet-table td {
  height: 34px;
  background: #fff;
}

.sheet-table .row-head {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  text-align: center;
  color: #526174;
  background: #eef2f7;
}

.sheet-table tbody .row-head {
  position: sticky;
  left: 0;
  z-index: 1;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.sheet-table thead .row-head {
  left: 0;
  z-index: 3;
}

.sheet-table tr:focus-within .row-head,
.sheet-table tr:focus-within td {
  background: #f8fbff;
}

.sheet-table td[contenteditable="true"] {
  width: 100%;
  height: 33px;
  min-width: 0;
  padding: 5px 8px;
  outline: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-table td[contenteditable="true"]:focus {
  box-shadow: inset 0 0 0 2px #1f8f4d;
  background: #fff;
}

.sheet-table td.invalid-cell {
  background: #fff1f1;
  box-shadow: inset 0 0 0 2px #d33f3f;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #14213b;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  body.sidebar-collapsed .sidebar {
    padding: 18px;
  }

  body.sidebar-collapsed .brand div,
  body.sidebar-collapsed .nav-item > span:not(.nav-icon) {
    display: block;
  }

  body.sidebar-collapsed .sidebar-logo {
    width: min(130px, 72%);
    margin: 0 auto 10px;
  }

  body.sidebar-collapsed .nav-item {
    justify-content: flex-start;
  }

  .app {
    padding: 18px 18px 82px;
  }

  .app-footer,
  body.sidebar-collapsed .app-footer {
    left: 0;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .toolbar,
  .section-head,
  .chart-head,
  .log-head {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-filters {
    justify-content: flex-start;
  }

  .dashboard-filter {
    justify-content: flex-start;
  }

  .pager {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid,
  .form-grid,
  .personalization-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-charts,
  .pie-layout {
    grid-template-columns: 1fr;
  }

  .pie-layout svg {
    margin: 0 auto;
  }

  .sheet-table,
  .sheet-table.ba,
  .sheet-table.naskah {
    min-width: 980px;
  }
}
