:root {
  --sf-bg: #f4f7f8;
  --sf-text: #142c3b;
  --sf-muted: #526574;
  --sf-line: #dce5e9;
  --sf-accent: #087f8c;
}
.sf-primary,
.sf-secondary,
.sf-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.sf-primary {
  background: var(--sf-accent);
  color: #fff;
}
.sf-primary:hover {
  background: #076e7a;
}
.sf-secondary {
  border-color: var(--sf-line);
  background: white;
  color: var(--sf-text);
}
.sf-secondary:hover {
  background: #f1f7f8;
}
.sf-danger {
  background: #fff1f2;
  color: #a92337;
  border-color: #f5cdd3;
}
.sf-danger:hover {
  background: #ffe4e8;
}
button:disabled {
  cursor: default;
}
.sf-primary:disabled,
.sf-secondary:disabled,
.sf-danger:disabled {
  opacity: 0.55;
}
.sf-dialog {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  background: white;
  color: var(--sf-text);
  box-shadow: 0 24px 90px #142c3b35;
  font-family: inherit;
}
.sf-dialog[open] {
  display: flex;
  flex-direction: column;
}
.sf-dialog.is-wide {
  width: min(920px, calc(100vw - 32px));
}
.sf-dialog::backdrop {
  background: #142c3b66;
  backdrop-filter: blur(3px);
}
.sf-dialog > header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--sf-line);
}
.sf-dialog h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 0;
}
.sf-dialog > header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--sf-muted);
  border: 1px solid var(--sf-line);
}
.sf-dialog-body {
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.sf-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sf-form > p {
  margin: 0;
  line-height: 1.6;
  color: var(--sf-muted);
}
.sf-form label:not(.sf-check) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.sf-form input:not([type="checkbox"]),
.sf-form select,
.sf-form textarea,
.sf-toolbar select,
.sf-search {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--sf-line);
  border-radius: 9px;
  background: white;
  color: var(--sf-text);
  font: inherit;
  outline: none;
}
.sf-form textarea {
  min-height: 90px;
  resize: vertical;
}
.sf-form input:focus,
.sf-form select:focus,
.sf-form textarea:focus,
.sf-search:focus {
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 3px #087f8c16;
}
.sf-check {
  display: flex;
  align-items: center;
  gap: 9px;
}
input[type="checkbox"] {
  accent-color: var(--sf-accent);
}
.sf-muted {
  color: var(--sf-muted);
}
.sf-error {
  color: #ae2637;
  background: #fff1f2;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.sf-error button {
  margin-left: 12px;
  text-decoration: underline;
}
.sf-notice {
  color: #08625e;
  background: #ecf8f5;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
}
.sf-ok {
  color: #087c62;
}
.sf-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  padding: 54px 24px;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  background: white;
  color: var(--sf-muted);
}
.sf-empty h3 {
  font-size: 19px;
  color: var(--sf-text);
  font-weight: 600;
}
.sf-empty > svg {
  color: #81a6ab;
}
.sf-empty p {
  max-width: 480px;
  line-height: 1.6;
}
.sf-empty .sf-primary {
  margin-top: 12px;
}
.sf-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 6px 0 12px;
}
.sf-login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sf-muted);
}
.sf-login-options button {
  color: var(--sf-accent);
  font-weight: 600;
  border-radius: 7px;
  padding: 5px;
}
.sf-login-options button:hover {
  background: #edf7f8;
}
.staff-auth-submit {
  background: var(--sf-accent) !important;
  box-shadow: none !important;
}
.staff-auth input:focus {
  border-color: var(--sf-accent) !important;
  --tw-ring-color: #087f8c18 !important;
}
.staff-register-group {
  box-shadow: none !important;
}
.staff-auth-layout {
  animation: sf-arrive 0.5s ease-out both;
}
.staff-auth-form > div {
  animation: sf-arrive 0.65s 0.1s ease-out both;
}
@keyframes sf-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sf-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}
.sf-toolbar > .sf-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.sf-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sf-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  padding: 10px 14px;
  color: var(--sf-muted);
  font-size: 14px;
  font-weight: 600;
}
.sf-tabs button[aria-selected="true"] {
  background: #eaf5f6;
  color: var(--sf-accent);
  border-color: #d0e8eb;
}
.sf-tabs button span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}
.sf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sf-actions > button:not(.sf-primary):not(.sf-secondary):not(.sf-danger) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--sf-line);
  color: var(--sf-muted);
}
.sf-status {
  display: inline-flex;
  align-items: center;
  background: #f0f4f5;
  color: var(--sf-muted);
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.sf-status.is-ok {
  background: #e8f6f0;
  color: #13704f;
}
.sf-status.is-error {
  background: #fff0f1;
  color: #ae2637;
}
.sf-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sf-process-card {
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  background: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sf-process-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sf-accent);
}
.sf-process-card h2 {
  font-size: 18px;
  font-weight: 650;
  color: var(--sf-text);
}
.sf-process-card h2 button {
  text-align: left;
}
.sf-process-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sf-muted);
  min-height: 44px;
}
.sf-process-card > small {
  color: var(--sf-muted);
  font-size: 12px;
}
.sf-process-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--sf-line);
  margin-top: auto;
  color: var(--sf-muted);
  font-size: 12px;
}
.sf-process-card footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sf-progress {
  height: 6px;
  background: #edf2f3;
  border-radius: 9px;
  overflow: hidden;
}
.sf-progress span {
  display: block;
  height: 100%;
  background: var(--sf-accent);
  border-radius: 9px;
  transition: width 0.25s;
}
.sf-participants {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--sf-line);
  padding: 12px;
  border-radius: 10px;
  min-width: 0;
}
.sf-participants legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0 5px;
}
.sf-form .sf-participants label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  font-weight: 400;
}
.sf-participants small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--sf-muted);
}
.sf-step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-form .sf-step-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f7fafb;
  border: 1px solid var(--sf-line);
  border-radius: 10px;
}
.sf-step-list small {
  display: block;
  color: var(--sf-muted);
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 4px;
}
.sf-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sf-section-heading h2 {
  font-size: 23px;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--sf-text);
}
.sf-section-heading p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sf-muted);
  max-width: 720px;
}
.sf-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.sf-metrics > button,
.sf-metrics > article {
  padding: 20px 22px;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: white;
  text-align: left;
}
.sf-metrics span {
  color: var(--sf-muted);
  font-size: 13px;
}
.sf-metrics strong {
  display: block;
  color: var(--sf-text);
  font-size: 29px;
  font-weight: 650;
  margin-top: 10px;
}
.sf-metrics > button:hover {
  border-color: var(--sf-accent);
}
.sf-search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--sf-line);
  border-radius: 9px;
  background: white;
  padding: 10px 12px;
  flex: 1;
  max-width: 420px;
  color: var(--sf-muted);
}
.sf-search-wrap input {
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 14px;
}
.sf-table-wrap {
  border: 1px solid var(--sf-line);
  background: white;
  border-radius: 12px;
  overflow-x: auto;
}
.sf-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--sf-text);
  min-width: 700px;
}
.sf-table th {
  padding: 14px 18px;
  background: #f8fafb;
  border-bottom: 1px solid var(--sf-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--sf-muted);
  white-space: nowrap;
}
.sf-table td {
  padding: 17px 18px;
  border-bottom: 1px solid #eaf0f2;
  vertical-align: middle;
}
.sf-table tr:last-child td {
  border-bottom: none;
}
.sf-table td strong {
  font-weight: 600;
}
.sf-table small {
  display: block;
  color: var(--sf-muted);
  font-size: 12px;
  margin-top: 5px;
}
.sf-table-wrap > .sf-empty {
  border: 0;
  border-top: 1px solid var(--sf-line);
  border-radius: 0;
}
.sf-checks {
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.sf-checks article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--sf-line);
}
.sf-checks article:last-child {
  border-bottom: none;
}
.sf-checks article > div {
  flex: 1;
  min-width: 0;
}
.sf-checks h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-text);
  margin-bottom: 4px;
}
.sf-checks p {
  font-size: 13px;
  color: var(--sf-muted);
  line-height: 1.5;
}
.sf-checks > article > svg {
  flex: none;
}
.sf-report {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  background: white;
  font-size: 14px;
}
.sf-report summary {
  cursor: pointer;
  color: var(--sf-muted);
}
.sf-report pre {
  max-height: 350px;
  overflow: auto;
  font-size: 12px;
  padding-top: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sf-profile-avatar {
  position: relative;
  flex: none;
  border-radius: 50%;
  background: none;
  padding: 0;
  cursor: zoom-in;
}
.sf-profile-avatar > svg {
  position: absolute;
  right: 2px;
  bottom: 2px;
  background: white;
  padding: 3px;
  width: 25px;
  height: 25px;
  border: 1px solid var(--sf-line);
  border-radius: 50%;
  color: var(--sf-accent);
}
.sf-profile-photo {
  display: block;
  max-width: 100%;
  max-height: 72dvh;
  object-fit: contain;
  margin: auto;
  border-radius: 12px;
}
.sf-profile-schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 24px;
}
.sf-profile-schedule > strong {
  font-size: 23px;
  color: var(--sf-accent);
}
.sf-request-key {
  font-size: 12px;
  color: var(--sf-accent);
  font-weight: 650;
  letter-spacing: 0.3px;
}
.staff-v3 .request-kanban-lane {
  border-radius: 12px !important;
  background: #edf2f4 !important;
  border: 1px solid var(--sf-line) !important;
  box-shadow: none !important;
}
.staff-v3 .request-kanban-card {
  background: white !important;
  border: 1px solid var(--sf-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 4px #142c3b05 !important;
}
.staff-v3 .request-board-title {
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: var(--sf-text) !important;
}
.staff-v3 .request-board-summary {
  padding: 18px !important;
}
.staff-v3 .request-workspace-toolbar {
  border-color: var(--sf-line) !important;
  background: white !important;
  box-shadow: none !important;
}
.sf-notifications {
  position: relative;
}
.sf-bell {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--sf-muted);
  border-radius: 10px;
  background: white;
  border: 1px solid var(--sf-line);
}
.sf-bell:hover {
  background: #f0f7f8;
}
.sf-bell > span {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid white;
  box-sizing: content-box;
  background: var(--sf-accent);
  color: white;
  font-size: 10px;
  line-height: 17px;
  border-radius: 12px;
}
.sf-notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(420px, calc(100vw - 24px));
  background: white;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  box-shadow: 0 18px 60px #142c3b20;
  z-index: 320;
  overflow: hidden;
}
.sf-notification-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--sf-line);
}
.sf-notification-panel h2 {
  font-size: 18px;
  font-weight: 650;
  color: var(--sf-text);
}
.sf-notification-panel h2 span {
  font-size: 12px;
  padding: 3px 7px;
  background: #eaf5f6;
  border-radius: 7px;
  color: var(--sf-accent);
  margin-left: 8px;
}
.sf-notification-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sf-line);
}
.sf-notification-list {
  max-height: min(500px, calc(100dvh - 235px));
  overflow: auto;
  overscroll-behavior: contain;
}
.sf-notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 20px;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #edf2f3;
  background: white;
}
.sf-notification:hover {
  background: #f7fafb;
}
.sf-notification.is-unread {
  background: #f0f8f9;
}
.sf-notification > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.sf-notification strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sf-text);
}
.sf-notification p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sf-muted);
  margin: 4px 0 7px;
  overflow-wrap: anywhere;
}
.sf-notification small {
  color: #80949e;
  font-size: 11px;
}
.sf-notification-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #e4f1f3;
  color: var(--sf-accent);
  border-radius: 9px;
  flex: none;
}
.sf-notification > i {
  width: 7px;
  height: 7px;
  background: var(--sf-accent);
  border-radius: 50%;
  margin-top: 7px;
  flex: none;
}
.sf-notification-panel .sf-empty {
  border: 0;
  border-radius: 0;
  padding: 36px 24px;
}
body .nik49-settings-shell {
  width: min(1080px, calc(100vw - 48px)) !important;
  height: min(780px, calc(100dvh - 48px)) !important;
  border-color: var(--sf-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 90px #142c3b30 !important;
}
body .nik49-settings-sidebar {
  background: #f7fafb !important;
  border-color: var(--sf-line) !important;
  width: 240px !important;
  padding: 22px 18px !important;
}
body .nik49-settings-title strong,
body .nik49-settings-topbar h3 {
  color: var(--sf-text) !important;
}
body .nik49-settings-tab {
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--sf-muted) !important;
  padding: 12px !important;
}
body .nik49-settings-tab.is-active {
  color: var(--sf-accent) !important;
  background: #e6f3f5 !important;
  border-color: transparent !important;
}
body .nik49-settings-tab.is-active svg {
  color: var(--sf-accent) !important;
}
body .nik49-settings-content {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body .nik49-settings-topbar {
  flex: none !important;
  padding: 22px 28px !important;
  border-color: var(--sf-line) !important;
}
body .nik49-settings-panel {
  flex: 1 !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 24px 28px !important;
}
body .nik49-settings-actions {
  flex: none !important;
  background: white !important;
  padding: 16px 28px !important;
  border-color: var(--sf-line) !important;
}
body .nik49-btn-primary {
  background: var(--sf-accent) !important;
  color: white !important;
}
body .nik49-field input:focus,
body .nik49-field select:focus {
  border-color: var(--sf-accent) !important;
  box-shadow: 0 0 0 3px #087f8c15 !important;
}
body .nik49-settings-shell .nik49-note-card {
  background: #f0f7f8 !important;
  border-color: #d0e5e8 !important;
  color: var(--sf-muted) !important;
}
@media (max-width: 1200px) {
  .sf-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .sf-process-grid {
    grid-template-columns: 1fr;
  }
  .sf-metrics {
    gap: 8px;
  }
  .sf-metrics > button,
  .sf-metrics > article {
    padding: 14px;
  }
  .sf-metrics strong {
    font-size: 23px;
  }
  .sf-section-heading {
    gap: 16px;
  }
  .sf-section-heading > .sf-primary {
    width: 100%;
  }
  .sf-dialog {
    max-height: calc(100dvh - 24px);
    width: calc(100vw - 24px);
  }
  .sf-dialog-body {
    padding: 18px;
  }
  .sf-dialog > header {
    padding: 18px;
  }
  .sf-notification-panel {
    position: fixed;
    right: 12px;
    top: 76px;
  }
  .sf-checks article {
    padding: 16px;
    flex-wrap: wrap;
  }
  .sf-checks article > .sf-status {
    margin-left: 38px;
  }
  body .nik49-settings-shell {
    width: calc(100vw - 16px) !important;
    height: calc(100dvh - 16px) !important;
    inset: 8px !important;
    border-radius: 12px !important;
  }
  body .nik49-settings-sidebar {
    width: 100% !important;
    padding: 12px !important;
  }
  body .nik49-settings-tab {
    padding: 9px 12px !important;
  }
  body .nik49-settings-nav {
    max-height: 100px !important;
    overflow: auto !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .staff-auth-layout,
  .staff-auth-form > div {
    animation: none !important;
  }
  .sf-progress span {
    transition: none;
  }
}
.sf-dialog button:focus-visible,
.sf-tabs button:focus-visible,
.sf-bell:focus-visible,
.sf-notification:focus-visible,
.sf-profile-avatar:focus-visible,
.sf-primary:focus-visible,
.sf-secondary:focus-visible,
.sf-danger:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 3px;
}
