/* ==========================================================
   SATPAM DASHBOARD
========================================================== */

body {
  background: url('../img/bg-app.png') center center / cover fixed no-repeat;
  font-family: 'Poppins', sans-serif;
}

.satpam-dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================
   NAVBAR SATPAM
========================================================== */

.navbar-satpam {
  background: #fff !important;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid #eef2f7;
}

.navbar-satpam .container-fluid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.btn-menu-toggle {
  background: transparent;
  border: none;
  color: #1e293b;
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: 0.2s;
}

.btn-menu-toggle:hover {
  background: #f1f5f9;
  color: #004aad;
}

.navbar-brand-wrap {
  min-width: 0;
}

.logo-bnn {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.title-app {
  font-size: 16px;
  font-weight: 700;
  color: #004aad;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.subtitle-app {
  font-size: 12px;
  font-weight: 600;
  color: #004aad;
  opacity: 0.85;
}

.navbar-profile {
  gap: 10px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 20px;
}

.profile-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
  white-space: nowrap;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  border-radius: 12px;
  background: #e8f1ff;
  color: #004aad;
  font-size: 24px;
  overflow: hidden;
  position: relative;
}

.brand-logo img {
  position: absolute;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.brand-logo i {
  position: absolute;
}

.btn-menu-toggle.is-active {
  background: #e8f1ff;
  color: #004aad;
  transform: rotate(90deg);
}

.navbar-page-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: #111827;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* ==========================================================
   INPUT INVENTARIS
========================================================== */
.inventaris-page {
  max-width: 1180px;
  margin: 0 auto;
}

.inventaris-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, .06);
}

.inventaris-card .card-body {
  padding: 26px 28px;
}

.inventaris-heading {
  color: #004aad;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.inventaris-heading::after {
  content: '';
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 12px;
  background: #0d5be1;
  border-radius: 4px;
}

.inventaris-card .form-label {
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
}

.inventaris-card .form-control,
.inventaris-card .form-select {
  min-height: 50px;
  border-color: #cfd6e1;
  border-radius: 7px;
  color: #475569;
}

.inventaris-card .form-control:focus,
.inventaris-card .form-select:focus {
  border-color: #0d5be1;
  box-shadow: 0 0 0 .2rem rgba(13, 91, 225, .12);
}

.activity-info {
  display: flex;
  align-items: center;
  background: #f8fafc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.activity-textarea {
  min-height: 124px;
  resize: vertical;
  padding: 14px 16px;
}

.activity-description {
  min-width: 290px;
  line-height: 1.55;
}

.report-table th {
  white-space: nowrap;
}

.report-description {
  min-width: 280px;
  line-height: 1.5;
}

.report-type {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.report-type-inventaris {
  background: #dcf7e7;
  color: #15803d;
}

.report-type-uraian {
  background: #e3edff;
  color: #0756d9;
}

.report-status {
  display: inline-block;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.report-status-valid {
  background: #dcf7e7;
  color: #15803d;
}

.report-status-pending {
  background: #fff3d6;
  color: #b45309;
}

.report-status-draft {
  background: #e3edff;
  color: #0756d9;
}

.detail-title {
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
}

.detail-label {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 5px;
}

.detail-value {
  color: #1e293b;
  font-size: 15px;
  font-weight: 700;
}

.report-actions {
  white-space: nowrap;
}

.report-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0756d9;
  font-size: 20px;
  text-decoration: none;
  padding: 4px 7px;
}

.report-actions a:hover {
  color: #0045b5;
  transform: translateY(-1px);
}

.pagination .page-link {
  color: #0756d9;
  border-color: #dbe4f3;
}

.pagination .page-item.active .page-link {
  background: #0756d9;
  border-color: #0756d9;
}

.btn-inventaris-primary {
  border: 0;
  border-radius: 7px;
  background: #0756d9;
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
}

.btn-inventaris-primary:hover {
  background: #0045b5;
  color: #fff;
}

.btn-inventaris-outline {
  border-color: #cbd5e1;
  font-weight: 600;
  padding: 11px 20px;
}

.inventory-table {
  border: 1px solid #e5eaf2;
  border-radius: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #eef2f7;
}

.inventory-table table {
  margin: 0;
}

.inventory-table::-webkit-scrollbar {
  height: 8px;
}

.inventory-table::-webkit-scrollbar-track {
  background: #eef2f7;
}

.inventory-table::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.mobile-scroll-hint {
  display: none;
  color: #64748b;
  font-size: 12px;
  padding-top: 9px;
}

.mobile-table-scrollbar {
  display: none;
}

.activity-form-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}

.activity-form-meta small:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inventory-table thead th {
  background: #f1f5ff;
  border-bottom: 0;
  color: #1e293b;
  font-size: 14px;
  padding: 17px 18px;
}

.inventory-table tbody td {
  padding: 16px 18px;
  vertical-align: middle;
  color: #334155;
}

.inventory-table tbody tr:last-child td {
  border-bottom: 0;
}

.inventory-badge {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 7px;
  background: #e0f7e9;
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
}

.inventory-actions .btn {
  border: 0;
  padding: 4px 7px;
  font-size: 19px;
  line-height: 1;
}

.inventory-actions .btn-edit {
  color: #0756d9;
}

.inventory-actions .btn-delete {
  color: #dc2626;
}

@media (max-width: 576px) {
  .navbar-page-title {
    font-size: 17px;
  }

  .inventaris-card .card-body {
    padding: 20px 16px;
  }

  .mobile-scroll-table {
    width: 100%;
    max-width: 100%;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
  }

  .mobile-scroll-table > table {
    width: max-content !important;
  }

  .mobile-scroll-table:not(.activity-list-table):not(.report-list-table) > table {
    min-width: 760px;
  }

  .activity-list-table > table {
    min-width: 920px;
  }

  .report-list-table > table {
    min-width: 900px;
  }

  .admin-detail-table > table {
    min-width: 1020px;
  }

  .report-detail-table-card > .mobile-table-scrollbar {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .mobile-scroll-hint {
    display: block;
  }

  .mobile-table-scrollbar {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 24px;
    margin: 8px 0 0;
    cursor: grab;
    accent-color: #2d5bff;
  }

  .mobile-table-scrollbar::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
  }

  .mobile-table-scrollbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 88px;
    height: 12px;
    margin-top: 0;
    border: 0;
    border-radius: 999px;
    background: #2d5bff;
  }

  .mobile-table-scrollbar::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
  }

  .mobile-table-scrollbar::-moz-range-progress {
    height: 12px;
    border-radius: 999px;
    background: #2d5bff;
  }

  .mobile-table-scrollbar::-moz-range-thumb {
    width: 88px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: #2d5bff;
  }

  .attachment-help {
    margin-top: 7px;
    line-height: 1.45;
  }

  .activity-form-meta {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
  }

  .inventaris-heading {
    font-size: 17px;
  }
}

/* ==========================================================
   MAIN CONTENT
========================================================== */

.main-content {
  margin-top: 0;
  padding: 28px 24px 40px;
}

/* ==========================================================
   DASHBOARD HEADER
========================================================== */

.dashboard-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.dashboard-sub {
  font-size: 17px;
  color: #64748b;
  margin: 0;
}

.dashboard-sub strong {
  color: #334155;
}

.btn-tambah {
  background: #004aad;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s;
  white-space: nowrap;
}

.btn-tambah:hover {
  background: #003d8f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 74, 173, 0.25);
}

/* ==========================================================
   MENU CARDS
========================================================== */

.card-menu {
  border: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: 0.25s;
  cursor: pointer;
  height: 100%;
}

.card-menu:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 74, 173, 0.12);
}

.card-menu .card-body {
  padding: 22px 24px;
}

.menu-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #e8f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon-wrap i {
  font-size: 26px;
  color: #004aad;
}

.menu-title {
  font-weight: 700;
  font-size: 15px;
  color: #004aad;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.menu-desc {
  color: #94a3b8;
  font-size: 13px;
}

.menu-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #004aad;
  font-size: 18px;
}

/* ==========================================================
   SECTION TITLE
========================================================== */

.section-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 18px;
}

/* ==========================================================
   INFO CARDS (Informasi Shift)
========================================================== */

.info-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  height: 100%;
  text-align: center;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid #004aad;
  color: #004aad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.info-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.info-value {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 2px;
}

.info-sub {
  font-size: 12px;
  color: #64748b;
}

.info-link {
  font-size: 12px;
  color: #004aad !important;
  font-weight: 600;
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

.badge-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.badge-draft {
  background: #fef3c7;
  color: #b45309;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

/* ==========================================================
   PROGRESS CARD
========================================================== */

.progress-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.progress-card .card-body {
  padding: 24px;
}

.progress-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #004aad;
  font-size: 20px;
  flex-shrink: 0;
}

.progress-label {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
}

.progress-desc {
  font-size: 12px;
  color: #94a3b8;
}

.badge-selesai {
  min-width: 104px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.badge-selesai.done {
  background: #dcfce7;
  color: #15803d;
}

.badge-selesai.pending {
  background: #f1f5f9;
  color: #64748b;
}

.progress {
  height: 10px;
  border-radius: 10px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-bar {
  background: #004aad;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.progress-percent {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #004aad;
  margin-top: 6px;
}

/* ==========================================================
   FOOTER
========================================================== */

.dashboard-footer {
  font-size: 12px;
  color: #94a3b8;
  padding-top: 20px;
}

/* ==========================================================
   MODAL ANGGOTA
========================================================== */

.anggota-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-weight: 500;
}

.anggota-list li:last-child {
  border-bottom: none;
}

.anggota-list i {
  color: #004aad;
  margin-right: 8px;
}

/* ==========================================================
   LEGACY / SHARED
========================================================== */

.card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #edf2f7;
  font-weight: 600;
  padding: 18px 20px;
}

.card-body {
  padding: 20px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
  .main-content {
    padding: 22px 18px 32px;
  }
}

@media (max-width: 768px) {
  .dashboard-title {
    font-size: 28px;
  }

  .title-app {
    font-size: 13px;
  }

  .subtitle-app {
    font-size: 10px;
  }

  .logo-bnn {
    width: 40px;
    height: 40px;
  }

  .profile-name {
    display: none;
  }

  .btn-tambah {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 16px 14px 28px;
  }

  .card-menu .card-body {
    padding: 16px;
  }

  .menu-icon-wrap {
    width: 48px;
    height: 48px;
  }

  .menu-title {
    font-size: 13px;
  }
}
