:root {
  --tide-900: #0b4f6c;
  --tide-500: #2189a6;
  --foam: #f3fafc;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html:has(body.app-body) {
  height: 100%;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

body.app-body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0b4f6c;
}

.app-phone {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #e8eef1;
  position: relative;
}

.app-phone > main,
.app-phone > .login-screen {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.app-phone > main:not(.home-page) {
  animation: pageRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-phone .glass-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(520px 260px at 50% -8%, rgba(61, 168, 194, 0.22), transparent 62%),
    #e8eef1;
}

.login-screen__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
}

@media (max-width: 539px) {
  html:has(body.app-body),
  body.app-body,
  .app-phone {
    height: 100dvh;
  }

  .login-screen {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@keyframes pageRise {
  from { opacity: 0; }
  to { opacity: 1; }
}

.impersonation-bar {
  flex: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: #b45309;
  color: #fff;
}

.impersonation-bar__text {
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.impersonation-bar__back {
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.app-topbar {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
  background: #0b4f6c;
  color: #fff;
  padding-top: env(safe-area-inset-top);
  user-select: none;
}

.app-topbar__inner {
  margin: 0;
  max-width: none;
  padding: 0.65rem 1rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.app-topbar__logo {
  height: 2.4rem;
  width: 2.4rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.16rem;
  box-shadow: none;
}

.app-topbar__back {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.app-topbar__back svg {
  width: 1.2rem;
  height: 1.2rem;
}

.app-topbar__text {
  min-width: 0;
}

.app-topbar__brand {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(213, 240, 246, 0.82);
}

.app-topbar__title {
  margin: 0.1rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}

.app-topbar__sub {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.app-dock {
  position: relative;
  inset: auto;
  z-index: 30;
  flex: 0 0 auto;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
}

.app-dock__bar {
  pointer-events: auto;
  margin: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0.3rem 0.2rem 0.28rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.app-dock__bar--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-dock__bar--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.app-dock__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  min-height: 3rem;
  border-radius: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.16s ease;
}

.app-dock__item:active {
  transform: scale(0.96);
}

.app-dock__item.is-active {
  color: #0b4f6c;
  background: transparent;
  box-shadow: none;
}

.app-dock__icon {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  transition: background 0.18s ease, width 0.18s ease;
}

.app-dock__item.is-active .app-dock__icon {
  width: 2.85rem;
  background: #e4f3f7;
}

.app-dock__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.app-dock__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.app-dock__item.is-active .app-dock__label {
  font-weight: 800;
}

@media (min-width: 540px) {
  body.app-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    background:
      radial-gradient(700px 320px at 50% 0%, #e7f2f5, transparent 60%),
      #c5d6de;
  }

  .app-phone {
    flex: none;
    width: min(400px, 100%);
    height: min(844px, 100%);
    border-radius: 36px;
    overflow: hidden;
    box-shadow:
      0 0 0 11px #12384a,
      0 0 0 13px #6d8b98,
      0 28px 70px rgba(10, 40, 55, 0.32);
    transform: translateZ(0);
  }

  .app-dock {
    padding-bottom: 0.15rem;
  }

  .app-dock::after {
    content: "";
    display: block;
    width: 6.5rem;
    height: 0.28rem;
    margin: 0.05rem auto 0.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.22);
  }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]),
select,
textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(61, 168, 194, 0.16);
}

.login-demo > summary {
  list-style: none;
  cursor: pointer;
}

.login-demo > summary::-webkit-details-marker {
  display: none;
}

.login-demo__summary {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.login-demo__hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.login-demo[open] .login-demo__hint {
  color: #1d6f8a;
}

.wave-bg {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(33, 137, 166, 0.35), transparent),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(11, 79, 108, 0.28), transparent);
  pointer-events: none;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(11, 79, 108, 0.08);
  backdrop-filter: blur(16px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-done {
  background: #dcfce7;
  color: #166534;
}

.status-wait {
  background: #fff7ed;
  color: #9a3412;
}

.status-off {
  background: #f1f5f9;
  color: #64748b;
}

.camera-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #083445;
  aspect-ratio: 3 / 4;
}

.camera-frame video,
.camera-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landmark-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: unset;
  pointer-events: none;
  z-index: 3;
}

.camera-oval {
  position: absolute;
  inset: 12% 18%;
  border: 2px solid rgba(174, 225, 236, 0.85);
  border-radius: 50%;
  box-shadow: inset 0 0 0 999px rgba(8, 52, 69, 0.28);
  pointer-events: none;
  z-index: 2;
}

.challenge-hint {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 1rem;
  background: rgba(8, 52, 69, 0.78);
  color: #eef9fb;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(8px);
  z-index: 4;
}

.floating-selfie {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 6;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.05rem;
  overflow: hidden;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 28px rgba(8, 52, 69, 0.4),
    0 0 0 1px rgba(61, 168, 194, 0.35);
  opacity: 0;
  transform: translate(42%, 55%) scale(3.25);
  transform-origin: top left;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.floating-selfie.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.floating-selfie.is-leaving {
  opacity: 0;
  transform: translate(-0.5rem, -0.5rem) scale(0.85);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.floating-selfie img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b4f6c;
}

.gps-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(174, 225, 236, 0.9);
  background: linear-gradient(160deg, #d5f0f6 0%, #eef9fb 55%, #cfe8f0 100%);
  min-height: 14rem;
}

.gps-map {
  width: 100%;
  height: 14rem;
  z-index: 0;
}

.gps-map-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e5a70;
  background: rgba(238, 249, 251, 0.72);
  backdrop-filter: blur(2px);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gps-map-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.gps-map-wrap .leaflet-container {
  font: inherit;
  background: #d5f0f6;
}

.gps-map-wrap .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.85);
  max-width: 70%;
}

.gps-map-wrap .leaflet-bar a {
  color: #0b4f6c;
}

.gps-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.gps-prompt-modal.hidden {
  display: none;
}

.gps-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 52, 69, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gps-prompt-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(8, 52, 69, 0.28);
  padding: 1.35rem 1.25rem 1.25rem;
  animation: gpsPromptIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gps-prompt-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d7f2f8, #b6e4ef);
  color: #0b4f6c;
  margin-bottom: 0.85rem;
}

/* Instruksi izin — fungsional, bukan dekoratif */
.perm-warn {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  background: #fff1f2;
}

.perm-warn__title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3412;
}

.perm-warn__list {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
  color: #44403c;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.perm-warn__list li + li {
  margin-top: 0.3rem;
}

.perm-warn__list strong {
  font-weight: 700;
  color: #1c1917;
}

@keyframes gpsPromptIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 640px) {
  .gps-prompt-modal {
    align-items: center;
  }
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.progress-steps span {
  height: 6px;
  border-radius: 999px;
  background: #d5f0f6;
  transition: background 0.25s ease, transform 0.25s ease;
}

.progress-steps span.active {
  background: linear-gradient(90deg, #2189a6, #0b4f6c);
  transform: scaleY(1.35);
}

.progress-steps span.done {
  background: #3da8c2;
}

.btn-primary {
  background: linear-gradient(135deg, #2189a6 0%, #0b4f6c 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(11, 79, 108, 0.28);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 79, 108, 0.32);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(4.7rem + env(safe-area-inset-bottom));
  z-index: 90;
  width: min(26rem, calc(100% - 2rem));
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: white;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(8, 52, 69, 0.22);
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast.ok { background: #166534; }
.toast.err { background: #9f1239; }

@keyframes slideup {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* —— Notifikasi tindak lanjut atasan —— */
.action-alert {
  position: relative;
  overflow: hidden;
  color: #5c2418;
  background:
    linear-gradient(135deg, #fff7f3 0%, #ffe8dc 48%, #ffd8c8 100%);
  border: 1.5px solid rgba(224, 122, 95, 0.55);
  box-shadow:
    0 14px 36px rgba(176, 74, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  isolation: isolate;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.action-alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #e07a5f 0%, #c45b3f 100%);
  border-radius: 1.6rem 0 0 1.6rem;
}

.action-alert:active {
  transform: scale(0.985);
}

.action-alert__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: actionAlertShine 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.action-alert__icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #e07a5f, #c45b3f);
  box-shadow: 0 10px 22px rgba(196, 91, 63, 0.35);
}

.action-alert__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 1.25rem;
  border: 2px solid rgba(224, 122, 95, 0.55);
  animation: actionAlertPulse 1.8s ease-out infinite;
  pointer-events: none;
}

.action-alert__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b4532a;
}

.action-alert__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.55rem;
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #e07a5f, #b4532a);
  box-shadow: 0 6px 14px rgba(180, 83, 42, 0.28);
  animation: actionAlertBadge 1.4s ease-in-out infinite;
}

.action-alert__cta {
  color: #9a3412;
  text-decoration: none;
}

@keyframes actionAlertShine {
  0%, 55% { transform: translateX(-130%); }
  75% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

@keyframes actionAlertPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  70%, 100% { transform: scale(1.28); opacity: 0; }
}

@keyframes actionAlertBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .action-alert__shine,
  .action-alert__pulse,
  .action-alert__badge,
  .nav-action-badge {
    animation: none !important;
  }
}

.nav-action-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #e07a5f, #b4532a);
  box-shadow: 0 0 0 2px #fff;
  animation: actionAlertBadge 1.4s ease-in-out infinite;
}

.safe-bottom {
  padding-bottom: 1.15rem;
}

.pulse-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid rgba(61, 168, 194, 0.45);
  animation: ripple 1.8s ease-out infinite;
}

.history-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  object-fit: cover;
  background: #d5f0f6;
}

/* —— Absensi flow —— */
.absen-flow {
  --absen-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.absen-hero {
  position: relative;
  overflow: hidden;
}

.absen-hero::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(61, 168, 194, 0.2), transparent 70%);
  pointer-events: none;
}

.absen-stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.1rem;
}

.absen-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 3.1rem;
}

.absen-stepper__dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  background: #e8f4f8;
  border: 2px solid transparent;
  transition:
    background 0.3s var(--absen-ease),
    color 0.3s var(--absen-ease),
    border-color 0.3s var(--absen-ease),
    transform 0.3s var(--absen-ease),
    box-shadow 0.3s var(--absen-ease);
}

.absen-stepper__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.absen-stepper__line {
  height: 3px;
  border-radius: 999px;
  background: #d5f0f6;
  margin-bottom: 1.15rem;
  transition: background 0.35s var(--absen-ease);
}

.absen-stepper__item.is-active .absen-stepper__dot {
  color: #fff;
  background: linear-gradient(135deg, #2189a6, #0b4f6c);
  box-shadow: 0 8px 18px rgba(11, 79, 108, 0.28);
  transform: scale(1.08);
}

.absen-stepper__item.is-active .absen-stepper__label {
  color: #0b4f6c;
}

.absen-stepper__item.is-done .absen-stepper__dot {
  color: #fff;
  background: #3da8c2;
}

.absen-stepper__item.is-done .absen-stepper__label {
  color: #1d6f8a;
}

.absen-stepper__line.is-done {
  background: linear-gradient(90deg, #3da8c2, #2189a6);
}

.absen-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(174, 225, 236, 0.95);
  background: rgba(238, 249, 251, 0.92);
  color: #1e5a70;
  padding: 0.85rem 1rem;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.absen-banner.hidden {
  display: none;
}

.absen-banner__icon {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: rgba(61, 168, 194, 0.18);
  margin-top: 0.05rem;
}

.absen-banner__text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.absen-banner.is-error {
  border-color: rgba(254, 202, 202, 0.95);
  background: #fff1f2;
  color: #9f1239;
}

.absen-banner.is-error .absen-banner__icon {
  background: rgba(244, 63, 94, 0.12);
}

.absen-banner.is-ok {
  border-color: rgba(167, 243, 208, 0.95);
  background: #ecfdf5;
  color: #166534;
}

.absen-banner.is-ok .absen-banner__icon {
  background: rgba(16, 185, 129, 0.14);
}

.absen-panel {
  transition:
    opacity 0.32s var(--absen-ease),
    transform 0.32s var(--absen-ease),
    filter 0.32s var(--absen-ease);
  will-change: opacity, transform;
}

.absen-panel.is-entering {
  animation: absenPanelIn 0.45s var(--absen-ease) both;
}

.absen-panel.is-leaving {
  animation: absenPanelOut 0.28s ease both;
  pointer-events: none;
}

@keyframes absenPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes absenPanelOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    filter: blur(3px);
  }
}

.absen-lazy {
  display: none;
}

.absen-lazy.is-visible {
  display: block;
  animation: absenPanelIn 0.35s var(--absen-ease) both;
}

.absen-lazy__card {
  border-radius: 1.5rem;
  padding: 1.25rem;
  min-height: 16rem;
  overflow: hidden;
  position: relative;
}

.absen-lazy__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: absenLazyShine 1.1s ease-in-out infinite;
  pointer-events: none;
}

.absen-lazy__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.absen-lazy__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: #d5f0f6;
}

.absen-lazy__stack {
  flex: 1;
  display: grid;
  gap: 0.45rem;
}

.absen-lazy__line {
  height: 0.7rem;
  border-radius: 999px;
  background: #d5f0f6;
}

.absen-lazy__line--title {
  width: 42%;
  height: 0.9rem;
}

.absen-lazy__line--sub {
  width: 68%;
}

.absen-lazy__block {
  height: 11rem;
  border-radius: 1.15rem;
  background: linear-gradient(160deg, #d5f0f6, #eef9fb 55%, #cfe8f0);
  margin-bottom: 1rem;
}

.absen-lazy__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.absen-lazy__btn {
  height: 2.85rem;
  border-radius: 1rem;
  background: #d5f0f6;
}

.absen-lazy__btn--primary {
  background: linear-gradient(135deg, rgba(33, 137, 166, 0.35), rgba(11, 79, 108, 0.28));
}

@keyframes absenLazyShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

#absenStepCaption {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#absenStepCaption.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

.absen-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #d5f0f6, #b6e4ef);
  color: #0b4f6c;
  position: relative;
}

.absen-icon--pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 1.2rem;
  border: 2px solid rgba(61, 168, 194, 0.35);
  animation: ripple 2s ease-out infinite;
}

.absen-icon--ok {
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
  color: #166534;
}

.absen-icon--ok::after {
  display: none;
}

.absen-icon--err {
  background: linear-gradient(145deg, #ffe4e6, #fecdd3);
  color: #9f1239;
}

.absen-icon--err::after {
  display: none;
}

.absen-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.absen-chip--wait {
  background: #fff7ed;
  color: #9a3412;
}

.absen-chip--ok {
  background: #dcfce7;
  color: #166534;
}

.absen-chip--err {
  background: #ffe4e6;
  color: #9f1239;
}

.absen-meta {
  border: 1px solid rgba(174, 225, 236, 0.55);
}

.absen-guide {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.absen-btn-secondary {
  border: 1px solid rgba(174, 225, 236, 0.95);
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, transform 0.15s ease;
}

.absen-btn-secondary:active {
  transform: scale(0.98);
  background: #eef9fb;
}

.absen-preview-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #eef9fb;
  border: 1px solid rgba(174, 225, 236, 0.7);
}

.absen-preview-card__label {
  margin: 0;
  padding: 0.45rem 0.7rem 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.absen-preview-card__img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #d5f0f6;
}

.gps-map-wrap {
  min-height: 15rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.gps-map {
  height: 15rem;
}

/* —— Monitoring kehadiran bawahan —— */
.team-shell {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 0.5rem;
}

.team-filter-wrap {
  position: sticky;
  top: 0.55rem;
  z-index: 25;
  padding: 0.7rem 0.75rem 0.8rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(174, 225, 236, 0.85);
  box-shadow: 0 10px 28px rgba(11, 79, 108, 0.08);
  backdrop-filter: blur(14px);
}

.team-filter-label__kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.team-filter-label__text {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.82rem;
  color: #334155;
}

.team-filter-label__text strong {
  color: #0b4f6c;
}

.team-range {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 1rem;
  background: #eef9fb;
}

.team-range__btn {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.55rem 0.2rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-range__btn.is-active {
  background: linear-gradient(135deg, #1e5a70, #0b4f6c);
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 79, 108, 0.25);
}

.team-range__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.team-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.team-block__step {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3da8c2;
}

.team-block__title {
  margin: 0.15rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #083445;
  line-height: 1.25;
}

.team-block__desc {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.team-block__pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  background: #ccfbf1;
  color: #0f766e;
}

.team-block__pill--mute {
  background: #e2e8f0;
  color: #475569;
}

.team-today {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 1.1rem 1.05rem 1rem;
  background: linear-gradient(155deg, #ffffff 0%, #eef9fb 100%);
  border: 1px solid rgba(174, 225, 236, 0.9);
  box-shadow: 0 12px 32px rgba(11, 79, 108, 0.08);
}

.team-today__glow {
  position: absolute;
  right: -1.2rem;
  top: -1.8rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 70%);
  pointer-events: none;
}

.team-today--mid .team-today__glow {
  background: radial-gradient(circle, rgba(224, 122, 95, 0.25), transparent 70%);
}

.team-today--low .team-today__glow {
  background: radial-gradient(circle, rgba(148, 163, 184, 0.3), transparent 70%);
}

.team-today__main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.team-today__title {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #083445;
  line-height: 1.3;
}

.team-today__title strong {
  font-weight: 800;
  font-size: 1.2rem;
}

.team-today__sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.team-today__meter {
  margin-top: 0.7rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.team-today__meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

.team-today--mid .team-today__meter-fill {
  background: linear-gradient(90deg, #fb923c, #e07a5f);
}

.team-today--low .team-today__meter-fill {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.team-today__split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.team-today__cell {
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.team-today__cell-val {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.team-today__cell-lbl {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.team-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1.15rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.team-alert--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.team-alert__icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 900;
  background: #fdba74;
  color: #9a3412;
}

.team-alert--ok .team-alert__icon {
  background: #6ee7b7;
  color: #065f46;
}

.team-alert__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #9a3412;
}

.team-alert--ok .team-alert__title {
  color: #065f46;
}

.team-alert__text {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #b45309;
}

.team-alert--ok .team-alert__text {
  color: #047857;
}

.team-summary {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(174, 225, 236, 0.75);
  box-shadow: 0 12px 32px rgba(11, 79, 108, 0.07);
}

.team-summary__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(145deg, #1e5a70 0%, #0b4f6c 55%, #083445 100%);
  color: #fff;
}

.team-summary__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(213, 240, 246, 0.85);
}

.team-summary__big {
  margin: 0.25rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.team-summary__big span {
  font-size: 1rem;
  opacity: 0.8;
  margin-left: 0.1rem;
}

.team-summary__meta {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: rgba(213, 240, 246, 0.9);
}

.team-summary__ring-wrap { flex-shrink: 0; }

.team-ring {
  --pct: 0;
  position: relative;
  width: 5.6rem;
  height: 5.6rem;
  flex-shrink: 0;
}

.team-ring--compact {
  width: 4.4rem;
  height: 4.4rem;
}

.team-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.team-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 9;
}

.team-ring__prog {
  fill: none;
  stroke: #5eead4;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: calc(326.73 - (326.73 * var(--pct) / 100));
  transition: stroke-dashoffset 0.8s ease;
}

.team-ring--light .team-ring__track { stroke: rgba(11, 79, 108, 0.12); }
.team-ring--light .team-ring__prog { stroke: #0d9488; }
.team-today--mid .team-ring--light .team-ring__prog { stroke: #e07a5f; }
.team-today--low .team-ring--light .team-ring__prog { stroke: #94a3b8; }

.team-ring__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
}

.team-ring__num {
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #083445;
}

.team-ring__unit {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.25rem;
}

.team-summary__metrics { display: grid; gap: 0; }

.team-metric {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid #eef2f7;
}

.team-metric__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-metric__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.team-metric__val {
  font-family: Sora, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #083445;
}

.team-metric__bar {
  margin-top: 0.45rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.team-metric__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2189a6, #0b4f6c);
}

.team-metric__bar--teal span { background: linear-gradient(90deg, #2dd4bf, #0d9488); }
.team-metric__bar--coral span { background: linear-gradient(90deg, #f0a58e, #e07a5f); }

.team-metric__hint {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: #94a3b8;
}

.team-panel {
  border-radius: 1.35rem;
  padding: 1rem 1.05rem 1.05rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(174, 225, 236, 0.7);
  box-shadow: 0 10px 28px rgba(11, 79, 108, 0.06);
}

.team-panel__title-row { margin-bottom: 0.85rem; }

.team-panel__h {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #083445;
}

.team-panel__s {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.team-compose {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-donut {
  width: 7rem;
  height: 7rem;
  flex-shrink: 0;
}

.team-donut__arc {
  opacity: 0;
  animation: team-arc-in 0.55s ease forwards;
}

@keyframes team-arc-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.team-donut__center-num {
  font-family: Sora, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  fill: #083445;
}

.team-donut__center-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  fill: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-compose__legend {
  flex: 1;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.team-compose__legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.team-compose__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.team-compose__name {
  flex: 1;
  min-width: 0;
  color: #475569;
}

.team-compose__pct {
  font-weight: 800;
  color: #083445;
  font-variant-numeric: tabular-nums;
}

.team-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.75rem 0.25rem;
  min-width: 0;
  overflow: visible;
}

.team-bars__col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.team-bars__track {
  width: 100%;
  height: 6.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 0.6rem 0.6rem 0.3rem 0.3rem;
  background: linear-gradient(180deg, rgba(213, 240, 246, 0.55), rgba(238, 249, 251, 0.3));
}

.team-bars__fill {
  width: 65%;
  max-width: 1.05rem;
  border-radius: 0.5rem 0.5rem 0.22rem 0.22rem;
  background: linear-gradient(180deg, #3da8c2 0%, #0b4f6c 100%);
  transform-origin: bottom;
  animation: team-bar-grow 0.45s ease both;
}

.team-bars__col.is-today .team-bars__fill {
  background: linear-gradient(180deg, #5eead4 0%, #0d9488 100%);
}

.team-bars__col.is-today .team-bars__lbl {
  color: #0d9488;
  font-weight: 800;
}

@keyframes team-bar-grow {
  from { transform: scaleY(0); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

.team-bars__pct {
  font-size: 0.56rem;
  font-weight: 800;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.team-bars__lbl {
  font-size: 0.52rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}

.team-bars__note {
  margin: 0.75rem 0 0;
  color: #7b8f99;
  font-size: 0.64rem;
  line-height: 1.45;
  text-align: center;
}

.team-list-group {
  margin: 0 0 0.45rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.team-person {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(174, 225, 236, 0.7);
  box-shadow: 0 8px 22px rgba(11, 79, 108, 0.05);
}

.team-person--warn {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffaf5, #ffffff);
}

.team-person__name {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #083445;
}

.team-person__meta {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: #64748b;
}

.team-person__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: #64748b;
}

.team-person__foot strong { color: #0b4f6c; }

.team-avatar {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Sora, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.team-avatar--ok { background: #ccfbf1; color: #0f766e; }
.team-avatar--mid { background: #ffedd5; color: #c2410c; }
.team-avatar--low { background: #e2e8f0; color: #475569; }

.team-daybadge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.22rem 0.48rem;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
}

.team-daybadge--ok { background: #ccfbf1; color: #0f766e; }
.team-daybadge--mid { background: #ffedd5; color: #c2410c; }
.team-daybadge--review { background: #fef3c7; color: #b45309; }
.team-daybadge--off { background: #f1f5f9; color: #64748b; }

.team-member__meter {
  height: 0.3rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.team-member__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s ease;
}

.team-member__fill--ok { background: linear-gradient(90deg, #2dd4bf, #0d9488); }
.team-member__fill--mid { background: linear-gradient(90deg, #fb923c, #e07a5f); }
.team-member__fill--low { background: linear-gradient(90deg, #94a3b8, #64748b); }

.team-footnote {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  padding: 0 0.75rem 0.25rem;
}

.team-dashboard.is-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.team-loading {
  position: fixed;
  left: 50%;
  bottom: calc(4.8rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(8, 52, 69, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(11, 79, 108, 0.28);
}

.team-loading.hidden { display: none; }

.team-loading__spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #5eead4;
  animation: team-spin 0.7s linear infinite;
}

@keyframes team-spin {
  to { transform: rotate(360deg); }
}

.team-shell,
.team-dashboard,
.team-block {
  min-width: 0;
}

.team-block__head > div,
.team-summary__hero > div:first-child {
  min-width: 0;
}

.team-block__title,
.team-person__name,
.team-person__meta,
.team-alert__text {
  overflow-wrap: anywhere;
}

.team-person__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.team-daybadge {
  flex: 0 1 auto;
  max-width: 9rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.team-compose__pct {
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .team-block__head {
    gap: 0.5rem;
  }

  .team-block__pill {
    padding: 0.3rem 0.5rem;
    font-size: 0.62rem;
    line-height: 1.25;
    white-space: normal;
  }

  .team-today__main {
    gap: 0.65rem;
  }

  .team-today__main > .team-ring {
    width: 4.6rem;
    height: 4.6rem;
  }

  .team-summary__hero {
    padding: 1rem;
  }

  .team-summary__ring-wrap .team-ring--compact {
    width: 3.9rem;
    height: 3.9rem;
  }

  .team-compose {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .team-donut {
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
  }

  .team-compose__legend {
    width: 100%;
  }

  .team-person {
    gap: 0.6rem;
    padding: 0.8rem;
  }

  .team-person__head {
    flex-direction: column;
    gap: 0.4rem;
  }

  .team-daybadge {
    max-width: 100%;
    margin: 0;
  }
}

.team-home-card {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 1.5rem;
  padding: 1.2rem 1.2rem 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 251, 0.88)),
    linear-gradient(120deg, #d5f0f6, #ffffff);
  border: 1px solid rgba(174, 225, 236, 0.75);
  box-shadow: 0 12px 36px rgba(11, 79, 108, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-home-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(11, 79, 108, 0.12);
}

.team-home-card__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.28rem;
  background: linear-gradient(180deg, #2189a6, #0d9488);
  border-radius: 1.5rem 0 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .team-donut__arc,
  .team-bars__fill,
  .team-loading__spinner {
    animation: none !important;
  }
  .team-ring__prog,
  .team-member__fill,
  .team-dashboard.is-loading {
    transition: none !important;
  }
}

/* —— Cuti / Sakit / Izin —— */
.leave-banner {
  border-radius: 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
}

.leave-banner--ok {
  border-color: #a7f3d0;
  background: rgba(236, 253, 245, 0.88);
}

.leave-banner__icon {
  margin-top: 0.1rem;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #d1fae5;
  color: #047857;
}

.leave-quota-glow {
  position: absolute;
  right: -20%;
  top: -40%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(33, 137, 166, 0.14), transparent 68%);
  pointer-events: none;
}

.leave-quota-ring {
  --pct: 0;
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  flex-shrink: 0;
  background:
    conic-gradient(#2189a6 calc(var(--pct) * 1%), rgba(33, 137, 166, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.leave-quota-ring::before {
  content: '';
  position: absolute;
  inset: 0.42rem;
  border-radius: inherit;
  background: #fff;
}

.leave-quota-ring__num,
.leave-quota-ring__sub {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.leave-quota-ring__num {
  font-family: Sora, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b4f6c;
}

.leave-quota-ring__sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.leave-guide {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(186, 230, 253, 0.7);
}

.leave-guide summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0e7490;
}

.leave-guide__formula {
  margin: 0.7rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.28rem 0.75rem;
  font-size: 0.75rem;
  color: #475569;
}

.leave-guide__formula dt {
  margin: 0;
}

.leave-guide__formula dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #0f172a;
}

.leave-guide__total {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.leave-guide__notes {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

.leave-quota-bar {
  background: linear-gradient(90deg, #3da8c2, #0b4f6c);
  transition: width 0.45s ease;
}

.leave-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  background: rgba(255, 255, 255, 0.82);
  color: #0b4f6c;
  border: 1px solid rgba(33, 137, 166, 0.16);
}

.leave-tab.is-active {
  background: #0b4f6c;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(11, 79, 108, 0.22);
}

.leave-tab.has-alert {
  background: #fff1eb;
  color: #9a3412;
  border-color: #f0b8a4;
  box-shadow: 0 8px 20px rgba(224, 122, 95, 0.18);
}

.leave-tab__badge {
  min-width: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  background: #e07a5f;
  color: #fff;
}

.leave-tab.is-active .leave-tab__badge {
  background: rgba(255, 255, 255, 0.22);
}

.leave-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.leave-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(33, 137, 166, 0.14);
  background: #fff;
  padding: 0.75rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.leave-type-card:active {
  transform: scale(0.98);
}

.leave-type-card.is-selected {
  border-color: #2189a6;
  background: linear-gradient(180deg, rgba(238, 249, 251, 0.95), #fff);
  box-shadow: 0 8px 20px rgba(11, 79, 108, 0.1);
}

.leave-type-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

.leave-type-card__icon {
  display: flex;
  height: 1.85rem;
  width: 1.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #eef9fb;
  color: #0b4f6c;
  margin-bottom: 0.15rem;
}

.leave-type-card.is-selected .leave-type-card__icon {
  background: #0b4f6c;
  color: #fff;
}

.leave-type-card__label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0b4f6c;
}

.leave-type-card__hint {
  font-size: 0.62rem;
  line-height: 1.25;
  font-weight: 600;
  color: #94a3b8;
}

.leave-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 5.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1.5px dashed rgba(33, 137, 166, 0.28);
  background: rgba(238, 249, 251, 0.55);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.leave-dropzone:hover,
.leave-dropzone.has-file {
  border-color: #2189a6;
  background: rgba(238, 249, 251, 0.9);
}

.leave-dropzone.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.leave-dropzone__icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: #fff;
  color: #0b4f6c;
  border: 1px solid rgba(33, 137, 166, 0.14);
  margin-bottom: 0.15rem;
}

.leave-dropzone__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b4f6c;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leave-dropzone__meta {
  font-size: 0.68rem;
  color: #94a3b8;
}

.leave-card {
  position: relative;
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(11, 79, 108, 0.08);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
}

.leave-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #94a3b8;
}

.leave-card--cuti::before { background: #2189a6; }
.leave-card--sakit::before { background: #e07a5f; }
.leave-card--izin::before { background: #0ea5e9; }
.leave-card--melahirkan::before { background: #db2777; }
.leave-card--hamil::before { background: #7c3aed; }

.leave-card--muted {
  opacity: 0.92;
}

.leave-card--muted::before {
  background: #cbd5e1;
}

.leave-card--inbox {
  box-shadow: 0 12px 32px rgba(224, 122, 95, 0.1);
}

.leave-type-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.45rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.leave-type-chip--cuti {
  background: rgba(33, 137, 166, 0.12);
  color: #0b4f6c;
}

.leave-type-chip--sakit {
  background: rgba(224, 122, 95, 0.14);
  color: #9a3412;
}

.leave-type-chip--izin {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.leave-type-chip--melahirkan {
  background: rgba(219, 39, 119, 0.12);
  color: #9d174d;
}

.leave-type-chip--hamil {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
}

.leave-filter {
  border-radius: 999px;
  border: 1px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  color: #0b4f6c;
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.leave-filter.is-active {
  background: #0b4f6c;
  border-color: #0b4f6c;
  color: #fff;
}

.leave-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.leave-btn-ghost--danger {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.leave-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: leave-spin 0.7s linear infinite;
}

@keyframes leave-spin {
  to { transform: rotate(360deg); }
}

/* Izin Absen Luar Kantor — form pengajuan */
.spk-sheet {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
  border-radius: 1.4rem;
  padding: 1.05rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spk-flow {
  display: flex;
  margin: 0;
  padding: 0.1rem 0.15rem 0;
  list-style: none;
  gap: 0.25rem;
}

.spk-flow__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.spk-flow__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0.68rem;
  left: calc(50% + 0.9rem);
  width: calc(100% - 1.8rem);
  height: 2px;
  border-radius: 999px;
  background: #d5eef4;
}

.spk-flow__num {
  position: relative;
  z-index: 1;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: #0b4f6c;
}

.spk-flow__item:not(:first-child) .spk-flow__num {
  background: #fff;
  color: #0b4f6c;
  box-shadow: inset 0 0 0 1.5px #b7dde8;
}

.spk-flow__text {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0b4f6c;
}

.spk-sheet__intro h2 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #083445;
}

.spk-sheet__intro p {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

.spk-sup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #eef9fb, #fff);
  border: 1px solid rgba(33, 137, 166, 0.12);
}

.spk-sup__avatar {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: #0b4f6c;
}

.spk-sup__kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.spk-sup__name {
  margin: 0.1rem 0 0;
  font-weight: 700;
  color: #083445;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spk-form__fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.spk-form__fields:disabled {
  opacity: 0.72;
}

.spk-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 1rem;
  background: #eef6f8;
}

.spk-mode__btn {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.6rem 0.45rem 0.55rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #3d6d80;
  background: transparent;
  cursor: pointer;
}

.spk-mode__btn small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
}

.spk-mode__btn.is-selected {
  background: #fff;
  color: #0b4f6c;
  box-shadow: 0 4px 12px rgba(11, 79, 108, 0.08);
}

.spk-mode__btn.is-selected small {
  color: #2189a6;
}

.spk-mode__btn:disabled {
  cursor: not-allowed;
}

.spk-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spk-quick__btn {
  border-radius: 999px;
  border: 1px solid rgba(33, 137, 166, 0.18);
  background: #fff;
  color: #0b4f6c;
  padding: 0.42rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.spk-quick__btn.is-selected {
  background: #0b4f6c;
  border-color: #0b4f6c;
  color: #fff;
}

.spk-quick__btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.spk-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.spk-label span {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  color: #94a3b8;
}

.spk-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.spk-form[data-span="single"] .spk-dates {
  grid-template-columns: 1fr;
}

.spk-form[data-span="single"] .spk-date--end {
  display: none;
}

.spk-input {
  margin-top: 0.35rem;
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.9rem;
  border: 1.5px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  color: #0b4f6c;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.spk-input:focus {
  border-color: #2189a6;
  box-shadow: 0 0 0 4px rgba(33, 137, 166, 0.12);
}

.spk-input:disabled {
  background: #f8fafc;
  color: #94a3b8;
}

textarea.spk-input {
  resize: none;
  min-height: 6.4rem;
  line-height: 1.45;
}

.spk-file {
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: #475569;
}

.spk-photo-preview {
  display: block;
  margin-top: 0.55rem;
  max-height: 12rem;
  width: auto;
  max-width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(33, 137, 166, 0.16);
}

.spk-photo-preview[hidden] {
  display: none;
}

.spk-photo-link {
  display: inline-block;
  margin-top: 0.4rem;
}

.spk-photo-thumb {
  display: block;
  width: 100%;
  max-width: 11rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(33, 137, 166, 0.16);
  background: #fff;
}

.spk-card__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}

.spk-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #94a3b8;
}

.spk-hint.is-warn {
  color: #be123c;
  font-weight: 700;
}

.spk-preview {
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(180deg, #f3fafc, #fff);
  border: 1px solid rgba(33, 137, 166, 0.14);
}

.spk-preview.is-invalid {
  background: #fff7f7;
  border-color: #fecdd3;
}

.spk-preview__label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6f8a;
}

.spk-preview__when {
  margin: 0.2rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #083445;
}

.spk-preview__place,
.spk-preview__note {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #475569;
}

.spk-preview__place.is-empty {
  color: #94a3b8;
}

.spk-preview__note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spk-preview__note[hidden] {
  display: none;
}

.spk-preview__note[hidden] {
  display: none;
}

.spk-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  border-radius: 1rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.spk-history-link {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d6f8a;
  text-decoration: none;
}

.spk-filter {
  border-radius: 999px;
  border: 1px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  color: #0b4f6c;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.spk-mode__btn:focus-visible,
.spk-quick__btn:focus-visible,
.spk-filter:focus-visible,
.spk-action:focus-visible {
  outline: 2px solid #2189a6;
  outline-offset: 2px;
}

.spk-filter.is-active {
  background: #0b4f6c;
  border-color: #0b4f6c;
  color: #fff;
}

.spk-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spk-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #cbd5e1;
}

.spk-card--wait::before { background: #f59e0b; }
.spk-card--ok::before { background: #10b981; }
.spk-card--off::before { background: #cbd5e1; }

.spk-card.hidden {
  display: none;
}

.spk-card.hidden {
  display: none;
}

.spk-card__place {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: #083445;
}

.spk-card__when {
  margin: 0.12rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.spk-card__purpose {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spk-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.68rem;
  color: #94a3b8;
}

.spk-card__chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.4rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(33, 137, 166, 0.12);
  color: #0b4f6c;
}

.spk-card__actions {
  display: flex;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.spk-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0b4f6c;
  text-decoration: none;
}

.spk-action--danger {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
  cursor: pointer;
}

.spk-action--go {
  border-color: transparent;
  background: #0b4f6c;
  color: #fff;
}

/* Ekspedisi Dokumen/Barang — serah terima */
.lacak-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.lacak-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 2.65rem;
  padding: 0.35rem 0.3rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  color: #0b4f6c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.lacak-tab.is-active {
  background: #0b4f6c;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 79, 108, 0.18);
}

.lacak-tab.has-alert:not(.is-active) {
  background: #fff1eb;
  border-color: #f0b8a4;
  color: #9a3412;
}

.lacak-tab__badge {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e07a5f;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.lacak-tab.is-active .lacak-tab__badge {
  background: #fff;
  color: #9a3412;
}

@media (max-width: 380px) {
  .lacak-tabs {
    gap: 0.3rem;
  }

  .lacak-tab {
    padding: 0.35rem 0.2rem;
    font-size: 0.66rem;
  }
}

.lacak-search {
  display: flex;
  gap: 0.45rem;
}

.lacak-search .lacak-input,
.lacak-code .lacak-input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.lacak-search__btn {
  flex: 0 0 auto;
  min-height: 2.85rem;
  border-radius: 0.9rem;
  padding: 0 1rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.lacak-input {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.9rem;
  border: 1.5px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  color: #0b4f6c;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lacak-input:focus {
  border-color: #2189a6;
  box-shadow: 0 0 0 4px rgba(33, 137, 166, 0.12);
}

textarea.lacak-input {
  resize: none;
  min-height: 6.2rem;
  line-height: 1.45;
}

.lacak-input--code {
  text-align: center;
  font-family: Sora, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.lacak-sheet {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
  border-radius: 1.35rem;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lacak-sheet--wait {
  background: #fffbeb;
  border-color: #fde68a;
}

.lacak-sheet--quiet {
  background: #f8fafc;
}

.lacak-correction summary {
  cursor: pointer;
  list-style: none;
  font-family: Sora, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #083445;
}

.lacak-correction summary::-webkit-details-marker {
  display: none;
}

.lacak-correction summary::after {
  content: '+';
  float: right;
  font-size: 1.1rem;
  line-height: 1;
  color: #2189a6;
}

.lacak-correction[open] summary::after {
  content: '−';
}

.lacak-correction form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.lacak-sheet h2,
.lacak-sheet h3 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #083445;
}

.lacak-sheet h2 { font-size: 1.15rem; }
.lacak-sheet h3 { font-size: 1rem; }

.lacak-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

.lacak-guide {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lacak-guide__item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.95rem;
  padding: 0.7rem 0.9rem;
}

.lacak-guide__item[open] {
  background: #f8fafc;
}

.lacak-guide__item summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
  font-family: Sora, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  color: #083445;
}

.lacak-guide__item summary::-webkit-details-marker {
  display: none;
}

.lacak-guide__item summary::after {
  content: '+';
  margin-left: auto;
  font-family: Manrope, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  color: #2189a6;
}

.lacak-guide__item[open] summary::after {
  content: '−';
}

.lacak-guide__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569;
}

.lacak-guide__body p {
  margin: 0;
}

.lacak-guide__body ol,
.lacak-guide__body ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1.1rem;
}

.lacak-guide__body strong {
  color: #0b4f6c;
}

.lacak-guide__body .lacak-back {
  margin-top: 0.15rem;
}

.lacak-guide__badge {
  border-radius: 999px;
  border: 1px solid #d5f0f6;
  background: #eef9fb;
  padding: 0.1rem 0.45rem;
  font-family: Manrope, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d6f8a;
}

.lacak-guide__status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lacak-guide__status-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

.lacak-guide__status-chip {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  padding: 0.1rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.lacak-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.lacak-label span {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  color: #94a3b8;
}

.lacak-flow {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.25rem;
}

.lacak-flow__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.lacak-flow__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0.68rem;
  left: calc(50% + 0.9rem);
  width: calc(100% - 1.8rem);
  height: 2px;
  border-radius: 999px;
  background: #d5eef4;
}

.lacak-flow__num {
  position: relative;
  z-index: 1;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: #0b4f6c;
}

.lacak-flow__item:not(:first-child) .lacak-flow__num {
  background: #fff;
  color: #0b4f6c;
  box-shadow: inset 0 0 0 1.5px #b7dde8;
}

.lacak-flow__text {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0b4f6c;
}

.lacak-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.lacak-kind {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  color: #0b4f6c;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.lacak-kind.is-selected {
  border-color: #0b4f6c;
  background: #0b4f6c;
  color: #fff;
}

.lacak-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 1rem;
  background: #eef6f8;
}

.lacak-mode__btn {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.55rem 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #3d6d80;
  background: transparent;
  cursor: pointer;
}

.lacak-mode__btn small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
}

.lacak-mode__btn.is-selected {
  background: #fff;
  color: #0b4f6c;
  box-shadow: 0 4px 12px rgba(11, 79, 108, 0.08);
}

.lacak-mode__btn.is-selected small {
  color: #2189a6;
}

.lacak-pane {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lacak-pane[hidden] {
  display: none;
}

.lacak-preview {
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(180deg, #f3fafc, #fff);
  border: 1px solid rgba(33, 137, 166, 0.14);
}

.lacak-preview__label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6f8a;
}

.lacak-preview__title {
  margin: 0.2rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #083445;
}

.lacak-preview__title.is-empty,
.lacak-preview__meta {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #64748b;
}

.lacak-preview__title.is-empty {
  color: #94a3b8;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
}

.lacak-or {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.lacak-code {
  display: flex;
  gap: 0.45rem;
}

.lacak-code__btn,
.lacak-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.lacak-code__btn {
  flex: 0 0 auto;
  padding: 0 1rem;
}

.lacak-submit {
  width: 100%;
}

.lacak-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lacak-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.2rem;
  padding: 0.9rem 0.95rem 0.9rem 1.05rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
  text-decoration: none;
}

.lacak-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #94a3b8;
}

.lacak-card--beredar::before { background: #2189a6; }
.lacak-card--menunggu::before { background: #f59e0b; }
.lacak-card--diarsipkan::before { background: #10b981; }
.lacak-card--hilang::before { background: #e11d48; }
.lacak-card--dibatalkan::before { background: #64748b; }

.lacak-sheet.lacak-card {
  display: flex;
}

.lacak-claim__msg {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

.lacak-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.lacak-card__title {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  color: #083445;
}

.lacak-card__meta,
.lacak-card__holder {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: #64748b;
}

.lacak-card__holder {
  font-weight: 700;
}

.lacak-card__note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #f9fcfe 0%, #edf6fa 100%);
  border: 1px solid rgba(33, 137, 166, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lacak-card__note-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.05rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--tide-500);
  box-shadow: 0 2px 6px rgba(11, 79, 108, 0.1);
}

.lacak-card__note-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.lacak-card--menunggu .lacak-card__note-icon { color: #b45309; }
.lacak-card--diarsipkan .lacak-card__note-icon { color: #0f766e; }
.lacak-card--hilang .lacak-card__note-icon { color: #be123c; }
.lacak-card--dibatalkan .lacak-card__note-icon { color: #475569; }

.lacak-card__note-body {
  flex: 1 1 auto;
  min-width: 0;
}

.lacak-card__note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.lacak-card__note-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide-900);
}

.lacak-card__note-time {
  flex: none;
  font-size: 0.63rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #7b93a1;
}

.lacak-card__note-text {
  margin: 0.15rem 0 0;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.45;
  color: #2f4858;
  overflow-wrap: anywhere;
}

.lacak-empty {
  text-align: center;
  padding: 1.35rem 1rem 1.2rem;
}

.lacak-sheet.lacak-empty {
  align-items: center;
}

.lacak-empty .lacak-cta {
  align-self: stretch;
  width: 100%;
}

.lacak-empty__icon {
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.7rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: #eef9fb;
  color: #0b4f6c;
}

.lacak-empty h2 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #083445;
}

.lacak-empty p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

.lacak-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 2.8rem;
  border-radius: 0.95rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.lacak-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0b4f6c;
  text-decoration: none;
}

.lacak-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6f8a;
}

.lacak-head {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.lacak-ref {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 0.38rem;
  max-width: 100%;
  margin: 0.16rem 0 0;
  padding: 0.22rem 0.62rem 0.22rem 0.55rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #fff8e1 0%, #f7e3a1 52%, #eccf7a 100%);
  border: 1px solid rgba(176, 132, 34, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 7px rgba(176, 132, 34, 0.14);
  color: #5f4300;
  font-size: 0.72rem;
  line-height: 1.3;
}

.lacak-ref__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #96690a;
  white-space: nowrap;
}

.lacak-ref__label::before {
  content: '';
  flex: 0 0 auto;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #e6b73c 55%, #a97b0d);
  box-shadow: 0 0 0 1px rgba(169, 123, 13, 0.2);
}

.lacak-ref__value {
  padding-left: 0.4rem;
  border-left: 1px solid rgba(176, 132, 34, 0.35);
  font-weight: 800;
  color: #5f4300;
  overflow-wrap: anywhere;
}

.lacak-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0.2rem 0 0;
}

.lacak-meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.lacak-meta dt {
  color: #64748b;
}

.lacak-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  color: #083445;
}

.lacak-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
  white-space: pre-wrap;
}

.lacak-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
}

.lacak-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lacak-event {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 0.75rem 0.85rem 0.75rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.lacak-event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #7ec8d6;
}

.lacak-event__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.lacak-event__action {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0b4f6c;
}

.lacak-event__time {
  margin: 0;
  font-size: 0.68rem;
  color: #94a3b8;
}

.lacak-event__summary {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: #0f172a;
}

.lacak-claim {
  border-radius: 1.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.lacak-claim--ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.lacak-btn {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  color: #0b4f6c;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.lacak-btn--danger {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.lacak-btn--archive {
  border: 0;
  background: #0f766e;
  color: #fff;
}

.lacak-section-label {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lacak-mode__btn:focus-visible,
.lacak-kind:focus-within,
.lacak-tab:focus-visible,
.lacak-card:focus-visible {
  outline: 2px solid #2189a6;
  outline-offset: 2px;
}

/* Detail ekspedisi — tampilan ringkas dan intuitif */
.lacak-detail {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lacak-detailbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.lacak-detailbar__back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 137, 166, 0.16);
  background: #fff;
  color: #0b4f6c;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(11, 79, 108, 0.05);
}

.lacak-detailbar__back svg {
  width: 0.95rem;
  height: 0.95rem;
}

.lacak-detailbar__hint {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lacak-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  padding: 1.1rem;
  color: #fff;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(61, 168, 194, 0.55), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(224, 122, 95, 0.2), transparent 62%),
    linear-gradient(150deg, #0b4f6c 0%, #10465e 58%, #083445 100%);
  box-shadow: 0 18px 40px rgba(11, 79, 108, 0.24);
}

.lacak-hero::after {
  content: '';
  position: absolute;
  right: -2.6rem;
  top: -3.2rem;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.lacak-hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.lacak-hero__kind {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 72%;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #dff4f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lacak-hero__kind svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
}

.lacak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #475569;
}

.lacak-pill__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #64748b;
}

.lacak-pill--beredar { color: #0b5266; }
.lacak-pill--beredar .lacak-pill__dot { background: #2189a6; }
.lacak-pill--menunggu { color: #92400e; }
.lacak-pill--menunggu .lacak-pill__dot { background: #f59e0b; }
.lacak-pill--diarsipkan { color: #065f46; }
.lacak-pill--diarsipkan .lacak-pill__dot { background: #10b981; }
.lacak-pill--hilang { color: #9f1239; }
.lacak-pill--hilang .lacak-pill__dot { background: #e11d48; }
.lacak-pill--dibatalkan { color: #475569; }
.lacak-pill--dibatalkan .lacak-pill__dot { background: #94a3b8; }

.lacak-hero__code {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(223, 244, 249, 0.78);
}

.lacak-hero__title {
  position: relative;
  z-index: 1;
  margin: 0.18rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: anywhere;
}

.lacak-hero .lacak-ref {
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
}

.lacak-owner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.95rem;
  padding: 0.62rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.1);
}

.lacak-owner__avatar {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #eafaff, #bde9f2);
  color: #0b4f6c;
  font-family: Sora, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.lacak-owner__body {
  flex: 1;
  min-width: 0;
}

.lacak-owner__label {
  margin: 0;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd4e2;
}

.lacak-owner__name {
  margin: 0.05rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}

.lacak-owner__meta {
  margin: 0.06rem 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(223, 244, 249, 0.76);
}

.lacak-owner__you {
  flex: 0 0 auto;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  color: #0b4f6c;
  font-size: 0.6rem;
  font-weight: 800;
}

.lacak-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.lacak-facts > div {
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.lacak-facts__wide {
  grid-column: 1 / -1;
}

.lacak-facts span {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9fd4e2;
}

.lacak-facts strong {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  overflow-wrap: anywhere;
}

.lacak-facts small {
  display: block;
  margin-top: 0.04rem;
  font-size: 0.64rem;
  line-height: 1.35;
  color: rgba(223, 244, 249, 0.72);
}

.lacak-note-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
}

.lacak-note-card__icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: #eef9fb;
  color: #1d6f8a;
}

.lacak-note-card__icon svg {
  width: 1rem;
  height: 1rem;
}

.lacak-note-card__label {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lacak-note-card__text {
  margin: 0.12rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lacak-action__head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.lacak-action__icon {
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: #eef9fb;
  color: #0b4f6c;
  box-shadow: inset 0 0 0 1px rgba(33, 137, 166, 0.1);
}

.lacak-action__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lacak-action__icon.is-wait {
  background: #fef3c7;
  color: #b45309;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.lacak-action__icon.is-return {
  background: #eef9fb;
  color: #1d6f8a;
}

.lacak-action__icon.is-danger {
  background: #fff1f2;
  color: #be123c;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.12);
}

.lacak-action__text {
  min-width: 0;
}

.lacak-action__text h3 {
  margin: 0.08rem 0 0;
}

.lacak-action__text .lacak-lead {
  margin-top: 0.15rem;
}

.lacak-action-card {
  gap: 0.85rem;
}

.lacak-wait__cancel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(180, 83, 9, 0.2);
}

.lacak-codebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px dashed #e8b97a;
  border-radius: 1rem;
  background: #fffdf6;
}

.lacak-codebox__label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b45309;
}

.lacak-codebox__value {
  font-family: Sora, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: #083445;
}

.lacak-return-card {
  background: #f8fbfc;
}

.lacak-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lacak-subcard {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}

.lacak-subcard--danger {
  border-color: #fecdd3;
  background: #fffafb;
}

.lacak-subcard__title {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #083445;
}

.lacak-subcard__desc {
  margin: -0.3rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
}

.lacak-subcard form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lacak-fold {
  border-radius: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
  overflow: hidden;
}

.lacak-fold--danger {
  border-color: #fecdd3;
  background: #fffafb;
}

.lacak-fold > summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  list-style: none;
  cursor: pointer;
}

.lacak-fold > summary::-webkit-details-marker {
  display: none;
}

.lacak-fold > summary:focus-visible {
  outline: 2px solid #2189a6;
  outline-offset: -2px;
}

.lacak-fold__icon {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: #eef9fb;
  color: #1d6f8a;
}

.lacak-fold--danger .lacak-fold__icon {
  background: #fff1f2;
  color: #be123c;
}

.lacak-fold__icon svg {
  width: 1rem;
  height: 1rem;
}

.lacak-fold__text {
  flex: 1;
  min-width: 0;
}

.lacak-fold__text strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #083445;
}

.lacak-fold__text span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.71rem;
  line-height: 1.4;
  color: #64748b;
}

.lacak-fold__chevron {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.lacak-fold[open] .lacak-fold__chevron {
  transform: rotate(180deg);
}

.lacak-fold__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0 0.95rem 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.lacak-timeline-card {
  gap: 0.75rem;
}

.lacak-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.lacak-section-head h3 {
  margin: 0.08rem 0 0;
}

.lacak-count {
  flex: 0 0 auto;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d5f0f6;
  background: #eef9fb;
  color: #1d6f8a;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.lacak-timeline {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lacak-tl {
  position: relative;
  display: flex;
  gap: 0.7rem;
  padding-bottom: 0.85rem;
}

.lacak-tl:last-child {
  padding-bottom: 0;
}

.lacak-tl::before {
  content: '';
  position: absolute;
  left: 0.72rem;
  top: 1.65rem;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: #e2eef2;
}

.lacak-tl:last-child::before {
  display: none;
}

.lacak-tl__dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef9fb;
  color: #0b4f6c;
  box-shadow: 0 0 0 3px #fff;
}

.lacak-tl__dot svg {
  width: 0.82rem;
  height: 0.82rem;
}

.lacak-tl--serah .lacak-tl__dot {
  background: #e0f2fe;
  color: #0369a1;
}

.lacak-tl--arsip .lacak-tl__dot,
.lacak-tl--ditemukan .lacak-tl__dot {
  background: #d1fae5;
  color: #047857;
}

.lacak-tl--hilang .lacak-tl__dot,
.lacak-tl--batal .lacak-tl__dot,
.lacak-tl--batal_serah .lacak-tl__dot {
  background: #ffe4e6;
  color: #be123c;
}

.lacak-tl--koreksi .lacak-tl__dot {
  background: #fef3c7;
  color: #b45309;
}

.lacak-tl__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.05rem;
}

.lacak-tl__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.lacak-tl__action {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  color: #083445;
}

.lacak-tl__time {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.63rem;
  font-weight: 600;
  line-height: 1.4;
  color: #94a3b8;
  white-space: nowrap;
}

.lacak-tl__summary {
  margin: 0.12rem 0 0;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #334155;
}

.lacak-tl__meta {
  margin: 0.16rem 0 0;
  font-size: 0.69rem;
  line-height: 1.4;
  color: #94a3b8;
}

.lacak-tl__meta--note {
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: #64748b;
}

@media (max-width: 360px) {
  .lacak-hero {
    padding: 0.95rem;
  }

  .lacak-hero__title {
    font-size: 1.28rem;
  }

  .lacak-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .lacak-tl__top {
    flex-direction: column;
    gap: 0.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leave-quota-bar,
  .leave-type-card,
  .leave-tab,
  .spk-input,
  .spk-mode__btn,
  .spk-quick__btn,
  .lacak-fold__chevron {
    transition: none !important;
  }
  .leave-spinner {
    animation: none !important;
  }
}

/* Shift 24 jam — panduan pada menu absensi */
.shift-guide {
  border: 1px solid rgba(125, 211, 252, 0.55);
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.75);
}

.shift-guide__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.shift-guide__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #334155;
}

.shift-guide__num {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #0c4a6e;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  margin-top: 0.05rem;
}

.shift-absen-note {
  box-shadow: 0 8px 24px rgba(14, 116, 144, 0.06);
}

/* —— Beranda dan menu absensi —— */
.home-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-page > * {
  flex-shrink: 0;
}

.home-enter {
  animation: homeEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--home-delay, 0s);
}

@keyframes homeEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d6f8a;
}

.home-section-head {
  margin-bottom: 0.7rem;
}

.home-section-title {
  margin: 0.15rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #083445;
  letter-spacing: -0.02em;
}

.home-section-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}

.home-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.45rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 36px rgba(11, 79, 108, 0.07);
  backdrop-filter: blur(16px);
}

.home-icon-btn {
  flex-shrink: 0;
  border-radius: 0.65rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-icon-btn:hover {
  background: #eef9fb;
  color: #1e5a70;
}

/* Hero status */
.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 1.35rem 1.35rem 1.2rem;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(61, 168, 194, 0.35), transparent 55%),
    linear-gradient(145deg, #1e5a70 0%, #0b4f6c 48%, #083445 100%);
  box-shadow:
    0 18px 44px rgba(8, 52, 69, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-hero__glow {
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(174, 225, 236, 0.18), transparent 65%);
  pointer-events: none;
}

.home-hero__orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.home-hero__orb--a {
  top: -2.5rem;
  right: -1.5rem;
  width: 7.5rem;
  height: 7.5rem;
  background: rgba(61, 168, 194, 0.22);
  animation: homeOrb 8s ease-in-out infinite;
}

.home-hero__orb--b {
  bottom: 0.5rem;
  right: 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.06);
  animation: homeOrb 6.5s ease-in-out infinite reverse;
}

@keyframes homeOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6px, 8px) scale(1.06); }
}

.home-hero__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  z-index: 1;
}

.home-hero__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(174, 225, 236, 0.9);
}

.home-hero__message {
  margin: 0.45rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.home-hero__ring {
  position: relative;
  width: 4.35rem;
  height: 4.35rem;
  flex-shrink: 0;
}

.home-hero__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.home-hero__ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 6;
}

.home-hero__ring-prog {
  fill: none;
  stroke: #5eead4;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.45));
}

.home-hero__ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.home-hero__ring-val span {
  font-family: Sora, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.home-hero__ring-val small {
  margin-left: 0.04rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(174, 225, 236, 0.92);
  transform: translateY(0.12rem);
}

.home-hero__pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.home-pill--done {
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.35);
}

.home-pill--review {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.home-pill--now {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.home-pill--off {
  background: rgba(15, 23, 42, 0.22);
  color: rgba(226, 232, 240, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero__meter {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.home-hero__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5eead4, #3da8c2);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.45);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero__guide {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(174, 225, 236, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.home-hero__guide:hover {
  color: #fff;
}

/* Slot absensi */
.home-slots__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-slot {
  position: relative;
  display: block;
  border-radius: 1.35rem;
  padding: 1rem 0.95rem 0.95rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(174, 225, 236, 0.55);
  box-shadow: 0 10px 28px rgba(11, 79, 108, 0.06);
  backdrop-filter: blur(14px);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  animation: homeSlotIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--home-delay, 0s) + var(--slot-delay, 0s));
}

@keyframes homeSlotIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-slot--ready {
  border-color: rgba(33, 137, 166, 0.45);
  box-shadow:
    0 12px 32px rgba(11, 79, 108, 0.1),
    0 0 0 3px rgba(61, 168, 194, 0.1);
}

.home-slot--ready:hover,
.home-slot--ready:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(33, 137, 166, 0.7);
  box-shadow: 0 16px 36px rgba(11, 79, 108, 0.14);
  outline: none;
}

.home-slot--ready:active {
  transform: translateY(-1px) scale(0.985);
}

.home-slot--done {
  background: linear-gradient(160deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(167, 243, 208, 0.85);
}

.home-slot--review {
  background: linear-gradient(160deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(253, 230, 138, 0.9);
}

.home-slot--rejected {
  background: linear-gradient(160deg, rgba(255, 241, 242, 0.95), rgba(255, 255, 255, 0.9));
  border-color: rgba(254, 202, 202, 0.9);
}

.home-slot--idle {
  opacity: 0.72;
  filter: saturate(0.9);
}

.home-slot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.home-slot__icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.home-slot--ready:hover .home-slot__icon {
  transform: scale(1.06);
}

.home-slot__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.home-slot__icon--tide { background: #d5f0f6; color: #1e5a70; }
.home-slot__icon--violet { background: #ede9fe; color: #6d28d9; }
.home-slot__icon--amber { background: #fef3c7; color: #b45309; }
.home-slot__icon--sky { background: #e0f2fe; color: #0369a1; }
.home-slot__icon--coral { background: #ffedd5; color: #c2410c; }

.home-slot__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-slot__badge--ok { background: #d1fae5; color: #047857; }
.home-slot__badge--review { background: #fef3c7; color: #b45309; }
.home-slot__badge--now {
  background: #d5f0f6;
  color: #0b4f6c;
  animation: homeReadyPulse 1.8s ease-in-out infinite;
}
.home-slot__badge--bad { background: #fee2e2; color: #b91c1c; }

@keyframes homeReadyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.home-slot__label {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #083445;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.home-slot__window {
  margin: 0.28rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.home-slot__hint {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
}

.home-slot__time {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-slot__time--ok { color: #047857; }
.home-slot__time--review { color: #b45309; }
.home-slot__time--bad { color: #b91c1c; }

.home-slot__cta {
  margin: 0.55rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d6f8a;
}

.home-slot__cta::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Sambutan dan launcher menu bergaya aplikasi Android */
.home-welcome {
  position: relative;
  overflow: hidden;
  border-radius: 1.65rem;
  padding: 1.3rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(61, 168, 194, 0.42), transparent 58%),
    linear-gradient(145deg, #1e5a70 0%, #0b4f6c 52%, #083445 100%);
  box-shadow:
    0 16px 36px rgba(8, 52, 69, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-welcome__content {
  position: relative;
  z-index: 1;
}

.home-welcome__eyebrow {
  margin: 0;
  color: #aee1ec;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-welcome__title {
  max-width: 17rem;
  margin: 0.45rem 0 0;
  overflow-wrap: anywhere;
  font-family: Sora, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.home-welcome__text {
  max-width: 16.5rem;
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.5;
}

.home-welcome__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: 100%;
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(213, 240, 246, 0.92);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.45;
}

.home-welcome__meta svg {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.05rem;
}

.home-welcome__orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.home-welcome__orb--a {
  top: -3.5rem;
  right: -2.5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(118, 201, 219, 0.13);
}

.home-welcome__orb--b {
  right: 3.5rem;
  bottom: -3rem;
  width: 7rem;
  height: 7rem;
  background: rgba(255, 255, 255, 0.045);
}

.home-welcome__mark {
  position: absolute;
  top: 1.25rem;
  right: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 0.65rem);
  gap: 0.28rem;
  opacity: 0.55;
  transform: rotate(8deg);
}

.home-welcome__mark span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.22rem;
  background: rgba(213, 240, 246, 0.58);
}

.home-apps {
  padding: 1rem 0.65rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.055);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 42, 56, 0.06);
}

.home-apps__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.45rem;
}

.home-apps__count {
  flex-shrink: 0;
  padding-bottom: 0.1rem;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 700;
}

.home-apps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
}

.home-app-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.12rem 0.65rem;
  border-radius: 1rem;
  color: #334155;
  text-decoration: none;
  animation: homeAppIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--home-delay, 0s) + var(--app-delay, 0s));
  transition: background 0.16s ease, transform 0.16s ease;
  touch-action: manipulation;
}

@keyframes homeAppIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-app-item:hover {
  background: #f5f9fa;
}

.home-app-item:active {
  background: #edf4f6;
  transform: scale(0.94);
}

.home-app-item:focus-visible {
  outline: 2px solid #2189a6;
  outline-offset: 1px;
}

.home-app-item__icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.home-app-item__icon {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.05rem;
  box-shadow:
    0 6px 14px rgba(15, 42, 56, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-app-item:hover .home-app-item__icon {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(15, 42, 56, 0.11);
}

.home-app-item__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.home-app-item--blue .home-app-item__icon { color: #1565c0; background: linear-gradient(145deg, #e3f2fd, #bbdefb); }
.home-app-item--cyan .home-app-item__icon { color: #087f8c; background: linear-gradient(145deg, #e0f7fa, #b2ebf2); }
.home-app-item--orange .home-app-item__icon { color: #c25716; background: linear-gradient(145deg, #fff3e0, #ffe0b2); }
.home-app-item--green .home-app-item__icon { color: #238257; background: linear-gradient(145deg, #e8f5e9, #c8e6c9); }
.home-app-item--violet .home-app-item__icon { color: #6d4bb3; background: linear-gradient(145deg, #f3e5f5, #e1bee7); }
.home-app-item--teal .home-app-item__icon { color: #087f6c; background: linear-gradient(145deg, #e0f2f1, #b2dfdb); }
.home-app-item--indigo .home-app-item__icon { color: #4f5db3; background: linear-gradient(145deg, #e8eaf6, #c5cae9); }
.home-app-item--slate .home-app-item__icon { color: #526474; background: linear-gradient(145deg, #eef3f6, #dbe4e9); }

.home-app-item__label {
  display: block;
  width: 100%;
  min-height: 1.85rem;
  overflow-wrap: anywhere;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.home-app-item__badge {
  position: absolute;
  top: -0.32rem;
  right: -0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e05b45;
  box-shadow: 0 3px 8px rgba(180, 65, 45, 0.22);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

.home-apps__footer {
  margin: -0.25rem 0 0.25rem;
  color: #8494a1;
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 350px) {
  .home-apps {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .home-app-item__icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.95rem;
  }

  .home-app-item__label {
    font-size: 0.65rem;
  }
}

/* Link cards */
.home-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-links .home-section-head {
  margin: 0 0 0.55rem;
}

.home-link {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.95rem 0.95rem 0.9rem;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
  transition: background 0.16s ease, filter 0.16s ease;
}

.home-links > .home-link:first-of-type {
  border-radius: 1.15rem 1.15rem 0 0;
}

.home-links > .home-link:last-child {
  border-bottom: 0;
  border-radius: 0 0 1.15rem 1.15rem;
}

.home-link:hover,
.home-link:focus-visible {
  outline: none;
  filter: brightness(0.99);
}

.home-link:active {
  filter: brightness(0.96);
}

.home-link--hot {
  border-color: rgba(224, 122, 95, 0.45);
  background: linear-gradient(135deg, rgba(255, 247, 243, 0.95), rgba(255, 255, 255, 0.9));
}

.home-link--warn {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.9));
}

.home-link--ok {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.9));
}

.home-link--team {
  border-color: rgba(13, 148, 136, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 251, 0.88)),
    linear-gradient(120deg, #d5f0f6, #ffffff);
}

.home-link--team::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.28rem;
  border-radius: 0;
  background: linear-gradient(180deg, #2189a6, #0d9488);
}

.home-link__icon {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: #eef9fb;
  color: #1e5a70;
  transition: transform 0.25s ease;
}

.home-link:hover .home-link__icon {
  transform: scale(1.05);
}

.home-link--hot .home-link__icon {
  background: #ffe8dc;
  color: #c45b3f;
}

.home-link--warn .home-link__icon {
  background: #fef3c7;
  color: #b45309;
}

.home-link--ok .home-link__icon {
  background: #d1fae5;
  color: #047857;
}

.home-link--team .home-link__icon {
  background: #ccfbf1;
  color: #0f766e;
}

.home-link__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.home-link__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-link__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.home-link__title {
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #083445;
  letter-spacing: -0.015em;
}

.home-link__desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}

.home-link__meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.home-link__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border-radius: 999px;
  padding: 0.35rem 0.15rem 0.35rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1d6f8a;
  background: transparent;
  box-shadow: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-link__cta::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.home-link--hot .home-link__cta {
  color: #c45b3f;
  background: transparent;
  box-shadow: none;
}

.home-link:hover .home-link__cta {
  transform: translateX(2px);
}

.home-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.55rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
}

.home-chip--hot { background: rgba(224, 122, 95, 0.15); color: #b4532a; }
.home-chip--warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.home-chip--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.home-chip--tide { background: #eef9fb; color: #1d6f8a; }

/* Tips */
.home-tips {
  border-radius: 1.45rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid rgba(174, 225, 236, 0.7);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(11, 79, 108, 0.05);
  backdrop-filter: blur(14px);
}

.home-tips__list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-tips__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.home-tips__list span {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b4f6c;
  background: #d5f0f6;
  border: 1px solid rgba(174, 225, 236, 0.8);
}

.home-tips__list p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

/* —— Beranda pegawai: dashboard modern —— */
.app-phone:has(.dashboard-home) {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(61, 168, 194, 0.09), transparent 70%),
    #f4f8fa;
}

.dashboard-header {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  padding-top: env(safe-area-inset-top);
  color: #083445;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(11, 79, 108, 0.07);
  box-shadow: 0 4px 18px rgba(8, 52, 69, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  user-select: none;
}

.dashboard-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.dashboard-header__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dashboard-header__logo {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  padding: 0.18rem;
  border: 1px solid #dceef2;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #fff, #edf8fa);
  box-shadow: 0 5px 14px rgba(11, 79, 108, 0.08);
}

.dashboard-header__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dashboard-header__brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.12rem;
}

.dashboard-header__brand-text strong {
  font-family: Sora, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.dashboard-header__brand-text small {
  overflow: hidden;
  color: #6b8490;
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-header__profile {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #0b4f6c;
  background: linear-gradient(145deg, #d8f2f5, #b8e1e9);
  box-shadow: 0 0 0 1px #d4e8ed, 0 5px 12px rgba(11, 79, 108, 0.1);
  font-family: Sora, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-header__profile > span {
  position: absolute;
  right: -0.05rem;
  bottom: 0.02rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #23b887;
}

.dashboard-home {
  position: relative;
  gap: 1.05rem;
  padding-top: 1rem;
  padding-bottom: 1.35rem;
}

.dashboard-hero {
  position: relative;
  min-height: 14.5rem;
  overflow: hidden;
  padding: 1.25rem 1.25rem 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.75rem;
  color: #fff;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(53, 207, 207, 0.35), transparent 55%),
    linear-gradient(140deg, #176c86 0%, #0b4f6c 48%, #073b53 100%);
  box-shadow:
    0 20px 40px rgba(8, 52, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.13;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  mask-image: linear-gradient(to bottom left, #000, transparent 65%);
  pointer-events: none;
}

.dashboard-hero__orb {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  pointer-events: none;
}

.dashboard-hero__orb--one {
  top: -4.5rem;
  right: -3.5rem;
  width: 12rem;
  height: 12rem;
  background: rgba(105, 226, 224, 0.08);
  animation: dashboardOrb 9s ease-in-out infinite;
}

.dashboard-hero__orb--two {
  right: 4.5rem;
  bottom: -3.5rem;
  width: 8rem;
  height: 8rem;
  background: rgba(255, 255, 255, 0.035);
  animation: dashboardOrb 7s ease-in-out infinite reverse;
}

@keyframes dashboardOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7px, 7px, 0) scale(1.04); }
}

.dashboard-hero__wave {
  position: absolute;
  right: 0;
  bottom: -0.1rem;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 6rem;
  pointer-events: none;
}

.dashboard-hero__wave path:first-child {
  fill: rgba(73, 194, 204, 0.07);
}

.dashboard-hero__wave path:last-child {
  fill: rgba(255, 255, 255, 0.045);
}

.dashboard-hero__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.dashboard-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  color: #bfeef1;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-hero__eyebrow > span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #72e4c1;
  box-shadow: 0 0 0 3px rgba(114, 228, 193, 0.12);
}

.dashboard-hero__date {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
  min-width: 0;
  color: rgba(224, 247, 249, 0.76);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
}

.dashboard-hero__date svg {
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
}

.dashboard-hero__content {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
}

.dashboard-hero__content h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Sora, sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.dashboard-hero__content h1 span {
  color: #c7f7f2;
  font-weight: 800;
}

.dashboard-hero__content > p {
  margin: 0.5rem 0 0;
  color: rgba(228, 247, 249, 0.75);
  font-size: 0.75rem;
  line-height: 1.5;
}

.dashboard-hero__role {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: 100%;
  margin-top: 0.85rem;
  padding: 0.4rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.65rem;
  color: rgba(230, 249, 250, 0.88);
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.dashboard-hero__role svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  margin-top: 0.03rem;
}

.dashboard-hero__role > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-attendance {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: -2.25rem;
  margin-right: 0.65rem;
  margin-left: 0.65rem;
  padding: 0.9rem;
  border: 1px solid rgba(11, 79, 108, 0.08);
  border-radius: 1.25rem;
  color: #173f50;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(8, 52, 69, 0.11);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-attendance__icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  border-radius: 0.95rem;
  color: #087c96;
  background: linear-gradient(145deg, #e2f7fa, #c9edf2);
}

.dashboard-attendance__icon.is-complete {
  color: #087b5b;
  background: linear-gradient(145deg, #e5f9f0, #c9f0df);
}

.dashboard-attendance__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.dashboard-attendance__content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.dashboard-attendance__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.dashboard-attendance__heading strong {
  font-family: Sora, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.dashboard-attendance__heading small {
  flex: 0 0 auto;
  color: #68838f;
  font-size: 0.57rem;
  font-weight: 700;
}

.dashboard-attendance__summary {
  display: block;
  min-width: 0;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  color: #68808b;
  font-size: 0.63rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}

.dashboard-attendance__meter {
  display: block;
  height: 0.27rem;
  overflow: hidden;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: #e7f0f3;
}

.dashboard-attendance__meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28b8b0, #2189a6);
  box-shadow: 0 0 8px rgba(40, 184, 176, 0.25);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-attendance__action {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  flex: 0 0 auto;
  padding: 0.48rem 0.55rem 0.48rem 0.65rem;
  border-radius: 0.75rem;
  color: #fff;
  background: #0b4f6c;
  box-shadow: 0 6px 14px rgba(11, 79, 108, 0.17);
  font-size: 0.64rem;
  font-weight: 800;
}

.dashboard-attendance__action svg {
  width: 0.78rem;
  height: 0.78rem;
}

.dashboard-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #f2d2c3;
  border-radius: 1.25rem;
  color: #71331f;
  background: linear-gradient(135deg, #fffaf6, #fff0e7);
  box-shadow: 0 8px 22px rgba(157, 77, 43, 0.07);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-action__icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  border-radius: 0.9rem;
  color: #b44e2e;
  background: #ffdfcf;
}

.dashboard-action__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dashboard-action__content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.dashboard-action__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #aa5a3d;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard-action__eyebrow strong {
  display: inline-grid;
  place-items: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  color: #fff;
  background: #d96a46;
  font-size: 0.57rem;
  letter-spacing: 0;
}

.dashboard-action__title {
  margin-top: 0.25rem;
  font-family: Sora, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-action__meta {
  min-width: 0;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  color: #a16b56;
  font-size: 0.62rem;
  line-height: 1.4;
  white-space: normal;
}

.dashboard-action__arrow {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #b55a39;
  background: rgba(224, 122, 95, 0.12);
}

.dashboard-action__arrow svg {
  width: 0.9rem;
  height: 0.9rem;
}

.dashboard-services {
  padding-top: 0.15rem;
}

.dashboard-services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0 0.1rem;
}

.dashboard-kicker {
  margin: 0 0 0.2rem;
  color: #2189a6;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dashboard-services__head h2 {
  margin: 0;
  color: #103f52;
  font-family: Sora, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.dashboard-services__head > span {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border: 1px solid #dee9ed;
  border-radius: 999px;
  color: #718792;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.59rem;
  font-weight: 700;
}

.dashboard-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-service {
  --service-color: #1d6f8a;
  --service-soft: #e3f3f7;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 8.4rem;
  overflow: hidden;
  flex-direction: column;
  padding: 0.95rem;
  border: 1px solid rgba(15, 66, 84, 0.075);
  border-radius: 1.25rem;
  color: #183f50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 20px rgba(15, 55, 70, 0.045);
  text-decoration: none;
  animation: dashboardServiceIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--home-delay, 0s) + var(--app-delay, 0s));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.dashboard-service::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: var(--service-soft);
  opacity: 0.35;
  pointer-events: none;
  transition: transform 0.25s ease;
}

@keyframes dashboardServiceIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-service__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.dashboard-service__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  color: var(--service-color);
  background: var(--service-soft);
  transition: transform 0.2s ease;
}

.dashboard-service__icon > svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dashboard-service__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #b3c2c9;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dashboard-service__arrow svg {
  width: 0.95rem;
  height: 0.95rem;
}

.dashboard-service__label {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  overflow-wrap: anywhere;
  font-family: Sora, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.dashboard-service__description {
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
  color: #7a8e98;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.35;
}

.dashboard-service__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e06448;
  box-shadow: 0 3px 8px rgba(180, 65, 45, 0.2);
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
}

.dashboard-service--blue { --service-color: #1970bc; --service-soft: #e3f1fd; }
.dashboard-service--cyan { --service-color: #087f96; --service-soft: #def4f7; }
.dashboard-service--orange { --service-color: #bc5c25; --service-soft: #fff0e3; }
.dashboard-service--green { --service-color: #21815b; --service-soft: #e3f5eb; }
.dashboard-service--violet { --service-color: #7350b5; --service-soft: #f0eafb; }
.dashboard-service--teal { --service-color: #087e70; --service-soft: #def3ee; }
.dashboard-service--sky { --service-color: #0f7895; --service-soft: #e0f5fa; }
.dashboard-service--indigo { --service-color: #505fb1; --service-soft: #e9ecfa; }
.dashboard-service--slate { --service-color: #526d7d; --service-soft: #eaf0f3; }

.dashboard-home__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  color: #8799a2;
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.dashboard-home__footer svg {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  color: #64a4b5;
}

.dashboard-header__brand:focus-visible,
.dashboard-header__profile:focus-visible,
.dashboard-attendance:focus-visible,
.dashboard-action:focus-visible,
.dashboard-service:focus-visible {
  outline: 3px solid rgba(33, 137, 166, 0.35);
  outline-offset: 3px;
}

@media (hover: hover) {
  .dashboard-header__profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px #bcdde5, 0 7px 15px rgba(11, 79, 108, 0.14);
  }

  .dashboard-attendance:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 137, 166, 0.2);
    box-shadow: 0 15px 32px rgba(8, 52, 69, 0.13);
  }

  .dashboard-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(157, 77, 43, 0.1);
  }

  .dashboard-service:hover {
    transform: translateY(-3px);
    border-color: rgba(33, 137, 166, 0.2);
    box-shadow: 0 12px 25px rgba(15, 55, 70, 0.085);
  }

  .dashboard-service:hover::after {
    transform: scale(1.15);
  }

  .dashboard-service:hover .dashboard-service__icon {
    transform: scale(1.05) rotate(-2deg);
  }

  .dashboard-service:hover .dashboard-service__arrow {
    color: var(--service-color);
    transform: translate(1px, -1px);
  }
}

.dashboard-attendance:active,
.dashboard-action:active,
.dashboard-service:active {
  transform: scale(0.98);
}

.app-phone:has(.dashboard-home) .app-dock {
  border-top-color: rgba(11, 79, 108, 0.07);
  border-radius: 1.35rem 1.35rem 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 25px rgba(8, 52, 69, 0.06);
}

.app-phone:has(.dashboard-home) .app-dock__bar {
  padding: 0.42rem 0.35rem 0.38rem;
}

.app-phone:has(.dashboard-home) .app-dock__item {
  color: #8a9ca6;
}

.app-phone:has(.dashboard-home) .app-dock__item.is-active {
  color: #0b4f6c;
}

.app-phone:has(.dashboard-home) .app-dock__item.is-active .app-dock__icon {
  color: #fff;
  background: linear-gradient(145deg, #2189a6, #0b4f6c);
  box-shadow: 0 6px 14px rgba(11, 79, 108, 0.2);
}

@media (max-width: 350px) {
  .dashboard-header__inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .dashboard-header__brand-text small {
    font-size: 0.56rem;
  }

  .dashboard-hero {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .dashboard-hero__content h1 {
    font-size: 1.45rem;
  }

  .dashboard-hero__eyebrow {
    font-size: 0.54rem;
  }

  .dashboard-hero__date {
    font-size: 0.52rem;
  }

  .dashboard-attendance {
    gap: 0.55rem;
    margin-right: 0.4rem;
    margin-left: 0.4rem;
    padding: 0.75rem;
  }

  .dashboard-attendance__action {
    padding: 0.55rem;
    font-size: 0;
  }

  .dashboard-attendance__action svg {
    width: 0.85rem;
    height: 0.85rem;
  }

  .dashboard-services__grid {
    gap: 0.6rem;
  }

  .dashboard-service {
    min-height: 8.1rem;
    padding: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-hero__orb,
  .dashboard-service {
    animation: none !important;
  }

  .dashboard-header__profile,
  .dashboard-attendance,
  .dashboard-attendance__meter > span,
  .dashboard-action,
  .dashboard-service,
  .dashboard-service::after,
  .dashboard-service__icon,
  .dashboard-service__arrow {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-phone > main:not(.home-page),
  .home-enter,
  .home-app-item,
  .home-slot,
  .home-hero__orb--a,
  .home-hero__orb--b,
  .home-slot__badge--now,
  .toast {
    animation: none !important;
  }
  .home-hero__ring-prog,
  .home-hero__meter span,
  .btn-primary,
  .app-dock__item {
    transition: none !important;
  }
}

/* ---------------------------------------------------------------------------
 * Performance: matikan backdrop blur pada elemen besar yang ikut scroll.
 * Blur pada area luas (kartu, bottom nav) membuat scroll tersendat,
 * terutama pada perangkat dengan GPU terbatas.
 * ------------------------------------------------------------------------- */
.app-dock,
.glass-panel,
.leave-card,
.home-card,
.home-slot,
.home-tips,
.dashboard-header,
.team-filter-wrap {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Hentikan animasi dekoratif yang berjalan terus-menerus agar tidak
 * berebut resource saat pengguna scroll. Indikator loading tetap berjalan. */
.home-hero__orb--a,
.home-hero__orb--b,
.dashboard-hero__orb--one,
.dashboard-hero__orb--two,
.home-slot__badge--now,
.action-alert__shine,
.action-alert__pulse,
.action-alert__badge,
.pulse-ring::before,
.absen-icon--pulse::after {
  animation: none !important;
}

.home-hero__orb {
  filter: none !important;
}

/* Scroll halus bawaan browser bisa terasa tersendat pada halaman padat.
 * Gunakan scroll native agar responsnya lebih langsung. */
html {
  scroll-behavior: auto;
}
