:root {
  --p: #3b82f6;
  --pd: #2563eb;
  --pl: #bfdbfe;
  --pp: #eff6ff;
  --g: #10b981;
  --gd: #059669;
  --r: #ef4444;
  --red-bg: #FEF2F2;
  --y: #f59e0b;
  --pu: #8b5cf6;
  --pk: #ec4899;
  --cy: #06b6d4;
  --or: #f97316;
  --bg: #EEF1F1;
  --sur: #fff;
  --sur2: #f8faff;
  --tx: #1e293b;
  --mu: #64748b;
  --li: #94a3b8;
  --sh: 0 4px 20px rgba(59, 130, 246, 0.1);
  --shl: 0 8px 32px rgba(59, 130, 246, 0.16);
  --ra: 18px;
  --rs: 12px;
  --fn: "Plus Jakarta Sans", sans-serif;
  --mo: "Space Mono", monospace;
  --fh: 72px;
  --hh: 64px;
  --primary-900: #101A4D;
  --primary-700: #1731B5;
  --primary-500: #2E5CF6;
  --primary-300: #7C9BFB;
  --ink: #101A33;
  --muted: #7C8598;
  --line: #E7EAF3;
  --card-radius: 28px;
  --teal-900: #12403d;
  --teal-700: #1f6b64;
  --teal-600: #2d7f77;
  --teal-50: #eef6f4;
  --gold: #c9a227;
  --ink: #1c2b2a;
  --bg: #f4f6f6;
  --card: #ffffff;
  --line: #e4e9e8;
  --hadir: #2e9e6b;
  --hadir-bg: #e6f5ee;
  --izin: #dd9a1e;
  --izin-bg: #fbf1de;
  --sakit: #d9534f;
  --sakit-bg: #fbe9e8;
  --cuti: #3f6fd1;
  --cuti-bg: #e9eefb;
  --alpha: #7a8685;
  --alpha-bg: #eceeee;
  --radius: 18px;
  --text-main: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --navy-soft: #E8EBF3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: var(--fn);
  background: #F4F6F6;
  color: var(--tx);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  --bg: #0f172a;
  --sur: #1e293b;
  --sur2: #162032;
  --tx: #f1f5f9;
  --mu: #94a3b8;
  --li: #64748b;
  --pp: #1e3a5f;
  --pl: #2d5a8a;
  --border:#162032;
  --card:#1e293b;;
  --line:#162032;
  --teal-900: #2563eb;
}

.app {
  max-width:700px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

/* HEADER */
.hdr {
  background: linear-gradient(135deg, var(--p), var(--pd) 55%, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 56px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
}


.hdr.active {
  padding: 10px 18px !important;
  border-radius: 0px;
  position: sticky;
}

.hdr::before {
    content: "";
    position: absolute;
    left: -30px;
    bottom: 0px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hdr::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.logo img {
  max-height: 68px;
}

.logo-ic {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.logo sub {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.logo .pro {
  font-size: 0.55rem;
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 5px;
  border-radius: 5px;
  font-weight: 700;
  vertical-align: super;
}

.hdr-r {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.page-title {
    color: #fff;
    font-size: 15px;
    font-weight:700;
    flex: 1;
}

.hbtn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
}

.hbtn:active {
  transform: scale(0.9);
}

.ndot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: #fb923c;
  border-radius: 50%;
  animation: pd 1.8s infinite;
}

@keyframes pd {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.7);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(251, 146, 60, 0);
  }
}

.hav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}

/* PAGES */
.page {
  display: none;
  animation: fsu 0.3s ease;
}

.page.active {
  display: block;
  margin-bottom: 100px;
}

@keyframes fsu {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pb {
  padding: 0 0 calc(var(--fh)+18px);
  min-height: calc(100vh - var(--hh));
}

.sec {
  padding: 12px 14px 0;
}

.sec-t {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-t .lnk {
  font-size: 0.74rem;
  color: var(--p);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--fn);
}

/* HERO */
.badge-card {
  position: relative;
  margin: -46px 16px 0;
  padding: 16px;
  background: var(--sur);
  border-radius: var(--ra);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  animation: cpop .5s cubic-bezier(.34, 1.56, .64, 1);
}

.badge-photo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--pd), var(--p));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}


.badge-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.badge-role {
  font-size: .78rem;
  color: var(--muted);
}

.badge-id {
  font-size: .68rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .04em;
  background: #fbf6e8;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}

.badge-divider {
  border-top: 1px dashed var(--line);
  margin: 12px 0;
}

.clock-display {
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--teal-900);
}

.clock-date {
  font-size: .72rem;
  color: var(--muted);
}

.status-pill {
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}

.btn-checkin {
  background: var(--teal-900);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 14px;
  padding: 11px;
  font-size: .9rem;
}

.btn-checkin:active {
  background: var(--teal-700);
  color: #fff;
}

.btn-checkout {
  background: #fff;
  border: 1.5px solid var(--teal-900);
  color: var(--teal-900);
  font-weight: 600;
  border-radius: 14px;
  padding: 11px;
  font-size: .9rem;
}

.hist-time {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}

.status-hadir {
  background: var(--hadir-bg);
  color: var(--hadir);
}

.status-izin {
  background: var(--izin-bg);
  color: var(--izin);
}

.status-sakit {
  background: var(--sakit-bg);
  color: var(--sakit);
}

.status-cuti {
  background: var(--cuti-bg);
  color: var(--cuti);
}

.status-alpha {
  background: var(--alpha-bg);
  color: var(--alpha);
}

.status-belum {
  background: #eef2f2;
  color: var(--muted);
}

/* Judul & Text */
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
  color: #111827;
}

.hero p,
.hero span,
.hero small {
  color: #6b7280;
}

/* Link */
.hero a {
  color: #2563eb;
  text-decoration: none;
}

.hero a:hover {
  color: #1d4ed8;
}

/* Tombol */
.ab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.btn-ab {
  border: none;
  border-radius: var(--rs);
  padding: 11px 8px;
  font-family: var(--fn);
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: .25s;
}

.btn-ab:active {
  transform: scale(.95);
}

/* Tombol Masuk */
.btn-mi {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
}

.btn-mi i {
  color: #fff;
}

.btn-mi:hover {
  background: #1d4ed8;
}

/* Tombol Pulang */
.btn-pu {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #d1d5db;
  pointer-events: none;
}

.btn-pu i {
  color: #2563eb;
}

.btn-pu:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}


.btn-submit {
  background: var(--pd);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  width: 100%;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit.disabled,
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(30%);
}

@keyframes pr {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }

  70% {
    box-shadow: 0 0 0 11px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Jam kerja hari ini */
.workhour-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

/* ICON */
.workhour-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* TEXT */
.workhour-shift {
  font-weight: 700;
  font-size: .85rem;
}

.workhour-range {
  font-size: .72rem;
  color: var(--muted);
}

/* PROGRESS WRAPPER */
.workhour-progress {
  height: 8px;
  border-radius: 8px;
  background: var(--teal-50);
  overflow: hidden;
}

/* BAR ANIMATION */
.workhour-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pd), var(--gold));
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

/* NOTE TEXT */
.workhour-note {
  font-size: .66rem;
  color: var(--muted);
}

.workhour-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.workhour-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* PULSE EFFECT */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.wh-active {
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 10px rgba(0, 200, 150, 0.25);
}

/* STAT */
.sr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.sc {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 11px 6px;
  text-align: center;
  border: 1px solid var(--bd);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
  animation: cpop 0.4s calc(var(--i) * 0.07s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
  cursor: pointer;
  transition: transform 0.15s;
}

.sc:active {
  transform: scale(0.92);
}

.sc .num {
  font-family: var(--mo);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.sc .lbl {
  font-size: 0.6rem;
  color: var(--mu);
  font-weight: 600;
  margin-top: 3px;
}

/* STATUS BAR */
.stb {
  background: var(--sur);
  border-radius: var(--ra);
  padding: 13px;
  display: flex;
  gap: 8px;
  box-shadow: var(--sh);
  border: 1px solid var(--bd);
}

.stbi {
  flex: 1;
  text-align: center;
}

.stbi .lb {
  font-size: 0.66rem;
  color: var(--mu);
  font-weight: 500;
}

.stbi .vl {
  font-family: var(--mo);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2px;
}

.sdiv {
  width: 1px;
  background: var(--bd);
}


.summary-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
}

.sum-card {
    flex: 1;
    background: var(--sur);
    border-radius: var(--rs);
    padding: 11px 6px;
    text-align: center;
    border: 1px solid var(--bd);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
    animation: cpop 0.4s calc(var(--i) * 0.07s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
    cursor: pointer;
    transition: transform 0.15s;
}

.sum-card .lbl {
    font-size: 10px;
    color:var(--mu);
    font-weight: 600;
}

.sum-card .val {
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

/* QUICK MENU */
.qm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.qmi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--sur);
  border-radius: var(--rs);
  padding: 11px 4px;
  border: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
  animation: cpop 0.4s calc(var(--i) * 0.06s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
}

.qmi a {
  text-decoration: none;
  line-height: 1.2;
}

.qmi:active {
  transform: scale(0.91);
}

.qm-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.qm-lb {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--mu);
  text-align: center;
  line-height: 1.2;
}

.qm-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  background: var(--r);
  border-radius: 50%;
  border: 2px solid var(--sur);
  font-size: 0.48rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.badge {
  border-radius: 20px !important;
  font-size: 12px;
  font-weight: 500;
}

.note-strip {
    margin-top: 10px;
    background: #f4f7ff;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 11px;
    color: var(--pd);
    line-height: 1.5;
}

/* ATTEND CARD */
.ac {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: csi 0.38s calc(var(--i) * 0.07s) both;
  transition: transform 0.15s;
  cursor: pointer;
}

.ac:hover {
  transform: translateY(-2px);
  box-shadow: 0 0px 15px rgba(0, 0, 0, .05);
}

.ac:active {
  transform: scale(0.97);
}

.leave-card {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--bd);
  animation: csi 0.38s calc(var(--i) * 0.07s) both;
  transition: transform 0.15s;
  cursor: pointer;
}

.leave-card.swiped {
  transform: translateX(-140px);
}

.leave-card.swiped-partial {
  transform: translateX(-70px);
}

.lc-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lc-emoji {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.lc-body {
  flex: 1;
  min-width: 0;
}

.lc-type {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.lc-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.lc-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-hadir {
  background: var(--green-bg);
  color: var(--green);
}

.badge-pending {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.badge-ditolak {
  background: var(--red-bg);
  color: var(--red);
}

.badge-diproses {
  background: var(--brand-light);
  color: var(--brand);
}

/* duration + days count */
.lc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-chip i {
  font-size: 13px;
}

.meta-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes csi {
  from {
    opacity: 0;
    transform: translateX(-13px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.adb {
  background: var(--pp);
  border-radius: 8px;
  padding: 7px 8px;
  text-align: center;
  min-width: 42px;
  flex-shrink: 0;
}

.adb .dy {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--p);
  line-height: 1;
}

.adb .mn {
  font-size: 0.58rem;
  color: var(--p);
  font-weight: 600;
  text-transform: uppercase;
}

.bs {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 4px 5px;
  border-radius: 20px;
}

/* INFO CARD */
.infc {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: var(--rs);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--pl);
  display: flex;
  gap: 9px;
  cursor: pointer;
  transition: transform 0.15s;
}

.infc:active {
  transform: scale(0.97);
}


/* FORM LOGIN */
.auth-shell {
  width: 100%;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: center;
  display: flex;
}

.auth-card {
  margin: auto;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--card-radius);
  padding: 34px 28px 28px;
  box-shadow: 0 10px 0px -20px rgba(6, 14, 50, 0.55);
  position: relative;
}

.fp-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(46, 92, 246, 0.55);
  margin: 0 auto 16px;
}

.fp-badge svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.auth-title {
  text-align: center;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 2px;

}

.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 22px;
}

/* Segmented tab switcher */
.seg-switch {
  display: flex;
  background: #F1F3FA;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
}

.seg-switch button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-weight: 700;
  font-size: .86rem;
  color: var(--muted);
  border-radius: 10px;
  transition: all .25s ease;
}

.seg-switch button.active {
  background: #fff;
  color: var(--primary-700);
  box-shadow: 0 4px 10px rgba(23, 49, 181, 0.14);
}

.form-floating>label {
  color: var(--muted);
  font-size: .88rem;
}

.form-floating {
  margin-bottom: 14px;
  position: relative;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  z-index: 5;
  cursor: pointer;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.form-row-split {
  display: flex;
  gap: 12px;
}

.form-row-split .form-floating {
  flex: 1;
}

.aux-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 20px;
  font-size: .82rem;
}

.aux-row a {
  color: var(--primary-700);
  font-weight: 600;
  text-decoration: none;
}

.form-check-label {
  color: var(--muted);
  font-size: .82rem;
}

.btn-primary-auth {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px 0;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 12px 24px -8px rgba(23, 49, 181, 0.55);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -8px rgba(23, 49, 181, 0.6);
  color: #fff;
}

.btn-primary-auth:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .78rem;
  margin: 20px 0 16px;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-social {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 0;
  background: #fff;
  font-weight: 600;
  font-size: .84rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-social:hover {
  background: #F7F9FF;
  border-color: var(--primary-300);
}

.btn-social svg {
  width: 16px;
  height: 16px;
}

.switch-text {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

.switch-text a {
  color: var(--primary-700);
  font-weight: 700;
  text-decoration: none;
}

.pane {
  display: none;
}

.pane.active {
  display: block;
  animation: fadeSlide .35s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strength-wrap {
  margin: -6px 0 16px;
}

.strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: #E4574C;
  transition: all .3s ease;
}

.strength-label {
  font-size: .72rem;
  color: var(--muted);
}


@media (max-width:380px) {
  .auth-card {
    padding: 28px 20px 22px;
  }
}

/* CHART */
.cc {
  background: var(--sur);
  border-radius: var(--ra);
  padding: 13px;
  border: 1px solid var(--bd);
  box-shadow: var(--sh);
}

/* FOOTER */
.fnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width:700px;
  height: var(--fh);
  background: var(--sur);
  border-top: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 300;
  box-shadow: 0 -4px 20px rgba(59, 130, 246, 0.1);
  padding: 0 4px;
}

.ni {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--li);
  font-family: var(--fn);
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 11px;
  transition: all 0.2s;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
}

.ni i {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.ni.active {
  color: var(--p);
}

.ni.active i {
  transform: scale(1.1);
}

.fab {
  background: linear-gradient(135deg, var(--p), var(--pd));
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
  cursor: pointer;
  margin-top: -19px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.fab:active {
  transform: scale(0.88);
}

/* MONTH CAROUSEL */
.mcar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 14px 8px;
  scrollbar-width: none;
}

.mcar::-webkit-scrollbar {
  display: none;
}

.mchip {
  background: var(--sur);
  border: 1.5px solid var(--bd);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--mu);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.mchip.active {
  background: var(--p);
  border-color: var(--p);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* SHEET */
.shbg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 500;
  display: none;
  backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
}

.shbg.open {
  display: flex;
  animation: bfi 0.2s;
}

@keyframes bfi {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.sh {
  background: var(--sur);
  width: 100%;
  max-width: 430px;
  border-radius: var(--ra) var(--ra) 0 0;
  padding: 0 16px 28px;
  animation: shu 0.3s cubic-bezier(0.34, 1.15, 0.64, 1);
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes shu {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.shhd {
  width: 38px;
  height: 4px;
  background: var(--bd);
  border-radius: 4px;
  margin: 11px auto 6px;
}

.sht {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0 12px;
}

.sht h3 {
  font-size: 0.97rem;
  font-weight: 800;
  margin: 0;
}

.shcl {
  background: var(--bd);
  border: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.dr:last-child {
  border-bottom: none;
}

.dr-l {
  font-size: 0.74rem;
  color: var(--mu);
}

.dr-v {
  font-size: 0.84rem;
  font-weight: 600;
}

/* FORM */
.fl {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--mu);
  margin-bottom: 5px;
  display: block;
}

.fc {
  width: 100%;
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  padding: 9px 12px;
  font-family: var(--fn);
  font-size: 0.84rem;
  color: var(--tx);
  background: var(--sur2);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.fc:focus {
  border-color: var(--p);
  background: var(--sur);
}

select.fc {
  appearance: none;
}

.btn-pf {
  width: 100%;
  background: linear-gradient(135deg, var(--p), var(--pd));
  color: #fff;
  border: none;
  border-radius: var(--rs);
  padding: 12px;
  font-family: var(--fn);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.btn-pf:active {
  transform: scale(0.97);
}

.btn-sec {
  width: 100%;
  background: var(--pp);
  color: var(--pd);
  border: 1.5px solid var(--pl);
  border-radius: var(--rs);
  padding: 10px;
  font-family: var(--fn);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sec:active {
  transform: scale(0.97);
}

/* PAGE TITLE */
.ptb {
  padding: 12px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ptb h1 {
  font-size: 1.02rem;
  font-weight: 800;
}

/* PROFILE */
.ph {
  background: linear-gradient(135deg, var(--p), var(--pd));
  padding: 26px 18px 38px;
  text-align: center;
  color: #fff;
}

.paw {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.4);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  position: relative;
}
.paw img{
  width: 77px;
  height: 77px;
  border-radius: 50%;
  object-fit: cover;
}

.peb {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 24px;
  height: 24px;
  background: var(--y);
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  cursor: pointer;
}

.poc {
  background: var(--sur);
  border-radius: var(--ra);
  margin: -20px 13px 0;
  padding: 13px;
  border: 1px solid var(--bd);
  box-shadow: var(--sh);
}

.pir {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bd);
}

.pir:last-child {
  border-bottom: none;
}

.pii {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--pp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* MENU LIST */
.mli {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 11px 13px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.15s;
  animation: csi 0.3s calc(var(--i) * 0.06s) both;
}

.mli:active {
  transform: scale(0.97);
  background: var(--pp);
}

.mlii {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.mlit {
  flex: 1;
}

.mlit .t {
  font-size: 0.84rem;
  font-weight: 600;
}

.mlit .s {
  font-size: 0.68rem;
  color: var(--mu);
  margin-top: 1px;
}

/* JADWAL */
.jc {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 13px;
  margin-bottom: 8px;
  border: 1px solid var(--bd);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
  border-left: 4px solid var(--p);
  animation: csi 0.38s calc(var(--i) * 0.07s) both;
}

/* PAYROLL */
.ph-pay {
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: var(--ra);
  padding: 18px;
  color: #fff;
  margin: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.ph-pay::before {
  content: "";
  position: absolute;
  top: -25px;
  right: -25px;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.pay-amt {
  font-family: var(--mo);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pay-card {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 13px;
  border: 1px solid var(--bd);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
  margin-bottom: 8px;
  animation: csi 0.38s calc(var(--i) * 0.07s) both;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bd);
}

.pay-row:last-child {
  border-bottom: none;
}

.prg {
  height: 5px;
  background: var(--pp);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.prg-f {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--p), var(--pd));
}

.pay-mbtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sur);
  border-radius: var(--rs);
  padding: 11px 13px;
  margin-bottom: 7px;
  border: 1px solid var(--bd);
  cursor: pointer;
  animation: csi 0.3s calc(var(--i) * 0.07s) both;
  transition: all 0.15s;
}

.pay-mbtn:active {
  transform: scale(0.97);
  background: var(--pp);
}

/* TOGGLE */
.tgl {
  position: relative;
  width: 40px;
  height: 22px;
}

.tgl input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tgs {
  position: absolute;
  inset: 0;
  background: var(--bd);
  border-radius: 22px;
  cursor: pointer;
  transition: 0.3s;
}

.tgs:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tgl input:checked+.tgs {
  background: var(--p);
}

.tgl input:checked+.tgs:before {
  transform: translateX(18px);
}

/* PILL */
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--pp);
  color: var(--p);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 3px;
}

/* NOTIF PANEL */
.npbg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 600;
  display: none;
  backdrop-filter: blur(4px);
}

.npbg.open {
  display: block;
  animation: bfi 0.2s;
}

.np {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: var(--sur);
  z-index: 700;
  display: flex;
  flex-direction: column;
  left: 50%;
  transform: translateX(-50%);
}

.npbg.open .np {
  animation: nsi 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
}

@keyframes nsi {
  from {
    transform: translateX(calc(-50% + 430px));
  }

  to {
    transform: translateX(-50%);
  }
}

.nph {
  background: linear-gradient(135deg, var(--p), var(--pd));
  padding: 16px 16px 12px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.nph h2 {
  font-size: 0.97rem;
  font-weight: 800;
  margin: 0;
}

.npcl {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ntabs {
  display: flex;
  gap: 2px;
  padding: 9px 13px 0;
  border-bottom: 1px solid var(--bd);
  background: var(--sur);
  flex-shrink: 0;
  overflow-x: auto;
}

.ntab {
  padding: 6px 11px;
  font-size: 0.71rem;
  font-weight: 700;
  border: none;
  background: none;
  color: var(--mu);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-family: var(--fn);
  white-space: nowrap;
}

.ntab.active {
  color: var(--p);
  border-bottom-color: var(--p);
}

.nacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
}

.nubadge {
  background: var(--r);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.nsc {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 20px;
}

.nit {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--bd);
  cursor: pointer;
  transition: background 0.12s;
  animation: nii 0.28s calc(var(--i) * 0.05s) both;
  position: relative;
}

@keyframes nii {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nit:active {
  background: var(--pp);
}

.nit.unread {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.06), transparent);
}

.nit.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--p);
  border-radius: 0 3px 3px 0;
}

.niw {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nud {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p);
  flex-shrink: 0;
  margin-top: 4px;
}

/* CUSTOM ALERT */
.albg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  padding: 18px;
}

.albg.open {
  display: flex;
  animation: bfi 0.18s;
}

.alb {
  background: var(--sur);
  border-radius: 22px;
  width: 100%;
  max-width: 330px;
  overflow: hidden;
  animation: alp 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

@keyframes alp {
  from {
    opacity: 0;
    transform: scale(0.68) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.al-prog {
  height: 4px;
}

.al-top {
  padding: 24px 20px 16px;
  text-align: center;
}

.al-ico {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.al-ti {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.al-msg {
  font-size: 0.8rem;
  color: var(--mu);
  line-height: 1.6;
}

.al-btns {
  display: flex;
  border-top: 1px solid var(--border);
}

.al-btn {
  flex: 1;
  padding: 13px;
  border: none;
  font-family: var(--fn);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  background: var(--sur);
}

.al-btn:active {
  opacity: 0.75;
}

.al-btn.cl {
  color: var(--mu);
  border-right: 1px solid var(--bd);
}

.al-btn.cf.dng {
  color: var(--r);
}

.al-btn.cf.scs {
  color: var(--g);
}

.al-btn.cf {
  color: var(--p);
}

/* TOAST */
.twr {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  width: 90%;
  max-width: 330px;
}

.tst {
  background: #1e293b;
  color: #fff;
  padding: 10px 14px;
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(-14px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tst.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tst.hide {
  opacity: 0;
  transform: translateY(-10px) scale(0.92);
  transition: all 0.22s;
}

.tic {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* MAP */
.mapbox {
  border-radius: var(--rs);
  overflow: hidden;
  position: relative;
  height: 195px;
  margin-bottom: 10px;
}

.map-tile {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px,
      transparent 36px),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px,
      transparent 36px),
    linear-gradient(135deg, #b8ddf0, #d4edf8 40%, #c5e5f2 60%, #a8d5ea);
}

.road-h {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  height: 10px;
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.road-v {
  position: absolute;
  left: 54%;
  top: 0;
  bottom: 0;
  width: 9px;
  background: rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(0, 0, 0, 0.07);
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.bld {
  position: absolute;
  background: rgba(90, 150, 190, 0.35);
  border-radius: 3px;
}

.b1 {
  width: 36px;
  height: 26px;
  top: 17%;
  left: 13%;
}

.b2 {
  width: 46px;
  height: 40px;
  top: 55%;
  left: 17%;
}

.b3 {
  width: 32px;
  height: 32px;
  top: 20%;
  right: 21%;
}

.b4 {
  width: 40px;
  height: 23px;
  top: 60%;
  right: 13%;
}

.b5 {
  width: 27px;
  height: 36px;
  top: 13%;
  left: 63%;
}

.acc-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: rp 2s infinite;
}

@keyframes rp {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.mappin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -80%);
  font-size: 1.8rem;
  animation: bnc 1.5s infinite;
}

@keyframes bnc {

  0%,
  100% {
    transform: translate(-50%, -80%);
  }

  50% {
    transform: translate(-50%, -100%);
  }
}

.map-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.73rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mzbtn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mzbtn button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--bd);
  width: 25px;
  height: 25px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SELFIE CAM */
.camwrap {
  position: relative;
  border-radius: var(--rs);
  overflow: hidden;
  background: #000;
  width: 100%;
  padding-bottom: 72%;
  margin-bottom: 9px;
}

.camwrap video,
.camwrap canvas,
.camwrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-oval-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cam-oval {
  width: 140px;
  height: 178px;
  border: 3px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.38);
}

.cam-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px,
      transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 33.3% 33.3%;
}

.cam-stat {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.cam-btns {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
}

.cam-cap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pd));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.45);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cam-cap:active {
  transform: scale(0.87);
}

.cam-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pp);
  border: 1.5px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--p);
  cursor: pointer;
  transition: all 0.2s;
}

.cam-sm:active {
  transform: scale(0.9);
}

/* KPI */
.kpi-card {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 12px;
  border: 1px solid var(--bd);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
  margin-bottom: 8px;
  animation: cpop 0.4s calc(var(--i) * 0.07s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.kpi-bar {
  height: 7px;
  background: var(--bd);
  border-radius: 4px;
  overflow: hidden;
  margin: 5px 0 3px;
}

.kpi-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* SEARCH */
.srch {
  position: relative;
  margin: 0 14px 10px;
}

.srch input {
  width: 100%;
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  padding: 9px 12px 9px 36px;
  font-family: var(--fn);
  font-size: 0.82rem;
  background: var(--sur);
  outline: none;
  transition: border-color 0.2s;
  color: var(--tx);
}

.srch input:focus {
  border-color: var(--p);
}

.srch i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mu);
  font-size: 0.95rem;
}

/* RIPPLE */
.re {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  transform: scale(0);
  animation: ra 0.5s linear;
  pointer-events: none;
}

@keyframes ra {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* BADGE */
.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.badge-item {
  text-align: center;
  padding: 13px 8px;
  border-radius: var(--rs);
  animation: cpop 0.4s calc(var(--i) * 0.07s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* LEMBUR */
.lmbr-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.lmbr-btn {
  border: 2px solid var(--pp);
  border-radius: var(--rs);
  padding: 11px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--sur2);
}

.lmbr-btn.sel {
  border-color: var(--muted);
  background: #fff7ed;
}

.lmbr-btn i {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 4px;
}

/* RMBS */
.rmb-card {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
  animation: csi 0.35s calc(var(--i) * 0.07s) both;
  cursor: pointer;
  transition: transform 0.15s;
}

.rmb-card:active {
  transform: scale(0.97);
}

/* SURVEY CARD */
.surv-card {
  background: linear-gradient(135deg, var(--pu), #6d28d9);
  border-radius: var(--rs);
  padding: 15px;
  color: #fff;
  margin-bottom: 9px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.surv-card:active {
  transform: scale(0.97);
}

.surv-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

/* PROGRESS TRACKER */
.trk-item {
  background: var(--sur);
  border-radius: var(--rs);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--bd);
  animation: csi 0.35s calc(var(--i) * 0.07s) both;
}

/* CHAT / MESSAGE */
.msg-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.81rem;
  line-height: 1.5;
  margin-bottom: 7px;
  position: relative;
  animation: cpop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-in {
  background: var(--sur);
  border: 1px solid var(--bd);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
}

.msg-out {
  background: linear-gradient(135deg, var(--p), var(--pd));
  color: #fff;
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end;
}

.msg-time {
  font-size: 0.6rem;
  opacity: 0.6;
  margin-top: 3px;
  text-align: right;
}

/* SCROLL */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--pl);
  border-radius: 4px;
}



/* Container */
#toast-container {
  top: 20px !important;
}

/* POSISI CENTER BENAR-BENAR DI TENGAH */
#toast-container.toast-top-center {
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
}

/* pastikan container tidak ikut push kiri/kanan */
#toast-container {
  width: auto !important;
  text-align: center;
}

/* Toast */
#toast-container>.toast {
  width: 350px;
  max-width: calc(100vw - 24px);
  margin: auto;
  margin-bottom: 5px;
  padding:3px 10px;
  border-radius:13px;
  background: #1e293b;
  color: #ffffff !important;
  font-size: 0.78rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  border: none;
  background-image: none !important;
  opacity: 1;
  font-family: Inter, sans-serif;
  text-align: left;
  
}

#toast-container>.toast:hover {
  box-shadow: none;
}

/* Judul */
.toast-title {
  font-weight: 500;
  font-size: 13px;
  color: #ffffff;
}

/* Pesan */
.toast-message {
  font-size: 13px;
  color: #ffffff;
}

/*
#toast-container > .toast-success {
    background-color: rgba(209, 236, 241, 0.9) !important;
    border: 1px solid #bee5eb;
    color: #0c5460 !important;
}


#toast-container > .toast-info {
    background-color: rgba(255, 255, 255, 0.75) !important;
    color: #434343 !important;
}


#toast-container > .toast-warning {
    background-color: rgba(255, 243, 205, 0.9) !important;
    border: 1px solid #ffeeba;
    color: #856404 !important;
}

#toast-container > .toast-error {
    background-color: rgba(248, 215, 218, 0.9) !important;
    border: 1px solid #f5c6cb;
    color: #721c24 !important;
}*/


/* AVATAR */
.avatar {
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  padding: 0;
  text-align: center;
}

.avatar span, .avatar i {
  vertical-align: middle;
}

.avatar.rounded {
  border-radius: 10px !important;
}

.avatar.avatar-10 {
  height: 10px;
  line-height: 10px;
  width: 10px;
}

.avatar.avatar-20 {
  height: 20px;
  line-height: 20px;
  width: 20px;
}

.avatar.avatar-30 {
  height: 30px;
  line-height: 30px;
  width: 30px;
}

.avatar.avatar-40 {
  height: 40px;
  line-height: 40px;
  width: 40px;
}

.avatar.avatar-50 {
  height: 50px;
  line-height: 50px;
  width: 50px;
}

.avatar.avatar-60 {
  height: 60px;
  line-height: 60px;
  width: 60px;
}

.avatar.avatar-70 {
  height: 70px;
  line-height: 70px;
  width: 70px;
}

.avatar.avatar-80 {
  height: 80px;
  line-height: 80px;
  width: 80px;
}

.avatar.avatar-90 {
  height: 90px;
  line-height: 90px;
  width: 90px;
}

.avatar.avatar-100 {
  height: 100px;
  line-height: 100px;
  width: 100px;
}

.avatar.avatar-110 {
  height: 110px;
  line-height: 110px;
  width: 110px;
}

.avatar.avatar-120 {
  height: 120px;
  line-height: 120px;
  width: 120px;
}

.avatar.avatar-130 {
  height: 130px;
  line-height: 130px;
  width: 130px;
}

.avatar.avatar-140 {
  height: 140px;
  line-height: 140px;
  width: 140px;
}

.avatar.avatar-150 {
  height: 150px;
  line-height: 150px;
  width: 150px;
}


/* Container */
.mobile-slider {
  position: relative;
}

/* Card */
.mobile-slider .carousel {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

/* Image */
.mobile-slider img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Caption */
.mobile-slider .carousel-caption {
  left: 20px;
  right: 20px;
  bottom: 20px;
  text-align: left;
  background: rgba(0, 0, 0, .45);
  padding: 15px;
  border-radius: 12px;
}

/* Indicator */
.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  margin: 0 5px;
  opacity: .5;
}

.carousel-indicators .active {
  width: 28px;
  border-radius: 20px;
  opacity: 1;
}

/* Arrow */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, .45);
  border-radius: 50%;
  padding: 18px;
}

.card-sec {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  margin: -46px 16px 0;
}

.card-sec-2 {
  margin: -46px 16px 0;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0px 0px 10px;
  border-bottom: 1px solid var(--border);
}

.card-head-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.card-head-title {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}

.card-head-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* MAP DETAILS */
.map-details {
  padding: 14px 16px;
}

.map-canvas {
  position: relative;
}

#map {
  position: relative;
  height: 200px;
  width: 100%;
  border-radius: var(--radius);
}

.md-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.md-row:last-child {
  border-bottom: none;
}

.md-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.md-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.md-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1px;
}

.open-maps-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  font-family: inherit;
  z-index: 999;
}

.selfie-wrap img {
  position: relative;
  border-radius: var(--radius);
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* RADIUS METER */
.radius-meter {
  padding: 14px 16px 16px;
}

.rm-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rm-track {
  height: 10px;
  background: #E5E7EB;
  border-radius: 99px;
  position: relative;
  margin-bottom: 8px;
}

.rm-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .6s ease;
  background: linear-gradient(90deg, #1B4FD8, #059669);
}

.rm-thumb {
  position: absolute;
  top: 50%;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--green);
  transform: translateY(-50%) translateX(50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.rm-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.rm-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--green-bg);
  border-radius: 10px;
}

.rm-status-row.warn {
  background: var(--yellow-bg);
}

.rm-status-row.danger {
  background: var(--red-bg);
}

.rm-status-icon {
  font-size: 18px;
}

.rm-status-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.rm-status-row.warn .rm-status-text {
  color: var(--yellow);
}

.rm-status-row.danger .rm-status-text {
  color: var(--red);
}

.rm-status-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* GPS MAP MOCK */
.map-container {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #E8EFF8;
  margin-bottom: 14px;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(27, 79, 216, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 79, 216, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.map-road-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(255, 255, 255, .7);
  transform: translateY(-50%);
}

.map-road-v {
  position: absolute;
  left: 40%;
  top: 0;
  bottom: 0;
  width: 10px;
  background: rgba(255, 255, 255, .7);
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-dot {
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(27, 79, 216, .4);
}

.pin-dot i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 20px;
}

.pin-shadow {
  width: 16px;
  height: 6px;
  background: rgba(0, 0, 0, .15);
  border-radius: 50%;
  margin-top: 2px;
}

.radius-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed rgba(27, 79, 216, .4);
  background: rgba(27, 79, 216, .05);
  transform: translate(-50%, -50%);
}

.map-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.accuracy-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--pp);
  border-radius: 10px;
  margin-bottom: 14px;
}

.location-row i {
  font-size: 20px;
  color: var(--brand);
}

.location-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.location-addr {
  font-size: 12px;
  color: var(--text-muted);
}

.info-row {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ============================== TABS ============================== */
.tab-strip {
  display: flex;
  gap: 6px;
  background: var(--navy-soft);
  padding: 4px;
  border-radius: 13px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab-strip button {
  flex: 1;
  white-space: nowrap;
  border: none;
  background: transparent;
  padding: 9px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
}

.tab-strip button.active {
  background: var(--card);
  color: var(--navy);
  box-shadow: var(--sh);
}

/* Form */
.form-wrap {
  padding: 16px 24px;
}

.form-section {
  margin-bottom: 15px;
  animation: slideIn 0.4s both;
}

.form-label-custom {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.field-label {
  font-size: 13px;
}

.form-control-custom {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  ;
}

.form-control-custom:focus {
  border-color: var(--accent);
  background: rgba(240, 240, 240, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

select.form-control-custom option {
  color: var(--text);
}

textarea.form-control-custom {
  resize: none;
  min-height: 100px;
}

.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}


input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    margin-right: -4px;
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 15px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--sur2);
}

.upload-area:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.03);
}

.upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.upload-text {
  font-size: 13px;
  color: var(--text-muted);
}

.fileChosen {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 13px;
  color: var(--success);
  word-wrap: break-word;
}


.selfie-area {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.selfie-area:hover {
  border-color: var(--brand);
}

.selfie-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1px;
  font-size: 25px;
}


/* FORM */
.fl {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--mu);
  margin-bottom: 5px;
  display: block;
}

.fc {
  width: 100%;
  border: 1.5px solid var(--pp);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 0.84rem;
  color: var(--tx);
  background: var(--sur2);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.fc:focus {
  border-color: var(--p);
  background: var(--sur);
}

select.fc {
  appearance: none;
}

.btn-pf {
  width: 100%;
  background: linear-gradient(135deg, var(--p), var(--pd));
  color: #fff;
  border: none;
  border-radius: var(--rs);
  padding: 12px;
  font-family: var(--fn);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

/* Button disabled */
.btn-pf:disabled {

    opacity: 0.7;
    transform: none;
}

.btn-pf:active {
  transform: scale(0.97);
}

.btn-sec {
  width: 100%;
  background: var(--pp);
  color: var(--pd);
  border: 1.5px solid var(--pl);
  border-radius: var(--rs);
  padding: 10px;
  font-family: var(--fn);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sec:disabled {
  opacity: 0.7;
}

.btn-sec:active {
  transform: scale(0.97);
}


/* ---- Modal shell: bottom sheet ---- */
.app-modal .modal-dialog {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  transition: transform .3s ease-out;
}

.app-modal.fade .modal-dialog {
  transform: translateY(100%);
}

.app-modal.show .modal-dialog {
  transform: translateY(0);
}

.app-modal .modal-content {
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -10px 40px rgba(30, 40, 80, 0.18);
  padding: 6px 6px 22px;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
  max-height: 92vh;
}

.app-modal .drag-handle {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: #e2e5ee;
  margin: 10px auto 4px;
}

.app-modal .modal-header {
  border: none;
  padding: 1px 10px 6px;
  align-items: center;
}

.app-modal .header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffe3d3, #ffd0b3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-right: 10px;
  flex-shrink: 0;
}

.app-modal .modal-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.2px;
}

.app-modal .btn-close-custom {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef1f7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6274;
  transition: background .15s ease;
}

.app-modal .btn-close-custom:hover {
  background: #e2e6f0;
}

.app-modal .modal-body {
  padding: 6px 22px 4px;
}


.sheet-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.sheet-action:hover {
  background: #f9fafb;
}

.sheet-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sheet-action-text {
  font-size: 15px;
  font-weight: 600;
}

.sheet-action-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.sheet-cancel {
  margin: 4px 16px 0;
  padding: 14px;
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  width: calc(100% - 32px);
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.15s;
}

.sheet-cancel:hover {
  background: #e5e7eb;
}

@media (max-width:420px) {
  .app-modal .modal-dialog {
    max-width: 100vw;
    margin: 0;
  }
}

/* SEARCH */
.srch {
  position: relative;
  margin: 0 14px 10px
}

.srch input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--rs);
  padding: 9px 12px 9px 36px;
  font-size: .82rem;
  outline: none;
  transition: border-color .2s;
  color: var(--tx)
}

.srch input:focus {
  border-color: var(--p)
}

.srch i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mu);
  font-size: .95rem
}


/* ARTICLE BODY */
.article-body {
  padding: 16px;
}

.article-lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--tx);
  line-height: 1.65;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.article-lead p {
  font-size: 14px;
  color: var(--tx);
  line-height: 1.75;
  margin-bottom: 14px;
}

.article-lead h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin: 18px 0 8px;
}

.article-lead ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.article-lead li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 8px;
}

.article-lead video,
.article-lead iframe,
.article-lead embed {
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-lead img{
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-lead table{
  max-width: 100%;
}
/* META ROW */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color:var(--text-muted);
}

.meta-item i {
  font-size: 13px;
  color:var(--text-muted);
}


/* ===== Score summary strip ===== */
  .score-strip{
    background:var(--card);
    border-radius:var(--rs);
    box-shadow:var(--shadow);
    padding:18px;
    display:flex;
    align-items:center;
    gap:16px;
  }

  .circle-progress {
      width:100px;
      height:100px;
      position: relative;
      margin:auto;
  }

  .circle-progress svg {
      width:100px;
      height:100px;
      transform:rotate(-90deg);
  }

  .circle-progress circle {
      fill:none;
      stroke-width:10;
  }

  .circle-progress .bg {
      stroke:#e5e7eb;
  }

  .circle-progress .progress {
      stroke:var(--pd);
      stroke-linecap:round;
      stroke-dasharray:251.2;
      stroke-dashoffset:251.2;

      transition:1.5s ease;
  }

  .percent {
      position:absolute;
      top:0;
      left:0;
      width:100px;
      height:100px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      align-items:center;
  }

  .percent strong {
      font-size:15px;
      font-weight:700;
      color:var(--tx);
  }

  .percent span {
      font-size:11px;
      color:#6b7280;
  }

  .score-meta .title{ font-size:13.5px; font-weight:700; margin:0 0 4px;}
  .score-meta .desc{ font-size:12px; color:var(--ink-soft); margin:0 0 10px; line-height:1.5;}
  .score-meta .pills{ display:flex; gap:8px; flex-wrap:wrap; }

  .pill{
    font-size:10.5px; font-weight:700;
    padding:4px 9px; border-radius:20px;
    display:flex; align-items:center; gap:4px;
  }

  /* ===== Chart card ===== */
  .chart-card{
    background:var(--card);
    border-radius:var(--rs);
    box-shadow:var(--shadow);
    padding:18px 16px 10px;
  }
  .chart-card .chead{
    display:flex; justify-content:space-between; align-items:flex-start;
    margin-bottom:6px;
  }
  .chart-card .chead h3{ font-size:13.5px; font-weight:700; margin:0;}
  .chart-card .chead p{ font-size:11px; margin:2px 0 0;}
  .legend-mini{ display:flex; gap:10px; }
  .legend-mini span{
    font-size:10.5px; font-weight:600; 
    display:flex; align-items:center; gap:5px;
  }
  .legend-mini i{ width:8px;height:8px;border-radius:2px; display:inline-block;}
  .chart-wrap{ position:relative;margin-top:6px;}


.thema-id-card {
  position: relative;
  display: inline-block;
  background: #ffffff;
  background-size: 100% !important;
  width: 300px;
  height: 480px;
  margin: auto;
  border-radius:20px;
}

.thema-id-card .header-card{
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
}

.thema-id-card .header-card img{
  height: 50px;
  width: auto;
}

.thema-id-card .avatar-idcard {
  margin-top:30px;
  position: relative;
}

.thema-id-card .avatar-idcard img {
  width:120px;
  height:120px;
  object-fit: cover;
  border-radius: 50%;
  border: solid 4px #1a325e;
}

.thema-id-card .description {
  margin-top:10px;
  text-align:center;
}

.thema-id-card .description h3{
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a325e;
  line-height:22px;
  margin: 0px;
}

.thema-id-card .description p.bold {
  font-size: 16px !important;
  font-weight: 500;
}

.thema-id-card .description p {
  font-size: 13px;
  line-height: 17px;
}

.thema-id-card .description .label i{
  color: #008FFF;
  margin-right: 10px;
}

.thema-id-card .description .label p {
  font-size: 14px;
  line-height:25px;
  padding: 0px;
  margin: auto;
  color: #111111;
}

.thema-id-card .description ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  flex-direction: column;
  margin-top: 25px;
  text-align: left;
}

.thema-id-card .description ul li {
  display: inline-block;
  align-items: center;
  font-size: 13px;
}

.thema-id-card .description ul li span {
  width: 50px;
  margin-right: 10px;
  line-height: 22px;
}


.thema-id-card .qrcode {
  display: inline-block;
  border: solid 2px #1a325e;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
  margin-top:30px;
}

.thema-id-card .qrcode img {
  height:100px;
  width: 100px;
}

.thema-id-card .footer-card{
    text-align: center;
    position: absolute;
    bottom:20px;
    left: 0;
    right: 0;
    font-size:11px;
    text-transform: uppercase;
}


  /* ===== Net salary card (floating) ===== */
  .net-card{
    position:relative; z-index:2;
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:20px;
    text-align:center;
  }
  .net-card .lbl{ font-size:12px; color:var(--pd); font-weight:600; }
  .net-card .amount{
    font-family:'JetBrains Mono', monospace;
    font-size:27px; font-weight:800;
    margin:6px 0 10px;
    color:var(--ink);
  }
  .status-badge{
    display:inline-flex; align-items:center; gap:6px;
    background:var(--pl); color:var(--p);
    font-size:11.5px; font-weight:700;
    padding:6px 14px; border-radius:20px;
  }
  .status-badge .pulse{
    width:6px;height:6px;border-radius:50%; background:var(--green);
  }
  .net-meta{
    display:flex; justify-content:center; gap:18px;
    margin-top:14px; padding-top:14px;
    border-top:1px dashed var(--line);
  }
  .net-meta .m{ text-align:center; }
  .net-meta .m .v{ font-size:12.5px; font-weight:700; }
  .net-meta .m .k{ font-size:10px; color:var(--ink-faint); font-weight:600; margin-top:2px;}

 /* ===== Section ===== */
  .section-head{
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:12px;
  }
  .section-head h2{ font-size:14.5px; font-weight:700; margin:0; display:flex; align-items:center; gap:8px;}
  .section-head .total{ font-size:13px; font-weight:800;}
  .section-head .total.pos{ color:var(--g); }
  .section-head .total.neg{ color:var(--r); }

  .dot-ic{
    width:26px;height:26px;border-radius:8px;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
  }
  .a-green{ background:#d3fff0; color:var(--g); }
  .a-rose{ background:#ffd3d3; color:var(--r); }

  /* ===== Detail list card ===== */
  .detail-card{
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    overflow:hidden;
  }
  .drow{
    display:flex; align-items:center; justify-content:space-between;
    padding:13px 16px;
    border-bottom:1px solid var(--line);
  }

  .drow:last-child{ border-bottom:none; }
  .drow .left .t{ font-size:12.5px; font-weight:700; margin:0; }
  .drow .left .s{ font-size:10.5px; color:var(--ink-faint); margin:2px 0 0; }
  .drow .right{ font-size:12.5px; font-weight:700;flex-shrink:0; padding-left:10px; text-align:right;}
  .drow .right.pos{ color:var(--g); }
  .drow .right.neg{ color:var(--r); }
  .drow.total-row{ background:var(--blue); }
  .drow.total-row .left .t{ color:var(--blue); }
  .drow.total-row .right{ color:var(--blue); font-size:13.5px; }

  /* ===== Attendance recap mini ===== */
  .recap-grid{
    display:grid; grid-template-columns:repeat(4,1fr);
    gap:8px;
  }
  .recap-cell{
    background:var(--card);
    border-radius:14px;
    box-shadow:var(--shadow);
    padding:12px 6px;
    text-align:center;
  }
  .recap-cell .v{ font-size:15px; font-weight:800; font-family:'JetBrains Mono',monospace;}
  .recap-cell .k{ font-size:9.5px; color:var(--ink-faint); font-weight:700; margin-top:3px;}


  /* ===================== CARD: NON-SHIFT (jam tetap) ===================== */
  .shift-card {
    background: linear-gradient(150deg, var(--blue-500) 0%, var(--blue-700) 60%, var(--blue-900) 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px -16px rgba(29, 63, 160, 0.55);
}

  .fixed-card{
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:20px;
  }
  .fc-top{
    display:flex; align-items:center; justify-content:space-between;
  }
  .fc-label{
    display:flex; align-items:center; gap:7px;
    font-size:12px; font-weight:700; color:var(--g);
  }
  .live-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  }
  .fc-tag{
    font-size:11px; font-weight:700;
    background:var(--p); color:var(--p);
    padding:5px 12px; border-radius:20px;
  }
  .fc-mid{
    margin-top:16px;
    display:flex; align-items:baseline; gap:10px;
  }
  .fc-mid .range{
    font-size:24px; font-weight:800; color:var(--ink);
  }
  .fc-mid .name{ font-size:12.5px; color:var(--mu); font-weight:600;}

  .fc-progress-track{
    height:8px; border-radius:6px;
    background:var(--teal-50);
    overflow:hidden;
    margin-top:16px;
  }
  .fc-progress-fill{
    height:100%; border-radius:6px;
    background:linear-gradient(90deg,var(--blue-500),var(--blue-700));
    width:42%;
  }
  .fc-progress-meta{
    display:flex; justify-content:space-between;
    margin-top:8px;
    font-size:11px; color:var(--text-main); font-weight:600;
  }
  .fc-progress-meta b{ color:var(--text-main); font-weight:700; }

  .fc-bottom{
    display:flex; align-items:center; justify-content:space-between;
    margin-top:16px; padding-top:14px;
    border-top:1px dashed var(--line);
  }
  .fc-bottom .loc{
    display:flex; align-items:center; gap:6px;
    font-size:11.5px; color:var(--muted); font-weight:600;
  }
  .fc-bottom .countdown{ text-align:right; }
  .fc-bottom .countdown .cd-val{
    font-size:13px; font-weight:600; color:var(--text-main);
  }
  .fc-bottom .countdown .cd-lbl{
    font-size:9.5px; color:var(--text-main); font-weight:700;
    text-transform:uppercase; letter-spacing:.3px;
  }




/* Mobile */
@media (max-width:480px) {
  .app {
    max-width: 460px;
  }
  .fnav {
    max-width: 460px;
  }

  .date-range {
    display: grid;
  }
}

@supports (-webkit-touch-callout: none) {
    input[type="date"]{
      width:92%;
    }

    .custom-date input[type="date"],
    .custom-jam input[type="time"] {
      width:81%;
    }
    
}

@supports (-webkit-touch-callout: none) {
    .custom-date input[type="date"],
    .custom-jam input[type="time"] {
      width:81%;
    }
}