/* Checkbox tampilkan password pada form aplikasi karyawan. */
.password-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.password-visibility-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #881337;
}

/* ====================================================
   AMANDA MAROON + COOL SLATE THEME OVERRIDES
   Unified with Amanda Admin Portal
   Primary:  #881337 (Amanda Maroon)
   Hover:    #6F0F2D
   Dark:     #4C0519
   BG:       #F8FAFC (Cool Slate)
   Border:   #E2E8F0
   ====================================================*/

:root {
  --bg-danger: #881337;
  --danger: #DC2626;
  --primary: #881337;
  --amanda-brown-dark: #4C0519;
  --amanda-brown: #881337;
  --amanda-brown-hover: #6F0F2D;
  --amanda-gold: #881337;
  --amanda-tan: #9F1239;
  --amanda-cream: #F8FAFC;
  --amanda-border: #E2E8F0;
  --amanda-white: #FFFFFF;
  --amanda-radius-sm: 10px;
  --amanda-radius-md: 12px;
}

:focus {
  outline: 0;
}

/* ---------- Body & Global Background ---------- */
body {
  background-color: var(--amanda-cream) !important;
}

#appCapsule {
  background-color: var(--amanda-cream);
}

/* ---------- App Header ---------- */
.appHeader.bg-danger {
  background: linear-gradient(135deg, #881337 0%, #6F0F2D 100%) !important;
  border-bottom: none;
}

/* ---------- App Bottom Menu ---------- */
.appBottomMenu {
  background: var(--amanda-white);
  border-top: 1px solid var(--amanda-border);
  box-shadow: 0 -2px 15px rgba(15, 23, 42, 0.06);
}

.appBottomMenu .item.active,
.appBottomMenu .item:hover {
  color: #881337 !important;
}

.appBottomMenu .item.active ion-icon,
.appBottomMenu .item:hover ion-icon {
  color: #881337 !important;
}

.appBottomMenu .item ion-icon {
  color: #64748B;
}

/* ---------- bg-danger semantic red (do not mask danger as brown) ---------- */
.bg-danger {
  background: #DC2626 !important;
  color: #FFF;
}

/* ---------- Wallet Card ---------- */
.wallet-card {
  background: linear-gradient(135deg, #881337 0%, #6F0F2D 100%) !important;
  border: none;
  box-shadow: 0 8px 24px rgba(136, 19, 55, 0.24);
  border-radius: 16px;
}

.wallet-card .balance .left .title {
  color: rgba(255,255,255,0.85);
}

.wallet-card .balance .left .total {
  color: var(--amanda-white);
  font-size: 20px;
}

/* Semua shortcut pada kartu beranda memakai warna frosted putih di atas marun */
.wallet-card .wallet-footer .icon-wrapper,
.wallet-card .wallet-footer .icon-wrapper.bg-danger,
.wallet-card .wallet-footer .icon-wrapper.bg-warning,
.wallet-card .wallet-footer .icon-wrapper.bg-primary,
.wallet-card .wallet-footer .icon-wrapper.bg-success {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.wallet-card .wallet-footer .item a:hover .icon-wrapper,
.wallet-card .wallet-footer .item a:focus .icon-wrapper {
  background: var(--amanda-tan) !important;
}

/* Navigasi bawah memuat lima tujuan utama; fitur sekunder tersedia di Menu. */
.appBottomMenu .item {
  flex: 0 0 20%;
  width: 20%;
}

/* NAV003: canonical employee drawer and single active navigation state (Amanda Maroon + Cool Slate). */
#sidebarPanel .modal-content {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #FFFFFF;
}
#sidebarPanel .modal-body.am-drawer-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0 !important;
}
#sidebarPanel .am-drawer-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 14px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
#sidebarPanel .am-drawer-section {
  padding: 6px 0 4px;
  border-top: 1px solid #F1F5F9;
}
#sidebarPanel .am-drawer-section.is-first {
  padding-top: 2px;
  border-top: 0;
}
#sidebarPanel .sidebar-section-title {
  margin: 0;
  padding: 8px 18px 6px;
  border-top: 0;
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#sidebarPanel .sidebar-menu-list > li { padding: 0; }
#sidebarPanel .sidebar-menu-list > li > .item {
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #1E293B;
  transition: background-color .15s ease, color .15s ease;
}
#sidebarPanel .sidebar-menu-list > li > .item:hover {
  background: #F8FAFC;
  color: #0F172A;
}
#sidebarPanel .sidebar-menu-list > li > .item.active {
  background: #FFF1F4;
  color: #881337;
  font-weight: 700;
  box-shadow: none;
}
#sidebarPanel .sidebar-menu-list > li > .item.active .icon-box {
  background: #881337 !important;
  color: #FFFFFF !important;
}
#sidebarPanel .portal-nav-label { flex: 1 1 auto; }
#sidebarPanel .portal-nav-badge {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
.appBottomMenu .item { min-width: 0; }
.appBottomMenu .item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Form Filter Cuti ---------- */
.leave-filter-card .card-body {
  padding: 16px;
}

.leave-filter-card .form-group {
  margin-bottom: 12px;
}

.leave-filter-card .label {
  display: block;
  margin-bottom: 6px;
  color: #6E4A2D;
  font-size: 12px;
  font-weight: 600;
}

.leave-filter-card .input-group {
  border: 1px solid var(--amanda-border);
  border-radius: 10px;
  overflow: hidden;
}

.leave-filter-card .form-control {
  height: 42px;
  border: 0;
  box-shadow: none;
}

.leave-filter-card .input-group-addon {
  display: flex;
  width: 40px;
  align-items: center;
  justify-content: center;
  color: var(--amanda-brown);
  background: var(--amanda-cream);
  border-left: 1px solid var(--amanda-border);
}

.leave-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.leave-filter-actions .btn {
  min-height: 40px;
  padding: 8px 6px;
  font-size: 12px;
}

.leave-filter-actions .btn-new-leave,
.leave-filter-actions .btn-new-izin {
  grid-column: 1 / -1;
  width: 100%;
}

/* ---------- Filter dan Data Presensi ---------- */
.attendance-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.attendance-filter-actions .btn {
  min-height: 40px;
  padding: 8px 6px;
  font-size: 12px;
}

.attendance-filter-actions .btn-history-print {
  grid-column: 1 / -1;
  width: 100%;
}

.attendance-data-card {
  overflow: hidden;
  border: 1px solid #FFF1F4;
  border-radius: 14px;
}

.attendance-data-card .table-responsive {
  padding: 0 2px 4px;
}

.attendance-table {
  margin: 0 !important;
  color: #5F5148;
  font-size: 12px;
}

.attendance-table thead th {
  padding: 12px 8px !important;
  color: #67452E;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  vertical-align: middle !important;
  white-space: normal;
  background: #FDF8F3;
  border-bottom: 1px solid var(--amanda-border) !important;
}

.attendance-table tbody th,
.attendance-table tbody td {
  padding: 11px 8px !important;
  vertical-align: middle !important;
  border-top-color: #F1E8DF !important;
}

.attendance-table .badge {
  display: inline-block;
  margin: 2px 0;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.attendance-table .modal-update {
  min-width: 32px;
  min-height: 32px;
  padding: 5px;
  border-radius: 9px;
}

.attendance-data-card .dataTables_length,
.attendance-data-card .dataTables_filter {
  padding: 12px 12px 0;
  color: #7C746F;
  font-size: 12px;
}

.attendance-data-card .dataTables_filter input,
.attendance-data-card .dataTables_length select {
  min-height: 34px;
  border: 1px solid var(--amanda-border);
  border-radius: 8px;
  background: var(--amanda-white);
}

.attendance-data-card .dataTables_info,
.attendance-data-card .dataTables_paginate {
  padding: 10px 12px 12px;
  color: #8A7768;
  font-size: 11px;
}

.attendance-data-card .pagination > li > a,
.attendance-data-card .pagination > li > span {
  color: #6F0F2D;
  border-color: var(--amanda-border);
}

.attendance-data-card .pagination > .active > a,
.attendance-data-card .pagination > .active > span {
  color: var(--amanda-white);
  border-color: var(--amanda-brown);
  background: var(--amanda-brown);
}

.attendance-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #FFF1F4;
}

.attendance-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.attendance-summary-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--amanda-white);
  font-size: 11px;
}

.attendance-summary-item.hadir { background: #ECF9F1; color: #387149; }
.attendance-summary-item.hadir strong { background: #22B573; }
.attendance-summary-item.terlambat { background: #FBF0E8; color: var(--amanda-brown); }
.attendance-summary-item.terlambat strong { background: #9A6D45; }
.attendance-summary-item.sakit { background: #FFF8DF; color: #8C7130; }
.attendance-summary-item.sakit strong { background: #E7A900; }
.attendance-summary-item.izin { background: #F0EAFE; color: #7051B7; }
.attendance-summary-item.izin strong { background: #7551C5; }
.attendance-summary-item.alpha { background: #FDEDEC; color: #B84C46; }
.attendance-summary-item.alpha strong { background: #D85E56; }
.attendance-summary-item.cuti { background: #EAF3FE; color: #377BB6; }
.attendance-summary-item.cuti strong { background: #4C91CB; }
.attendance-summary-item.wfh { background: #E7F8F6; color: #23867D; }
.attendance-summary-item.wfh strong { background: #29AAA0; }
.attendance-summary-item.dinas { background: #F5EDE5; color: #9A6236; }
.attendance-summary-item.dinas strong { background: #B77B48; }
.attendance-summary-item.libur { background: #F2F0EE; color: #77706B; }
.attendance-summary-item.libur strong { background: #89817A; }
.attendance-summary-item.pulang-cepat { background: #FFF2DF; color: #A66B16; }
.attendance-summary-item.pulang-cepat strong { background: #D88B1D; }

.attendance-info {
  margin-bottom: 0;
  border: 0;
  border-radius: 10px;
  color: #7A5A21;
  background: #FFF3CD;
  font-size: 11px;
  line-height: 1.45;
}

/* ---------- Riwayat Presensi: tampilan ringkas dan nyaman di ponsel ---------- */
.attendance-history-page {
  padding-top: 2px;
}

.attendance-page-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 2px 14px;
}

.attendance-page-heading .page-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #7d4f2e, #bc903e);
  border-radius: 13px;
  box-shadow: 0 6px 14px rgba(105, 67, 34, .19);
  font-size: 22px;
}

.attendance-page-heading h1,
.attendance-section-heading h2 {
  margin: 0;
  color: #46342a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.attendance-page-heading p,
.attendance-section-heading p {
  margin: 3px 0 0;
  color: #9b918a;
  font-size: 12px;
  line-height: 1.45;
}

.attendance-filter-card {
  border: 1px solid #efe2d6;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(83, 56, 37, .07);
}

.attendance-filter-card .card-body {
  padding: 17px 16px 16px;
}

.attendance-filter-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #5d4130;
  font-size: 13px;
  font-weight: 700;
}

.attendance-filter-title small {
  max-width: 190px;
  color: #a29790;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
}

.attendance-filter-card .form-group {
  margin-bottom: 12px;
}

.attendance-filter-card .label {
  margin-bottom: 7px;
  color: #5f4939;
  font-size: 12px;
  font-weight: 700;
}

.attendance-filter-card .form-control {
  height: 46px;
  border: 1px solid #e7d9cc;
  border-radius: 11px;
  background: #fffdfb;
  color: #514139;
  font-size: 13px;
}

.attendance-filter-card .input-group-addon {
  min-width: 42px;
  border-color: #e7d9cc;
  border-radius: 0 11px 11px 0;
  color: #96683e;
  background: #faf4ed;
}

.attendance-filter-actions {
  gap: 9px;
  margin-top: 1px;
}

.attendance-filter-actions .btn {
  min-height: 46px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.attendance-filter-actions .btn-sortir {
  border: 0;
  background: linear-gradient(105deg, #8b5b35, #bf913f);
  box-shadow: 0 6px 12px rgba(124, 78, 40, .18);
}

.attendance-filter-actions .btn-clear {
  border: 2px solid #946540;
  color: #805837;
  background: #fff;
}

.attendance-filter-actions .btn-history-print {
  border: 1px solid #eadccc;
  color: #795132;
  background: #faf5ef;
  box-shadow: none;
}

.attendance-filter-actions .btn-history-print ion-icon {
  color: #bd8031;
}

.attendance-section-heading {
  margin: 0 3px 11px;
}

.attendance-section-heading h2 {
  font-size: 18px;
}

.attendance-data-card {
  border: 1px solid #eee2d7;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(83, 56, 37, .07);
}

.attendance-data-card .dataTables_length,
.attendance-data-card .dataTables_filter {
  padding: 14px 14px 2px;
}

.attendance-data-card .dataTables_filter input {
  width: 164px;
  margin-left: 5px;
}

.attendance-table tbody tr:hover {
  background: #fffaf5;
}

.attendance-table .modal-update {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  color: #fff;
  background: #22bd73;
  box-shadow: 0 4px 9px rgba(25, 164, 97, .2);
}

.attendance-table .modal-update span {
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 575px) {
  .attendance-data-card .table-responsive {
    overflow: visible;
    padding: 0 8px 6px;
  }

  .attendance-data-card .dataTables_wrapper > .row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
  }

  .attendance-data-card .dataTables_wrapper > .row:first-child > div {
    width: auto;
    padding: 0;
  }

  .attendance-data-card .dataTables_length,
  .attendance-data-card .dataTables_filter {
    padding: 9px 3px 5px;
    font-size: 10px;
    white-space: nowrap;
  }

  .attendance-data-card .dataTables_length select {
    min-height: 31px;
    width: 50px;
    padding: 3px;
  }

  .attendance-data-card .dataTables_filter input {
    width: 96px;
    min-height: 31px;
    margin-left: 3px;
  }

  .attendance-table,
  .attendance-table tbody,
  .attendance-table tr,
  .attendance-table td,
  .attendance-table th {
    display: block;
    width: 100% !important;
  }

  .attendance-table thead {
    display: none;
  }

  .attendance-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 0;
    margin: 0 0 7px;
    transform: translateX(8px);
    padding: 5px 9px 6px;
    border: 1px solid #f0e5da;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(83, 56, 37, .04);
  }

  .attendance-table tbody th,
  .attendance-table tbody td {
    width: auto !important;
    min-width: 0;
    padding: 5px 3px !important;
    border: 0 !important;
    font-size: 11px;
    text-align: left !important;
  }

  .attendance-table .attendance-row-number {
    position: absolute;
    top: 7px;
    right: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px !important;
    height: 21px;
    padding: 0 !important;
    border-radius: 50%;
    color: #93643c;
    background: #f8eee4;
    font-size: 10px;
  }

  .attendance-table tbody th[data-label="Tanggal"] {
    grid-column: 1 / -1;
    padding-right: 28px !important;
    color: #5e3f2c;
    font-size: 13px;
    font-weight: 700;
  }

  .attendance-table td[data-label="Check-in"],
  .attendance-table td[data-label="Check-out"] {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 62px;
    padding: 22px 4px 6px !important;
    border-top: 1px dashed #eee2d8 !important;
  }

  .attendance-table td[data-label="Check-out"],
  .attendance-table td[data-label="Status"] {
    padding-left: 8px !important;
    border-left: 1px solid #f1e8e0 !important;
  }

  .attendance-table td[data-label="Check-in"],
  .attendance-table td[data-label="Check-out"],
  .attendance-table td[data-label="Status"] {
    text-align: center !important;
  }

  .attendance-table td[data-label="Check-in"]:before,
  .attendance-table td[data-label="Check-out"]:before,
  .attendance-table td[data-label="Status"]:before,
  .attendance-table td[data-label="Keterangan"]:before {
    position: absolute;
    top: 5px;
    left: 3px;
    color: #a3958a;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .attendance-table td[data-label] {
    position: relative;
  }

  .attendance-table td[data-label="Status"],
  .attendance-table td[data-label="Keterangan"] {
    min-height: 35px;
    padding-top: 17px !important;
    border-top: 1px dashed #eee2d8 !important;
  }

  .attendance-table td[data-label="Status"] {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: auto;
    min-height: 62px;
    padding: 22px 4px 6px !important;
    color: #6c5b50;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  .attendance-table td[data-label="Status"]:before {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .attendance-table td[data-label="Check-in"]:before,
  .attendance-table td[data-label="Check-out"]:before {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .attendance-table .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .attendance-table td[data-label="Check-out"] .badge-secondary {
    min-width: 72px;
    color: #fff;
    background: #8492a1;
  }

  .attendance-table .attendance-action {
    display: flex;
    align-items: end;
    justify-content: flex-end;
  }

  .attendance-table .modal-update {
    min-width: 0;
    min-height: 31px;
    padding: 5px 8px;
  }

  .attendance-data-card .dataTables_info,
  .attendance-data-card .dataTables_paginate {
    padding: 2px 4px 7px;
    font-size: 10px;
  }
}

/* ---------- Formulir Pengajuan Cuti ---------- */
#modal-add .modal-content,
#modal-update .modal-content {
  border-radius: 18px 18px 0 0;
}

#modal-add .modal-header,
#modal-update .modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid #FFF1F4;
}

#modal-add .modal-header .modal-title,
#modal-update .modal-header .modal-title {
  color: #5E3B24;
  font-weight: 700;
}

#modal-add .modal-body,
#modal-update .modal-body {
  padding: 18px 20px 24px;
}

#form-add-leave .form-group,
#form-update-leave .form-group,
.form-add-izin .form-group,
.form-edit-izin .form-group {
  margin-bottom: 18px;
}

#form-add-leave .label,
#form-update-leave .label,
.form-add-izin .label,
.form-edit-izin .label {
  display: block;
  margin-bottom: 7px;
  color: #67452E;
  font-weight: 600;
}

#form-add-leave .form-control,
#form-update-leave .form-control,
.form-add-izin .form-control,
.form-edit-izin .form-control {
  min-height: 44px;
  border-color: var(--amanda-border);
  border-radius: 10px;
}

#form-add-leave .input-group,
#form-update-leave .input-group,
.form-add-izin .input-group,
.form-edit-izin .input-group {
  border-radius: 10px;
}

#form-add-leave .input-group-addon,
#form-update-leave .input-group-addon,
.form-add-izin .input-group-addon,
.form-edit-izin .input-group-addon {
  color: var(--amanda-brown);
  border-color: var(--amanda-border);
  background: var(--amanda-cream);
}

.leave-total[readonly] {
  color: #6E4A2D;
  font-size: 17px;
  font-weight: 700;
  background: var(--amanda-cream) !important;
}

.leave-balance-info,
.leave-calculation-info {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #8A7768;
}

.leave-category-balance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.leave-category-balance-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #efe2d7;
  border-radius: 10px;
  background: #fffaf5;
  color: #80614b;
  font-size: 10px;
  line-height: 1.3;
}

.leave-category-balance-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leave-category-balance-card strong {
  flex: 0 0 auto;
  color: #31774f;
  font-size: 10px;
}

.leave-balance-info.text-success {
  color: #4F8A5B !important;
}

.leave-calculation-info.text-danger,
.leave-balance-info.text-danger {
  color: #C0392B !important;
}

/* ---------- Formulir Pengajuan Izin ---------- */
.form-add-izin .permission-name {
  background: #F2EEE9 !important;
  color: #6E4A2D;
}

.permission-upload-box {
  padding: 13px;
  border: 1px dashed #D4B390;
  border-radius: 12px;
  background: #FDF8F3;
}

.permission-upload-box .form-control[type="file"] {
  min-height: 40px;
  padding: 7px;
  background: var(--amanda-white);
}

.permission-upload-help {
  display: block;
  margin-top: 7px;
  color: #8A7768;
  font-size: 11px;
  line-height: 1.35;
}

/* ---------- Persetujuan Cuti Tim ---------- */
.transactions .leave-approval-item {
  display: block;
  padding: 16px;
  border: 1px solid #FFF1F4;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(103, 69, 46, 0.08);
}

.leave-approval-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.transactions .leave-approval-item .detail {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.transactions .leave-approval-item .detail strong {
  margin-bottom: 7px;
  color: #5E3B24;
  font-size: 17px;
  font-weight: 700;
}

.leave-approval-status {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.leave-approval-meta {
  display: grid;
  gap: 5px;
  margin-top: 3px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #FDF8F3;
  color: #7C746F;
  font-size: 12px;
  line-height: 1.35;
}

.leave-approval-meta > div {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.leave-approval-meta ion-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #9A7652;
  font-size: 15px;
}

.leave-approval-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.approval-leave-form {
  display: block !important;
  clear: both;
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #FFF1F4;
  text-align: left !important;
}

.approval-leave-form label {
  display: block;
  margin-bottom: 6px;
  color: #67452E;
  font-size: 12px;
  font-weight: 600;
}

.approval-leave-form label span {
  color: #978579;
  font-weight: 400;
}

.approval-leave-form textarea.form-control {
  min-height: 68px;
  padding: 10px 12px;
  border-color: var(--amanda-border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
}

.leave-approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.leave-approval-actions .btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.leave-rejected-actions,
.leave-approved-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.leave-rejected-actions .leave-action-btn,
.leave-approved-actions .leave-action-btn {
  min-width: 0;
}

.leave-action-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6E756F !important;
  font-size: 11px;
  text-align: right;
}

.leave-action-confirmed ion-icon {
  color: #4F8A5B;
  font-size: 16px;
}

/* ---------- Aksi pada daftar permohonan cuti ---------- */
.leave-request-item {
  align-items: flex-start !important;
  padding: 14px 16px !important;
}

.leave-request-item .detail {
  min-width: 0;
  flex: 1 1 auto;
}

.leave-request-item .leave-action {
  flex: 0 0 auto;
  padding-left: 12px;
  align-self: center;
}

/* Dua pilihan keputusan membutuhkan ruang penuh agar label tombol tetap rapi. */
.leave-request-item.leave-request-decision {
  display: block !important;
}

.leave-request-item.leave-request-decision .detail {
  width: 100%;
}

.leave-request-item.leave-request-decision .leave-action {
  width: 100%;
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #FFF1F4;
}

.leave-request-item.leave-request-decision .leave-rejected-actions,
.leave-request-item.leave-request-decision .leave-approved-actions {
  width: 100%;
  gap: 9px;
}

.leave-request-item.leave-request-decision .leave-action-btn {
  width: 100%;
  min-height: 40px;
  padding: 8px 6px;
  font-size: 12px;
}

.leave-action-btn {
  min-width: 104px;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 11px;
  white-space: normal;
  line-height: 1.15;
}

.leave-action-btn ion-icon {
  vertical-align: -2px;
  font-size: 15px;
}

@media only screen and (max-width: 360px) {
  .leave-request-item {
    padding: 12px !important;
  }

  .leave-request-item .leave-action {
    padding-left: 8px;
  }

  .leave-action-btn {
    min-width: 86px;
    font-size: 10px;
  }
}

/* ---------- Stat Box (Check-in / Check-out) ---------- */
.stat-box.bg-danger {
  background: linear-gradient(135deg, #9F1239, var(--amanda-brown)) !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(136, 19, 55, 0.3);
}

.stat-box.bg-success {
  background: linear-gradient(135deg, var(--amanda-tan), #B8956A) !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(184, 149, 106, 0.3);
}

.stat-box.bg-secondary {
  background: linear-gradient(135deg, #C4B5A5, #A89888) !important;
  border-radius: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.btn-danger {
  background: linear-gradient(135deg, var(--amanda-brown), var(--amanda-gold)) !important;
  border-color: var(--amanda-brown) !important;
  color: var(--amanda-white) !important;
  box-shadow: 0 3px 10px rgba(136, 19, 55, 0.25);
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active {
  background: linear-gradient(135deg, #6F0F2D, #a07a3d) !important;
  border-color: #6F0F2D !important;
  transform: translateY(-1px);
}
.btn-danger.disabled, .btn-danger:disabled {
  background: var(--amanda-brown) !important;
  border-color: var(--amanda-brown) !important;
  opacity: 0.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amanda-brown), var(--amanda-gold)) !important;
  border-color: var(--amanda-brown) !important;
  color: var(--amanda-white) !important;
  box-shadow: 0 3px 10px rgba(136, 19, 55, 0.25);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  background: linear-gradient(135deg, #6F0F2D, #a07a3d) !important;
  border-color: #6F0F2D !important;
}

.btn-outline-danger {
  background: transparent;
  border-color: var(--amanda-brown) !important;
  color: var(--amanda-brown) !important;
}
.btn-outline-danger:hover, .btn-outline-danger:active {
  background: rgba(136, 19, 55, 0.12) !important;
  border-color: var(--amanda-brown) !important;
  color: var(--amanda-brown) !important;
}
.btn-outline-danger.active {
  background: var(--amanda-brown) !important;
  color: #FFF !important;
  border-color: var(--amanda-brown) !important;
}

.btn-outline-primary {
  border-color: var(--amanda-brown) !important;
  color: var(--amanda-brown) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:active {
  background: rgba(136, 19, 55, 0.12) !important;
  border-color: var(--amanda-brown) !important;
  color: var(--amanda-brown) !important;
}
.btn-outline-primary.active {
  background: var(--amanda-brown) !important;
  color: #FFF !important;
  border-color: var(--amanda-brown) !important;
}

.btn-text-danger {
  color: var(--amanda-brown) !important;
}
.btn-text-danger:active, .btn-text-danger.active {
  background: rgba(136, 19, 55, 0.12) !important;
  color: var(--amanda-brown) !important;
}

/* ---------- Text Colors ---------- */
.text-danger,
a.text-danger {
  color: var(--amanda-brown) !important;
}

.text-primary,
a.text-primary {
  color: var(--amanda-brown) !important;
}

/* ---------- Badge ---------- */
.badge-danger,
a.badge-danger {
  background: var(--amanda-brown) !important;
}

/* Unread notification counter on the application bell. */
.notification-indicator {
  position: absolute;
  top: 7px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

/* A single, compact notification button is used for leave and permission. */
.appHeader .compact-notification {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 62px !important;
  margin-right: 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.appHeader .compact-notification:hover,.appHeader .compact-notification:focus { background: rgba(15,23,42,.05) !important; }
.compact-notification ion-icon { color: #334155 !important; font-size: 24px !important; }
.compact-notification .notification-indicator {
  top: 12px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border: 2px solid var(--amanda-brown);
  border-radius: 9px;
  background: #e64b4b;
  font-size: 8px;
  line-height: 11px;
  box-shadow: 0 2px 5px rgba(136, 19, 55,.28);
}

/* Native mobile camera input; opened by the visible attendance button. */
.absent-camera-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep the native file input out of the touch area.  The label remains the
   only tappable control and opens the smartphone camera through its `for`.
   This prevents the generic file-input rule below from creating an invisible
   layer over the attendance button. */
label[for="absent-camera-input"] {
  position: relative;
  z-index: 1;
  display: flex !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* The theme has display rules for form groups, so use !important to ensure
   the attendance trigger disappears while the live camera preview is open. */
.attendance-trigger-hidden {
  display: none !important;
}

/* wallet-footer is a flex container. Keep each attendance state at the full
   card width so the trigger cannot shrink to its text width after Batal. */
.wallet-card .wallet-footer .webcam-capture-body,
.wallet-card .wallet-footer .attendance-camera-panel {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.wallet-card .wallet-footer .webcam-capture-body {
  display: block;
}

.attendance-camera-panel {
  margin-top: 10px;
}

.attendance-camera-panel video {
  display: block;
  width: 100%;
  max-height: 40vh;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}

.attendance-camera-actions {
  margin-top: 10px;
}

/* ---------- Alert ---------- */
.alert-danger {
  background: var(--amanda-brown) !important;
  border: 1px solid var(--amanda-brown) !important;
  color: #fff;
}

.alert-outline-danger {
  background: transparent;
  color: var(--amanda-brown) !important;
  border: 1px solid var(--amanda-brown) !important;
}
.alert-outline-danger a {
  color: var(--amanda-brown) !important;
}
.alert-outline-danger .close {
  color: var(--amanda-brown) !important;
}

/* ---------- Chip ---------- */
.chip-danger {
  background: var(--amanda-brown) !important;
}
.chip-danger.chip-outline {
  color: var(--amanda-brown) !important;
  box-shadow: inset 0 0 0 1px var(--amanda-brown) !important;
}

/* ---------- Sidebar Icon Boxes ---------- */
.icon-box.bg-danger {
  background: var(--amanda-brown) !important;
}

/* ---------- Table ---------- */
.table.bg-danger {
  background: linear-gradient(135deg, #9F1239, var(--amanda-brown)) !important;
  border-radius: 12px;
  overflow: hidden;
}

.table-dark.bg-danger {
  background: linear-gradient(135deg, #9F1239, var(--amanda-brown)) !important;
}

.table-dark.bg-danger thead th {
  background: rgba(0,0,0,0.1);
  border-color: rgba(255,255,255,0.15);
}

.table-dark.bg-danger tbody tr {
  border-color: rgba(255,255,255,0.1);
}

/* ---------- Cards ---------- */
.card {
  border: none;
  box-shadow: 0 2px 12px rgba(136, 19, 55, 0.08);
  border-radius: 12px;
}

/* ---------- Section Title ---------- */
.section-title {
  color: #5C3D28;
}

/* ---------- Sidebar Panel ---------- */
.modal.panelbox .modal-content {
  background: #FFFFFF;
}

.profileBox {
  background: #881337;
}

.profileBox .in strong {
  color: var(--amanda-white);
}

.profileBox .text-muted {
  color: rgba(255,255,255,0.8) !important;
}

.listview-title {
  color: var(--amanda-brown);
}

/* ---------- Form Controls ---------- */
.form-control:focus {
  border-color: #9F1239 !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 154, 108, 0.25) !important;
}

/* ---------- Custom Switch/Toggle ---------- */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--amanda-brown) !important;
  border-color: var(--amanda-brown) !important;
}

/* ---------- Transactions / Stats items ---------- */
.transactions .item .detail .title {
  color: #5C3D28;
}

/* ---------- Loader ---------- */
#loader {
  background: #F8FAFC !important;
}

.spinner-border.text-primary {
  color: var(--amanda-brown) !important;
}

/* Logo pembuka halaman membesar perlahan, tanpa animasi berputar. */
#loader .loading-icon{
  width:78px!important;
  height:auto!important;
  max-height:78px!important;
  object-fit:contain!important;
  animation:amandaLoaderScale .9s ease-in-out infinite alternate!important;
}
/*@keyframes amandaLoaderScale{
  from{transform:scale(.72);opacity:.72}
  to{transform:scale(2.28);opacity:1}*/
  @keyframes amandaLoaderScale{
  from{transform:scale(2.28);opacity:.72}
  to{transform:scale(.10);opacity:1}
}

/* ---------- Select dropdown ---------- */
.select {
  color: var(--amanda-brown);
}

::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.3);
  background-color: #F5F5F5;
}

::-webkit-scrollbar{
  width:8px;
  background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb{
  background-color: #000000;
}


.loading {
  display: none;
  position: fixed;
  top:60px;
  right: 20px;
  z-index:999999;
}

.wallet-card .wallet-footer .webcame{
  display:inline-block;
  text-align: center;
  align-items: flex-start;
  justify-content: space-between;
  margin:auto;
}

.wallet-card .wallet-footer .webcame canvas {
    width:600px;
    height:auto;
    border-radius: 10px;
    overflow:hidden;
}


div.dataTables_filter label {
    font-weight: normal;
    white-space: nowrap;
    text-align: left;
    float: right;
}


/* --------------------------------
    Pagination
-----------------------------------*/
div.dataTables_paginate ul.pagination{
  float: right;
}
div.dataTables_info {
    padding-top: 8px;
    padding-left: 10px;
    white-space: nowrap;
}

.pagination>li>a, .pagination>li>span {
  margin: 0 1px;
  color: #333;
  padding:5px 10px;
  line-height:33px;
  font-weight:500;
  font-size:14px;
  background-color: var(--amanda-white);
  border:solid 1px #eee;
}

.pagination>li>a:hover{
    color: var(--amanda-white);
    background:var(--amanda-brown);
    border-color:var(--amanda-brown);
}

.pagination>li:first-child>a, .pagination>li:first-child>span{
    margin-left: 0;
    border-top-left-radius: 20px;
    border-bottom-left-radius:20px;
}

.pagination>li:last-child>a, .pagination>li:last-child>span {
    border-top-right-radius: 20px;
    border-bottom-right-radius:20px;
}

.pagination>.active>a, .pagination>.active>a:focus,
.pagination>.active>a:hover, .pagination>.active>span,
.pagination>.active>span:focus, .pagination>.active>span:hover {
    z-index: 2;
    color: var(--amanda-white);
    cursor: default;
    background:var(--amanda-brown);
    border-color:var(--amanda-brown);
  
}
.avatar-section {
  position: relative;
}
.avatar-section input[type="file"] {
  display: inline-block;
  opacity: 0;
  position: absolute;
  margin-left: 20px;
  margin-right: 20px;
  padding-top: 30px;
  padding-bottom: 67px;
  width: 85%;
  z-index: 99;
  margin-top: 10px;
  cursor:pointer;
}

.avatar-section .avatar-upload {
  display: none !important;
}

.avatar-upload-options {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.avatar-upload-options label {
  margin: 0;
}


/* --------- WEBCAME -----------*/
.webcam-capture-body{
  display: inline-block;
  text-align: center;
  margin: auto;
}

.webcam-capture,
.webcam-capture video{
  display: inline-block;
  width:100%!important;
  height: auto!important;
  margin:auto;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
}


.webcam-capture-body .webcam-camera{
  position: relative;
  background:var(--amanda-white);
  padding:20px;
  border:solid 1px #eeeeee;
  border-radius:20px;
  width:100%;
  height: auto;
}

.webcam-capture-body .webcam-camera img{
  width:100%;
  object-fit: cover;
  background: #eeeeee;
  border: solid 1px #eeeeee;
  border-radius: 10px;
  margin-bottom: 10px;
}


.webcam-capture-body  input[type="file"] {
  display: inline-block;
  opacity:0;
  position: absolute;
  margin-left: 0px;
  margin-right: 0px;
  padding-top:15px;
  padding-left:25px;
  width: 100%;
  height: 60px;
  z-index: 99;
  cursor: pointer;
}




.select {
  cursor: pointer;
  background-color: transparent;
  box-shadow: none;
  border: 0px;
  font-size: 15px;
  font-weight: 500;
}




/*-----------------------
 Upload Image
--------------------------*/

.upload-media{
    background: var(--amanda-white);
    background-size: 100%!important;
    border:solid 1px #eeeeee;
    height:100px;
    width:100px;
    cursor:pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 10px;
    position:relative;
    overflow: hidden;
}
 

.upload-media:hover{
    background: #fbfbfb;
    -webkit-box-shadow: 0px 0px 10px 1px rgba(217,217,217,1);
    -moz-box-shadow: 0px 0px 10px 1px rgba(217,217,217,1);
    box-shadow: 0px 0px 10px 1px rgba(217,217,217,1);
}

.upload-media input.upload-hidden{
    width:100%;height:100px;
    position:absolute!important;
    top:0!important;
    left:0!important;
    padding:0; 
    margin-top:0px; 
    margin-left:0px;
    opacity:0!important;
    cursor:pointer;
    display: block !important;
}

.upload-media i{
  font-size: 30px;
  color: #999999;
  line-height:96px;
}
    
.upload-media img {
    vertical-align:middle;
    width:100px;
    height:100px;
    background-size: 100%;
    object-fit: contain;
  }
.upload-media .images{opacity: 0}
.upload-media .images:hover{
    opacity:1
}

.upload-content{
    position: relative;
}

.upload-content .btn.btn-primary .upload-files{
    width:100%;height:100px;
    position:absolute!important;
    top:0!important;
    left:0!important;
    padding:0; 
    margin-top:0px; 
    margin-left:0px;
    opacity:0!important;
    cursor:pointer;
    display: block !important;
}


@media only screen and (max-width:690px){
  .wallet-card .wallet-footer .webcame canvas {
    width: 100%;
    height:auto;
  }
}
@media only screen and (max-width:480px){
  .wallet-card .wallet-footer .webcame canvas {
    width: 100%;
    height:230px;
  }
  
  div.dataTables_filter label {
    float:left;
  }
  div.dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: 180px;
  }

  .wallet-card {
    padding:10px 15px;
    position: relative;
    z-index: 1;
  }
  .stat-box .value {
      font-size:15px;
  }

  .hidden-sm{
    display: none;
  }
}

@media print {
  .hidden-print {
    display: none !important;
  }
  a[href]:after {
    content: none !important;
  }

 header, footer, aside, nav, form, iframe, .menu, .hero, .adslot{
    display: none;
  }

}

/* ---------- Unified mobile application theme (Amanda Maroon + Cool Slate) ---------- */
body,#appCapsule{font-family:Inter,"Segoe UI","Source Sans Pro",Arial,sans-serif!important;color:#0F172A!important;background:#F8FAFC!important;font-size:14px!important;line-height:1.5!important}#appCapsule{padding:70px 14px 84px!important;min-height:100vh}.section{margin:0 0 18px!important}.section-title{margin:0 2px 12px!important;color:#0F172A!important;font-size:19px!important;font-weight:700!important;line-height:1.35!important}.section-title.small,.section-title.medium{font-size:16px!important}.card{border:1px solid #E2E8F0!important;border-radius:16px!important;background:#FFFFFF!important;box-shadow:0 4px 16px rgba(15,23,42,.055)!important}.card .card-body{padding:16px!important}.card .card-header{padding:13px 16px!important;border-color:#E2E8F0!important;color:#0F172A!important;font-weight:700!important}.form-group{margin-bottom:13px!important}.form-control,.custom-select,select.form-control{height:44px!important;border:1px solid #CBD5E1!important;border-radius:10px!important;background:#FFFFFF!important;color:#0F172A!important;font-family:inherit!important;font-size:14px!important;box-shadow:none!important}.form-control::placeholder{color:#94A3B8!important}.form-control:focus,.custom-select:focus{border-color:#881337!important;box-shadow:0 0 0 3px rgba(136,19,55,.12)!important}.input-group-text,.input-group-addon{border-color:#CBD5E1!important;background:#F8FAFC!important;color:#475569!important}.btn{min-height:42px;border-radius:10px!important;font-family:inherit!important;font-size:14px!important;font-weight:700!important;letter-spacing:0!important}.btn-sm{min-height:auto!important;font-size:12px!important}.btn-danger,.btn-primary{background:#881337!important;background-image:none!important;border:0!important;box-shadow:0 4px 12px rgba(136,19,55,.18)!important}.btn-success{background:#15803D!important;border-color:#15803D!important;box-shadow:0 4px 10px rgba(21,128,61,.16)!important}.btn-outline-danger,.btn-outline-primary{border-color:#881337!important;color:#881337!important;background:#FFFFFF!important}.listview>li .item,.transactions .item{border-color:#E2E8F0!important}.listview>li .item .in .text .title,.transactions .item .detail strong{color:#0F172A!important;font-size:15px!important;font-weight:700!important}.text-muted{color:#64748B!important}.appHeader{height:52px!important}.appHeader .headerButton{height:52px!important;min-width:37px!important}.appHeader .headerButton ion-icon{font-size:25px!important}.appHeader .pageTitle .logo{max-height:31px!important}.appBottomMenu{height:68px!important;padding-bottom:2px!important}.appBottomMenu .item .col{padding-top:7px!important}.appBottomMenu .item ion-icon{font-size:25px!important}.appBottomMenu .item strong{margin-top:1px!important;font-size:10px!important;font-weight:600!important}.badge,.label{font-family:inherit!important;font-weight:600!important}.table{font-size:12px!important}.table thead th{color:#475569!important;background:#F8FAFC!important;border-color:#E2E8F0!important;font-weight:700!important}.table td{border-color:#E2E8F0!important;vertical-align:middle!important}@media(max-width:380px){#appCapsule{padding-left:12px!important;padding-right:12px!important}.section-title{font-size:18px!important}.form-control,.custom-select,select.form-control{font-size:13px!important}.appBottomMenu .item strong{font-size:9px!important}}

/* Safe area keeps header controls below the device status bar/notch. */
:root{--app-safe-top:env(safe-area-inset-top,0px)}
.appHeader{height:calc(35px + var(--app-safe-top))!important;padding-top:var(--app-safe-top)!important;box-sizing:border-box!important}
.appHeader .left,.appHeader .right{top:var(--app-safe-top)!important;height:35px!important}
#appCapsule{padding-top:calc(70px + var(--app-safe-top))!important}
@media (display-mode:standalone){:root{--app-safe-top:24px}}

/* Safe area untuk perangkat layar penuh: header, menu bawah, dan formulir
   tidak boleh tertutup oleh status bar atau tombol navigasi perangkat. */
@media (max-width:767px){
  :root{--app-safe-top:max(env(safe-area-inset-top,0px),24px);--app-safe-bottom:max(env(safe-area-inset-bottom,0px),14px)}
  .appHeader .pageTitle{top:var(--app-safe-top)!important;height:62px!important;display:flex!important;align-items:center!important}
  .appHeader .progress{top:calc(50px + var(--app-safe-top))!important}
  #appCapsule{padding-top:calc(70px + var(--app-safe-top))!important;padding-bottom:calc(88px + var(--app-safe-bottom))!important}
  .appBottomMenu{height:calc(68px + var(--app-safe-bottom))!important;padding-bottom:calc(2px + var(--app-safe-bottom))!important;box-sizing:border-box!important}
  .modalbox,.action-sheet{padding-top:calc(8px + var(--app-safe-top))!important;padding-bottom:var(--app-safe-bottom)!important}
  .modalbox .modal-dialog,.action-sheet .modal-dialog{display:flex!important;align-items:flex-end!important;min-height:calc(100% - var(--app-safe-top) - var(--app-safe-bottom))!important;margin:0!important;padding:0 8px!important}
  .modalbox .modal-content,.action-sheet .modal-content{display:flex!important;flex-direction:column!important;max-height:calc(100vh - var(--app-safe-top) - var(--app-safe-bottom) - 16px)!important;margin:0 auto!important;overflow:hidden!important;border-radius:18px 18px 14px 14px!important}
  .modalbox .modal-header,.action-sheet .modal-header{flex:0 0 auto!important;padding:16px 18px!important}
  .modalbox .modal-body,.action-sheet .modal-body{flex:1 1 auto!important;max-height:none!important;padding:16px 18px calc(20px + var(--app-safe-bottom))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  .modalbox .modal-body .btn-block:last-child,.action-sheet .modal-body .btn-block:last-child{margin-bottom:4px!important}

  /* Form izin/cuti/kunjungan memakai modal responsif yang rapi untuk layar mobile.
     Header tetap terlihat, isi form dapat digulir mulus, tanpa ruang kosong berlebih. */
  .modalbox .modal-dialog{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:540px!important;
    min-height:calc(100dvh - 20px - var(--app-safe-top) - var(--app-safe-bottom))!important;
    margin:0 auto!important;
    padding:10px!important;
    box-sizing:border-box!important;
  }
  .modalbox .modal-content{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    max-height:calc(100dvh - 24px - var(--app-safe-top) - var(--app-safe-bottom))!important;
    margin:0!important;
    padding-top:0!important;
    border:0!important;
    border-radius:18px!important;
    box-shadow:0 20px 50px rgba(15,23,42,.26)!important;
    overflow:hidden!important;
  }
  .modalbox .modal-header{
    position:relative!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    width:auto!important;
    min-height:58px!important;
    padding:14px 18px!important;
    border-radius:18px 18px 0 0!important;
  }
  .modalbox .modal-body{
    flex:1 1 auto!important;
    min-height:0!important;
    padding:16px 16px calc(18px + var(--app-safe-bottom))!important;
    background:#F8FAFC!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .modalbox #form-add-leave,.modalbox #form-update-leave,.modalbox .form-add-izin,.modalbox .form-edit-izin{padding-bottom:18px!important}
}
.app-page-heading{display:flex!important;flex-direction:column;margin:4px 2px 17px!important;color:#4a3425!important;font-size:20px!important;font-weight:700!important;line-height:1.25!important}.app-page-heading small{display:block;margin-top:4px;color:#9a928e!important;font-size:12px!important;font-weight:400!important;line-height:1.45!important}.section-title:not(.app-page-heading):not(.notification-group-title){font-size:16px!important;margin-top:17px!important}.notification-group-title{font-size:16px!important}

/* Ruang teks seragam pada semua form aplikasi agar tidak menempel ke tepi. */
#appCapsule input.form-control:not([type="file"]),
#appCapsule textarea.form-control,
#appCapsule select.form-control,
#appCapsule .custom-select {
  padding-left: 14px !important;
  padding-right: 14px !important;
}
#appCapsule textarea.form-control {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
#appCapsule select.form-control,
#appCapsule .custom-select {
  padding-right: 38px !important;
}
#appCapsule .input-group .form-control {
  padding-left: 14px !important;
  padding-right: 10px !important;
}
#appCapsule .input-group-addon,
#appCapsule .input-group-text {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
#appCapsule .attendance-data-card .dataTables_length select,
#appCapsule .dataTables_wrapper .dataTables_length select {
  width: 62px !important;
  min-width: 62px !important;
  padding: 3px 19px 3px 10px !important;
}

/* ---------- Shared actions and employee identity ---------- */
/* The same action always has the same meaning throughout the employee app. */
.leave-action-confirm,.btn-confirm-leave,.btn-confirm-rejected-leave{background:#15803D!important;border-color:#15803D!important;color:#fff!important;box-shadow:0 4px 9px rgba(21,128,61,.16)!important}.leave-action-reapply,.btn-update-leave[data-action="reapply"],.btn-update-leave[data-action="reapply-approved"]{background:#D97706!important;border-color:#D97706!important;color:#fff!important;box-shadow:0 4px 9px rgba(217,119,6,.16)!important}.leave-action-confirm:hover,.btn-confirm-leave:hover,.btn-confirm-rejected-leave:hover{background:#166534!important;color:#fff!important}.leave-action-reapply:hover,.btn-update-leave[data-action="reapply"]:hover,.btn-update-leave[data-action="reapply-approved"]:hover{background:#B45309!important;color:#fff!important}.leave-action-btn,.feedback-actions .btn{min-height:38px!important;padding:8px 12px!important;border-radius:10px!important;white-space:nowrap!important}
/* Employee names use the same visual hierarchy as Data Permohonan Cuti. */
.employee-identity-name,.approval-head strong,.leave-approval-item .detail>div>strong,.leave-request-item .detail>div>strong,.subordinate-card-head h3{display:block!important;margin:0!important;color:#0F172A!important;font-size:16px!important;font-weight:700!important;line-height:1.32!important}.employee-identity-code,.approval-head small,.subordinate-card-head p{display:block!important;margin:3px 0 0!important;color:#64748B!important;font-size:12px!important;font-weight:500!important;line-height:1.35!important}.approval-head .employee-identity{min-width:0!important}.approval-head .employee-identity-name{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.permission-request-item{align-items:flex-start!important}.permission-request-item .detail{min-width:0!important}.permission-request-heading{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin-bottom:7px!important}.permission-request-heading .badge{padding:5px 9px!important;border-radius:12px!important;font-size:11px!important}.permission-request-item p{margin:0!important;color:#64748B!important;font-size:13px!important;line-height:1.6!important}.permission-request-item p ion-icon{vertical-align:-2px!important;margin-right:3px!important;color:#94A3B8!important}.permission-attachment{display:inline-flex!important;align-items:center!important;gap:4px!important;margin-top:9px!important;padding:5px 9px!important;border-radius:10px!important;background:#F3E8FF!important;color:#6D28D9!important;font-size:12px!important;font-weight:700!important}.permission-attachment ion-icon{font-size:15px!important}.permission-request-item .right{align-self:center!important}

/* ---------- Halaman pusat persetujuan ---------- */
.approval-hub{display:grid!important;gap:13px!important}.approval-choice{position:relative!important;display:flex!important;align-items:center!important;min-height:112px!important;gap:13px!important;padding:16px!important;overflow:hidden!important;border:1px solid #E2E8F0!important;border-radius:16px!important;background:#FFFFFF!important;box-shadow:0 4px 16px rgba(15,23,42,.06)!important;color:#0F172A!important;text-decoration:none!important}.approval-choice:before{position:absolute!important;top:0!important;bottom:0!important;left:0!important;width:5px!important;background:linear-gradient(180deg,#881337,#6F0F2D)!important;content:""}.approval-choice:hover,.approval-choice:focus{color:#0F172A!important;transform:translateY(-1px)!important;box-shadow:0 8px 20px rgba(15,23,42,.10)!important}.approval-choice-icon{display:flex!important;flex:0 0 50px!important;align-items:center!important;justify-content:center!important;width:50px!important;height:50px!important;border-radius:14px!important;background:linear-gradient(135deg,#881337,#6F0F2D)!important;box-shadow:0 4px 12px rgba(136,19,55,.18)!important}.approval-choice-permission .approval-choice-icon{background:linear-gradient(135deg,#0284C7,#0369A1)!important;box-shadow:0 4px 12px rgba(2,132,199,.18)!important}.approval-choice-icon ion-icon{color:#fff!important;font-size:26px!important}.approval-choice-content{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important}.approval-choice-label{margin-bottom:3px!important;color:#881337!important;font-size:10px!important;font-weight:700!important;letter-spacing:.09em!important}.approval-choice-content strong{overflow:hidden!important;color:#0F172A!important;font-size:16px!important;font-weight:700!important;line-height:1.3!important;text-overflow:ellipsis!important;white-space:nowrap!important}.approval-choice-content small{margin-top:3px!important;color:#64748B!important;font-size:11px!important;font-weight:500!important;line-height:1.4!important}.approval-choice-meta{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:flex-end!important;justify-content:space-between!important;align-self:stretch!important;gap:10px!important}.approval-choice-count{display:inline-flex!important;padding:5px 8px!important;border-radius:9px!important;font-size:10px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important}.approval-choice-count.is-pending{background:#FEF3C7!important;color:#B45309!important}.approval-choice-count.is-empty{background:#F1F5F9!important;color:#64748B!important}.approval-choice-arrow{color:#881337!important;font-size:19px!important}@media(max-width:360px){.approval-choice{gap:10px!important;padding:14px!important}.approval-choice-icon{flex-basis:45px!important;width:45px!important;height:45px!important}.approval-choice-content strong{font-size:15px!important}.approval-choice-content small{font-size:10px!important}.approval-choice-count{padding:4px 6px!important;font-size:9px!important}}

/* ---------- Attendance check-in card ---------- */
.wallet-card-section:has(.attendance-checkin-card):before{height:202px!important;background:var(--amanda-brown)!important}.attendance-checkin-card{padding:22px!important;border-radius:16px!important;background:linear-gradient(135deg,var(--amanda-brown-dark),var(--amanda-brown),var(--amanda-gold))!important;box-shadow:0 4px 25px rgba(136, 19, 55,.3)!important}.attendance-checkin-card .balance{margin:0!important;align-items:flex-start!important}.attendance-checkin-card .balance .left{min-width:0!important}.attendance-checkin-card .balance .title{margin:0 0 8px!important;color:rgba(255,255,255,.85)!important;font-size:inherit!important;font-weight:500!important}.attendance-checkin-card .balance .total{margin:0!important;color:#fff!important;font-size:20px!important;font-weight:700!important;letter-spacing:-.01em!important;line-height:1em!important}.attendance-date{text-align:right!important;white-space:nowrap!important}.attendance-checkin-card .attendance-date .title,.attendance-checkin-card .attendance-date h4{color:#2f2030!important}.attendance-checkin-card .attendance-date .title{font-size:14px!important;font-weight:600!important}.attendance-checkin-card .attendance-date h4{margin:0!important;font-size:18px!important;font-weight:700!important}.attendance-schedule-summary{display:flex!important;flex-direction:column!important;align-items:flex-end!important;margin-top:15px!important;color:#2f2030!important;text-align:right!important;text-decoration:none!important}.attendance-schedule-label{display:block!important;font-size:16px!important;font-weight:700!important;line-height:1.2!important}.attendance-schedule-value{display:block!important;margin-top:4px!important;font-size:14px!important;font-weight:700!important;line-height:1.25!important}.attendance-schedule-time,.attendance-schedule-empty{display:block!important;font-size:14px!important;font-weight:600!important;line-height:1.25!important}.attendance-card-divider{height:1px!important;margin:16px 0 14px!important;background:rgba(255,255,255,.66)!important}.attendance-location-note{display:flex!important;align-items:flex-start!important;justify-content:center!important;gap:7px!important;min-height:42px!important;color:rgba(255,255,255,.82)!important;font-size:12px!important;line-height:1.45!important;text-align:center!important}.attendance-location-note ion-icon{flex:0 0 auto!important;margin-top:1px!important;font-size:17px!important;color:#FDA4AF!important}.attendance-location-note .latitude{display:none!important}.attendance-checkin-card .attendance-checkin-footer{display:block!important;margin:12px 0 0!important;padding:0!important;border:0!important}.attendance-checkin-card .webcam-capture-body{display:block!important;width:100%!important}.attendance-checkin-card #attendance-trigger{margin:0!important}.attendance-checkin-card label[for="absent-camera-input"]{height:62px!important;min-height:62px!important;border-radius:13px!important;background:#15803D!important;box-shadow:0 7px 15px rgba(21,128,61,.22)!important;font-size:18px!important}.attendance-checkin-card label[for="absent-camera-input"] ion-icon{margin-right:9px!important;font-size:29px!important}.attendance-checkin-card .attendance-camera-panel{margin-top:12px!important}.attendance-checkin-card .attendance-camera-actions .btn{min-height:48px!important}
@media(max-width:360px){.attendance-checkin-card{padding:19px!important}.attendance-checkin-card .balance .total{font-size:23px!important}.attendance-date h4{font-size:16px!important}}

/* Compact schedule information keeps the attendance card focused on its action. */
.attendance-checkin-card .attendance-date .title{font-size:12px!important;font-weight:600!important}.attendance-checkin-card .attendance-date h4{font-size:15px!important;line-height:1.2!important}.attendance-schedule-summary{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:12px!important;padding:8px 10px!important;border-radius:10px!important;background:rgba(255,255,255,.14)!important;text-align:left!important}.attendance-schedule-label{flex:0 0 auto!important;font-size:11px!important;font-weight:600!important}.attendance-schedule-value,.attendance-schedule-time,.attendance-schedule-empty{display:inline!important;margin:0!important;font-size:10px!important;font-weight:600!important;line-height:1.3!important;text-align:right!important}.attendance-schedule-value+.attendance-schedule-time:before{content:" · "!important}.attendance-card-divider{margin-top:13px!important}
.attendance-fake-gps-warning{display:flex!important;align-items:flex-start!important;gap:7px!important;margin:8px 0 0!important;padding:9px 10px!important;border:1px solid rgba(255,220,130,.55)!important;border-radius:9px!important;background:rgba(94,47,0,.28)!important;color:#fff3cd!important;font-size:10px!important;line-height:1.4!important;text-align:left!important}.attendance-fake-gps-warning ion-icon{flex:0 0 auto!important;margin-top:1px!important;font-size:16px!important;color:#ffd166!important}


/* ---------- Popup aplikasi presensi (Amanda Maroon + Cool Slate) ---------- */
.swal-overlay{background:rgba(15,23,42,.52)!important}.swal-modal{width:calc(100% - 32px)!important;max-width:390px!important;padding:22px 18px 18px!important;border:1px solid #E2E8F0!important;border-radius:16px!important;background:#FFFFFF!important;box-shadow:0 20px 46px rgba(15,23,42,.24)!important}.swal-title{margin:4px 0 9px!important;color:#0F172A!important;font-family:Inter,"Segoe UI","Source Sans Pro",Arial,sans-serif!important;font-size:20px!important;font-weight:700!important;line-height:1.35!important}.swal-text{padding:0!important;color:#475569!important;font-family:Inter,"Segoe UI","Source Sans Pro",Arial,sans-serif!important;font-size:13px!important;line-height:1.6!important;text-align:center!important}.swal-content__input{height:43px!important;border:1px solid #CBD5E1!important;border-radius:10px!important;color:#0F172A!important;font-family:Inter,"Segoe UI","Source Sans Pro",Arial,sans-serif!important;box-shadow:none!important}.swal-content__input:focus{border-color:#881337!important;box-shadow:0 0 0 3px rgba(136,19,55,.12)!important}.swal-footer{margin-top:18px!important;padding:0!important;text-align:center!important}.swal-button{min-width:94px!important;padding:10px 16px!important;border:0!important;border-radius:10px!important;background:#881337!important;background-image:none!important;box-shadow:0 4px 12px rgba(136,19,55,.20)!important;color:#FFFFFF!important;font-family:Inter,"Segoe UI","Source Sans Pro",Arial,sans-serif!important;font-size:13px!important;font-weight:700!important}.swal-button:hover,.swal-button:focus{background:#6F0F2D!important;transform:translateY(-1px)}.swal-button--cancel{border:1px solid #CBD5E1!important;background:#FFFFFF!important;box-shadow:none!important;color:#334155!important}.swal-button--cancel:hover,.swal-button--cancel:focus{background:#F8FAFC!important;color:#0F172A!important}.swal-button--danger{background:#DC2626!important;background-image:none!important}.swal-icon--success{border-color:#15803D!important}.swal-icon--success__line{background-color:#15803D!important}.swal-icon--success:before,.swal-icon--success:after,.swal-icon--success__hide-corners{background:#FFFFFF!important}.swal-icon--warning{border-color:#D97706!important}.swal-icon--warning__body,.swal-icon--warning__dot{background-color:#D97706!important}.swal-icon--error{border-color:#DC2626!important}.swal-icon--error__line{background-color:#DC2626!important}.swal-icon--info{border-color:#0284C7!important}.swal-icon--info:before{background-color:#0284C7!important}

@page:right{
  @bottom-right {
    content: counter(page);
  }
}

@page:left{
  @bottom-left {
    content: counter(page);
  }
}

/* ---------- Compact mobile content spacing ---------- */
/* Keep the first section as close to the header as it is to the screen edges. */
@media (max-width: 767px) {
  #appCapsule {
    padding-top: calc(50px + var(--app-safe-top)) !important;
  }

  /* Employee names share the same scale on Home and Presensi. */
  .wallet-card .balance .total,
  .attendance-checkin-card .balance .total {
    font-size: 17px !important;
  }

  /* Presensi card: reduce empty vertical space while preserving readability. */
  .attendance-checkin-card {
    padding: 18px !important;
  }
  .attendance-checkin-card .balance .title {
    margin-bottom: 5px !important;
  }
  .attendance-schedule-summary {
    margin-top: 9px !important;
    padding: 7px 10px !important;
  }
  .attendance-card-divider {
    margin: 10px 0 9px !important;
  }
  .attendance-location-note {
    min-height: 32px !important;
    line-height: 1.35 !important;
  }
  .attendance-fake-gps-warning {
    margin-top: 6px !important;
    padding: 7px 9px !important;
    line-height: 1.35 !important;
  }
  .attendance-checkin-card .attendance-checkin-footer {
    margin-top: 9px !important;
  }
  .attendance-checkin-card label[for="absent-camera-input"] {
    height: 56px !important;
    min-height: 56px !important;
  }
}

/* ============================================================
   UIUX002A — Login Presensi keyboard-safe flow
   Scope: login presentation only. Remove dependency on the legacy
   fixed-bottom .form-button-group and keep submit action in document flow.
   ============================================================ */
.employee-login-capsule {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.employee-login-hero {
  padding-top: 4px;
}

.employee-login-hero h1 {
  margin-bottom: 4px;
}

.employee-login-form {
  max-width: 560px;
  margin: 0 auto;
}

/* Important: login submit is NOT a .form-button-group anymore. */
#form-login .employee-login-actions {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: auto !important;
}

#form-login .employee-login-actions .btn {
  position: static !important;
  width: 100% !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  margin: 0 !important;
}

#form-login .employee-login-links {
  margin-top: 14px !important;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

.employee-login-actions .btn[disabled],
.employee-login-actions .btn.is-loading {
  opacity: .72;
  cursor: wait;
}

.employee-login-submit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

@media (max-width: 575.98px) {
  .employee-login-capsule {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: calc(42px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .employee-login-capsule > .section.mb-5 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .employee-login-form .card .card-body {
    padding-bottom: 12px !important;
  }
  #form-login .employee-login-actions {
    margin-top: 12px !important;
  }
  #form-login .employee-login-links {
    margin-top: 12px !important;
  }
}

/* With a software keyboard / short visual viewport, compact vertical spacing
   so the submit button remains reachable through a short scroll. */
@media (max-height: 700px) {
  .employee-login-capsule {
    min-height: auto !important;
    padding-top: calc(18px + env(safe-area-inset-top, 0px)) !important;
  }
  .employee-login-hero {
    margin-bottom: 8px !important;
  }
  .employee-login-hero h1 {
    font-size: 24px !important;
  }
  .employee-login-form .card .card-body {
    padding-top: 12px !important;
    padding-bottom: 10px !important;
  }
  #form-login .employee-login-actions {
    margin-top: 10px !important;
  }
  #form-login .employee-login-links {
    margin-top: 10px !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ==========================================================================
   AMANDA PORTAL — Split-Card Auth System (Deep Maroon / Burgundy Theme)
   Palet: Primary #881337 · Primary Alt #991B1B · Hover #7F1D1D · Soft #FEF2F2
   ========================================================================== */
.amanda-portal-corner-tl {
  position: fixed;
  top: -150px;
  left: -150px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: linear-gradient(135deg, #991B1B 0%, #881337 55%, #7F1D1D 100%);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 15px 40px rgba(127, 29, 29, 0.25);
}

.amanda-portal-corner-tl::before {
  content: "";
  position: absolute;
  top: 90px;
  left: 90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7F1D1D 0%, #4C0519 100%);
  opacity: 0.88;
}

.amanda-portal-corner-br {
  position: fixed;
  bottom: -160px;
  right: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: linear-gradient(135deg, #881337 0%, #7F1D1D 50%, #4C0519 100%);
  opacity: 0.94;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 -15px 40px rgba(76, 5, 25, 0.22);
}

.amanda-portal-corner-br::before {
  content: "";
  position: absolute;
  bottom: 80px;
  right: 80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7F1D1D 0%, #4C0519 100%);
  opacity: 0.90;
}

.amanda-portal-auth-canvas {
  position: relative !important;
  z-index: 10 !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(20px, 4vw, 40px) !important;
  background-color: #F8FAFC !important;
}

.amanda-portal-auth-card {
  width: 100%;
  max-width: 980px;
  min-height: 560px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1.05fr);
  overflow: hidden;
  transition: all 0.3s ease;
}

.amanda-portal-form-side {
  padding: clamp(34px, 4.5vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  text-align: center;
}

.amanda-auth-brand-logo {
  display: block;
  max-width: 260px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 4px;
}

/* Company Master branding for the employee portal login. */
.company-login-logo-grid{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;width:min(100%,340px);margin:0 auto 10px}.company-login-logo{display:inline-flex;align-items:center;justify-content:center;flex:0 1 130px;width:130px;max-width:140px;min-width:90px;height:52px;max-height:52px;padding:6px 12px;overflow:hidden;border:1px solid #e6ebf1;border-radius:10px;background:#fff;box-sizing:border-box}.company-login-logo img{display:block !important;max-width:100% !important;max-height:100% !important;width:auto !important;height:auto !important;object-fit:contain !important}.company-login-carousel{width:min(100%,350px);margin:0 auto 20px}.company-login-logo-grid--hero{width:100%;margin-bottom:8px}.company-login-logo-grid--hero .company-login-logo{border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.96);box-shadow:0 5px 14px rgba(76,5,25,.16)}.company-login-carousel__controls{display:none;justify-content:center;gap:6px}.company-login-carousel.has-controls .company-login-carousel__controls{display:flex}.company-login-carousel__controls button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:1px solid rgba(255,255,255,.42);border-radius:50%;color:#881337;background:rgba(255,255,255,.94);font-size:13px}.company-login-carousel__controls button:hover,.company-login-carousel__controls button:focus{color:#fff;background:#881337}.company-login-carousel.is-carousel-ready .company-login-logo-grid--hero .company-login-logo{display:none}.company-login-carousel.is-carousel-ready .company-login-logo-grid--hero .company-login-logo.is-visible{display:inline-flex}

.amanda-auth-hero-logo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.32));
}

.amanda-portal-hero-side {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(136, 19, 55, 0.90) 0%, rgba(127, 29, 29, 0.94) 50%, rgba(76, 5, 25, 0.97) 100%),
    url("../img/login-banner-city.jpg") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 5vw, 54px);
  text-align: center;
  color: #ffffff;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
}

.amanda-portal-form {
  max-width: 100% !important;
  margin: 0 !important;
}

.amanda-portal-alert {
  border-radius: 12px;
  font-size: 12.5px;
  margin-bottom: 16px;
  text-align: left;
}

@media (max-width: 860px) {
  .amanda-portal-auth-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: auto;
    border-radius: 20px;
  }
  .amanda-portal-hero-side {
    display: none;
  }
  .amanda-portal-form-side {
    padding: 36px 28px;
  }
  .amanda-portal-corner-tl {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
  }
  .amanda-portal-corner-br {
    width: 280px;
    height: 280px;
    bottom: -100px;
    right: -100px;
  }
}

@media (max-width: 440px) {
  .amanda-portal-auth-canvas {
    padding: 12px !important;
  }
  .amanda-portal-form-side {
    padding: 28px 18px;
  }
}

/* ==========================================================================
   FORCE DEEP MAROON / BURGUNDY — Override brown/gold btn-primary on Portal Login pages
   Theme: Primary #881337 · Primary Alt #991B1B · Hover #7F1D1D · Soft #FEF2F2
   ========================================================================== */

/* Submit pill buttons: override brownish .btn-primary from main custom.css */
.amanda-portal-auth-canvas .amanda-auth-submit-pill.btn,
.amanda-portal-auth-canvas .amanda-auth-submit-pill.btn-primary,
.amanda-guest-capsule .amanda-auth-submit-pill.btn,
.amanda-guest-capsule .amanda-auth-submit-pill.btn-primary,
.employee-login-capsule .amanda-auth-submit-pill.btn,
.employee-login-capsule .amanda-auth-submit-pill.btn-primary {
  background: #881337 !important;
  background-image: none !important;
  background-color: #881337 !important;
  border-color: #881337 !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 22px rgba(136, 19, 55, 0.30) !important;
}

.amanda-portal-auth-canvas .amanda-auth-submit-pill.btn:hover,
.amanda-portal-auth-canvas .amanda-auth-submit-pill.btn:focus,
.amanda-portal-auth-canvas .amanda-auth-submit-pill.btn:active,
.amanda-guest-capsule .amanda-auth-submit-pill.btn:hover,
.amanda-guest-capsule .amanda-auth-submit-pill.btn:focus,
.amanda-guest-capsule .amanda-auth-submit-pill.btn:active,
.employee-login-capsule .amanda-auth-submit-pill.btn:hover,
.employee-login-capsule .amanda-auth-submit-pill.btn:focus,
.employee-login-capsule .amanda-auth-submit-pill.btn:active {
  background: #6F0F2D !important;
  background-image: none !important;
  background-color: #6F0F2D !important;
  border-color: #6F0F2D !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(111, 15, 45, 0.36) !important;
}

/* Circle quick-access icons: override brownish icon color */
.amanda-portal-auth-canvas .amanda-auth-circle-icon,
.amanda-guest-capsule .amanda-auth-circle-icon,
.employee-login-capsule .amanda-auth-circle-icon {
  color: #64748B !important;
  border-color: #E2E8F0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.amanda-portal-auth-canvas .amanda-auth-circle-icon:hover,
.amanda-portal-auth-canvas .amanda-auth-circle-icon:focus,
.amanda-guest-capsule .amanda-auth-circle-icon:hover,
.amanda-guest-capsule .amanda-auth-circle-icon:focus,
.employee-login-capsule .amanda-auth-circle-icon:hover,
.employee-login-capsule .amanda-auth-circle-icon:focus {
  color: #881337 !important;
  border-color: #881337 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 5px 12px rgba(136, 19, 55, 0.16) !important;
}

/* Links on portal auth pages: Deep Maroon */
.amanda-portal-auth-canvas .amanda-auth-sublinks a,
.amanda-guest-capsule .amanda-auth-sublinks a,
.employee-login-capsule .amanda-auth-sublinks a {
  color: #881337 !important;
}
.amanda-portal-auth-canvas .amanda-auth-sublinks a:hover,
.amanda-guest-capsule .amanda-auth-sublinks a:hover,
.employee-login-capsule .amanda-auth-sublinks a:hover {
  color: #7F1D1D !important;
}

/* Input focus Deep Maroon */
.amanda-portal-auth-canvas .amanda-auth-input-pill .form-control:focus,
.amanda-guest-capsule .amanda-auth-input-pill .form-control:focus,
.employee-login-capsule .amanda-auth-input-pill .form-control:focus {
  border-color: #881337 !important;
  box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.12) !important;
}

