@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

main.flex-grow-1 {
  --employees-font: "Manrope", "Segoe UI", sans-serif;
  --employees-bg: #e8edf6;
  --employees-surface: #ffffff;
  --employees-border: #a8b8d0;
  --employees-border-strong: #8da2be;
  --employees-text: #0f172a;
  --employees-muted: #3b4a5e;
  --employees-accent: #2563eb;
  --employees-accent-strong: #1d4ed8;
  --employees-accent-soft: #dbe6ff;
  --employees-danger-soft: #fff1f3;
  --employees-danger-border: #ffc9d2;
  font-family: var(--employees-font);
  color: var(--employees-text);
  background:
    radial-gradient(680px 280px at 2% -10%, rgba(37, 99, 235, 0.07), transparent 62%),
    radial-gradient(540px 220px at 98% 0%, rgba(15, 23, 42, 0.04), transparent 68%),
    var(--employees-bg);
  border-radius: 12px;
}

main.flex-grow-1 .h5 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

main.flex-grow-1 hr {
  border-color: #a8b8d0;
  opacity: 1;
}

main.flex-grow-1 .text-muted,
main.flex-grow-1 .small.text-muted {
  color: var(--employees-muted) !important;
}

main.flex-grow-1 .card {
  border: none;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  animation: employees-fade-in 190ms ease both;
}

#employeesAddBtn {
  white-space: nowrap;
}

main.flex-grow-1 .btn,
.employees-wizard .btn,
#employeeDetailClockConfirmModal .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

main.flex-grow-1 .btn:hover,
.employees-wizard .btn:hover,
#employeeDetailClockConfirmModal .btn:hover {
  transform: translateY(-1px);
}

main.flex-grow-1 .btn-primary,
.employees-wizard .btn-primary,
#employeeDetailClockConfirmModal .btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 15px -12px rgba(37, 99, 235, 0.5);
}

main.flex-grow-1 .btn-primary:hover,
main.flex-grow-1 .btn-primary:focus-visible,
.employees-wizard .btn-primary:hover,
.employees-wizard .btn-primary:focus-visible,
#employeeDetailClockConfirmModal .btn-primary:hover,
#employeeDetailClockConfirmModal .btn-primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

main.flex-grow-1 .btn-outline-primary,
.employees-wizard .btn-outline-primary {
  color: #1d4ed8;
  border-color: #93b4f0;
  background: #edf2ff;
}

main.flex-grow-1 .btn-outline-primary:hover,
main.flex-grow-1 .btn-outline-primary:focus-visible,
.employees-wizard .btn-outline-primary:hover,
.employees-wizard .btn-outline-primary:focus-visible {
  color: #ffffff;
  border-color: #1d4ed8;
  background: #1d4ed8;
}

main.flex-grow-1 .btn-outline-secondary,
.employees-wizard .btn-outline-secondary,
#employeeDetailClockConfirmModal .btn-outline-secondary {
  color: #334155;
  border-color: #d3dbe6;
  background: #f8fafc;
}

main.flex-grow-1 .btn-outline-secondary:hover,
main.flex-grow-1 .btn-outline-secondary:focus-visible,
.employees-wizard .btn-outline-secondary:hover,
.employees-wizard .btn-outline-secondary:focus-visible,
#employeeDetailClockConfirmModal .btn-outline-secondary:hover,
#employeeDetailClockConfirmModal .btn-outline-secondary:focus-visible {
  color: #0f172a;
  border-color: #b9c5d6;
  background: #edf2f8;
}

main.flex-grow-1 .btn-outline-danger,
.employees-wizard .btn-outline-danger {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff5f7;
}

main.flex-grow-1 .btn-outline-danger:hover,
main.flex-grow-1 .btn-outline-danger:focus-visible,
.employees-wizard .btn-outline-danger:hover,
.employees-wizard .btn-outline-danger:focus-visible {
  color: #ffffff;
  border-color: #be123c;
  background: #be123c;
}

main.flex-grow-1 .form-control,
main.flex-grow-1 .form-select,
.employees-wizard .form-control,
.employees-wizard .form-select,
#employeeDetailClockConfirmModal .form-control,
#employeeDetailClockConfirmModal .form-select {
  border: 1px solid #94a7c2;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.92rem;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

main.flex-grow-1 .form-control:focus,
main.flex-grow-1 .form-select:focus,
.employees-wizard .form-control:focus,
.employees-wizard .form-select:focus,
#employeeDetailClockConfirmModal .form-control:focus,
#employeeDetailClockConfirmModal .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.15);
}

.employees-modal-content {
  border: 1px solid var(--employees-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.4);
  animation: employees-modal-in 170ms ease both;
}

.employees-wizard .modal-header,
#employeeDetailClockConfirmModal .modal-header {
  border-bottom: 1px solid var(--employees-border);
  background: #dfe6f3;
  padding: 0.78rem 0.95rem;
}

.employees-wizard .modal-footer,
#employeeDetailClockConfirmModal .modal-footer {
  border-top: 1px solid var(--employees-border);
  background: #fbfcfe;
}

.employees-wizard .modal-body {
  background: #ffffff;
}

.employees-wizard-step {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f5f9f;
}

.employees-wizard .modal-title,
#employeeDetailClockConfirmModal .modal-title {
  color: #111827;
  font-weight: 700;
}

.employees-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #354152;
}

.employees-small-muted {
  font-size: 0.74rem;
  color: #68778d;
}

.employees-card {
  border: 1px solid var(--employees-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

#employeesBuilderWarning {
  border: 1px solid #f6ddb0;
  border-radius: 8px;
  background: #fff8e9;
  color: #8a6232;
}

.employees-builder-warning {
  display: none;
}

.employees-hours-warning {
  display: none;
}

#employeesFinalSummary {
  border: 1px solid #dce5f3;
  border-radius: 8px;
  background: #dfe6f3;
  padding: 0.5rem 0.62rem;
  color: #243449;
}

#employeesPickedScheduleBadge {
  border-radius: 999px;
  border: 1px solid #c5d5ff;
  background: #eef4ff !important;
  color: #1d4ed8 !important;
  font-weight: 700;
}

.employees-controls-shell {
  margin: 0 0 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.employees-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 4rem;
  gap: 8px;
  flex-wrap: wrap;
  border: 0;
  border-radius: 10px;
  padding: 0.56rem 0.62rem;
  background: transparent;
}

.employees-controls-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.employees-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.employees-search-input {
  width: 220px;
}

main.flex-grow-1 .table-responsive {
  border: 1px solid var(--employees-border);
  border-radius: 11px;
  overflow: visible;
  background: #ffffff;
}

main.flex-grow-1 .table {
  margin-bottom: 0;
}

main.flex-grow-1 .table > :not(caption) > * > * {
  border-bottom-color: #a8b8d0;
}

main.flex-grow-1 .table thead.table-light th {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

main.flex-grow-1 .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #f0f3fa;
}

main.flex-grow-1 .table > tbody > tr:hover > * {
  background-color: #f5f8ff;
}

main.flex-grow-1 .table td,
main.flex-grow-1 .table th {
  padding: 0.62rem 0.68rem;
}

main.flex-grow-1 .table td .btn-sm {
  border-radius: 7px;
}

.employees-th-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.employees-th-filter-btn:hover,
.employees-th-filter-btn:focus-visible {
  color: #475569;
  background: #eef2f7;
  border-color: #8da2be;
}

.employees-th-filter-btn.active {
  color: #2563eb;
  background: #eef4ff;
  border-color: #c5d5ff;
}

.employees-th-filter-icon {
  width: 12px;
  height: 12px;
  display: block;
  fill: currentColor;
}

.employees-filter-dropdown {
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  border: 1px solid var(--employees-border);
  border-radius: 8px;
  background: var(--employees-surface);
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.25);
  font-size: 0.82rem;
}

.employees-filter-dropdown .dropdown-item {
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--employees-text);
}

.employees-filter-dropdown .dropdown-item:hover,
.employees-filter-dropdown .dropdown-item:focus {
  background: var(--employees-accent-soft);
  color: var(--employees-accent);
}

.employees-filter-dropdown .dropdown-item.active {
  background: var(--employees-accent);
  color: #ffffff;
}

.employees-btn-assign-shifts {
  border-color: #c8d8ff !important;
  color: #1d4ed8 !important;
  background: #edf2ff !important;
}

.employees-btn-assign-shifts:hover,
.employees-btn-assign-shifts:focus-visible {
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  background: #1d4ed8 !important;
}

.employees-day-card {
  border: 1px solid var(--employees-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.employees-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem;
  padding: 0.58rem 0.66rem;
  border-bottom: 1px solid #e8edf4;
  background: #fafcff;
}

.employees-day-body {
  padding: 0.62rem;
  min-height: 66px;
}

.employees-slot-row {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.42rem;
  background: #ffffff;
}

.employees-slot-row .form-control {
  height: 33px;
}

.employees-btn-remove-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}

.employees-remove-icon {
  width: 0.92rem;
  height: 0.92rem;
  display: block;
  fill: currentColor;
}

.employees-slot-row-invalid {
  background: var(--employees-danger-soft);
  border-color: var(--employees-danger-border);
}

.employees-sticky-footer {
  position: sticky;
  bottom: 0;
  border: 1px solid var(--employees-border);
  border-radius: 9px;
  padding: 0.5rem 0.58rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.employees-wizard .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.employee-detail-tabs {
  gap: 0.45rem;
}

.employee-detail-tabs .nav-link {
  border: 1px solid var(--employees-border);
  border-radius: 999px;
  padding: 0.33rem 0.8rem;
  background: #ffffff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.employee-detail-tabs .nav-link:hover,
.employee-detail-tabs .nav-link:focus-visible {
  border-color: #93b4f0;
  color: #1d4ed8;
  background: #edf2ff;
}

.employee-detail-tabs .nav-link.active {
  border-color: #93b4f0;
  color: #1d4ed8;
  background: #eef4ff;
}

.employee-detail-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--employees-border);
  border-radius: 10px;
  padding: 0.56rem 0.62rem;
  background: #fafcff;
}

.employee-detail-calendar-week-input {
  width: 170px;
}

.employee-detail-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.employee-detail-calendar-day {
  border: 1px solid var(--employees-border);
  border-radius: 10px;
  background: #ffffff;
  min-height: 136px;
  overflow: hidden;
}

.employee-detail-calendar-day-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.58rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
  background: #2563eb;
  border-radius: 10px 10px 0 0;
}

.employee-detail-calendar-day-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.employee-detail-calendar-day-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.employee-detail-calendar-day-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.employee-detail-calendar-empty {
  font-size: 11px;
  color: #6b778a;
}

.employee-detail-calendar-block {
  font-size: 11px;
  border-radius: 7px;
  padding: 4px 6px;
  border: 1px solid transparent;
}

.employee-detail-calendar-block-schedule {
  background: #eef4ff;
  border-color: #cad8ff;
  color: #1e40af;
}

.employee-detail-calendar-block-shift {
  background: #fff8e8;
  border-color: #ffe2a8;
  color: #8a5d1f;
}

.calendar-off-event-company {
  border-color: #fed7aa;
  background: #fff7ed;
}

.calendar-off-event-company .calendar-off-event-title {
  color: #9a3412;
}

.calendar-off-event-scope {
  font-size: 0.62rem;
  font-weight: 600;
  color: #c2410c;
  letter-spacing: 0.02em;
}

.employee-time-reg-bar-off-company {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(234, 88, 12, 0.2) 0,
      rgba(234, 88, 12, 0.2) 4px,
      transparent 4px,
      transparent 8px
    );
  border-color: rgba(234, 88, 12, 0.5);
  color: #9a3412;
}

.employee-time-reg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--employees-border);
  border-radius: 10px;
  padding: 0.56rem 0.62rem;
  background: #fafcff;
}

.employee-time-reg-week-input {
  width: 170px;
}

.employee-time-reg-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.employee-time-reg-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.employee-time-reg-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid transparent;
}

.employee-time-reg-legend-swatch-planned {
  background: #e9f1ff;
  border-color: #c4d7ff;
}

.employee-time-reg-legend-swatch-off {
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(225, 29, 72, 0.35);
}

.employee-time-reg-legend-swatch-clock {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.employee-time-reg-wrap {
  --employee-time-reg-track-height: 816px;
  --employee-time-reg-hour-step: calc(var(--employee-time-reg-track-height) / 24);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.employee-time-reg-axis {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: var(--employee-time-reg-track-height);
  margin-top: 33px;
}

.employee-time-reg-axis-tick {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #a8b8d0;
}

.employee-time-reg-axis-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.employee-time-reg-days {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.employee-time-reg-day {
  flex: 1 0 125px;
  min-width: 125px;
}

.employee-time-reg-day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.32rem 0.35rem;
}

.employee-time-reg-day-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #334155;
  text-transform: uppercase;
}

.employee-time-reg-day-date {
  font-size: 0.68rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.employee-time-reg-day-track {
  position: relative;
  height: var(--employee-time-reg-track-height);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(148, 163, 184, 0.22) 0,
      rgba(148, 163, 184, 0.22) 1px,
      transparent 1px,
      transparent var(--employee-time-reg-hour-step)
    ),
    linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
  overflow: hidden;
}

.employee-time-reg-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1px 4px;
  overflow: hidden;
  pointer-events: none;
}

.employee-time-reg-bar-label {
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.employee-time-reg-bar-planned-schedule {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.32);
  color: #1d4ed8;
  z-index: 1;
}

.employee-time-reg-bar-planned-shift {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.32);
  color: #b45309;
  z-index: 1;
}

.employee-time-reg-bar-off {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(225, 29, 72, 0.2) 0,
      rgba(225, 29, 72, 0.2) 4px,
      rgba(225, 29, 72, 0.12) 4px,
      rgba(225, 29, 72, 0.12) 8px
    );
  border-color: rgba(225, 29, 72, 0.35);
  color: #be123c;
  z-index: 2;
}

.employee-time-reg-bar-clock {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(5, 150, 105, 0.4);
  color: #065f46;
  z-index: 3;
}

.employee-time-reg-bar-clock-invalid {
  background: rgba(100, 116, 139, 0.2);
  border-color: rgba(100, 116, 139, 0.42);
  color: #334155;
  border-style: dashed;
  z-index: 3;
}

.employee-time-reg-day-empty {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: 0.68rem;
  color: #64748b;
  pointer-events: none;
}

.employee-time-reg-empty-state {
  border: 1px dashed #d8e0eb;
  border-radius: 10px;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
}

:root[data-theme="dark"] main.flex-grow-1 {
  --employees-bg: #0f1728;
  --employees-surface: #111b2a;
  --employees-border: #2c3f5c;
  --employees-border-strong: #425c80;
  --employees-text: #e2e8f0;
  --employees-muted: #9fb0c8;
  --employees-accent-soft: rgba(96, 165, 250, 0.16);
  --employees-danger-soft: #3a1f2a;
  --employees-danger-border: #81445a;
  background:
    radial-gradient(760px 300px at 4% -8%, rgba(59, 130, 246, 0.2), transparent 64%),
    radial-gradient(560px 250px at 96% 0%, rgba(15, 23, 42, 0.6), transparent 66%),
    var(--employees-bg);
}

:root[data-theme="dark"] main.flex-grow-1 .h5 {
  color: #f8fafc;
}

:root[data-theme="dark"] main.flex-grow-1 hr {
  border-color: var(--employees-border);
}

:root[data-theme="dark"] main.flex-grow-1 .btn-outline-primary,
:root[data-theme="dark"] .employees-wizard .btn-outline-primary {
  color: #bfdbfe;
  border-color: #3b5d87;
  background: #1b2c43;
}

:root[data-theme="dark"] main.flex-grow-1 .btn-outline-primary:hover,
:root[data-theme="dark"] main.flex-grow-1 .btn-outline-primary:focus-visible,
:root[data-theme="dark"] .employees-wizard .btn-outline-primary:hover,
:root[data-theme="dark"] .employees-wizard .btn-outline-primary:focus-visible {
  color: #08142a;
  border-color: #93c5fd;
  background: #93c5fd;
}

:root[data-theme="dark"] .employees-btn-assign-shifts {
  color: #bfdbfe !important;
  border-color: #3b5d87 !important;
  background: #1b2c43 !important;
}

:root[data-theme="dark"] .employees-btn-assign-shifts:hover,
:root[data-theme="dark"] .employees-btn-assign-shifts:focus-visible {
  color: #08142a !important;
  border-color: #93c5fd !important;
  background: #93c5fd !important;
}

:root[data-theme="dark"] main.flex-grow-1 .btn-outline-secondary,
:root[data-theme="dark"] .employees-wizard .btn-outline-secondary,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .btn-outline-secondary {
  color: #d5dfeb;
  border-color: #3a4d66;
  background: #1a2738;
}

:root[data-theme="dark"] main.flex-grow-1 .btn-outline-secondary:hover,
:root[data-theme="dark"] main.flex-grow-1 .btn-outline-secondary:focus-visible,
:root[data-theme="dark"] .employees-wizard .btn-outline-secondary:hover,
:root[data-theme="dark"] .employees-wizard .btn-outline-secondary:focus-visible,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .btn-outline-secondary:hover,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .btn-outline-secondary:focus-visible {
  color: #f8fafc;
  border-color: #526b8d;
  background: #23354d;
}

:root[data-theme="dark"] main.flex-grow-1 .btn-outline-danger,
:root[data-theme="dark"] .employees-wizard .btn-outline-danger {
  color: #fecdd3;
  border-color: #7c3046;
  background: #3b1d29;
}

:root[data-theme="dark"] main.flex-grow-1 .btn-outline-danger:hover,
:root[data-theme="dark"] main.flex-grow-1 .btn-outline-danger:focus-visible,
:root[data-theme="dark"] .employees-wizard .btn-outline-danger:hover,
:root[data-theme="dark"] .employees-wizard .btn-outline-danger:focus-visible {
  color: #fff1f2;
  border-color: #e11d48;
  background: #be123c;
}

:root[data-theme="dark"] main.flex-grow-1 .form-control,
:root[data-theme="dark"] main.flex-grow-1 .form-select,
:root[data-theme="dark"] .employees-wizard .form-control,
:root[data-theme="dark"] .employees-wizard .form-select,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .form-control,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .form-select {
  border-color: #3a4d66;
  background: #111827;
  color: #e2e8f0;
}

:root[data-theme="dark"] .employees-modal-content {
  background: #111b2a;
  box-shadow: 0 22px 34px -28px rgba(2, 6, 23, 0.95);
}

:root[data-theme="dark"] .employees-modal-content .bg-light {
  background-color: #162436 !important;
}

:root[data-theme="dark"] .employees-modal-content .bg-white {
  background-color: #111b2a !important;
}

:root[data-theme="dark"] .employees-wizard .modal-header,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .modal-header {
  border-bottom-color: var(--employees-border);
  background: #162436;
}

:root[data-theme="dark"] .employees-wizard .modal-footer,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .modal-footer {
  border-top-color: var(--employees-border);
  background: #162436;
}

:root[data-theme="dark"] .employees-wizard .modal-body {
  background: #111b2a;
}

:root[data-theme="dark"] .employees-wizard-step {
  color: #a9c5ef;
}

:root[data-theme="dark"] .employees-wizard .modal-title,
:root[data-theme="dark"] #employeeDetailClockConfirmModal .modal-title,
:root[data-theme="dark"] .employees-section-title {
  color: #dbeafe;
}

:root[data-theme="dark"] .employees-small-muted {
  color: #9fb0c8;
}

:root[data-theme="dark"] .employees-card {
  border-color: var(--employees-border);
  background: #111b2a;
}

:root[data-theme="dark"] #employeesBuilderWarning {
  border-color: #7c6135;
  background: #3a2f1d;
  color: #f8ddb2;
}

:root[data-theme="dark"] #employeesFinalSummary {
  border-color: #3b577a;
  background: #1a2d45;
  color: #dbeafe;
}

:root[data-theme="dark"] #employeesPickedScheduleBadge {
  border-color: #3f5f88;
  background: #1c324d !important;
  color: #bfdbfe !important;
}

:root[data-theme="dark"] .employees-th-filter-btn {
  color: #64748b;
}

:root[data-theme="dark"] .employees-th-filter-btn:hover,
:root[data-theme="dark"] .employees-th-filter-btn:focus-visible {
  color: #cbd5e1;
  background: #1e2d44;
  border-color: #3a4d66;
}

:root[data-theme="dark"] .employees-th-filter-btn.active {
  color: #93c5fd;
  background: #1c324d;
  border-color: #3f5f88;
}

:root[data-theme="dark"] .employees-filter-dropdown {
  background: #111b2a;
  border-color: #2c3f5c;
  box-shadow: 0 10px 24px -10px rgba(2, 6, 23, 0.8);
}

:root[data-theme="dark"] .employees-filter-dropdown .dropdown-item {
  color: #e2e8f0;
}

:root[data-theme="dark"] .employees-filter-dropdown .dropdown-item:hover,
:root[data-theme="dark"] .employees-filter-dropdown .dropdown-item:focus {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

:root[data-theme="dark"] main.flex-grow-1 .table-responsive {
  border-color: var(--employees-border);
  background: #111b2a;
}

:root[data-theme="dark"] main.flex-grow-1 .table > :not(caption) > * > * {
  border-bottom-color: var(--employees-border);
}

:root[data-theme="dark"] main.flex-grow-1 .table thead.table-light th {
  background: #162436;
  color: #a9b7cb;
}

:root[data-theme="dark"] main.flex-grow-1 .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #14233a;
}

:root[data-theme="dark"] main.flex-grow-1 .table > tbody > tr:hover > * {
  background-color: #1b2e49;
}

:root[data-theme="dark"] .employees-day-card {
  border-color: var(--employees-border);
  background: #111b2a;
}

:root[data-theme="dark"] .employees-day-header {
  border-bottom-color: var(--employees-border);
  background: #162436;
}

:root[data-theme="dark"] .employees-slot-row {
  border-color: #3b4f6d;
  background: #152338;
}

:root[data-theme="dark"] .employees-sticky-footer {
  border-color: var(--employees-border);
  background: rgba(15, 23, 42, 0.92);
}

:root[data-theme="dark"] .employee-detail-tabs .nav-link {
  border-color: var(--employees-border);
  background: #111b2a;
  color: #b6c4d8;
}

:root[data-theme="dark"] .employee-detail-tabs .nav-link:hover,
:root[data-theme="dark"] .employee-detail-tabs .nav-link:focus-visible {
  border-color: #3f5f88;
  color: #dbeafe;
  background: #1b2e49;
}

:root[data-theme="dark"] .employee-detail-tabs .nav-link.active {
  border-color: #3f5f88;
  color: #bfdbfe;
  background: #1c324d;
}

:root[data-theme="dark"] .employee-detail-calendar-toolbar,
:root[data-theme="dark"] .employee-time-reg-toolbar {
  border-color: var(--employees-border);
  background: #162436;
}

:root[data-theme="dark"] .employee-detail-calendar-day {
  border-color: var(--employees-border);
  background: #111b2a;
}

:root[data-theme="dark"] .employee-detail-calendar-day-header {
  border-bottom-color: var(--employees-border);
  background: #162436;
}

:root[data-theme="dark"] .employee-detail-calendar-day-label,
:root[data-theme="dark"] .employee-time-reg-day-label {
  color: #c7d2e2;
}

:root[data-theme="dark"] .employee-detail-calendar-day-date,
:root[data-theme="dark"] .employee-detail-calendar-empty,
:root[data-theme="dark"] .employee-time-reg-day-date,
:root[data-theme="dark"] .employee-time-reg-legend-item,
:root[data-theme="dark"] .employee-time-reg-axis-label,
:root[data-theme="dark"] .employee-time-reg-day-empty,
:root[data-theme="dark"] .employee-time-reg-empty-state {
  color: #9fb0c8;
}

:root[data-theme="dark"] .employee-detail-calendar-block-schedule {
  background: #1c324d;
  border-color: #3e5f88;
  color: #bfdbfe;
}

:root[data-theme="dark"] .employee-detail-calendar-block-shift {
  background: #3f321f;
  border-color: #7d6334;
  color: #f8ddb2;
}

:root[data-theme="dark"] .calendar-off-event-company {
  border-color: #92400e;
  background: #431407;
}

:root[data-theme="dark"] .calendar-off-event-company .calendar-off-event-title {
  color: #fed7aa;
}

:root[data-theme="dark"] .calendar-off-event-scope {
  color: #fdba74;
}

:root[data-theme="dark"] .employee-time-reg-axis-tick {
  border-top-color: #2f415d;
}

:root[data-theme="dark"] .employee-time-reg-day-track {
  border-color: #3a4d66;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(71, 85, 105, 0.45) 0,
      rgba(71, 85, 105, 0.45) 1px,
      transparent 1px,
      transparent var(--employee-time-reg-hour-step)
    ),
    linear-gradient(180deg, rgba(17, 27, 42, 0.95) 0%, rgba(10, 18, 32, 1) 100%);
}

:root[data-theme="dark"] .employee-time-reg-empty-state {
  border-color: #3a4d66;
}

@keyframes employees-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes employees-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .employee-detail-calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .employee-time-reg-wrap {
    --employee-time-reg-track-height: 744px;
  }
}

@media (max-width: 992px) {
  main.flex-grow-1 {
    border-radius: 10px;
  }

  .employee-detail-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-time-reg-wrap {
    --employee-time-reg-track-height: 648px;
  }
}

@media (max-width: 768px) {
  main.flex-grow-1 {
    border-radius: 10px;
    padding: 0.85rem !important;
  }

  .employees-day-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .employee-detail-calendar-week-input {
    width: 136px;
  }

  .employee-time-reg-week-input {
    width: 136px;
  }

  .employees-controls-left {
    width: 100%;
  }


  main.flex-grow-1 .table td,
  main.flex-grow-1 .table th {
    padding: 0.56rem 0.48rem;
  }
}

@media (max-width: 576px) {
  .employee-detail-calendar-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* --- Reports tab --- */
.employee-report-iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--employees-border);
  border-radius: 8px;
  background: var(--employees-surface);
}

@media (prefers-reduced-motion: reduce) {
  main.flex-grow-1 .card,
  .employees-modal-content,
  main.flex-grow-1 .btn,
  .employees-wizard .btn,
  #employeeDetailClockConfirmModal .btn {
    animation: none !important;
    transition: none !important;
  }
}
