/* HRIS Attendance Contrast V8 | 12 November 2026
   Scoped to Employee Personal Attendance, Monthly Cut Off, and Kalender Kerja.
   Overrides unresolved via-white gradient stops when dark mode is active.
   Does not affect exports, PDFs, printing, attendance calculations, or requests. */

/* Header surfaces: clear foreground/background contrast in both themes. */
.hris-attendance-header {
  background-image: linear-gradient(115deg, #eef5fc 0%, #f8fbff 55%, #e6f2fd 100%) !important;
  background-color: #f3f8ff;
  border-color: #c7d9ea;
}
.hris-attendance-header .hris-attendance-hero-title {
  color: #172b46;
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 700;
  line-height: 1.35;
}
.hris-attendance-header .hris-attendance-hero-description {
  color: #3d526b;
  font-size: 12px;
  line-height: 1.7;
}
.hris-personal-attendance .hris-attendance-header .hris-attendance-hero-title,
.hris-cutoff-preview-header .hris-attendance-hero-title {
  font-size: 14px;
}
.hris-personal-attendance .hris-attendance-header .hris-attendance-hero-description {
  font-size: 12px;
}
.hris-attendance-header :is(a, button, input, select):focus-visible,
.hris-cutoff-view :is(a,button,input,select):focus-visible,
.hris-calendar-view :is(a,button,input,select):focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* The principal payroll action must look like a button, not an unmarked card. */
.hris-cutoff-view #pullButton.hris-cutoff-primary {
  background: #075985 !important;
  border: 1px solid #0369a1;
  box-shadow: 0 4px 13px rgba(3,105,161,.24);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  min-height: 44px;
  line-height: 1.25;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.hris-cutoff-view #pullButton.hris-cutoff-primary:hover:not(:disabled) {
  background: #0369a1 !important;
  box-shadow: 0 5px 18px rgba(2,132,199,.33);
}
.hris-cutoff-view #pullButton.hris-cutoff-primary:active:not(:disabled) { transform: translateY(1px); }
.hris-cutoff-view #pullButton.hris-cutoff-primary:disabled {
  background: #64748b !important;
  border-color: #64748b;
  box-shadow: none;
  color: #fff !important;
  cursor: not-allowed;
}
.hris-cutoff-view .hris-cutoff-form label { font-size: 11px; }
.hris-cutoff-view .hris-cutoff-form :is(input,select) { font-size: 12px; }
.hris-cutoff-view .hris-cutoff-form #cutoffDuration { font-size: 12px; }

/* Distinct actions and filter states within payroll preview. */
.hris-cutoff-view .hris-cutoff-finalize {
  border-color: #6366f1;
  background: #4338ca;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.hris-cutoff-view .hris-cutoff-finalize:hover:not(:disabled) { background: #3730a3; }
.hris-cutoff-view .hris-cutoff-reopen {
  border-color: #d97706;
  background: #b45309;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.hris-cutoff-view .hris-cutoff-reopen:hover:not(:disabled) { background: #92400e; }
.hris-cutoff-view .hris-cutoff-export {
  border-color: #059669;
  background: #047857;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.hris-cutoff-view .hris-cutoff-export:hover { background: #065f46; }
.hris-cutoff-view .cutoff-tab {
  border-color: #c8d8e9;
  background-color: #fff;
  color: #405a75;
  font-size: 11px;
  min-height: 35px;
}
.hris-cutoff-view .cutoff-tab:hover { background-color: #e8f3fc; color: #075985; }
.hris-cutoff-view .cutoff-tab[class~="bg-sky-50"] {
  background-color: #dbeafe !important;
  border-color: #0284c7;
  color: #075985;
}
.hris-cutoff-view .hris-cutoff-back,
.hris-calendar-view .hris-calendar-action {
  color: #075985;
  border-color: #93c5fd;
  background-color: #e0f2fe;
  font-size: 11px;
  font-weight: 700;
}
.hris-cutoff-view .hris-cutoff-back:hover,
.hris-calendar-view .hris-calendar-action:hover { background-color: #bae6fd; color: #0c4a6e; }
.hris-calendar-view .hris-calendar-save {
  background: #0369a1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.hris-calendar-view .hris-calendar-save:hover { background: #075985; }

/* Employee attendance view and navigation buttons. */
.hris-personal-attendance .hris-attendance-monthbar {
  background-color: #f6faff;
  border-bottom-color: #d4e3f2;
}
.hris-personal-attendance .hris-attendance-view-switch { border-color: #bfd2e5; }
.hris-personal-attendance .hris-attendance-view-switch a { font-size: 11px; }
.hris-personal-attendance .hris-attendance-view-switch a[class~="bg-white"] {
  color: #075985;
  border: 1px solid #c1dcef;
}

/* Dark mode: replace the whole gradient. Merely changing from/to still leaves via-white. */
html.dark .hris-attendance-header {
  background: linear-gradient(112deg, #1b2b42 0%, #1d3049 56%, #18283d 100%) !important;
  border-color: #39536d !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
html.dark .hris-attendance-header .hris-attendance-hero-title { color: #f1f7ff !important; }
html.dark .hris-attendance-header .hris-attendance-hero-description { color: #c5d6e9 !important; }
html.dark .hris-attendance-header .text-slate-400 { color: #b1c6dc; }
html.dark .hris-attendance-header .text-slate-300 { color: #99b7d4; }
html.dark .hris-cutoff-view #pullButton.hris-cutoff-primary {
  background: #086fa6 !important;
  border: 1px solid #46b6f2 !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(36,175,247,.1), 0 4px 18px rgba(0,0,0,.22);
}
html.dark .hris-cutoff-view #pullButton.hris-cutoff-primary:hover:not(:disabled) {
  background: #0b85c4 !important;
  border-color: #7bd4ff !important;
  box-shadow: 0 5px 18px rgba(14,165,233,.27);
}
html.dark .hris-cutoff-view #pullButton.hris-cutoff-primary:disabled {
  background: #34465d !important;
  border-color: #475c73 !important;
  box-shadow: none;
  color: #c8d7e8 !important;
}
html.dark .hris-cutoff-view .hris-cutoff-finalize {
  background: #4338ca !important;
  border-color: #a5b4fc !important;
  color: #fff !important;
}
html.dark .hris-cutoff-view .hris-cutoff-finalize:hover:not(:disabled) { background: #5546df !important; }
html.dark .hris-cutoff-view .hris-cutoff-reopen {
  background: #854d0e !important;
  border-color: #fbbf24 !important;
  color: #fff8e8 !important;
}
html.dark .hris-cutoff-view .hris-cutoff-reopen:hover:not(:disabled) { background: #a16207 !important; }
html.dark .hris-cutoff-view .hris-cutoff-export {
  background: #065f46 !important;
  border-color: #34d399 !important;
  color: #f0fff9 !important;
}
html.dark .hris-cutoff-view .hris-cutoff-export:hover { background: #047857 !important; }
html.dark .hris-cutoff-view .cutoff-tab {
  background-color: #192b40 !important;
  border-color: #3a526e !important;
  color: #d5e2f0 !important;
}
html.dark .hris-cutoff-view .cutoff-tab:hover {
  background-color: #26425e !important;
  border-color: #5598c4 !important;
  color: #e3f5ff !important;
}
html.dark .hris-cutoff-view .cutoff-tab[class~="bg-sky-50"] {
  background-color: #10476a !important;
  border-color: #52c1fb !important;
  color: #e2f6ff !important;
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.13);
}
html.dark .hris-cutoff-view .hris-cutoff-back,
html.dark .hris-calendar-view .hris-calendar-action {
  background-color: #163954 !important;
  border-color: #407ea7 !important;
  color: #d5efff !important;
}
html.dark .hris-cutoff-view .hris-cutoff-back:hover,
html.dark .hris-calendar-view .hris-calendar-action:hover {
  background-color: #205177 !important;
  border-color: #70bbec !important;
  color: #fff !important;
}
html.dark .hris-calendar-view .hris-calendar-save {
  background: #086fa6 !important;
  border-color: #46b6f2;
  color: #fff !important;
}
html.dark .hris-calendar-view .hris-calendar-save:hover { background: #0b85c4 !important; }
html.dark .hris-personal-attendance .hris-attendance-monthbar {
  background-color: #19283d !important;
  border-bottom-color: #3a5069;
}
html.dark .hris-personal-attendance .hris-attendance-view-switch {
  background-color: #102137 !important;
  border-color: #3d5470;
}
html.dark .hris-personal-attendance .hris-attendance-view-switch a { color: #bcd0e5 !important; }
html.dark .hris-personal-attendance .hris-attendance-view-switch a:hover { color: #fff !important; }
html.dark .hris-personal-attendance .hris-attendance-view-switch a[class~="bg-white"] {
  background-color: #17618c !important;
  border-color: #4cbafa !important;
  color: #f5fbff !important;
}
@media (prefers-reduced-motion: reduce) {
  .hris-cutoff-view #pullButton.hris-cutoff-primary { transition: none; }
}
@media print { .hris-attendance-header { background: #fff !important; box-shadow: none !important; } }
