:root {
  --absensi-navy: #12355b;
  --absensi-teal: #0f766e;
  --absensi-green: #198754;
  --absensi-orange: #f59f00;
  --absensi-red: #d6333f;
  --absensi-soft: #f4f7fb;
}

body {
  background: #eef3f8;
}

.brand-mark {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 8px;
  color: #fff;
  background: var(--absensi-teal);
}

.brand-mark i {
  font-size: 18px;
}

.role-dashboard .card {
  border-radius: 8px;
}

.role-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--absensi-navy);
  box-shadow: 0 12px 28px rgba(18, 53, 91, 0.18);
}

.hero-petugas {
  background: linear-gradient(135deg, #12355b, #0d6efd);
}

.hero-karyawan {
  background: linear-gradient(135deg, #0f5132, #198754);
}

.hero-kepala {
  background: linear-gradient(135deg, #4a2c82, #0f766e);
}

.role-hero h2 {
  max-width: 720px;
  margin: 10px 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.role-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 26px;
  flex: 0 0 52px;
}

.soft-blue {
  color: #0d6efd;
  background: #e7f0ff;
}

.soft-green {
  color: var(--absensi-green);
  background: #e6f6ee;
}

.soft-orange {
  color: var(--absensi-orange);
  background: #fff4db;
}

.soft-red {
  color: var(--absensi-red);
  background: #fde9ec;
}

.approval-list {
  display: grid;
  gap: 12px;
}

.approval-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ebeef4;
  border-radius: 8px;
  background: #fff;
}

.approval-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--absensi-teal);
  background: #e6f5f3;
}

.approval-item h6 {
  margin: 0 0 4px;
  color: #012970;
  font-size: 15px;
  font-weight: 700;
}

.approval-item p {
  margin: 0;
  color: #6c757d;
  font-size: 13px;
}

.feature-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px;
  border: 1px solid #ebeef4;
  border-radius: 8px;
  color: #012970;
  background: #fff;
}

.feature-tile:hover {
  color: #0d6efd;
  border-color: #cfe2ff;
  background: #f8fbff;
}

.feature-tile strong,
.feature-tile small {
  display: block;
}

.feature-tile small {
  margin-top: 3px;
  color: #6c757d;
}

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

.chart-box {
  min-height: 250px;
}

.chart-tall {
  min-height: 330px;
}

.attendance-panel {
  padding: 4px 0 2px;
}

.attendance-clock {
  color: #012970;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-success {
  color: #0f5132;
  background: #d1e7dd;
}

.status-muted {
  color: #495057;
  background: #e9ecef;
}

.empty-state {
  padding: 14px;
  border: 1px dashed #cfd8e3;
  border-radius: 8px;
  color: #6c757d;
  background: #f8fafc;
  font-size: 14px;
}

.master-input {
  /* border: 1px solid #1f2937; */
  border-radius: 0;
  color: #6b7280;
  font-size: 18px;
}

.master-input::placeholder {
  color: #9ca3af;
}

.master-mockup-form .form-label {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.target-work-form {
  padding: 24px;
  border: 2px solid #111827;
  border-radius: 18px;
  background: #fff;
}

.target-work-form .form-label {
  margin-bottom: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.target-work-form .master-input {
  min-height: 38px;
  font-size: 16px;
}

.target-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.target-form-actions .btn {
  min-width: 150px;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 98px;
  border: 1px dashed #9bb6d8;
  border-radius: 8px;
  color: #315f8f;
  background: #f5f9ff;
  font-weight: 600;
}

.timeline-compact {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
}

.timeline-item p {
  margin: 2px 0 0;
  color: #6c757d;
}

.progress-thin {
  height: 8px;
  min-width: 120px;
  border-radius: 999px;
}

.work-target-table td {
  min-width: 130px;
  white-space: normal;
}

.work-target-table td:nth-child(2),
.work-target-table td:nth-child(6) {
  min-width: 240px;
}

.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59f00;
  font-size: 13px;
  font-weight: 700;
}

.review-summary {
  padding: 12px;
  border: 1px solid #ebeef4;
  border-radius: 8px;
  background: #f8fafc;
}

.login-page {
  min-height: 100vh;
  background: #eef3f8;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  min-height: 100vh;
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  color: #fff;
    background-image: url("../../../asset/image/bg-login.png");
  /* background: #12355b; */
}

.login-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.login-brand:hover {
  color: #fff;
}

.login-intro h1 {
  max-width: 640px;
  margin: 18px 0 12px;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-intro p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(18, 53, 91, 0.12);
}

.login-card-header h2 {
  margin: 0 0 6px;
  color: #012970;
  font-size: 26px;
  font-weight: 700;
}

.login-card-header p {
  margin: 0 0 18px;
  color: #6c757d;
}

.login-accounts {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ebeef4;
  color: #495057;
  font-size: 13px;
}

.login-accounts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.login-accounts span {
  color: #6c757d;
  text-align: right;
}

.login-accounts p {
  margin: 4px 0 0;
}

@media (max-width: 768px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 280px;
    padding: 28px;
  }

  .login-intro h1 {
    font-size: 28px;
  }

  .login-form-area {
    padding: 22px;
  }

  .login-card {
    padding: 22px;
  }

  .login-accounts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .login-accounts span {
    text-align: left;
  }

  .target-work-form {
    padding: 18px;
  }

  .target-work-form .form-label {
    font-size: 16px;
  }

  .target-form-actions,
  .target-form-actions .btn {
    width: 100%;
  }

  .role-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .role-hero h2 {
    font-size: 22px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .approval-item {
    grid-template-columns: auto 1fr;
  }

  .approval-item > .badge,
  .approval-item > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
