/**
 * UI padat & konsisten untuk E-Arsip (AdminLTE 3 / Bootstrap 4)
 * Aktif ketika body memiliki kelas .app-ui-compact
 */
.app-ui-compact {
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  color: #343a40;
}

/* Navbar atas */
.app-ui-compact.layout-navbar-fixed .main-header.navbar {
  min-height: 2.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.app-ui-compact.layout-navbar-fixed .main-header .nav-link {
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
}

/* Sidebar */
.app-ui-compact .main-sidebar.elevation-4 {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 2px 0 12px rgba(0, 0, 0, 0.06) !important;
}
.app-ui-compact .brand-link {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
  font-size: 0.9375rem;
}
.app-ui-compact .nav-sidebar > .nav-item > .nav-link {
  padding: 0.45rem 1rem !important;
  border-radius: 0.28rem;
  margin: 0.1rem 0.45rem;
  font-size: 0.875rem;
}
.app-ui-compact .nav-sidebar .nav-icon {
  font-size: 0.875rem !important;
  opacity: 0.9;
}

/* Konten utama */
.app-ui-compact .content-wrapper > .content-header {
  padding: 0.55rem 0.85rem !important;
  background: rgba(248, 249, 250, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.app-ui-compact .content-wrapper .content-header .row {
  align-items: center;
}
.app-ui-compact .content-wrapper .content-header .row.mb-2 {
  margin-bottom: 0 !important;
}
.app-ui-compact .content-wrapper .content-header h1.m-0,
.app-ui-compact .compact-page-heading {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #1b2a3e !important;
  line-height: 1.3 !important;
}
.app-ui-compact .breadcrumb {
  padding: 0.2rem 0 !important;
  margin-bottom: 0 !important;
  font-size: 0.8rem !important;
  background: transparent !important;
}
.app-ui-compact .breadcrumb-item + .breadcrumb-item::before {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.app-ui-compact .content-wrapper > .content {
  padding: 0.65rem 0.85rem 0.9rem !important;
}
@media (min-width: 768px) {
  .app-ui-compact .content-wrapper > .content {
    padding: 0.75rem 1.1rem 1rem !important;
  }
}

/* Section / kontainer di dalam konten */
.app-ui-compact section.content > .container-fluid,
.app-ui-compact section.content > .container {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
/* Beberapa halaman (mis. Setting) langsung pakai container tanpa <section.content> */
.app-ui-compact .content-wrapper > .container {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.5rem !important;
}


/* Kartu */
.app-ui-compact .card {
  margin-bottom: 0.85rem !important;
  border-radius: 0.375rem !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0.055rem 0.2rem rgba(0, 0, 0, 0.04) !important;
}
.app-ui-compact .card-header {
  padding: 0.5rem 0.85rem !important;
  font-size: 0.9375rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}
.app-ui-compact .card-body {
  padding: 0.65rem 0.85rem !important;
}
@media (min-width: 992px) {
  .app-ui-compact .card-body {
    padding: 0.75rem 1rem !important;
  }
}
.app-ui-compact .card-title,
.app-ui-compact h3.card-title {
  margin-bottom: 0.45rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

/* Tab */
.app-ui-compact .nav-tabs .nav-link {
  padding: 0.42rem 0.72rem !important;
  font-size: 0.82rem !important;
}

/* Tombol utama di area kartu/konten (tidak mempengaruhi modal besar) */
.app-ui-compact .content-wrapper .btn-sm,
.app-ui-compact .card .btn-group-sm > .btn,
.app-ui-compact .card-tools .btn {
  font-size: 0.8rem !important;
  padding: 0.25rem 0.52rem !important;
  border-radius: 0.25rem !important;
}

/* Form */
.app-ui-compact .form-group label {
  font-size: 0.8075rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.28rem;
}
.app-ui-compact .content .form-group {
  margin-bottom: 0.65rem !important;
}
.app-ui-compact .form-control,
.app-ui-compact .custom-select {
  border-radius: 0.28rem !important;
}

/* Tabel di dalam aplikasi admin */
.app-ui-compact .table:not(.datatable) thead th {
  border-top-width: 0;
  padding: 0.45rem 0.55rem !important;
}
.app-ui-compact .table-bordered th,
.app-ui-compact .table-bordered td {
  padding: 0.4rem 0.5rem !important;
}

/* DataTables Bootstrap 4 */
.app-ui-compact .dataTables_wrapper .dataTables_length,
.app-ui-compact .dataTables_wrapper .dataTables_filter,
.app-ui-compact .dataTables_wrapper .dataTables_info {
  font-size: 0.82rem !important;
}
.app-ui-compact .dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.22rem 0.45rem !important;
}

/* Footer */
.app-ui-compact .main-footer {
  padding: 0.65rem 0.95rem !important;
  font-size: 0.8rem !important;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

/* Modal login portal (biar selaras dengan modul utama) */
.app-ui-compact.layout-top-nav .login-modal__hero {
  padding: 1rem 1.1rem 0.9rem !important;
}
.app-ui-compact.layout-top-nav .login-modal__body {
  padding: 1rem 1.1rem 0.95rem !important;
}
.app-ui-compact.layout-top-nav .navbar {
  padding: 0.35rem 0.75rem !important;
}
.app-ui-compact.layout-top-nav .navbar-brand {
  font-size: 0.9675rem;
}

/* Portal beranda (home-portal) */
.app-ui-compact .content-wrapper.home-portal.bg-light > .content-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0.25rem 0 0 !important;
}
.app-ui-compact .content-wrapper.home-portal.bg-light > .content-header .home-portal-crumb {
  font-size: 0.78rem !important;
  padding: 0.15rem 0 !important;
}
.app-ui-compact .content-wrapper.home-portal.bg-light section.content.pt-0 {
  padding-top: 0 !important;
  padding-bottom: 0.85rem !important;
}
.app-ui-compact .content-wrapper.home-portal.bg-light section.content > .container {
  max-width: 1080px;
}

