/* Notification center */
.announcement-board {
  gap: 16px;
  padding: 18px;
  background: #f8fafc;
}

.announcement-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.announcement-center-head h2 {
  margin: 0;
  color: #0f1f3d;
  font-size: 26px;
  line-height: 1.15;
}

.announcement-center-head p {
  margin: 6px 0 0;
  color: #42526e;
  font-size: 13px;
  font-weight: 700;
}

.announcement-center-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.announcement-center-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe5f2;
}

.announcement-center-tab {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #42526e;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.announcement-center-tab span {
  color: inherit;
}

.announcement-center-tab.is-active {
  color: var(--brand) !important;
}

.announcement-center-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--brand) !important;
}

.announcement-category-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.announcement-category-strip>span,
.announcement-board-filter-label {
  color: #24324a;
  font-size: 12px;
  font-weight: 950;
}

.announcement-category-strip .announcement-category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-category-strip .announcement-category {
  display: inline-grid;
  grid-template-columns: auto auto;
  min-height: 32px;
  align-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 10px;
}

.announcement-category-strip .announcement-category-icon {
  display: none;
}

.announcement-category-strip .announcement-category small {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 2px 7px;
}

.announcement-category-strip .announcement-category.is-active,
.announcement-category-strip .announcement-category:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #0b63f6;
}

.announcement-board-layout {
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  min-height: 720px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 16px;
}

.announcement-board-list-panel,
.announcement-board-detail {
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.announcement-board-list-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  border-right: 1px solid #dbe5f2;
}

.announcement-board-toolbar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #edf2f7;
}

.announcement-filter-menu {
  position: relative;
}

.announcement-filter-menu>button,
.announcement-reset-filter,
.announcement-board-tune {
  min-height: 38px;
  border: 1px solid #dbe5f2;
  border-radius: 6px;
  background: #ffffff;
  color: #24324a;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.announcement-filter-menu .announcement-category-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 6;
  display: none;
  width: 250px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.announcement-filter-menu:hover .announcement-category-list,
.announcement-filter-menu:focus-within .announcement-category-list {
  display: grid;
}

.announcement-board-search {
  min-height: 38px;
  margin: 0;
  border-radius: 6px;
  background: #ffffff;
}

.announcement-board-tune {
  display: grid;
  min-width: 38px;
  place-items: center;
  padding: 0;
  color: #64748b;
}

.announcement-board-list-meta {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
}

.announcement-board-list-meta strong {
  color: #17213b;
  font-size: 13px;
}

.announcement-board-list {
  background: #ffffff;
}

.announcement-board-item {
  grid-template-columns: 52px minmax(0, 1fr) 8px;
  gap: 12px;
  min-height: 88px;
  border-top: 0;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
  padding: 14px;
}

.announcement-board-item:hover {
  background: #f8fbff;
}

.announcement-board-item.is-active {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #0b63f6;
}

.announcement-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 21px;
}

.announcement-tone-danger {
  background: #fee2e2;
  color: #dc2626;
}

.announcement-tone-warn {
  background: #fff7ed;
  color: #f97316;
}

.announcement-tone-good {
  background: #dcfce7;
  color: #16a34a;
}

.announcement-tone-info,
.announcement-tone-neutral {
  background: #e8f1ff;
  color: #0b63f6;
}

.announcement-item-copy {
  gap: 5px;
}

.announcement-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.announcement-item-head strong {
  overflow: hidden;
  color: #17213b;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-item-head time {
  color: #42526e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.announcement-item-copy>small {
  color: #42526e;
  font-size: 12px;
  line-height: 1.35;
}

.announcement-item-tags {
  min-height: 18px;
}

.announcement-item-tags em {
  border-radius: 4px;
  background: #eef2ff;
  color: #42526e;
  padding: 2px 6px;
  font-size: 10px;
  text-transform: none;
}

.announcement-item-tags em.is-pinned {
  background: #dbeafe;
  color: #0b63f6;
}

.announcement-unread-dot {
  width: 8px;
  height: 8px;
  background: #0b63f6;
}

.announcement-board-detail {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.announcement-detail-head {
  align-items: flex-start;
  padding: 26px 28px 20px;
}

.announcement-detail-titleline {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.announcement-detail-main-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  font-weight: 950;
}

.announcement-detail-titleline h3 {
  margin: 0 0 7px;
  color: #0f1f3d;
  font-size: 20px;
  line-height: 1.25;
}

.announcement-detail-titleline small {
  display: block;
  margin-top: 7px;
  color: #42526e;
  font-size: 12px;
  font-weight: 750;
}

.announcement-detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.announcement-detail-tags em {
  border-radius: 5px;
  background: #eef2ff;
  color: #0b63f6;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.announcement-detail-tags em.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.announcement-detail-tags em.is-warn {
  background: #ffedd5;
  color: #c2410c;
}

.announcement-detail-actions {
  gap: 10px;
}

.announcement-detail-actions button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.announcement-detail-article {
  overflow: auto;
  padding: 22px 28px;
}

.announcement-detail-content {
  color: #17213b;
  font-size: 14px;
  line-height: 1.75;
}

.announcement-detail-info {
  grid-template-columns: 1fr;
  margin-top: 24px;
}

.announcement-detail-info>span {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  border-right: 0;
  border-bottom: 1px solid #edf2f7;
  padding: 12px 14px;
}

.announcement-detail-info>span:last-child {
  border-bottom: 0;
}

.announcement-detail-info small {
  color: #42526e;
  font-size: 12px;
  text-transform: none;
}

.announcement-detail-info strong {
  color: #17213b;
  font-size: 13px;
}

.announcement-detail-foot {
  align-items: center;
  padding: 16px 28px 24px;
}

.announcement-detail-foot>div {
  display: flex;
  gap: 10px;
}

@media (max-width: 1180px) {
  .announcement-board-layout {
    grid-template-columns: 1fr;
  }

  .announcement-board-detail {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .announcement-board {
    padding: 12px;
  }

  .announcement-center-head,
  .announcement-detail-foot {
    display: grid;
  }

  .announcement-board-toolbar,
  .announcement-detail-titleline,
  .announcement-detail-info,
  .announcement-detail-info>span {
    grid-template-columns: 1fr;
  }

  .announcement-center-actions,
  .announcement-detail-foot>div {
    justify-content: stretch;
  }

  .announcement-center-actions button,
  .announcement-detail-foot button {
    width: 100%;
  }
}

@media (max-width: 900px) {

  .workflow-instance-hero,
  .workflow-instance-grid,
  .workflow-instance-payload {
    grid-template-columns: 1fr;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "topbar topbar"
    "sidebar content"
    "footer footer";
  gap: 12px 18px;
  min-height: 100vh;
  background: #f6f8fc;
  padding: 12px 18px 18px;
  transition: grid-template-columns 180ms ease;
}

.app-shell.is-sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 104px);
  overflow-y: auto;
  background: var(--sidebar);
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 14px 12px;
}

.sidebar-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 10px;
  padding: 0 3px 6px;
  border-bottom: 1px solid #eef2f7;
}

.sidebar-control>span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--sidebar-line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 24px var(--brand-shadow), inset 0 -10px 18px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
}

.brand-mark.has-image {
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.brand-mark.has-image img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.sidebar-toggle {
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 0;
  color: #2563eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.sidebar-toggle:hover {
  background: #eff6ff;
}

.sidebar-toggle span {
  width: 11px;
  height: 11px;
  border-top: 2px solid #2563eb;
  border-left: 2px solid #2563eb;
  transform: rotate(-45deg);
}

.app-shell.is-sidebar-collapsed .sidebar-toggle span {
  transform: rotate(135deg);
}

.app-shell.is-sidebar-collapsed .sidebar-control {
  justify-content: center;
  padding: 0 0 8px;
}

.app-shell.is-sidebar-collapsed .sidebar-control>span {
  display: none;
}

.sidebar-status {
  border: 1px solid var(--sidebar-line);
  border-radius: var(--radius);
  background: var(--sidebar-soft);
  padding: 12px;
}

.sidebar-status {
  margin-bottom: 18px;
}

.sidebar-status span {
  display: block;
  color: #9a3412;
  font-size: 12px;
}

.sidebar-status strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.nav-tabs {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
}

.nav-item {
  display: grid;
  gap: 4px;
}

.nav-section {
  display: grid;
  gap: 5px;
  margin: 8px 0 2px;
}

.nav-section>span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 12px 10px 4px;
  text-transform: uppercase;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  text-align: left;
  padding: 0 11px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tab-button:hover {
  background: var(--sidebar-soft);
  color: var(--brand);
  transform: translateX(2px);
}

.tab-button.is-active {
  border-color: var(--sidebar-line);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 78%, var(--brand));
  color: #ffffff;
  box-shadow: 0 14px 28px var(--brand-shadow);
}

.tab-icon {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
}

.tab-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-children {
  display: none;
  gap: 3px;
  margin: 0 0 6px 32px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--sidebar-line);
}

.nav-item.is-expanded .nav-children {
  display: grid;
}

.tab-child {
  display: flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.tab-child:hover {
  background: var(--sidebar-soft);
  color: var(--brand);
}

.tab-child.is-active {
  border-color: transparent;
  background: var(--sidebar-soft);
  color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}

.tab-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.is-sidebar-collapsed .sidebar-status,
.app-shell.is-sidebar-collapsed .nav-section>span,
.app-shell.is-sidebar-collapsed .nav-children,
.app-shell.is-sidebar-collapsed .tab-label {
  display: none;
}

.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .sidebar-status,
.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .sidebar-control>span,
.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .nav-section>span,
.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .nav-children,
.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .tab-label {
  display: initial;
}

.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .sidebar-control {
  justify-content: space-between;
  padding: 0 3px 6px;
}

.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .nav-children {
  display: none;
}

.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .nav-item.is-expanded .nav-children {
  display: grid;
}

.app-shell.is-sidebar-collapsed .nav-tabs {
  margin-top: 38px;
}

.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .nav-tabs {
  margin-top: 0;
}

.app-shell.is-sidebar-collapsed .tab-button {
  justify-content: center;
  padding: 0;
  transform: none;
}

.app-shell.is-sidebar-collapsed:has(.sidebar:hover, .sidebar:focus-within) .tab-button {
  justify-content: flex-start;
  padding: 0 11px;
}

.content {
  grid-area: content;
  min-width: 0;
  padding: 0;
}

.app-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: 42px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 6px 0;
}

.app-footer div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.app-footer span {
  color: #64748b;
}

.app-footer strong {
  color: #0f172a;
  font-size: 13px;
}

.app-footer-meta {
  justify-content: flex-end;
  text-align: right;
}

.mobile-home {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(560px, 1.5fr) auto;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
  padding: 12px 16px;
}

.topbar.is-compact-context {
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 12px 18px;
}

.topbar.is-compact-context .page-title-block {
  min-height: 40px;
}

.topbar.is-compact-context .topbar-brand-copy strong {
  font-size: 18px;
}

.page-title-block {
  display: grid;
  align-content: center;
  min-height: 42px;
  min-width: 0;
  gap: 4px;
}

.topbar-brandline {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topbar-brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
}

.topbar-sidebar-toggle {
  margin-left: 6px;
  flex: 0 0 auto;
}

.topbar-brand-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.topbar-brand-copy strong {
  color: #123a7b;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: normal;
}

.topbar-brand-copy small {
  display: block;
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.topbar-global-search {
  display: none;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  justify-self: center;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 14px;
  min-height: 46px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.topbar-global-search:not([hidden]) {
  display: flex;
}

.topbar-global-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.topbar-global-search input::placeholder {
  color: #94a3b8;
}

.account-wrap {
  position: relative;
}

.account-button {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  max-width: 230px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #172033;
  padding: 4px 10px 4px 4px;
}

.account-button:hover,
.account-button[aria-expanded="true"] {
  border-color: rgba(249, 115, 22, 0.34);
  background: #fff7ed;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-avatar.is-large {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  font-size: 16px;
}

.account-button-copy {
  min-width: 0;
  text-align: left;
}

.account-button-copy strong,
.account-button-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button-copy strong {
  max-width: 150px;
  font-size: 12px;
  font-weight: 900;
}

.account-button-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-chevron {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.account-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
  padding: 14px;
}

.account-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.account-card-head strong,
.account-card-head span {
  display: block;
}

.account-card-head strong {
  color: #172033;
  font-size: 18px;
  line-height: 1.2;
}

.account-card-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-card-section {
  display: grid;
  gap: 0;
  padding: 8px 0;
}

.account-card-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-top: 6px;
}

.account-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  padding: 9px 0;
  font-size: 13px;
}

.account-info-row span {
  color: var(--muted);
  font-weight: 700;
}

.account-info-row strong {
  min-width: 0;
  color: #172033;
  overflow-wrap: anywhere;
}

.account-logout {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 8px;
  background: #fff7ed;
  color: var(--brand);
  font-weight: 900;
}

.account-logout:hover {
  background: #ffedd5;
}

.account-settings-panel {
  display: grid;
  gap: 16px;
}

.account-settings-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.account-settings-avatar,
.account-settings-note,
.account-settings-form,
.account-settings-avatar-panel,
.account-settings-review-queue {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.account-settings-avatar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.account-settings-avatar strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.account-settings-avatar small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.account-settings-note strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.account-settings-note p,
.account-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 12px;
}

.account-settings-form {
  display: grid;
  gap: 12px;
}

.account-settings-avatar-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.account-settings-request-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-settings-request-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px;
}

.account-settings-request-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.account-settings-request-head strong {
  color: var(--ink);
  font-size: 13px;
}

.account-settings-request-head span,
.account-settings-request-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.account-settings-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-wrap {
  position: relative;
}

.app-launcher-wrap {
  position: relative;
}

.app-launcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  padding: 0;
}

.app-launcher-button:hover,
.app-launcher-button[aria-expanded="true"] {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #0f7bdc;
}

.app-launcher-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-launcher-panel {
  position: absolute;
  z-index: 95;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  padding: 16px;
}

.app-launcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  padding: 0 2px 12px;
}

.app-launcher-head strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.app-launcher-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
  padding-top: 14px;
}

.app-launcher-item {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 106px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #172033;
  padding: 12px 8px 10px;
  text-align: center;
}

.app-launcher-item:hover {
  border-color: #dbeafe;
  background: #f8fbff;
}

.app-launcher-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
}

.app-launcher-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-launcher-icon svg circle {
  fill: currentColor;
  stroke: none;
  opacity: 0.34;
}

.app-launcher-item strong {
  max-width: 100%;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-launcher-item small {
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-launcher-item.is-chat .app-launcher-icon {
  background: #eef4ff;
  color: #3b82f6;
}

.app-launcher-item.is-attendance .app-launcher-icon {
  background: #ecfdf3;
  color: #16a34a;
}

.app-launcher-item.is-payroll .app-launcher-icon {
  background: #fff7ed;
  color: #f97316;
}

.app-launcher-item.is-profile .app-launcher-icon,
.app-launcher-item.is-directory .app-launcher-icon {
  background: #f0fdfa;
  color: #0f766e;
}

.app-launcher-item.is-workflow .app-launcher-icon {
  background: #eef2ff;
  color: #4f46e5;
}

.app-launcher-item.is-docs .app-launcher-icon {
  background: #eff6ff;
  color: #2563eb;
}

.app-launcher-item.is-kpi .app-launcher-icon {
  background: #fef2f2;
  color: #dc2626;
}

.app-launcher-item.is-training .app-launcher-icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.app-launcher-item.is-calendar .app-launcher-icon {
  background: #fff7ed;
  color: #ea580c;
}

.app-launcher-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  padding: 0;
}

.notification-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button.has-items {
  border-color: rgba(249, 115, 22, 0.42);
  background: #fff7ed;
  color: var(--brand);
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.notification-head strong {
  color: #172033;
  font-size: 14px;
}

.notification-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notification-read-all,
.notification-read {
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  background: #fff7ed;
  color: var(--brand);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.notification-read-all:hover,
.notification-read:hover {
  border-color: rgba(249, 115, 22, 0.42);
  background: #ffedd5;
}

.notification-list {
  max-height: 380px;
  overflow: auto;
  padding: 6px;
}

.notification-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
}

.notification-group:hover {
  background: #f8fafc;
}

.notification-open {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px;
  text-align: left;
}

.notification-read {
  margin-right: 8px;
  white-space: nowrap;
}

.notification-actions {
  display: flex;
  gap: 6px;
  padding-right: 8px;
}

.notification-actions .notification-read {
  margin-right: 0;
}

.notification-open strong,
.notification-open small {
  display: block;
}

.notification-open strong {
  color: #172033;
  font-size: 13px;
}

.notification-open small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notification-open b {
  align-self: start;
  min-width: 26px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--brand);
  padding: 4px 7px;
  text-align: center;
  font-size: 12px;
}

.notification-empty {
  padding: 18px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.logout-action {
  min-height: 24px;
  border-color: var(--line);
  background: #ffffff;
  color: var(--blue);
  padding: 0 8px;
  font-size: 12px;
}

.logout-action:hover {
  border-color: rgba(249, 115, 22, 0.34);
  background: #fff7ed;
}

.toolbar,
.searchbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(130px, 0.72fr) minmax(230px, 1.15fr) minmax(132px, 0.72fr) minmax(132px, 0.72fr) auto;
  justify-content: stretch;
  align-items: end;
  min-width: 0;
  row-gap: 0;
  gap: 8px;
}

.toolbar[hidden],
.searchbar[hidden] {
  display: none !important;
}

.toolbar-refresh-action {
  min-width: 88px;
  min-height: 36px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.toolbar input,
.toolbar select,
.toolbar .compact-action {
  min-height: 36px;
  border-radius: 10px;
  padding-inline: 12px;
}

.toolbar label {
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  gap: 4px;
}

.topbar-account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  min-width: max-content;
  padding-bottom: 1px;
}

.toolbar>label {
  min-width: 0;
}

.toolbar>label:first-child {
  min-width: 0;
}

.toolbar>label:has(#fromDate),
.toolbar>label:has(#toDate) {
  min-width: 0;
}

@media (max-width: 760px) {
  .app-launcher-panel {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .app-launcher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .app-launcher-item {
    min-height: 96px;
    padding: 10px 6px 8px;
  }

  .app-launcher-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .app-launcher-icon svg {
    width: 28px;
    height: 28px;
  }

  .app-launcher-item strong {
    font-size: 13px;
  }
}

.month-switcher {
  display: grid;
  grid-template-columns: 36px minmax(150px, 1fr) 36px;
  gap: 6px;
  align-items: end;
  min-width: 0;
}

.month-switcher label {
  min-width: 0;
}

.compact-action {
  min-width: 40px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

label {
  display: grid;
  gap: 7px;
  min-width: 132px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: var(--subtle);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(249, 115, 22, 0.58);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
  outline: 0;
}

textarea {
  padding-top: 9px;
  padding-bottom: 9px;
  resize: vertical;
}

button {
  min-height: 38px;
  border: 1px solid var(--brand-dark);
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.2);
  transform: translateY(-1px);
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-action {
  min-width: 136px;
}

.secondary-action,
.table-action {
  border-color: var(--line);
  background: #ffffff;
  color: var(--blue);
}

.segmented-actions {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.segmented-actions .secondary-action {
  min-width: 64px;
  border-color: transparent;
}

.segmented-actions .secondary-action.is-active {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #ffffff;
}

.secondary-action:hover,
.table-action:hover {
  border-color: rgba(249, 115, 22, 0.34);
  background: #fff7ed;
  box-shadow: none;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.link-action {
  text-decoration: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.12);
}

.metric[data-tone="today"]::before {
  background: rgba(251, 146, 60, 0.15);
}

.metric[data-tone="growth"]::before {
  background: rgba(22, 163, 74, 0.11);
}

.metric[data-tone="pause"]::before {
  background: rgba(217, 119, 6, 0.12);
}

.metric[data-tone="attendance"]::before {
  background: rgba(124, 58, 237, 0.11);
}

.metric[data-tone="risk"]::before {
  background: rgba(220, 38, 38, 0.1);
}

.metric:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
  font-size: 12px;
}

.workbench {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.workbench:has(.searchbar[data-view="employees"]) {
  overflow: visible;
}

.workbench:has(.searchbar[data-view="overview"]) .workbench-header {
  display: none;
}

.workbench:has(.workflow-hub),
.workbench:has(.workflow-library-page) {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.workbench:has(.workflow-hub) .workbench-header,
.workbench:has(.workflow-library-page) .workbench-header {
  display: none;
}

.workbench:has(.workflow-hub) .dashboard-panel,
.workbench:has(.workflow-library-page) .dashboard-panel {
  padding: 0;
}

.workbench-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--soft-line);
  padding: 20px 26px 18px;
}

.workbench-header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.workbench-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 720px;
}

.view-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.view-action-field {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.view-action-field input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.searchbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: center !important;
  border-bottom: 1px solid var(--soft-line) !important;
  background: #ffffff !important;
  padding: 14px 24px !important;
}

.filter-title {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  border-right: 1px solid var(--line) !important;
  padding-right: 20px !important;
  margin-right: 8px !important;
  min-height: 42px !important;
}

.filter-title span {
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-title strong {
  display: block;
  margin-top: 2px !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 700;
}

.searchbar label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 130px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.searchbar label:has(#searchInput) {
  flex: 1 1 240px !important;
}

.searchbar label:has(#sortDirSelect),
.searchbar label:has(#limitSelect) {
  min-width: 90px !important;
  max-width: 110px !important;
}

.searchbar input,
.searchbar select {
  width: 100% !important;
  min-height: 38px !important;
  padding: 6px 12px !important;
  border: 1px solid #dce4ee !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  transition: all 150ms ease !important;
}

.searchbar input:focus,
.searchbar select:focus {
  border-color: var(--brand) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px var(--brand-shadow) !important;
  outline: none !important;
}

.searchbar[data-view="employees"] {
  position: sticky;
  top: 0;
  z-index: 9;
  border-top: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04) !important;
}

.searchbar[data-view="employees"] .filter-title {
  display: none !important;
}

.searchbar[data-view="employees"] label {
  gap: 6px !important;
}

.searchbar[data-view="employees"] input,
.searchbar[data-view="employees"] select {
  min-height: 38px !important;
  border-color: #dce4ee !important;
  border-radius: 8px !important;
}

.searchbar[data-view="employees"] input:focus,
.searchbar[data-view="employees"] select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-shadow) !important;
}

.searchbar[data-view="employees"] label:has(#limitSelect) {
  max-width: 110px !important;
}

.status-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 2200;
  width: min(720px, calc(100vw - 32px));
  margin: 0;
  border: 1px solid #f2b8b5;
  border-radius: 6px;
  background: #fff5f4;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
  color: var(--red);
  padding: 10px 12px;
  font-weight: 700;
  transform: translateX(-50%);
}

.status-banner strong {
  display: block;
  line-height: 1.35;
}

.status-banner details {
  margin-top: 8px;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 700;
}

.status-banner summary {
  cursor: pointer;
}

.status-banner pre {
  max-height: 180px;
  overflow: auto;
  margin: 8px 0 0;
  border: 1px solid rgba(242, 184, 181, 0.85);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px;
  font: 11px/1.45 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.status-banner.is-success {
  border-color: #9bd8c8;
  background: #effaf6;
  color: #0f766e;
}

.dashboard-panel {
  padding: 16px;
}

.hr-action-board {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.hr-action-board-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.hr-action-board-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hr-action-board-head h3 {
  margin: 2px 0 0;
  font-size: 20px;
}

.hr-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
}

.hr-action-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hr-action-main {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: #ffffff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.hr-action-main:hover {
  background: #f8fafc;
}

.hr-action-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #eef6f5;
  color: var(--brand);
}

.hr-action-icon svg {
  width: 20px;
  height: 20px;
}

.hr-action-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hr-action-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-action-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.hr-action-count {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #edf1f5;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.hr-action-card.is-danger .hr-action-count {
  background: #fff0ed;
  color: var(--red);
}

.hr-action-card.is-warn .hr-action-count {
  background: #fff7e8;
  color: #b45309;
}

.hr-action-card.is-good .hr-action-count {
  background: #effaf6;
  color: var(--green);
}

.hr-action-list {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 12px 14px 14px;
}

.hr-action-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: baseline;
}

.hr-action-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.hr-action-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-action-row small {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-action-empty {
  display: grid;
  min-height: 84px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.portal-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.portal-main,
.portal-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.portal-card,
.portal-hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
}

.portal-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(250px, 0.8fr);
  gap: 20px;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  padding: 30px 34px;
  color: #fff;
  background: var(--hero-bg, linear-gradient(90deg, rgba(5, 28, 76, 0.98), rgba(10, 51, 119, 0.88), rgba(14, 75, 135, 0.68)), linear-gradient(135deg, #0f3d91, #1e40af 54%, #0f766e));
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 44%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 44px);
  opacity: 0.8;
}

.portal-hero-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 3px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: #fff;
  color: #0f3d91;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  z-index: 1;
  overflow: hidden;
}

.portal-hero-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-hero-copy {
  min-width: 0;
  z-index: 1;
}

.portal-hero .report-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.portal-hero h3 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.2;
}

.portal-hero p {
  margin: 8px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.6;
}

.portal-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.portal-hero-facts span {
  display: grid;
  gap: 3px;
  min-width: 150px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 14px;
}

.portal-hero-facts strong {
  color: #fff;
  font-size: 16px;
}

.portal-hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-items: end;
  min-height: 150px;
}

.portal-hero-visual span {
  position: absolute;
  bottom: 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 22px);
  box-shadow: 0 22px 36px rgba(2, 6, 23, 0.18);
}

.portal-hero-visual span:nth-child(1) {
  right: 150px;
  width: 86px;
  height: 96px;
  border-radius: 12px 12px 0 0;
}

.portal-hero-visual span:nth-child(2) {
  right: 62px;
  width: 112px;
  height: 134px;
  border-radius: 14px 14px 0 0;
}

.portal-hero-visual span:nth-child(3) {
  right: -8px;
  width: 94px;
  height: 78px;
  border-radius: 12px 12px 0 0;
}

.portal-hero-facts small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.portal-card {
  padding: 18px 20px;
}

.portal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.portal-section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.portal-section-head>span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 950;
}

.portal-link-button {
  border: 0;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 3px 0;
}

.portal-link-button:hover {
  background: transparent;
  box-shadow: none;
  color: #0f3d91;
  transform: none;
}

.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portal-action-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  padding: 16px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-action-card:hover,
.portal-module-tile:hover,
.portal-news-item:hover,
.portal-doc-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: #fff;
}

.portal-action-card:disabled,
.portal-module-tile:disabled,
.portal-news-item:disabled,
.portal-doc-item:disabled {
  cursor: default;
  opacity: 0.55;
}

.portal-action-icon,
.portal-module-tile>span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
}

.portal-action-icon svg,
.portal-module-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-action-card strong,
.portal-module-tile strong,
.portal-news-item strong,
.portal-doc-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.portal-action-card small,
.portal-module-tile small,
.portal-news-item small,
.portal-doc-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.portal-action-card em {
  grid-row: 3;
  color: #dc2626;
  font-size: 32px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
}

.portal-module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 14px;
}

.portal-module-tile {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.portal-module-tile>span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.portal-module-tile strong {
  font-size: 13px;
}

.portal-module-tile small {
  display: block;
}

.portal-operations .portal-section-head>span {
  border-radius: 999px;
  background: #e8f3ff;
  color: #155bd4;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.portal-operation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}

.portal-operation-card {
  display: grid;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-operation-card:hover {
  border-color: #b7cdf4;
  background: #eef5ff;
}

.portal-operation-card small,
.portal-operation-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.portal-operation-card strong {
  color: #17213b;
  font-size: 20px;
  line-height: 1.2;
}

.portal-side .portal-card {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.045);
}

.portal-news-list,
.portal-doc-list {
  gap: 12px;
}

.portal-news-item,
.portal-doc-item {
  min-height: 48px;
}

.portal-bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.portal-module-tile.is-green>span {
  background: #ecfdf3;
  color: #16a34a;
}

.portal-module-tile.is-orange>span,
.portal-module-tile.is-amber>span {
  background: #fff7ed;
  color: #f97316;
}

.portal-module-tile.is-purple>span {
  background: #f5f3ff;
  color: #7c3aed;
}

.portal-module-tile.is-red>span {
  background: #fff1f2;
  color: #e11d48;
}

.portal-bottom-grid,
.portal-hr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.portal-event-list,
.portal-birthday-list,
.portal-news-list,
.portal-doc-list {
  display: grid;
  gap: 10px;
}

.portal-event {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.portal-event>span {
  display: grid;
  place-items: center;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.portal-event>span strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.portal-event>span small,
.portal-event div small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-event div strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.portal-birthday-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-birthday {
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
}

.portal-birthday span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 950;
}

.portal-birthday strong {
  color: var(--ink);
  font-size: 13px;
}

.portal-birthday small {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.portal-side-card {
  padding: 16px;
}

.portal-news-item,
.portal-doc-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  min-width: 0;
  padding: 10px 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-news-item>span,
.portal-doc-item>span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}

.portal-doc-item>span {
  background: #fff1f2;
  color: #dc2626;
}

.portal-news-item>div,
.portal-doc-item>div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-news-item strong,
.portal-doc-item strong {
  overflow-wrap: anywhere;
}

.portal-news-item small,
.portal-doc-item small {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.portal-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-review-block {
  display: grid;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fbfdff;
  padding: 12px;
}

.portal-review-block>button {
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-review-block>button strong {
  color: #17213b;
  font-size: 13px;
}

.portal-review-block>button small,
.portal-review-empty {
  color: var(--muted);
  font-size: 11px;
}

.portal-review-list {
  display: grid;
  gap: 6px;
}

.portal-review-list>span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf1f7;
  padding-top: 6px;
}

.portal-review-list strong {
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-review-list em {
  border-radius: 999px;
  background: #eef4ff;
  color: #155bd4;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.portal-data-list {
  display: grid;
  gap: 8px;
}

.portal-data-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portal-data-list button:hover {
  border-color: #bfd2f4;
  background: #f3f7ff;
}

.portal-data-list button>span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: #1764d8;
  font-size: 11px;
  font-weight: 900;
}

.portal-data-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.portal-data-list strong {
  color: #17213b;
  font-size: 12px;
}

.portal-data-list small,
.portal-data-list em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.portal-data-list em {
  grid-column: 2;
}

.portal-hr-snapshot .portal-hr-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-hr-grid .dashboard-card {
  grid-column: auto;
  grid-row: auto;
  box-shadow: none;
}

.module-dashboard {
  display: grid;
  gap: 16px;
  padding: 4px;
}

.module-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
  padding: 24px 26px;
}

.module-dashboard-hero h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.16;
}

.module-dashboard-hero p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.module-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-dashboard-metrics article,
.module-dashboard-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
}

.module-dashboard-metrics article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 18px;
}

.module-dashboard-metrics span,
.module-dashboard-metrics small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.module-dashboard-metrics strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.module-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.module-dashboard-card {
  padding: 20px;
}

.module-dashboard-list {
  display: grid;
  gap: 10px;
}

.module-dashboard-list button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #fbfdff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 12px;
  text-align: left;
}

.module-dashboard-list button:hover,
.module-dashboard-mini button:hover {
  border-color: #bfdbfe;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transform: none;
}

.module-dashboard-list button>span,
.module-dashboard-mini button>span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}

.module-dashboard-list svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-dashboard-list strong,
.module-dashboard-mini strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.module-dashboard-list small,
.module-dashboard-mini small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.module-dashboard-list em {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  padding: 6px 10px;
}

.module-dashboard-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-dashboard-mini button {
  display: grid;
  gap: 8px;
  min-height: 124px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #fbfdff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 14px;
  text-align: left;
}

.module-dashboard.is-green .module-dashboard-list button>span,
.module-dashboard.is-green .module-dashboard-mini button>span {
  background: #ecfdf3;
  color: #16a34a;
}

.module-dashboard.is-amber .module-dashboard-list button>span,
.module-dashboard.is-amber .module-dashboard-mini button>span {
  background: #fff7ed;
  color: #f97316;
}

.module-dashboard.is-purple .module-dashboard-list button>span,
.module-dashboard.is-purple .module-dashboard-mini button>span {
  background: #f5f3ff;
  color: #7c3aed;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  grid-column: span 4;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dashboard-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.wide-card {
  grid-column: span 8;
}

.health-card {
  grid-column: span 4;
  grid-row: span 2;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-heading h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.health-score {
  display: grid;
  min-width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
}

.health-score.good {
  background: var(--green);
}

.health-score.warn {
  background: var(--amber);
}

.health-score.bad {
  background: var(--red);
}

.health-meter,
.bar-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #edf1f5;
}

.health-meter span,
.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.health-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.health-list span,
.donut-legend span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.health-list strong,
.donut-legend strong {
  color: var(--ink);
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.bar-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-label strong {
  color: var(--ink);
}

.donut-layout {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  align-items: center;
}

.donut {
  display: grid;
  width: 122px;
  height: 122px;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ffffff;
}

.donut span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.donut-legend {
  display: grid;
  gap: 8px;
}

.donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: 0 0 10px;
  margin-top: 4px;
}

.donut-legend span {
  justify-content: flex-start;
}

.donut-legend span strong {
  margin-left: auto;
}

.column-chart {
  display: flex;
  gap: 8px;
  align-items: end;
  min-height: 190px;
  border-bottom: 1px solid var(--soft-line);
  padding-top: 10px;
}

.column-item {
  display: grid;
  flex: 1;
  min-width: 34px;
  height: 180px;
  align-items: end;
  gap: 6px;
  text-align: center;
}

.column-item span {
  display: block;
  min-height: 6px;
  border-radius: 5px 5px 0 0;
  background: var(--blue);
}

.column-item small {
  color: var(--muted);
  font-size: 12px;
}

.mini-table-wrap {
  overflow: auto;
}

.mini-table {
  min-width: 620px;
}

.mini-table th,
.mini-table td {
  padding: 8px 10px;
}

.hr-import-table {
  min-width: 820px;
}

.hr-import-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.hr-import-field-controls {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.hr-import-field-controls>div:first-child {
  display: grid;
  gap: 4px;
}

.hr-import-field-controls strong {
  color: var(--ink);
}

.hr-import-field-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hr-import-field-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.hr-import-field-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 9px;
  cursor: pointer;
}

.hr-import-field-grid input {
  margin-top: 2px;
  accent-color: var(--brand);
}

.hr-import-field-grid span {
  display: grid;
  gap: 2px;
}

.hr-import-field-grid small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.hr-import-table td:first-child,
.hr-import-table th:first-child {
  min-width: 64px;
  text-align: center;
}

.hr-import-table small {
  display: block;
  margin-top: 3px;
}

.hr-import-diff {
  min-width: 300px;
}

.hr-import-diff div+div {
  margin-top: 4px;
}

.hr-import-diff strong {
  color: var(--ink);
}

.dashboard-empty {
  display: grid;
  min-height: 118px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.online-checkin-hero {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ed, #ffffff 55%);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.online-checkin-copy,
.online-checkin-location {
  display: grid;
  gap: 5px;
}

.online-checkin-copy span,
.online-checkin-location span {
  color: #c2410c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.online-checkin-copy strong,
.online-checkin-location strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.online-checkin-copy small,
.online-checkin-location small {
  color: var(--muted);
  font-size: 12px;
}

.online-checkin-note {
  min-width: 0;
}

.online-checkin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 8px;
}

.online-checkin-mobile-link {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
}

.online-checkin-mobile-link .online-checkin-actions {
  grid-template-columns: minmax(150px, 1fr);
}

.online-checkin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  font-size: 15px;
  text-decoration: none;
}

.online-review-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-left: 5px solid #b42318;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7f7, #ffffff 42%);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.online-review-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.online-review-head span {
  display: block;
  color: #b42318;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.online-review-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.online-review-head small,
.online-review-empty {
  color: var(--muted);
  font-size: 12px;
}

.online-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.online-review-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
}

.online-review-kpi {
  display: grid;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  padding: 10px;
  cursor: pointer;
}

.online-review-kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.online-review-kpi strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.online-review-kpi small {
  color: var(--muted);
  font-size: 12px;
}

.online-review-kpi.is-danger {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff1f0;
}

.online-review-kpi.is-warn {
  border-color: rgba(183, 121, 31, 0.24);
  background: #fff8e6;
}

.online-review-kpi.is-good {
  border-color: rgba(21, 128, 61, 0.2);
  background: #ecfdf3;
}

.online-review-kpi.is-neutral {
  background: #f8fafc;
}

.online-review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 8px;
}

.online-review-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8e6;
  color: var(--ink);
  text-align: left;
  padding: 10px;
  cursor: pointer;
}

.online-review-item strong,
.online-issue-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-review-item small,
.online-monthly-report small {
  color: var(--muted);
  font-size: 12px;
}

.online-monthly-report {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 12px;
}

.online-monthly-report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.online-monthly-report-head strong {
  color: var(--ink);
  font-size: 15px;
}

.online-monthly-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 8px;
}

.online-monthly-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 9px 10px;
}

.online-monthly-report-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-monthly-report-row>span {
  color: #b42318;
  font-weight: 850;
}

.online-monthly-report-row>small {
  grid-column: 1 / -1;
}

.online-decision-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid #64748b;
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.online-decision-box.is-danger {
  border-left-color: #b42318;
  background: #fff7f7;
}

.online-decision-box.is-warn {
  border-left-color: #b7791f;
  background: #fffaf0;
}

.online-decision-box.is-good {
  border-left-color: #16865f;
  background: #f4fbf8;
}

.online-decision-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.online-decision-box strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  line-height: 1.25;
}

.online-decision-box small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.online-decision-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.online-decision-chips span {
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 4px 8px;
  text-transform: none;
}

.account-scope-preview {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 10px;
}

.account-scope-preview span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-scope-preview strong {
  color: var(--ink);
}

.monthly-work-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
}

.monthly-work-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 10px;
}

.monthly-work-legend {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.monthly-work-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
}

.monthly-work-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.monthly-work-day {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 10px;
}

.monthly-work-day.is-empty {
  background: #fbfdff;
}

.monthly-work-day.has-checkin {
  border-color: rgba(22, 163, 74, 0.28);
  background: #f7fef9;
}

.monthly-work-day.has-missing-punch {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fff7f7;
}

.monthly-work-day.has-missing-punch[role="button"] {
  cursor: pointer;
}

.monthly-work-day.has-missing-punch[role="button"]:hover {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.12);
  transform: translateY(-1px);
}

.monthly-work-day.has-business {
  border-color: rgba(37, 99, 235, 0.28);
  background: #f6f9ff;
}

.monthly-work-day.has-annual-leave {
  border-color: rgba(8, 145, 178, 0.28);
  background: #f0fcff;
}

.monthly-work-day.has-sick-leave {
  border-color: rgba(124, 58, 237, 0.26);
  background: #faf7ff;
}

.monthly-work-day.has-unpaid-leave {
  border-color: rgba(100, 116, 139, 0.28);
  background: #f8fafc;
}

.monthly-work-day.has-unresolved-absence {
  border-color: rgba(220, 38, 38, 0.34);
  background: #fff7ed;
}

.monthly-work-day.has-unresolved-absence[role="button"] {
  cursor: pointer;
}

.monthly-work-day.has-unresolved-absence[role="button"]:hover {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.12);
  transform: translateY(-1px);
}

.monthly-work-day.is-sunday {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fffafa;
}

.monthly-work-date {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 3px;
}

.monthly-work-date strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 15px;
}

.monthly-work-date span,
.monthly-work-date em,
.monthly-work-day-body small {
  color: var(--muted);
  font-size: 12px;
}

.monthly-work-date em {
  font-style: normal;
  font-weight: 750;
}

.monthly-work-day.is-sunday .monthly-work-date strong {
  background: #fef2f2;
  color: #dc2626;
}

.monthly-work-day.is-sunday .monthly-work-date span,
.monthly-work-day.is-sunday .monthly-work-date em {
  color: #b42318;
}

.monthly-work-legend-item.has-checkin i {
  background: #16a34a;
}

.monthly-work-legend-item.has-missing-punch i,
.monthly-work-legend-item.is-sunday i {
  background: #dc2626;
}

.monthly-work-legend-item.has-business i {
  background: #2563eb;
}

.monthly-work-legend-item.has-annual-leave i {
  background: #0891b2;
}

.monthly-work-legend-item.has-sick-leave i {
  background: #7c3aed;
}

.monthly-work-legend-item.has-unpaid-leave i {
  background: #64748b;
}

.monthly-work-legend-item.has-unresolved-absence i {
  background: #f97316;
}

.monthly-work-day-body {
  min-width: 0;
}

.monthly-work-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.monthly-work-day-body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.monthly-work-explain-action {
  margin-top: 8px;
}

.monthly-work-month-control {
  min-width: 160px;
}

.report-panel {
  border-bottom: 1px solid var(--soft-line);
  background: #ffffff;
  padding: 16px;
}

/* --- UI/UX UPGRADES --- */

/* 1. Depth & Elevation for HR Cards and Metrics */
.employee-hr-card {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.employee-directory-metric {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* 2. Excel Dropdown in View Actions */
.excel-dropdown {
  position: relative;
  display: inline-block;
}

.excel-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 100;
  padding: 6px 0;
  margin-top: 4px;
}

.excel-dropdown-content button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 16px;
  color: var(--ink);
  font-size: 13.5px;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none !important;
  transform: none !important;
  transition: background 100ms;
}

.excel-dropdown-content button:hover {
  background-color: var(--soft-line);
  color: var(--blue);
}

.excel-dropdown:hover .excel-dropdown-content,
.excel-dropdown.is-open .excel-dropdown-content {
  display: block;
}

/* 3. Danger Zone Button Styling */
.danger-action-btn {
  border-color: #fca5a5 !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.danger-action-btn:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

/* 4. Table header styling (Slate/Navy theme) */
thead th {
  border-bottom: 2px solid var(--line) !important;
  background: #f1f5f9 !important;
  /* Slate 100 */
  color: #0f172a !important;
  /* Slate 900 */
  font-weight: 600 !important;
}

/* 5. Table Cell Ellipsis to prevent ugly wrapping */
tbody td:not(.col-employeeAction):not(.col-leaveWorkflowAction):not(.col-businessRequestAction):not(.col-attendanceSourceAction):not(.col-workflowDefinitionAction):not(.col-announcementAction):not(.col-contractPrintAction):not(.col-payrollAction) {
  max-width: 250px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* 6. Filter dropdown bar */
.topbar-filters-wrap {
  position: relative;
  display: inline-block;
}

.filter-dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.filter-dropdown-button:hover {
  background: var(--soft-line);
  border-color: var(--subtle);
  box-shadow: var(--shadow-soft);
}

.filter-dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  margin-top: 8px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 280px;
  width: max-content;
  max-width: 90vw;
}

.filter-dropdown-panel[hidden] {
  display: none !important;
}

.filter-dropdown-panel .toolbar {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
}

/* Dynamic show/hide rules for dropdown filters */
.filter-dropdown-panel .month-switcher,
.filter-dropdown-panel label:has(#fromDate),
.filter-dropdown-panel label:has(#toDate) {
  display: none !important;
}

.topbar[data-period-preset="selectedMonth"] .filter-dropdown-panel .month-switcher {
  display: flex !important;
}

.topbar[data-period-preset="customRange"] .filter-dropdown-panel label:has(#fromDate),
.topbar[data-period-preset="customRange"] .filter-dropdown-panel label:has(#toDate) {
  display: grid !important;
}

/* Refined month switcher styling inside the dropdown to prevent squishing */
.filter-dropdown-panel .month-switcher {
  align-items: flex-end;
  gap: 6px;
}

.filter-dropdown-panel .month-switcher label {
  min-width: 140px;
}

.filter-dropdown-panel .month-switcher input[type="month"] {
  width: 150px;
}

/* 7. Company Initialization Steps Vertical Timeline */
.company-init-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 28px;
  margin: 24px 0;
  text-align: left;
}

.company-init-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--line);
}

.company-init-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.company-init-step-bullet {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--line);
  z-index: 2;
}

.company-init-step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.company-init-step-content strong {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.company-init-step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.company-init-step-status {
  align-self: center;
}

/* 8. Connection Status Card */
.connection-status-card-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}

.connection-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.connection-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connection-status-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.connection-status-details strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.connection-status-details small {
  color: var(--muted);
  font-size: 11.5px;
}

/* Pulse dot animation */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot.green {
  background-color: var(--green);
}

.pulse-dot.green::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--green);
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  opacity: 0.75;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }

  70% {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* 9. Approve Payroll Button */
.approve-payroll-btn {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #ffffff !important;
}

.approve-payroll-btn:hover {
  background: #15803d !important;
  border-color: #15803d !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.2) !important;
}

/* --- UI/UX UPGRADES PHASE 2 --- */

/* Premium Cards Shadow and Radius */
.dashboard-card,
.portal-card,
.portal-side-card,
.module-dashboard-card,
.connection-status-card,
.company-init-step,
.employee-hr-card,
.employee-directory-metric,
.hr-action-card {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dashboard-card:hover,
.portal-card:hover,
.portal-side-card:hover,
.connection-status-card:hover,
.employee-hr-card:hover,
.hr-action-card:hover {
  border-color: rgba(15, 23, 42, 0.15) !important;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-2px);
}

/* Table cells empty state gray styling */
.table-cell-empty {
  color: #94a3b8 !important;
  /* Slate 400 */
  font-weight: 500;
}

/* Table Header Slate/Navy Enhancement */
thead th {
  border-bottom: 2px solid var(--line) !important;
  background: #f1f5f9 !important;
  /* Slate 100 */
  color: #0f172a !important;
  /* Slate 900 */
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

/* Canvas stage zoom scaling */
.workflow-visual-stage {
  transform: scale(var(--workflow-zoom, 1));
  transform-origin: top left;
  transition: transform 0.15s ease-out;
}

/* Two-column detailed request layout */
.workflow-detail-container {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 380px;
  gap: 20px;
  align-items: start;
  margin-top: 15px;
}

.workflow-detail-left,
.workflow-detail-right {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.workflow-detail-right h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.workflow-timeline-wrapper {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--line);
  margin-left: 12px;
  margin-top: 15px;
}

.workflow-timeline-node {
  position: relative;
  margin-bottom: 20px;
}

.workflow-timeline-bullet {
  position: absolute;
  left: -33px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line);
}

.workflow-timeline-node.is-active .workflow-timeline-bullet {
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}

.workflow-timeline-node.is-done .workflow-timeline-bullet {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}

.workflow-timeline-node.is-error .workflow-timeline-bullet {
  background: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}

/* Chat & Comments styles */
.workflow-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px dashed var(--line);
  padding-top: 15px;
}

.workflow-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.workflow-chat-msg {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.workflow-chat-msg strong {
  color: var(--ink);
  font-size: 12px;
}

.workflow-chat-msg span {
  display: block;
  margin-top: 2px;
  color: #334155;
}

.workflow-chat-msg small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.workflow-chat-input-row {
  display: flex;
  gap: 8px;
}

.workflow-chat-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
}

.workflow-chat-input-row button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* --- PREMIUM WORKFLOW CATALOG UPGRADES --- */

/* 1. Hero banner styling overhaul */
.workflow-catalog-modern .workflow-catalog-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 50%, #0f766e 100%) !important;
  border-radius: 16px !important;
  padding: 36px !important;
  color: #ffffff !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 24px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.15) !important;
  margin-bottom: 24px !important;
  position: relative !important;
  overflow: hidden !important;
}

.workflow-catalog-modern .workflow-catalog-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.workflow-catalog-modern .workflow-catalog-hero h3 {
  font-size: 28px !important;
  font-weight: 800 !important;
  margin: 8px 0 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
}

.workflow-catalog-modern .workflow-catalog-hero p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14.5px !important;
  max-width: 520px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.workflow-catalog-hero-stats {
  display: flex !important;
  gap: 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 16px 24px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  z-index: 2 !important;
}

.workflow-catalog-hero-stats article {
  text-align: center !important;
  min-width: 75px !important;
}

.workflow-catalog-hero-stats article strong {
  display: block !important;
  font-size: 26px !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
}

.workflow-catalog-hero-stats article span {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-top: 4px !important;
  display: block !important;
}

/* 2. Toolbar & Category strip refinement */
.workflow-catalog-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  background: #ffffff !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: var(--shadow-soft) !important;
  margin-bottom: 24px !important;
}

.workflow-employee-search {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  width: 320px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.workflow-employee-search:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08) !important;
}

.workflow-employee-search input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13.5px !important;
  width: 100% !important;
  color: var(--ink) !important;
}

.workflow-catalog-category-strip {
  display: flex !important;
  gap: 8px !important;
  background: #f1f5f9 !important;
  padding: 4px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
}

.workflow-catalog-category-strip button {
  background: transparent !important;
  border: none !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.workflow-catalog-category-strip button:hover {
  color: #0f172a !important;
}

.workflow-catalog-category-strip button.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
  font-weight: 700 !important;
}

/* 3. Popular / Featured Cards Upgrades */
.workflow-employee-popular {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 12px !important;
}

.workflow-employee-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  position: relative !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.workflow-employee-card:hover {
  border-color: rgba(15, 23, 42, 0.12) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.12) !important;
}

.workflow-catalog-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.workflow-catalog-icon.is-green {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  color: #15803d !important;
}

.workflow-catalog-icon.is-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  color: #1d4ed8 !important;
}

.workflow-catalog-icon.is-orange {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
  color: #c2410c !important;
}

.workflow-catalog-icon.is-purple {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
  color: #7e22ce !important;
}

.workflow-catalog-icon.is-slate {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  color: #475569 !important;
}

.workflow-employee-card strong {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
}

.workflow-employee-card p {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  margin: 0 0 16px 0 !important;
  flex-grow: 1 !important;
}

.workflow-employee-card button {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  width: 100% !important;
  text-align: center !important;
  transition: all 0.18s ease !important;
}

.workflow-employee-card button:hover {
  background: var(--brand) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.15) !important;
}

/* 4. Group list directory cards */
.workflow-catalog-groups {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  margin-top: 16px !important;
}

.workflow-catalog-group-head {
  border-left: 4px solid var(--brand) !important;
  padding-left: 12px !important;
  margin-bottom: 12px !important;
}

.workflow-catalog-group-head strong {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: block !important;
}

.workflow-catalog-group-head span {
  font-size: 12px !important;
  color: var(--muted) !important;
}

.workflow-catalog-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 16px !important;
}

.workflow-catalog-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  display: flex !important;
  gap: 16px !important;
  position: relative !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.workflow-catalog-card:hover {
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 18px -8px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-2px) !important;
}

.workflow-catalog-card .workflow-catalog-icon {
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}

.workflow-catalog-main {
  flex-grow: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.workflow-catalog-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

.workflow-catalog-title button {
  background: transparent !important;
  border: none !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
}

.workflow-catalog-title button:hover {
  color: var(--brand) !important;
}

.workflow-catalog-card p {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  margin: 0 0 10px 0 !important;
}

.workflow-catalog-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: auto !important;
}

.workflow-catalog-meta span {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.workflow-catalog-meta span::before {
  content: "•" !important;
  color: #cbd5e1 !important;
}

.workflow-catalog-meta span:first-child::before {
  display: none !important;
}

.workflow-catalog-card .workflow-catalog-actions {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  opacity: 0 !important;
  transition: opacity 0.18s ease !important;
}

.workflow-catalog-card:hover .workflow-catalog-actions {
  opacity: 1 !important;
}

.workflow-catalog-card .workflow-catalog-actions button {
  padding: 6px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* 5. Guide section & Quick shortcuts override */
.workflow-area-shortcut {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  padding: 16px !important;
  border-radius: 12px !important;
  text-align: left !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
  width: 100% !important;
}

.workflow-area-shortcut:hover {
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: var(--shadow-soft) !important;
  transform: translateX(2px) !important;
}

.workflow-area-shortcut.is-active {
  border-left: 4px solid var(--brand) !important;
  background: #f8fafc !important;
}

.workflow-area-shortcut strong {
  font-size: 13.5px !important;
  color: #0f172a !important;
}

.workflow-area-shortcut span {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.workflow-area-shortcut em {
  font-style: normal !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--brand) !important;
  margin-top: 10px !important;
}

/* --- PREMIUM SEARCHBAR OVERHAUL --- */
.searchbar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-radius: 12px !important;
  margin: 16px 24px 20px 24px !important;
  padding: 16px 20px !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 2px 4px -2px rgba(15, 23, 42, 0.03) !important;
  align-items: flex-end !important;
}

/* Collapsible searchbar logic */
.searchbar:not(.is-expanded) label:not(:has(#searchInput)) {
  display: none !important;
}

.filter-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  height: 38px !important;
  padding: 0 16px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.filter-toggle-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.filter-toggle-btn.is-active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #2563eb !important;
}

/* Grouped dropdown Excel options */
.dropdown-actions {
  position: relative !important;
  display: inline-block !important;
}

.dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 1000 !important;
  min-width: 180px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
  padding: 6px 0 !important;
  margin-top: 4px !important;
}

.dropdown-menu button {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  background: none !important;
  border: none !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  font-weight: 550 !important;
}

.dropdown-menu button:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.dropdown-actions:hover .dropdown-menu {
  display: block !important;
}

.searchbar label {
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

.searchbar input,
.searchbar select {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.searchbar input:hover,
.searchbar select:hover {
  border-color: #cbd5e1 !important;
}

.searchbar input:focus,
.searchbar select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  background: #ffffff !important;
}

/* Specific styling for the search input to look modern */
.searchbar label:has(#searchInput) {
  position: relative !important;
}

.searchbar input#searchInput {
  padding-left: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px 10px !important;
  background-size: 16px 16px !important;
}

/* Group the sort and limit selects at the end to clean layout */
.searchbar label:has(#sortSelect),
.searchbar label:has(#sortDirSelect),
.searchbar label:has(#limitSelect) {
  background: #f8fafc !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  border: 1px dashed #e2e8f0 !important;
  min-width: 100px !important;
}

.searchbar label:has(#sortSelect) select,
.searchbar label:has(#sortDirSelect) select,
.searchbar label:has(#limitSelect) select {
  background: transparent !important;
  border: none !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 2px 4px !important;
}

.searchbar label:has(#sortSelect) select:focus,
.searchbar label:has(#sortDirSelect) select:focus,
.searchbar label:has(#limitSelect) select:focus {
  box-shadow: none !important;
}

/* --- HEADER ACTIONS TOOLBAR POLISH --- */
.view-actions {
  align-items: center !important;
}

.view-actions .view-action-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: auto !important;
  margin: 0 12px 0 0 !important;
}

.view-actions .view-action-field span {
  font-size: 13px !important;
  color: var(--muted) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

.view-actions .view-action-field input {
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  width: 145px !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
}

/* --- UI/UX UPGRADES PHASE 2: CONTRACTS DASHBOARD --- */
.contracts-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease-out;
}

.contracts-dashboard-header {
  border-left: 4px solid var(--brand) !important;
}

.employee-code-badge {
  background: var(--sidebar-soft);
  color: var(--brand);
  font-family: monospace;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--sidebar-line);
}

.text-danger {
  color: #ef4444 !important;
}

.text-warning {
  color: #f59e0b !important;
}

.text-bold {
  font-weight: 700 !important;
}

.text-center {
  text-align: center;
}

.contracts-dashboard .dashboard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

/* --- E-SIGNATURES & DIGITAL SIGNING MODAL --- */
.digital-sign-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.digital-sign-modal-content {
  background: #ffffff;
  border-radius: var(--radius);
  width: 500px;
  max-width: 90%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}

.digital-sign-modal .modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.digital-sign-modal .modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.digital-sign-modal .close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink-muted);
  cursor: pointer;
}

.digital-sign-modal .modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.digital-sign-modal .sign-methods-tabs {
  display: flex;
  border-bottom: 2px solid var(--sidebar-line);
}

.digital-sign-modal .sign-methods-tabs .tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.digital-sign-modal .sign-methods-tabs .tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.digital-sign-modal .method-content {
  padding: 10px 0;
}

.digital-sign-modal .canvas-container {
  border: 2px dashed var(--line);
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}

.digital-sign-modal canvas {
  display: block;
  cursor: crosshair;
  background: transparent;
}

.digital-sign-modal .canvas-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.digital-sign-modal .canvas-actions button {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.digital-sign-modal .otp-input-group,
.digital-sign-modal .pin-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.digital-sign-modal input {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 14px;
}

.digital-sign-modal .btn-send-otp {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--sidebar-soft);
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
}

.digital-sign-modal .modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

/* --- UI/UX UPGRADES PHASE 2 --- */

/* Messenger-like Three-Column Layout for Contract Printing */
.contract-print-layout {
  display: grid !important;
  grid-template-columns: minmax(320px, 350px) minmax(0, 1fr) minmax(280px, 320px) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 10px;
  box-sizing: border-box;
}

.contract-print-controls,
.contract-print-info {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  /* pure white backdrop like messenger info/sidebar */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

.contract-print-controls h4,
.contract-print-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--soft-line);
  padding-bottom: 8px;
}

.contract-print-preview {
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf3f8;
  /* Soft blue backdrop matching messenger color-scheme */
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.print-document {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Beautiful custom input styles matching messenger UI modern look */
.contract-control-group label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contract-control-group input[type="text"],
.contract-control-group input[type="date"],
.contract-control-group select,
.contract-control-group textarea {
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13.5px;
  color: var(--ink);
  background: #f9fafb;
  transition: all 150ms ease;
  width: 100%;
  box-sizing: border-box;
}

.contract-control-group textarea {
  height: auto;
  padding: 8px 10px;
}

.contract-control-group input[type="text"]:focus,
.contract-control-group input[type="date"]:focus,
.contract-control-group select:focus,
.contract-control-group textarea:focus {
  border-color: #0b75c9;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 117, 201, 0.15);
}

.contract-control-group strong {
  display: block;
  font-size: 13.5px;
  color: #1e293b;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 6px;
  margin-bottom: 8px;
  margin-top: 10px;
}

.contract-control-group button {
  width: 100%;
}