body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.min-w-0 { min-width: 0 !important; }
.sidebar .nav-link { padding: .5rem .75rem; border-radius: .375rem; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.1); }
.sidebar { position: sticky; top: 0; }

/* Admin login page */
.admin-login-body {
  background: linear-gradient(180deg, #ffffff 0 42%, #e9eef5 42% 100%);
}

.admin-login-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.admin-login-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.admin-login-icon svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
}

.admin-login-title {
  font-weight: 800;
}

.admin-login-subtitle {
  color: #6c757d;
}

.admin-login-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-login-btn {
  background: #16a34a;
  border: 1px solid #16a34a;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.admin-login-btn:hover,
.admin-login-btn:focus {
  background: #12833c;
  border-color: #12833c;
  color: #ffffff;
}

@media (max-height: 720px) {
  .admin-login-page {
    align-items: flex-start;
    padding-top: 1.5rem;
  }
}

/* Employee login page */
.employee-login-body {
  background: radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.18), transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(34, 197, 94, 0.14), transparent 48%),
    linear-gradient(135deg, #d1fae5 0%, #e9fbf2 45%, #dbeafe 110%);
}

.employee-login-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 2.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.employee-login-card {
  width: 100%;
  max-width: 520px;
  border: 0;
  border-radius: 1.1rem;
  box-shadow: 0 1rem 2.4rem rgba(2, 6, 23, 0.12);
}

.employee-login-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.85rem;
}

.employee-login-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.2;
}

.employee-login-meta {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  margin-top: 0.35rem;
}

.employee-login-welcome {
  font-size: 0.92rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.employee-login-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.employee-login-page .form-control:focus,
.employee-login-page .form-select:focus {
  border-color: rgba(91, 169, 154, 0.75);
  box-shadow: 0 0 0 0.25rem rgba(91, 169, 154, 0.18);
}

.employee-login-password .btn {
  background: #ffffff;
  border-left: 0;
}

.employee-login-password .btn:hover {
  background: #f8fafc;
}

.employee-login-btn {
  background: #5ba99a;
  border: 1px solid #5ba99a;
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-weight: 800;
  border-radius: 0.95rem;
}

.employee-login-btn:hover,
.employee-login-btn:focus {
  background: #4a9487;
  border-color: #4a9487;
  color: #ffffff;
}

.employee-login-register {
  font-size: 0.9rem;
  color: #475569;
}

.employee-login-register a {
  color: #16a34a;
  font-weight: 800;
  text-decoration: none;
}

.employee-login-register a:hover {
  text-decoration: underline;
}

.employee-login-footer {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

.employee-login-note {
  max-width: 560px;
  width: 100%;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  text-align: center;
}

.employee-login-note i {
  margin-top: 0.12rem;
}

@media (max-height: 720px) {
  .employee-login-page {
    justify-content: flex-start;
    padding-top: 1.5rem;
  }
}

/* Employee app layout */
.employee-shell {
  background: linear-gradient(180deg, #dff6ee 0%, #e9fbf2 55%, #d1fae5 110%);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}

.employee-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.employee-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.employee-menu-btn:hover,
.employee-menu-btn:focus {
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.12);
}

.employee-topbar-title {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.employee-bell-btn {
  width: 44px;
  height: 44px;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.employee-bell-btn:hover,
.employee-bell-btn:focus {
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.12);
}

.employee-bell-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
}

.employee-bell-dot.is-active {
  display: block;
}

.employee-toast-container {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 1100;
  display: grid;
  gap: 0.75rem;
  width: min(420px, calc(100vw - 48px));
  pointer-events: none;
}

.employee-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  color: #ffffff;
  box-shadow: 0 1.1rem 2.2rem rgba(2, 6, 23, 0.18);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.employee-toast.is-show {
  transform: translateY(0);
  opacity: 1;
}

.employee-toast--success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.employee-toast--info {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.employee-toast--warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
}

.employee-toast--danger {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.employee-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.employee-toast--warning .employee-toast-icon {
  background: rgba(15, 23, 42, 0.1);
}

.employee-toast-body {
  flex: 1;
  min-width: 0;
}

.employee-toast-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.employee-toast-message {
  margin-top: 0.2rem;
  font-weight: 700;
  opacity: 0.95;
  word-break: break-word;
}

.employee-toast-close {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  opacity: 0.9;
  line-height: 1;
}

.employee-toast-close:hover,
.employee-toast-close:focus {
  opacity: 1;
}

.employee-notif-panel {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 1090;
  width: min(380px, calc(100vw - 48px));
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1.1rem 2.2rem rgba(2, 6, 23, 0.14);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.employee-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.employee-notif-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.employee-notif-close {
  width: 40px;
  height: 40px;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.employee-notif-close:hover,
.employee-notif-close:focus {
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.12);
}

.employee-notif-body {
  padding: 1rem 1.05rem 1.1rem;
  max-height: min(420px, calc(100vh - 140px));
  overflow: auto;
}

.employee-notif-loading {
  color: #64748b;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.employee-notif-list {
  display: grid;
  gap: 0.85rem;
}

.employee-notif-item {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.85);
  border-left: 6px solid rgba(148, 163, 184, 0.75);
}

.employee-notif-item.is-read {
  opacity: 0.85;
}

.employee-notif-item--success {
  border-left-color: rgba(34, 197, 94, 0.7);
  background: rgba(236, 253, 245, 0.75);
}

.employee-notif-item--info {
  border-left-color: rgba(14, 165, 233, 0.7);
  background: rgba(224, 242, 254, 0.75);
}

.employee-notif-item--warning {
  border-left-color: rgba(245, 158, 11, 0.7);
  background: rgba(254, 249, 195, 0.65);
}

.employee-notif-item--danger {
  border-left-color: rgba(239, 68, 68, 0.75);
  background: rgba(254, 242, 242, 0.75);
}

.employee-notif-item-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.employee-notif-item-message {
  color: #334155;
  font-weight: 700;
  word-break: break-word;
}

.employee-notif-item-time {
  margin-top: 0.4rem;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.85rem;
}

.employee-logout-btn {
  background: #5ba99a;
  border: 1px solid #5ba99a;
  color: #ffffff;
  font-weight: 800;
  border-radius: 0.9rem;
  padding: 0.65rem 1.1rem;
}

.employee-logout-btn:hover,
.employee-logout-btn:focus {
  background: #4a9487;
  border-color: #4a9487;
  color: #ffffff;
}

.employee-sidebar {
  width: 320px;
  max-width: 92vw;
  background: #ffffff;
}

.employee-sidebar .offcanvas-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.employee-sidebar-brand {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  line-height: 1.2;
}

.employee-sidebar-user {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.employee-user-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.employee-user-role {
  color: #64748b;
  font-size: 0.9rem;
}

.employee-sidenav {
  padding: 0.9rem 1rem 1.25rem;
  gap: 0.35rem;
}

.employee-sidenav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  color: #0f172a;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.employee-sidenav-link:hover {
  background: rgba(22, 163, 74, 0.1);
  color: #0f172a;
  transform: translateX(2px);
  box-shadow: 0 0.9rem 1.8rem rgba(2, 6, 23, 0.08);
}

.employee-sidenav-link:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.2);
  outline-offset: 2px;
}

.employee-sidenav-link.active {
  background: rgba(22, 163, 74, 0.14);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.16);
}

.employee-sidenav-icon {
  width: 1.25rem;
  display: inline-flex;
  justify-content: center;
  color: #334155;
}

.employee-main {
  padding: 1.75rem 1rem 3rem;
}

.employee-content {
  max-width: 1100px;
  margin: 0 auto;
}

.employee-action-card {
  color: inherit;
  text-decoration: none;
  display: block;
}

.employee-panel-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 1.6rem rgba(2, 6, 23, 0.06);
  background: #ffffff;
}

.employee-panel-card--hover {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.employee-panel-card--hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.2rem rgba(2, 6, 23, 0.1);
}

.employee-hero-card {
  border: 0;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #16a34a 0%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 1.15rem 2.4rem rgba(2, 6, 23, 0.14);
}

.employee-hero-body {
  padding: 1.75rem 1.75rem;
}

.employee-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 992px) {
  .employee-hero-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

.employee-hero-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}

.employee-hero-subtitle {
  margin-top: 0.35rem;
  font-size: 1rem;
  opacity: 0.9;
}

.employee-hero-date {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  opacity: 0.95;
}

.employee-hero-clock {
  text-align: left;
}

@media (min-width: 992px) {
  .employee-hero-clock {
    text-align: right;
  }
}

.employee-hero-time {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1;
}

.employee-hero-time-label {
  opacity: 0.9;
  font-weight: 600;
  margin-top: 0.35rem;
}

.employee-panel-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.employee-panel-status {
  font-weight: 700;
  color: #0f172a;
}

.employee-panel-status--done {
  color: #047857;
}

.employee-panel-hint {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.92rem;
}

.employee-panel-icon,
.employee-metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.employee-panel-icon--green,
.employee-metric-icon--green {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.employee-panel-icon--blue,
.employee-metric-icon--blue {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.employee-metric-icon--orange {
  background: rgba(249, 115, 22, 0.16);
  color: #ea580c;
}

.employee-metric-label {
  color: #64748b;
  font-weight: 700;
  font-size: 0.95rem;
}

.employee-metric-value {
  margin-top: 0.35rem;
  font-weight: 900;
  font-size: 2.05rem;
  color: #0f172a;
  line-height: 1;
}

.employee-metric-value--orange {
  color: #ea580c;
}

.employee-metric-value--blue {
  color: #2563eb;
}

.employee-page-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
}

.employee-qr-wrap {
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.employee-qr-svg svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.employee-qr-caption {
  margin-top: 0.75rem;
  color: #334155;
  font-size: 0.95rem;
}

.employee-meta-label {
  font-weight: 700;
  color: #64748b;
  font-size: 0.9rem;
}

.employee-meta-value {
  font-weight: 800;
  color: #0f172a;
}

.employee-btn-soft {
  border-radius: 0.9rem;
  font-weight: 700;
}

.employee-history-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.employee-history-filter .form-select {
  min-width: 150px;
  border-radius: 0.9rem;
  border-color: rgba(22, 163, 74, 0.45);
  font-weight: 700;
}

.employee-history-filter .form-select:focus {
  border-color: rgba(22, 163, 74, 0.75);
  box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.12);
}

.employee-empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.employee-empty-icon {
  width: 74px;
  height: 74px;
  border-radius: 1.4rem;
  background: #f1f5f9;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.employee-empty-title {
  font-weight: 800;
  color: #64748b;
  font-size: 1.05rem;
}

.employee-empty-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
}

.employee-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.employee-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.7);
}

.employee-history-date {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.employee-history-times {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.employee-history-time {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 800;
  color: #0f172a;
  font-size: 0.9rem;
}

.employee-history-time i {
  color: #16a34a;
}

.employee-history-notes {
  margin-top: 0.6rem;
  color: #64748b;
  font-size: 0.92rem;
}

.employee-history-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 575.98px) {
  .employee-history-item {
    flex-direction: column;
  }
  .employee-history-meta {
    justify-content: flex-start;
  }
}

.employee-toast-container {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(92vw, 320px);
}

.employee-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1rem 2.2rem rgba(2, 6, 23, 0.18);
  transform: translateY(0);
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms ease;
}

.employee-toast--success {
  background: #22c55e;
}

.employee-toast--error {
  background: #ef4444;
}

.employee-toast--hide {
  opacity: 0;
  transform: translateY(-6px);
}

.employee-qrgen-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2.5rem;
}

.employee-qrgen-card {
  width: 100%;
  max-width: 720px;
  border-radius: 1.5rem;
}

.employee-qrgen-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.85rem;
}

.employee-qrgen-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.employee-qrgen-subtitle {
  color: #64748b;
  margin-top: 0.25rem;
}

.employee-qrgen-pin .btn {
  background: #ffffff;
  border-left: 0;
}

.employee-qrgen-pin .btn:hover {
  background: #f8fafc;
}

.employee-qrgen-qrwrap {
  display: flex;
  justify-content: center;
}

.employee-qrgen-qr {
  width: min(320px, 82vw);
  border-radius: 1.25rem;
  border: 6px solid rgba(91, 169, 154, 0.95);
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 0.9rem 1.8rem rgba(2, 6, 23, 0.08);
}

.employee-qrgen-qr svg {
  width: 100%;
  height: auto;
  display: block;
}

.employee-qrgen-done {
  font-weight: 900;
  margin-top: 0.25rem;
}

.employee-qrgen-hint {
  color: #475569;
  margin-top: 0.25rem;
}

.employee-qrgen-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  color: #f97316;
  font-size: 1.25rem;
}

.employee-qrgen-countdown--expired {
  color: #ef4444;
}

.employee-qrgen-expire-note {
  margin-top: 0.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.employee-qrgen-geo {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.employee-qrgen-scanstatus {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  margin: 1rem auto 0;
  max-width: 520px;
  text-align: left;
  font-weight: 700;
}

.employee-qrgen-scanstatus i {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-top: 0.05rem;
}

.employee-qrgen-scanstatus--pending {
  background: #f1f5f9;
  color: #0f172a;
}

.employee-qrgen-scanstatus--success {
  background: #dcfce7;
  color: #166534;
}

.employee-qrgen-scanstatus--error {
  background: #fee2e2;
  color: #991b1b;
}

.employee-qrgen-scanstatus--expired {
  background: #f1f5f9;
  color: #334155;
}

.employee-leave-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.employee-leave-select,
.employee-leave-input,
.employee-leave-textarea {
  border-radius: 0.9rem;
}

.employee-leave-select:focus,
.employee-leave-input:focus,
.employee-leave-textarea:focus {
  border-color: rgba(91, 169, 154, 0.75);
  box-shadow: 0 0 0 0.25rem rgba(91, 169, 154, 0.18);
}

.employee-leave-history {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.employee-leave-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.7);
}

.employee-leave-item-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.employee-leave-item-dates {
  margin-top: 0.35rem;
  color: #475569;
  font-weight: 700;
}

.employee-leave-item-duration {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.92rem;
}

.employee-leave-item-meta {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 575.98px) {
  .employee-leave-item {
    flex-direction: column;
  }
  .employee-leave-item-meta {
    justify-content: flex-start;
  }
}

.employee-map-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.employee-map-card {
  border-radius: 1.5rem;
  overflow: hidden;
}

.employee-map-top {
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.employee-map-canvas {
  height: clamp(220px, 36vh, 380px);
  height: clamp(220px, 36svh, 380px);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(59, 130, 246, 0.14));
}

.employee-map-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1rem;
  color: rgba(15, 23, 42, 0.8);
}

.employee-map-overlay-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 1rem 2rem rgba(2, 6, 23, 0.16);
}

.employee-map-overlay-title {
  margin-top: 0.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.95);
  font-size: 1.25rem;
}

.employee-map-overlay-subtitle {
  max-width: 720px;
  color: rgba(71, 85, 105, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.employee-loc-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.8);
}

.employee-loc-status-badge {
  width: 46px;
  height: 46px;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.employee-loc-status-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.employee-loc-status-subtitle {
  color: #64748b;
  font-size: 0.92rem;
}

.employee-loc-status--valid {
  background: rgba(220, 252, 231, 0.8);
  border-color: rgba(22, 163, 74, 0.18);
}

.employee-loc-status--valid .employee-loc-status-badge {
  background: rgba(34, 197, 94, 0.16);
  color: #16a34a;
}

.employee-loc-status--invalid {
  background: rgba(254, 226, 226, 0.85);
  border-color: rgba(239, 68, 68, 0.18);
}

.employee-loc-status--invalid .employee-loc-status-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.employee-loc-status--loading .employee-loc-status-badge {
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
}

.employee-loc-details {
  background: rgba(241, 245, 249, 0.75);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
}

.employee-loc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}

.employee-loc-label {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
}

.employee-loc-value {
  font-weight: 900;
  color: #0f172a;
}

.employee-loc-value--good {
  color: #16a34a;
}

.employee-loc-value--bad {
  color: #ef4444;
}

.employee-settings-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.employee-settings-card {
  border-radius: 1.5rem;
  overflow: hidden;
}

.employee-settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.employee-settings-tab {
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  color: #0f172a;
  padding: 0.85rem 0.75rem;
  border-radius: 1rem;
  background: rgba(241, 245, 249, 0.9);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.employee-settings-tab:hover {
  background: rgba(22, 163, 74, 0.1);
  color: #0f172a;
}

.employee-settings-tab.active {
  background: rgba(22, 163, 74, 0.12);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.18);
}

.employee-settings-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
  margin-bottom: 1.35rem;
}

.employee-settings-hint {
  font-weight: 600;
  font-size: 0.95rem;
}

.employee-settings-card .form-control:focus,
.employee-settings-card .form-select:focus {
  border-color: rgba(91, 169, 154, 0.75);
  box-shadow: 0 0 0 0.25rem rgba(91, 169, 154, 0.18);
}

.employee-profile-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.employee-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(22, 163, 74, 0.14);
  border: 3px solid rgba(22, 163, 74, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-avatar-fallback {
  font-weight: 900;
  font-size: 2.25rem;
  color: #166534;
}

.employee-avatar-edit {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.75rem 1.5rem rgba(2, 6, 23, 0.12);
  cursor: pointer;
}

.employee-profile-name {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.4rem;
}

.employee-profile-sub {
  color: #64748b;
  font-weight: 700;
  margin-top: 0.15rem;
}

.employee-settings-actions {
  display: flex;
  justify-content: flex-start;
}

.employee-settings-save {
  min-width: 220px;
}

.employee-settings-softbtn {
  background: rgba(91, 169, 154, 0.22);
  border: 1px solid rgba(91, 169, 154, 0.25);
  color: #0f172a;
  font-weight: 800;
  border-radius: 0.95rem;
  padding: 0.65rem 1rem;
}

.employee-settings-softbtn:hover,
.employee-settings-softbtn:focus {
  background: rgba(91, 169, 154, 0.3);
  border-color: rgba(91, 169, 154, 0.4);
  color: #0f172a;
}

.employee-security-stack {
  display: grid;
  gap: 1.1rem;
}

.employee-security-devices {
  padding: 1.25rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.85);
}

.employee-security-meta.text-danger {
  color: #ef4444;
}

.employee-device-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.95rem;
}

.employee-device-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.employee-device-row.is-current {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(236, 253, 245, 0.65);
}

.employee-device-info {
  flex: 1;
  min-width: 0;
}

.employee-device-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.employee-device-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  min-width: 0;
  word-break: break-word;
}

.employee-device-title-label {
  color: #64748b;
  font-weight: 800;
  margin-right: 0.25rem;
}

.employee-device-current {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.employee-device-conn {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #0f172a;
  background: rgba(91, 169, 154, 0.22);
  border: 1px solid rgba(91, 169, 154, 0.25);
  white-space: nowrap;
}

.employee-device-meta {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.25rem;
  word-break: break-word;
}

.employee-device-actions {
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.employee-device-delete {
  background: transparent;
  border: 0;
  padding: 0;
  color: #ef4444;
  font-weight: 900;
}

.employee-device-delete:hover,
.employee-device-delete:focus {
  color: #dc2626;
  text-decoration: underline;
}

.employee-device-empty {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(241, 245, 249, 0.7);
  font-weight: 700;
}

.employee-security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.85);
}

.employee-security-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.employee-security-sub {
  color: #475569;
  font-weight: 700;
  margin-top: 0.15rem;
}

.employee-security-meta {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.employee-security-icon {
  width: 52px;
  height: 52px;
  border-radius: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: #64748b;
  background: rgba(148, 163, 184, 0.2);
}

.employee-security-icon--success {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.16);
}

.employee-settings-modal {
  border-radius: 1.25rem;
  overflow: hidden;
}

.employee-settings-password .btn {
  background: #ffffff;
  border-left: 0;
}

.employee-settings-password .btn:hover {
  background: #f8fafc;
}

@media (max-width: 575.98px) {
  .employee-settings-tabs {
    padding: 0.9rem 0.9rem;
    gap: 0.55rem;
  }
  .employee-settings-tab {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
  }
  .employee-settings-save {
    width: 100%;
    min-width: 0;
  }
  .employee-profile-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .employee-device-row {
    flex-direction: column;
  }
  .employee-device-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .employee-toast-container {
    top: 76px;
    right: 16px;
    width: calc(100vw - 32px);
  }
  .employee-notif-panel {
    top: 76px;
    right: 16px;
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .employee-panel-card--hover {
    transition: none;
  }
  .employee-panel-card--hover:hover {
    transform: none;
    box-shadow: 0 0.75rem 1.6rem rgba(2, 6, 23, 0.06);
  }
  .employee-sidenav-link,
  .employee-menu-btn,
  .employee-bell-btn {
    transition: none;
  }
  .employee-sidenav-link:hover {
    transform: none;
    box-shadow: none;
  }
}

@media print {
  .employee-topbar,
  .employee-sidebar {
    display: none !important;
  }
  .employee-shell {
    background: #ffffff !important;
  }
  .employee-main {
    padding: 0 !important;
  }
}

/* Admin panel layout */
.admin-shell {
  background: #f5f7fb;
}

.admin-shell .btn-outline-success {
  --bs-btn-color: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #16a34a;
  --bs-btn-hover-border-color: #16a34a;
  --bs-btn-active-bg: #12833c;
  --bs-btn-active-border-color: #12833c;
  --bs-btn-focus-shadow-rgb: 22, 163, 74;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
  background: #16a34a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.admin-brand-icon--sm {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  font-size: 1.2rem;
}

.admin-brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
}

.admin-brand-subtitle {
  color: #64748b;
  font-size: 0.9rem;
}

.admin-logout-btn {
  border-radius: 0.85rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  background: #ef4444;
  border-color: #ef4444;
}

.admin-logout-btn:hover,
.admin-logout-btn:focus {
  background: #dc2626;
  border-color: #dc2626;
}

@media (min-width: 992px) {
  .admin-body {
    display: flex;
  }
}

.admin-sidebar {
  background: #eafff4;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  --bs-offcanvas-width: 280px;
  width: 280px;
}

@media (min-width: 992px) {
  .admin-sidebar {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
  }
}

.admin-sidebar .offcanvas-header {
  background: #eafff4;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-sidenav {
  padding: 1rem;
  gap: 0.35rem;
}

.admin-sidenav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.95rem;
  color: #0f172a;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-sidenav-link::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: #16a34a;
  opacity: 0;
  transition: height 160ms ease, opacity 160ms ease;
}

.admin-sidenav-link:hover {
  background: rgba(22, 163, 74, 0.1);
  color: #0f172a;
  transform: translateX(2px);
  box-shadow: 0 0.9rem 1.8rem rgba(2, 6, 23, 0.08);
}

.admin-sidenav-link:hover::before {
  height: 60%;
  opacity: 1;
}

.admin-sidenav-link:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.25);
  outline-offset: 2px;
}

.admin-sidenav-link.active {
  background: rgba(22, 163, 74, 0.14);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.16);
}

.admin-sidenav-link.active::before {
  height: 70%;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidenav-link,
  .admin-sidenav-link::before {
    transition: none;
  }
  .admin-sidenav-link:hover {
    transform: none;
    box-shadow: none;
  }
}

.admin-sidenav-icon {
  width: 1.25rem;
  display: inline-flex;
  justify-content: center;
  color: #334155;
}

.admin-content {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
}

.admin-content > .container-fluid {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.admin-page-header {
  margin-bottom: 1rem;
}

.admin-page-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.75rem, 2.1vw, 2.25rem);
  letter-spacing: -0.02em;
}

.admin-page-subtitle {
  margin-top: 0.25rem;
  color: #334155;
  font-size: 1.05rem;
}

.admin-panel-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 1.6rem rgba(2, 6, 23, 0.06);
}

.admin-stat-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 1.6rem rgba(2, 6, 23, 0.06);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.2rem rgba(2, 6, 23, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .admin-stat-card {
    transition: none;
  }
  .admin-stat-card:hover {
    transform: none;
  }
}

.admin-stat-label {
  color: #475569;
  font-size: 0.95rem;
}

.admin-stat-value {
  font-weight: 900;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  line-height: 1.1;
  margin-top: 0.15rem;
}

.admin-stat-sub {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex: 0 0 auto;
}

.admin-stat-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.admin-stat-icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.admin-stat-icon--yellow {
  background: #fef9c3;
  color: #d97706;
}

.admin-stat-icon--red {
  background: #fee2e2;
  color: #dc2626;
}

.admin-leave-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto;
}

.admin-leave-stat-icon--yellow {
  background: #fef9c3;
  color: #d97706;
}

.admin-leave-stat-icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.admin-leave-stat-icon--red {
  background: #fee2e2;
  color: #dc2626;
}

.admin-leave-stat-value {
  font-weight: 900;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  line-height: 1.1;
}

.admin-leave-stat-value--yellow {
  color: #d97706;
}

.admin-leave-stat-value--green {
  color: #16a34a;
}

.admin-leave-stat-value--red {
  color: #dc2626;
}

.admin-activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.admin-activity-item--success {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.admin-activity-item--success .admin-activity-dot {
  background: #16a34a;
}

.admin-activity-item--warning {
  background: #fefce8;
  border-color: #fde68a;
}

.admin-activity-item--warning .admin-activity-dot {
  background: #d97706;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 576px) {
  .admin-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .admin-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-quick-grid.admin-quick-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-quick-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1rem;
  min-height: 118px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.admin-quick-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 1.8rem rgba(2, 6, 23, 0.08);
}

.admin-quick-card:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.25);
  outline-offset: 2px;
}

.admin-quick-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.admin-quick-label {
  text-align: center;
}

.admin-quick-card--green {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #16a34a;
}

.admin-quick-card--blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.admin-quick-card--purple {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #7c3aed;
}

.admin-quick-card--yellow {
  background: #fefce8;
  border-color: #fde68a;
  color: #d97706;
}

.admin-quick-card--red {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.admin-quick-card--orange {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
}

.admin-quick-card--gray {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

.admin-report-metric {
  font-weight: 900;
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  line-height: 1.1;
}

.admin-report-actions .btn {
  border-radius: 0.9rem;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
}

/* Employee management */
.admin-shell .btn-success {
  --bs-btn-bg: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #12833c;
  --bs-btn-hover-border-color: #12833c;
  --bs-btn-active-bg: #0f6a30;
  --bs-btn-active-border-color: #0f6a30;
  --bs-btn-focus-shadow-rgb: 22, 163, 74;
}

.admin-shell .form-control:focus,
.admin-shell .form-select:focus {
  border-color: rgba(22, 163, 74, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.15);
}

.admin-attendance-toolbar {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-attendance-table thead th {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 1.05rem 1rem;
}

.admin-attendance-table tbody td {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.05rem 1rem;
}

.admin-attendance-table tbody tr:hover {
  background: rgba(22, 163, 74, 0.04);
}

.admin-att-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
}

.admin-att-badge--hadir {
  background: #dcfce7;
  color: #16a34a;
}

.admin-att-badge--izin {
  background: #fef9c3;
  color: #d97706;
}

.admin-att-badge--sakit {
  background: #dbeafe;
  color: #2563eb;
}

.admin-att-badge--alfa {
  background: #fee2e2;
  color: #dc2626;
}

.admin-att-badge--default {
  background: #e2e8f0;
  color: #334155;
}

.admin-employee-toolbar {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-employee-add-btn {
  border-radius: 0.9rem;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
}

.admin-employee-table thead th {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 1.05rem 1rem;
}

.admin-employee-table tbody td {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.05rem 1rem;
}

.admin-employee-table tbody tr:hover {
  background: rgba(22, 163, 74, 0.04);
}

.admin-col-id {
  width: 120px;
}

.admin-col-photo {
  width: 90px;
}

.admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  user-select: none;
}

.admin-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.admin-modal {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgba(2, 6, 23, 0.18);
}

.admin-photo-preview {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #334155;
}

.admin-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-modal-primary,
.admin-modal-secondary {
  border-radius: 0.95rem;
  font-weight: 800;
}

.admin-modal-secondary {
  background: #64748b;
  border-color: #64748b;
}

.admin-modal-secondary:hover,
.admin-modal-secondary:focus {
  background: #475569;
  border-color: #475569;
}

.admin-avatar--green {
  background: #dcfce7;
  color: #16a34a;
}

.admin-avatar--blue {
  background: #dbeafe;
  color: #2563eb;
}

.admin-avatar--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.admin-avatar--orange {
  background: #ffedd5;
  color: #ea580c;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-status-badge--active {
  background: #dcfce7;
  color: #16a34a;
}

.admin-status-badge--inactive {
  background: #fee2e2;
  color: #dc2626;
}

.admin-leave-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-leave-status--pending {
  background: #fef9c3;
  color: #d97706;
}

.admin-leave-status--approved {
  background: #dcfce7;
  color: #16a34a;
}

.admin-leave-status--rejected {
  background: #fee2e2;
  color: #dc2626;
}

.admin-leave-action-summary {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
}

.admin-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-action:hover {
  background: rgba(2, 6, 23, 0.04);
  transform: translateY(-1px);
}

.admin-action:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.25);
  outline-offset: 2px;
}

.admin-action--edit {
  color: #2563eb;
}

.admin-action--view {
  color: #16a34a;
}

.admin-action--warn {
  color: #d97706;
}

.admin-action--delete {
  color: #dc2626;
}

.admin-employee-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-shell .pagination {
  gap: 0.45rem;
  --bs-pagination-active-bg: #16a34a;
  --bs-pagination-active-border-color: #16a34a;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.18);
}

.admin-shell .page-link {
  border-radius: 0.75rem;
  font-weight: 600;
}

/* QR generator */
.admin-qr-preview-box {
  border: 2px dashed rgba(148, 163, 184, 0.6);
  border-radius: 1.25rem;
  background: #f8fafc;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.admin-qr-preview-inner {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.admin-qr-preview-inner svg {
  width: 100%;
  height: auto;
  display: block;
}

.admin-qr-table thead th {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 1.05rem 1rem;
}

.admin-qr-table tbody td {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.05rem 1rem;
}

.admin-qr-table tbody tr:hover {
  background: rgba(22, 163, 74, 0.04);
}

.admin-qr-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-qr-status--ready {
  background: #dcfce7;
  color: #16a34a;
}

.admin-qr-status--empty {
  background: #e2e8f0;
  color: #334155;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

.admin-role-badge--blue {
  background: #dbeafe;
  color: #2563eb;
}

.admin-role-badge--purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.admin-role-badge--orange {
  background: #fff7ed;
  color: #ea580c;
}

.admin-role-badge--red {
  background: #fee2e2;
  color: #dc2626;
}

.admin-role-badge--teal {
  background: #ccfbf1;
  color: #0f766e;
}

.admin-role-badge--gray {
  background: #e2e8f0;
  color: #334155;
}

.admin-action--disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* QR scan */
.admin-scan-box {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.25rem;
  background: #ffffff;
  min-height: 420px;
  overflow: hidden;
}

.admin-scan-reader {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.admin-scan-reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.admin-scan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.85));
  pointer-events: none;
}

.admin-scan-placeholder {
  width: clamp(84px, 22vw, 120px);
  height: clamp(84px, 22vw, 120px);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.admin-scan-placeholder i {
  line-height: 1;
}

.admin-scan-result-area {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  background: #f8fafc;
  padding: 1.25rem;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.admin-scan-result-details {
  place-self: start stretch;
  text-align: left;
}

.admin-scan-result-details .row > * {
  min-width: 0;
}

.admin-scan-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-scan-meta-text {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-scan-kv-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 700;
  text-align: left;
}

.admin-scan-kv-value {
  font-weight: 800;
  color: #0f172a;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-scan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  background: #e2e8f0;
  color: #334155;
}

.admin-scan-badge--green {
  background: #dcfce7;
  color: #16a34a;
}

.admin-scan-badge--blue {
  background: #dbeafe;
  color: #2563eb;
}

.admin-scan-badge--gray {
  background: #e2e8f0;
  color: #334155;
}

@media (max-width: 576px) {
  .admin-employee-toolbar {
    padding: 1rem;
  }

  .admin-employee-footer {
    padding: 0.9rem 1rem;
    justify-content: center;
    text-align: center;
  }

  .admin-qr-preview-box {
    min-height: 280px;
    padding: 1.25rem;
  }

  .admin-scan-box,
  .admin-scan-reader {
    min-height: 320px;
  }

  .admin-scan-result-area {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-action {
    transition: none;
  }
  .admin-action:hover {
    transform: none;
  }
}

/* Admin entry (scan-first) layout */
.admin-entry-shell {
  background: linear-gradient(180deg, #dff6ee 0%, #e9fbf2 55%, #d1fae5 110%);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}

.admin-entry-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-entry-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.admin-entry-brand-title {
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.1;
}

.admin-entry-brand-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

.admin-entry-container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

.admin-entry-cta {
  font-weight: 800;
  border-radius: 0.9rem;
  padding: 0.65rem 1.1rem;
}

.admin-entry-page-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.9rem, 2.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.admin-entry-page-subtitle {
  margin-top: 0.4rem;
  color: #334155;
  font-size: 1.05rem;
}

.admin-entry-card {
  border-radius: 1.4rem;
}

.admin-entry-icon {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}

.admin-entry-icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.admin-entry-icon--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.admin-entry-card-title {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.admin-entry-card-subtitle {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.95rem;
}

.admin-entry-scan-box {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.admin-entry-scan-reader {
  min-height: 0;
}

.admin-entry-scan-result {
  min-height: 220px;
  padding: 1rem;
}

.btn-purple {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #7c3aed;
  --bs-btn-border-color: #7c3aed;
  --bs-btn-hover-bg: #6d28d9;
  --bs-btn-hover-border-color: #6d28d9;
  --bs-btn-active-bg: #5b21b6;
  --bs-btn-active-border-color: #5b21b6;
  --bs-btn-focus-shadow-rgb: 124, 58, 237;
}

/* Admin scanline animation */
.admin-entry-scan-box {
  position: relative;
}

.admin-entry-scan-box::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.85), transparent);
  opacity: 0.9;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  z-index: 5;
  animation: adminEntryScanline 2400ms ease-in-out infinite;
}

.admin-entry-scan-box.is-scanning::after {
  opacity: 1;
  animation-duration: 1600ms;
  box-shadow: 0 0 0.35rem rgba(22, 163, 74, 0.35);
}

@keyframes adminEntryScanline {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, calc(var(--scanline-range, 280px)), 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-entry-scan-box.is-scanning::after {
    animation: none;
  }
}
