.sf-workflow-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #172033;
}

.sfw-hero,
.sfw-empty,
.sfw-notification-card,
.sfw-workflow-banner,
.sfw-action-card,
.sfw-timeline-card,
.sfw-dashboard-widget {
  border: 1px solid rgba(12, 16, 54, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(12, 16, 54, 0.07);
}

.sfw-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #fff, #f5f7fb);
}

.sfw-kicker {
  display: block;
  margin-bottom: 6px;
  color: #29a29f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sfw-hero h1,
.sfw-empty h2,
.sfw-notification-card h2,
.sfw-action-card h2,
.sfw-dashboard-widget h3 {
  margin: 0;
  color: #0c1036;
  font-weight: 800;
  letter-spacing: 0;
}

.sfw-hero h1 {
  font-size: 1.55rem;
}

.sfw-hero p,
.sfw-empty p,
.sfw-notification-card p,
.sfw-action-card p {
  margin: 8px 0 0;
  color: #68738a;
  font-weight: 600;
}

.sfw-hero-metrics {
  display: flex;
  gap: 12px;
}

.sfw-hero-metrics > div {
  min-width: 108px;
  padding: 14px;
  border: 1px solid rgba(12, 16, 54, 0.07);
  border-radius: 15px;
  background: #fff;
}

.sfw-hero-metrics span,
.sfw-notification-foot time,
.sfw-dashboard-widget span {
  display: block;
  color: #68738a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sfw-hero-metrics strong {
  color: #0c1036;
  font-size: 1.35rem;
  font-weight: 800;
}

.sfw-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(12, 16, 54, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(12, 16, 54, 0.05);
}

.sfw-filter-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: transparent;
  color: #526075;
  font-weight: 800;
}

.sfw-filter-tabs button.active,
.sfw-filter-tabs button:hover {
  background: #eefafa;
  color: #126663;
}

.sfw-filter-tabs span {
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff;
  color: #0c1036;
  font-size: 0.72rem;
}

.sfw-notification-list {
  display: grid;
  gap: 14px;
}

.sfw-notification-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sfw-notification-card.is-unread {
  border-color: rgba(41, 162, 159, 0.28);
  background: linear-gradient(135deg, #f2fffe, #fff);
}

.sfw-notification-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(12, 16, 54, 0.1);
}

.sfw-notification-icon,
.sfw-empty i,
.sfw-workflow-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #eefafa;
  color: #29a29f;
  font-size: 1.1rem;
}

.sfw-type-warning .sfw-notification-icon,
.sfw-workflow-banner.is-submitted .sfw-workflow-icon {
  background: #fff5d7;
  color: #8a6400;
}

.sfw-type-error .sfw-notification-icon,
.sfw-workflow-banner.is-rejected .sfw-workflow-icon {
  background: #fff0f2;
  color: #ad2639;
}

.sfw-type-success .sfw-notification-icon,
.sfw-workflow-banner.is-approved .sfw-workflow-icon {
  background: #e9fbf0;
  color: #16683a;
}

.sfw-type-approval .sfw-notification-icon,
.sfw-workflow-banner.is-finalized .sfw-workflow-icon {
  background: #e8ecff;
  color: #26346d;
}

.sfw-notification-head,
.sfw-notification-foot,
.sfw-notification-actions,
.sfw-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sfw-notification-head h6 {
    font-weight: 600;
    color: var(--sf-accent);
}

.sfw-notification-badges,
.sfw-notification-actions,
.sfw-workflow-actions {
  justify-content: flex-end;
}

.sfw-type-badge,
.sfw-unread-badge,
.sfw-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.sfw-type-badge {
  background: #eef2f8;
  color: #526075;
}

.sfw-unread-badge {
  background: #0c1036;
  color: #fff;
}

.sfw-empty {
  display: grid;
  place-items: center;
  padding: 46px 24px;
  text-align: center;
}

.sfw-empty i {
  margin-bottom: 14px;
}

.sfw-workflow-banner {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-left: 5px solid #29a29f;
}

.sfw-workflow-banner.is-draft {
  border-left-color: #8b95a7;
}

.sfw-workflow-banner.is-submitted {
  border-left-color: #e7b019;
}

.sfw-workflow-banner.is-approved {
  border-left-color: #29a29f;
}

.sfw-workflow-banner.is-rejected {
  border-left-color: #dc3545;
}

.sfw-workflow-banner.is-finalized {
  border-left-color: #0c1036;
}

.sfw-workflow-banner h2 {
  margin: 0;
  color: #0c1036;
  font-size: 1rem;
  font-weight: 800;
}

.sfw-workflow-banner p {
  margin: 4px 0 0;
  color: #68738a;
}

.sfw-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sfw-timeline-step {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(12, 16, 54, 0.07);
  border-radius: 15px;
  background: #fff;
}

.sfw-timeline-step.is-active {
  border-color: rgba(41, 162, 159, 0.28);
  background: #f2fffe;
}

.sfw-timeline-step.is-rejected {
  border-color: rgba(220, 53, 69, 0.22);
  background: #fff7f8;
}

.sfw-timeline-step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 11px;
  background: #eef2f8;
  color: #526075;
}

.sfw-timeline-step.is-active span {
  background: #29a29f;
  color: #fff;
}

.sfw-timeline-step strong {
  display: block;
  color: #0c1036;
  font-weight: 800;
}

.sfw-action-card {
  padding: 18px;
}

.sfw-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.sfw-dashboard-widget {
  padding: 16px;
}

.sfw-dashboard-widget strong {
  display: block;
  color: #0c1036;
  font-size: 1.45rem;
  font-weight: 800;
}

.sfw-dashboard-widget small {
  color: #68738a;
  font-weight: 600;
}

.sfw-modal {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(12, 16, 54, 0.2);
}

.sfw-modal .modal-header,
.sfw-modal .modal-footer {
  border-color: rgba(12, 16, 54, 0.08);
}

.sfw-modal .modal-title {
  color: #0c1036;
  font-weight: 800;
}

.sfw-modal .form-control {
  border-color: #dfe5ef;
  border-radius: 12px;
}

.sfw-modal .form-control:focus {
  border-color: rgba(41, 162, 159, 0.7);
  box-shadow: 0 0 0 4px rgba(41, 162, 159, 0.13);
}

.sf-notification-menu {
  width: min(380px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 16, 54, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(12, 16, 54, 0.16);
}

.sf-notification-menu-head,
.sf-notification-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}

.sf-notification-menu-head strong,
.sf-notification-menu-head span {
  display: block;
}

.sf-notification-menu-head span {
  color: #68738a;
  font-size: 0.78rem;
  font-weight: 700;
}

.sf-notification-menu-list {
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
}

.sf-notification-menu-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  color: #172033;
  text-decoration: none;
}

.sf-notification-menu-item:hover,
.sf-notification-menu-item.is-unread {
  background: #f2fffe;
}

.sf-notification-menu-item i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #eefafa;
  color: #29a29f;
}

.sf-notification-menu-item strong,
.sf-notification-menu-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-notification-menu-item small,
.sf-notification-menu-foot a {
  color: #68738a;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.sf-notification-menu-empty {
  display: grid;
  place-items: center;
  padding: 28px 12px;
  color: #68738a;
  text-align: center;
}

@media (max-width: 991.98px) {
  .sfw-dashboard-grid,
  .sfw-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .sfw-hero,
  .sfw-notification-head,
  .sfw-notification-foot,
  .sfw-workflow-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .sfw-hero-metrics,
  .sfw-notification-actions,
  .sfw-workflow-actions,
  .sfw-notification-actions .btn,
  .sfw-notification-actions form,
  .sfw-workflow-actions .btn,
  .sfw-filter-tabs button {
    width: 100%;
  }

  .sfw-dashboard-grid,
  .sfw-timeline,
  .sfw-workflow-banner {
    grid-template-columns: 1fr;
  }

  .sfw-notification-card {
    grid-template-columns: 1fr;
  }
}
