/* KPRI v2.3.2 — Navigation & Usability Improvement
   Semua perubahan navigasi ditempatkan di modul terpisah agar app.css stabil tidak disentuh. */

.accurate-shell:not(.vendor-shell) .accurate-iconbar {
  width: 224px;
  padding: 10px 8px 8px;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width .2s ease;
}

.accurate-shell:not(.vendor-shell) .accurate-main {
  margin-left: 224px;
  width: calc(100% - 224px);
  transition: margin-left .2s ease, width .2s ease;
}

.sidebar-toggle,
.accurate-shell:not(.vendor-shell) .iconbar-btn {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  color: rgba(255,255,255,.88);
  background: transparent;
  text-align: left;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sidebar-toggle {
  margin-bottom: 10px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.sidebar-toggle:hover,
.accurate-shell:not(.vendor-shell) .iconbar-btn:hover,
.accurate-shell:not(.vendor-shell) .iconbar-btn.active {
  background: rgba(255,255,255,.13);
  color: #fff;
}

.accurate-shell:not(.vendor-shell) .iconbar-btn.active {
  border-left-color: #62d84a;
}

.sidebar-toggle i,
.accurate-shell:not(.vendor-shell) .iconbar-btn > i {
  width: 24px;
  flex: 0 0 24px;
  font-size: 1.08rem;
  text-align: center;
}

.iconbar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .84rem;
  font-weight: 600;
}

.sidebar-collapsed .accurate-iconbar {
  width: 55px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
  align-items: center !important;
}

.sidebar-collapsed .accurate-main {
  margin-left: 55px !important;
  width: calc(100% - 55px) !important;
}

.sidebar-collapsed .sidebar-toggle,
.sidebar-collapsed .iconbar-btn {
  width: 45px !important;
  padding: 0 !important;
  justify-content: center !important;
  gap: 0 !important;
}

.sidebar-collapsed .iconbar-label,
.sidebar-collapsed .sidebar-toggle span {
  display: none;
}

.sidebar-collapsed .sidebar-toggle i,
.sidebar-collapsed .iconbar-btn > i {
  width: auto;
  flex-basis: auto;
}

/* Launcher yang lebih ringkas dan dikelompokkan sesuai pekerjaan. */
.launcher-panel {
  width: min(720px, calc(100vw - 96px));
  padding: 16px 16px 20px;
  border-radius: 10px;
}

.launcher-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #344054;
}

.launcher-line {
  margin-bottom: 12px;
}

.launcher-section + .launcher-section {
  margin-top: 18px;
}

.launcher-section-title {
  margin: 0 0 8px;
  color: #667085;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.launcher-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 8px;
}

.launcher-tile {
  min-height: 82px;
  padding: 11px 12px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 11px;
}

.launcher-tile i {
  width: 34px;
  flex: 0 0 34px;
  margin: 0;
  font-size: 1.45rem;
  text-align: center;
}

.launcher-tile strong,
.launcher-tile small {
  display: block;
}

.launcher-tile strong {
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
}

.launcher-tile small {
  margin-top: 3px;
  color: #667085;
  font-size: .68rem;
  line-height: 1.25;
}

.launcher-item-copy {
  min-width: 0;
}

/* Navbar lebih tenang. */
.header-actions {
  gap: 8px;
}

.license-package-badge .license-label {
  display: none;
}

.demo-active-indicator {
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(22,163,74,.88);
  color: #fff;
  padding: 4px 9px;
  font-size: .72rem;
  font-weight: 700;
}

/* Menu tab memiliki aksi bersih-bersih. */
.tab-overflow-tools {
  padding: 4px 6px;
  border-bottom: 1px solid #eaecf0;
}

.tab-overflow-tools .btn {
  width: 100%;
  font-size: .72rem;
}

/* Dashboard: aksi utama dan pekerjaan yang perlu ditindaklanjuti. */
.dashboard-priority-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 12px;
  margin-top: 12px;
}

.dashboard-priority-card {
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(16,24,40,.05);
}

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

.dashboard-priority-head strong {
  display: block;
  color: #344054;
  font-size: .95rem;
}

.dashboard-priority-head small {
  color: #667085;
  font-size: .72rem;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

.dashboard-quick-action {
  min-height: 88px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #f8fafc;
  color: #344054;
  padding: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.dashboard-quick-action:hover {
  transform: translateY(-1px);
  border-color: #7aa7e8;
  background: #eef5ff;
  color: #173f75;
}

.dashboard-quick-action i {
  font-size: 1.35rem;
}

.dashboard-quick-action strong {
  font-size: .78rem;
  line-height: 1.2;
}

.dashboard-followup-list {
  display: grid;
  gap: 7px;
}

.dashboard-followup-item {
  min-height: 48px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #344054;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-followup-item:hover {
  border-color: #f0a0b8;
  background: #fff7f9;
  color: #8a1640;
}

.dashboard-followup-item > i {
  width: 28px;
  font-size: 1.05rem;
  text-align: center;
}

.dashboard-followup-item span {
  min-width: 0;
  flex: 1;
}

.dashboard-followup-item strong,
.dashboard-followup-item small {
  display: block;
}

.dashboard-followup-item strong {
  font-size: .76rem;
}

.dashboard-followup-item small {
  color: #667085;
  font-size: .66rem;
}

.dashboard-followup-count {
  min-width: 28px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  padding: 3px 7px;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
}

/* Pusat data aplikasi. */
.data-app-status {
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.data-app-status.is-active {
  border-color: #86d39e;
  background: #f2fbf5;
}

.data-app-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef4ff;
  color: #245ca6;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
}

.data-app-status.is-active .data-app-status-icon {
  background: #dcf6e4;
  color: #15803d;
}

.data-app-status-copy {
  min-width: 0;
  flex: 1;
}

.data-app-status-copy span,
.data-app-status-copy strong,
.data-app-status-copy p {
  display: block;
}

.data-app-status-copy span {
  color: #667085;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.data-app-status-copy strong {
  color: #344054;
  font-size: 1rem;
}

.data-app-status-copy p {
  margin: 2px 0 0;
  color: #667085;
  font-size: .76rem;
}

.data-app-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.data-app-summary-grid > div {
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  padding: 10px;
}

.data-app-summary-grid span,
.data-app-summary-grid strong {
  display: block;
}

.data-app-summary-grid span {
  color: #667085;
  font-size: .68rem;
}

.data-app-summary-grid strong {
  color: #344054;
  font-size: 1.05rem;
}

.data-app-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.data-app-action {
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.data-app-action:hover {
  border-color: #7aa7e8;
  background: #f8fbff;
  color: #173f75;
}

.data-app-action.danger:hover {
  border-color: #e99999;
  background: #fff6f6;
  color: #991b1b;
}

.data-app-action > i:first-child {
  width: 36px;
  font-size: 1.35rem;
  text-align: center;
}

.data-app-action span {
  min-width: 0;
  flex: 1;
}

.data-app-action strong,
.data-app-action small {
  display: block;
}

.data-app-action strong {
  font-size: .84rem;
}

.data-app-action small {
  margin-top: 3px;
  color: #667085;
  font-size: .7rem;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .dashboard-priority-grid {
    grid-template-columns: 1fr;
  }
  .company-chip {
    display: none;
  }
}

@media (max-width: 820px) {
  .launcher-panel {
    width: calc(100vw - 70px);
  }
  .launcher-grid,
  .data-app-action-grid {
    grid-template-columns: 1fr 1fr;
  }
  .data-app-summary-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

@media (max-width: 560px) {
  .launcher-grid,
  .data-app-action-grid,
  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }
  .data-app-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .data-app-status-action {
    width: 100%;
  }
  .data-app-status-action .btn,
  .data-app-status-action form,
  .data-app-status-action button {
    width: 100%;
  }
  .demo-active-indicator span {
    display: none;
  }
}
