@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #06b6d4;
  --info-light: #ecfeff;
  
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --sidebar-w: 260px;
  --navbar-h: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling */
.app-sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #0f172a;
  color: #f8fafc;
  z-index: 1040;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 24px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(79,70,229,0.35);
}

.sidebar-menu {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.menu-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 12px 12px 6px;
}

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.nav-link-custom:hover {
  background: rgba(255,255,255,0.06);
  color: #f8fafc;
}

.nav-link-custom.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.35);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: #64748b;
}

/* Main Content Area */
.app-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navbar */
.app-navbar {
  height: var(--navbar-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.page-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Page Content */
.app-content {
  padding: 32px;
  flex: 1;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card.card-primary::after { background: var(--primary); }
.stat-card.card-success::after { background: var(--success); }
.stat-card.card-warning::after { background: var(--warning); }
.stat-card.card-danger::after  { background: var(--danger); }
.stat-card.card-info::after    { background: var(--info); }

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-primary { background: var(--primary-light); color: var(--primary); }
.icon-success { background: var(--success-light); color: var(--success); }
.icon-warning { background: var(--warning-light); color: var(--warning); }
.icon-danger  { background: var(--danger-light); color: var(--danger); }
.icon-info    { background: var(--info-light); color: var(--info); }

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-meta {
  font-size: 0.8rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Triwulan Grid Cards */
.tw-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom Table Styles */
.table-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-toolbar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.table-responsive {
  margin: 0;
}

.table-custom {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table-custom thead th {
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table-custom tbody td {
  padding: 14px 16px;
  font-size: 0.88rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.table-custom tbody tr:hover td {
  background-color: #f8fafc;
}

/* Table Grouping & Accordion Hierarchy */
.table-group-header {
  background: #f8fafc;
  border-left: 4px solid var(--primary) !important;
  transition: background-color 0.15s ease;
  user-select: none;
}
.table-group-header td {
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}
.table-group-header:hover td {
  background-color: #f1f5f9 !important;
}
.table-group-header .group-toggle-icon {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary);
  font-size: 1.05rem;
}
.table-group-header.is-collapsed .group-toggle-icon {
  transform: rotate(-90deg);
}
.table-group-header.is-collapsed {
  border-left-color: #94a3b8 !important;
}
.table-group-header.is-collapsed td {
  background-color: #fcfdfe !important;
  border-bottom: 1px solid #e2e8f0;
}
.rekening-child-row {
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}
.rekening-child-row td {
  background-color: #ffffff;
}
.rekening-child-row:hover td {
  background-color: #f8fafc !important;
}
.rekening-child-row td:first-child {
  border-left: 4px solid transparent;
}
.rekening-child-row:hover td:first-child {
  border-left-color: rgba(14, 165, 233, 0.4);
}

/* Badges Pengelompokkan [#] dan Keterangan [-] */
.badge-paket {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.badge-subpaket {
  background-color: rgba(100, 116, 139, 0.1);
  color: #334155;
  border: 1px solid rgba(100, 116, 139, 0.22);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

/* Batch Modal & Rekening Grouping Styles */
.rekening-subgroup-header td {
  background-color: #f1f5f9 !important;
  border-top: 1px dashed #cbd5e1 !important;
  border-bottom: 1px dashed #cbd5e1 !important;
}

/* Styling Tombol Aksi Rekening yang Rapi, Proporsional & Modern */
.action-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}
.btn-action-rekening {
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
  height: 32px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50rem !important;
  padding: 0 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out !important;
}
.btn-action-rekening:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.btn-action-rekening i {
  font-size: 0.9rem !important;
}

.batch-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
}
.batch-item-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.batch-input-keu {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-color: #cbd5e1;
}
.batch-input-keu:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.batch-input-fisik {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-color: #cbd5e1;
}
.batch-input-fisik:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.table-pagination-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Number formatting mono */
.mono-num {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Badge styles */
.badge-soft-success {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.badge-soft-warning {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.badge-soft-danger {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.badge-soft-primary {
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* Modal Enhancements */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
}

/* Monthly Input Table */
.table-monthly-input thead th {
  text-align: center;
  font-size: 0.76rem;
  background: #f1f5f9;
}

.table-monthly-input td {
  padding: 6px !important;
}

.table-monthly-input input {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  padding: 6px 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0;
  }
}


/* Login Backdrop & Modal Overlay */
#loginBackdrop {
  display: none;
}
#loginBackdrop.active {
  display: flex !important;
}

/* Modal Realisasi & Batch Rekening Ultra-Wide & Proportional */
.modal-batch-superwide,
.modal-realisasi-xl {
  width: 96vw !important;
  max-width: 96vw !important;
  margin: 1.25rem auto !important;
}

@media (min-width: 1700px) {
  .modal-batch-superwide,
  .modal-realisasi-xl {
    width: 96vw !important;
    max-width: 1720px !important;
  }
}

@media (max-width: 1199.98px) {
  .modal-batch-superwide,
  .modal-realisasi-xl {
    width: calc(100vw - 16px) !important;
    max-width: 100vw !important;
    margin: 8px auto !important;
  }
}

@media (max-width: 575.98px) {
  .modal-batch-superwide,
  .modal-realisasi-xl {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* Batch Month Responsive Grids (Proportional & No Awkward 9+3 Wrap) */
.batch-months-grid-12 {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 576px) {
  .batch-months-grid-12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .batch-months-grid-12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .batch-months-grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 1350px) {
  .batch-months-grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.batch-months-grid-3 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .batch-months-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.batch-month-box {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.batch-month-box:focus-within {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

/* Triwulan Card & Input Grid Styling */
.triwulan-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.triwulan-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}
.triwulan-header {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.triwulan-header.tw1 { background: #eef2ff; color: #4338ca; border-left: 4px solid #4f46e5; }
.triwulan-header.tw2 { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.triwulan-header.tw3 { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.triwulan-header.tw4 { background: #fdf2f8; color: #9d174d; border-left: 4px solid #ec4899; }

.triwulan-table {
  width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
}
.triwulan-table th {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 9px 14px;
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid var(--border-color);
}
.triwulan-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.triwulan-table tr:last-child td {
  border-bottom: none;
}
.triwulan-table .month-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e293b;
  white-space: nowrap;
}
.triwulan-table .subtotal-row {
  background: #f8fafc;
  font-weight: 700;
  border-top: 2px solid #e2e8f0;
}

.field-input-fisik {
  font-family: var(--font-mono);
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  color: #1e293b !important;
  border-radius: var(--radius-sm);
  padding: 7px 10px !important;
}
.field-input-keuangan {
  font-family: var(--font-mono);
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-align: right !important;
  color: #0f172a !important;
  border-radius: var(--radius-sm);
  padding: 7px 10px !important;
}
.field-input-keuangan:focus, .field-input-fisik:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ========================================================
   SIDEBAR HIDE / UNHIDE & TRANSITIONS
   ======================================================== */
.app-sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-main {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Collapsed State */
body.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
  box-shadow: none;
}

body.sidebar-collapsed .app-main {
  margin-left: 0 !important;
}

/* Sidebar Toggle Buttons */
.btn-sidebar-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
}

.btn-sidebar-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  transform: scale(1.05);
}

/* ========================================================
   VIEW MODE SWITCHER (TABLE VS CARDS) & CARD GRID
   ======================================================== */
.view-mode-group .btn {
  font-size: 0.8rem;
  padding: 5px 12px;
  border: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.view-mode-group .btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-weight: 700;
}

/* Base Card Item for Grid View */
.item-card-custom {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.item-card-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.item-card-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-card-footer {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Mini Progress Bar in Cards */
.mini-progress {
  height: 6px;
  border-radius: 9999px;
  background-color: #e2e8f0;
  overflow: hidden;
  margin: 6px 0;
}

.mini-progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* User Card Specifics */
.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

/* ========================================================
   MOBILE BOTTOM NAVIGATION & RESPONSIVE PROPORTIONS
   ======================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 1045;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
  padding: 4px 6px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-width: 0;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mobile-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mobile-nav-item:hover {
  color: #f8fafc;
}

.mobile-nav-item.active {
  color: #38bdf8;
  font-weight: 700;
}

.mobile-nav-item.active i {
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Mobile Media Query Rules */
@media (max-width: 991.98px) {
  body {
    overflow-x: hidden !important;
  }

  .app-sidebar {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
    padding-bottom: 76px !important; /* Space for bottom nav */
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  .app-navbar {
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 60px;
    gap: 8px;
  }

  .page-title {
    font-size: 1.05rem !important;
  }

  .page-subtitle {
    font-size: 0.72rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .app-content {
    padding: 14px 10px !important;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .table-toolbar {
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .table-toolbar .d-flex {
    width: 100%;
  }

  .table-toolbar .input-group,
  .table-toolbar .form-select,
  .table-toolbar button {
    max-width: 100% !important;
    width: 100% !important;
  }

  .table-toolbar .view-mode-group {
    width: auto !important;
  }

  .table-toolbar .view-mode-group .btn {
    width: auto !important;
  }

  /* Modals on Mobile */
  .modal-dialog {
    margin: 8px auto !important;
    max-width: calc(100% - 16px) !important;
    width: auto !important;
  }

  .modal-realisasi-xl {
    width: calc(100vw - 16px) !important;
    max-width: 100vw !important;
    margin: 8px auto !important;
  }

  .modal-body {
    padding: 14px !important;
  }

  /* Responsive Text Break */
  .text-break-all {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}
