:root {
  --fkf-primary: #0a6464;
  --fkf-secondary: #26684e;
  --fkf-tertiary: #f4b400;
  --fkf-accent: #1f8a70;
  --fkf-link: #0969da;
  --fkf-success: #198754;
  --fkf-danger: #dc3545;
  --fkf-warning: #ffc107;
  --fkf-info: #0dcaf0;
  --fkf-nav-icon: var(--fkf-primary);
  --fkf-bg: #f5f7fb;
  --fkf-surface: #ffffff;
  --fkf-surface-muted: #f0f4f8;
  --fkf-text: #17212f;
  --fkf-text-muted: #5b6b82;
  --fkf-border: #d5dfeb;
  --fkf-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --fkf-radius-sm: 6px;
  --fkf-radius-md: 8px;
  --fkf-topbar-height: 52px;
  --fkf-sidebar-width: 236px;
  --fkf-topnav-height: 100px;
  --fkf-density-font-size: 14px;
  --fkf-content-padding: 14px;
  --fkf-content-padding-mobile: 9px;
  --fkf-layout-gap: 7px;
  --fkf-grid-gap: 7px;
  --fkf-space-2: 0.3rem;
  --fkf-space-3: 0.48rem;
  --fkf-card-spacer-y: 0.58rem;
  --fkf-card-spacer-x: 0.7rem;
  --fkf-card-cap-padding-y: 0.42rem;
  --fkf-card-cap-padding-x: 0.7rem;
  --fkf-btn-padding-y: 0.24rem;
  --fkf-btn-padding-x: 0.55rem;
  --fkf-btn-font-size: 0.84rem;
  --fkf-btn-sm-padding-y: 0.24rem;
  --fkf-btn-sm-padding-x: 0.48rem;
  --fkf-btn-sm-font-size: 0.82rem;
  --fkf-control-padding-y: 0.3rem;
  --fkf-control-padding-x: 0.56rem;
  --fkf-control-font-size: 0.9rem;
  --fkf-control-min-height: 32px;
  --fkf-table-font-size: 0.88rem;
  --fkf-table-cell-padding-y: 0.36rem;
  --fkf-table-cell-padding-x: 0.48rem;
  --fkf-nav-shell-y: 12px;
  --fkf-nav-shell-x: 10px;
  --fkf-nav-item-gap: 4px;
  --fkf-nav-link-y: 9px;
  --fkf-nav-link-x: 10px;
  --fkf-nav-link-gap: 10px;
  --fkf-nav-sublist-y: 4px;
  --fkf-nav-sublist-x: 18px;
  --fkf-nav-subitem-y: 7px;
  --fkf-nav-subitem-x: 9px;
  --fkf-dashboard-card-padding: 8px;
  --fkf-dashboard-card-gap: 7px;
  --fkf-dashboard-action-min-height: 76px;
  --fkf-dashboard-stat-min-height: 62px;
}

:root[data-density="comfortable"] {
  --fkf-topbar-height: 56px;
  --fkf-topnav-height: 108px;
  --fkf-density-font-size: 15px;
  --fkf-content-padding: 18px;
  --fkf-content-padding-mobile: 11px;
  --fkf-layout-gap: 9px;
  --fkf-grid-gap: 9px;
  --fkf-card-spacer-y: 0.76rem;
  --fkf-card-spacer-x: 0.84rem;
  --fkf-card-cap-padding-y: 0.54rem;
  --fkf-card-cap-padding-x: 0.84rem;
  --fkf-dashboard-card-padding: 10px;
  --fkf-dashboard-card-gap: 9px;
  --fkf-dashboard-action-min-height: 84px;
  --fkf-dashboard-stat-min-height: 68px;
}

:root[data-density="spacious"] {
  --fkf-topbar-height: 60px;
  --fkf-topnav-height: 118px;
  --fkf-density-font-size: 16px;
  --fkf-content-padding: 22px;
  --fkf-content-padding-mobile: 13px;
  --fkf-layout-gap: 11px;
  --fkf-grid-gap: 11px;
  --fkf-card-spacer-y: 0.9rem;
  --fkf-card-spacer-x: 1rem;
  --fkf-card-cap-padding-y: 0.68rem;
  --fkf-card-cap-padding-x: 1rem;
  --fkf-dashboard-card-padding: 12px;
  --fkf-dashboard-card-gap: 11px;
  --fkf-dashboard-action-min-height: 92px;
  --fkf-dashboard-stat-min-height: 76px;
}

:root[data-theme="dark"] {
  --fkf-primary: #109a8d;
  --fkf-secondary: #63c6ad;
  --fkf-accent: #17a98f;
  --fkf-bg: #101820;
  --fkf-surface: #16212b;
  --fkf-surface-muted: #1d2a35;
  --fkf-text: #edf4f7;
  --fkf-text-muted: #a8b7c3;
  --fkf-border: #2c3e4b;
  --fkf-link: #7ec8ff;
  --fkf-nav-icon: #8df0da;
  --fkf-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.fkf-modern {
  min-height: 100vh;
  background: var(--fkf-bg);
  color: var(--fkf-text);
  font-size: var(--fkf-density-font-size);
  letter-spacing: 0;
}

.fkf-modern a {
  color: var(--fkf-link);
  text-decoration: none;
}

.fkf-app-shell {
  min-height: 100vh;
}

.fkf-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1040;
  height: var(--fkf-topbar-height);
  background: var(--fkf-surface);
  border-bottom: 1px solid var(--fkf-border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html[data-nav-sticky="false"] body.fkf-modern .fkf-topbar {
  position: static;
}

.navbar-brand {
  color: var(--fkf-text);
  font-size: 0.98rem;
}

.fkf-brand-mark {
  width: 116px;
  height: 30px;
  background:
    linear-gradient(135deg, var(--fkf-primary), var(--fkf-accent));
  border-radius: 8px;
  display: inline-flex;
  position: relative;
}

.fkf-brand-mark::after {
  content: "FUEL OPS";
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 30px;
  margin-left: 14px;
}

.fkf-modern .btn {
  --bs-btn-border-radius: 7px;
  --bs-btn-padding-y: var(--fkf-btn-padding-y);
  --bs-btn-padding-x: var(--fkf-btn-padding-x);
  --bs-btn-font-size: var(--fkf-btn-font-size);
}

.fkf-modern .btn-sm {
  --bs-btn-padding-y: var(--fkf-btn-sm-padding-y);
  --bs-btn-padding-x: var(--fkf-btn-sm-padding-x);
  --bs-btn-font-size: var(--fkf-btn-sm-font-size);
}

.fkf-modern .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--fkf-primary);
  --bs-btn-border-color: var(--fkf-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--fkf-primary), #000 12%);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--fkf-primary), #000 15%);
  --bs-btn-focus-shadow-rgb: 10, 100, 100;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--fkf-primary), #000 18%);
  --bs-btn-active-border-color: color-mix(in srgb, var(--fkf-primary), #000 22%);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--fkf-primary);
  --bs-btn-disabled-border-color: var(--fkf-primary);
  color: var(--bs-btn-color);
}

.fkf-modern .btn-primary:hover,
.fkf-modern .btn-primary:focus {
  color: var(--bs-btn-hover-color);
}

.fkf-modern .btn-primary:active,
.fkf-modern .btn-primary.active,
.fkf-modern .btn-primary.show {
  color: var(--bs-btn-active-color);
}

.fkf-modern .btn-primary:disabled,
.fkf-modern .btn-primary.disabled {
  color: var(--bs-btn-disabled-color);
}

.fkf-modern .btn-secondary {
  --bs-btn-bg: var(--fkf-secondary);
  --bs-btn-border-color: var(--fkf-secondary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--fkf-secondary), #000 12%);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--fkf-secondary), #000 15%);
}

.fkf-modern .btn-outline-primary {
  --bs-btn-color: var(--fkf-primary);
  --bs-btn-border-color: var(--fkf-primary);
  --bs-btn-hover-bg: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  --bs-btn-hover-border-color: var(--fkf-primary);
  --bs-btn-hover-color: var(--fkf-primary);
  --bs-btn-active-bg: color-mix(in srgb, var(--fkf-primary), transparent 80%);
  --bs-btn-active-border-color: var(--fkf-primary);
  --bs-btn-active-color: var(--fkf-primary);
}

.icon-btn {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0;
  width: 32px;
}

.fkf-help-trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fkf-primary);
  display: inline-flex;
  font-size: 0.9rem;
  height: 18px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 18px;
}

.fkf-help-trigger:hover,
.fkf-help-trigger:focus {
  color: var(--fkf-link);
}

.fkf-help-trigger:focus-visible {
  border-radius: 999px;
  outline: 2px solid color-mix(in srgb, var(--fkf-primary), transparent 45%);
  outline-offset: 2px;
}

.fkf-help-trigger i {
  pointer-events: none;
}

html[data-nav-sticky="true"] body.fkf-modern [data-fkf-nav-sticky-toggle] {
  background: var(--fkf-primary);
  border-color: var(--fkf-primary);
  color: #fff;
}

.fkf-topbar-theme-menu {
  max-height: min(420px, calc(100vh - var(--fkf-topbar-height) - 16px));
  min-width: 260px;
  overflow-y: auto;
  padding: 6px;
}

.fkf-topbar-theme-item {
  align-items: center;
  border-radius: var(--fkf-radius-sm);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

.fkf-topbar-theme-item.is-selected {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  color: var(--fkf-primary);
}

.fkf-topbar-theme-check {
  align-items: center;
  color: var(--fkf-primary);
  display: inline-flex;
  flex: 0 0 14px;
  font-size: 13px;
  justify-content: center;
  opacity: 0;
}

.fkf-topbar-theme-item.is-selected .fkf-topbar-theme-check {
  opacity: 1;
}

.fkf-topbar-theme-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-topbar-theme-swatches,
.fkf-preset-swatches {
  display: inline-flex;
  gap: 3px;
  min-width: max-content;
}

.fkf-topbar-theme-swatch,
.fkf-preset-swatch {
  background: var(--fkf-swatch-color);
  border: 1px solid color-mix(in srgb, var(--fkf-swatch-color), var(--fkf-border) 25%);
  border-radius: 999px;
  height: 12px;
  width: 12px;
}

.fkf-sidebar {
  background: var(--fkf-surface);
  border-right: 1px solid var(--fkf-border);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  position: fixed;
  top: var(--fkf-topbar-height);
  width: var(--fkf-sidebar-width);
  z-index: 1020;
}

.fkf-main {
  margin-left: var(--fkf-sidebar-width);
  min-height: calc(100vh - var(--fkf-topbar-height));
  padding-top: var(--fkf-topbar-height);
}

.fkf-content {
  padding: var(--fkf-content-padding);
}

.fkf-context-bar {
  align-items: end;
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
  min-width: 0;
  padding: 0.44rem 0.54rem;
}

.fkf-context-title {
  align-items: center;
  color: var(--fkf-text);
  display: flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 0.32rem;
  line-height: 1;
  min-height: var(--fkf-control-min-height);
  white-space: nowrap;
}

.fkf-context-title i {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 72%);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-primary);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.fkf-context-form {
  align-items: end;
  display: grid;
  flex: 1 1 auto;
  gap: 0.4rem;
  grid-template-columns: minmax(140px, 0.9fr) minmax(170px, 1.1fr) minmax(126px, 0.72fr) 32px max-content;
  min-width: 0;
}

.fkf-context-field {
  min-width: 0;
}

.fkf-context-field .form-label {
  color: var(--fkf-text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.16rem;
}

.fkf-context-static {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-surface-muted), var(--fkf-surface) 54%);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-text);
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  min-height: var(--fkf-control-min-height);
  overflow: hidden;
  padding: 0.28rem 0.48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-context-status {
  color: var(--fkf-primary);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: var(--fkf-control-min-height);
  min-width: 54px;
  white-space: nowrap;
}

.fkf-context-status.is-error {
  color: var(--fkf-danger);
}

.fkf-content > .alert.alert-success[role="alert"] {
  align-items: center;
  animation: fkfFlashBanner 4.4s ease-in-out forwards;
  background: color-mix(in srgb, var(--fkf-success), var(--fkf-surface) 86%);
  border: 1px solid color-mix(in srgb, var(--fkf-success), transparent 38%);
  border-radius: var(--fkf-radius-md);
  box-shadow: var(--fkf-shadow-soft);
  color: color-mix(in srgb, var(--fkf-success), var(--fkf-text) 22%);
  display: flex;
  font-weight: 700;
  gap: 0.5rem;
  left: max(8px, env(safe-area-inset-left));
  margin: 0 !important;
  max-width: none;
  min-height: 42px;
  padding: 0.58rem 0.85rem;
  pointer-events: none;
  position: fixed;
  right: max(8px, env(safe-area-inset-right));
  text-align: center;
  top: calc(var(--fkf-topbar-height) + 8px);
  z-index: 1100;
}

.fkf-content > .alert.alert-success[role="alert"] > div {
  flex: 1 1 auto;
}

html[data-nav-layout="top"] body.fkf-modern .fkf-content > .alert.alert-success[role="alert"] {
  top: calc(var(--fkf-topbar-height) + var(--fkf-topnav-height) + 8px);
}

html[data-nav-sticky="false"] body.fkf-modern .fkf-content > .alert.alert-success[role="alert"] {
  top: 8px;
}

@keyframes fkfFlashBanner {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
    visibility: visible;
  }

  10%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fkf-content > .alert.alert-success[role="alert"] {
    animation-duration: 6s;
    transform: none;
  }
}

.fkf-nav-backdrop {
  display: none;
}

.fkf-modern .fkf-nav {
  padding: var(--fkf-nav-shell-y) var(--fkf-nav-shell-x);
}

.fkf-modern .fkf-nav-list,
.fkf-modern .fkf-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fkf-modern .fkf-nav-item {
  margin-bottom: var(--fkf-nav-item-gap);
}

.fkf-modern .fkf-nav-link,
.fkf-modern .fkf-nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-text);
  display: flex;
  gap: var(--fkf-nav-link-gap);
  padding: var(--fkf-nav-link-y) var(--fkf-nav-link-x);
  text-decoration: none;
  width: 100%;
}

.fkf-modern .fkf-nav-link i,
.fkf-modern .fkf-nav-toggle i {
  color: var(--fkf-nav-icon);
}

.fkf-modern .fkf-nav-link:hover,
.fkf-modern .fkf-nav-toggle:hover,
.fkf-modern .fkf-nav-link[aria-current="page"],
.fkf-modern .fkf-nav-link.is-active,
.fkf-modern .fkf-nav-toggle.is-active {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  color: var(--fkf-primary);
}

.fkf-modern .fkf-nav-sublist {
  display: none;
  padding: var(--fkf-nav-sublist-y) 0 calc(var(--fkf-nav-sublist-y) + 3px) var(--fkf-nav-sublist-x);
}

.fkf-modern .fkf-nav-sublist.show,
.fkf-modern .fkf-nav-sublist.is-open {
  display: block;
}

.fkf-modern .fkf-nav-sublist .fkf-nav-link {
  font-size: 13px;
  padding: var(--fkf-nav-subitem-y) var(--fkf-nav-subitem-x);
}

.fkf-modern .fkf-nav-toggle .bi-chevron-down {
  transition: transform 150ms ease;
}

.fkf-modern .fkf-nav-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.fkf-nav-link.disabled {
  color: var(--fkf-text-muted);
  cursor: default;
  opacity: 0.62;
}

.fkf-nav-link.disabled i {
  color: var(--fkf-text-muted);
}

.fkf-page-title {
  color: var(--fkf-text);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
}

.fkf-page-subtitle {
  color: var(--fkf-text-muted);
  font-size: 0.88rem;
}

.fkf-modern .card,
.fkf-card,
.fkf-stat {
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  box-shadow: none;
  color: var(--fkf-text);
}

.fkf-modern .card:not([class*="border-"]),
.fkf-card {
  border-bottom-color: color-mix(in srgb, var(--fkf-border) 58%, var(--fkf-primary) 42%);
}

.fkf-modern .card-header,
.fkf-modern .card-footer,
.fkf-card .card-header {
  background: var(--fkf-surface);
  border-color: var(--fkf-border);
  color: var(--fkf-text);
  font-weight: 700;
  padding: var(--fkf-card-cap-padding-y) var(--fkf-card-cap-padding-x);
}

.fkf-modern .card-body,
.fkf-card .card-body {
  padding: var(--fkf-card-spacer-y) var(--fkf-card-spacer-x);
}

.fkf-modern .table {
  --bs-table-bg: var(--fkf-surface);
  --bs-table-color: var(--fkf-text);
  --bs-table-border-color: var(--fkf-border);
  --bs-table-hover-bg: color-mix(in srgb, var(--fkf-primary), transparent 94%);
  --bs-table-hover-color: var(--fkf-text);
  color: var(--fkf-text);
  font-size: var(--fkf-table-font-size);
}

.fkf-modern .table > :not(caption) > * > * {
  padding: var(--fkf-table-cell-padding-y) var(--fkf-table-cell-padding-x);
}

.fkf-modern .table thead th {
  background: var(--fkf-surface-muted);
  color: var(--fkf-text);
  font-weight: 750;
}

.fkf-modern .text-muted {
  color: var(--fkf-text-muted) !important;
}

.fkf-modern .dropdown-menu,
.fkf-modern .form-control,
.fkf-modern .form-select,
.fkf-modern .input-group-text,
.fkf-modern .list-group-item {
  background-color: var(--fkf-surface);
  border-color: var(--fkf-border);
  color: var(--fkf-text);
}

.fkf-modern .form-control,
.fkf-modern .form-select,
.fkf-modern .input-group-text {
  font-size: var(--fkf-control-font-size);
  min-height: var(--fkf-control-min-height);
}

.fkf-modern .form-control,
.fkf-modern .form-select {
  padding: var(--fkf-control-padding-y) var(--fkf-control-padding-x);
}

.fkf-modern .form-check-input:checked {
  background-color: var(--fkf-primary);
  border-color: var(--fkf-primary);
}

.fkf-modern .form-control:focus,
.fkf-modern .form-select:focus {
  background-color: var(--fkf-surface);
  border-color: color-mix(in srgb, var(--fkf-primary), var(--fkf-border) 32%);
  box-shadow: 0 0 0 0.16rem color-mix(in srgb, var(--fkf-primary), transparent 82%);
  color: var(--fkf-text);
}

.fkf-modern .form-control::placeholder {
  color: var(--fkf-text-muted);
  opacity: 0.82;
}

.fkf-modern .form-control:disabled,
.fkf-modern .form-control[readonly],
.fkf-modern .form-select:disabled,
.fkf-modern .bg-body-tertiary {
  background-color: var(--fkf-surface-muted) !important;
  border-color: var(--fkf-border);
  color: var(--fkf-text-muted) !important;
}

.fkf-modern .form-select option {
  background: var(--fkf-surface);
  color: var(--fkf-text);
}

.fkf-modern .modal-content {
  background: var(--fkf-surface);
  border-color: var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  box-shadow: var(--fkf-shadow-soft);
  color: var(--fkf-text);
}

.fkf-modern .modal-header,
.fkf-modern .modal-footer {
  background: var(--fkf-surface);
  border-color: var(--fkf-border);
  color: var(--fkf-text);
}

.fkf-modern .modal-title,
.fkf-modern .modal-body,
.fkf-modern .form-label,
.fkf-modern .form-check-label {
  color: var(--fkf-text);
}

.fkf-modern .modal-backdrop.show {
  opacity: 0.68;
}

.fkf-modern .text-bg-light {
  background-color: var(--fkf-surface-muted) !important;
  border: 1px solid var(--fkf-border);
  color: var(--fkf-text) !important;
}

.fkf-modern .dropdown-item {
  color: var(--fkf-text);
}

.fkf-modern .dropdown-item:hover,
.fkf-modern .dropdown-item:focus {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  color: var(--fkf-text);
}

.fkf-access-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fkf-access-label {
  color: var(--fkf-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fkf-access-chip {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 72%);
  border-radius: 999px;
  color: var(--fkf-primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.12rem 0.48rem;
}

.fkf-access-chip-secondary {
  background: color-mix(in srgb, var(--fkf-secondary), transparent 88%);
  border-color: color-mix(in srgb, var(--fkf-secondary), transparent 72%);
  color: var(--fkf-secondary);
}

.fkf-access-chip-warning {
  background: color-mix(in srgb, var(--fkf-tertiary), transparent 82%);
  border-color: color-mix(in srgb, var(--fkf-tertiary), transparent 58%);
  color: #795900;
}

.fkf-dashboard-stat-grid {
  display: grid;
  gap: var(--fkf-dashboard-card-gap);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.fkf-stat,
.fkf-dashboard-stat {
  align-items: center;
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  display: flex;
  gap: var(--fkf-dashboard-card-gap);
  min-height: var(--fkf-dashboard-stat-min-height);
  padding: var(--fkf-dashboard-card-padding) calc(var(--fkf-dashboard-card-padding) + 2px);
  width: 100%;
}

.fkf-stat > div,
.fkf-dashboard-stat > div {
  min-width: 0;
}

.fkf-stat i,
.fkf-dashboard-stat i,
.fkf-dashboard-action-icon {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 70%);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-primary);
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
}

.fkf-stat strong,
.fkf-dashboard-stat strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
}

.fkf-stat span,
.fkf-dashboard-stat span {
  color: var(--fkf-text-muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.fkf-modern .row:has(> [class*="col-"] > .fkf-stat) {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
  display: grid;
  gap: var(--bs-gutter-y) var(--bs-gutter-x);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-left: 0;
  margin-right: 0;
}

.fkf-modern .row:has(> [class*="col-"] > .fkf-stat) > [class*="col-"] {
  display: flex;
  max-width: none;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  width: auto;
}

@media (min-width: 576px) {
  .fkf-modern .row:has(> [class*="col-"] > .fkf-stat) {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }
}

@media (min-width: 992px) {
  .fkf-modern .row:has(> [class*="col-"] > .fkf-stat) {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fkf-modern .row:has(> [class*="col-"] > .fkf-stat) {
    --bs-gutter-x: 0.28rem;
    --bs-gutter-y: 0.28rem;
  }

  .fkf-modern .row:has(> [class*="col-"] > .fkf-stat) > [class*="col-"] {
    display: flex;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  .fkf-dashboard-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fkf-stat,
  .fkf-dashboard-stat {
    gap: 4px;
    min-height: 60px;
    overflow: hidden;
    padding: 5px 4px;
    width: 100%;
  }

  .fkf-stat i,
  .fkf-dashboard-stat i {
    border-radius: 5px;
    flex-basis: 22px;
    font-size: 0.78rem;
    height: 22px;
    width: 22px;
  }

  .fkf-stat strong,
  .fkf-dashboard-stat strong {
    font-size: 0.86rem;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fkf-stat span,
  .fkf-dashboard-stat span {
    display: -webkit-box;
    font-size: 0.65rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.05;
    margin-top: 1px;
    overflow-wrap: anywhere;
    overflow: hidden;
  }
}

.fkf-stat-success strong,
.fkf-stat-success i {
  color: var(--fkf-success);
}

.fkf-stat-warning strong,
.fkf-stat-warning i {
  color: #b78000;
}

.fkf-dashboard-action-grid {
  display: grid;
  gap: var(--fkf-dashboard-card-gap);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.fkf-dashboard-dense-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .fkf-dashboard-dense-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.fkf-dashboard-action {
  align-items: flex-start;
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  color: var(--fkf-text);
  display: flex;
  gap: var(--fkf-dashboard-card-gap);
  min-height: var(--fkf-dashboard-action-min-height);
  padding: var(--fkf-dashboard-card-padding) calc(var(--fkf-dashboard-card-padding) + 2px);
  text-decoration: none;
}

body.fkf-modern .fkf-dashboard-action,
body.fkf-modern .fkf-dashboard-action:visited {
  color: var(--fkf-text);
}

.fkf-dashboard-action:hover,
.fkf-dashboard-action:focus {
  background: color-mix(in srgb, var(--fkf-primary), transparent 92%);
  border-color: color-mix(in srgb, var(--fkf-primary), var(--fkf-border) 35%);
  color: var(--fkf-primary);
  outline: 0;
}

.fkf-dashboard-action-title {
  display: flex;
  flex-wrap: wrap;
  font-weight: 700;
  gap: 6px;
  line-height: 1.2;
}

.fkf-dashboard-action-desc {
  color: var(--fkf-text-muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 5px;
}

.fkf-dashboard-search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fkf-dashboard-card-gap);
}

.fkf-ops-day {
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  box-shadow: var(--fkf-shadow-soft);
  display: grid;
  gap: 0.55rem;
  padding: var(--fkf-card-spacer-y) var(--fkf-card-spacer-x);
  position: relative;
}

.fkf-ops-day.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.fkf-ops-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
}

.fkf-ops-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.fkf-ops-subtitle,
.fkf-ops-muted,
.fkf-ops-empty,
.fkf-ops-caption,
.fkf-ops-line small,
.fkf-ops-attention small {
  color: var(--fkf-text-muted);
}

.fkf-ops-subtitle {
  font-size: 0.78rem;
  margin-top: 0.12rem;
}

.fkf-ops-filter {
  align-items: end;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1.15fr) max-content;
}

.fkf-ops-filter .form-label {
  font-size: 0.68rem;
  margin-bottom: 0.14rem;
}

.fkf-ops-feedback {
  background: color-mix(in srgb, var(--fkf-danger), var(--fkf-surface) 92%);
  border: 1px solid color-mix(in srgb, var(--fkf-danger), transparent 60%);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-danger);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
}

.fkf-ops-summary-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fkf-ops-stat {
  align-items: center;
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  display: flex;
  gap: 0.38rem;
  min-height: 48px;
  min-width: 0;
  padding: 0.34rem 0.42rem;
}

.fkf-ops-stat i {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 70%);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-primary);
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
}

.fkf-ops-stat span {
  display: grid;
  min-width: 0;
}

.fkf-ops-stat strong {
  font-size: 0.92rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-ops-stat small {
  color: var(--fkf-text-muted);
  font-size: 0.64rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-ops-tone-success i,
.fkf-ops-tone-success strong {
  color: var(--fkf-success);
}

.fkf-ops-tone-warning i,
.fkf-ops-tone-warning strong {
  color: #b78000;
}

.fkf-ops-tone-danger i,
.fkf-ops-tone-danger strong {
  color: var(--fkf-danger);
}

.fkf-ops-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fkf-ops-actions-label {
  color: var(--fkf-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fkf-ops-next-actions {
  display: grid;
  gap: 0.35rem;
}

.fkf-ops-next-title {
  align-items: center;
  color: var(--fkf-text-muted);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.28rem;
  line-height: 1;
  text-transform: uppercase;
}

.fkf-ops-next-list {
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}

.fkf-ops-next-action,
.fkf-ops-next-action:visited {
  align-items: center;
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-text);
  display: grid;
  gap: 0.38rem;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 48px;
  min-width: 0;
  padding: 0.38rem 0.44rem;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.fkf-ops-next-action:hover,
.fkf-ops-next-action:focus {
  border-color: color-mix(in srgb, var(--fkf-primary), transparent 40%);
  box-shadow: 0 0.45rem 1rem color-mix(in srgb, var(--fkf-primary), transparent 90%);
  transform: translateY(-1px);
}

.fkf-ops-next-icon,
.fkf-ops-next-count {
  align-items: center;
  border-radius: var(--fkf-radius-sm);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.fkf-ops-next-icon {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 70%);
  color: var(--fkf-primary);
  height: 30px;
  width: 30px;
}

.fkf-ops-next-count {
  background: color-mix(in srgb, var(--fkf-primary), transparent 90%);
  color: var(--fkf-primary);
  font-size: 0.76rem;
  min-width: 1.65rem;
  padding: 0.12rem 0.32rem;
}

.fkf-ops-next-copy {
  display: grid;
  min-width: 0;
}

.fkf-ops-next-copy strong,
.fkf-ops-next-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-ops-next-copy strong {
  font-size: 0.78rem;
  line-height: 1.08;
}

.fkf-ops-next-copy small {
  color: var(--fkf-text-muted);
  font-size: 0.62rem;
  line-height: 1.08;
}

.fkf-ops-next-warning {
  border-color: color-mix(in srgb, var(--fkf-warning), var(--fkf-border) 48%);
}

.fkf-ops-next-warning .fkf-ops-next-icon,
.fkf-ops-next-warning .fkf-ops-next-count {
  background: color-mix(in srgb, var(--fkf-warning), var(--fkf-surface) 82%);
  border-color: color-mix(in srgb, var(--fkf-warning), transparent 54%);
  color: #9a6800;
}

.fkf-ops-columns,
.fkf-ops-table-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.4fr);
}

.fkf-ops-block {
  border-top: 1px solid var(--fkf-border);
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  padding-top: 0.55rem;
}

.fkf-ops-block-title {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.25rem;
}

.fkf-ops-list,
.fkf-ops-shift-list,
.fkf-ops-split-list {
  display: grid;
  gap: 0.36rem;
  min-width: 0;
}

.fkf-ops-attention,
.fkf-ops-shift,
.fkf-ops-line {
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-text);
  min-width: 0;
  text-decoration: none;
}

.fkf-ops-attention {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 0.44rem;
}

.fkf-ops-attention:hover,
.fkf-ops-attention:focus,
.fkf-ops-line:hover,
.fkf-ops-line:focus {
  background: color-mix(in srgb, var(--fkf-primary), transparent 92%);
  border-color: color-mix(in srgb, var(--fkf-primary), var(--fkf-border) 35%);
  color: var(--fkf-primary);
  outline: 0;
}

.fkf-ops-attention i {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-primary);
  display: inline-flex;
  height: 28px;
  justify-content: center;
}

.fkf-ops-attention strong,
.fkf-ops-attention small,
.fkf-ops-line strong,
.fkf-ops-line small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-ops-attention strong,
.fkf-ops-line strong {
  font-size: 0.78rem;
}

.fkf-ops-attention small,
.fkf-ops-line small {
  font-size: 0.68rem;
}

.fkf-ops-empty {
  background: var(--fkf-surface-muted);
  border: 1px dashed var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  font-size: 0.78rem;
  padding: 0.55rem;
}

.fkf-ops-shift {
  display: grid;
  gap: 0.42rem;
  padding: 0.52rem;
}

.fkf-ops-shift-main,
.fkf-ops-shift-foot,
.fkf-ops-line {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.fkf-ops-shift-ref {
  font-size: 0.84rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-ops-badge,
.fkf-ops-mini-badge {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 68%);
  border-radius: 999px;
  color: var(--fkf-primary);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.18rem 0.38rem;
  white-space: nowrap;
}

.fkf-ops-mini-badge.fkf-ops-tone-success {
  background: color-mix(in srgb, var(--fkf-success), transparent 86%);
  border-color: color-mix(in srgb, var(--fkf-success), transparent 58%);
  color: var(--fkf-success);
}

.fkf-ops-mini-badge.fkf-ops-tone-warning {
  background: color-mix(in srgb, var(--fkf-tertiary), transparent 84%);
  border-color: color-mix(in srgb, var(--fkf-tertiary), transparent 58%);
  color: #9a6d00;
}

.fkf-ops-mini-badge.fkf-ops-tone-danger {
  background: color-mix(in srgb, var(--fkf-danger), transparent 88%);
  border-color: color-mix(in srgb, var(--fkf-danger), transparent 58%);
  color: var(--fkf-danger);
}

.fkf-ops-shift-metrics {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fkf-ops-shift-metrics span,
.fkf-ops-credit-grid span {
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  display: grid;
  min-width: 0;
  padding: 0.28rem 0.36rem;
}

.fkf-ops-shift-metrics strong,
.fkf-ops-credit-grid strong {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-ops-shift-metrics small,
.fkf-ops-credit-grid small,
.fkf-ops-shift-foot,
.fkf-ops-muted {
  font-size: 0.68rem;
}

.fkf-ops-line {
  padding: 0.44rem 0.5rem;
}

.fkf-ops-caption {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fkf-ops-split-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.fkf-ops-person {
  align-items: center;
  background: var(--employee-bg);
  border: 1px solid color-mix(in srgb, var(--employee-bg), #000 18%);
  border-radius: var(--fkf-radius-sm);
  color: var(--employee-text);
  display: flex;
  font-size: 0.76rem;
  gap: 0.35rem;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  min-height: 28px;
  min-width: 0;
  padding: 0.18rem 0.42rem;
}

.fkf-ops-person span,
.fkf-ops-person small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-ops-person small {
  font-size: 0.64rem;
  font-weight: 800;
}

.fkf-ops-credit-grid {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .fkf-ops-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }
}

@media (min-width: 1200px) {
  .fkf-ops-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fkf-context-bar {
    align-items: stretch;
    display: grid;
  }

  .fkf-context-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 32px max-content;
  }

  .fkf-ops-filter,
  .fkf-ops-columns,
  .fkf-ops-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fkf-context-bar {
    gap: 0.42rem;
    padding: 0.42rem;
  }

  .fkf-context-title span {
    font-size: 0.76rem;
  }

  .fkf-context-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fkf-context-date,
  .fkf-context-form .fkf-context-status {
    grid-column: span 1;
  }

  .fkf-ops-day {
    gap: 0.42rem;
    padding: 0.48rem;
  }

  .fkf-ops-head {
    align-items: stretch;
  }

  .fkf-ops-filter {
    width: 100%;
  }

  .fkf-ops-stat {
    display: grid;
    gap: 0.18rem;
    justify-items: start;
    min-height: 56px;
    padding: 0.26rem;
  }

  .fkf-ops-stat i {
    flex-basis: 20px;
    font-size: 0.72rem;
    height: 20px;
    width: 20px;
  }

  .fkf-ops-stat strong {
    font-size: 0.76rem;
  }

  .fkf-ops-stat small {
    font-size: 0.58rem;
  }

  .fkf-ops-shift-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fkf-lookup-modal .modal-content {
  background: var(--fkf-surface);
  border-color: var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  color: var(--fkf-text);
}

.fkf-lookup-results {
  display: grid;
  gap: 7px;
}

.fkf-lookup-result {
  align-items: center;
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  color: var(--fkf-text);
  display: flex;
  gap: 9px;
  min-height: 50px;
  padding: 8px 10px;
}

.fkf-lookup-result:hover,
.fkf-lookup-result:focus {
  background: color-mix(in srgb, var(--fkf-primary), transparent 92%);
  border-color: color-mix(in srgb, var(--fkf-primary), var(--fkf-border) 35%);
  color: var(--fkf-primary);
  outline: 0;
}

.fkf-lookup-image {
  align-items: center;
  border-radius: var(--fkf-radius-sm);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  object-fit: cover;
  width: 34px;
}

.fkf-lookup-image-placeholder {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 72%);
  color: var(--fkf-primary);
}

.fkf-lookup-text {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}

.fkf-lookup-title {
  color: currentColor;
  font-weight: 750;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-lookup-subtitle {
  color: var(--fkf-text-muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-lookup-arrow {
  color: var(--fkf-primary);
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.fkf-table-tools {
  align-items: center;
  background: var(--fkf-surface);
  border-bottom: 1px solid var(--fkf-border);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  padding: 7px;
}

.fkf-table-search {
  flex: 1 1 220px;
  max-width: 340px;
}

.fkf-table-page-size {
  flex: 0 0 auto;
}

.fkf-table-pagination {
  align-items: center;
  background: var(--fkf-surface);
  border-top: 1px solid var(--fkf-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding: 7px;
}

.fkf-table-pagination-info {
  color: var(--fkf-text-muted);
  font-size: 0.82rem;
}

.fkf-table-pagination-controls,
.fkf-table-pagination-pages {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fkf-table-page-number {
  min-width: 32px;
}

.fkf-table-page-ellipsis {
  color: var(--fkf-text-muted);
  padding: 0 4px;
}

.fkf-file-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.fkf-dashboard-notification {
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-left: 4px solid var(--fkf-primary);
  border-radius: var(--fkf-radius-md);
  padding: var(--fkf-dashboard-card-padding);
}

.fkf-dashboard-notification-success {
  border-left-color: var(--fkf-success);
}

.fkf-dashboard-notification-warning {
  border-left-color: var(--fkf-warning);
}

.fkf-dashboard-notification-danger {
  border-left-color: var(--fkf-danger);
}

.fkf-option-card {
  align-items: center;
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  display: flex;
  gap: 9px;
  padding: 10px;
}

.fkf-option-card.active,
.fkf-option-card[aria-pressed="true"] {
  border-color: var(--fkf-primary);
  box-shadow: 0 0 0 0.16rem color-mix(in srgb, var(--fkf-primary), transparent 84%);
  color: var(--fkf-primary);
}

.fkf-preset-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.fkf-preset-card {
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  color: var(--fkf-text);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.fkf-preset-card:hover,
.fkf-preset-card:focus-visible,
.fkf-preset-card.is-selected {
  border-color: var(--fkf-primary);
  box-shadow: 0 0 0 0.16rem color-mix(in srgb, var(--fkf-primary), transparent 84%);
}

.fkf-preset-card:hover,
.fkf-preset-card:focus-visible {
  transform: translateY(-1px);
}

.fkf-preset-title {
  align-items: center;
  display: flex;
  font-weight: 750;
  gap: 8px;
  justify-content: space-between;
}

.fkf-preset-title .bi {
  color: var(--fkf-primary);
  opacity: 0;
}

.fkf-preset-card.is-selected .fkf-preset-title .bi {
  opacity: 1;
}

.fkf-preset-description {
  color: var(--fkf-text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.fkf-preset-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.fkf-preset-mode {
  color: var(--fkf-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.fkf-preset-swatch {
  flex: 1 1 0;
  height: 14px;
  min-width: 18px;
  width: auto;
}

.fkf-modern code {
  color: var(--fkf-primary);
}

@media (min-width: 992px) {
  html[data-nav-layout="top"] body.fkf-modern .fkf-sidebar {
    border-bottom: 1px solid var(--fkf-border);
    border-right: 0;
    bottom: auto;
    height: var(--fkf-topnav-height);
    overflow: visible;
    position: fixed;
    top: var(--fkf-topbar-height);
    width: 100%;
  }

  html[data-nav-layout="top"] body.fkf-modern .fkf-main {
    margin-left: 0;
    padding-top: calc(var(--fkf-topbar-height) + var(--fkf-topnav-height));
  }

  html[data-nav-layout="top"] body.fkf-modern .fkf-nav {
    padding: calc(var(--fkf-nav-shell-y) * 0.7) calc(var(--fkf-nav-shell-x) + 4px);
  }

  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fkf-nav-item-gap);
  }

  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-item {
    margin-bottom: 0;
    position: relative;
  }

  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-link,
  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-toggle {
    white-space: nowrap;
    width: auto;
  }

  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-sublist {
    background: var(--fkf-surface);
    border: 1px solid var(--fkf-border);
    border-radius: var(--fkf-radius-md);
    box-shadow: var(--fkf-shadow-soft);
    display: none;
    left: 0;
    min-width: 220px;
    padding: var(--fkf-nav-sublist-y);
    position: absolute;
    top: 100%;
    z-index: 1040;
  }

  html[data-nav-layout="top"] body.fkf-modern:not(.fkf-topnav-click-open) .fkf-nav-item:hover > .fkf-nav-sublist,
  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-sublist.is-hover-open,
  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-sublist.is-click-open {
    display: block;
  }

  html[data-nav-layout="top"] body.fkf-modern .fkf-nav-sublist .fkf-nav-link {
    width: 100%;
  }

  html[data-nav-layout="top"][data-nav-sticky="false"] body.fkf-modern .fkf-topbar,
  html[data-nav-layout="top"][data-nav-sticky="false"] body.fkf-modern .fkf-sidebar {
    position: static;
  }

  html[data-nav-layout="top"][data-nav-sticky="false"] body.fkf-modern .fkf-main {
    padding-top: 0;
  }
}

@media (max-width: 991.98px) {
  .fkf-sidebar {
    transform: translateX(-100%);
    transition: transform 160ms ease;
  }

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

  body.fkf-nav-open .fkf-nav-backdrop {
    background: rgba(15, 23, 42, 0.35);
    border: 0;
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: var(--fkf-topbar-height);
    z-index: 1010;
  }

  .fkf-main {
    margin-left: 0;
  }

  .fkf-content {
    padding: var(--fkf-content-padding-mobile);
  }

  .fkf-brand-mark {
    width: 34px;
  }

  .fkf-brand-mark::after {
    content: "";
  }
}

.offday-employee-list {
  align-content: start;
  align-items: start;
  display: grid;
  gap: 0.35rem;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  max-height: calc(100vh - 360px);
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.offday-employee-search {
  min-height: 30px;
  padding-bottom: 0.22rem;
  padding-top: 0.22rem;
}

.user-marker-settings {
  background: color-mix(in srgb, var(--fkf-primary), transparent 96%);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  padding: 0.55rem;
}

.employee-marker-preview,
.user-list-marker,
.offday-modal-employee {
  --employee-bg: #e0f2fe;
  --employee-text: #000;
  align-items: center;
  background: var(--employee-bg);
  border: 1px solid color-mix(in srgb, var(--employee-bg), #000 18%);
  border-radius: var(--fkf-radius-sm);
  color: var(--employee-text);
  display: inline-flex;
  gap: 0.4rem;
  min-width: 0;
}

.employee-marker-preview {
  min-height: 30px;
  padding: 0.2rem 0.5rem 0.2rem 0.28rem;
}

.employee-marker-preview-initials,
.user-list-marker-initials,
.offday-modal-avatar {
  align-items: center;
  background: color-mix(in srgb, var(--employee-text), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--employee-text), transparent 72%);
  border-radius: var(--fkf-radius-sm);
  color: var(--employee-text);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.employee-marker-preview-name {
  font-size: 0.76rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-color-swatches {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-height: 31px;
}

.employee-color-swatch {
  align-items: center;
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.employee-color-swatch:hover,
.employee-color-swatch:focus {
  border-color: color-mix(in srgb, var(--fkf-primary), transparent 35%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fkf-primary), transparent 88%);
  outline: 0;
}

.employee-color-dot {
  background: var(--employee-bg);
  border: 1px solid color-mix(in srgb, var(--employee-bg), #000 18%);
  border-radius: 50%;
  display: inline-block;
  height: 18px;
  width: 18px;
}

.fkf-user-avatar-lg {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 84%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 55%);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-primary);
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 1rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 48px;
}

.fkf-user-marker {
  --employee-bg: #e0f2fe;
  --employee-text: #000;
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.fkf-user-marker-avatar {
  align-items: center;
  background: var(--employee-bg);
  border: 1px solid color-mix(in srgb, var(--employee-bg), #000 18%);
  border-radius: var(--fkf-radius-sm);
  color: var(--employee-text);
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 0.7rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.fkf-user-marker-copy {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.fkf-user-marker-name,
.fkf-user-marker-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fkf-user-marker-name {
  color: var(--fkf-text);
  font-weight: 700;
}

.fkf-user-marker-subtitle {
  color: var(--fkf-text-muted);
  font-size: 0.72rem;
}

.fkf-user-marker-sm .fkf-user-marker-avatar {
  flex-basis: 24px;
  font-size: 0.66rem;
  height: 24px;
  width: 24px;
}

.fkf-user-marker-sm .fkf-user-marker-name {
  font-size: 0.8rem;
}

.user-list-marker {
  height: 28px;
  justify-content: center;
  width: 28px;
}

.user-list-marker-initials {
  background: transparent;
  border: 0;
  height: 100%;
  width: 100%;
}

.offday-employee {
  align-items: center;
  --employee-bg: #e0f2fe;
  --employee-text: #000;
  background: var(--employee-bg);
  border: 1px solid color-mix(in srgb, var(--employee-bg), #000 16%);
  border-radius: var(--fkf-radius-md);
  color: var(--employee-text);
  cursor: grab;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  min-height: 44px;
  padding: 0.34rem 0.42rem;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  width: 100%;
}

.offday-employee-shell {
  align-items: stretch;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: minmax(0, 1fr) 30px;
  min-width: 0;
}

.offday-employee-shell[hidden] {
  display: none !important;
}

.offday-employee-policy {
  align-items: center;
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  color: var(--fkf-primary);
  display: inline-flex;
  font-size: 0.78rem;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.offday-employee-policy:hover,
.offday-employee-policy:focus {
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 92%);
  border-color: color-mix(in srgb, var(--fkf-primary), transparent 35%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fkf-primary), transparent 86%);
  outline: 0;
}

.offday-employee:hover,
.offday-employee:focus {
  border-color: color-mix(in srgb, var(--employee-bg), var(--fkf-primary) 48%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--employee-bg), transparent 68%);
  outline: 0;
}

.offday-employee.is-selected {
  border-color: var(--fkf-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fkf-primary), transparent 78%);
}

.offday-employee.is-dragging {
  opacity: 0.7;
  transform: scale(0.99);
}

.offday-employee-avatar {
  align-items: center;
  background: color-mix(in srgb, var(--employee-text), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--employee-text), transparent 70%);
  border-radius: var(--fkf-radius-sm);
  color: var(--employee-text);
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 0.74rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.offday-employee-main {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.offday-employee-name,
.offday-employee-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offday-employee-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.offday-employee-meta {
  color: color-mix(in srgb, var(--employee-text), transparent 18%);
  font-size: 0.62rem;
  font-style: italic;
}

.offday-delete-bin {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-danger), var(--fkf-surface) 91%);
  border: 1px dashed color-mix(in srgb, var(--fkf-danger), transparent 34%);
  border-radius: var(--fkf-radius-md);
  color: var(--fkf-danger);
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.offday-delete-bin span {
  font-size: 0.72rem;
  font-weight: 800;
}

.offday-delete-bin.is-drop-target {
  background: color-mix(in srgb, var(--fkf-danger), var(--fkf-surface) 78%);
  border-color: var(--fkf-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fkf-danger), transparent 82%);
}

.offday-delete-bin.is-saving {
  opacity: 0.72;
}

.calendar-report-card-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.calendar-report-card {
  align-items: center;
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  color: var(--fkf-text);
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 58px;
  padding: 0.5rem 0.6rem;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.calendar-report-card:hover,
.calendar-report-card:focus {
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 94%);
  border-color: color-mix(in srgb, var(--fkf-primary), transparent 45%);
  color: var(--fkf-text);
  outline: 0;
  transform: translateY(-1px);
}

.calendar-report-card.is-active {
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 89%);
  border-color: color-mix(in srgb, var(--fkf-primary), transparent 30%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fkf-primary), transparent 72%);
}

.calendar-report-card-icon {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 88%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 42%);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-primary);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.calendar-report-card-main {
  display: grid;
  min-width: 0;
}

.calendar-report-card-main strong {
  font-size: 0.78rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-report-card-main small {
  color: var(--fkf-text-muted);
  font-size: 0.64rem;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offday-weekdays,
.offday-calendar-grid {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.offday-weekdays {
  color: var(--fkf-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-align: center;
  text-transform: uppercase;
}

.offday-day {
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 116px;
  min-width: 0;
  padding: 0.45rem;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.offday-day.is-weekend {
  background: color-mix(in srgb, var(--fkf-primary), transparent 96%);
}

.offday-day.is-adjacent-month {
  background: color-mix(in srgb, var(--fkf-text-muted), var(--fkf-surface) 94%);
  border-color: color-mix(in srgb, var(--fkf-border), transparent 18%);
  color: var(--fkf-text-muted);
  opacity: 0.82;
}

.offday-day.is-adjacent-month .offday-event {
  opacity: 0.72;
}

.offday-day.is-today {
  border-color: color-mix(in srgb, var(--fkf-primary), transparent 36%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fkf-primary), transparent 60%);
}

.offday-day.is-drop-target {
  background: color-mix(in srgb, var(--fkf-primary), transparent 90%);
  border-color: var(--fkf-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fkf-primary), transparent 82%);
}

.offday-day.is-saving {
  opacity: 0.72;
}

.offday-day-blank {
  background: transparent;
  border-style: dashed;
  opacity: 0.45;
}

.offday-day-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-width: 0;
}

.offday-day-markers {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.22rem;
  min-width: 0;
}

.offday-pending-marker {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-tertiary), transparent 84%);
  border: 1px solid color-mix(in srgb, var(--fkf-tertiary), transparent 48%);
  border-radius: 999px;
  color: color-mix(in srgb, var(--fkf-tertiary), #111827 30%);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 800;
  gap: 0.15rem;
  line-height: 1;
  min-height: 20px;
  padding: 0.12rem 0.34rem;
}

.offday-day-number {
  color: var(--fkf-primary);
  display: inline;
  font-weight: 800;
  line-height: 1.15;
}

.offday-day.is-adjacent-month .offday-day-number {
  color: var(--fkf-text-muted);
}

.offday-adjacent-month-label {
  font-size: 0.56rem;
  font-style: italic;
  font-weight: 700;
  margin-left: 0.12rem;
}

.offday-day-name {
  color: var(--fkf-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.offday-day-events {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  min-width: 0;
}

.offday-event {
  align-items: center;
  --employee-bg: #e0f2fe;
  --employee-text: #000;
  background: var(--employee-bg);
  border: 1px solid color-mix(in srgb, var(--employee-bg), #000 18%);
  border-radius: var(--fkf-radius-sm);
  color: var(--employee-text);
  display: inline-grid;
  gap: 0.3rem;
  grid-template-columns: minmax(0, 1fr) max-content;
  justify-self: start;
  min-height: 26px;
  min-width: 0;
  padding: 0.18rem 0.24rem 0.18rem 0.38rem;
  width: fit-content;
  max-width: 100%;
}

.offday-event-approved {
  border-color: color-mix(in srgb, var(--employee-bg), var(--fkf-success) 36%);
}

.offday-event-pending {
  border-color: color-mix(in srgb, var(--employee-bg), var(--fkf-tertiary) 42%);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--fkf-tertiary), transparent 42%);
}

.offday-event[draggable="true"] {
  cursor: grab;
}

.offday-shift-event,
.offday-exception-event,
.offday-report-event {
  align-items: center;
  border-radius: var(--fkf-radius-sm);
  display: inline-grid;
  gap: 0.24rem;
  grid-template-columns: minmax(0, 1fr) max-content;
  justify-self: start;
  min-height: 25px;
  max-width: 100%;
  min-width: 0;
  padding: 0.16rem 0.32rem;
  width: fit-content;
}

.offday-shift-event {
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 88%);
  border: 1px dashed color-mix(in srgb, var(--fkf-primary), transparent 44%);
  color: var(--fkf-primary);
}

.offday-shift-with-employee,
.offday-shift-completed,
.offday-shift-active {
  background: var(--employee-bg);
  border-color: color-mix(in srgb, var(--employee-bg), #000 18%);
  color: var(--employee-text);
}

.offday-shift-active {
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--fkf-tertiary), transparent 34%);
}

.offday-shift-time {
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.82;
  white-space: nowrap;
}

.offday-exception-event {
  background: color-mix(in srgb, var(--fkf-warning), var(--fkf-surface) 86%);
  border: 1px solid color-mix(in srgb, var(--fkf-warning), transparent 48%);
  color: #8a5d00;
  grid-template-columns: max-content minmax(0, 1fr);
}

.offday-exception-danger {
  background: color-mix(in srgb, var(--fkf-danger), var(--fkf-surface) 88%);
  border-color: color-mix(in srgb, var(--fkf-danger), transparent 48%);
  color: var(--fkf-danger);
}

.offday-report-event {
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 90%);
  border: 1px solid color-mix(in srgb, var(--fkf-primary), transparent 50%);
  color: var(--fkf-primary);
  grid-template-columns: max-content minmax(0, 1fr) max-content;
}

.offday-report-success {
  background: color-mix(in srgb, var(--fkf-success), var(--fkf-surface) 88%);
  border-color: color-mix(in srgb, var(--fkf-success), transparent 48%);
  color: var(--fkf-success);
}

.offday-report-warning {
  background: color-mix(in srgb, var(--fkf-tertiary), var(--fkf-surface) 82%);
  border-color: color-mix(in srgb, var(--fkf-tertiary), transparent 42%);
  color: #8a5d00;
}

.offday-report-danger {
  background: color-mix(in srgb, var(--fkf-danger), var(--fkf-surface) 88%);
  border-color: color-mix(in srgb, var(--fkf-danger), transparent 48%);
  color: var(--fkf-danger);
}

.offday-report-more {
  color: var(--fkf-text-muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.offday-event.is-dragging {
  opacity: 0.68;
  transform: scale(0.98);
}

.offday-event-name {
  font-size: 0.76rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offday-event .badge {
  flex: 0 0 auto;
  font-size: 0.62rem;
}

.offday-report-day-hint {
  align-items: center;
  border: 1px dashed color-mix(in srgb, var(--fkf-border), transparent 15%);
  border-radius: 50%;
  color: color-mix(in srgb, var(--fkf-text-muted), transparent 12%);
  display: inline-flex;
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  opacity: 0.7;
  width: 22px;
}

.offday-event-controls {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.22rem;
  min-width: max-content;
}

.offday-status-marker {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.offday-status-approved {
  background: color-mix(in srgb, currentColor, transparent 88%);
  border: 1px solid color-mix(in srgb, currentColor, transparent 62%);
  color: currentColor;
}

.offday-status-pending {
  background: color-mix(in srgb, currentColor, transparent 88%);
  border: 1px solid color-mix(in srgb, currentColor, transparent 62%);
  color: currentColor;
}

.offday-event-action {
  align-items: center;
  background: color-mix(in srgb, var(--fkf-success), transparent 86%);
  border: 1px solid color-mix(in srgb, var(--fkf-success), transparent 58%);
  border-radius: 50%;
  color: var(--fkf-success);
  display: inline-flex;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}

.offday-event-action:hover,
.offday-event-action:focus {
  background: var(--fkf-success);
  color: #fff;
  outline: 0;
}

.fkf-modal-panel {
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-md);
  height: 100%;
  padding: 0.7rem;
}

.fkf-modal-panel-title {
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.offday-modal-list {
  display: grid;
  gap: 0.45rem;
}

.offday-modal-item {
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  padding: 0.5rem;
}

.offday-modal-employee {
  padding: 0.18rem 0.45rem 0.18rem 0.2rem;
}

.offday-modal-name {
  font-size: 0.78rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offday-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
  margin-top: 0.45rem;
}

.offday-warning-list {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.offday-warning-item {
  align-items: flex-start;
  background: var(--fkf-surface);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-text);
  display: flex;
  font-size: 0.78rem;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
}

.offday-warning-item i {
  color: var(--fkf-warning);
  flex: 0 0 auto;
}

.offday-warning-item strong,
.offday-warning-item small {
  display: block;
  line-height: 1.25;
}

.offday-warning-item small {
  color: var(--fkf-text-muted);
}

.offday-warning-danger {
  border-color: rgba(220, 53, 69, 0.28);
}

.offday-warning-danger i {
  color: var(--bs-danger);
}

.employee-policy-summary {
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 94%);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-text);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.42rem 0.55rem;
}

.calendar-report-modal-copy {
  background: color-mix(in srgb, var(--fkf-primary), var(--fkf-surface) 96%);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem;
}

.calendar-report-modal-copy strong,
.calendar-report-modal-copy span,
.calendar-report-modal-copy small {
  display: block;
}

.calendar-report-modal-copy strong {
  font-size: 0.9rem;
}

.calendar-report-modal-copy span,
.calendar-report-modal-copy small {
  color: var(--fkf-text-muted);
  font-size: 0.76rem;
}

.calendar-report-modal-list {
  display: grid;
  gap: 0.4rem;
}

.calendar-report-modal-item {
  align-items: center;
  background: var(--fkf-surface-muted);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  color: var(--fkf-text);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  min-height: 44px;
  padding: 0.42rem 0.5rem;
}

.calendar-report-modal-item > i {
  align-items: center;
  background: color-mix(in srgb, currentColor, transparent 88%);
  border-radius: var(--fkf-radius-sm);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.calendar-report-modal-main {
  display: grid;
  min-width: 0;
}

.calendar-report-modal-main strong,
.calendar-report-modal-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-report-modal-main strong {
  font-size: 0.8rem;
}

.calendar-report-modal-main small {
  color: var(--fkf-text-muted);
  font-size: 0.68rem;
}

.calendar-report-modal-value {
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.calendar-report-modal-success {
  color: var(--fkf-success);
}

.calendar-report-modal-warning {
  color: #8a5d00;
}

.calendar-report-modal-danger {
  color: var(--fkf-danger);
}

.offday-timeline-scale {
  color: var(--fkf-text-muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 700;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 0.3rem;
}

.offday-timeline-scale span:not(:first-child):not(:last-child) {
  text-align: center;
}

.offday-timeline-scale span:last-child {
  text-align: right;
}

.offday-timeline {
  display: grid;
  gap: 0.75rem;
}

.offday-timeline-row {
  display: grid;
  gap: 0.35rem;
}

.offday-timeline-station {
  font-size: 0.78rem;
  font-weight: 800;
}

.offday-timeline-track {
  background:
    linear-gradient(to right, transparent 0, transparent calc(25% - 1px), var(--fkf-border) calc(25% - 1px), var(--fkf-border) 25%, transparent 25%),
    linear-gradient(to right, transparent 0, transparent calc(50% - 1px), var(--fkf-border) calc(50% - 1px), var(--fkf-border) 50%, transparent 50%),
    linear-gradient(to right, transparent 0, transparent calc(75% - 1px), var(--fkf-border) calc(75% - 1px), var(--fkf-border) 75%, transparent 75%),
    color-mix(in srgb, var(--fkf-primary), transparent 96%);
  border: 1px solid var(--fkf-border);
  border-radius: var(--fkf-radius-sm);
  height: 72px;
  overflow: hidden;
  position: relative;
}

.offday-timeline-marker {
  border-radius: 999px;
  display: grid;
  font-size: 0.66rem;
  font-weight: 800;
  gap: 0;
  height: 26px;
  line-height: 1.05;
  min-width: 8px;
  overflow: hidden;
  padding: 0.16rem 0.42rem;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offday-timeline-marker-main,
.offday-timeline-marker-person {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offday-timeline-marker-person {
  font-size: 0.55rem;
  font-weight: 700;
  opacity: 0.84;
}

.offday-marker-scheduled {
  background: color-mix(in srgb, var(--fkf-primary), transparent 88%);
  border: 1px dashed color-mix(in srgb, var(--fkf-primary), transparent 45%);
  color: var(--fkf-primary);
}

.offday-marker-completed {
  background: color-mix(in srgb, var(--fkf-success), transparent 14%);
  border: 1px solid color-mix(in srgb, var(--fkf-success), transparent 20%);
  color: #fff;
}

.offday-marker-active {
  background: color-mix(in srgb, var(--fkf-tertiary), transparent 12%);
  border: 1px solid color-mix(in srgb, var(--fkf-tertiary), transparent 20%);
  color: #111827;
}

.offday-marker-with-employee {
  background: var(--employee-bg);
  border-color: color-mix(in srgb, var(--employee-bg), #000 18%);
  color: var(--employee-text);
}

.offday-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.offday-legend-chip {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.45rem;
}

@media (max-width: 575.98px) {
  .offday-employee-list {
    max-height: 260px;
    min-height: auto;
  }

  .offday-weekdays,
  .offday-calendar-grid {
    gap: 0.22rem;
  }

  .offday-weekdays {
    font-size: 0.62rem;
  }

  .offday-day {
    border-radius: 6px;
    gap: 0.2rem;
    min-height: 82px;
    padding: 0.24rem;
  }

  .offday-day-number {
    font-size: 0.72rem;
  }

  .offday-day-name {
    display: none;
  }

  .offday-event {
    border-radius: 5px;
    min-height: 22px;
    padding: 0.12rem 0.18rem;
  }

  .offday-shift-event,
  .offday-exception-event,
  .offday-report-event {
    border-radius: 5px;
    min-height: 22px;
    padding: 0.12rem 0.18rem;
  }

  .offday-event-name {
    font-size: 0.66rem;
  }

  .offday-shift-time {
    display: none;
  }

  .offday-event .badge {
    display: none;
  }

  .offday-event-action {
    height: 18px;
    width: 18px;
  }

  .offday-status-marker {
    height: 18px;
    width: 18px;
  }

  .offday-timeline-track {
    height: 74px;
  }
}

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

  html,
  body.fkf-modern {
    background: #fff !important;
    color: #111 !important;
  }

  body.fkf-modern {
    font-size: 11pt;
  }

  .fkf-topbar,
  .fkf-sidebar,
  .fkf-nav-backdrop,
  .fkf-print-hide,
  .fkf-table-tools,
  .fkf-table-pagination,
  .alert {
    display: none !important;
  }

  .fkf-main {
    margin-left: 0 !important;
    min-height: auto !important;
    padding-top: 0 !important;
  }

  .fkf-content {
    padding: 0 !important;
  }

  .fkf-page-title {
    color: #111 !important;
    font-size: 18pt;
  }

  .fkf-page-subtitle,
  .text-muted {
    color: #555 !important;
  }

  .fkf-modern .card,
  .fkf-card,
  .fkf-stat {
    background: #fff !important;
    border: 1px solid #ccd5df !important;
    box-shadow: none !important;
    color: #111 !important;
  }

  .fkf-print-section,
  .fkf-print-invoice-head,
  .fkf-modern .card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .fkf-print-section {
    margin-bottom: 8px !important;
  }

  .fkf-modern .card-header,
  .fkf-modern .card-footer {
    background: #f4f7fa !important;
    border-color: #ccd5df !important;
    color: #111 !important;
  }

  .fkf-modern .table {
    --bs-table-bg: #fff;
    --bs-table-color: #111;
    --bs-table-border-color: #ccd5df;
    color: #111 !important;
    font-size: 9.5pt;
  }

  .fkf-modern .table thead th {
    background: #eef2f6 !important;
    color: #111 !important;
  }

  .fkf-modern .badge {
    background: #fff !important;
    border: 1px solid #707a85 !important;
    color: #111 !important;
  }

  a[href]::after {
    content: "";
  }
}
