:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee8;
  --surface: #ffffff;
  --page: #effbf8;
  --green: #d8f4df;
  --green-ink: #126333;
  --yellow: #fff1b8;
  --yellow-ink: #7a4f00;
  --blue: #dcecff;
  --blue-ink: #174a8b;
  --red: #ffd9d9;
  --red-ink: #9f1f1f;
  --pink: #ffe4ef;
  --pink-ink: #a51d55;
  --brand: #087f8c;
  --brand-2: #16a085;
  --accent: #f5b942;
  --fresh-blue: #dff6f7;
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(89, 210, 196, 0.28), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(89, 172, 255, 0.2), transparent 36%),
    linear-gradient(145deg, #effbf8, #eef7ff);
}

body.authenticated .login-screen {
  display: none;
}

.app-layout {
  display: none;
}

body.authenticated .app-layout {
  display: block;
}

.login-card {
  display: grid;
  width: min(100%, 460px);
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 127, 140, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(8, 86, 99, 0.16);
  backdrop-filter: blur(14px);
  animation: card-enter 0.5s ease-out both;
}

.scan-welcome {
  display: flex;
  gap: 14px;
  align-items: center;
}

.scan-welcome > div {
  min-width: 0;
}

.scan-welcome-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #25b99a);
  box-shadow: 0 10px 24px rgba(8, 127, 140, 0.25);
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scan-welcome-icon:hover {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(8, 127, 140, 0.32);
}

.login-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.login-barcode-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fffd, #eff9fb);
}

.login-camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #062d35;
  box-shadow: inset 0 0 0 1px rgba(106, 242, 211, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-camera-frame:hover {
  border-color: rgba(22, 160, 133, 0.55);
  box-shadow: 0 10px 30px rgba(8, 86, 99, 0.14);
}

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

.manual-qr-panel {
  color: var(--muted);
}

.manual-qr-panel summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(8, 127, 140, 0.07);
  font-size: 12px;
  font-weight: 800;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.manual-qr-panel summary::-webkit-details-marker {
  display: none;
}

.manual-qr-panel summary:hover {
  color: #fff;
  background: var(--brand);
  transform: translateX(2px);
}

.manual-qr-panel[open] summary {
  color: #fff;
  background: var(--brand);
}

.manual-qr-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
  animation: reveal-fields 0.2s ease-out both;
}

.manual-qr-fields input {
  min-width: 0;
}

body.sidebar-open {
  overflow-x: hidden;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(8, 127, 140, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 127, 140, 0.22);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(8, 127, 140, 0.16);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 185, 154, 0.3);
  outline-offset: 2px;
}

.admin-login-panel {
  border-top: 1px dashed rgba(8, 127, 140, 0.28);
  padding-top: 8px;
}

.admin-login-panel summary {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  padding: 6px 10px;
  color: #71858a;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 800;
  transition: color 0.16s ease, transform 0.16s ease;
}

.admin-login-panel summary::-webkit-details-marker {
  display: none;
}

.admin-login-panel summary:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.admin-gem {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18);
}

.admin-login-panel[open] .admin-gem {
  background: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.16);
}

.admin-login-fields {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfc;
}

.admin-login-fields > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.app-layout {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 280px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(180deg, #086d78, #075563);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 6px 22px;
}

.sidebar-brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #123f4d;
  background: #dff2ec;
  font-size: 13px;
  font-weight: 900;
}

.sidebar-brand strong {
  font-size: 17px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0 12px;
  color: #dce9ed;
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: #123f4d;
  background: #dff2ec;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(15, 23, 42, 0.48);
}

body.sidebar-open .sidebar-backdrop {
  display: none;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  transition: margin-left 0.22s ease, width 0.22s ease;
}

body.sidebar-open .app-shell {
  width: calc(100% - 280px);
  margin-left: 280px;
}

.app-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(22, 34, 51, 0.06);
}

.app-header > div:nth-child(2) {
  flex: 1;
}

.user-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.user-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hamburger-button {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 10px;
}

.hamburger-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

.view-section[data-view="dashboard"].active {
  min-height: calc(100vh - 142px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.title-block,
.scan-panel,
.staff-attendance-panel,
.toolbar,
.admin-panel,
.data-tools,
.report-panel,
.settings-panel,
.table-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(22, 34, 51, 0.06);
}

.title-block {
  padding: 24px;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.period {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.scan-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.staff-attendance-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  padding: 18px;
}

.barcode-scan-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  place-items: center;
  color: #dce9ed;
  background: linear-gradient(135deg, #10242e, #1d3f44);
  text-align: center;
}

.camera-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(220, 233, 237, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #07151b;
}

.scan-guide {
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(7, 21, 27, 0.22);
}

.scan-guide::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: #7cf2b4;
  box-shadow: 0 0 12px rgba(124, 242, 180, 0.72);
  animation: scan-line 2.2s ease-in-out infinite;
}

.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.barcode-scan-panel strong {
  color: #fff;
  font-size: 28px;
}

.barcode-scan-panel p {
  max-width: 360px;
  margin: 0;
  color: #dce9ed;
  font-size: 15px;
  line-height: 1.5;
}

.attendance-form {
  display: grid;
  align-content: start;
  gap: 16px;
}

.attendance-note-group {
  display: grid;
  gap: 16px;
}

.attendance-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-tile {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.location-tile {
  grid-column: 1 / -1;
}

.info-tile span,
.attendance-form label,
.role-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-tile strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.attendance-form input,
.attendance-form select,
.attendance-form textarea,
.role-form select,
.role-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.attendance-form textarea {
  min-height: 110px;
  resize: vertical;
}

.notification-stack {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(390px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.attendance-notification {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 16px 38px rgba(15, 36, 43, 0.24);
  animation: attendance-notification-in 220ms ease-out;
  pointer-events: auto;
}

.notification-success {
  border-color: #087f8c;
  background: #087f8c;
}

.notification-error {
  border-color: #b42318;
  background: #b42318;
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  font-size: 18px;
  font-weight: 900;
}

.attendance-notification strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.attendance-notification p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.45;
}

.notification-close {
  min-width: 28px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform: none;
}

@keyframes attendance-notification-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.simulation-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.simulation-panel strong {
  font-size: 15px;
}

.simulation-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.simulation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.scan-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scan-dot,
.face-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: #c0c8d2;
}

.scan-dot.active,
.face-dot.active {
  background: #20a057;
  box-shadow: 0 0 0 5px rgba(32, 160, 87, 0.12);
}

.scan-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ghost-button {
  color: var(--brand);
  background: var(--fresh-blue);
}

.ghost-button:hover {
  color: #fff;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 18px;
}

body.role-superadmin .staff-attendance-panel {
  display: none;
}

body.role-staff .admin-only,
body.role-staff .toolbar,
body.role-staff .sidebar,
body.role-staff .sidebar-backdrop,
body.role-staff .hamburger-button {
  display: none;
}

body.role-staff .app-shell {
  width: 100%;
  margin-left: 0;
}

body.role-staff .staff-attendance-panel {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

body.role-staff .barcode-scan-panel,
body.role-staff .simulation-panel {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #384250;
  font-size: 14px;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.legend-chip {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  font-style: normal;
  font-weight: 900;
}

.present {
  color: var(--green-ink);
  background: var(--green);
}

.late {
  color: var(--yellow-ink);
  background: var(--yellow);
}

.permit {
  color: var(--blue-ink);
  background: var(--blue);
}

.sick {
  color: #6b2a7d;
  background: #f0ddff;
}

.leave {
  color: #73510d;
  background: #f4dfaa;
}

.absent {
  color: var(--red-ink);
  background: var(--red);
}

.weekend {
  color: var(--pink-ink);
  background: var(--pink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  margin-bottom: 18px;
}

.data-tools {
  padding: 18px;
  margin-bottom: 18px;
}

.report-panel,
.settings-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
}

.settings-panel {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  align-items: start;
}

.settings-panel #holiday-message,
.settings-panel .holiday-list {
  grid-column: 2;
}

.holiday-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.holiday-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.holiday-item div {
  display: grid;
  gap: 3px;
}

.holiday-item span {
  color: var(--muted);
  font-size: 12px;
}

.admin-block {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-panel h2 {
  margin: 0;
  font-size: 20px;
}

.member-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.member-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.member-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.member-form input,
.member-form select,
.member-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.member-form textarea {
  min-height: 66px;
  resize: vertical;
}

.checkbox-label {
  display: flex !important;
  gap: 10px !important;
  align-items: center;
  min-height: 42px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
}

.crud-actions {
  grid-column: 1 / -1;
}

.crud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.barcode-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.barcode-preview .qr-image {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  background: #fff;
  image-rendering: pixelated;
}

.barcode-preview .qr-token {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  word-break: break-all;
}

.qr-print-note {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.barcode-preview strong {
  font-size: 15px;
  letter-spacing: 0;
}

.danger-button {
  background: #a83232;
}

.danger-button:hover {
  background: #842727;
}

.admin-hint {
  grid-column: 2;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inline-hint {
  grid-column: auto;
  margin: 10px 0 0;
}

.table-section {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1320px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

th,
td {
  height: 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #1f2a37;
  background: #eef3f7;
  font-size: 12px;
  font-weight: 900;
}

td {
  font-size: 13px;
  font-weight: 800;
}

th:first-child,
td:first-child {
  border-left: 1px solid var(--line);
}

thead tr:first-child th {
  border-top: 1px solid var(--line);
}

.col-no {
  width: 54px;
}

.col-name {
  width: 170px;
  min-width: 170px;
  text-align: left;
}

.col-day {
  width: 38px;
  min-width: 38px;
}

.col-total {
  width: 78px;
}

.col-note {
  min-width: 260px;
  text-align: left;
}

.sticky-left {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
}

.sticky-name {
  position: sticky;
  left: 54px;
  z-index: 3;
  background: #fff;
}

th.sticky-left,
th.sticky-name {
  z-index: 4;
  background: #eef3f7;
}

.weekend-cell {
  background: var(--pink);
}

.weekend-cell.status-present,
.weekend-cell.status-late,
.weekend-cell.status-permit,
.weekend-cell.status-absent {
  background: var(--pink);
}

.holiday-cell {
  box-shadow: inset 0 0 0 2px #ef6d8d;
}

.status-present {
  color: var(--green-ink);
  background: var(--green);
}

.status-late {
  color: var(--yellow-ink);
  background: var(--yellow);
}

.status-permit {
  color: var(--blue-ink);
  background: var(--blue);
}

.status-sick {
  color: #6b2a7d;
  background: #f0ddff;
}

.status-leave {
  color: #73510d;
  background: #f4dfaa;
}

.status-absent {
  color: var(--red-ink);
  background: var(--red);
}

tfoot td {
  color: #fff;
  background: var(--brand);
}

/* Login scanner — red interactive theme */
.login-screen {
  --login-red: #ed3038;
  --login-red-dark: #d91f2a;
  --login-soft: #fff0f1;
  background:
    radial-gradient(circle at 82% 8%, rgba(237, 48, 56, 0.12), transparent 25%),
    linear-gradient(145deg, #f7f8fa, #fff);
}

.login-card {
  width: min(100%, 720px);
  gap: 24px;
  padding: 34px;
  border-color: rgba(25, 31, 40, 0.08);
  border-radius: 34px;
  box-shadow: 0 24px 65px rgba(18, 24, 32, 0.13);
}

.login-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-brand {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #4d5159;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.login-brand i {
  width: 11px;
  height: 11px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--login-red);
  box-shadow: 0 0 0 5px rgba(237, 48, 56, 0.08);
}

.login-brand strong {
  color: var(--login-red);
}

.help-button {
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(237, 48, 56, 0.12);
  border-radius: 50%;
  color: var(--login-red);
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 33, 42, 0.1);
  font-size: 23px;
}

.help-button:hover {
  color: #fff;
  background: var(--login-red);
}

.scan-welcome {
  gap: 34px;
  padding: 18px 10px 4px;
}

.scan-welcome-icon {
  position: relative;
  width: 142px;
  height: 142px;
  flex-basis: 142px;
  border-radius: 30px;
  background: linear-gradient(145deg, #ff777c, var(--login-red) 62%);
  box-shadow: 0 20px 32px rgba(237, 48, 56, 0.3);
}

.scan-welcome-icon:hover {
  box-shadow: 0 24px 38px rgba(237, 48, 56, 0.38);
}

.qr-glyph {
  position: relative;
  width: 78px;
  height: 78px;
  border: 7px solid #fff;
  border-block-color: transparent;
  border-radius: 15px;
}

.qr-glyph::before,
.qr-glyph::after {
  content: "";
  position: absolute;
  inset: -7px 20px;
  border-block: 7px solid #fff;
}

.qr-glyph b {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 5px solid #fff;
}

.qr-glyph b:nth-child(1) { inset: 7px auto auto 7px; }
.qr-glyph b:nth-child(2) { inset: 7px 7px auto auto; }
.qr-glyph b:nth-child(3) { inset: auto auto 7px 7px; }
.qr-glyph b:nth-child(4) { inset: auto 7px 7px auto; }

.scan-welcome h1 {
  max-width: 430px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 0.98;
}

.scan-welcome h1 em {
  display: block;
  color: var(--login-red);
  font-style: normal;
}

.scan-welcome .period {
  max-width: 390px;
  margin-top: 20px;
  color: #464c56;
  font-size: 20px;
  line-height: 1.45;
}

.login-barcode-panel {
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.login-camera-frame {
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 60%, rgba(237, 48, 56, 0.18), transparent 40%),
    #171a1e;
  box-shadow: 0 18px 30px rgba(18, 24, 32, 0.18);
}

.login-camera-frame:hover {
  border-color: transparent;
  box-shadow: 0 22px 36px rgba(18, 24, 32, 0.22);
}

.login-camera-frame::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--login-red), var(--login-red)) left top / 42px 6px no-repeat,
    linear-gradient(var(--login-red), var(--login-red)) left top / 6px 42px no-repeat,
    linear-gradient(var(--login-red), var(--login-red)) right top / 42px 6px no-repeat,
    linear-gradient(var(--login-red), var(--login-red)) right top / 6px 42px no-repeat,
    linear-gradient(var(--login-red), var(--login-red)) left bottom / 42px 6px no-repeat,
    linear-gradient(var(--login-red), var(--login-red)) left bottom / 6px 42px no-repeat,
    linear-gradient(var(--login-red), var(--login-red)) right bottom / 42px 6px no-repeat,
    linear-gradient(var(--login-red), var(--login-red)) right bottom / 6px 42px no-repeat;
  filter: drop-shadow(0 0 7px rgba(255, 76, 84, 0.75));
}

.login-camera-frame .scan-guide {
  inset: 16% 20% 18%;
  border-color: var(--login-red);
  background-image:
    linear-gradient(rgba(237, 48, 56, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 48, 56, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 0 32px rgba(237, 48, 56, 0.13);
}

.login-camera-frame .scan-guide::after {
  left: -18%;
  right: -18%;
  height: 3px;
  background: #ff4850;
  box-shadow: 0 0 8px #fff, 0 0 18px #ff3039, 0 0 34px #ff3039;
}

.permission-button {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background: #294f75;
  box-shadow: 0 6px 14px rgba(41, 79, 117, 0.18);
  font-family: inherit;
  font-weight: 700;
}

.permission-button:hover {
  background: #203f5e;
  box-shadow: 0 8px 18px rgba(41, 79, 117, 0.24);
}

.permission-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.camera-prompt {
  position: absolute;
  left: 50%;
  bottom: 5%;
  z-index: 4;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 23, 27, 0.76);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.camera-prompt i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--login-red);
  box-shadow: 0 0 0 5px rgba(237, 48, 56, 0.16);
}

.manual-qr-panel {
  color: #343942;
}

.manual-qr-panel summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(22, 28, 36, 0.08);
  border-radius: 18px;
  color: inherit;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 24, 32, 0.08);
}

.manual-qr-panel summary:hover,
.manual-qr-panel[open] summary {
  color: inherit;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(18, 24, 32, 0.12);
}

.manual-qr-panel summary strong,
.manual-qr-panel summary small {
  display: block;
}

.manual-qr-panel summary strong {
  margin-bottom: 3px;
  color: var(--login-red);
  font-size: 16px;
}

.manual-qr-panel summary small {
  font-size: 13px;
  font-weight: 600;
}

.manual-help-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--login-red);
  background: var(--login-soft);
  font-size: 24px;
  font-weight: 900;
}

.summary-arrow {
  width: 13px;
  height: 13px;
  border-top: 3px solid var(--login-red);
  border-right: 3px solid var(--login-red);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.manual-qr-panel[open] .summary-arrow {
  transform: rotate(135deg);
}

.manual-qr-fields {
  padding: 12px 4px 0;
}

#login-barcode-message {
  margin: 0;
  padding: 15px 18px;
  border: 1px solid rgba(22, 28, 36, 0.08);
  border-radius: 16px;
  color: #515761;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 24, 32, 0.05);
  line-height: 1.45;
}

.admin-login-panel {
  border-top-color: rgba(22, 28, 36, 0.15);
  padding-top: 14px;
}

.admin-login-panel summary {
  color: #292e36;
  font-size: 14px;
}

.admin-login-panel summary:hover {
  color: var(--login-red);
}

.admin-gem {
  display: grid;
  width: 22px;
  height: 25px;
  place-items: center;
  border-radius: 10px 10px 12px 12px;
  color: #fff;
  background: var(--login-red);
  box-shadow: none;
  transform: none;
  font-size: 12px;
}

.admin-login-panel[open] .admin-gem {
  background: var(--login-red-dark);
  box-shadow: none;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal-fields {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan-line {
  0%,
  100% {
    top: 18%;
    opacity: 0.55;
  }
  50% {
    top: 82%;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding: 14px;
  }

  .sidebar {
    width: min(280px, calc(100vw - 48px));
    overflow-y: auto;
  }

  body.sidebar-open .app-shell {
    width: 100%;
    margin-left: 0;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .topbar,
  .staff-attendance-panel,
  .attendance-info-grid,
  .admin-panel,
  .admin-block,
  .member-form {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .report-panel,
  .settings-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-panel {
    grid-template-columns: 1fr;
  }

  .settings-panel #holiday-message,
  .settings-panel .holiday-list {
    grid-column: 1;
    width: 100%;
  }

  .actions,
  .role-form,
  .crud-actions button,
  .actions button,
  .admin-hint {
    width: 100%;
  }

  .admin-hint {
    grid-column: auto;
  }

  .barcode-scan-panel {
    min-height: 320px;
  }

  .barcode-preview {
    justify-items: center;
    text-align: center;
  }

  .table-scroll {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 600px) {
  .login-screen {
    min-height: 100dvh;
    place-items: start center;
    padding: 12px;
  }

  .login-card {
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
  }

  .login-card h1 {
    font-size: 30px;
  }

  .login-barcode-panel {
    padding: 10px;
  }

  .login-camera-frame {
    aspect-ratio: 4 / 3;
  }

  button,
  .login-card input,
  .attendance-form input,
  .attendance-form select,
  .attendance-form textarea,
  .member-form input,
  .member-form select,
  .role-form input,
  .role-form select {
    min-height: 44px;
    font-size: 16px;
  }

  .app-shell {
    padding: 8px;
  }

  .app-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
    padding: 12px;
  }

  .app-header > div:nth-child(2) {
    min-width: 0;
  }

  .app-header h1 {
    overflow-wrap: anywhere;
    font-size: clamp(21px, 7vw, 28px);
    line-height: 1.15;
  }

  .app-header .period {
    margin-top: 6px;
    font-size: 14px;
  }

  .user-panel {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .user-panel span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .user-panel button {
    flex: 0 0 auto;
  }

  body.role-staff .app-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    gap: 10px;
    margin-bottom: 10px;
  }

  .title-block,
  .scan-panel,
  .staff-attendance-panel,
  .toolbar,
  .data-tools,
  .settings-panel {
    padding: 12px;
  }

  h2 {
    font-size: 21px;
  }

  .period {
    font-size: 15px;
    line-height: 1.45;
  }

  .staff-attendance-panel {
    gap: 12px;
  }

  .barcode-scan-panel {
    min-height: 0;
    padding: 14px;
  }

  .barcode-scan-panel strong {
    font-size: 22px;
  }

  .camera-frame {
    width: 100%;
  }

  .camera-actions,
  .simulation-actions,
  .crud-actions,
  .role-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .camera-actions button,
  .simulation-actions button,
  .crud-actions button,
  .role-form button,
  .role-form label {
    width: 100%;
  }

  .attendance-info-grid {
    gap: 8px;
  }

  .info-tile {
    min-height: 74px;
    padding: 12px;
  }

  .info-tile strong {
    overflow-wrap: anywhere;
    font-size: 17px;
  }

  .admin-block {
    gap: 14px;
  }

  .barcode-preview {
    padding: 12px;
  }

  .barcode-preview .qr-image {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .table-section {
    border-radius: 8px;
  }

  table {
    min-width: 1180px;
  }

  th,
  td {
    height: 40px;
    padding: 6px;
  }

  .col-no {
    width: 42px;
    min-width: 42px;
  }

  .col-name {
    width: 132px;
    min-width: 132px;
  }

  .sticky-name {
    left: 42px;
  }
}

@media (max-width: 380px) {
  .manual-qr-fields {
    grid-template-columns: 1fr;
  }

  .app-header {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 10px;
  }

  .hamburger-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .user-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .user-panel button {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .app-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .app-header,
  .sidebar,
  .sidebar-backdrop,
  .scan-panel,
  .staff-attendance-panel,
  .admin-panel,
  .data-tools,
  .report-panel,
  .report-heading,
  .settings-panel,
  .actions {
    display: none;
  }

  .view-section {
    display: none;
  }

  .view-section[data-view="data-absensi"] {
    display: block;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .title-block,
  .toolbar,
  .table-section {
    border: 0;
    box-shadow: none;
  }

  .table-scroll {
    overflow: visible;
  }

  table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 7px;
  }

  th,
  td {
    height: 18px;
    padding: 2px;
    white-space: normal;
    word-break: break-word;
  }

  .sticky-left,
  .sticky-name,
  th {
    position: static;
  }

  .col-no {
    width: 20px;
  }

  .col-name {
    width: 58px;
    min-width: 58px;
  }

  .col-day {
    width: 18px;
    min-width: 18px;
  }

  .col-total {
    width: 30px;
  }

  .col-note {
    width: 120px;
    min-width: 120px;
    white-space: normal;
    word-break: normal;
  }

  h1 {
    font-size: 22px;
  }

  .period,
  .eyebrow {
    margin: 0;
  }

}

@media screen and (max-width: 600px) {
  .login-card {
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
  }

  .login-brand {
    gap: 5px;
    font-size: 12px;
  }

  .login-brand i {
    width: 8px;
    height: 8px;
  }

  .help-button {
    width: 42px;
    min-height: 42px;
  }

  .scan-welcome {
    gap: 18px;
    padding: 6px 2px 0;
  }

  .scan-welcome-icon {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    border-radius: 20px;
  }

  .qr-glyph {
    width: 48px;
    height: 48px;
    border-width: 4px;
    border-radius: 9px;
  }

  .qr-glyph::before,
  .qr-glyph::after {
    inset: -4px 12px;
    border-block-width: 4px;
  }

  .qr-glyph b {
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .qr-glyph b:nth-child(1) { inset: 4px auto auto 4px; }
  .qr-glyph b:nth-child(2) { inset: 4px 4px auto auto; }
  .qr-glyph b:nth-child(3) { inset: auto auto 4px 4px; }
  .qr-glyph b:nth-child(4) { inset: auto 4px 4px auto; }

  .scan-welcome h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .scan-welcome .period {
    margin-top: 10px;
    font-size: 14px;
  }

  .login-camera-frame {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .login-camera-frame::before {
    inset: 7%;
    background-size:
      28px 4px, 4px 28px,
      28px 4px, 4px 28px,
      28px 4px, 4px 28px,
      28px 4px, 4px 28px;
  }

  .login-camera-frame .scan-guide {
    inset: 17% 18% 22%;
  }

  .camera-prompt {
    bottom: 5%;
    max-width: 88%;
    padding: 7px 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .camera-prompt i {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .manual-qr-panel summary {
    gap: 11px;
    padding: 13px;
  }

  .manual-help-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .manual-qr-panel summary strong {
    font-size: 14px;
  }

  .manual-qr-panel summary small {
    font-size: 12px;
  }
}

/* Professional slate dashboard theme */
.app-layout {
  color: #172b42;
  background:
    radial-gradient(circle at 8% 5%, rgba(59, 130, 246, 0.08), transparent 26%),
    linear-gradient(145deg, #f4f7fb, #e9eff6);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

.app-header,
.title-block,
.scan-panel,
.toolbar,
.staff-attendance-panel,
.admin-panel,
.data-tools,
.report-panel,
.settings-panel,
.table-section {
  border-color: #d8e0ea;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(30, 41, 59, 0.07);
}

.app-header,
.title-block,
.scan-panel,
.toolbar {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.title-block:hover,
.scan-panel:hover,
.toolbar:hover {
  border-color: #b9c8d8;
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.11);
  transform: translateY(-2px);
}

.app-header .eyebrow,
.title-block .eyebrow {
  color: #52677d;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.app-header h1,
.title-block h2 {
  color: #172b42;
}

.hamburger-button,
#simulate-scan {
  background: #294f75;
  box-shadow: 0 6px 14px rgba(41, 79, 117, 0.18);
}

.hamburger-button:hover,
#simulate-scan:hover {
  background: #203f5e;
  box-shadow: 0 8px 18px rgba(41, 79, 117, 0.24);
}

#logout-button {
  color: #294f75;
  background: #e8eef5;
}

#logout-button:hover {
  color: #fff;
  background: #294f75;
}

.user-panel span {
  color: #52677d;
}

.scan-status {
  border-color: #d8e0ea;
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.scan-status:hover {
  border-color: #9fb3c8;
  background: #f1f5f9;
  transform: translateX(3px);
}

.scan-dot,
.face-dot {
  background: #aebccc;
}

.scan-dot.active,
.face-dot.active {
  background: #53789c;
  box-shadow: 0 0 0 5px rgba(83, 120, 156, 0.14);
}

.scan-label {
  color: #64748b;
}

.legend span {
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 160ms ease, transform 160ms ease;
}

.legend span:hover {
  background: #eef3f8;
  transform: translateY(-2px);
}

.sidebar {
  background: linear-gradient(180deg, #1e3a5f, #172b42);
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.14);
}

.view-section.active {
  animation: dashboard-view-in 260ms ease-out both;
}

@keyframes dashboard-view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-header,
  .title-block,
  .scan-panel,
  .toolbar,
  .scan-status,
  .legend span,
  .view-section.active {
    animation: none;
    transition: none;
  }
}

@media screen and (max-width: 370px) {
  .scan-welcome {
    align-items: flex-start;
  }

  .scan-welcome-icon {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .qr-glyph {
    transform: scale(0.78);
  }

  .scan-welcome h1 {
    font-size: 30px;
  }
}

/* Restored compact teal login */
.login-screen {
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.1), transparent 30%),
    linear-gradient(145deg, #f4f7fb, #e9eff6);
}

.login-card {
  width: min(100%, 460px);
  gap: 16px;
  padding: 20px;
  border: 1px solid #d8e0ea;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(30, 41, 59, 0.13);
}

.scan-welcome {
  flex-direction: column;
  gap: 12px;
  padding: 4px 12px;
  align-items: center;
  text-align: center;
}

.scan-welcome > div {
  display: grid;
  justify-items: center;
}

.scan-welcome-icon {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e3a5f, #315b83);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.2);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.scan-welcome-icon:hover {
  box-shadow: 0 12px 26px rgba(30, 58, 95, 0.24);
}

.scan-welcome .eyebrow {
  margin-bottom: 7px;
  color: #52677d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scan-welcome h1 {
  max-width: 360px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
  color: #172b42;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.scan-welcome .period {
  max-width: 350px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.login-barcode-panel {
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9fc;
}

.login-camera-frame {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #142638;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.login-camera-frame::before {
  content: none;
}

.login-camera-frame .scan-guide {
  inset: 22%;
  border-color: rgba(203, 213, 225, 0.9);
  background: none;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.2);
}

.login-camera-frame .scan-guide::after {
  left: 8%;
  right: 8%;
  height: 2px;
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.45);
}

.manual-qr-panel summary {
  display: block;
  width: fit-content;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: #294f75;
  background: #e8eef5;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.manual-qr-panel summary:hover,
.manual-qr-panel[open] summary {
  color: #fff;
  background: #294f75;
  box-shadow: none;
  transform: translateX(2px);
}

.manual-qr-fields input,
#login-barcode {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 13px;
  color: #172b42;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-family: inherit;
  font-size: 14px;
}

.manual-qr-fields input:focus,
#login-barcode:focus {
  border-color: #53789c;
  outline: 3px solid rgba(83, 120, 156, 0.14);
}

#login-barcode::placeholder {
  color: #7a8999;
}

#login-barcode-submit {
  min-height: 44px;
  border-radius: 10px;
  padding: 11px 18px;
  color: #fff;
  background: #294f75;
  box-shadow: 0 6px 14px rgba(41, 79, 117, 0.18);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}

#login-barcode-submit:hover {
  background: #203f5e;
  box-shadow: 0 8px 18px rgba(41, 79, 117, 0.24);
}

#login-barcode-message {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  line-height: normal;
}

.admin-login-panel {
  border-top-color: #d8e0ea;
  padding-top: 8px;
}

.admin-login-panel summary {
  color: #52677d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-login-panel summary:hover {
  color: #294f75;
}

.admin-gem {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #53789c;
  box-shadow: 0 0 0 3px rgba(83, 120, 156, 0.14);
  transform: none;
}

.admin-login-panel[open] .admin-gem {
  background: #294f75;
  box-shadow: 0 0 0 3px rgba(41, 79, 117, 0.14);
}

.admin-login-fields {
  gap: 12px;
  padding: 14px;
  border-color: #d8e0ea;
  background: #f7f9fc;
}

.admin-login-fields > p {
  color: #64748b;
  font-family: inherit;
}

.admin-login-fields label {
  color: #52677d;
  font-family: inherit;
  font-weight: 700;
}

.admin-login-fields input {
  min-height: 44px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: #172b42;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-family: inherit;
}

.admin-login-fields input:focus {
  border-color: #53789c;
  outline: 3px solid rgba(83, 120, 156, 0.14);
}

.admin-login-fields button[type="submit"] {
  min-height: 44px;
  border-radius: 10px;
  background: #294f75;
  box-shadow: 0 6px 14px rgba(41, 79, 117, 0.18);
  font-family: inherit;
  font-weight: 700;
}

.admin-login-fields button[type="submit"]:hover {
  background: #203f5e;
  box-shadow: 0 8px 18px rgba(41, 79, 117, 0.24);
}

#login-message {
  color: #64748b;
  background: transparent;
}

@media screen and (max-width: 600px) {
  .login-card {
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
  }

  .scan-welcome {
    gap: 10px;
    padding: 2px 8px;
  }

  .scan-welcome-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 16px;
  }

  .scan-welcome h1 {
    font-size: clamp(28px, 9vw, 34px);
  }

  .scan-welcome .period {
    margin-top: 8px;
    font-size: 14px;
  }

  .login-camera-frame {
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  .login-camera-frame .scan-guide {
    inset: 22%;
  }
}

/* Data attendance view */
.view-section[data-view="data-absensi"] .data-tools .eyebrow {
  color: #52677d;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.view-section[data-view="data-absensi"] .data-tools {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.view-section[data-view="data-absensi"] .data-tools:hover {
  border-color: #b9c8d8;
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.1);
}

.member-form label {
  color: #52677d;
  font-family: inherit;
  font-weight: 700;
}

.member-form input,
.member-form select,
.member-form textarea {
  min-height: 42px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: #172b42;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.member-form input:focus,
.member-form select:focus,
.member-form textarea:focus {
  border-color: #53789c;
  outline: 3px solid rgba(83, 120, 156, 0.14);
}

.member-form input[type="checkbox"] {
  min-height: auto;
  accent-color: #294f75;
}

.view-section[data-view="data-absensi"] .crud-actions button:not(.danger-button) {
  background: #294f75;
  box-shadow: 0 5px 12px rgba(41, 79, 117, 0.16);
}

.view-section[data-view="data-absensi"] .crud-actions button:not(.danger-button):hover {
  background: #203f5e;
  box-shadow: 0 8px 17px rgba(41, 79, 117, 0.22);
}

.view-section[data-view="data-absensi"] #new-member {
  color: #294f75;
  background: #e8eef5;
  box-shadow: none;
}

.view-section[data-view="data-absensi"] #new-member:hover {
  color: #fff;
  background: #294f75;
}

.view-section[data-view="data-absensi"] .danger-button {
  background: #a33a3a;
  box-shadow: 0 5px 12px rgba(163, 58, 58, 0.16);
}

.view-section[data-view="data-absensi"] .danger-button:hover {
  background: #842f2f;
}

.barcode-preview {
  border-color: #cbd5e1;
  border-radius: 10px;
  color: #294f75;
  background: #f7f9fc;
  transition: border-color 180ms ease, background 180ms ease;
}

.barcode-preview:hover {
  border-color: #9fb3c8;
  background: #f1f5f9;
}

.view-section[data-view="data-absensi"] .table-section {
  transition: box-shadow 180ms ease;
}

.view-section[data-view="data-absensi"] .table-section:hover {
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.1);
}

@media screen {
  #attendance-table {
    min-width: 1100px;
    table-layout: fixed;
  }

  #attendance-table th,
  #attendance-table td {
    height: 32px;
    padding: 3px 2px;
    font-size: 10px;
    line-height: 1.2;
  }

  #attendance-table .col-no {
    width: 28px;
  }

  #attendance-table .col-name {
    width: 120px;
    min-width: 120px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #attendance-table .sticky-name {
    left: 28px;
  }

  #attendance-table .col-day {
    width: 30px;
    min-width: 30px;
    white-space: pre-line;
    font-size: 9px;
  }

  #attendance-table .col-total {
    width: 48px;
    white-space: normal;
  }

  #attendance-table .col-note {
    width: 120px;
    min-width: 120px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

#attendance-table thead th {
  color: #172b42;
  background: #edf2f7;
}

#attendance-table tbody tr {
  transition: background 140ms ease;
}

#attendance-table tbody tr:hover td {
  background-color: #eef4fa;
}

#attendance-table tbody tr:hover td.weekend-cell {
  background-color: #f8dfe8;
}

#attendance-table tfoot td {
  color: #fff;
  background: #294f75;
}

/* Holiday settings view */
.view-section[data-view="pengaturan"] .settings-panel {
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  grid-template-areas: "intro form" "intro message" "intro list";
  gap: 14px 28px;
  align-items: start;
  padding: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.view-section[data-view="pengaturan"] .settings-panel:hover {
  border-color: #b9c8d8;
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.1);
}

.view-section[data-view="pengaturan"] .settings-panel > div:first-child { grid-area: intro; }

.view-section[data-view="pengaturan"] .eyebrow {
  color: #52677d;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#holiday-form {
  grid-area: form;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.4fr) minmax(130px, 0.7fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #f7f9fc;
}

#holiday-form label {
  color: #52677d;
  font-family: inherit;
  font-weight: 700;
}

#holiday-form input,
#holiday-form select {
  min-height: 42px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: #172b42;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#holiday-form input:focus,
#holiday-form select:focus {
  border-color: #53789c;
  outline: 3px solid rgba(83, 120, 156, 0.14);
}

#holiday-form button[type="submit"] {
  min-height: 42px;
  align-self: end;
  background: #294f75;
  box-shadow: 0 5px 12px rgba(41, 79, 117, 0.16);
}

#holiday-form button[type="submit"]:hover {
  background: #203f5e;
  box-shadow: 0 8px 17px rgba(41, 79, 117, 0.22);
}

.settings-panel #holiday-message {
  grid-area: message;
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #53789c;
  border-radius: 6px;
  color: #52677d;
  background: #eef3f8;
}

.settings-panel .holiday-list {
  grid-area: list;
  width: 100%;
}

.holiday-list > .admin-hint {
  margin: 0;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
}

.holiday-item {
  border-color: #d8e0ea;
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.holiday-item:hover {
  border-color: #9fb3c8;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.09);
  transform: translateY(-2px);
}

@media screen and (max-width: 900px) {
  .view-section[data-view="pengaturan"] .settings-panel {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "form" "message" "list";
  }

  #holiday-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 600px) {
  .view-section[data-view="pengaturan"] .settings-panel { padding: 14px; }
  #holiday-form { grid-template-columns: 1fr; }
}

/* Shared responsive layout for application screens. */
@media screen {
  :root {
    --brand: #294f75;
    --brand-2: #203f5e;
  }

  html { width: 100%; }
  body.authenticated .app-layout { display: block; width: min(100%, var(--app-viewport-width, 100vw)); max-width: var(--app-viewport-width, 100vw); min-width: 0; padding-left: 0; box-sizing: border-box; }
  body.authenticated.sidebar-open .app-layout { padding-left: 240px; }
  .app-shell, body.sidebar-open .app-shell { width: auto; max-width: 100%; min-width: 0; margin: 0; padding: 24px 12px; box-sizing: border-box; transition: none; }
  .app-shell > .app-header, .app-shell > .view-section { width: 100%; max-width: none; margin-inline: 0; }
  .sidebar { width: 240px; padding: 20px 16px; }
  .app-header { padding: 18px 20px; gap: 16px; flex-wrap: wrap; }
  .app-header > div:nth-child(2) { min-width: 0; }
  .app-header h1 { font-size: clamp(20px, 2vw, 30px); line-height: 1.25; }
  .app-shell h2 { font-size: 20px; line-height: 1.3; }
  .app-shell .period { margin-top: 8px; font-size: 14px; line-height: 1.6; }
  .app-shell .eyebrow { font-size: 11px; margin-bottom: 6px; }
  .app-shell .admin-hint { font-size: 13px; font-weight: 500; line-height: 1.6; }
  .user-panel { flex-shrink: 0; max-width: 35%; }
  .user-panel span { overflow-wrap: anywhere; }
  .sidebar { overflow-y: auto; }
  .sidebar-nav .nav-item:is(:hover, .active) { color: #fff; }

  .topbar { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 16px; }
  .title-block, .scan-panel, .toolbar, .data-tools { padding: 20px; }
  .title-block:hover, .scan-panel:hover, .toolbar:hover { transform: none; }
  .staff-attendance-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; gap: 24px; }
  .app-shell :is(form, label, .view-section, .admin-block, .info-tile, .holiday-item > div) { min-width: 0; }
  .app-shell :is(input:not([type="checkbox"]), select, textarea) { min-width: 0; width: 100%; }
  .app-shell button { padding: 10px 14px; line-height: 1.3; box-shadow: none; }
  .app-shell .hamburger-button { padding: 10px; }
  .admin-block { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .member-form { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: stretch; }
  .member-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; min-width: 0; }
  .member-fields > label:first-child { grid-column: 1 / -1; }
  .member-form .checkbox-label { min-height: 42px; margin: 0; }
  .member-fields .crud-actions { padding-top: 16px; border-top: 1px solid var(--line); }
  .crud-actions { gap: 8px; }
  .crud-actions button { width: auto; }
  .member-form .barcode-preview { grid-column: auto; min-width: 0; max-width: 100%; margin: 0; padding: 20px 16px; justify-items: center; align-content: center; text-align: center; gap: 12px; }
  #member-barcode:empty { width: 112px; height: 112px; border: 2px dashed #c3cfdb; border-radius: 12px; background: #eef2f7; }
  .barcode-preview strong { font-size: 13px; overflow-wrap: anywhere; }
  .barcode-preview .qr-image { width: 160px; height: auto; }

  .report-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .report-actions { display: flex; flex-wrap: wrap; max-width: 100%; gap: 8px; }
  .table-section { min-width: 0; }
  .table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; isolation: isolate; scrollbar-color: #9eafc1 #eef2f6; }
  .table-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
  #attendance-table { width: max-content; min-width: 100%; table-layout: auto; }
  #attendance-table .col-no { width: 28px; min-width: 28px; max-width: 28px; }
  #attendance-table .sticky-left { position: static; }
  #attendance-table .sticky-name { left: 0; box-shadow: 2px 0 0 var(--line); }
  #attendance-table .col-name { min-width: 120px; max-width: 160px; }
  #attendance-table .col-day { min-width: 34px; font-variant-numeric: tabular-nums; }
  #attendance-table .col-total { min-width: 48px; }
  #attendance-table tfoot td { white-space: normal; }

  .view-section[data-view="pengaturan"] .settings-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "form" "message" "list";
    gap: 16px;
    padding: 20px;
  }
  #holiday-form { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) auto; }
  .holiday-item { overflow-wrap: anywhere; }
  .holiday-item button { flex-shrink: 0; }
  .login-screen { min-height: 100dvh; padding: 24px 16px; }
  .scan-welcome h1 { font-size: clamp(26px, 4vw, 34px); }
  .scan-welcome .period { font-size: 14px; }
  .login-camera-frame { width: min(100%, 300px); }
}

@media screen and (min-width: 901px) and (max-width: 1200px) {
  .member-form { grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; }
  #holiday-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sidebar-open .topbar { grid-template-columns: minmax(0, 1fr); }
}

@media screen and (max-width: 900px) {
  body.authenticated.sidebar-open .app-layout { padding-left: 0; }
  .app-shell, body.sidebar-open .app-shell { padding: 16px; }
  .topbar, .staff-attendance-panel { grid-template-columns: minmax(0, 1fr); }
  .member-form { grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; }
  #holiday-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sidebar-open { overflow: hidden; }
}

@media screen and (max-width: 600px) {
  .app-shell, body.sidebar-open .app-shell { padding: 12px; }
  .app-header { padding: 14px; gap: 12px; }
  .app-header h1 { font-size: 20px; }
  .user-panel { max-width: none; }
  .title-block, .scan-panel, .toolbar, .data-tools, .staff-attendance-panel, .report-heading { padding: 14px; }
  .member-form, .member-fields, #holiday-form { grid-template-columns: minmax(0, 1fr); }
  .crud-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crud-actions button { width: 100%; }
  .report-actions { width: 100%; }
  .report-actions button { flex: 1; }
  .app-shell button { min-height: 44px; font-size: 14px; }
  .legend { gap: 6px; font-size: 12px; }
  .legend span { padding: 4px; }
  .barcode-preview { justify-items: center; text-align: center; }
  .login-card { padding: 16px; }
}

/* Pendaftaran wajah & akun kiosk */
.face-enroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 24px;
  align-items: start;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.face-enroll-info { display: grid; gap: 12px; min-width: 0; }
.face-enroll-info h2 { margin: 0; }

.face-enroll-status {
  width: fit-content;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: #52677d;
  background: #eef2f7;
  font-size: 13px;
  font-weight: 700;
}

.face-enroll-status[data-state="registered"] { color: #126333; background: #d8f4df; }
.face-enroll-status[data-state="none"] { color: #7a4f00; background: #fff1b8; }

.face-enroll-steps {
  margin: 0;
  padding-left: 20px;
  color: #52677d;
  font-size: 13px;
  line-height: 1.7;
}

.face-consent { color: #172b42; font-size: 13px; font-weight: 700; }

.face-enroll-camera {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #142638;
}

.face-enroll-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-enroll-oval {
  position: absolute;
  inset: 16% 18% 22%;
  border: 3px dashed rgba(226, 232, 240, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.3);
  pointer-events: none;
}

.face-enroll-camera[data-tone="ok"] .face-enroll-oval { border-style: solid; border-color: #6ee7b7; }
.face-enroll-camera[data-tone="warn"] .face-enroll-oval { border-color: #fcd34d; }

.face-enroll-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.face-enroll-progress:empty { display: none; }

#kiosk-account-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #f7f9fc;
}

#kiosk-account-form input {
  min-height: 42px;
  border-color: #cbd5e1;
  border-radius: 10px;
}

#kiosk-account-form input[readonly] { color: #64748b; background: #eef2f7; }

@media screen and (max-width: 900px) {
  .face-enroll { grid-template-columns: minmax(0, 1fr); }
  .face-enroll-camera { max-width: 340px; margin-inline: auto; }
}

@media screen and (max-width: 600px) {
  #kiosk-account-form { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .face-enroll,
  .kiosk-settings { display: none; }
}

/* ==========================================================
   Tema "Aplikasi HR" — disamakan dengan kiosk wajah
   ========================================================== */
:root {
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --hr-ink: #0f1f3a;
  --hr-muted: #64748b;
  --hr-line: #e2e8f0;
  --hr-page: #f3f6fb;
}

body.authenticated,
body.authenticated .app-layout {
  color: var(--hr-ink);
  background: var(--hr-page);
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

/* Header jadi pita biru */
.app-header {
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(120deg, #2563eb 0%, #3b82f6 60%, #60a5fa 100%);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}

.app-header h1,
.app-header .eyebrow,
.app-header .period,
.app-header .period strong { color: #fff; }
.app-header .eyebrow { opacity: 0.85; }
.app-header .period { opacity: 0.92; }
.user-panel span { color: rgba(255, 255, 255, 0.92) !important; }

.app-shell .hamburger-button,
.hamburger-button {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: none !important;
}

.hamburger-button span { background: var(--brand); }

#logout-button {
  color: var(--brand);
  background: #fff;
}

#logout-button:hover { color: #fff; background: #1e40af; }

/* Sidebar putih bersih */
.sidebar {
  color: var(--hr-ink);
  background: #fff;
  border-right: 1px solid var(--hr-line);
  box-shadow: 8px 0 30px rgba(15, 31, 58, 0.06);
}

.sidebar-brand span { color: #fff; background: var(--brand); border-radius: 12px; }
.sidebar-brand strong { color: var(--hr-ink); }

.sidebar-nav .nav-item {
  color: #475569;
  background: transparent;
  font-weight: 600;
}

.sidebar-nav .nav-item:is(:hover, .active) {
  color: var(--brand) !important;
  background: #eff6ff !important;
}

/* Kartu-kartu */
.app-shell :is(.title-block, .toolbar, .data-tools, .table-section, .settings-panel, .admin-overview) {
  border: 1px solid var(--hr-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 31, 58, 0.06);
}

.app-shell .eyebrow { color: var(--hr-muted); letter-spacing: 0.08em; }
.app-shell h2 { color: var(--hr-ink); }

.app-shell button:not(.ghost-button):not(.danger-button):not(.nav-item):not(.hamburger-button):not(#logout-button):not(.notification-close),
.view-section[data-view="data-absensi"] .crud-actions button:not(.danger-button):not(#new-member),
#holiday-form button[type="submit"],
#kiosk-account-form button[type="submit"] {
  background: var(--brand);
}

.app-shell button:not(.ghost-button):not(.danger-button):not(.nav-item):not(.hamburger-button):not(#logout-button):not(.notification-close):hover,
#holiday-form button[type="submit"]:hover {
  background: var(--brand-2);
}

.ghost-button,
.view-section[data-view="data-absensi"] #new-member {
  color: var(--brand);
  background: #eff6ff;
}

.app-shell :is(input:not([type="checkbox"]), select):focus {
  border-color: var(--brand);
  outline: 3px solid rgba(37, 99, 235, 0.15);
}

#attendance-table thead th { color: var(--hr-ink); background: #f1f5f9; }
#attendance-table tfoot td { background: var(--brand); }

/* Ringkasan hari ini */
.admin-overview {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
}

.overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overview-head h2 { font-size: 24px; }
.overview-sub { margin: 6px 0 0; color: var(--hr-muted); font-size: 14px; }

.overview-kiosk {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.overview-kiosk:hover { background: var(--brand-2); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--hr-line);
  border-radius: 16px;
  background: #f8fafc;
}

.stat-card span { color: #475569; font-size: 13px; font-weight: 700; }
.stat-card strong { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--hr-muted); font-size: 12px; }

.stat-present { border-color: #bfdbfe; background: #eff6ff; }
.stat-present strong { color: #1d4ed8; }
.stat-out { border-color: #bbf7d0; background: #f0fdf4; }
.stat-out strong { color: #15803d; }
.stat-missing { border-color: #e2e8f0; background: #f8fafc; }
.stat-missing strong { color: #334155; }
.stat-leave { border-color: #fde68a; background: #fffbeb; }
.stat-leave strong { color: #b45309; }

.today-panel {
  border: 1px solid var(--hr-line);
  border-radius: 16px;
  overflow: hidden;
}

.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hr-line);
  background: #f8fafc;
}

.today-head h3 { margin: 0; font-size: 16px; }
.today-head span { color: var(--hr-muted); font-size: 13px; }

.today-scroll { max-height: 420px; overflow: auto; }

.app-shell .today-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.app-shell .today-table th,
.app-shell .today-table td {
  height: auto;
  padding: 10px 18px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.app-shell .today-table th {
  position: sticky;
  top: 0;
  color: var(--hr-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-shell .today-table td:first-child { border-left: 0; }
.today-table tbody tr:hover td { background: #f8fafc; }

.today-name { display: flex; align-items: center; gap: 12px; }
.today-name strong { display: block; font-size: 14px; font-weight: 700; }
.today-name small { color: var(--hr-muted); font-size: 12px; }

.today-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.today-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.today-chip[data-state="in"] { color: #1d4ed8; background: #dbeafe; }
.today-chip[data-state="out"] { color: #15803d; background: #dcfce7; }
.today-chip[data-state="leave"] { color: #b45309; background: #fef3c7; }
.today-chip[data-state="missing"] { color: #475569; background: #f1f5f9; }
.today-empty { color: var(--hr-muted); text-align: center !important; }

/* Login senada dengan kiosk */
.login-screen {
  background:
    linear-gradient(180deg, #2563eb 0, #3b82f6 260px, var(--hr-page) 260px);
}

.login-card { border-color: var(--hr-line); box-shadow: 0 24px 60px rgba(15, 31, 58, 0.15); }
.scan-welcome-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.permission-button,
#login-barcode-submit,
.admin-login-fields button[type="submit"] { background: var(--brand); }
.permission-button:hover,
#login-barcode-submit:hover,
.admin-login-fields button[type="submit"]:hover { background: var(--brand-2); }
.manual-qr-panel summary { color: var(--brand); background: #eff6ff; }
.manual-qr-panel summary:hover,
.manual-qr-panel[open] summary { color: #fff; background: var(--brand); }

@media screen and (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 600px) {
  .admin-overview { padding: 14px; }
  .stat-card strong { font-size: 28px; }
}

@media print {
  .admin-overview { display: none; }
}

/* Rapikan detail tema HR */
.app-shell .app-header .eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.sidebar-nav .nav-item,
.sidebar-nav .nav-item:hover { box-shadow: none !important; transform: none; }

.view-section[data-view="pengaturan"] .settings-panel .holiday-list,
.view-section[data-view="pengaturan"] .settings-panel #holiday-message { grid-column: 1 / -1; }

/* Login admin saja (login QR dihapus) */
.login-card .admin-login-fields { margin-top: 0; }
.login-card .admin-login-fields button[type="submit"] { min-height: 48px; font-size: 16px; }

.login-kiosk-link {
  justify-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand);
  background: #eff6ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.login-kiosk-link:hover { color: #fff; background: var(--brand); }

/* Form anggota tanpa kotak QR */
.member-form { grid-template-columns: minmax(0, 1fr) !important; }

/* ==========================================================
   Data Absensi: daftar anggota + panel detail
   ========================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell :is(.member-panel, .member-detail) {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--hr-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 31, 58, 0.06);
}

.member-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.member-count { margin: 6px 0 0; color: var(--hr-muted); font-size: 14px; }

.member-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.app-shell .member-tools input,
.app-shell .member-tools select {
  width: auto;
  min-width: 200px;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
}

.app-shell .member-tools button { min-height: 42px; white-space: nowrap; }

.member-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--hr-line);
  border-radius: 14px;
}

.app-shell .member-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.app-shell .member-table th,
.app-shell .member-table td {
  height: auto;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.app-shell .member-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--hr-muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-table tbody tr { cursor: pointer; }
.member-table tbody tr:hover td { background: #f8fafc; }
.member-table tbody tr.is-selected td { background: #eff6ff; }
.member-table tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.member-table tbody tr.is-inactive .member-name { opacity: 0.6; }

.member-name { display: flex; align-items: center; gap: 12px; }
.member-name strong { display: block; font-size: 14px; font-weight: 700; }
.member-name small { color: var(--hr-muted); font-size: 12px; }

.member-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.member-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.member-chip[data-state="active"] { color: #15803d; background: #dcfce7; }
.member-chip[data-state="inactive"] { color: #475569; background: #f1f5f9; }
.member-chip[data-state="face"] { color: #1d4ed8; background: #dbeafe; }
.member-chip[data-state="noface"] { color: #b45309; background: #fef3c7; }

.member-action { text-align: right !important; }
.app-shell .member-action button { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.member-empty { color: var(--hr-muted); text-align: center !important; }

.member-detail-head { margin-bottom: 16px; }
.member-detail-head h2 { font-size: 22px; }

.member-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
  gap: 24px;
  align-items: start;
}

.member-detail h3 { margin: 0 0 4px; font-size: 16px; }

.member-detail .member-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--hr-line);
  border-radius: 16px;
  background: #f8fafc;
}

.member-detail .member-form .crud-actions { padding-top: 0; border-top: 0; }

.member-detail .face-enroll {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  margin: 0;
  padding: 18px;
  border: 1px solid var(--hr-line);
  border-radius: 16px;
  background: #f8fafc;
}

@media screen and (max-width: 1100px) {
  .member-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

@media screen and (max-width: 700px) {
  .member-detail .face-enroll { grid-template-columns: minmax(0, 1fr); }
  .app-shell .member-tools input,
  .app-shell .member-tools select { min-width: 0; width: 100%; }
  .member-tools { width: 100%; }
}

@media print {
  .member-panel,
  .member-detail { display: none !important; }
}

.view-section[data-view="data-absensi"] .member-tools #new-member {
  color: #fff !important;
  background: var(--brand) !important;
}

.view-section[data-view="data-absensi"] .member-tools #new-member:hover { background: var(--brand-2) !important; }

/* ==========================================================
   CRUD absensi: sel tabel bisa diklik + jendela form
   ========================================================== */
@media screen {
  body.authenticated #attendance-table tbody td.col-day { cursor: pointer; }
  body.authenticated #attendance-table tbody td.col-day:hover {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
  }
}

.att-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--hr-ink);
  box-shadow: 0 30px 70px rgba(15, 31, 58, 0.3);
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

.att-dialog::backdrop { background: rgba(15, 31, 58, 0.45); }

.att-dialog form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.att-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.att-dialog-head .eyebrow { margin: 0 0 4px; color: var(--hr-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.att-dialog-head h2 { margin: 0; font-size: 22px; }

.att-close {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--hr-muted);
  background: #f1f5f9;
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

.att-close:hover { color: var(--hr-ink); background: #e2e8f0; transform: none; }

.att-dialog label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.att-dialog input,
.att-dialog select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--hr-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.att-dialog input:focus,
.att-dialog select:focus { border-color: var(--brand); outline: 3px solid rgba(37, 99, 235, 0.15); }

.att-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.att-message { min-height: 18px; margin: 0; color: #b91c1c; font-size: 13px; font-weight: 600; }

.att-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.att-spacer { flex: 1; }
.att-actions button { min-height: 42px; box-shadow: none; }
.att-actions button[type="submit"] { background: var(--brand); }
.att-actions button[type="submit"]:hover { background: var(--brand-2); }

#add-attendance { white-space: nowrap; }

@media print {
  .att-dialog,
  #add-attendance { display: none !important; }
}

/* ==========================================================
   Menu Anggota terpisah + detail anggota dalam jendela
   ========================================================== */
.member-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--hr-ink);
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 31, 58, 0.3);
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

.member-dialog::backdrop { background: rgba(15, 31, 58, 0.45); }

.member-dialog .member-detail {
  margin: 0;
  padding: 22px;
  border: 0;
  box-shadow: none;
}

.member-dialog .member-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-dialog .eyebrow { margin: 0 0 4px; color: var(--hr-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.member-dialog h2 { margin: 0; font-size: 22px; }

.member-dialog label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.member-dialog .checkbox-label { display: flex !important; gap: 10px !important; align-items: center; }

.member-dialog input:not([type="checkbox"]),
.member-dialog select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--hr-ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.member-dialog input:focus,
.member-dialog select:focus { border-color: var(--brand); outline: 3px solid rgba(37, 99, 235, 0.15); }

.member-dialog .crud-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.member-dialog .crud-actions button { min-height: 42px; box-shadow: none; }
.member-dialog .crud-actions button:not(.danger-button) { background: var(--brand); }
.member-dialog .crud-actions button:not(.danger-button):hover { background: var(--brand-2); }
.member-dialog .crud-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.member-dialog .admin-hint { margin: 0; color: var(--hr-muted); font-size: 13px; line-height: 1.5; }
.member-dialog .face-enroll-camera { max-height: 340px; }

@media print {
  .member-dialog { display: none !important; }
}

/* ==========================================================
   Pendaftaran wajah bertahap
   ========================================================== */
.face-steps {
  display: grid;
  gap: 6px;
  margin: 4px 0 2px;
  padding: 0;
  list-style: none;
}

.face-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hr-muted);
  font-size: 14px;
  font-weight: 600;
}

.face-steps li span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--hr-muted);
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}

.face-steps li[data-state="current"] { color: var(--hr-ink); font-weight: 800; }
.face-steps li[data-state="current"] span { color: #fff; background: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.face-steps li[data-state="done"] { color: #15803d; }
.face-steps li[data-state="done"] span { color: #fff; background: #16a34a; font-size: 0; }
.face-steps li[data-state="done"] span::after { content: "\2713"; font-size: 13px; }

.member-dialog .face-consent {
  padding: 12px 14px;
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  color: var(--hr-ink);
  background: #eff6ff;
  font-size: 14px;
  font-weight: 700;
}

.member-dialog .face-consent input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }

.face-actions { display: grid; }

.member-dialog .face-primary {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
  font-size: 16px;
  font-weight: 800;
}

.member-dialog .face-primary:hover:not(:disabled) { background: var(--brand-2); }
.member-dialog .face-primary:disabled { color: #64748b; background: #e2e8f0; box-shadow: none; cursor: not-allowed; }
.member-dialog .face-done { background: #16a34a; box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25); }
.member-dialog .face-done:hover { background: #15803d !important; }

.face-enroll-message {
  min-height: 20px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.face-links { display: flex; flex-wrap: wrap; gap: 14px; }

.member-dialog .face-link {
  min-height: 0;
  padding: 0;
  color: var(--brand);
  background: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.member-dialog .face-link:hover { color: var(--brand-2); background: none; transform: none; }
.member-dialog .face-link-danger { color: #b91c1c; }
.member-dialog .face-link-danger:hover { color: #7f1d1d; }

.face-enroll.is-locked .face-steps,
.face-enroll.is-locked .face-enroll-camera { opacity: 0.45; }

.face-enroll-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.member-dialog .face-enroll-progress {
  top: 12px;
  bottom: auto;
  font-size: 14px;
  line-height: 1.4;
}

.face-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  transform: translateX(-50%);
}

.face-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.face-dots i.on { background: #4ade80; }

.member-dialog [hidden],
.member-dialog .checkbox-label[hidden] { display: none !important; }

/* Notifikasi tengah layar (tema HR) */
.notification-stack { z-index: 1000; width: min(420px, calc(100vw - 32px)); }

.attendance-notification {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 20px 22px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 31, 58, 0.35);
}

.notification-success { background: #16a34a; }
.notification-error { background: #dc2626; }

.attendance-notification .notification-icon {
  width: 44px;
  height: 44px;
  color: #16a34a;
  background: #fff;
  font-size: 24px;
}

.notification-error .notification-icon { color: #dc2626; }
.attendance-notification strong { font-size: 18px; }
.attendance-notification p { font-size: 14px; }

.member-dialog .crud-actions button:disabled { color: #64748b; background: #e2e8f0 !important; box-shadow: none; cursor: default; }

/* Rekap Kehadiran: hadir cukup ceklis (jam ada di tooltip & Excel) */
#attendance-table tbody td.col-day.status-present {
  color: #15803d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* Rekap Kehadiran: pilihan bulan */
.month-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--hr-line, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}
.month-picker .month-step {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hr-ink, #0f1f3a);
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
}
.month-picker .month-step:hover:not(:disabled) { background: #eef3ff; }
.month-picker .month-step:disabled { opacity: .3; cursor: not-allowed; }
.month-picker .month-field {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 132px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--hr-ink, #0f1f3a);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.month-picker .month-field:hover { background: #eef3ff; }
.month-picker .month-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.month-picker .month-now {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eef3ff;
  color: var(--brand, #2563eb);
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}
.month-picker .month-now[hidden] { display: none; }
@media print { .month-picker { display: none !important; } }
@media (max-width: 720px) { .report-actions .month-picker { width: 100%; justify-content: space-between; } .report-actions .month-picker button { flex: 0 0 auto; } }
/* Tombol pilihan bulan tidak ikut gaya tombol biru umum */
.app-shell .month-picker .month-step { background: transparent !important; color: var(--hr-ink, #0f1f3a) !important; }
.app-shell .month-picker .month-step:hover:not(:disabled) { background: #eef3ff !important; }
.app-shell .month-picker .month-now { background: #eef3ff !important; color: var(--brand, #2563eb) !important; }
.app-shell .month-picker .month-now:hover { background: #dbe7ff !important; }

/* Form ganti password admin: sama seperti form akun kiosk */
#admin-password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #f7f9fc;
}
#admin-password-form input { min-height: 42px; border-color: #cbd5e1; border-radius: 10px; }
@media screen and (max-width: 900px) { #admin-password-form { grid-template-columns: minmax(0, 1fr); } }
