:root {
  --bs-primary: #1E90FF;
  --bs-primary-rgb: 30, 144, 255;
  --bs-link-color: #1E90FF;
  --bs-link-hover-color: #EB6081;
  --kerjawan-blue: #1E90FF;
  --kerjawan-pink: #EB6081;
  --kerjawan-ink: #1f2a44;
}

.text-primary,
.app-brand .app-brand-text,
.menu .app-brand.demo .app-brand-text,
.menu-item.active > .menu-link,
.menu-item.open > .menu-link,
.menu-link:hover,
.dropdown-item.active,
.dropdown-item:active {
  color: var(--kerjawan-blue) !important;
}

.btn-outline-primary,
.form-control:focus,
.form-select:focus {
  border-color: var(--kerjawan-blue) !important;
}

.btn-outline-primary {
  color: var(--kerjawan-blue) !important;
}

.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--kerjawan-blue) !important;
}

.menu-item.active > .menu-link:not(.menu-toggle) {
  background: rgba(30, 144, 255, 0.12) !important;
}

.layout-menu,
.card,
.dropdown-menu,
.modal-content {
  border-radius: 14px;
}

.card {
  box-shadow: 0 10px 30px rgba(31, 42, 68, 0.08);
}

a,
.page-link {
  color: var(--kerjawan-blue);
}

a:hover,
.page-link:hover {
  color: var(--kerjawan-pink);
}

.badge.bg-label-danger,
.text-danger {
  color: var(--kerjawan-pink) !important;
}

.bg-label-danger {
  background-color: rgba(235, 96, 129, 0.13) !important;
}

/* =========================================================
   BUTTON SOFT VARIANTS (tinted like .bg-label-* badges, solid on hover)
   Mirrors the .bg-label-* badge treatment above, but for buttons.
   Uses Bootstrap's --bs-btn-* variable API (same mechanism as
   .btn-outline-*) so hover, focus, .active and .btn-check:checked
   toggle groups all pick up the right colors automatically.
========================================================= */
.btn-soft-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-bg: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-primary));
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: transparent;
}

.btn-soft-secondary {
  --bs-btn-color: var(--bs-secondary);
  --bs-btn-bg: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-secondary));
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--bs-secondary-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: var(--bs-secondary);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: transparent;
}

.btn-soft-success {
  --bs-btn-color: var(--bs-success);
  --bs-btn-bg: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-success));
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-success);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--bs-success-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-success);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: var(--bs-success);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: transparent;
}

.btn-soft-info {
  --bs-btn-color: var(--bs-info);
  --bs-btn-bg: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-info));
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-info);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--bs-info-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-info);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: var(--bs-info);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: transparent;
}

.btn-soft-warning {
  --bs-btn-color: var(--bs-warning);
  --bs-btn-bg: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-warning));
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-warning);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--bs-warning-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-warning);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: var(--bs-warning);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: transparent;
}

.btn-soft-danger {
  --bs-btn-color: var(--kerjawan-pink);
  --bs-btn-bg: rgba(235, 96, 129, 0.13);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--kerjawan-pink);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 235, 96, 129;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--kerjawan-pink);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: var(--kerjawan-pink);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: transparent;
}

.btn-soft-dark {
  --bs-btn-color: var(--bs-dark);
  --bs-btn-bg: color-mix(in sRGB, var(--bs-paper-bg) var(--bs-bg-label-tint-amount), var(--bs-dark));
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-dark);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--bs-dark-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-dark);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: var(--bs-dark);
  --bs-btn-disabled-bg: var(--bs-btn-bg);
  --bs-btn-disabled-border-color: transparent;
}

/* core.css sets `.table .btn-icon { color: var(--bs-table-color); }`
   (2-class specificity), which overrides the tint color .btn-soft-*
   buttons set on themselves and forces every action-icon inside a
   table to plain table text — unlike badges, which have no such
   table-scoped override. Restore the label's own color at rest, and
   its hover color (white) on hover/focus/active. */
.table .btn-icon.btn-soft-primary,
.table .btn-icon.btn-soft-secondary,
.table .btn-icon.btn-soft-success,
.table .btn-icon.btn-soft-info,
.table .btn-icon.btn-soft-warning,
.table .btn-icon.btn-soft-danger,
.table .btn-icon.btn-soft-dark {
  color: var(--bs-btn-color);
}

.table .btn-icon.btn-soft-primary:hover,
.table .btn-icon.btn-soft-primary:focus-visible,
.table .btn-icon.btn-soft-primary.active,
.table .btn-icon.btn-soft-secondary:hover,
.table .btn-icon.btn-soft-secondary:focus-visible,
.table .btn-icon.btn-soft-secondary.active,
.table .btn-icon.btn-soft-success:hover,
.table .btn-icon.btn-soft-success:focus-visible,
.table .btn-icon.btn-soft-success.active,
.table .btn-icon.btn-soft-info:hover,
.table .btn-icon.btn-soft-info:focus-visible,
.table .btn-icon.btn-soft-info.active,
.table .btn-icon.btn-soft-warning:hover,
.table .btn-icon.btn-soft-warning:focus-visible,
.table .btn-icon.btn-soft-warning.active,
.table .btn-icon.btn-soft-danger:hover,
.table .btn-icon.btn-soft-danger:focus-visible,
.table .btn-icon.btn-soft-danger.active,
.table .btn-icon.btn-soft-dark:hover,
.table .btn-icon.btn-soft-dark:focus-visible,
.table .btn-icon.btn-soft-dark.active {
  color: var(--bs-btn-hover-color);
}

.progress-bar {
  background-color: var(--kerjawan-blue);
}

/* =========================================================
   FILTER TILES (clickable icon + label + count summary tiles,
   e.g. Karyawan Aktif / Tidak Aktif, Validasi App status)
   Toggle `.active` on the tile to mark the selected filter.
========================================================= */
.filter-tile {
  background-color: var(--bs-paper-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.filter-tile:hover {
  border-color: color-mix(in sRGB, var(--bs-primary) 45%, var(--bs-border-color));
  box-shadow: 0 4px 14px rgba(31, 42, 68, 0.08);
}

.filter-tile.active {
  background-color: color-mix(in sRGB, var(--bs-paper-bg) 93%, var(--bs-primary));
  border-color: var(--bs-primary);
  box-shadow: none;
}

.filter-tile .badge {
  align-items: center;
  border-radius: 0.625rem !important;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.filter-tile-label {
  color: var(--bs-secondary-color);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.filter-tile.active .filter-tile-label {
  color: var(--bs-primary);
}

.filter-tile h5 {
  line-height: 1.25;
}

/* =========================================================
   SUMMARY CARDS (static icon + label + value stat cards)
   Markup: .card.h-100.summary-card > .card-body.d-flex.align-items-center.gap-3
           > span.badge.bg-label-*.rounded.p-2 + div > small.text-muted.d-block + h5
========================================================= */
.summary-card .badge {
  align-items: center;
  border-radius: 0.625rem !important;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.summary-card small {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.summary-card h5 {
  line-height: 1.25;
}

@media (max-width: 575.98px) {
  .izin-summary-wrapper {
    padding: 0;
  }

  .izin-summary-wrapper > .row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.65rem;
    margin-bottom: 1rem !important;
  }

  .izin-summary-wrapper .izin-summary-item {
    flex: 0 0 50%;
    width: 50%;
  }

  .izin-summary-wrapper .izin-summary-item:last-child:nth-child(odd) {
    flex-basis: 100%;
    width: 100%;
  }

  .izin-summary-wrapper .summary-card .card-body {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0.55rem !important;
    min-height: 5.6rem;
    padding: 0.85rem;
  }

  .izin-summary-wrapper .summary-card .badge {
    padding: 0.5rem !important;
  }

  .izin-summary-wrapper .summary-card .icon-lg {
    font-size: 1.15rem;
  }

  .izin-summary-wrapper .summary-card small {
    font-size: 0.74rem;
  }

  .izin-summary-wrapper .summary-card h5 {
    font-size: 1rem;
  }
}

/* =========================================================
   PAGE HEADER CARDS
   Most pages render the same header row: icon/title on the left and
   breadcrumb or actions on the right. Give that shared pattern a card
   treatment without changing each Blade view one by one.
========================================================= */
:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 {
  background: var(--bs-paper-bg);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(31, 42, 68, 0.08);
  margin-block-end: 1.5rem !important;
  padding: 1.25rem 1.5rem;
}

:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > .d-flex {
  align-items: center;
  min-width: 0;
}

:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > .d-flex > div {
  min-width: 0;
}

:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 h4,
:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 h5 {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 small {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > .d-flex + * {
  margin-inline-start: auto;
}

:is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 .breadcrumb {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.25rem;
}

/* =========================================================
   SIDEBAR BRANDING
========================================================= */
.app-brand-text.demo {
  font-size: 1.25rem;
  letter-spacing: normal;
}

/* Trim the default divider gap so the space above the app-switcher
   dropdown matches the space below it (was ~40px vs ~22px). */
.menu-vertical .menu-divider {
  margin-block: 0;
}

/* The app-switcher sits between the brand and the scrolling menu, so the
   scroll fade must start below it. core.css pins .menu-inner-shadow right
   under the brand, which washed out the switcher whenever the menu was
   scrolled. Here it flows after the switcher and overlaps the top of the
   menu through a negative margin equal to its own height. */
.layout-menu .app-switcher + .menu-inner-shadow {
  flex: 0 0 auto;
  inset-block-start: auto;
  margin-block-end: -3rem;
  position: relative;
}

@media (max-width: 1199.98px) {
  .layout-menu .app-switcher + .menu-inner-shadow {
    margin-block-end: -1.5rem;
  }
}

/* =========================================================
   NAVBAR ACTIONS (Notification + User)
========================================================= */
.navbar-actions {
  gap: 0.5rem;
}

.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--bs-heading-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-icon-btn:hover,
.nav-icon-btn:focus {
  background-color: rgba(30, 144, 255, 0.08);
  color: var(--kerjawan-blue);
}

.navbar-user-avatar {
  --bs-avatar-size: 2.5rem;
}

.navbar-language-dropdown {
  position: relative;
}

.navbar-language-menu {
  inset: auto auto auto auto !important;
  left: 50% !important;
  margin-left: 0 !important;
  min-width: 5rem !important;
  margin-top: 0 !important;
  padding: 0.35rem;
  position: absolute !important;
  right: auto !important;
  top: calc(100% + 0.45rem) !important;
  transform: translateX(-50%) !important;
  width: 5rem !important;
}

.navbar-language-menu .dropdown-item {
  border-radius: 0.5rem;
  gap: 0.75rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
}

.navbar-language-menu .dropdown-item .bx-check {
  font-size: 1rem;
}

/* Icon buttons carry (button - glyph) / 2 of empty space per side; give the avatar the same so every visible gap matches. */
.navbar-actions .dropdown-user {
  margin-inline-start: 0.625rem;
}

.navbar-notif-badge {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.0625rem;
  height: 1.0625rem;
  padding: 0 0.3rem;
  font-size: 0.6875rem;
  line-height: 1;
  border: 2px solid var(--bs-paper-bg);
}

.navbar-notif-menu {
  width: 360px;
  max-width: calc(100vw - 2rem);
}

.navbar-notif-list {
  max-height: 360px;
}

.navbar-notif-list .list-group-item {
  border-inline: 0;
}

/* =========================================================
   SIDEBAR SUBMENU (icons instead of dots)
========================================================= */
.menu-vertical .menu-sub .menu-link::before {
  display: none !important;
}

.menu-vertical .menu-sub .menu-icon {
  font-size: 1.125rem;
  inline-size: 1.125rem;
  block-size: 1.125rem;
}

/* Sit the submenu icon roughly midway between the parent icon and parent
   label, instead of flush with the parent label (default vendor spacing). */
.menu-vertical .menu-sub .menu-link {
  padding-inline-start: 1.875rem;
}

/* =========================================================
   RESPONSIVE POLISH
   Layout-only adjustments for mobile, tablet, laptop, desktop.
========================================================= */
html {
  min-width: 0;
}

body {
  overflow-x: hidden;
}

.layout-page,
.content-wrapper,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm,
.row,
.card,
.card-body,
.table-responsive,
.modal-content {
  min-width: 0;
}

.container-p-y {
  padding-block: clamp(1rem, 2vw, 1.5rem) !important;
}

.container-fluid {
  padding-inline: clamp(0.875rem, 2vw, 1.5rem) !important;
}

.card {
  max-width: 100%;
}

.card-body,
.card-header,
.card-footer {
  overflow-wrap: anywhere;
}

.row {
  --bs-gutter-x: clamp(0.875rem, 2vw, 1.5rem);
  --bs-gutter-y: clamp(0.875rem, 2vw, 1.5rem);
}

.table-responsive {
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}

.table {
  margin-bottom: 0;
}

.table th,
.table td {
  vertical-align: middle;
}

.billing-history-table tbody td {
  text-align: center;
}

/* Desktop: fit the billing history tables in the card without sideways
   scrolling. Text columns (transaction no., type, note) may wrap between
   words; dates, amounts, status and action stay on one line. Below this
   width the table keeps its natural width and scrolls instead. */
@media (min-width: 1200px) {
  .billing-history-table {
    font-size: 0.8125rem;
  }

  .billing-history-table > :not(caption) > * > * {
    padding-inline: 0.5rem;
  }

  .billing-history-table tbody td:nth-child(3),
  .billing-history-table tbody td:nth-child(4),
  .billing-history-table tbody td:nth-child(6) {
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
  }

  .billing-history-table tbody td:nth-child(4) {
    min-width: 6.5rem;
  }

  .billing-history-table tbody .billing-note-col {
    min-width: 8rem;
  }
}

/* Free-text column in the billing history tables: the only cell allowed
   to wrap, with a floor so it does not collapse to one word per line. */
.table .billing-note-col {
  min-width: 14rem;
}

/* Billing history tables (Saldo Utama / Saldo Gaji): two-word column
   names stack onto two lines. The oversized word-spacing forces a break
   after every word without touching the translated header text. */
.billing-history-table thead th {
  line-height: 1.3;
  overflow-wrap: normal;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  word-spacing: 100vw;
}

.table th,
.table td,
.table .text-truncate {
  max-width: min(18rem, 46vw);
}

.btn,
.form-control,
.form-select,
.input-group-text {
  min-height: 2.375rem;
}

/* Small buttons keep their own (smaller) height instead of being
   stretched to the default control height above. */
.btn-sm,
.btn-xs,
.btn-group-sm > .btn,
.btn-group-xs > .btn {
  min-height: 0;
}

.btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.btn-group,
.input-group {
  min-width: 0;
}

.dropdown-menu {
  max-width: calc(100vw - 2rem);
}

.modal-dialog {
  margin-inline: auto;
}

.modal-body {
  overflow-x: hidden;
}

.apexcharts-canvas,
canvas {
  max-width: 100% !important;
}

@media (min-width: 1600px) {
  .container-fluid {
    padding-inline: 2rem !important;
  }

  .layout-page {
    max-width: none;
  }
}

@media (max-width: 1399.98px) {
  .container-fluid {
    padding-inline: 1.25rem !important;
  }

  .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 1199.98px) {
  .layout-navbar,
  .content-wrapper {
    width: 100%;
  }

  .navbar-detached {
    margin-inline: 1rem !important;
    width: calc(100% - 2rem) !important;
  }

  .card-body {
    padding: 1.125rem;
  }
}

@media (max-width: 991.98px) {
  .container-fluid {
    padding-inline: 1rem !important;
  }

  .container-p-y {
    padding-block: 1rem !important;
  }

  .navbar-detached {
    margin-inline: 0.875rem !important;
    width: calc(100% - 1.75rem) !important;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding-inline: 1rem;
  }

  .modal-dialog {
    max-width: calc(100vw - 1.5rem);
  }

  .table th,
  .table td {
    white-space: nowrap;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 {
    align-items: flex-start !important;
    flex-direction: column;
    padding: 1rem 1.125rem;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > .d-flex,
  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > .d-flex + * {
    margin-inline-start: 0;
    width: 100%;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 .breadcrumb {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  h1,
  .h1 {
    font-size: 1.625rem;
  }

  h2,
  .h2 {
    font-size: 1.375rem;
  }

  h3,
  .h3 {
    font-size: 1.2rem;
  }

  .container-fluid {
    padding-inline: 0.875rem !important;
  }

  .navbar-detached {
    margin-inline: 0.75rem !important;
    width: calc(100% - 1.5rem) !important;
  }

  .navbar-nav-right {
    gap: 0.5rem;
  }

  .navbar-actions {
    gap: 0.25rem;
  }

  .nav-icon-btn {
    height: 2.25rem;
    width: 2.25rem;
  }

  .navbar-actions .dropdown-user {
    margin-inline-start: 0.5rem;
  }

  .card {
    border-radius: 12px;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 1rem;
  }

  .row > [class*="col-"] {
    min-width: 0;
  }

  .d-flex:not(.menu-link):not(.app-brand-link):not(.dropdown-item):not(.navbar-nav-right) {
    min-width: 0;
  }

  form .row,
  .card-body > .row,
  .card-header > .row {
    row-gap: 0.875rem;
  }

  .btn {
    min-height: 2.5rem;
  }

  .btn:not(.btn-icon):not(.dropdown-toggle) {
    white-space: normal;
  }

  .btn-icon {
    flex: 0 0 auto;
  }

  .input-group {
    flex-wrap: nowrap;
  }

  .input-group > .form-control,
  .input-group > .form-select {
    min-width: 0;
  }

  .table-responsive {
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }

  .table {
    min-width: max-content;
  }

  .table th,
  .table td {
    font-size: 0.8125rem;
    padding: 0.75rem 0.65rem;
  }

  .modal-dialog {
    margin: 0.75rem auto;
    max-width: calc(100vw - 1rem);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-inline: 1rem;
  }

  .modal-footer {
    gap: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .container-p-y {
    padding-block: 0.875rem !important;
  }

  .container-fluid {
    padding-inline: 0.75rem !important;
  }

  .navbar-detached {
    margin-inline: 0.625rem !important;
    width: calc(100% - 1.25rem) !important;
  }

  .app-brand.demo {
    min-height: 4rem;
  }

  .app-brand .app-brand-text {
    font-size: 1.1rem;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 0.875rem;
  }

  .card-title,
  .card-header h5,
  .card-header h6 {
    line-height: 1.3;
  }

  .btn,
  .form-control,
  .form-select {
    font-size: 0.875rem;
  }

  .btn:not(.btn-icon):not(.dropdown-toggle) {
    width: 100%;
  }

  .breadcrumb {
    font-size: 0.78rem;
    row-gap: 0.25rem;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 {
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.875rem;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 > .d-flex {
    gap: 0.75rem !important;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 .badge.rounded.p-2 {
    padding: 0.55rem !important;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 h4,
  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 h5 {
    font-size: 1rem;
  }

  :is(.container-fluid, .setting-izin-page) > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 small {
    font-size: 0.78rem;
  }

  .content-header,
  .d-flex.flex-wrap.justify-content-between.align-items-center.mb-4 {
    gap: 0.875rem;
  }

  .d-flex.flex-wrap.justify-content-between.align-items-center.mb-4 > nav {
    width: 100%;
  }

  .d-flex.flex-wrap.justify-content-between.align-items-center.mb-4 .breadcrumb {
    justify-content: flex-start;
  }

  .btn-toolbar,
  .card-header .d-flex,
  .card-body .d-flex,
  form.d-flex {
    flex-wrap: wrap;
  }

  .card-header .d-flex > *,
  .card-body .d-flex > *,
  form.d-flex > * {
    min-width: 0;
  }

  .table th,
  .table td {
    font-size: 0.78rem;
    padding: 0.7rem 0.6rem;
  }

  .dropdown-menu {
    min-width: min(18rem, calc(100vw - 2rem));
  }

  .navbar-language-menu {
    min-width: 5rem !important;
    width: 5rem !important;
  }

  .modal-dialog {
    margin: 0.5rem auto;
    max-width: calc(100vw - 0.75rem);
  }
}

@media (min-width: 768px) {
  .w-md-auto {
    width: auto !important;
  }
}

@media (max-width: 767.98px) {
  .w-md-auto {
    width: 100% !important;
  }

  .billing-history-table {
    min-width: 58rem;
  }

  .billing-history-table .btn-sm:not(.btn-icon) {
    width: auto;
    white-space: nowrap;
  }

  .card-body form.d-flex.gap-2 {
    flex-direction: column;
  }

  .card-body form.d-flex.gap-2 > .form-select,
  .card-body form.d-flex.gap-2 > .form-control,
  .card-body form.d-flex.gap-2 > .btn {
    width: 100% !important;
  }

  .card-body form .d-flex.gap-2 {
    flex-wrap: wrap;
  }

  .card-body form .d-flex.gap-2 > .form-select,
  .card-body form .d-flex.gap-2 > .form-control,
  .card-body form .d-flex.gap-2 > .btn {
    flex: 1 1 100%;
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .container-fluid {
    padding-inline: 0.625rem !important;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 0.75rem;
  }

  .nav-icon-btn {
    height: 2.125rem;
    width: 2.125rem;
  }

  .table th,
  .table td {
    font-size: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .employee-card > .card-header {
    padding: 0.8rem;
  }

  .employee-filter-row {
    --bs-gutter-x: 0.625rem;
    --bs-gutter-y: 0.625rem;
  }

  .employee-filter-row > [class*="col-"] {
    flex: 0 0 50%;
    width: 50%;
  }

  .employee-filter-row .pegawai-filter {
    align-items: center !important;
    gap: 0.6rem !important;
    min-height: 4.8rem;
    padding: 0.7rem !important;
  }

  .employee-filter-row .pegawai-filter .badge {
    flex: 0 0 auto;
    padding: 0.45rem !important;
  }

  .employee-filter-row .pegawai-filter .icon-lg {
    font-size: 1.1rem;
  }

  .employee-filter-row .pegawai-filter .filter-tile-label {
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: normal;
  }

  .employee-filter-row .pegawai-filter h5 {
    font-size: 1rem;
    line-height: 1.1;
  }

  .employee-toolbar-row {
    row-gap: 0.75rem;
  }

  .employee-action-group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem !important;
  }

  .employee-action-group .btn {
    min-height: 2.35rem;
    padding: 0.45rem 0.5rem;
    white-space: nowrap !important;
    width: 100% !important;
  }

  .employee-action-group .icon-sm {
    margin-right: 0.25rem !important;
  }

  .employee-search-group {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.5rem !important;
    align-items: center;
  }

  .employee-search-group .form-select,
  .employee-search-group .input-group {
    min-width: 0;
    width: 100% !important;
  }

  .employee-search-group .input-group-text {
    padding-inline: 0.65rem;
  }

  .employee-search-group .btn-icon {
    height: 2.4rem;
    width: 2.4rem;
  }

  .employee-table-responsive {
    margin-inline: -0.8rem;
    padding-inline: 0.8rem;
  }

  .employee-table-responsive .table {
    min-width: 40rem;
  }

  .employee-table-responsive .table th,
  .employee-table-responsive .table td {
    padding: 0.65rem 0.55rem;
    vertical-align: middle;
  }

  .employee-table-responsive .table td:first-child > .d-flex {
    min-width: 9.5rem;
  }
}

@media (max-width: 480px) {
  .employee-filter-row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  .employee-filter-row .pegawai-filter {
    align-items: flex-start !important;
    flex-direction: column;
    justify-content: center;
    min-height: 5rem;
  }

  .employee-filter-row .pegawai-filter .badge {
    padding: 0.42rem !important;
  }

  .employee-search-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-search-group .btn-icon {
    width: 100%;
  }

  .employee-table-responsive {
    margin-inline: 0;
    overflow: visible;
    padding: 0.75rem;
  }

  .employee-table-responsive table,
  .employee-table-responsive tbody,
  .employee-table-responsive tr,
  .employee-table-responsive td {
    display: block;
    width: 100%;
  }

  .employee-table-responsive .table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
  }

  .employee-table-responsive thead {
    display: none;
  }

  .employee-table-responsive tr {
    background: var(--bs-paper-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }

  .employee-table-responsive td {
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 0.82rem;
    padding: 0.7rem 0.85rem !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .employee-table-responsive td:last-child {
    border-bottom: 0;
  }

  .employee-table-responsive td[data-label]::before {
    color: var(--bs-secondary-color);
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
  }

  .employee-table-responsive td:first-child > .d-flex {
    min-width: 0;
  }

  .employee-table-responsive td:first-child img {
    height: 2rem;
    width: 2rem;
  }

  .employee-row-actions {
    justify-content: flex-start !important;
  }
}

@media (max-width: 380px) {
  .employee-filter-row .pegawai-filter {
    gap: 0.5rem !important;
    padding: 0.6rem !important;
  }

  .employee-filter-row .pegawai-filter .filter-tile-label {
    font-size: 0.7rem;
  }

  .employee-action-group .btn {
    font-size: 0.76rem;
    padding-inline: 0.35rem;
  }

  .employee-table-responsive {
    padding-inline: 0.6rem;
  }
}

.attendance-filter-form .btn {
  white-space: nowrap !important;
}

.attendance-date-filter .input-group {
  min-width: 21rem;
}

.attendance-search-actions {
  align-items: stretch;
}

.attendance-search-actions .form-control {
  flex: 1 1 18rem;
  min-width: 16rem;
}

.attendance-search-actions .btn:not(.btn-icon) {
  flex: 0 0 auto;
  min-width: 5.75rem;
  padding-inline: 1rem;
}

.attendance-search-actions .btn-dark {
  min-width: 6.75rem;
}

.attendance-table-responsive {
  border-radius: 12px;
}

.attendance-table-responsive .table {
  min-width: 82rem;
}

.attendance-table-responsive .table th,
.attendance-table-responsive .table td {
  max-width: none;
}

.attendance-legend span {
  align-items: center;
  display: inline-flex;
  white-space: nowrap;
}

@media (max-width: 1399.98px) {
  .attendance-filter-form > .attendance-list-action {
    flex: 0 0 18%;
    width: 18%;
  }

  .attendance-filter-form > .attendance-date-filter {
    flex: 0 0 32%;
    width: 32%;
  }

  .attendance-filter-form > .col-12.col-lg-6 {
    flex: 0 0 50%;
    width: 50%;
  }

  .attendance-search-actions .form-control {
    min-width: 13rem;
  }
}

@media (max-width: 1199.98px) {
  .attendance-filter-form > .attendance-list-action,
  .attendance-filter-form > .attendance-date-filter,
  .attendance-filter-form > .col-12.col-lg-6 {
    flex: 0 0 100%;
    width: 100%;
  }

  .attendance-date-filter .input-group {
    min-width: 0;
  }

  .attendance-search-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .attendance-search-actions .form-control {
    min-width: 0;
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .attendance-date-filter .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .attendance-date-filter .input-group > .form-control,
  .attendance-date-filter .input-group > .btn {
    border-radius: 0.375rem !important;
  }

  .attendance-search-actions {
    grid-template-columns: minmax(0, 1fr) minmax(4.75rem, auto) minmax(6.5rem, auto) minmax(5.5rem, auto);
  }

  .attendance-search-actions .btn:not(.btn-icon) {
    width: auto !important;
  }

  .attendance-table-responsive {
    margin-inline: -0.875rem;
    padding-inline: 0.875rem;
  }
}

@media (max-width: 575.98px) {
  .attendance-filter-form .card-body,
  .attendance-filter-form {
    row-gap: 0.7rem;
  }

  .attendance-date-filter .input-group {
    grid-template-columns: minmax(0, 1fr) 3rem 2.75rem 2.75rem;
  }

  .attendance-date-filter .btn,
  .attendance-search-actions .btn {
    min-height: 2.55rem;
    padding-inline: 0.55rem;
  }

  .attendance-search-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .attendance-search-actions .btn:not(.btn-icon) {
    min-width: 0;
    width: 100% !important;
  }

  .attendance-legend {
    justify-content: flex-start !important;
  }
}

/* SweetAlert must cover the fixed sidebar and navbar, and sit above Bootstrap modals. */
.swal2-container {
  z-index: 20000 !important;
}
