#app,
:root,
[data-theme="neutral"] {
  --background: #ffffff;
  --card: #ffffff;
  --popover: #ffffff;
  --primary: #e87421;
  --primary-foreground: #ffffff;
  --ring: #e87421;
  --sidebar: #ffffff;
  --sidebar-primary: #e87421;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-ring: #e87421;
}

/* Sticky dashboard footer: viewport bottom when content is short, page bottom when long */
html {
  height: 100%;
}

body {
  min-height: 100%;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

#content > footer.dashboard-footer {
  flex-shrink: 0;
  margin-top: auto;
}

#app,
#app *,
.access-removal-modal,
.access-removal-modal *,
.worker-edit-modal,
.worker-edit-modal *,
.schedule-complete-modal,
.schedule-complete-modal *,
.schedule-publish-modal,
.schedule-publish-modal *,
.schedule-generation-modal,
.schedule-generation-modal * {
  text-transform: none !important;
}

#app button,
#app [role='button'],
#app a[href],
#app input[type='button'],
#app input[type='submit'],
#app input[type='reset'],
#app select,
#app summary,
.access-removal-modal button,
.access-removal-modal [role='button'],
.access-removal-modal a[href],
.access-removal-modal input[type='button'],
.access-removal-modal input[type='submit'],
.access-removal-modal input[type='reset'],
.access-removal-modal select,
.access-removal-modal summary,
.worker-edit-modal button,
.worker-edit-modal [role='button'],
.worker-edit-modal a[href],
.worker-edit-modal input[type='button'],
.worker-edit-modal input[type='submit'],
.worker-edit-modal input[type='reset'],
.worker-edit-modal select,
.worker-edit-modal summary,
.schedule-complete-modal button,
.schedule-complete-modal [role='button'],
.schedule-complete-modal a[href],
.schedule-complete-modal input[type='button'],
.schedule-complete-modal input[type='submit'],
.schedule-complete-modal input[type='reset'],
.schedule-complete-modal select,
.schedule-complete-modal summary,
.schedule-publish-modal button,
.schedule-publish-modal [role='button'],
.schedule-publish-modal a[href],
.schedule-publish-modal input[type='button'],
.schedule-publish-modal input[type='submit'],
.schedule-publish-modal input[type='reset'],
.schedule-publish-modal select,
.schedule-publish-modal summary,
.schedule-generation-modal button,
.schedule-generation-modal [role='button'],
.schedule-generation-modal a[href],
.schedule-generation-modal input[type='button'],
.schedule-generation-modal input[type='submit'],
.schedule-generation-modal input[type='reset'],
.schedule-generation-modal select,
.schedule-generation-modal summary,
.worker-multi-select-option {
  cursor: pointer !important;
}

#app button:disabled,
#app [role='button'][aria-disabled='true'],
#app a[aria-disabled='true'],
#app input:disabled,
#app select:disabled,
.access-removal-modal button:disabled,
.access-removal-modal [role='button'][aria-disabled='true'],
.access-removal-modal input:disabled,
.access-removal-modal select:disabled,
.worker-edit-modal button:disabled,
.worker-edit-modal [role='button'][aria-disabled='true'],
.worker-edit-modal input:disabled,
.worker-edit-modal select:disabled,
.schedule-complete-modal button:disabled,
.schedule-complete-modal [role='button'][aria-disabled='true'],
.schedule-complete-modal input:disabled,
.schedule-complete-modal select:disabled,
.schedule-publish-modal button:disabled,
.schedule-publish-modal [role='button'][aria-disabled='true'],
.schedule-publish-modal input:disabled,
.schedule-publish-modal select:disabled,
.schedule-generation-modal button:disabled,
.schedule-generation-modal [role='button'][aria-disabled='true'],
.schedule-generation-modal input:disabled,
.schedule-generation-modal select:disabled {
  cursor: not-allowed !important;
}

.schedule-disabled-tooltip {
  position: relative;
  display: inline-flex;
  z-index: 30;
}

.schedule-disabled-tooltip.is-disabled {
  cursor: not-allowed !important;
}

.schedule-disabled-tooltip.is-disabled::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 90;
  width: max-content;
  max-width: min(18rem, 80vw);
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  background: #111827;
  color: #ffffff;
  content: attr(data-disabled-message);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 0.25rem);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.schedule-disabled-tooltip.is-disabled:hover::after,
.schedule-disabled-tooltip.is-disabled:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled {
  z-index: 120;
}

.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled::after {
  top: 50%;
  right: calc(100% + 0.65rem);
  bottom: auto;
  left: auto;
  z-index: 120;
  transform: translate(0.25rem, -50%);
}

.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled:hover::after,
.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled:focus-within::after {
  transform: translate(0, -50%);
}

.schedule-generate-action__button:disabled,
.schedule-page-header__settings.is-disabled {
  opacity: 0.52;
  filter: grayscale(0.35);
  pointer-events: none;
}

.dashboard-menu-item--active {
  background: rgba(232, 116, 33, 0.12);
  color: #e87421;
}

.dashboard-menu-item--active i {
  color: #e87421;
}

.work-schedule-status-fill {
  fill: #e87421;
}

.dashboard-brand-text {
  color: #382115;
}

.dashboard-header-active-slot {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  padding-inline: 0.75rem;
}

@media (min-width: 768px) {
  .dashboard-header-active-slot {
    display: flex;
  }
}

.schedule-nested-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.schedule-nested-track {
  display: flex;
  width: 100%;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.schedule-nested-shell.is-settings .schedule-nested-track {
  transform: translateX(-100%);
}

.schedule-nested-shell.is-active-action .schedule-nested-track {
  transform: translateX(-200%);
}

.schedule-nested-panel {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.schedule-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.schedule-page-header__title,
.schedule-page-header__settings {
  justify-self: start;
}

.schedule-active-banner {
  display: inline-flex;
  align-items: center;
  justify-self: stretch;
  gap: 0.65rem;
  border: 1px solid rgba(232, 116, 33, 0.35);
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, rgba(232, 116, 33, 0.14), rgba(232, 116, 33, 0.06)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(232, 116, 33, 0.1);
  color: #7c3b0e;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.72rem 0.8rem;
}

.schedule-active-banner--header {
  max-width: min(36rem, 100%);
  min-height: 2.6rem;
  padding: 0.42rem 0.48rem 0.42rem 0.7rem;
  box-shadow: 0 8px 24px rgba(232, 116, 33, 0.1);
}

.schedule-active-banner.hidden {
  display: none;
}

.schedule-active-banner > i {
  color: #e87421;
  font-size: 1.08rem;
}

.schedule-active-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  white-space: nowrap;
  border-radius: 0.7rem;
  background: #e87421;
  color: #ffffff;
  padding: 0.42rem 0.72rem;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.schedule-active-banner--header a {
  padding: 0.36rem 0.64rem;
}

.schedule-active-banner a:hover {
  background: #cf6518;
  transform: translateX(1px);
}

.schedule-active-banner__dot,
.schedule-active-shortcut__dot {
  flex: 0 0 auto;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #e87421;
  box-shadow: 0 0 0 4px rgba(232, 116, 33, 0.18);
}

.schedule-generate-action {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-end;
}

.schedule-generate-action__button {
  position: relative;
}

.schedule-active-shortcut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  min-height: 2.35rem;
  margin-left: 0.45rem;
  border: 1px solid rgba(232, 116, 33, 0.35);
  border-radius: 999px;
  background: #fff7ed;
  color: #e87421;
  box-shadow: 0 10px 24px rgba(232, 116, 33, 0.12);
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.schedule-active-shortcut.hidden {
  display: none;
}

.schedule-active-shortcut:hover {
  background: #e87421;
  color: #ffffff;
  transform: translateX(1px);
}

.schedule-active-shortcut__dot {
  position: absolute;
  right: -0.08rem;
  top: -0.12rem;
  animation: schedule-active-pulse 1.8s ease-in-out infinite;
}

@keyframes schedule-active-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(232, 116, 33, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(232, 116, 33, 0.08);
  }
}

@media (min-width: 1024px) {
  .schedule-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .schedule-active-banner {
    justify-self: center;
    min-width: min(31rem, 100%);
  }

  .schedule-page-header__settings {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-active-shortcut__dot {
    animation: none;
  }

  .availability-day-card--carousel-enter,
  .availability-day-card--carousel-leave,
  .availability-day-card--carousel-from-left,
  .availability-day-card--carousel-to-right {
    transition: none;
    animation: none;
  }
}

.schedule-active-action-card {
  min-height: 18rem;
}

.schedule-mobile-timeline {
  display: none;
}

.schedule-mobile-timeline__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-mobile-timeline__day {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.65rem;
}

.schedule-mobile-timeline__head {
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
}

.schedule-mobile-timeline__tags {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.schedule-mobile-timeline__empty {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.schedule-active-action-stat {
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: rgba(249, 250, 251, 0.76);
  padding: 0.9rem;
}

.schedule-active-action-stat span {
  display: block;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
}

.schedule-active-action-stat strong {
  display: block;
  margin-top: 0.25rem;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 800;
}

.schedule-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .schedule-settings-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

.schedule-priority-card {
  width: 100%;
  transition:
    border-color 180ms ease,
    opacity 180ms ease;
}

@media (min-width: 1024px) {
  .schedule-priority-card {
    width: 33.333333%;
  }
}

.schedule-priority-card.is-disabled {
  border-color: rgba(239, 68, 68, 0.28);
}

.schedule-priority-card.is-disabled h2,
.schedule-priority-card.is-disabled h2 + p {
  opacity: 0.48;
}

.schedule-priority-card.is-disabled [data-schedule-priority-disable-target] {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.schedule-priority-card.is-disabled [data-schedule-hours-disable-target] {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.schedule-priority-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.65rem;
  background: rgba(243, 244, 246, 0.86);
  padding: 0.2rem;
}

.schedule-priority-toggle__button {
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.schedule-priority-toggle__button.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.schedule-priority-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #15803d;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 160ms ease;
}

.schedule-priority-status:has(.schedule-priority-status__input:not(:checked)) {
  color: #dc2626;
}

.schedule-priority-status__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-priority-status__box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid #22c55e;
  border-radius: 0.38rem;
  background: #22c55e;
  color: #ffffff;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-priority-status__box i {
  font-size: 0.85rem;
  font-weight: 800;
}

.schedule-priority-status__input:checked + .schedule-priority-status__box {
  animation: schedule-priority-status-pulse 1.65s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3);
}

.schedule-priority-status__input:not(:checked) + .schedule-priority-status__box {
  animation: none;
  border-color: #dc2626;
  background: #dc2626;
  box-shadow: none;
}

.schedule-priority-status__input:focus-visible + .schedule-priority-status__box {
  outline: 2px solid rgba(34, 197, 94, 0.2);
  outline-offset: 2px;
}

.schedule-priority-status__input:not(:checked):focus-visible + .schedule-priority-status__box {
  outline-color: rgba(220, 38, 38, 0.2);
}

@keyframes schedule-priority-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.32);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.schedule-priority-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.65rem;
  padding: 0.45rem 0.5rem;
  cursor: grab;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.schedule-priority-item:hover {
  background: rgba(249, 250, 251, 0.95);
}

.schedule-priority-item:active {
  cursor: grabbing;
}

.schedule-priority-item.is-dragging {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  opacity: 0.72;
  transform: scale(0.99);
}

.schedule-priority-item__rank {
  width: 2rem;
  flex: 0 0 auto;
  color: #e87421;
  font-size: 0.75rem;
  font-weight: 800;
  transition: opacity 120ms ease;
}

.schedule-priority-list.is-reordering .schedule-priority-item__rank {
  opacity: 0;
}

.schedule-priority-item__handle {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.72;
  transition:
    color 150ms ease,
    opacity 150ms ease;
}

.schedule-priority-item:hover .schedule-priority-item__handle,
.schedule-priority-item.is-dragging .schedule-priority-item__handle {
  color: #6b7280;
  opacity: 1;
}

.schedule-hours-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.65rem;
  padding: 0.45rem 0.5rem;
  transition:
    background 150ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.schedule-hours-item:hover {
  background: rgba(249, 250, 251, 0.95);
}

.schedule-hours-item--statutory-locked {
  opacity: 0.92;
}

.schedule-hours-item--statutory-locked:hover {
  background: transparent;
}

.schedule-hours-item--statutory-locked .schedule-hours-input input {
  cursor: not-allowed;
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.schedule-hours-item--statutory-locked .schedule-hours-input input:focus {
  box-shadow: none;
  border-color: #e5e7eb;
}

.schedule-hours-input {
  position: relative;
  flex: 0 0 auto;
  width: 5.85rem;
}

.schedule-hours-input input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 1.8rem 0.42rem 0.55rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.schedule-hours-input input:focus {
  border-color: rgba(232, 116, 33, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.1);
  outline: none;
}

.schedule-hours-input button {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  transform: translateY(-50%);
  border-radius: 0.4rem;
  color: #16a34a;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.schedule-hours-input button:hover {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-nested-track {
    transition: none;
  }
}

.schedule-worker-tag {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: calc(100% - 8px);
  margin-inline: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase !important;
}

button.schedule-worker-tag,
div.schedule-worker-tag.schedule-worker-tag--assignment-editable {
  appearance: none;
  font: inherit;
  text-align: left;
}

div.schedule-worker-tag.schedule-worker-tag--assignment-editable {
  cursor: pointer;
}

button.schedule-worker-tag.schedule-worker-tag--morning,
.schedule-worker-tag--morning {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

button.schedule-worker-tag.schedule-worker-tag--afternoon,
.schedule-worker-tag--afternoon {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.schedule-worker-tag--recommended {
  opacity: 0.62;
  filter: grayscale(0.45);
  border-style: dashed !important;
}

.schedule-worker-tag--recommended.schedule-worker-tag--morning {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.schedule-worker-tag--recommended.schedule-worker-tag--afternoon {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.schedule-preview-table-shell {
  overflow: visible;
}

.schedule-preview-day-column {
  vertical-align: top;
  position: relative;
}

.schedule-preview-day-column:has(
    .schedule-worker-tag--has-tooltip:hover,
    .schedule-worker-tag--has-tooltip:focus-within,
    .schedule-field-tooltip:hover,
    .schedule-field-tooltip:focus-within
  ) {
  z-index: 60;
  overflow: visible;
}

.schedule-preview-day-slot,
.schedule-preview-day-pool,
.schedule-preview-shift-block,
.schedule-preview-shift-block__tags,
.schedule-preview-day-recommended {
  overflow: visible;
}

.schedule-preview-day-dock {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.75rem;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  visibility: hidden;
}

.schedule-preview-day-dock.is-active {
  visibility: visible;
}

.schedule-preview-day-dock__anchor {
  position: absolute;
  left: 50%;
  width: calc(100% - 0.4rem);
  transform: translate(-50%, -50%);
  transition:
    top 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  z-index: 4;
}

.schedule-preview-day-dock__anchor--all-day {
  top: 50%;
}

.schedule-preview-day-dock__anchor--morning {
  top: 28%;
}

.schedule-preview-day-dock__anchor--afternoon {
  top: 72%;
}

.schedule-preview-day-slot {
  position: relative;
}

.schedule-preview-day-pool {
  padding: 0.4rem 0.35rem 0.45rem;
  border-top: 1px dashed color-mix(in srgb, var(--border, #e5e7eb) 70%, transparent);
  background: var(--card, #fff);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-preview-day-pool.is-drop-target {
  background: color-mix(in srgb, var(--primary, #2563eb) 8%, var(--card, #fff));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary, #2563eb) 35%, transparent);
}

.schedule-preview-shift-block {
  border-radius: 6px;
  padding: 0.15rem;
  min-height: 1.75rem;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-preview-shift-block--morning {
  background: color-mix(in srgb, #dbeafe 35%, transparent);
}

.schedule-preview-shift-block--afternoon {
  background: color-mix(in srgb, #ede9fe 35%, transparent);
}

.schedule-preview-shift-block.is-drop-target {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary, #2563eb) 45%, transparent);
  background: color-mix(in srgb, var(--primary, #2563eb) 10%, transparent);
}

.schedule-worker-tag--pool-available[draggable='true'] {
  cursor: grab;
}

.schedule-worker-tag--pool-available.is-dragging,
.schedule-worker-tag--shift-removable.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.schedule-worker-tag--shift-removable {
  cursor: grab;
}

.schedule-worker-tag__shift-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  color: inherit;
  opacity: 0.55;
  font-size: 0.85rem;
  line-height: 1;
  pointer-events: none;
}

.schedule-worker-tag--shift-removable:hover .schedule-worker-tag__shift-remove {
  opacity: 0.9;
}

.schedule-preview-day-available {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0 0.35rem;
  min-height: 0;
}

.schedule-preview-day-unavailable-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  margin: 0;
  padding: 0.3rem 0.35rem;
  border: none;
  border-top: 1px dashed color-mix(in srgb, var(--border, #e5e7eb) 65%, transparent);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted-foreground, #6b7280);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.schedule-preview-day-unavailable-toggle:hover {
  color: var(--foreground, #111827);
  background: color-mix(in srgb, var(--muted, #f3f4f6) 55%, transparent);
}

.schedule-preview-day-unavailable-toggle__icon {
  flex: 0 0 auto;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.schedule-preview-day-unavailable-toggle.is-expanded .schedule-preview-day-unavailable-toggle__icon {
  transform: rotate(180deg);
}

.schedule-preview-day-unavailable {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
}

.schedule-preview-day-unavailable[hidden] {
  display: none !important;
}

.schedule-worker-tag--pool-available {
  background: color-mix(in srgb, var(--primary) 14%, white);
  border: 1px dashed color-mix(in srgb, var(--primary) 38%, white);
  color: color-mix(in srgb, var(--primary) 72%, #64748b);
  text-transform: none;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
  box-shadow: none;
  flex-wrap: wrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-morning {
  background: #dbeafe;
  border-color: #bfdbfe;
  border-style: solid;
  color: #1d4ed8;
}

.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-afternoon {
  background: #ede9fe;
  border-color: #ddd6fe;
  border-style: solid;
  color: #6d28d9;
}

button.schedule-worker-tag.schedule-worker-tag--pool-available {
  background: color-mix(in srgb, var(--primary) 14%, white);
  border: 1px dashed color-mix(in srgb, var(--primary) 38%, white);
  color: color-mix(in srgb, var(--primary) 72%, #64748b);
}

button.schedule-worker-tag.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-morning {
  background: #dbeafe;
  border-color: #bfdbfe;
  border-style: solid;
  color: #1d4ed8;
}

button.schedule-worker-tag.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-afternoon {
  background: #ede9fe;
  border-color: #ddd6fe;
  border-style: solid;
  color: #6d28d9;
}

.schedule-worker-tag--pool-available:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.schedule-worker-tag--pool-available.schedule-worker-tag--dock-source {
  opacity: 0.35;
  transform: scale(0.96);
  pointer-events: none;
}

.schedule-worker-tag--swap-candidate {
  animation: schedule-swap-flicker 1.1s ease-in-out infinite;
  cursor: pointer;
}

.schedule-worker-tag--assignment-pick {
  animation: schedule-swap-flicker 1.1s ease-in-out infinite;
  cursor: pointer;
  outline: 2px solid color-mix(in srgb, var(--primary, #2563eb) 45%, transparent);
  outline-offset: 1px;
}

.schedule-worker-tag--assignment-pick-override {
  animation: schedule-override-flicker 1.1s ease-in-out infinite;
  cursor: pointer;
  outline: 2px solid color-mix(in srgb, #ea580c 65%, transparent);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px color-mix(in srgb, #ea580c 20%, transparent);
}

.schedule-preview-shift-block--swap-override-hint {
  outline: 2px dashed color-mix(in srgb, #ea580c 55%, transparent);
  outline-offset: 2px;
  background: color-mix(in srgb, #ea580c 6%, transparent);
}

@keyframes schedule-override-flicker {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  }
  50% {
    opacity: 0.92;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
  }
}

.schedule-preview-shift-block.is-drop-target.schedule-preview-shift-block--swap-override-hint {
  outline-color: color-mix(in srgb, #d97706 70%, transparent);
}

.schedule-availability-override-modal,
.schedule-availability-override-modal * {
  text-transform: none !important;
}

.schedule-availability-override-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 200 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.schedule-availability-override-modal.is-visible {
  display: flex !important;
}

.schedule-availability-override-modal.is-open {
  opacity: 1;
}

.schedule-availability-override-dialog {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.schedule-availability-override-modal.is-open .schedule-availability-override-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-availability-override-icon {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.schedule-availability-override-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  cursor: pointer !important;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.schedule-availability-override-btn--cancel {
  border: 1px solid var(--border, #e5e7eb);
  background: transparent;
  color: var(--muted-foreground, #6b7280);
}

.schedule-availability-override-btn--cancel:hover {
  background: var(--muted, #f3f4f6);
  color: var(--foreground, #111827);
}

.schedule-availability-override-btn--confirm {
  border: 1px solid #c2410c;
  background: #ea580c;
  color: #ffffff;
}

.schedule-availability-override-btn--confirm:hover {
  background: #c2410c;
  color: #ffffff;
}

.login-alert__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  font-size: 1.125rem;
  line-height: 1;
}

.login-alert__text {
  flex: 1;
  padding-top: 0.05rem;
}

[data-login-message]:empty {
  display: none;
  margin-bottom: 0 !important;
}

.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.login-submit-btn__spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

.login-submit-btn.is-loading {
  pointer-events: none;
}

.login-submit-btn.is-loading .login-submit-btn__spinner {
  display: inline-block;
  animation: sank-roster-spin 750ms linear infinite;
}

.login-verification-panel__section--bordered {
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}

.login-form.is-submitting input:disabled,
.login-form.is-submitting [data-password-toggle]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.schedule-worker-tag--assignment-blocked {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.4);
  pointer-events: none;
}

.schedule-preview-shift-block--swap-blocked {
  opacity: 0.55;
}

.schedule-preview-shift-block--swap-blocked .schedule-worker-tag--assignment-blocked {
  opacity: 0.65;
}

.schedule-worker-tag--dock {
  width: 100%;
  margin: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
  z-index: 5;
}

@keyframes schedule-swap-flicker {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }

  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  }
}

.schedule-worker-tag__avail-note {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.schedule-worker-tag--pool-unavailable {
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  color: #6b7280;
  text-transform: none;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.01em;
  cursor: default;
  position: relative;
  opacity: 0.88;
  filter: grayscale(0.35);
}

.schedule-worker-tag--pool-unavailable.schedule-worker-tag--has-tooltip {
  cursor: help;
}

.schedule-worker-tag--pool-unavailable[data-schedule-pool-drag] {
  cursor: grab;
}

.schedule-worker-tag--pool-unavailable[data-schedule-pool-drag].is-dragging {
  cursor: grabbing;
}

.schedule-worker-tag--morning-shift-extended {
  border: 1px solid rgba(217, 119, 6, 0.42) !important;
  background: rgba(254, 243, 199, 0.72) !important;
  color: #92400e !important;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.28);
  animation: schedule-tag-soft-warning-pulse 2.4s ease-in-out infinite;
}

.schedule-worker-tag--morning-shift-extended .schedule-worker-tag__warn {
  color: #d97706;
}

.schedule-worker-tag--aft-morn-danger {
  border: 1px solid rgba(220, 38, 38, 0.4) !important;
  background: rgba(254, 226, 226, 0.65) !important;
  color: #991b1b !important;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.22);
  animation: schedule-tag-soft-danger-pulse 2.4s ease-in-out infinite;
}

.schedule-worker-tag--aft-morn-danger .schedule-worker-tag__warn {
  color: #dc2626;
}

@keyframes schedule-tag-soft-warning-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.22);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0);
  }
}

@keyframes schedule-tag-soft-danger-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

.schedule-worker-tag--obligation-warning {
  border: 1px dashed rgba(202, 138, 4, 0.45) !important;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.schedule-worker-tag--obligation-warning.schedule-worker-tag--morning {
  background: #fef9c3;
  border-color: #facc15;
  color: #a16207;
}

.schedule-worker-tag--obligation-warning.schedule-worker-tag--afternoon {
  background: #fef3c7;
  border-color: #eab308;
  color: #92400e;
}

.schedule-worker-tag__warn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: #ca8a04;
  font-size: 0.72rem;
  line-height: 1;
}

.schedule-worker-tag--has-tooltip {
  position: relative;
}

/* In schedule preview, inline tooltips are replaced by a fixed portal (see JS). */
.schedule-view .schedule-worker-tag--has-tooltip > .schedule-worker-tag__tooltip,
.schedule-view .schedule-field-tooltip__content {
  display: none !important;
}

.schedule-worker-tag-tooltip-portal {
  position: fixed;
  z-index: 10050;
  width: max-content;
  max-width: min(16rem, calc(100vw - 1.5rem));
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 0.6rem;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.45rem 0.6rem;
  pointer-events: none;
  text-align: left;
  white-space: pre-line;
  letter-spacing: normal;
  text-transform: none !important;
}

.schedule-worker-tag--has-tooltip > .schedule-worker-tag__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 120;
  width: max-content;
  max-width: 14rem;
  transform: translate(-50%, 0.25rem);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 0.6rem;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  padding: 0.45rem 0.6rem;
  pointer-events: none;
  text-align: left;
  white-space: pre-line;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.schedule-worker-tag--has-tooltip:hover > .schedule-worker-tag__tooltip,
.schedule-worker-tag--has-tooltip:focus > .schedule-worker-tag__tooltip,
.schedule-worker-tag--has-tooltip:focus-within > .schedule-worker-tag__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.schedule-worker-tag__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.schedule-worker-tag__info {
  flex: 0 0 auto;
  margin-left: 0.1rem;
  color: #6b7280 !important;
}

.schedule-worker-tag__info i {
  font-size: 0.72rem;
  line-height: 1;
}

.schedule-worker-tag__tooltip,
.schedule-field-tooltip__content {
  white-space: pre-line;
  max-width: 14rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none !important;
}

.schedule-worker-tag--assignment-editable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.schedule-worker-tag--assignment-editable:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.schedule-worker-tag__time {
  flex: 0 0 auto;
}

.schedule-worker-tag__time-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  opacity: 0;
  cursor: pointer;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.schedule-worker-tag__time-edit i {
  font-size: 0.95rem;
  line-height: 1;
}

.schedule-worker-tag--assignment-editable:hover .schedule-worker-tag__time-edit,
.schedule-worker-tag--assignment-editable:focus-within .schedule-worker-tag__time-edit {
  opacity: 0.85;
}

.schedule-worker-tag__time-edit:hover,
.schedule-worker-tag__time-edit:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, currentColor 12%, transparent);
  outline: none;
}

.schedule-worker-tag.is-editing-display-time .schedule-worker-tag__time-edit {
  display: none;
}

.schedule-worker-tag__time-input {
  box-sizing: border-box;
  width: 3.35rem;
  margin: 0;
  padding: 0 0.15rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: #ffffff;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
  text-transform: inherit;
  color: inherit;
  text-align: center;
}

.schedule-worker-tag__time-input:focus {
  outline: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  outline-offset: 1px;
}

.schedule-worker-tag__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 6px 2px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.8;
}

.schedule-shift-legend__swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.schedule-shift-legend__swatch--morning {
  background: #1d4ed8;
  color: #1d4ed8;
}

.schedule-shift-legend__swatch--afternoon {
  background: #6d28d9;
  color: #6d28d9;
}

.schedule-shift-legend__label--morning {
  color: #1d4ed8;
}

.schedule-shift-legend__label--afternoon {
  color: #6d28d9;
}

.schedule-date-cell--today {
  outline: 2px solid #a9a9a9;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.12);
  border-radius: 0.5rem;
}

.schedule-date-cell--afternoon-shortage,
.schedule-date-heading--afternoon-shortage {
  background: linear-gradient(
    165deg,
    rgba(254, 243, 199, 0.55) 0%,
    rgba(255, 251, 235, 0.35) 55%,
    rgba(255, 255, 255, 0.15) 100%
  ) !important;
  border: 1px solid rgba(217, 119, 6, 0.28) !important;
  border-radius: 0.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.schedule-date-heading--afternoon-shortage {
  color: #b45309 !important;
}

.schedule-date-cell--incomplete,
.schedule-date-heading--incomplete {
  background: linear-gradient(
    165deg,
    rgba(254, 226, 226, 0.55) 0%,
    rgba(254, 242, 242, 0.32) 55%,
    rgba(255, 255, 255, 0.12) 100%
  ) !important;
  border: 1px solid rgba(239, 68, 68, 0.26) !important;
  border-radius: 0.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.schedule-date-heading--incomplete {
  color: #b91c1c !important;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-worker-tag--morning-shift-extended,
  .schedule-worker-tag--aft-morn-danger,
  .schedule-worker-tag--swap-candidate,
  .schedule-worker-tag--assignment-pick {
    animation: none;
  }
}

.schedule-date-heading--today {
  color: #111827 !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

body.schedule-generation-modal-open {
  overflow: hidden;
}

html.schedule-generation-modal-open {
  overflow: hidden;
}

.access-removal-modal,
.worker-edit-modal,
.schedule-complete-modal,
.schedule-publish-modal,
.schedule-generation-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 200 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.access-removal-dialog,
.worker-edit-dialog,
.schedule-complete-dialog,
.schedule-publish-dialog,
.register-policies-modal .register-policies-dialog {
  max-width: 42rem;
  width: calc(100% - 2rem);
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.28),
    0 12px 24px -16px rgba(15, 23, 42, 0.2);
}

.register-policies-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.9), #ffffff);
}

.register-policies-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.register-policies-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6b7280;
}

.register-policies-tabs {
  margin-top: 0.85rem;
}

.register-policies-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #6b7280;
  flex-shrink: 0;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.register-policies-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.register-policies-close i {
  font-size: 1.25rem;
  line-height: 1;
}

.register-policies-body {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.register-policies-body h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.register-policies-body h3:first-child {
  margin-top: 0;
}

.register-policies-body p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: #4b5563;
}

.register-policies-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.register-policies-footer__button {
  border-radius: 0.65rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.register-policies-footer__button--secondary {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
}

.register-policies-footer__button--secondary:hover {
  background: #f9fafb;
  color: #111827;
}

.register-policies-footer__button--primary {
  border: 1px solid #e87421;
  background: #e87421;
  color: #ffffff;
}

.register-policies-footer__button--primary:hover {
  background: #cf6518;
  border-color: #cf6518;
}

.schedule-generation-modal.is-visible {
  overscroll-behavior: contain;
}

.access-removal-modal.is-visible,
.worker-edit-modal.is-visible,
.schedule-complete-modal.is-visible,
.schedule-publish-modal.is-visible,
.schedule-generation-modal.is-visible {
  display: flex !important;
}

.access-removal-modal.is-open,
.worker-edit-modal.is-open,
.schedule-complete-modal.is-open,
.schedule-publish-modal.is-open,
.schedule-generation-modal.is-open {
  opacity: 1;
}

.access-removal-dialog,
.worker-edit-dialog,
.schedule-complete-dialog,
.schedule-publish-dialog,
.schedule-generation-dialog {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.access-removal-modal.is-open .access-removal-dialog,
.worker-edit-modal.is-open .worker-edit-dialog,
.schedule-complete-modal.is-open .schedule-complete-dialog,
.schedule-publish-modal.is-open .schedule-publish-dialog,
.schedule-generation-modal.is-open .schedule-generation-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-generation-dialog {
  max-height: min(52rem, calc(100vh - 2rem));
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#schedule-add-participants-modal .schedule-generation-dialog--add-participants {
  max-width: min(56rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100vh - 2rem));
  min-height: min(22rem, calc(100vh - 4rem));
  overflow: visible;
}

#schedule-add-participants-modal .schedule-generation-form,
#schedule-add-participants-modal .schedule-generation-form-body {
  overflow: visible;
}

#schedule-add-participants-modal [data-worker-multi-select-anchor] {
  position: relative;
  z-index: 2;
}

#schedule-add-participants-modal .worker-multi-select-panel {
  z-index: 280;
}

#schedule-add-participants-modal .worker-multi-select-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
  max-height: min(22rem, calc(100vh - 12rem));
}

#schedule-add-participants-modal .worker-multi-select-panel__options {
  flex: 1;
  min-height: 0;
  max-height: min(16rem, calc(100vh - 16rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-generation-dialog > .border-b {
  flex-shrink: 0;
}

.schedule-generation-form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.schedule-generation-form-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-generation-form > [data-schedule-generation-message] {
  flex-shrink: 0;
}

.schedule-generation-form-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.82), #ffffff);
}

@media (max-width: 767px) {
  #content,
  #content > .flex-1,
  #content .mx-auto {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .schedule-nested-track {
    display: block;
    transform: none !important;
    transition: none;
  }

  .schedule-nested-panel[aria-hidden='true'] {
    display: none !important;
  }

  .schedule-nested-panel[aria-hidden='false'] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .schedule-view-btn[data-schedule-target='week'],
  .schedule-view-btn[data-schedule-target='month'] {
    display: none !important;
  }

  .schedule-view-btn[data-schedule-target='day'] {
    pointer-events: none;
    opacity: 0.9;
  }

  .schedule-view[data-schedule-view],
  [data-published-schedule-calendar] .schedule-view,
  [data-published-schedule-calendar] [data-schedule-preview-view],
  [data-dashboard-schedule-calendar] .schedule-view,
  [data-dashboard-schedule-calendar] [data-schedule-preview-view] {
    display: none !important;
  }

  .schedule-mobile-timeline {
    display: block !important;
  }

  .schedule-mobile-timeline .schedule-worker-tag {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .schedule-mobile-timeline__list {
    max-height: min(62vh, 34rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.15rem;
  }

  .schedule-generation-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .schedule-generation-dialog {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 0.9rem;
  }

  .register-policies-modal .register-policies-dialog {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 0.9rem 0.9rem 0 0;
  }

  .register-policies-header,
  .register-policies-body,
  .register-policies-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .register-policies-footer {
    flex-direction: column-reverse;
  }

  .register-policies-footer__button {
    width: 100%;
    justify-content: center;
  }

  .schedule-generation-dialog > .border-b,
  .schedule-generation-form-body,
  .schedule-generation-form-footer {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .schedule-generation-form-body {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .schedule-generation-form-footer {
    padding-top: 0.75rem !important;
    padding-bottom: 0.85rem !important;
  }
}

.schedule-late-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  background: #ffffff;
  padding: 0.75rem;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.schedule-late-checkbox:hover {
  border-color: rgba(232, 116, 33, 0.35);
}

.schedule-late-checkbox:has(.schedule-late-checkbox__input:checked) {
  border-color: rgba(232, 116, 33, 0.45);
  background: rgba(232, 116, 33, 0.04);
  box-shadow: none;
}

.schedule-late-checkbox:focus-within {
  outline: none;
  box-shadow: none;
}

.schedule-late-checkbox__input,
.schedule-worker-checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-late-checkbox__box,
.schedule-worker-checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 0.3rem;
  background: #ffffff;
  color: #ffffff;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.schedule-worker-checkbox__box {
  margin-top: 0;
}

.schedule-late-checkbox__box i,
.schedule-worker-checkbox__box i {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 140ms ease;
}

.schedule-late-checkbox__input:checked + .schedule-late-checkbox__box,
.schedule-worker-checkbox__input:checked + .schedule-worker-checkbox__box {
  border-color: #e87421;
  background: #e87421;
  color: #ffffff;
}

.schedule-late-checkbox__input:checked + .schedule-late-checkbox__box i,
.schedule-worker-checkbox__input:checked + .schedule-worker-checkbox__box i {
  opacity: 1;
}

.schedule-late-checkbox__input:focus-visible + .schedule-late-checkbox__box,
.schedule-worker-checkbox__input:focus-visible + .schedule-worker-checkbox__box {
  outline: 2px solid rgba(232, 116, 33, 0.18);
  outline-offset: 2px;
}

.schedule-late-checkbox__content {
  min-width: 0;
}

.schedule-late-checkbox--compact {
  padding: 0.62rem 0.75rem;
}

/* Compact weekday toggles (worker recurring obligations) — matches schedule accent */
.schedule-day-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.schedule-day-chip__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-day-chip__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #374151;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-day-chip:hover .schedule-day-chip__box {
  border-color: rgba(232, 116, 33, 0.35);
}

.schedule-day-chip:has(.schedule-day-chip__input:checked) .schedule-day-chip__box {
  border-color: rgba(232, 116, 33, 0.45);
  background: rgba(232, 116, 33, 0.08);
  color: #c2410c;
  box-shadow: 0 0 0 1px rgba(232, 116, 33, 0.12);
}

.schedule-day-chip__input:focus-visible + .schedule-day-chip__box {
  outline: 2px solid rgba(232, 116, 33, 0.22);
  outline-offset: 2px;
}

.schedule-completion-option {
  position: relative;
  display: flex;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.9rem;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-completion-option:hover,
.schedule-completion-option.is-active {
  border-color: rgba(232, 116, 33, 0.45);
  background: rgba(232, 116, 33, 0.04);
}

.schedule-completion-option.is-active {
  box-shadow: none;
}

.schedule-completion-option input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.schedule-completion-option input:checked {
  border-color: #e87421;
  background: radial-gradient(circle at center, #e87421 0 42%, #ffffff 44%);
}

.schedule-completion-option input:focus,
.schedule-completion-option input:focus-visible,
.schedule-completion-option input:active {
  outline: none;
  box-shadow: none;
}

.schedule-completion-option strong,
.schedule-completion-option small {
  display: block;
}

.schedule-completion-option strong {
  color: #111827;
  font-size: 0.88rem;
}

.schedule-completion-option small {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.35;
}

.schedule-field-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  color: #e87421;
  cursor: help;
  outline: none;
}

.schedule-field-tooltip i {
  font-size: 1rem;
  line-height: 1;
}

.schedule-field-tooltip__content {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 120;
  width: max-content;
  max-width: 16rem;
  transform: translate(-50%, 0.35rem) scale(0.96);
  border: 1px solid rgba(232, 116, 33, 0.22);
  border-radius: 0.75rem;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  padding: 0.55rem 0.7rem;
  pointer-events: none;
  text-align: left;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.schedule-field-tooltip__content::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0.55rem;
  height: 0.55rem;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #111827;
}

.schedule-field-tooltip:hover .schedule-field-tooltip__content,
.schedule-field-tooltip:focus .schedule-field-tooltip__content,
.schedule-field-tooltip:focus-within .schedule-field-tooltip__content {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.worker-multi-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 90;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.worker-multi-select-panel--floating {
  position: fixed !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: 270 !important;
  display: flex;
  flex-direction: column;
  max-height: min(22rem, calc(100vh - 2rem));
}

.worker-multi-select-panel--floating .worker-multi-select-panel__options {
  flex: 1;
  min-height: 0;
  max-height: min(16rem, calc(100vh - 10rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.worker-multi-select-panel--floating .worker-multi-select-footer {
  flex-shrink: 0;
}

.worker-multi-select-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.72), #ffffff);
}

.worker-multi-select-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.65rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.worker-multi-select-footer__button:hover {
  transform: translateY(-1px);
}

.worker-multi-select-footer__button--secondary {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}

.worker-multi-select-footer__button--secondary:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

.worker-multi-select-footer__button--primary {
  border: 1px solid #e87421;
  background: #e87421;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(232, 116, 33, 0.2);
}

.worker-multi-select-footer__button--primary:hover {
  background: #d9691d;
  border-color: #d9691d;
}

.custom-date-picker-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  z-index: 80;
  width: min(21rem, calc(100vw - 2rem));
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top left, rgba(232, 116, 33, 0.12), transparent 34%),
    #ffffff;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 0.875rem;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.custom-date-picker-dropdown.custom-date-picker-dropdown--floating {
  position: fixed;
  z-index: 260;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  width: min(21rem, calc(100vw - 2rem));
}

.custom-date-picker-dropdown.custom-date-picker-dropdown--floating.custom-date-picker-dropdown--open-up:not(.is-open) {
  transform: translateY(-8px) scale(0.98);
  transform-origin: bottom left;
}

.custom-date-picker-dropdown.custom-date-picker-dropdown--floating:not(.custom-date-picker-dropdown--open-up):not(.is-open) {
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
}

.custom-date-picker[data-date-picker-mode="datetime"] .custom-date-picker-dropdown {
  top: auto;
  bottom: calc(100% + 0.5rem);
  transform: translateY(-8px) scale(0.98);
  transform-origin: bottom left;
}

.custom-date-picker[data-date-picker-mode="datetime"] .custom-date-picker-dropdown.is-open {
  transform: translateY(0) scale(1);
}

.custom-date-picker,
.custom-date-picker * {
  -webkit-user-select: none;
  user-select: none;
}

.custom-date-picker-dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.custom-date-picker-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.custom-date-picker-dropdown__month {
  min-width: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 800;
}

.custom-date-picker-dropdown__nav {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  color: #6b7280;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.custom-date-picker-dropdown__nav:hover {
  border-color: rgba(232, 116, 33, 0.42);
  background: rgba(232, 116, 33, 0.1);
  color: #e87421;
  transform: translateY(-1px);
}

.custom-date-picker-dropdown__weekdays,
.custom-date-picker-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.custom-date-picker-dropdown__weekdays {
  margin-bottom: 0.35rem;
}

.custom-date-picker-dropdown__weekday {
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.custom-date-picker-dropdown__day {
  position: relative;
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.custom-date-picker-dropdown__day:hover {
  border-color: rgba(232, 116, 33, 0.24);
  background: rgba(232, 116, 33, 0.1);
  color: #9a4d16;
  transform: translateY(-1px);
}

.custom-date-picker-dropdown__day.is-today {
  border-color: rgba(17, 24, 39, 0.18);
  color: #111827;
}

.custom-date-picker-dropdown__day.is-selected {
  border-color: #e87421;
  background: #e87421;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(232, 116, 33, 0.26);
}

.custom-date-picker-dropdown__day.is-muted {
  color: #d1d5db;
  pointer-events: none;
}

.custom-date-picker-dropdown__day.is-disabled {
  border-color: transparent;
  background: repeating-linear-gradient(
    -45deg,
    rgba(229, 231, 235, 0.56),
    rgba(229, 231, 235, 0.56) 4px,
    rgba(249, 250, 251, 0.85) 4px,
    rgba(249, 250, 251, 0.85) 8px
  );
  color: #c7cbd1;
  cursor: not-allowed !important;
  opacity: 0.78;
  pointer-events: none;
}

.custom-date-picker-dropdown__day.is-disabled:hover {
  transform: none;
}

.custom-date-picker-dropdown__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.custom-date-picker-dropdown__today {
  border-radius: 0.6rem;
  color: #e87421;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.custom-date-picker-dropdown__today:hover {
  background: rgba(232, 116, 33, 0.1);
  color: #9a4d16;
}

.custom-date-picker-dropdown__today:disabled {
  color: #c7cbd1;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.custom-date-picker-dropdown__today:disabled:hover {
  background: transparent;
  color: #c7cbd1;
}

.custom-date-picker-dropdown__time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.custom-date-picker-dropdown__time-label,
.custom-date-picker-dropdown__time-separator {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 800;
}

.custom-date-picker-dropdown__time-select {
  min-width: 3.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.45rem;
  outline: none;
}

.custom-date-picker-dropdown__time-select:focus {
  border-color: rgba(232, 116, 33, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.12);
}

.custom-date-picker-dropdown__done {
  border-radius: 0.6rem;
  background: #e87421;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.38rem 0.72rem;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.custom-date-picker-dropdown__done:hover {
  background: #d9691d;
  transform: translateY(-1px);
}

.recurring-section {
  min-height: 21rem;
}

.recurring-section__list {
  min-height: 14rem;
}

.recurring-item-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.recurring-item-card:hover {
  border-color: rgba(232, 116, 33, 0.35);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}

.recurring-item-enter {
  opacity: 0.15;
  transform: scale(0.985);
}

.recurring-item-enter.is-visible {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 230ms ease,
    transform 230ms ease;
}

.recurring-item-ghost {
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
  border-color: rgba(232, 116, 33, 0.35);
}

.worker-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
  margin-top: 0.5rem;
}

.worker-selected-tags__empty {
  display: inline-flex;
  align-items: center;
  border: 1px dashed #e5e7eb;
  border-radius: 9999px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
}

.worker-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(232, 116, 33, 0.22);
  border-radius: 9999px;
  background: rgba(232, 116, 33, 0.1);
  color: #9a4d16;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  animation: worker-selected-tag-in 150ms ease-out;
}

.worker-selected-tag__remove {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(232, 116, 33, 0.14);
  color: #9a4d16;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.worker-selected-tag__remove:hover {
  background: #e87421;
  color: #ffffff;
  transform: scale(1.06);
}

.worker-edit-readonly .worker-edit-field,
.worker-edit-readonly .worker-edit-field:disabled {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e5e7eb);
  background: color-mix(in srgb, var(--muted, #f4f4f5) 70%, transparent);
  color: var(--muted-foreground, #6b7280);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: not-allowed;
  opacity: 1;
}

.worker-edit-readonly .worker-edit-field:focus {
  outline: none;
  box-shadow: none;
}

.access-removal-icon,
.schedule-complete-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.schedule-publish-icon {
  background: color-mix(in srgb, var(--primary, #e87421) 14%, white);
  color: var(--primary, #e87421);
}

.access-removal-modal[data-state='success'] .access-removal-icon {
  background: #dcfce7;
  color: #16a34a;
}

.access-removal-modal[data-state='loading'] .access-removal-actions,
.access-removal-modal[data-state='success'] .access-removal-actions {
  pointer-events: none;
  opacity: 0.75;
}

.async-button-spinner {
  display: none;
}

.async-action-button.is-loading .async-button-spinner {
  display: inline-block;
  animation: sank-roster-spin 750ms linear infinite;
}

.async-action-button.is-loading [data-button-icon] {
  display: none;
}

.schedule-generation-form-footer .async-action-button.is-loading .async-button-spinner {
  display: inline-block;
  animation: sank-roster-spin 750ms linear infinite;
}

.worker-access-warning > td {
  background: #fffbeb;
  border-bottom-color: #fde68a;
}

.worker-access-warning:hover > td {
  background: #fef3c7;
}

.worker-access-critical > td {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}

.worker-access-critical:hover > td {
  background: #fee2e2;
}

.worker-access-warning > td:first-child {
  box-shadow: inset 4px 0 0 #f59e0b;
}

.worker-access-critical > td:first-child {
  box-shadow: inset 4px 0 0 #ef4444;
}

.worker-row-inactive > td {
  opacity: 0.58;
  filter: grayscale(0.65);
}

.worker-row-inactive:hover > td {
  background: #f3f4f6 !important;
}

.worker-active-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  user-select: none;
  cursor: pointer;
}

.worker-active-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.worker-active-switch__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2.3rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #ef4444;
  border: 1px solid #fca5a5;
  transition: background 160ms ease, border-color 160ms ease;
}

.worker-active-switch__thumb {
  position: absolute;
  left: 2px;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 160ms ease;
}

.worker-active-switch__input:checked + .worker-active-switch__track {
  background: #16a34a;
  border-color: #86efac;
}

.worker-active-switch__input:checked + .worker-active-switch__track .worker-active-switch__thumb {
  transform: translateX(1.03rem);
}

.worker-active-switch__input:focus-visible + .worker-active-switch__track {
  outline: 2px solid rgba(232, 116, 33, 0.24);
  outline-offset: 2px;
}

.worker-active-switch__text {
  font-size: 0.72rem;
  font-weight: 700;
}

.worker-active-switch__text.is-active {
  color: #15803d;
}

.worker-active-switch__text.is-inactive {
  color: #b91c1c;
}

.worker-active-switch--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.worker-active-switch--disabled .worker-active-switch__track {
  box-shadow: none;
}

.worker-warning-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #fcd34d;
  border-radius: 9999px;
  background: #fef3c7;
  color: #b45309;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
  animation: worker-warning-pulse 1.5s ease-in-out infinite;
}

.worker-warning-icon--critical {
  border-color: #fecaca;
  background: #fee2e2;
  color: #dc2626;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
}

@keyframes sank-roster-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes worker-selected-tag-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }

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

@keyframes worker-warning-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 currentColor;
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
    transform: scale(1.04);
  }
}

.availability-day-card {
  position: relative;
  overflow: hidden;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.availability-day-card--active {
  opacity: 1;
  transform: translateX(0);
}

.availability-day-card--carousel-enter {
  opacity: 0;
  transform: translateX(20px);
}

.availability-day-card--carousel-leave {
  opacity: 0;
  transform: translateX(-20px);
}

.availability-day-card--carousel-from-left {
  transform: translateX(-20px);
}

.availability-day-card--carousel-to-right {
  transform: translateX(20px);
}

.availability-day-card--saved {
  border-color: rgba(5, 150, 105, 0.45);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), #ffffff);
}

.availability-day-card--confirmed {
  border-color: rgba(5, 150, 105, 0.4);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.86), #ffffff);
}

.availability-day-card__confirm-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.14);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.availability-day-card__confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.3);
  font-size: 1.55rem;
  transform: scale(0.75);
  opacity: 0;
}

.availability-day-card--confirm-anim .availability-day-card__confirm-overlay {
  opacity: 1;
}

.availability-day-card--confirm-anim .availability-day-card__confirm-icon {
  animation: availability-confirm-tick-inout 980ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes availability-confirm-tick-inout {
  0% {
    transform: scale(0.74);
    opacity: 0;
  }

  20% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.92);
    opacity: 0;
  }
}

/* Availability: obligation rows (minimal) */
.availability-segments-panel {
  border-radius: 0.65rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 0.85rem 1rem;
}

.availability-segments-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.availability-segments-panel__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.availability-segments-panel__hint {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #9ca3af;
  max-width: 28rem;
}

.availability-segments-panel__add {
  flex: 0 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.availability-segments-panel__add:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.availability-segments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.availability-segment-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.availability-segment-row__index {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 1.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c4c4c4;
  min-width: 1.25rem;
  text-align: right;
}

.availability-segment-row__body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .availability-segment-row__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
    align-items: end;
    gap: 0.65rem;
  }
}

.availability-segment-row__times {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
}

.availability-segment-row__time-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.availability-segment-row__field-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.availability-segment-row__sep {
  padding-bottom: 0.42rem;
  font-size: 0.85rem;
  color: #d1d5db;
  user-select: none;
}

.availability-segment-row__reason {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.availability-segment-row__reason-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.8rem;
  padding: 0.4rem 0.55rem;
  outline: none;
  transition: border-color 140ms ease;
}

.availability-segment-row__reason-input:focus {
  border-color: rgba(232, 116, 33, 0.45);
}

.availability-segment-row__remove {
  flex: 0 0 auto;
  align-self: center;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: #9ca3af;
  font-size: 1.15rem;
  line-height: 1;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.availability-segment-row__remove:hover {
  color: #6b7280;
  background: #f3f4f6;
}

.availability-time-field {
  position: relative;
  min-width: 6.75rem;
}

.availability-time-field__spinners {
  display: inline-flex;
  align-items: stretch;
  gap: 0.12rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #ffffff;
  padding: 0.12rem 0.28rem;
  transition: border-color 140ms ease;
}

.availability-time-field:focus-within .availability-time-field__spinners {
  border-color: rgba(232, 116, 33, 0.45);
}

.availability-time-field__dot {
  align-self: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
  padding: 0 0.05rem;
  user-select: none;
}

.availability-time-field__part {
  box-sizing: border-box;
  width: 2.85rem;
  min-width: 0;
  border: none;
  border-radius: 0.32rem;
  background: #fafafa;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 0.38rem 0.2rem 0.38rem 0.15rem;
  outline: none;
  transition: background 120ms ease;
}

.availability-time-field__part:hover {
  background: #f3f4f6;
}

.availability-time-field__part:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(232, 116, 33, 0.35);
}

/* Native steppers: keep visible and slightly larger (WebKit) */
.availability-time-field__part::-webkit-outer-spin-button,
.availability-time-field__part::-webkit-inner-spin-button {
  opacity: 1;
  height: 2rem;
  margin-left: 0.05rem;
  cursor: pointer;
}

.availability-save-day-button,
.availability-confirm-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  border: 1px solid transparent;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.availability-save-day-button {
  color: #065f46 !important;
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.availability-save-day-button:hover {
  background: #dcfce7;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

.availability-edit-day-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  color: #9a3412 !important;
  background: #fff7ed;
  border: 1px solid #fdba74;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.availability-edit-day-button:hover {
  background: #ffedd5;
  border-color: #fb923c;
  transform: translateY(-1px);
}

.availability-confirm-all-button {
  color: #ffffff !important;
  background: #10b981;
  border-color: #0f9f72;
}

.availability-confirm-all-button:hover {
  background: #0ea572;
  border-color: #0d8d62;
  transform: translateY(-1px);
}

.availability-save-day-button:disabled,
.availability-confirm-all-button:disabled,
.availability-edit-day-button:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  transform: none;
}

.availability-reason-locked {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed !important;
}

#availability-carousel-prev:disabled,
#availability-carousel-next:disabled {
  opacity: 0.45;
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.schedule-preview-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
  /* Stack is on document.body, outside #app — reset inherited title-case utilities */
  text-transform: none !important;
}

.schedule-preview-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card, #fff);
  color: var(--foreground, #111827);
  text-transform: none !important;
  font-size: 0.8125rem;
  line-height: 1.35;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.08),
    0 2px 4px -2px rgb(0 0 0 / 0.06);
  opacity: 0;
  transform: translateY(0.35rem);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  pointer-events: auto;
}

.schedule-preview-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.schedule-preview-toast i {
  flex: 0 0 auto;
  font-size: 1.1rem;
  margin-top: 0.05rem;
}

.schedule-preview-toast__text {
  flex: 1 1 auto;
  text-transform: none !important;
}

.schedule-preview-toast--loading {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 35%, var(--border, #e5e7eb));
}

.schedule-preview-toast--error {
  border-color: color-mix(in srgb, #dc2626 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #dc2626 6%, var(--card, #fff));
  color: #991b1b;
}

.schedule-preview-toast--error i {
  color: #dc2626;
}

.schedule-preview-toast--warning {
  border-color: color-mix(in srgb, #d97706 45%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #d97706 8%, var(--card, #fff));
  color: #92400e;
}

.schedule-preview-toast--warning i {
  color: #d97706;
}

.schedule-preview-toast--success {
  border-color: color-mix(in srgb, #059669 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #059669 7%, var(--card, #fff));
  color: #065f46;
}

.schedule-preview-toast--success i {
  color: #059669;
}

.schedule-preview-toast--info i {
  color: var(--primary, #2563eb);
}

.schedule-preview-toast__spinner {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  border: 2px solid color-mix(in srgb, var(--primary, #2563eb) 25%, transparent);
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  animation: schedule-preview-toast-spin 0.7s linear infinite;
}

@keyframes schedule-preview-toast-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Schedule preview: worker shift share (below calendar) */
.schedule-preview-shift-share {
  text-transform: none;
}

.schedule-preview-shift-share__card {
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.schedule-preview-shift-share__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.schedule-preview-shift-share__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #111827);
  letter-spacing: -0.01em;
}

.schedule-preview-shift-share__badge {
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--muted, #f3f4f6) 92%, transparent);
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground, #64748b);
}

.schedule-preview-shift-share__sub {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground, #64748b);
}

.schedule-preview-shift-share__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem 1rem;
}

.schedule-preview-shift-share__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 12.5rem;
  min-width: min(12.5rem, 100%);
  max-width: 100%;
}

.schedule-preview-shift-share__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.schedule-preview-shift-share__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary, #e87421) 85%, #6366f1),
    color-mix(in srgb, var(--primary, #e87421) 55%, #7c3aed)
  );
}

.schedule-preview-shift-share__nameblock {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.schedule-preview-shift-share__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-preview-shift-share__count {
  font-size: 0.6875rem;
  color: var(--muted-foreground, #64748b);
}

.schedule-preview-shift-share__pct {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground, #111827);
  font-variant-numeric: tabular-nums;
}

.schedule-preview-shift-share__bar {
  height: 6px;
  border-radius: 9999px;
  background: var(--muted, #f1f5f9);
  overflow: hidden;
}

.schedule-preview-shift-share__fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--primary, #e87421);
  transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-preview-shift-share__fill {
    transition: none;
  }
}

/* Worker work hours (Delovni čas) */
.work-hours-toolbar__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
  margin-bottom: 0.375rem;
}

.work-hours-month-nav {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.5rem;
  background: var(--background, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.work-hours-month-nav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  flex-shrink: 0;
  border: none;
  border-right: 1px solid var(--border, #e2e8f0);
  background: var(--muted, #f8fafc);
  color: var(--muted-foreground, #64748b);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.work-hours-month-nav__arrow:last-of-type {
  border-right: none;
  border-left: 1px solid var(--border, #e2e8f0);
}

.work-hours-month-nav__arrow:hover:not(:disabled) {
  background: rgba(232, 116, 32, 0.1);
  color: var(--primary, #e87420);
}

.work-hours-month-nav__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.work-hours-month-nav__current {
  flex: 1;
  min-width: 8.5rem;
}

.work-hours-month-nav__select {
  width: 100%;
  height: 100%;
  min-height: 2.5rem;
  border: none;
  background: transparent;
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M12 15.5 6 9.5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.work-hours-month-nav__select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(232, 116, 32, 0.35);
}

.work-hours-month-nav__select option:disabled {
  color: #94a3b8;
}

.work-hours-kpi {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 6.75rem;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-hours-kpi:hover {
  border-color: rgba(232, 116, 32, 0.22);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.work-hours-kpi__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
  line-height: 1.3;
}

.work-hours-kpi__value {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground, #0f172a);
  font-variant-numeric: tabular-nums;
}

.work-hours-kpi__compare {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.work-hours-kpi__compare--up {
  color: #059669;
}

.work-hours-kpi__compare--down {
  color: #dc2626;
}

.work-hours-kpi__compare--flat {
  color: var(--muted-foreground, #64748b);
}

.work-hours-kpi__compare--muted {
  color: var(--muted-foreground, #94a3b8);
  font-weight: 500;
}

.work-hours-panel {
  border-radius: 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.work-hours-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: linear-gradient(180deg, var(--card, #fff) 0%, rgba(248, 250, 252, 0.6) 100%);
}

.work-hours-panel__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.work-hours-panel__desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
}

.work-hours-panel__badge {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground, #64748b);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--muted, #f1f5f9);
}

.work-hours-panel__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-hours-chart-box__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.work-hours-chart-box__desc {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted-foreground, #64748b);
}

.work-hours-chart-box__canvas {
  position: relative;
  height: 16rem;
}

.work-hours-chart-box__canvas--solo {
  margin-top: 0;
}

.work-hours-goal-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .work-hours-goal-layout {
    flex-direction: row;
    align-items: center;
  }

  .work-hours-goal-progress {
    flex: 1;
    min-width: 0;
  }

  .work-hours-goal-form {
    flex-shrink: 0;
    width: min(100%, 18rem);
  }
}

.work-hours-goal-progress__track {
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--muted, #f1f5f9);
  overflow: hidden;
}

.work-hours-goal-progress__fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f59e0b 0%, var(--primary, #e87420) 100%);
  transition: width 0.45s ease;
}

.work-hours-goal-progress__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
}

.work-hours-goal-progress__meta > span:first-child {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground, #0f172a);
}

.work-hours-goal-form {
  display: flex;
  gap: 0.5rem;
}

.work-hours-goal-form__input {
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground, #0f172a);
}

.work-hours-goal-form__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring, rgba(232, 116, 32, 0.35));
}

.work-hours-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .work-hours-split {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 2rem;
  }

  .work-hours-split__list {
    padding-left: 2rem;
    border-left: 1px solid var(--border, #e2e8f0);
  }
}

.work-hours-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
}

.work-hours-field__textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground, #0f172a);
  resize: vertical;
}

.work-hours-field__textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring, rgba(232, 116, 32, 0.35));
}

.work-hours-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.work-hours-btn--primary {
  border: none;
  background: var(--primary, #e87420);
  color: var(--primary-foreground, #fff);
}

.work-hours-btn--primary:hover {
  background: color-mix(in srgb, var(--primary, #e87420) 90%, #000);
}

.work-hours-btn--ghost {
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  color: var(--foreground, #0f172a);
}

.work-hours-btn--ghost:hover {
  background: var(--muted, #f8fafc);
}

.work-hours-entries {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-hours-entries-empty {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground, #64748b);
  padding: 2.5rem 1rem;
  border-radius: 0.625rem;
  border: 1px dashed var(--border, #e2e8f0);
}

.work-hours-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.work-hours-entry:hover {
  border-color: rgba(232, 116, 32, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.work-hours-entry__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.work-hours-entry__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.work-hours-entry__time {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
  font-variant-numeric: tabular-nums;
}

.work-hours-entry__duration {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary, #e87420);
  font-variant-numeric: tabular-nums;
}

.work-hours-entry__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.work-hours-entry__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
  color: var(--muted-foreground, #64748b);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.work-hours-entry__btn:hover {
  background: var(--muted, #f8fafc);
  color: var(--foreground, #0f172a);
}

.work-hours-entry__btn--danger:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: #dc2626;
  background: rgba(239, 68, 68, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .work-hours-goal-progress__fill {
    transition: none;
  }
}

.weather-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--muted, #f8fafc);
  color: var(--foreground, #0f172a);
  max-width: 11rem;
}

.weather-widget__icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--primary, #e87420);
  flex-shrink: 0;
}

.weather-widget__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.weather-widget__temp {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.weather-widget__label {
  font-size: 0.6875rem;
  color: var(--muted-foreground, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-preview-day-head {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
  min-height: 2.25rem;
  padding-inline: 0.25rem;
}

.schedule-preview-day-head--week {
  min-height: 2.5rem;
}

.schedule-preview-day-head__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
}

.schedule-preview-day-head__num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--foreground, #0f172a);
  font-variant-numeric: tabular-nums;
}

.schedule-preview-day-head__month {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
}

.schedule-preview-day-head__label {
  min-width: 0;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground, #64748b);
  line-height: 1.2;
}

.schedule-preview-day-weather {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}

.schedule-preview-day-weather i {
  font-size: 1.375rem;
  line-height: 1;
  color: var(--primary, #e87420);
}

.schedule-preview-day-weather__temp {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--foreground, #0f172a);
  line-height: 1;
}

@media (max-width: 480px) {
  .weather-widget__label {
    display: none;
  }

  .weather-widget {
    max-width: none;
    padding: 0.375rem 0.5rem;
  }
}
