:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #14b8a6;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #fff;
  --bg: #f1f5f9;
  --border: #e2e8f0;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}
.app-navbar {
  background: linear-gradient(115deg, #f9f9f9, #036284);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.18);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.app-navbar .nav-link {
  color: rgba(249, 249, 250, 0.85);
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  padding: 8px 5px;
  white-space: nowrap;
  line-height: 1.2;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.navbar .nav-link:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.08);
}

.navbar .nav-link:active {
  transform: scale(0.96);
}

.navbar-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.app-navbar .navbar-nav .nav-item:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 18px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 5px;
}

.notification-dot {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 10px;
  border: 2px solid #0f766e;
}
.card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 5px 24px rgba(15, 23, 42, 0.06);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-radius: 18px 18px 0 0 !important;
}
.stat-card {
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  right: -20px;
  top: -20px;
  transition:
    transform 0.5s ease,
    background 0.3s ease;
  pointer-events: none;
}

/* Saat kursor diarahkan */
.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 76, 92, 0.16);
}

.stat-card:hover::after {
  transform: translate(-12px, 12px) scale(1.35) rotate(20deg);
  background: rgba(20, 184, 166, 0.18);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 22px;
}
.page-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.text-muted {
  color: var(--muted) !important;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.form-control,
.form-select {
  border-color: #cbd5e1;
  border-radius: 10px;
  padding: 0.66rem 0.8rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.15);
}
.table {
  --bs-table-bg: transparent;
}
.table thead th {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom-width: 1px;
}
.badge {
  font-weight: 600;
  padding: 0.48em 0.7em;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.auth-visual {
  background: linear-gradient(
      145deg,
      rgba(15, 118, 109, 0.45),
      rgba(15, 76, 92, 0.94)
    ),
     url("../Images/Bacgrounds/IEI_New_5.png")
      center/cover;
       background-position:
    center,
    center;

  background-repeat:
    no-repeat,
    no-repeat;

  background-size:
    cover,
    170% auto;
    min-height: 100vh;
  color: white;
  padding: 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-panel {
  background: #fff;
  padding: 6vw;
  display: flex;
  align-items: center;
}
.auth-panel-inner {
  width: 100%;
  max-width: 460px;
  margin: auto;
}
.timeline {
  position: relative;
  padding-left: 34px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #e2e8f0;
}
.timeline-item {
  position: relative;
  padding-bottom: 26px;
}
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 2px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #64748b;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.timeline-item.done .timeline-dot {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 1px #16a34a;
}
.timeline-item.failed .timeline-dot {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 0 1px #dc2626;
}
.timeline-item.current .timeline-dot {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 0 0 1px #f59e0b;
}
.job-card {
  transition: 0.2s transform, 0.2s box-shadow;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}
.app-footer {
  color: #64748b;
  font-size: 0.88rem;
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  font-weight: 800;
}
.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: #64748b;
}
.empty-state i {
  font-size: 54px;
  color: #94a3b8;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
}
.sticky-actions {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
@media (max-width: 991px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 24px;
  }
  .table-responsive {
    border-radius: 14px;
  }
}

.brand-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.rms-company-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e7eef0;
}

.rms-company-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 75px;
    object-fit: contain;
}

/* PAGINATION_SERVER_SIDE_V1022 */
.pagination-wrap {
  border-radius: 0 0 16px 16px;
}
.pagination-wrap .pagination-size-select {
  width: 78px;
  min-height: 32px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  font-size: 12px !important;
}
.pagination-wrap .page-link {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border-color: #dce6e8;
}
.pagination-wrap .page-item.active .page-link {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.pagination-wrap .page-item:not(.active):not(.disabled) .page-link:hover {
  color: var(--primary-dark);
  background: #ecf8f6;
  border-color: #b8d8d3;
}
.pagination-wrap .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
}
@media (max-width: 575.98px) {
  .pagination-wrap .pagination {
    justify-content: center;
  }
  .pagination-wrap .pagination-size-form {
    justify-content: space-between;
  }
}

/* PATCH_FREEZE_TABEL_KANDIDAT_V1_0_26_START */
/*
 * Desktop:
 * - Judul halaman tetap di atas.
 * - Form pencarian/filter tetap terlihat.
 * - Judul "Hasil Kandidat" dan pagination tetap terlihat.
 * - Hanya area baris tabel yang bergulir.
 */
@media (min-width: 992px) {
  body.candidate-freeze-active {
    overflow: hidden;
  }

  body.candidate-freeze-active .app-footer {
    display: none;
  }

  .candidate-freeze-page {
    height: var(--candidate-freeze-height, calc(100vh - 105px));
    min-height: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
  }

  .candidate-freeze-page .candidate-page-heading,
  .candidate-freeze-page .candidate-filter-card {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
  }

  .candidate-freeze-page .candidate-filter-card .card-body {
    padding: 16px 18px;
  }

  .candidate-freeze-page .candidate-filter-card .row {
    --bs-gutter-y: 0.75rem;
  }

  .candidate-freeze-page .candidate-results-card {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .candidate-freeze-page .candidate-results-card > .card-header {
    flex: 0 0 auto;
    padding: 14px 20px !important;
  }

  .candidate-freeze-page .candidate-results-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .candidate-freeze-page .candidate-table-scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    border-radius: 0;
    scrollbar-gutter: stable;
  }

  .candidate-freeze-page .candidate-table-scroll table {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  .candidate-freeze-page .candidate-table-scroll thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 30;
    background: #f7fafb !important;
    box-shadow: inset 0 -1px 0 #dfe8eb;
  }

  .candidate-freeze-page .candidate-table-scroll tbody tr:last-child td {
    border-bottom: 0;
  }

  .candidate-freeze-page .candidate-results-body > .empty-state {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .candidate-freeze-page .candidate-results-body > .pagination-wrap {
    flex: 0 0 auto;
    margin-top: 0 !important;
    border-top: 1px solid #e2e8f0;
    background: #fff;
  }
}

/* Tablet dan HP kembali ke alur halaman normal agar nyaman disentuh. */
@media (max-width: 991.98px) {
  body.candidate-freeze-active {
    overflow: auto;
  }

  .candidate-freeze-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .candidate-freeze-page .candidate-table-scroll {
    max-height: 58vh;
    overflow: auto;
    border-radius: 0 0 14px 14px;
  }

  .candidate-freeze-page .candidate-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f7fafb;
  }
}
/* PATCH_FREEZE_TABEL_KANDIDAT_V1_0_26_END */

/* PATCH_FREEZE_FORMS_SCHEDULE_V1_0_30_R2_START */
/*
 * Desktop: judul dan filter tetap diam, area tabel memiliki viewport sendiri,
 * header kolom tetap terlihat, dan pagination tetap berada di bawah tabel.
 */
@media (min-width: 992px) {
  body.rms-list-freeze-active {
    overflow: hidden !important;
  }

  body.rms-list-freeze-active .app-footer {
    display: none !important;
  }

  .rms-freeze-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
  }

  .rms-freeze-page .rms-freeze-heading,
  .rms-freeze-page .rms-freeze-filter {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
  }

  .rms-freeze-page .rms-freeze-filter .card-body {
    padding: 14px 18px;
  }

  .rms-freeze-page .rms-freeze-results {
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: 0 !important;
    overflow: hidden;
  }

  .rms-freeze-page .rms-freeze-results-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .rms-freeze-page .rms-freeze-table {
    position: relative;
    flex: 0 0 auto;
    min-height: 220px;
    overflow-x: auto !important;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
    border-top: 2px solid var(--primary);
    border-radius: 0;
    background: #fff;
  }

  .rms-freeze-page .rms-freeze-table table {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  .rms-freeze-page .rms-freeze-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 40;
    background: #f7fafb !important;
    box-shadow: inset 0 -1px 0 #dfe8eb;
  }

  .rms-freeze-page .rms-freeze-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .rms-freeze-page .rms-freeze-results-body > .pagination-wrap {
    flex: 0 0 auto;
    margin-top: 0 !important;
    border-top: 1px solid #e2e8f0;
    background: #fff;
  }
}

@media (max-width: 991.98px) {
  body.rms-list-freeze-active {
    overflow: auto !important;
  }

  .rms-freeze-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .rms-freeze-page .rms-freeze-table {
    max-height: 58vh;
    overflow: auto;
    border-top: 2px solid var(--primary);
    border-radius: 0 0 14px 14px;
  }

  .rms-freeze-page .rms-freeze-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f7fafb;
  }
}
/* PATCH_FREEZE_FORMS_SCHEDULE_V1_0_30_R2_END */

/* PATCH_CANDIDATE_EXPLORER_V1_0_33_START */
.candidate-filter-card {
  overflow: hidden;
}

.candidate-filter-toolbar {
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.candidate-filter-card.is-collapsed .candidate-filter-toolbar {
  border-bottom: 0;
}

.candidate-filter-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.candidate-filter-toggle-chevron {
  transition: transform 0.2s ease;
}

.candidate-filter-card.is-collapsed .candidate-filter-toggle-chevron {
  transform: rotate(180deg);
}

.candidate-active-filters {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.candidate-filter-summary-label {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.candidate-filter-empty-summary {
  color: var(--muted);
  font-size: 0.84rem;
}

.candidate-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  padding: 5px 9px;
  border: 1px solid #dce7e8;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-filter-chip:hover {
  color: var(--primary-dark);
  border-color: #9ccdc5;
  background: #ecf8f6;
}

.candidate-filter-chip span {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 0.8;
}

.candidate-filter-reset {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.candidate-filter-reset:hover {
  color: var(--primary-dark);
}

.candidate-filter-panel {
  display: block;
}

.candidate-filter-card.is-collapsed .candidate-filter-panel {
  display: none;
}

.candidate-filter-card .candidate-filter-panel .card-body {
  padding: 12px 14px !important;
}

.candidate-filter-card .form-control,
.candidate-filter-card .form-select {
  min-height: 42px;
  padding-top: 0.52rem;
  padding-bottom: 0.52rem;
  font-size: 0.9rem;
}

.candidate-priority-check {
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.87rem;
  white-space: nowrap;
}

.candidate-priority-check .form-check-input {
  margin: 0;
  flex: 0 0 auto;
}

.candidate-age-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.candidate-age-range > span {
  color: var(--muted);
  font-weight: 700;
}

.candidate-explorer-table {
  min-width: 1180px;
}

.candidate-explorer-table .candidate-sticky-left {
  position: sticky !important;
  left: 0;
  min-width: 300px;
  width: 300px;
  background: #fff !important;
  box-shadow: 8px 0 14px -14px rgba(15, 23, 42, 0.75);
}

.candidate-explorer-table .candidate-sticky-right {
  position: sticky !important;
  right: 0;
  min-width: 105px;
  width: 105px;
  background: #fff !important;
  box-shadow: -8px 0 14px -14px rgba(15, 23, 42, 0.75);
}

.candidate-explorer-table thead .candidate-sticky-left,
.candidate-explorer-table thead .candidate-sticky-right {
  z-index: 70 !important;
  background: #f7fafb !important;
}

.candidate-explorer-table tbody .candidate-sticky-left,
.candidate-explorer-table tbody .candidate-sticky-right {
  z-index: 12;
}

.candidate-explorer-table tbody tr:hover td,
.candidate-explorer-table tbody tr:hover .candidate-sticky-left,
.candidate-explorer-table tbody tr:hover .candidate-sticky-right {
  background: #f8fcfb !important;
}

@media (min-width: 992px) {
  .candidate-freeze-page {
    min-height: 440px !important;
    gap: 12px !important;
  }

  .candidate-freeze-page .candidate-page-heading {
    margin-bottom: 0 !important;
  }

  .candidate-freeze-page .candidate-page-heading .page-title {
    margin-bottom: 0.15rem !important;
  }

  .candidate-freeze-page .candidate-filter-card {
    margin-bottom: 0 !important;
  }

  .candidate-freeze-page .candidate-results-card > .card-header {
    padding: 12px 18px !important;
  }
}

@media (max-width: 991.98px) {
  .candidate-filter-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .candidate-active-filters {
    order: 3;
    flex-basis: 100%;
  }

  .candidate-filter-reset {
    margin-left: auto;
  }

  .candidate-explorer-table .candidate-sticky-left,
  .candidate-explorer-table .candidate-sticky-right {
    position: static !important;
    min-width: 0;
    width: auto;
    box-shadow: none;
  }
}

@media (max-width: 575.98px) {
  .candidate-filter-toolbar {
    padding: 10px;
  }

  .candidate-filter-toggle {
    width: 100%;
  }

  .candidate-filter-reset {
    margin-left: 0;
  }

  .candidate-filter-chip {
    max-width: 100%;
  }
}
/* PATCH_CANDIDATE_EXPLORER_V1_0_33_END */
/* NAVBAR RESPONSIVE DESKTOP - START */
@media (min-width: 992px) {
  .app-navbar .container-fluid {
    flex-wrap: nowrap;
  }

  .app-navbar .navbar-brand {
    flex: 0 0 auto;
    margin-right: 12px;
  }

  .app-navbar .navbar-collapse {
    min-width: 0;
    flex-wrap: nowrap;
  }

  .app-navbar .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
  }

  .app-navbar .navbar-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .app-navbar .navbar-nav .nav-link {
    white-space: nowrap;
  }

  .app-navbar .navbar-collapse > .d-flex {
    flex: 0 0 auto;
    margin-left: 10px;
  }
}

/* Laptop atau layar desktop menengah */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .brand-logo {
    width: 120px;
    height: 44px;
  }

  .app-navbar .navbar-brand {
    margin-right: 6px;
  }

  .app-navbar .navbar-nav .nav-link {
    font-size: 11.5px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .app-navbar .navbar-nav .nav-item:not(:last-child)::after {
    margin-left: 3px;
    margin-right: 3px;
  }

  .app-navbar .navbar-collapse > .d-flex {
    gap: 8px !important;
    margin-left: 6px;
  }

  .app-navbar .dropdown .btn {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Desktop besar */
@media (min-width: 1400px) {
  .brand-logo {
    width: 150px;
    height: 48px;
  }

  .app-navbar .navbar-nav .nav-link {
    font-size: 13px;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* HP dan tablet */
@media (max-width: 991.98px) {
  .brand-logo {
    width: 145px;
    height: 46px;
  }

  .app-navbar .navbar-nav .nav-item {
    display: block;
  }

  .app-navbar .navbar-nav .nav-item::after {
    display: none;
  }

  .app-navbar .navbar-nav .nav-link {
    white-space: normal;
    padding: 9px 4px;
  }
}
/* NAVBAR RESPONSIVE DESKTOP - END */

/* SHADOW TEKS NAVBAR SAAT MOBILE */
@media (max-width: 991.98px) {
  .app-navbar .navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 600;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.65),
      0 2px 5px rgba(0, 0, 0, 0.35);
  }

  .app-navbar .navbar-nav .nav-link:hover,
  .app-navbar .navbar-nav .nav-link:focus,
  .app-navbar .navbar-nav .nav-link.active {
    color: #ffffff;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.85),
      0 3px 8px rgba(0, 0, 0, 0.55);
  }
}

/* PATCH_NAVBAR_LAYOUT_V1_0_39_START */
/* Navbar konsisten untuk Super Admin, HRD, HRD Jakarta, User Interviewer, Plant GM, dan Kandidat. */
.app-navbar {
  min-height: 72px;
}

.app-navbar .container-fluid {
  gap: 12px;
}

.app-navbar .navbar-brand {
  flex: 0 0 auto;
  margin-right: 4px;
}

.app-navbar .brand-logo {
  display: block;
  width: clamp(118px, 9.4vw, 158px);
  height: 58px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.app-navbar .navbar-collapse {
  min-width: 0;
}

.app-navbar .navbar-nav {
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.app-navbar .navbar-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* Separator lama dimatikan; jarak dan bentuk item diatur langsung pada link. */
.app-navbar .navbar-nav .nav-item::after {
  display: none !important;
}

.app-navbar .navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 34, 48, 0.30);
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.app-navbar .navbar-nav .nav-link:hover,
.app-navbar .navbar-nav .nav-link:focus-visible {
  color: #fff;
  background: rgba(0, 44, 67, 0.44);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 5px 14px rgba(0, 39, 56, 0.20);
  transform: translateY(-1px);
}

.app-navbar .navbar-nav .nav-link.active,
.app-navbar .navbar-nav .nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(0, 35, 56, 0.64);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 6px 16px rgba(0, 31, 47, 0.24),
    inset 0 -2px 0 rgba(255, 255, 255, 0.34);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transform: none;
}

.app-navbar .navbar-collapse > .d-flex {
  flex: 0 0 auto;
  margin-left: 8px;
}

.app-navbar .dropdown .btn {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Desktop: menu tetap satu baris dan dapat digeser horizontal bila role memiliki banyak menu. */
@media (min-width: 992px) {
  .app-navbar .container-fluid,
  .app-navbar .navbar-collapse {
    flex-wrap: nowrap;
  }

  .app-navbar .navbar-nav {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
    padding: 5px 2px;
  }

  .app-navbar .navbar-nav::-webkit-scrollbar {
    display: none;
  }
}

/* Laptop menengah: ukuran dibuat lebih kompak agar HRD dan Admin tetap rapi. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .app-navbar .container-fluid {
    gap: 7px;
  }

  .app-navbar .brand-logo {
    width: 116px;
    height: 52px;
  }

  .app-navbar .navbar-nav {
    gap: 2px;
  }

  .app-navbar .navbar-nav .nav-link {
    min-height: 38px;
    padding: 8px 8px;
    font-size: 11.5px;
  }

  .app-navbar .navbar-collapse > .d-flex {
    gap: 8px !important;
    margin-left: 5px;
  }

  .app-navbar .dropdown .btn {
    max-width: 145px;
  }
}

/* Mobile/tablet: menu vertikal, penuh, kontras, dan mudah disentuh. */
@media (max-width: 991.98px) {
  .app-navbar {
    min-height: 64px;
  }

  .app-navbar .brand-logo {
    width: 132px;
    height: 50px;
  }

  .app-navbar .navbar-collapse {
    margin-top: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0, 55, 78, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .app-navbar .navbar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 100%;
  }

  .app-navbar .navbar-nav .nav-item {
    display: block;
    width: 100%;
  }

  .app-navbar .navbar-nav .nav-link {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 11px 13px;
    color: #fff;
    font-size: 14px;
    text-align: left;
    white-space: normal;
    background: rgba(0, 48, 69, 0.18);
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.72),
      0 2px 5px rgba(0, 0, 0, 0.38);
  }

  .app-navbar .navbar-nav .nav-link:hover,
  .app-navbar .navbar-nav .nav-link:focus-visible,
  .app-navbar .navbar-nav .nav-link.active,
  .app-navbar .navbar-nav .nav-link[aria-current="page"] {
    background: rgba(0, 35, 56, 0.58);
    box-shadow: 0 5px 12px rgba(0, 26, 39, 0.22);
    transform: none;
  }

  .app-navbar .navbar-collapse > .d-flex {
    width: 100%;
    margin: 10px 0 0;
    padding-top: 10px;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .app-navbar .dropdown .btn {
    max-width: min(230px, 72vw);
  }
}
/* PATCH_NAVBAR_LAYOUT_V1_0_39_END */
