:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --sidebar: #eef2f6;
  --line: #d6dde6;
  --line-strong: #c1ccd8;
  --text: #172330;
  --muted: #5d6b7a;
  --primary: #0000f0;
  --primary-dark: #0000c8;
  --ok: #1f7b4f;
  --warn: #94620a;
  --danger: #a13333;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafd 0%, var(--bg) 220px);
}

a {
  color: inherit;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #dbe3ec;
}

.app-header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
}

.app-header-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: max-content;
}

.app-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #1c2b3d;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.app-header-logo-icon {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.72;
}

.app-header-workspace {
  font-size: 12px;
  color: #67798d;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.app-main-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  min-width: 0;
  overflow-x: visible;
  white-space: normal;
  flex-wrap: wrap;
}

.app-main-nav .nav-section-start {
  position: relative;
  margin-left: 15px;
}

.app-main-nav .nav-section-start::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -8px;
  width: 1px;
  background: #dce3ec;
}

.app-main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 10px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #4d6076;
  font-weight: 500;
  transition: color 0.15s ease;
}

.app-main-nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.app-main-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 10px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #4d6076;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.app-main-nav-caret {
  font-size: 11px;
  margin-left: 2px;
  opacity: 0.7;
}

.app-main-nav-icon {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.95;
  filter: invert(43%) sepia(11%) saturate(485%) hue-rotate(174deg) brightness(92%) contrast(88%);
  transition: filter 0.15s ease;
}

.app-main-nav a:hover {
  color: #111111;
}

.app-main-nav a.is-active {
  color: #111111;
  border-bottom-color: #0000f0;
}

.app-main-nav-group.is-active .app-main-nav-link {
  color: #111111;
  border-bottom-color: #0000f0;
}

.app-main-nav a.is-active .app-main-nav-icon {
  filter: invert(7%) sepia(100%) saturate(7460%) hue-rotate(247deg) brightness(118%) contrast(143%);
}

.app-main-nav-group.is-active > .app-main-nav-link .app-main-nav-icon {
  filter: invert(7%) sepia(100%) saturate(7460%) hue-rotate(247deg) brightness(118%) contrast(143%);
}

.app-main-nav-group .topbar-dropdown-menu {
  min-width: 220px;
}

.app-main-nav-group .topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-main-nav-group .topbar-dropdown-item .app-main-nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.app-main-nav-group .topbar-dropdown-item.is-active .app-main-nav-icon {
  filter: invert(7%) sepia(100%) saturate(7460%) hue-rotate(247deg) brightness(118%) contrast(143%);
}

.topbar-dropdown-item.is-active {
  font-weight: 700;
  color: #111111;
}

.app-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-header-quick {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #0000f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.app-header-quick-icon {
  font-size: 22px;
  line-height: 0;
  font-weight: 300;
  letter-spacing: -0.0em;
  display: block;
  transform: translateY(0);
}

.app-header-quick:hover,
.app-header-quick[aria-expanded="true"] {
  background: #1a1aff;
  transform: translateY(-1px);
}

.app-quick-actions .topbar-dropdown-menu {
  min-width: 180px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(16, 29, 44, 0.18);
  gap: 6px;
}

.app-quick-actions .topbar-dropdown-menu::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 18px;
  background: #0000f0;
  left: 10px;
  top: 12px;
  border-radius: 2px;
}

.app-quick-actions .quick-actions-title {
  font-size: 12px;
  font-weight: 600;
  color: #6d7d8f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px 6px 14px;
}

.app-quick-actions .topbar-dropdown-item {
  padding: 6px 6px 6px 14px;
  text-align: right;
  font-weight: 600;
  color: #1f2f44;
}

.app-quick-actions .topbar-dropdown-item:hover {
  background: #f6f8fc;
}

.app-header-gear {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  padding: 0;
}

.app-header-gear-icon {
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(43%) sepia(11%) saturate(485%) hue-rotate(174deg) brightness(92%) contrast(88%);
  transition: filter 0.15s ease;
}

.app-header-gear:hover {
  background: transparent;
}

.app-header-gear.is-active {
  border: 0;
}

.app-header-gear.is-active .app-header-gear-icon {
  filter: invert(7%) sepia(100%) saturate(7460%) hue-rotate(247deg) brightness(118%) contrast(143%);
}

.app-user-dropdown-trigger {
  width: 46px;
  height: 46px;
  border: 1px solid #d4deea;
  border-radius: 999px;
  background: transparent;
  color: #24384f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-user-dropdown-trigger:hover,
.app-user-dropdown-trigger[aria-expanded="true"] {
  background: #f3f7fb;
  border-color: #0000f0;
}

.app-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eef7;
  color: #33527a;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.app-user-avatar-image {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  border: 1px solid #d5deea;
}

.app-user-caret {
  font-size: 12px;
  color: #6e7f92;
  display: none;
}

.app-user-dropdown-trigger .badge.role {
  display: none;
}

.app-user-dropdown-meta {
  padding: 8px 10px 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid #e4ebf3;
  display: grid;
  gap: 1px;
}

.app-user-dropdown-meta strong {
  font-size: 13px;
  color: #23364c;
}

.app-user-dropdown-meta span {
  font-size: 12px;
  color: #6a7b8d;
}

.app-header-user {
  font-size: 13px;
  font-weight: 600;
  color: #283b52;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  padding: 12px 14px 14px;
}

.user-settings-page {
  margin-top: 12px;
  max-width: none;
  width: 100%;
  display: grid;
  gap: 16px;
}

.user-settings-page.integrations-page {
  max-width: none;
}

.user-settings-panel {
  padding: 18px 20px;
  background: #f7f9fc;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  box-shadow: none;
}

.user-settings-panel .panel-head {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4ebf4;
}

.integrations-page .user-settings-panel {
  width: 100%;
}

.user-settings-form {
  display: grid;
  gap: 10px;
}

.user-settings-form .field {
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid #e1e9f2;
  border-radius: 12px;
  background: #fff;
}

.user-settings-form .field:last-of-type {
  border-bottom: 0;
}

.user-settings-form .form-actions {
  padding-top: 12px;
}

.user-settings-avatar-row {
  display: grid;
  gap: 12px;
  align-items: start;
  margin-bottom: 0;
  padding: 6px 0 12px;
  border-bottom: 1px solid #e1e9f2;
}

.user-settings-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid #d6e0eb;
  background: #eef4fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-settings-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-settings-avatar-fallback {
  color: #2f4868;
  font-size: 24px;
  font-weight: 700;
}

.user-settings-avatar-actions {
  min-width: 0;
}

.user-settings-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #55677c;
  font-size: 13px;
}

.user-settings-checkbox input {
  width: auto;
}

/* Minu kasutaja seaded */
body.page-user_settings .topbar-main { align-items: flex-start; flex-direction: column; gap: 7px; }
body.page-user_settings .topbar-title-meta { width: 100%; }

.user-settings-topbar-breadcrumb {
  gap: 7px;
  margin: 0;
  color: #8b98a8;
  font-size: 12px;
}

.user-settings-topbar-breadcrumb a { color: #637489; font-weight: 700; text-decoration: none; }
.user-settings-topbar-breadcrumb a:hover { color: #0000f0; }

.user-profile-settings-page { margin-top: 0; }

.user-account-surface {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.user-account-tabs {
  display: flex;
  flex-direction: row;
  gap: 25px;
  padding: 0 2px;
  border-right: 0;
  border-bottom: 1px solid #d7e0ea;
  background: transparent;
}

.user-account-tabs > span { display: none; }

.user-account-tabs a {
  position: relative;
  padding: 11px 1px 12px;
  border-radius: 0;
  color: #748195;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.user-account-tabs a:hover { color: #17263a; }
.user-account-tabs a.is-active { color: #0000e8; background: transparent; }
.user-account-tabs a.is-active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; display: block; height: 2px; border-radius: 2px; background: #0000f0; }

.user-profile-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: start;
}

.user-account-content { width: 100%; min-width: 0; padding-top: 20px; }

.user-profile-settings-page .user-settings-panel {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.user-profile-settings-page .user-security-card { border-top: 0; }

.user-profile-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 16px;
  border-bottom: 1px solid #e5ebf2;
}

.user-profile-section-head h2 { margin: 0 0 3px; color: #17263a; font-size: 18px; }
.user-profile-section-head p { margin: 0; color: #718095; font-size: 12px; }

.user-profile-form,
.user-password-form { padding: 20px 2px 0; }

.user-profile-section-head { padding-inline: 2px; }

.user-profile-settings-page .user-settings-form { gap: 18px; }
.user-profile-settings-page .user-settings-form .field {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.user-profile-settings-page .user-settings-form .field label { color: #34445a; font-size: 12px; font-weight: 800; }
.user-profile-settings-page .user-settings-form input,
.user-profile-settings-page .user-settings-form select,
.user-profile-settings-page .user-settings-form textarea { min-height: 42px; border-color: #d8e1eb; background: #fff; }
.user-profile-settings-page .user-settings-form input:not([type="checkbox"]):not([type="range"]),
.user-profile-settings-page .user-settings-form select { height: 42px; min-height: 42px; max-height: 42px; }
.user-profile-settings-page .user-settings-form input:focus,
.user-profile-settings-page .user-settings-form select:focus,
.user-profile-settings-page .user-settings-form textarea:focus { border-color: #7272ff; box-shadow: 0 0 0 3px rgba(0, 0, 240, .08); }
.user-profile-settings-page .user-settings-form input[readonly] { color: #69788b; background: #f4f7fa; cursor: not-allowed; }

.user-profile-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.user-profile-field-wide { grid-column: 1 / -1; }
.user-profile-subheading { margin-top: 4px; padding-top: 18px; border-top: 1px solid #e5ebf2; }
.user-profile-subheading h3 { margin: 0 0 3px; color: #26374d; font-size: 15px; }
.user-profile-subheading p { margin: 0; color: #7b899a; font-size: 11px; }

.user-profile-settings-page .user-settings-avatar-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 2px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.user-profile-settings-page .user-settings-avatar-preview { width: 82px; height: 82px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(25, 43, 65, .12); }
.user-profile-settings-page .user-settings-avatar-preview { position: relative; cursor: pointer; }
.user-avatar-edit-overlay {
  position: absolute;
  right: 1px;
  bottom: 1px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0000e8;
  transition: transform .16s ease, background .16s ease;
}
.user-avatar-edit-overlay img { width: 12px; height: 12px; filter: brightness(0) invert(1); }
.user-settings-avatar-preview:hover .user-avatar-edit-overlay { transform: scale(1.08); background: #0000bc; }

/* Töötaja detailvaade */
.users-name-link { color: #17263a; font-weight: 800; text-decoration: none; }
.users-name-link:hover { color: #0000e8; text-decoration: underline; }
.users-row-action { width: 1%; white-space: nowrap; text-align: right; }
#openSelectedEmployeeBtn.is-disabled { opacity: .5; pointer-events: none; }
.employee-title-meta { display: flex; gap: 7px; }
.employee-view { display: grid; gap: 20px; }
.employee-tabs { display: flex; gap: 25px; overflow-x: auto; border-bottom: 1px solid #d7e0ea; }
.employee-tabs a { position: relative; flex: 0 0 auto; padding: 11px 1px 12px; color: #6d7a8d; font-size: 13px; font-weight: 700; text-decoration: none; }
.employee-tabs a.is-active { color: #0000e8; }
.employee-tabs a.is-active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #0000f0; }

.employee-profile-strip { display: flex; align-items: center; gap: 17px; padding: 21px; border: 1px solid #dfe6ee; border-radius: 13px; background: #fff; }
.employee-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 76px; height: 76px; overflow: hidden; border-radius: 999px; color: #3f5067; background: #e8edf3; font-size: 25px; font-weight: 800; }
.employee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.employee-profile-strip h2 { margin: 0 0 3px; color: #17263a; font-size: 20px; }
.employee-profile-strip p { margin: 0 0 7px; color: #53657a; font-weight: 700; }
.employee-profile-strip span { color: #7b8999; font-size: 12px; }

.employee-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
.employee-metrics article { display: grid; gap: 8px; padding: 17px; border: 1px solid #dfe6ee; border-radius: 12px; background: #fff; }
.employee-metrics span { color: #728095; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.employee-metrics strong { color: #17263a; font-size: 21px; }
.employee-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.employee-info-grid article { padding: 19px; border: 1px solid #dfe6ee; border-radius: 12px; background: #fff; }
.employee-info-grid h3 { margin: 0 0 14px; color: #26374d; font-size: 15px; }
.employee-info-grid dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin: 0; }
.employee-info-grid dt { color: #7a8798; font-size: 12px; }
.employee-info-grid dd { margin: 0; color: #26374d; font-size: 13px; font-weight: 700; }

.employee-details-form,.employee-list-view { padding: 22px; border: 1px solid #dfe6ee; border-radius: 13px; background: #fff; }
.employee-details-form > header,.employee-list-view > header { margin-bottom: 21px; padding-bottom: 15px; border-bottom: 1px solid #e5ebf2; }
.employee-details-form h2,.employee-list-view h2 { margin: 0 0 4px; color: #17263a; font-size: 18px; }
.employee-details-form header p,.employee-list-view header p { margin: 0; color: #748297; font-size: 12px; }
.employee-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.employee-form-grid label { display: grid; gap: 7px; color: #3e4e63; font-size: 12px; font-weight: 700; }
.employee-form-grid input,.employee-form-grid select { height: 42px; }
.employee-details-form .form-actions { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e5ebf2; }
.employee-categorized-form { display:grid; gap:0; padding:0 2px; }
.employee-section-intro { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:0 0 16px; border-bottom:1px solid #e5ebf2; }
.employee-section-intro h2 { margin:0 0 4px; color:#17263a; font-size:19px; }
.employee-section-intro p { margin:0; color:#748297; font-size:12px; }
.employee-category-list { display:grid; grid-template-columns:1fr; gap:0; }
.employee-category-card { min-width:0; padding:21px 0 23px; border:0; border-bottom:1px solid #e5ebf2; border-radius:0; background:transparent; }
.employee-category-card:last-child { border-bottom:0; }
.employee-category-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; padding:0; border:0; }
.employee-category-card > header > div { display:flex; align-items:baseline; gap:9px; }
.employee-category-card > header h3 { margin:0; color:#26374d; font-size:15px; }
.employee-category-card > header span { color:#8995a5; font-size:10px; }
.employee-category-card .employee-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.employee-category-card .employee-form-grid label { gap:7px; }
.employee-category-card .employee-form-grid input,.employee-category-card .employee-form-grid select { border-color:#d8e1eb; background:#fff; }
.employee-custom-fields { margin-top: 2px; padding: 22px 2px 0; border: 0; border-top: 1px solid #dfe6ee; border-radius: 0; background: transparent; }
.employee-custom-fields > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.employee-custom-fields h3 { margin: 0 0 3px; color: #26374d; font-size: 15px; }
.employee-custom-fields header p,.employee-custom-empty { margin: 0; color: #7a8798; font-size: 11px; }
.employee-add-field-form { display: flex; gap: 8px; }
.employee-add-field-form input { width: 210px; height: 36px; }
.employee-add-category-form { display:flex; gap:8px; }
.employee-add-category-form input { width:210px; height:36px; }
.employee-add-field-bar { align-items:center; margin:2px 0 8px; padding:0 0 18px; border-bottom:1px solid #e5ebf2; border-radius:0; background:transparent; }
.employee-add-field-bar select { width:220px; height:36px; }
.employee-custom-category-list { margin-top:0; }
.employee-custom-category-list .employee-category-card { padding-block:20px; }
.employee-custom-field { position: relative; }
.employee-custom-field label { gap: 5px; }
.employee-custom-label { height: 26px !important; padding: 2px 28px 2px 0 !important; border: 0 !important; border-radius: 0 !important; color: #53657a; background: transparent !important; font-size: 11px; font-weight: 800; }
.employee-custom-delete { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 25px; height: 25px; border: 0; color: #9a6570; background: transparent; cursor: pointer; font-size: 17px; }
.employee-custom-delete:hover { color: #c52e45; }
.employee-custom-fields-form .form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.employee-document-layout { display: grid; grid-template-columns: minmax(280px,.65fr) minmax(0,1.5fr); gap: 14px; align-items: start; }
.employee-document-upload { display: grid; gap: 14px; padding: 20px; border: 1px solid #dfe6ee; border-radius: 13px; background: #fff; }
.employee-document-upload header { padding-bottom: 13px; border-bottom: 1px solid #e5ebf2; }
.employee-document-upload h2 { margin: 0 0 3px; color: #17263a; font-size: 17px; }
.employee-document-upload header p { margin: 0; color: #7a8798; font-size: 11px; }
.employee-document-upload > label,.employee-document-dates label { display: grid; gap: 6px; color: #46576c; font-size: 11px; font-weight: 800; }
.employee-document-upload input:not([type=checkbox]),.employee-document-upload select { min-height: 40px; }
.employee-document-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.employee-document-list { display: grid; gap: 9px; }
.employee-document-list > article,.user-document-list > article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #e2e8ef; border-radius: 10px; }
.employee-document-list h3 { margin: 7px 0 3px; color: #26374d; font-size: 14px; }
.employee-document-list p { margin: 0; color: #7b8999; font-size: 11px; }
.employee-document-list article > div:last-child { display: flex; gap: 7px; }
.employee-document-list form { margin: 0; }
.user-document-list { display: grid; gap: 9px; padding: 20px 2px 0; }
.user-document-list article > div { display: grid; gap: 3px; }
.user-document-list span { color: #0000d8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.user-document-list strong { color: #26374d; font-size: 14px; }
.user-document-list small { color: #7b8999; }
.employee-list-view table { width: 100%; border-collapse: collapse; }
.employee-list-view th,.employee-list-view td { padding: 12px; border-bottom: 1px solid #e8edf2; text-align: left; font-size: 12px; }
.employee-list-view th { color: #718095; font-size: 10px; text-transform: uppercase; }
.employee-access-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.employee-access-summary div { display: grid; gap: 5px; padding: 14px; border-radius: 10px; background: #f5f7fa; }
.employee-access-summary span { color: #7a8798; font-size: 11px; }
.employee-access-summary strong { color: #26374d; }
.employee-permissions { display: flex; flex-wrap: wrap; gap: 8px; }
.employee-permissions span { padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.employee-permissions .is-allowed { color: #087b5b; background: #e8f8f2; }
.employee-permissions .is-denied { color: #9a4b4b; background: #fff0f0; }

@media (max-width: 900px) { .employee-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .employee-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .employee-category-list { grid-template-columns:1fr; } .employee-document-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .employee-metrics,.employee-info-grid,.employee-form-grid,.employee-access-summary,.employee-category-card .employee-form-grid { grid-template-columns: 1fr; } .employee-info-grid dl { grid-template-columns: 1fr; gap: 4px; } .employee-section-intro,.employee-custom-fields > header,.employee-add-field-form,.employee-add-category-form { align-items: stretch; flex-direction: column; } .employee-add-field-form input,.employee-add-field-bar select,.employee-add-category-form input { width: 100%; } }
.user-profile-settings-page .user-settings-avatar-actions { display: grid; gap: 11px; }
.user-profile-settings-page .user-settings-avatar-actions strong { display: block; margin-bottom: 3px; color: #26374d; font-size: 14px; }
.user-avatar-button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-avatar-upload { cursor: pointer; }
.user-profile-settings-page .field-note { color: #7b899a; font-size: 11px; line-height: 1.45; }

.user-profile-settings-page .form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 17px 0 0;
  border-top: 1px solid #e5ebf2;
  background: transparent;
}

.user-security-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #0000d8; background: #eeeeff; font-size: 19px; font-weight: 800; }
.user-password-form .form-actions { justify-content: stretch; }
.user-password-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.user-password-form .form-actions { grid-column: 1 / -1; justify-content: flex-end; }
.user-password-form .form-actions .btn { width: auto; min-width: 150px; }
.user-preferences-form { padding: 20px 2px 0; }

@media (max-width: 920px) {
  .user-password-form { grid-template-columns: 1fr; }
  .user-password-form .form-actions { grid-column: auto; }
}

@media (max-width: 620px) {
  .user-profile-fields-grid { grid-template-columns: 1fr; }
  .user-profile-field-wide { grid-column: auto; }
  .user-account-tabs { gap: 20px; padding-inline: 2px; overflow-x: auto; }
  .user-account-tabs > span { display: none; }
  .user-profile-section-head, .user-profile-form, .user-password-form { padding-inline: 2px; }
  .user-profile-settings-page .form-actions { margin-inline: 0; padding-inline: 0; }
  .user-profile-settings-page .user-settings-avatar-row { grid-template-columns: 1fr; text-align: center; }
  .user-profile-settings-page .user-settings-avatar-preview { margin-inline: auto; }
  .user-avatar-button-row { justify-content: center; }
  .user-profile-settings-page .form-actions .btn { width: 100%; }
}

.avatar-crop-backdrop {
  z-index: 1300;
}

.avatar-crop-dialog {
  width: min(520px, 100%);
}

.avatar-crop-body {
  display: grid;
  gap: 12px;
}

.avatar-crop-stage-wrap {
  display: flex;
  justify-content: center;
}

.avatar-crop-canvas {
  width: min(360px, calc(100vw - 84px));
  height: auto;
  max-height: 68vh;
  border: 1px solid #d2dbe6;
  border-radius: 8px;
  background: #f4f7fb;
  cursor: grab;
}

.avatar-crop-canvas:active {
  cursor: grabbing;
}

.avatar-crop-controls {
  display: grid;
  gap: 6px;
}

.avatar-crop-controls label {
  font-size: 14px;
  font-weight: 700;
}

.avatar-crop-actions {
  justify-content: flex-end;
}

.topbar {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px 0 0;
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.topbar-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topbar-primary.is-title-hidden {
  justify-content: flex-end;
}

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

.topbar-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-secondary {
  display: flex;
  justify-content: flex-start;
}

.topbar-back-btn {
  padding-inline: 10px;
  font-weight: 600;
}

body.page-order_view .topbar-secondary {
  margin-top: 6px;
}

body.page-order_view .topbar-primary.is-title-hidden {
  justify-content: flex-start;
}

body.page-order_view .topbar-back-btn {
  padding: 0 2px;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #607388;
  font-size: 13px;
  font-weight: 700;
}

body.page-order_view .topbar-back-btn:hover,
body.page-order_view .topbar-back-btn:focus-visible {
  background: transparent;
  color: #0000f0;
  text-decoration: none;
}

.label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5e7083;
  font-weight: 700;
}

h1 {
  margin: 3px 0 0;
  font-size: 26px;
  line-height: 1.15;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.topbar-sub {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.settings-hub {
  margin-top: 0;
}

.settings-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  align-items: start;
}

.settings-hub-column {
  min-width: 0;
}

.settings-hub-head {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 6px;
}

.settings-hub-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #1d2c3f;
}

.settings-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.settings-hub-list li {
  display: grid;
  gap: 1px;
}

.settings-hub-link {
  display: inline-block;
  color: #1f3247;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}

.settings-hub-link:hover {
  color: #0000f0;
  text-decoration: underline;
}

.settings-hub-link.is-disabled {
  color: #5f7286;
  cursor: default;
}

.settings-hub-hint {
  font-size: 12px;
  color: #7b8c9d;
}

.email-templates-list {
  display: grid;
  gap: 10px;
}

.email-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.email-template-main {
  display: grid;
  gap: 4px;
}

.email-template-key {
  font-size: 12px;
  color: #6d7d8f;
}

.email-template-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.email-template-vars {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #c7d3e0;
  border-radius: 10px;
  background: #fbfcfe;
  color: #3a4a5c;
  font-size: 13px;
}

.email-template-vars ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.email-template-test {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #d4deea;
}

.email-log-details {
  margin: 8px 0 16px;
  padding: 8px 12px;
  border: 1px dashed #d4deea;
  border-radius: 10px;
  background: #f9fbfe;
}

.email-log-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #2f4156;
}

.email-log-details pre {
  white-space: pre-wrap;
  font-size: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  margin: 8px 0 0;
}

.email-log-html {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
}

.topbar-dropdown {
  position: relative;
}

.topbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 29, 44, 0.16);
  padding: 6px;
  display: grid;
  gap: 4px;
}

.topbar-dropdown-item {
  border: 0;
  display: block;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none;
}

.topbar-dropdown-item:hover {
  background: #f3f7fb;
}

.topbar-dropdown-item.danger {
  color: var(--danger);
}

.topbar .badge.role {
  padding: 4px 8px;
  font-size: 11px;
}

input,
select,
textarea,
.search {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.search {
  min-width: 220px;
}

input:focus,
select:focus,
textarea:focus,
.search:focus {
  outline: none;
  border-color: #6b92bf;
  box-shadow: 0 0 0 3px rgba(41, 97, 164, 0.15);
}

textarea {
  resize: vertical;
}

input[readonly],
textarea[readonly] {
  background: #f5f8fb;
}

.form-divider {
  border: 0;
  border-top: 1px dashed #d4deea;
  margin: 14px 0;
}

.panel-divider {
  border: 0;
  border-top: 1px solid #e1e9f2;
  margin: 18px 0;
}

.panel-subhead h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #1f2f44;
}

.settings-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e9f2;
  padding-bottom: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #4a5f77;
  background: #f0f4fa;
  border: 1px solid transparent;
}

.settings-tab:hover {
  color: #1f3247;
  border-color: #d8e4f3;
}

.settings-tab.is-active {
  color: #1f3247;
  background: #ffffff;
  border-color: #bfd3ea;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.logs-table th,
.logs-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e9f2;
}

.logs-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6d7d8f;
  background: #f6f9fc;
}

.logs-table tbody tr:nth-child(even) {
  background: #f9fbfe;
}

.logs-table td .badge {
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.system-logs-panel {
  padding: 0;
  overflow: hidden;
}

.system-logs-panel .settings-breadcrumb {
  margin: 0;
  padding: 14px 20px 0;
}

.system-logs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 20px;
  border-bottom: 1px solid #dfe6ee;
}

.system-logs-heading h2 {
  margin: 2px 0 5px;
  font-size: 25px;
  color: #162337;
}

.system-logs-heading > div > p:last-child {
  margin: 0;
  color: #6a7889;
  font-size: 14px;
}

.system-logs-kicker {
  margin: 0;
  color: #0000f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.system-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 28px;
  background: #f8fafc;
  border-bottom: 1px solid #dfe6ee;
}

.system-health-grid article {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  background: #fff;
}

.system-health-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf1ff;
  color: #0000d8;
  font-size: 17px;
  font-style: normal;
}

.system-health-grid article > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; }
.system-health-grid small { grid-column: 1 / -1; color: #6d7b8e; font-size: 11px; font-weight: 700; }
.system-health-grid strong { color: #17263a; font-size: 22px; }
.system-health-grid em { overflow: hidden; color: #7b8796; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.system-health-grid em.is-ok { color: #08785b; }
.system-health-grid em.is-warning { color: #b54708; }

.system-logs-tabs {
  margin: 0;
  padding: 12px 28px 0;
  gap: 22px;
  border-bottom: 1px solid #dfe6ee;
}

.system-logs-tabs .settings-tab {
  padding: 10px 0 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
}

.system-logs-tabs .settings-tab.is-active {
  color: #0000f0;
  border-bottom-color: #0000f0;
}

.system-logs-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 28px 14px;
  background: #f8fafc;
}

.system-logs-search {
  flex: 0 1 390px;
}

.system-logs-toolbar input,
.system-logs-toolbar select {
  min-height: 40px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
}

.system-logs-toolbar input {
  width: 100%;
  padding-left: 36px;
  background-image: url("ICON/search.svg");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 15px;
}

.system-logs-result-count {
  margin-left: auto;
  color: #778597;
  font-size: 12px;
  white-space: nowrap;
}

.system-logs-table-wrap {
  margin: 0 28px 26px;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}

.system-logs-table-wrap .logs-table th {
  padding: 12px 16px;
  background: #f7f9fc;
  color: #6b7788;
  font-size: 11px;
}

.system-logs-table-wrap .logs-table td {
  padding: 12px 16px;
  color: #344154;
}

.system-logs-table-wrap .logs-table tbody tr:nth-child(even) {
  background: transparent;
}

.system-logs-table-wrap .logs-table tbody tr[data-log-entry]:hover {
  background: #f7f9ff;
}

.system-logs-table-wrap .badge {
  border: 0;
  padding: 4px 9px;
  border-radius: 999px;
}

.system-logs-table-wrap .email-log-details summary {
  color: #0000f0;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .system-logs-heading { align-items: flex-start; flex-direction: column; padding-inline: 18px; }
  .system-logs-tabs, .system-logs-toolbar { padding-inline: 18px; }
  .system-logs-toolbar { align-items: stretch; flex-direction: column; }
  .system-logs-search { flex-basis: auto; }
  .system-logs-result-count { margin-left: 0; }
  .system-logs-table-wrap { margin-inline: 18px; }
  .system-health-grid { grid-template-columns: 1fr 1fr; padding-inline: 18px; }
}

/* Logid ja audit: ühine vaadete navigatsioon */
.logs-hub-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  background: #f4f7fb;
}

.logs-hub-nav.is-inside-panel { margin: 0 26px 6px; }

.logs-hub-nav a {
  display: grid;
  gap: 2px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #5e6f83;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.logs-hub-nav a:hover { color: #17263a; background: rgba(255, 255, 255, .65); }
.logs-hub-nav a.is-active { border-color: #d9e1eb; color: #101f33; background: #fff; box-shadow: 0 3px 10px rgba(24, 42, 64, .07); }
.logs-hub-nav span { font-size: 14px; font-weight: 800; }
.logs-hub-nav small { color: #8290a2; font-size: 11px; }

/* Audit ja ajalugu */
.audit-page { display: grid; gap: 16px; }

.audit-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid #dce4ed;
}

.audit-breadcrumb { margin-bottom: 0; font-size: 13px; }
.audit-breadcrumb a { color: #55697f; text-decoration: none; font-weight: 700; }
.audit-breadcrumb > span { color: #7c8999; }
body.page-audit_logs .topbar-main { align-items: flex-start; flex-direction: column; gap: 7px; }
body.page-audit_logs .topbar-title-meta { width: 100%; }
.audit-topbar-breadcrumb { gap: 7px; margin: 0; font-size: 12px; }
.audit-topbar-breadcrumb a { color: #637489; font-weight: 700; text-decoration: none; }
.audit-topbar-breadcrumb a:hover { color: #0000f0; }
.audit-topbar-breadcrumb > span { color: #8b98a8; }

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

.audit-summary-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 15px 17px;
  border: 1px solid #dfe6ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 42, 64, .035);
}

.audit-summary-grid span { color: #68788b; font-size: 12px; font-weight: 700; }
.audit-summary-grid strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #17263a; font-size: 27px; }
.audit-summary-grid small { color: #8a96a5; font-size: 10px; }

.audit-table-panel {
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(26, 43, 64, .045);
}

.audit-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid #e1e7ee;
  background: #f8fafc;
}

.audit-filter-bar label { margin: 0; }
.audit-search { flex: 0 1 360px; }
.audit-filter-bar input, .audit-filter-bar select { min-height: 40px; border-color: #cfd8e3; border-radius: 8px; background-color: #fff; }
.audit-filter-bar input { width: 100%; padding-left: 36px; background-image: url("ICON/search.svg"); background-repeat: no-repeat; background-position: 12px center; background-size: 15px; }
.audit-result-count { margin-left: auto; color: #778597; font-size: 12px; white-space: nowrap; }

.audit-table-wrap { overflow: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit-table th { padding: 12px 16px; border-bottom: 1px solid #dfe5ec; background: #fff; color: #778392; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.audit-table td { padding: 11px 16px; border-bottom: 1px solid #e8edf2; color: #344154; vertical-align: middle; }
.audit-main-row:hover { background: #f8faff; }
.audit-time, .audit-ip { color: #738093 !important; white-space: nowrap; }

.audit-actor { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.audit-actor > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: #edf1ff; color: #0000d8; font-size: 11px; font-weight: 800; }
.audit-actor > div { display: grid; min-width: 0; }
.audit-actor strong { overflow: hidden; color: #253448; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.audit-actor small { overflow: hidden; color: #8792a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.audit-action { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #eef2ff; color: #304fd6; font-size: 11px; font-weight: 800; white-space: nowrap; }
.audit-action.is-created { background: #e7f8f1; color: #08785b; }
.audit-action.is-login { background: #e8f4ff; color: #1769a8; }
.audit-action.is-logout, .audit-action.is-system { background: #f0f2f5; color: #637083; }
.audit-action.is-danger { background: #ffeaec; color: #b42332; }
.audit-action.is-security { background: #fff1df; color: #a25308; }
.audit-entity-id { margin-left: 5px; color: #8b96a4; font-size: 10px; }

.audit-expand { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #7c8999; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.audit-expand:hover { background: #edf1f6; color: #263a51; }
.audit-expand[aria-expanded="true"] { transform: rotate(180deg); }
.audit-expand.is-empty { opacity: .45; }
.audit-detail-row td { padding: 0 16px 13px; background: #fafbfd; }
.audit-detail-content { display: flex; flex-wrap: wrap; gap: 9px 20px; padding: 12px 14px; border-left: 3px solid #b9c6ff; background: #f4f6fb; }
.audit-detail-content > div { display: flex; align-items: baseline; gap: 7px; }
.audit-detail-content span { color: #778496; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.audit-detail-content code { color: #26384d; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.audit-detail-content p { margin: 0; color: #788597; font-size: 12px; }
.audit-empty { display: grid; place-items: center; gap: 5px; min-height: 150px; color: #7a8796; }
.audit-empty strong { color: #344154; }

@media (max-width: 900px) {
  .audit-summary-grid { grid-template-columns: 1fr 1fr; }
  .audit-filter-bar { align-items: stretch; flex-wrap: wrap; }
  .audit-search { flex: 1 1 100%; }
  .audit-result-count { width: 100%; margin-left: 0; }
}

@media (max-width: 600px) {
  .system-health-grid, .audit-summary-grid { grid-template-columns: 1fr; }
  .audit-page-head { align-items: flex-start; flex-direction: column; }
  .audit-filter-bar label, .audit-filter-bar select, .audit-filter-bar .btn { width: 100%; }
}

.log-details-row td {
  background: #ffffff;
}

.settings-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #6d7d8f;
  font-size: 13px;
}

.settings-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4ebf4;
}

.settings-title-breadcrumb {
  gap: 9px;
  margin: 0;
  font-size: 14px;
}

.settings-title-breadcrumb a {
  color: #5d6f83;
  font-weight: 700;
  text-decoration: none;
}

.settings-title-breadcrumb a:hover { color: #0000f0; }
.settings-title-breadcrumb > span { color: #a0abba; }
.settings-title-breadcrumb > strong { color: #152438; font-size: 20px; line-height: 1.2; }

.integrations-page .panel {
  background: #f7f9fc;
  border-radius: 14px;
}

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

.integration-status {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  display: none;
}

.integration-status.is-success {
  display: block;
  background: #e6f5ee;
  color: #1d5f3a;
  border-color: #bfdfd0;
}

.integration-status.is-error {
  display: block;
  background: #fae8e8;
  color: #8a2c2c;
  border-color: #e9c0c0;
}

.modal-error {
  color: #8a2c2c;
  font-size: 13px;
  margin-bottom: 8px;
}

.integration-card {
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.integration-card.is-coming-soon {
  opacity: 0.72;
}

.integration-card.is-coming-soon summary {
  cursor: default;
}

.integration-card.is-coming-soon .integration-caret {
  display: none;
}

.integration-card summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
}

.integration-card summary::-webkit-details-marker {
  display: none;
}

.integration-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.integration-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2f44;
  display: block;
}

.integration-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #6d7d8f;
}

.integration-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.integration-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #7b8c9d;
  border-bottom: 2px solid #7b8c9d;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.integration-card[open] .integration-caret {
  transform: rotate(-135deg);
}

.integration-body {
  padding: 14px 16px 16px;
  border-top: 1px solid #eef2f7;
  background: #fbfcfe;
}

.integration-card[open] {
  border-color: #c6d4e6;
}

.api-keys {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.api-key-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(220px, 2fr) 140px 110px auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e1e9f2;
}

.api-key-row.header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6d7d8f;
  font-weight: 700;
  border-bottom: 1px solid #e1e9f2;
}

.api-key-row:last-child {
  border-bottom: 0;
}

.api-key-token input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;
  font-size: 12px;
  padding: 6px 8px;
}

.api-key-name input {
  width: 100%;
}

.api-key-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.badge.soon {
  background: #eef2f7;
  color: #4b5b70;
  border: 1px solid #d4deea;
}

@media (max-width: 900px) {
  .api-key-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .api-key-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 1100px) {
  .integration-list {
    gap: 12px;
  }
}

.btn {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 7px 11px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover {
  background: #f3f7fb;
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: #f7f9fc;
}

.btn.danger {
  background: #cf3f3f;
  border-color: #ac3131;
  color: #fff;
}

.btn.danger:hover {
  background: #b83838;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.small {
  padding: 5px 9px;
  font-size: 13px;
}

.btn.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.btn.icon-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

.delete-icon-btn {
  color: var(--danger);
}

.delete-icon-btn img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(86%) saturate(4212%) hue-rotate(349deg) brightness(100%) contrast(101%);
}

.delete-icon-btn:hover:disabled {
  color: #c41d3a;
}

.delete-icon-btn:hover:disabled img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(95%) saturate(4120%) hue-rotate(347deg) brightness(92%) contrast(103%);
}

.delete-icon-btn:not(:disabled) {
  background: #e11937;
  border-color: #c71531;
  color: #fff;
}

.delete-icon-btn:not(:disabled) img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(117deg) brightness(104%) contrast(101%);
}

.delete-icon-btn:not(:disabled):hover {
  background: #c71531;
  border-color: #aa1129;
  color: #fff;
}

.menu-toggle {
  display: none;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.badge.role {
  background: #e6edf7;
  color: #234975;
  border: 1px solid #c6d4e6;
}

.badge.ok {
  background: #e6f5ee;
  color: var(--ok);
  border: 1px solid #bfdfd0;
}

.badge.warn {
  background: #fdf3da;
  color: var(--warn);
  border: 1px solid #ead49f;
}

.badge.danger {
  background: #fae8e8;
  color: var(--danger);
  border: 1px solid #e9c0c0;
}

.badge.dev {
  background: #ebf2fb;
  color: #2f5a8e;
  border: 1px solid #cbdbef;
}

.deadline-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.2;
}

.deadline-indicator.is-overdue {
  color: #8d2222;
  background: #feecec;
  border-color: #f3c8c8;
}

.deadline-indicator.is-soon {
  color: #8a5f00;
  background: #fff6df;
  border-color: #ecd9a8;
}

.deadline-indicator.is-normal,
.deadline-indicator.is-none {
  color: inherit;
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}

.deadline-status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.deadline-status-badge.is-overdue {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.deadline-status-badge.is-soon {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.file-card-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #cbd8e6;
  border-radius: 12px;
  background: #f8fbfe;
  color: #718398;
  text-align: center;
}

.file-card-empty::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: #eaf2fb;
  color: #41698e;
  content: '+';
  font-size: 24px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .detail-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-summary-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .detail-summary-strip {
    grid-template-columns: 1fr;
  }

  .detail-summary-item:last-child { grid-column: auto; }
  .detail-summary-item { min-height: 62px; }

  .order-detail-tabs-topbar {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .order-detail-tabs-topbar::-webkit-scrollbar { display: none; }
  .order-detail-tabs-topbar .order-detail-tab { flex: 0 0 auto; }

  .order-record-row .order-row-edit-btn {
    opacity: 1;
    transform: none;
  }
}

.alert {
  margin-top: 10px;
  border: 1px solid;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
}

.alert.success {
  border-color: #b9dfcc;
  background: #eff9f3;
  color: #1f6a46;
}

.alert.error {
  border-color: #efc2c2;
  background: #fdf0f0;
  color: #972f2f;
}

.toast-stack {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
  width: min(360px, calc(100vw - 18px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
  animation: toast-enter 0.2s ease;
}

.pending-actions-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.pending-actions-toggle {
  border: 1px solid #c9d7e6;
  border-radius: 999px;
  background: #123a63;
  color: #fff;
  min-height: 46px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(18, 58, 99, 0.25);
  cursor: pointer;
}

.pending-actions-toggle-label {
  font-size: 14px;
  font-weight: 700;
}

.pending-actions-toggle-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.pending-actions-panel {
  width: min(430px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.pending-actions-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e6edf5;
  background: #f8fbfe;
}

.pending-actions-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  max-height: min(560px, calc(100vh - 150px));
  overflow: auto;
}

.pending-actions-item {
  border: 1px solid #d6e1ec;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.pending-actions-item-copy {
  display: grid;
  gap: 4px;
}

.pending-actions-item-copy strong {
  font-size: 14px;
}
.pending-actions-item-meta { display:inline-flex;width:max-content;padding:3px 7px;border-radius:999px;background:#edf2f8;color:#53677f;font-size:9px;font-weight:800;order:-1 }
.pending-actions-item-meta.type-work{background:#e9f7ef;color:#187049}.pending-actions-item-meta.type-order{background:#edf3ff;color:#285fb8}.pending-actions-item-meta.type-client{background:#f4edff;color:#7145ad}.pending-actions-item-meta.type-object{background:#fff3df;color:#9a6518}

.pending-actions-item-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pending-actions-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pending-actions-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7a8b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pending-actions-close:hover {
  background: #edf3f9;
}

body.modal-open .pending-actions-root {
  display: none;
}

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: #7f8ea0;
}

.toast.toast-success {
  border-color: #cddfce;
}

.toast.toast-success::before {
  background: #2a8458;
}

.toast.toast-error {
  border-color: #ebcccc;
}

.toast.toast-error::before {
  background: #b34747;
}

.toast.toast-info {
  border-color: #cdd9ea;
}

.toast.toast-info::before {
  background: #3c70b3;
}

.toast.is-closing {
  opacity: 0;
  transform: translateX(16px);
}

.toast__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef2f6;
  color: #4f6278;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.toast__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  flex: 1;
}

.toast.toast-success .toast__icon {
  background: #e8f5ed;
  color: #1f7b4f;
}

.toast.toast-error .toast__icon {
  background: #fbecec;
  color: #a13333;
}

.toast.toast-info .toast__icon {
  background: #e9f0fb;
  color: #2f5a8e;
}

.toast__close {
  border: 0;
  background: transparent;
  color: #728195;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
}

.toast__close:hover {
  background: #edf2f7;
  color: #4f6278;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateX(10px) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.client-card-main {
  margin-top: 12px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 12px;
}

.dashboard-workforce-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-workforce-card .panel-head {
  margin-bottom: 0;
}

.workforce-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.workforce-total strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.workforce-total span {
  color: var(--muted);
  font-size: 14px;
}

.workforce-block {
  display: grid;
  gap: 8px;
}

.workforce-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.workforce-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.workforce-segment {
  height: 100%;
}

.workforce-segment.is-male,
.workforce-dot.is-male {
  background: #3b82f6;
}

.workforce-segment.is-female,
.workforce-dot.is-female {
  background: #ec4899;
}

.workforce-segment.is-other,
.workforce-dot.is-other {
  background: #8b5cf6;
}

.workforce-segment.is-unknown,
.workforce-dot.is-unknown {
  background: #cbd5e1;
}

.workforce-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--muted);
}

.workforce-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workforce-dot {
  width: 8px;
  height: 8px;
  border-radius: 6px;
}

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

.workforce-avg {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.workforce-tenure-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 1fr));
  gap: 12px;
  align-items: end;
}

.workforce-tenure-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.workforce-tenure-bar {
  position: relative;
  width: 100%;
  height: 90px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.workforce-tenure-fill {
  width: 100%;
  height: var(--level);
  background: #0ea5e9;
  border-radius: 10px 10px 0 0;
}

.workforce-tenure-count {
  position: absolute;
  top: 6px;
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

.workforce-tenure-label {
  font-size: 12px;
  color: var(--muted);
}

.client-info-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  min-width: 0;
}

.client-info-panel .panel-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dbe2ea;
  align-items: center;
}

.client-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px 10px;
  align-items: start;
}

.client-record-grid {
  padding: 0;
  gap: 20px;
}

.client-tab-panel {
  display: none;
  gap: 12px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.client-tab-panel.is-active {
  display: grid;
}

.client-summary-grid {
  margin-top: 4px;
}

.client-summary-card {
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.client-summary-label {
  font-size: 12px;
  font-weight: 700;
  color: #6d7d90;
}

.client-summary-value {
  font-size: 20px;
  font-weight: 800;
  color: #18273d;
}

.client-order-form {
  margin-top: 8px;
}

.client-workflow-grid {
  margin-top: 4px;
}

.client-workflow-card {
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.client-workflow-card h3 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5e7187;
}

.client-workflow-card tr.order-row-archived > td {
  background: #f3f4f6;
  color: #687587;
}
.client-workflow-card tr.order-row-archived:hover > td {
  background: #e8edf3;
}
.client-workflow-card tr.order-row-archived a {
  color: #5f6e80;
}
.client-workflow-card tr.order-row-archived .badge,
.client-workflow-card tr.order-row-archived .deadline-indicator {
  filter: grayscale(1);
  opacity: .72;
}
.client-workflow-card tr.order-row-archived .muted {
  color: #7b8798;
}

.client-settings-block {
  display: grid;
  gap: 8px;
}

.trust-indicator {
  margin-bottom: 12px;
}

.trust-indicator-compact {
  margin-bottom: 0;
}

.trust-indicator-compact .trust-indicator-trigger {
  gap: 6px;
  align-items: center;
}

.trust-indicator-compact .trust-gauge {
  width: 72px;
  height: 46px;
  --trust-pointer-radius: 28px;
  --trust-tick-radius: 35px;
}

.trust-indicator-compact .trust-gauge-arc-wrap {
  width: 72px;
  height: 36px;
}

.trust-indicator-compact .trust-gauge-scale {
  width: 72px;
  height: 72px;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
}

.trust-indicator-compact .trust-gauge-score,
.trust-indicator-compact .trust-gauge-ticks {
  display: none;
}

.trust-indicator-compact .trust-gauge-pointer-dot {
  display: none;
}

.trust-indicator-compact .trust-gauge-score {
  display: block;
  font-size: 11px;
  top: 18px;
}

.trust-indicator-compact .trust-gauge-text .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.trust-indicator-compact .trust-score-inline {
  display: none;
  font-size: 12px;
  font-weight: 800;
  color: #1f2b3a;
}

.trust-indicator-minimal {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.trust-indicator-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #1d2b3a;
  cursor: pointer;
}

.trust-gauge-trigger {
  align-items: flex-end;
}

.trust-gauge {
  position: relative;
  width: 160px;
  height: 110px;
  --trust-pointer-radius: 70px;
  --trust-tick-radius: 82px;
}

.trust-gauge-arc-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 80px;
  overflow: hidden;
}

.trust-gauge-scale {
  position: absolute;
  inset: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    from 270deg,
    #ef2525 0deg 36deg,
    #ff8614 36deg 72deg,
    #ffb31a 72deg 108deg,
    #e5df00 108deg 144deg,
    #62c900 144deg 180deg,
    transparent 180deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 12px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 12px));
}

.trust-gauge-pointer-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(var(--trust-pointer-radius) - 5px);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4c5158 0%, #25292e 100%);
  transform-origin: 0 50%;
  transform: translateY(50%) rotate(calc(var(--trust-angle) - 180deg));
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.trust-gauge-pointer-dot::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border: 2px solid #17191c;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #464b51 0 25%, #25282c 55%, #17191c 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.trust-gauge-score {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 800;
  color: #1b2633;
  letter-spacing: 0.02em;
}

.trust-gauge-ticks {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.trust-gauge-tick {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(calc(var(--tick-angle) - 180deg)) translateX(var(--trust-tick-radius));
  color: #6b7280;
  font-size: 11px;
}

.trust-gauge-tick span {
  display: inline-block;
  transform: rotate(calc(180deg - var(--tick-angle)));
}

.trust-gauge-text {
  display: grid;
  gap: 2px;
}

.trust-gauge-text .label {
  font-size: 12px;
  font-weight: 600;
  color: #2b3c4f;
  letter-spacing: 0.01em;
}

.trust-score-inline {
  display: none;
}

.trust-indicator-trigger .label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trust-indicator-trigger:hover .label,
.trust-indicator-trigger:focus-visible .label {
  text-decoration: underline;
}

.trust-indicator-trigger:focus-visible {
  outline: 2px solid #86add4;
  outline-offset: 4px;
  border-radius: 6px;
}

.trust-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: 320px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid #d6deea;
  background: #fff;
  color: #3a4a5d;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(17, 33, 55, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  pointer-events: none;
  z-index: 8;
}

.trust-indicator-minimal:hover .trust-tooltip,
.trust-indicator-minimal:focus-within .trust-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.trust-indicator .label {
  margin: 0;
}

.trust-badge {
  font-size: 12px;
}

.trust-reasons {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #2b3c4f;
}

.trust-reasons li {
  margin: 2px 0;
}

.trust-note {
  margin: 8px 0 0;
  font-size: 12px;
}

.trust-flags-form {
  margin-top: 8px;
}

.trust-flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.trust-flag-item {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trust-flag-item input {
  margin-right: 6px;
}

.trust-flag-delta {
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 6px;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

.trust-flag-delta.ok {
  background: #e6f7ed;
  color: #166534;
}

.trust-flag-delta.danger {
  background: #fdecec;
  color: #991b1b;
}

.collapsible-block {
  position: relative;
}

.collapsible-content {
  max-height: var(--collapsible-max-height, 220px);
  overflow: hidden;
  position: relative;
  transition: max-height 0.2s ease;
}

.collapsible-block.is-expanded .collapsible-content {
  max-height: none;
}

.collapsible-block.is-collapsed .collapsible-content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
  pointer-events: none;
}

.collapsible-toggle {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #2f5a8e;
  cursor: pointer;
}

.collapsible-toggle::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.collapsible-block.is-expanded .collapsible-toggle::after {
  transform: rotate(-135deg);
}

.collapsible-toggle:focus-visible {
  outline: 2px solid #86add4;
  outline-offset: 2px;
  border-radius: 4px;
}

.official-checks {
  border: 1px solid #d6dde6;
  border-radius: 10px;
  background: #f8fafd;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.official-checks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.official-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.official-check-item {
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.official-check-item .muted {
  margin: 3px 0 0;
}

.official-check-link {
  text-decoration: none;
  color: inherit;
}

.official-check-link:hover {
  border-color: #c6d7eb;
  background: #f8fbff;
}

.official-check-link:focus-visible {
  outline: 2px solid #8fb2d8;
  outline-offset: 2px;
}

.trust-details-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.trust-details-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trust-details-top .label {
  margin: 0;
}

.client-cell {
  margin-bottom: 0;
  align-self: start;
}

.client-cell-span-2 {
  grid-column: span 2;
}

.client-info-panel input,
.client-info-panel select,
.client-info-panel textarea {
  background: #f7f8fa;
  border-color: #cfd6df;
  border-radius: 6px;
  padding: 7px 10px;
}

.client-info-panel input[readonly],
.client-info-panel textarea[readonly],
.client-info-panel select:disabled {
  background: #eceff3;
  color: #39495a;
}

.client-info-panel .btn.secondary.small {
  width: auto;
}

.label-accent {
  color: #1d57a0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.panel-head a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.panel-head a:hover {
  text-decoration: underline;
}

.panel-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.panel-stack {
  display: grid;
  gap: 12px;
}

.users-admin-layout {
  align-items: start;
}

.users-management-panel {
  padding: 12px;
}

.users-submenu-strip {
  margin: -2px 0 10px;
  border-bottom: 1px solid #dbe3ec;
  overflow-x: auto;
}

.users-filter-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: max-content;
}

.users-filter-tabs a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #3f556d;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.users-filter-tabs a:hover {
  color: #1f3247;
}

.users-filter-tabs a.is-active {
  color: #151f2a;
  border-bottom-color: #0000f0;
}

.users-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.users-toolbar form {
  margin: 0;
}

.users-registry-toolbar {
  margin-top: 2px;
}

.users-table tbody tr[data-user-id] {
  cursor: pointer;
}

.users-table tbody tr[data-user-id]:hover,
.users-table tbody tr[data-user-id]:focus-visible {
  background: #f5f8fc;
  outline: none;
}

.users-table tbody tr.is-selected {
  background: #eaf3ff;
}

.users-list-panel .table-wrap table tbody tr.is-selected {
  background: #eef5ff;
}

.users-form {
  display: grid;
  gap: 0;
}

.users-create-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin:0 0 22px; padding:0; list-style:none; }
.users-create-steps li { position:relative; display:flex; align-items:center; gap:10px; color:#7a8798; }
.users-create-steps li:not(:last-child)::after { content:""; position:absolute; top:17px; left:42px; right:10px; height:2px; background:#e3e9f1; }
.users-create-steps li > span { position:relative; z-index:1; display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid #d7e0eb; border-radius:50%; background:#fff; font-weight:800; }
.users-create-steps li div { position:relative; z-index:1; padding-right:10px; background:#fff; }
.users-create-steps strong,.users-create-steps small { display:block; }
.users-create-steps strong { color:#526176; font-size:13px; }
.users-create-steps small { margin-top:2px; font-size:11px; }
.users-create-steps li.is-active > span { border-color:#3157e8; background:#3157e8; color:#fff; box-shadow:0 0 0 4px #edf1ff; }
.users-create-steps li.is-active strong { color:#17263a; }
.users-create-steps li.is-complete > span { border-color:#18a36d; background:#e8f8f1; color:#08754c; }
.users-create-steps li.is-complete:not(:last-child)::after { background:#86d8b7; }
.users-create-step > header { margin-bottom:14px; }
.users-create-step > header h4 { margin:0 0 4px; color:#17263a; font-size:17px; }
.users-create-step > header p { margin:0; color:#718096; font-size:12px; }
.users-create-note { display:flex; gap:12px; margin-top:16px; padding:13px 14px; border-radius:10px; background:#f1f5ff; color:#53627a; font-size:12px; }
.users-create-note strong { flex:0 0 auto; color:#263b60; }
.users-create-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid #e4eaf2; }
.users-create-summary div { padding:11px 12px; border-radius:9px; background:#f6f8fb; }
.users-create-summary span,.users-create-summary strong { display:block; }
.users-create-summary span { margin-bottom:4px; color:#7b8797; font-size:11px; }
.users-create-summary strong { color:#17263a; font-size:13px; }
.users-create-actions { justify-content:flex-end; margin-top:20px; padding-top:16px; border-top:1px solid #e4eaf2; }
.users-create-actions #cancelCreateUser { margin-right:auto; }

.time-admin-page { display:grid; gap:18px; }
.time-admin-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding-bottom:15px; border-bottom:1px solid #dfe6ee; }
.time-admin-head h2 { margin:0 0 4px; color:#17263a; font-size:20px; }
.time-admin-head p { margin:0; color:#748297; font-size:12px; }
.time-admin-layout { display:grid; grid-template-columns:minmax(260px,.55fr) minmax(0,1.6fr); gap:14px; align-items:start; }
.time-admin-form { display:grid; gap:13px; padding:19px; }
.time-admin-form h3,.time-admin-list h3,.time-report-chart h3 { margin:0; color:#26374d; font-size:15px; }
.time-admin-form label { display:grid; gap:6px; color:#46576c; font-size:11px; font-weight:800; }
.time-admin-form input,.time-admin-form select { height:40px; }
.time-admin-list { padding:18px; overflow:auto; }
.time-admin-list > header { display:flex; justify-content:space-between; margin-bottom:13px; }
.time-admin-list table { width:100%; border-collapse:collapse; }
.time-admin-list th,.time-admin-list td { padding:11px 9px; border-bottom:1px solid #e7ecf2; text-align:left; font-size:12px; }
.time-admin-list th { color:#718095; font-size:10px; text-transform:uppercase; }
.inline-actions { display:flex; gap:5px; }
.time-report-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.time-report-kpis article { display:grid; gap:7px; padding:17px; border:1px solid #dfe6ee; border-radius:11px; background:#fff; }
.time-report-kpis span { color:#718095; font-size:11px; font-weight:800; text-transform:uppercase; }
.time-report-kpis strong { color:#17263a; font-size:22px; }
.time-report-chart { display:grid; gap:14px; padding:20px; }
.time-report-bar { display:grid; grid-template-columns:170px minmax(120px,1fr) 90px; align-items:center; gap:12px; font-size:12px; }
.time-report-bar i { height:10px; overflow:hidden; border-radius:999px; background:#edf1f6; }
.time-report-bar b { display:block; height:100%; border-radius:inherit; background:#4444ee; }
.time-report-bar strong { text-align:right; }
.subcontractor-dashboard { display:grid; gap:16px; }
.subcontractor-flow .dashboard-board { grid-template-columns:repeat(4,minmax(210px,1fr)); }
.work-responsible-field{display:grid;gap:5px;margin-bottom:10px}.work-responsible-field>span,.work-responsible-users legend{font-size:11px;font-weight:700;color:#65758b}.work-responsible-users{display:grid;gap:6px;max-height:180px;overflow:auto;margin:0;padding:10px;border:1px solid #d9e2ee;border-radius:10px;background:#fff}.work-responsible-users label{display:flex;align-items:center;gap:8px;font-size:12px}.work-responsible-users input{width:auto;margin:0}
.work-responsible-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.work-responsible-actions small{color:#6b778c}
.work-responsible-display{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.work-responsible-tag{display:inline-flex;align-items:center;border-radius:999px;background:#f0f1f3;color:#30343a;padding:5px 9px;font-size:11px;font-weight:650;line-height:1.1}.work-responsible-tag.is-company{background:#e9f1ff;color:#174f94}
.work-responsible-autosave{display:block;margin-top:6px;color:#8793a4;font-size:10px}
.work-open-assignment{display:flex;align-items:flex-start;gap:9px;margin-top:10px;padding:10px;border:1px solid #d8e1ed;border-radius:9px;background:#f8fafc}.work-open-assignment input{width:auto;margin-top:2px}.work-open-assignment span{display:grid;gap:2px}.work-open-assignment strong{font-size:11px}.work-open-assignment small{color:#758398;font-size:10px}.work-responsible-tag.is-open{background:#e9f8ef;color:#167044}.work-unassigned-warning{display:inline-flex;border-radius:999px;background:#fff3db;color:#9a5d00;padding:5px 9px;font-size:11px;font-weight:700}
.work-multi-assignee{display:grid;gap:6px}.work-multi-label{font-size:11px;font-weight:700;color:#65758b}.work-assignee-control{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:42px;padding:5px 8px;border:1px solid #ccd7e5;border-radius:8px;background:#fff}.work-assignee-control:focus-within{border-color:#739ee0;box-shadow:0 0 0 3px rgba(52,112,210,.1)}.work-assignee-chips{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.work-assignee-chip{border:0;background:#f0f1f3;color:#30343a;border-radius:999px;padding:5px 9px;font:inherit;font-size:11px;font-weight:650;cursor:pointer}.work-assignee-chip.is-company{background:#e9f1ff;color:#174f94}.work-assignee-chip:hover{background:#e4e7eb}.work-assignee-empty{display:none}.work-assignee-search{flex:1 1 180px!important;width:auto!important;min-width:150px!important;height:28px!important;padding:2px 4px!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:12px!important}.work-assignee-search::-webkit-search-cancel-button{display:none}.work-assignee-popover{position:absolute;z-index:100;top:calc(100% + 5px);left:0;right:0;width:100%;padding:7px;border:1px solid #d3deec;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(31,50,76,.16)}.work-assignee-options{display:grid;gap:3px;max-height:220px;overflow:auto}.work-assignee-options label,.work-assignee-options button{display:flex;align-items:center;gap:9px;width:100%;padding:8px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer}.work-assignee-options label:hover,.work-assignee-options button:hover{background:#f3f7fc}.work-assignee-options input{width:auto;margin:0}.work-assignee-options span{display:grid}.work-assignee-options strong{font-size:12px}.work-assignee-options small{font-size:10px;color:#7b889a}
.work-assignee-popover{padding:6px}.work-assignee-group-label{padding:7px 9px 4px;color:#8491a3;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.work-assignee-options{gap:1px}.work-assignee-options label,.work-assignee-options button{min-height:48px;padding:6px 8px}.work-assignee-options input{position:absolute;opacity:0;pointer-events:none}.work-assignee-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#edf1f6;color:#536177;font-size:11px;font-style:normal;font-weight:800}.work-assignee-avatar.is-company{border-radius:8px;background:#e7f0ff;color:#225997}.work-assignee-options span{min-width:0;flex:1}.work-assignee-options strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.work-assignee-options small{margin-top:2px}.work-assignee-add,.work-assignee-check{margin-left:auto;color:#3972bd;font-size:10px;font-weight:750}.work-assignee-check{display:none;width:20px;height:20px;border-radius:50%;background:#2468c9;color:#fff;place-items:center}.work-assignee-options label:has(input:checked){background:#f0f6ff}.work-assignee-options label:has(input:checked) .work-assignee-check{display:grid}
.work-assignee-options [hidden],.work-assignee-group-label[hidden]{display:none!important}
.contractor-decline-dialog{max-width:520px}.contractor-decline-dialog .modal-body{display:grid;gap:16px}.contractor-decline-warning{margin:0;padding:11px 12px;border:1px solid #f0cf8a;border-radius:9px;background:#fff8e8;color:#805400;font-size:12px;line-height:1.45}
.contractor-decline-action{border-color:#e3a7a7!important;color:#a52e2e!important}.app-notification-dropdown{position:relative}.app-notification-trigger{position:relative;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:#536276;cursor:pointer;transition:background .16s,border-color .16s,color .16s,transform .16s}.app-notification-trigger:hover{border-color:#dbe4ef;background:#f5f8fc;color:#172b49}.app-notification-trigger[aria-expanded="true"]{border-color:#c9d9ee;background:#edf4ff;color:#1759a7}.app-notification-trigger:active{transform:scale(.96)}.app-notification-trigger>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app-notification-trigger>b{position:absolute;right:-2px;top:-3px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#e63e47;color:#fff;font-size:9px;font-weight:800;line-height:1}.app-notification-menu{width:min(380px,90vw)!important;margin-top:8px!important;padding:0!important;overflow:hidden;border:1px solid #dce4ee!important;border-radius:13px!important;box-shadow:0 18px 48px rgba(27,43,66,.18)!important}.app-notification-menu>header{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;border-bottom:1px solid #e8edf3;background:#fff}.app-notification-menu>header strong{font-size:13px}.app-notification-menu>header span{border-radius:999px;background:#eaf2ff;color:#2862ae;padding:4px 7px;font-size:10px;font-weight:700}.app-notification-item{position:relative;display:grid;gap:3px;padding:12px 15px 12px 18px;border-bottom:1px solid #eef1f5;color:#26364a;text-decoration:none}.app-notification-item:last-child{border-bottom:0}.app-notification-item:hover{background:#f6f9fc}.app-notification-item.is-unread{background:#f2f7ff}.app-notification-item.is-unread:before{content:'';position:absolute;left:7px;top:17px;width:5px;height:5px;border-radius:50%;background:#2871d4}.app-notification-item strong{font-size:12px}.app-notification-item span{color:#66758a;font-size:11px;line-height:1.4}.app-notification-item small{color:#98a3b2;font-size:9px}.app-notification-empty{margin:0;padding:26px 14px;color:#7d8999;text-align:center;font-size:12px}
.subcontractor-flow .dashboard-column { min-height:260px; }
.dashboard-welcome { padding:4px 2px 2px; }.dashboard-welcome span{color:#0000e8;font-size:11px;font-weight:800;text-transform:uppercase}.dashboard-welcome h2{margin:5px 0 2px;color:#17263a;font-size:22px}.dashboard-welcome p{margin:0;color:#748297;font-size:12px}
.subcontractor-hero { padding:24px; border-radius:14px; color:#fff; background:linear-gradient(120deg,#172a46,#3434d8); box-shadow:0 12px 30px rgba(38,48,110,.16); }
.subcontractor-hero span { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.78; }
.subcontractor-hero h2 { margin:7px 0 4px; font-size:25px; }
.subcontractor-hero p { margin:0; opacity:.82; }
.subcontractor-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.7fr); gap:14px; align-items:start; }
.subcontractor-team-row { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #e7ecf2; }
.subcontractor-team-row > span { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; color:#3434d8; background:#eeeeff; font-weight:800; }
.subcontractor-team-row div { display:grid; gap:2px; }.subcontractor-team-row small { color:#7a8798; }.subcontractor-team-row i { width:9px;height:9px;border-radius:50%;background:#c8d0da;}.subcontractor-team-row i.is-online{background:#15a56e;}
@media(max-width:850px){.subcontractor-dashboard-grid{grid-template-columns:1fr;}}

@media (max-width: 850px) { .time-admin-layout { grid-template-columns:1fr; } .time-report-kpis { grid-template-columns:1fr; } }
@media (max-width: 620px) { .time-admin-head { align-items:stretch; flex-direction:column; } .time-report-bar { grid-template-columns:1fr; } .time-report-bar strong { text-align:left; } }

@media (max-width: 720px) {
  .users-create-steps li div { display:none; }
  .users-create-steps li:not(:last-child)::after { left:38px; right:4px; }
  .users-create-summary { grid-template-columns:1fr; }
}

.users-form .field {
  margin-bottom: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e2e9f2;
}

.users-inline-grid {
  margin-top: 2px;
  gap: 10px;
}

.users-active-check {
  margin-top: 10px;
}

.users-permissions-block {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #f9fbff;
}

.users-permissions-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.users-permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 6px 12px;
}

.users-permission-item {
  font-weight: 600;
}

.users-modules-panel {
  margin-top: 12px;
}

.users-modal-backdrop {
  z-index: 1300;
}

.users-modal-dialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 24px);
}
.subcontractor-create-dialog { width:min(820px,100%); }
.subcontractor-create-form { gap:20px; }
.subcontractor-form-section { display:grid; gap:8px; }
.subcontractor-form-section > header { padding-bottom:10px; border-bottom:1px solid #e4eaf2; }
.subcontractor-form-section h4 { margin:0 0 3px; color:#26374d; font-size:15px; }
.subcontractor-form-section header p { margin:0; color:#7a8798; font-size:11px; }

.users-modules-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 24px);
}

.users-modules-note {
  margin: 0 0 10px;
}

.users-client-modules-form {
  display: grid;
  gap: 10px;
}

.users-module-client-field {
  max-width: 420px;
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-inline-form {
  margin: 0;
  display: inline-flex;
}

.topbar-inline-form .btn {
  margin: 0;
}

.order-edit-form.is-locked [data-lockable="1"]:disabled {
  opacity: 1;
  color: var(--text);
  background: #f8fafc;
}

.order-overview-panel {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.order-panel-head {
  margin-bottom: 14px;
}

.order-panel-heading {
  display: grid;
  gap: 4px;
}

.order-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e7187;
}

.order-panel-eyebrow.work-reference-title {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: #26384f;
}

.order-panel-subtitle {
  margin: 0;
  max-width: 760px;
  color: #607388;
  line-height: 1.45;
}

body.page-order_view .main > #orderTopActionsHost,
body.page-order_view .main > .order-detail-heading,
body.page-order_view .main > .order-overview-panel {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.page-order_view .topbar-primary,
body.page-order_view .topbar-secondary {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.page-order_view .main {
  padding-bottom: 72px;
}

body.page-order_view {
  background: #ffffff;
}

body.page-client_card .main > #clientTopActionsHost,
body.page-client_card .main > .client-tab-panel {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.page-client_card .topbar-primary,
body.page-client_card .topbar-secondary {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.page-client_card {
  background: #ffffff;
}

body.page-work_order_view .main > #workTopActionsHost,
body.page-work_order_view .main > .order-detail-heading,
body.page-work_order_view .main > .order-overview-panel {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.page-work_order_view .topbar-primary,
body.page-work_order_view .topbar-secondary {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.page-work_order_view .main {
  padding-bottom: 72px;
}

body.page-work_order_view {
  background: #ffffff;
}

.badge.neutral-soft,
.badge.danger-soft {
  border: 1px solid transparent;
}

.badge.neutral-soft {
  background: #eef3f8;
  color: #4d637b;
  border-color: #d5e0eb;
}

.badge.danger-soft {
  background: #fff0f0;
  color: #bb1f35;
  border-color: #f2c3cb;
}

.order-edit-layout,
.order-readonly-layout,
.order-create-shell {
  display: grid;
  gap: 14px;
}

.order-detail-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 14px 0 0;
  border-top: 1px solid #e1e7ef;
  overflow-x: auto;
}

.order-detail-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6e7b8b;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.order-topbar-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.order-detail-tabs-topbar {
  margin: 0;
  border-top: 0;
  border-bottom: 1px solid #d9e4ef;
  overflow-x: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.order-topbar-controls.is-in-topbar {
  width: 100%;
  position: relative;
  align-items: flex-end;
  flex: 1 1 100%;
  border-bottom: 1px solid #d9e4ef;
}

.order-topbar-controls.is-in-topbar .order-detail-tabs-topbar {
  border-bottom: 0;
}

.order-topbar-controls.is-in-topbar .registry-primary-actions {
  align-self: stretch;
  align-items: flex-end;
  padding-bottom: 6px;
}

body.page-order_view .order-topbar-controls.is-in-topbar {
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
}

body.page-work_order_view .order-topbar-controls.is-in-topbar {
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
}

.order-actions-dropdown-form {
  margin: 0;
}

.order-actions-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f7389;
  font: inherit;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.order-actions-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.order-actions-trigger:hover,
.order-actions-trigger[aria-expanded="true"] {
  background: rgba(20, 34, 55, 0.05);
  color: #1d3046;
}

.order-actions-trigger[aria-expanded="true"] {
  box-shadow: none;
}

.order-actions-dropdown .topbar-dropdown-item {
  width: 100%;
}

.order-actions-dropdown .topbar-dropdown-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-detail-tabs-topbar .order-detail-tab {
  padding: 10px 0 9px;
  margin-right: 22px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
}

.order-detail-tabs-topbar .order-detail-tab.is-active {
  color: #0000f0;
  border-bottom-color: #0000f0;
}

.order-detail-tabs-topbar .order-detail-tab:hover {
  background: transparent;
  color: #0000f0;
}

.order-detail-tabs-topbar .order-tab-count {
  position: relative;
  top: -4px;
  right: auto;
  margin-left: 1px;
}

.order-detail-tabs-topbar .order-detail-tab-with-count {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-right: 0;
}

.order-topbar-controls{position:relative}.record-step-navigation{position:absolute;left:50%;top:50%;display:flex;align-items:center;justify-content:center;gap:9px;z-index:2;transform:translate(-50%,-50%)}.record-step-navigation>a,.record-step-navigation>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid #d6dfeb;border-radius:50%;background:#fff;color:#245eea;text-decoration:none;box-shadow:0 2px 7px rgba(31,55,91,.08);transition:border-color .15s,background .15s,transform .15s,box-shadow .15s}.record-step-navigation>a:hover{border-color:#9bb4ee;background:#f6f8ff;transform:translateY(-1px);box-shadow:0 4px 10px rgba(31,55,91,.12)}.record-step-navigation>.record-step-list{display:flex;flex-direction:column;gap:3.5px;width:36px;height:36px;border-color:#245eea;background:linear-gradient(145deg,#326df4,#1551df);box-shadow:0 4px 11px rgba(36,94,234,.28)}.record-step-navigation>.record-step-list:hover{border-color:#174ed5;background:linear-gradient(145deg,#2864ee,#1248cd);box-shadow:0 6px 14px rgba(36,94,234,.34)}.record-step-list i{display:block;width:15px;height:1.5px;border-radius:4px;background:#fff}.record-step-arrow::before{content:"";width:6px;height:6px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor}.record-step-arrow.is-down::before{transform:translateY(-2px) rotate(45deg)}.record-step-arrow.is-up::before{transform:translateY(2px) rotate(225deg)}.record-step-navigation>.is-disabled{color:#b8c2d0;background:#f7f9fc;box-shadow:none;cursor:default}@media(max-width:1100px){.record-step-navigation{position:static;order:3;width:100%;padding-top:8px;transform:none}.order-topbar-controls{flex-wrap:wrap}}

.order-detail-tab-with-count {
  position: relative;
  padding-right: 30px;
}

.order-tab-count {
  position: absolute;
  top: 7px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0000f0;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.order-detail-tab.is-active {
  color: #18273d;
  border-bottom-color: #0000f0;
}

.order-detail-tab:hover {
  color: #1c2c41;
  background: rgba(20, 34, 55, 0.03);
}

.order-record-shell {
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.detail-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #dbe5f0;
  box-shadow: 0 8px 24px rgba(32, 58, 85, 0.06);
}

.detail-summary-item {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
}

.detail-summary-item > span {
  color: #718398;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.detail-summary-item strong,
.detail-summary-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-summary-item strong { color: #1d344b; font-size: 14px; }
.detail-summary-item small { color: #718398; font-size: 11px; }
.detail-summary-item.is-alert { background: #fff4f4; }
.detail-summary-item.is-alert strong { color: #a22525; }

.detail-status-dot::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #94a3b8;
  content: '';
}

.detail-status-dot.status-in_progress::before,
.detail-status-dot.status-confirmed::before { background: #3b82f6; }
.detail-status-dot.status-done::before { background: #22a06b; }
.detail-status-dot.status-cancelled::before { background: #dc4c4c; }

.deadline-row-value {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}

.deadline-row-value small {
  color: #718398;
  font-size: 11px;
  font-weight: 500;
}

.deadline-row-separator {
  color: #a1afbd;
  font-size: 12px;
}

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

.relation-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

a.relation-card:hover {
  border-color: #aac3dc;
  box-shadow: 0 10px 24px rgba(32, 58, 85, 0.08);
  transform: translateY(-1px);
}

.relation-card > span {
  color: #718398;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.relation-card > strong { color: #203a55; font-size: 16px; }
.relation-card > small { color: #718398; font-size: 12px; }
.relation-card.is-static { background: #f8fafc; }

.technical-info-disclosure {
  margin-top: 18px;
  border-top: 1px solid #e7edf4;
  color: #60758b;
}

.technical-info-disclosure > summary {
  padding: 14px 0 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.technical-info-disclosure dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 10px 0 0;
}

.technical-info-disclosure dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

.technical-info-disclosure dt { color: #718398; }
.technical-info-disclosure dd { margin: 0; color: #263f57; font-weight: 600; text-align: right; }

.navigation-links {
  position: relative;
  display: inline-flex;
}

.navigation-trigger {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3979ad;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.navigation-trigger:hover { color: #174d7e; background: #edf5fd; transform: translateY(-1px); }
.navigation-trigger:focus-visible { outline: 2px solid #3978ad; outline-offset: 2px; }
.navigation-trigger > img { display: block; width: 15px; height: 15px; }

.navigation-menu {
  position: fixed;
  right: auto;
  z-index: 20050;
  min-width: 0;
}

.navigation-menu .navigation-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 600;
}

.navigation-menu .navigation-menu-item img { width: 19px; height: 19px; flex: 0 0 19px; object-fit: contain; }

.address-autocomplete-shell { position: relative; width: 100%; }
.address-autocomplete-shell > input,
.address-autocomplete-shell > textarea { width: 100%; }

.address-suggestions {
  position: fixed;
  z-index: 10050;
  overflow: hidden;
  border: 1px solid #cbd9e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(32, 58, 85, 0.16);
}

.address-suggestion {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
  color: #263f57;
  text-align: left;
  cursor: pointer;
}

.address-suggestion:hover,
.address-suggestion:focus { background: #f2f7fc; outline: none; }
.address-suggestion strong { font-size: 13px; }
.address-suggestion small { color: #718398; font-size: 11px; }
.address-attribution { padding: 6px 10px; color: #8393a4; font-size: 9px; text-align: right; }

.address-object-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid #d5e2ef;
  border-radius: 9px;
  background: #f7faff;
  color: #526980;
  font-size: 11px;
}

.time-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; }
.time-hero h2 { margin:3px 0 5px; }
.time-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:14px 0; }
.time-summary-card { display:flex; flex-direction:column; gap:4px; padding:18px 20px; }
.time-summary-card span,.time-summary-card small { color:#718398; font-size:11px; }
.time-summary-card strong { color:#203a52; font-size:23px; }
.time-entry-forms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.time-entry-form { display:flex; flex-direction:column; gap:12px; padding:16px; border:1px solid #e3ebf2; border-radius:12px; background:#fbfcfe; }
.time-entry-form h3 { margin:0; }
.time-entry-form label:not(.checkbox-inline) { display:flex; flex-direction:column; gap:5px; color:#607488; font-size:11px; font-weight:650; }
.time-form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.time-table td small { display:block; margin-top:3px; color:#7a8c9d; font-size:10px; }
.time-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:5px; }
.time-row-actions form { margin:0; }
.time-live-actions { display:flex; align-items:center; gap:7px; }
.time-live-actions form { margin:0; }
.header-running-timer { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px; border:1px solid #cfe0ee; border-radius:8px; background:#f3f8fc; color:#245d91; font-size:11px; font-weight:700; text-decoration:none; }
.header-running-timer:hover { border-color:#9dbbd3; background:#eaf3fa; }
.header-running-dot { width:7px; height:7px; border-radius:50%; background:#2f9d62; box-shadow:0 0 0 3px rgba(47,157,98,.13); }
.work-time-control { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:14px 16px; border:1px solid #dce7f0; border-radius:11px; background:#f8fbfd; }
.work-time-control > div { display:flex; min-width:0; flex-direction:column; align-items:flex-start; gap:4px; }
.work-time-control small { color:#718398; }
.work-time-start-form { display:flex; align-items:center; gap:8px; }
@media (max-width:800px) { .time-summary-grid,.time-entry-forms{grid-template-columns:1fr}.time-hero,.work-time-control{align-items:stretch;flex-direction:column}.work-time-start-form{align-items:stretch;flex-direction:column}.time-form-row{grid-template-columns:1fr} }

.time-view-tabs { display:inline-flex; gap:4px; margin-bottom:14px; padding:4px; border:1px solid #dce6ef; border-radius:10px; background:#f5f8fb; }
.time-add-manual-trigger { float:right; margin-top:2px; }
.time-entry-dialog { width:min(540px,calc(100vw - 28px)); padding:0; border:0; border-radius:15px; box-shadow:0 26px 80px rgba(22,42,60,.3); }
.time-entry-dialog { max-height:calc(100dvh - 24px); overflow:hidden; }
.time-entry-dialog::backdrop { background:rgba(18,33,47,.42); backdrop-filter:blur(2px); }
.time-entry-dialog-form { display:flex; flex-direction:column; gap:12px; max-height:calc(100dvh - 24px); padding:20px; overflow:auto; overscroll-behavior:contain; }
.time-entry-dialog-form header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:3px; }
.time-entry-dialog-form h3 { margin:0 0 3px; color:#203a52; }
.time-entry-dialog-form header p { margin:0; color:#788a9b; font-size:11px; }
.time-entry-dialog-form > label,.time-entry-dialog-form .time-form-row > label { display:flex; flex-direction:column; gap:5px; color:#607488; font-size:11px; font-weight:650; }
.time-entry-dialog-form footer { position:sticky; bottom:-20px; display:flex; justify-content:flex-end; gap:8px; margin:5px -20px -20px; padding:14px 20px; border-top:1px solid #e2e8f0; background:rgba(255,255,255,.96); backdrop-filter:blur(8px); }
.lenio-time-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; padding:6px 2px; }
.lenio-time-head h2 { margin:2px 0; color:#203a52; font-size:26px; letter-spacing:-.03em; }
.lenio-time-head p { margin:0; color:#7b8d9e; font-size:11px; }
.lenio-active-work { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:16px; margin-bottom:16px; padding:16px 18px; border-color:#bcdcc9; background:linear-gradient(115deg,#f1faf5,#fff); box-shadow:0 8px 24px rgba(35,91,62,.07); }
.lenio-active-pulse { display:grid; width:38px; height:38px; place-items:center; border-radius:50%; background:#e1f4e8; }
.lenio-active-pulse span { width:10px; height:10px; border-radius:50%; background:#2d9d61; box-shadow:0 0 0 5px rgba(45,157,97,.13); }
.lenio-active-copy { display:flex; min-width:0; flex-direction:column; gap:2px; }
.lenio-active-copy small { color:#31805a; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.lenio-active-copy strong,.lenio-active-copy span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lenio-active-copy strong { color:#244258; font-size:13px; }
.lenio-active-copy span { color:#75899a; font-size:10px; }
.lenio-active-time { color:#1e543c; font-size:21px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.lenio-work-queue,.lenio-day-log { margin-bottom:14px; overflow:hidden; }
.time-workspace-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr); align-items:start; gap:16px; }
.time-workspace-main,.time-workspace-side { min-width:0; }
.time-workspace-side { position:sticky; top:78px; }
.lenio-queue-search { display:flex; width:min(270px,100%); align-items:center; gap:8px; padding:0 10px; border:1px solid #dce6ee; border-radius:9px; background:#fff; }
.lenio-queue-search img { width:15px; height:15px; opacity:.55; }
.lenio-queue-search input { width:100%; padding:8px 0; border:0; outline:0; background:transparent; }
.lenio-work-list { margin:0 -18px -18px; border-top:1px solid #e7edf2; }
.lenio-work-row { display:grid; grid-template-columns:50px minmax(220px,1fr) 70px 70px auto; align-items:center; gap:12px; min-height:82px; padding:12px 18px; border-bottom:1px solid #e9eef3; transition:background 140ms ease,box-shadow 140ms ease; }
.lenio-work-row:last-child { border-bottom:0; }
.lenio-work-row:hover { position:relative; z-index:1; background:#f7fafc; box-shadow:inset 3px 0 #4b8bbb; }
.lenio-work-row[hidden] { display:none; }
.lenio-work-id { color:#6f8496; font-size:11px; font-weight:800; }
.lenio-work-info { display:flex; min-width:0; flex-direction:column; gap:3px; }
.lenio-work-info strong,.lenio-work-info span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lenio-work-info strong { color:#29455c; font-size:12px; }
.lenio-work-info span { color:#7d8f9f; font-size:10px; }
.time-work-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:3px; }
.time-work-tags em { padding:2px 6px; border-radius:8px; background:#edf3f7; color:#667d90; font-size:8px; font-style:normal; font-weight:700; }
.time-work-tags em.is-overdue { background:#fff0ee; color:#bd4f43; }
.lenio-work-hours { display:flex; flex-direction:column; gap:2px; }
.lenio-work-hours small { color:#91a0ad; font-size:8px; font-weight:700; text-transform:uppercase; }
.lenio-work-hours strong { color:#425b70; font-size:11px; white-space:nowrap; }
.lenio-work-actions { display:flex; justify-content:flex-end; gap:6px; }
.lenio-work-actions form { margin:0; }
.lenio-work-row.is-without-object { background:#fafbfd; }
.lenio-timeline article { display:grid; grid-template-columns:72px 10px minmax(0,1fr) auto; align-items:center; gap:8px; padding:11px 0; border-bottom:1px solid #edf1f4; }
.lenio-timeline article:last-child { border-bottom:0; }
.lenio-timeline time { color:#61778b; font-size:10px; font-variant-numeric:tabular-nums; }
.lenio-timeline article > span { width:8px; height:8px; border:2px solid #fff; border-radius:50%; background:#5895c2; box-shadow:0 0 0 1px #b9cede; }
.lenio-timeline article > div { display:flex; min-width:0; flex-direction:column; gap:2px; }
.lenio-timeline strong { color:#314b61; font-size:11px; }
.lenio-timeline small { color:#8293a2; font-size:9px; }
.lenio-timeline b { color:#29475e; font-size:11px; }
.work-completion-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); gap:14px; }
.work-completion-form,.completion-material-form { display:flex; flex-direction:column; gap:11px; }
.work-completion-form label,.completion-material-form label { display:flex; flex-direction:column; gap:5px; color:#607488; font-size:11px; font-weight:650; }
.work-completion-form .checkbox-inline { flex-direction:row; }
.completion-material-list { display:flex; flex-direction:column; }
.completion-material-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #e8eef3; }
.completion-material-list span { display:flex; min-width:0; flex-direction:column; gap:2px; }
.completion-material-list strong { color:#334f65; font-size:11px; }
.completion-material-list small { color:#8192a1; font-size:9px; }
.completion-material-list b { color:#29475e; font-size:11px; white-space:nowrap; }
.completion-totals { display:flex; justify-content:flex-end; gap:18px; padding:12px 0; color:#718497; font-size:10px; }
.completion-totals strong { margin-left:4px; color:#2d4a61; }
.completion-material-form { margin-top:12px; padding-top:12px; border-top:1px solid #e6edf2; }
.completion-submit-bar { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:14px; padding:14px; border:1px solid #dce7ef; border-radius:11px; background:#f8fbfd; }
.completion-submit-bar > div { display:flex; min-width:0; flex:1; flex-direction:column; gap:2px; }
.completion-submit-bar strong { color:#29465d; font-size:12px; }
.completion-submit-bar span { color:#7d8f9e; font-size:10px; }
.completion-submit-bar form { margin:0; }
.time-view-tabs a { display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:7px; color:#64778a; font-size:12px; font-weight:700; text-decoration:none; }
.time-view-tabs a.is-active { background:#fff; color:#245d91; box-shadow:0 2px 7px rgba(35,65,91,.1); }
.time-view-tabs a span { min-width:18px; padding:2px 5px; border-radius:9px; background:#e9f1f7; color:#3979ad; font-size:9px; text-align:center; }
.time-clock-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; margin-bottom:14px; padding:25px 28px; border:1px solid #d8e5ef; border-radius:15px; background:linear-gradient(135deg,#f8fbfd 0%,#eef6fb 100%); box-shadow:0 8px 25px rgba(43,76,104,.07); }
.time-clock-card.is-running { border-color:#bfdacb; background:linear-gradient(135deg,#f8fcfa 0%,#edf8f2 100%); }
.time-clock-main { display:flex; min-width:0; flex-direction:column; align-items:flex-start; gap:5px; }
.time-clock-status { display:flex; align-items:center; gap:7px; color:#64788b; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.time-clock-status > span { width:8px; height:8px; border-radius:50%; background:#94a5b5; }
.time-clock-card.is-running .time-clock-status > span { background:#36a66a; box-shadow:0 0 0 4px rgba(54,166,106,.12); }
.time-clock-value { color:#1f3b53; font-size:36px; line-height:1.1; letter-spacing:-.04em; }
.time-clock-work { overflow:hidden; max-width:100%; color:#63788b; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.time-clock-start { display:grid; grid-template-columns:minmax(220px,1fr) minmax(150px,.7fr) auto; align-items:center; gap:8px; }
.time-start-stack { display:flex; align-items:flex-end; gap:10px; }
.time-start-stack .time-clock-start { grid-template-columns:minmax(240px,1.3fr) auto minmax(170px,.8fr) minmax(170px,.8fr) auto; }
.time-work-search { display:flex; flex-direction:column; gap:4px; }
.time-work-search span { color:#687c8f; font-size:10px; font-weight:700; }
.time-without-object { display:flex; align-items:center; gap:5px; color:#566d82; font-size:11px; font-weight:650; white-space:nowrap; }
.time-clock-out-form { flex:0 0 auto; margin:0; }
.time-clock-in { min-width:150px; }
.time-clock-actions { display:flex; align-items:center; gap:8px; }
.time-clock-actions form { margin:0; }
.time-week-panel { margin-bottom:14px; }
.time-week-total { display:flex; align-items:baseline; gap:5px; }
.time-week-total strong { color:#203a52; font-size:18px; }
.time-week-total span { color:#8797a6; font-size:11px; }
.time-week-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; }
.time-week-days article { display:flex; min-width:0; flex-direction:column; gap:3px; padding:10px; border:1px solid #e6edf3; border-radius:10px; background:#fbfcfd; }
.time-week-days article.is-today { border-color:#9fc1db; background:#f1f7fb; }
.time-week-days span { color:#526a80; font-size:11px; font-weight:800; }
.time-week-days small { color:#91a0ae; font-size:9px; }
.time-week-days strong { margin:5px 0 3px; color:#2c465d; font-size:11px; }
.time-week-days i { display:block; height:3px; overflow:hidden; border-radius:2px; background:#e7edf2; }
.time-week-days i::after { display:block; width:var(--day-progress); height:100%; border-radius:inherit; background:#4a8aba; content:''; }
.time-manual-disclosure { margin-bottom:14px; padding:0; overflow:hidden; }
.time-manual-disclosure > summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:15px 18px; cursor:pointer; list-style:none; }
.time-manual-disclosure > summary::-webkit-details-marker { display:none; }
.time-manual-disclosure > summary > span:first-child { display:flex; flex-direction:column; gap:2px; }
.time-manual-disclosure > summary strong { color:#29445b; font-size:12px; }
.time-manual-disclosure > summary small { color:#8191a0; font-size:10px; }
.time-manual-disclosure > summary > span:last-child { color:#3979ad; font-size:11px; font-weight:700; }
.time-entry-form-inline { display:grid; grid-template-columns:1.2fr repeat(4,minmax(110px,.8fr)) auto; align-items:end; margin:0 10px 10px; border-radius:10px; }
.time-sheet-panel .panel-head { margin-bottom:4px; }
.time-report-filter { display:flex; align-items:center; gap:6px; }
.time-report-filter > span { color:#8a99a7; }
@media (max-width:1100px) { .time-start-stack{align-items:stretch;flex-direction:column}.time-start-stack .time-clock-start{grid-template-columns:1fr 1fr}.time-clock-out-form button{width:100%} }
@media (max-width:900px) { .time-clock-card{grid-template-columns:1fr}.time-clock-start,.time-entry-form-inline,.time-start-stack .time-clock-start{grid-template-columns:1fr}.time-week-days{grid-template-columns:repeat(4,minmax(0,1fr))}.time-clock-value{font-size:31px} }
@media (max-width:560px) { .time-week-days{grid-template-columns:repeat(2,minmax(0,1fr))}.time-clock-actions{align-items:stretch;flex-direction:column}.time-clock-actions form,.time-clock-actions button{width:100%} }
@media (max-width:900px) { .lenio-work-row{grid-template-columns:50px minmax(0,1fr) 70px auto}.lenio-work-hours:nth-of-type(4){display:none}.lenio-active-work{grid-template-columns:auto minmax(0,1fr) auto}.lenio-active-work .time-clock-actions{grid-column:2/-1;justify-content:flex-end} }
@media (max-width:1100px) { .time-workspace-grid{grid-template-columns:1fr}.time-workspace-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:14px}.time-workspace-side .panel{margin-bottom:0} }
@media (max-width:620px) { .lenio-time-head{align-items:stretch}.lenio-time-head .btn{align-self:flex-end}.lenio-work-queue .panel-head{align-items:stretch;flex-direction:column}.lenio-queue-search{width:100%}.lenio-work-row{grid-template-columns:42px minmax(0,1fr);gap:7px 10px;padding:12px 14px}.lenio-work-hours{display:none}.lenio-work-actions{grid-column:2;justify-content:flex-start}.lenio-work-actions .btn{min-height:34px}.lenio-active-work{grid-template-columns:auto minmax(0,1fr);gap:10px}.lenio-active-time{grid-column:2;font-size:19px}.lenio-active-work .time-clock-actions{grid-column:1/-1}.lenio-timeline article{grid-template-columns:68px 10px minmax(0,1fr) auto}.time-entry-dialog-form footer .btn{flex:1} }
@media (max-width:700px) { .time-workspace-side{display:block}.time-workspace-side .panel{margin-bottom:14px}.time-work-tags{margin-top:5px} }
@media (max-width:800px) { .work-completion-grid{grid-template-columns:1fr}.completion-submit-bar{align-items:stretch;flex-direction:column}.completion-submit-bar form,.completion-submit-bar button{width:100%} }

@media (max-width: 700px) {
  .relation-card-grid,
  .technical-info-disclosure dl { grid-template-columns: 1fr; }
}

.order-record-row .order-row-edit-btn {
  opacity: 0;
  transform: translateX(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.order-record-row:hover .order-row-edit-btn,
.order-record-row:focus-within .order-row-edit-btn,
.order-record-description-panel:hover .order-row-edit-btn,
.order-row-edit-btn:focus-visible {
  opacity: 1;
  transform: translateX(0);
}

.order-overview-panel,
.work-order-box,
.order-record-shell {
  box-shadow: 0 8px 26px rgba(32, 58, 85, 0.045);
}

.order-record-column + .order-record-column {
  border-left-color: #edf2f7;
}

.order-record-row {
  padding-block: 12px;
}

.order-inline-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.order-history-list {
  display: grid;
  gap: 18px;
}

.order-history-group {
  display: grid;
  gap: 12px;
}

.order-history-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-history-group-label {
  color: #5d7086;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-history-group-items {
  display: grid;
  gap: 0;
}

.order-history-item {
  position: relative;
  margin-left: 14px;
  padding: 0 0 18px 26px;
  border-left: 1px solid #e3eaf2;
}

.order-history-item:last-child {
  padding-bottom: 0;
}

.order-history-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -6px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #b8c6d6;
}

.order-history-item.is-ok::before {
  border-color: #2d9f67;
}

.order-history-item.is-warn::before {
  border-color: #c18412;
}

.order-history-item.is-danger::before {
  border-color: #ca324c;
}

.order-history-item.is-dev::before {
  border-color: #0000f0;
}

.order-history-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.order-history-item-heading {
  display: grid;
  gap: 2px;
}

.order-history-item-kind {
  color: #738298;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-history-item-title {
  color: #16263d;
  font-size: 15px;
  line-height: 1.35;
}

.order-history-item-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.order-history-item-meta time {
  color: #6f7f92;
  font-size: 12px;
  font-weight: 700;
}

.order-history-item-details {
  margin: 8px 0 0;
  color: #51667d;
  font-size: 13px;
  line-height: 1.5;
}

.order-history-item summary {
  list-style: none;
  cursor: pointer;
}

.order-history-item summary::-webkit-details-marker {
  display: none;
}

.order-history-item summary:focus-visible {
  outline: 2px solid rgba(0, 0, 240, 0.2);
  outline-offset: 2px;
  border-radius: 6px;
}

.order-history-item-toggle {
  font-size: 11px;
  color: #7b8da3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-detail-heading {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

.order-detail-heading-main {
  display: grid;
  gap: 6px;
}

.order-detail-heading-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-detail-heading-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-detail-heading-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #16263d;
}

.order-overview-stage-section {
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.order-overview-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 12px;
  flex-wrap: wrap;
}

.order-overview-stage-head h3 {
  margin: 4px 0 2px;
  font-size: 18px;
  color: #16263d;
}

.order-overview-stage-head p {
  margin: 0;
  color: #6d7d90;
  font-size: 13px;
  line-height: 1.45;
}

.order-overview-stage-empty {
  padding: 8px 20px 0;
  color: #667a90;
}

.order-overview-stage-list {
  display: grid;
  gap: 12px;
  padding: 0 20px;
}

.order-overview-stage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 0;
}

.order-overview-stage-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.order-overview-stage-code {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: #6d7d90;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-overview-stage-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-overview-stage-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-overview-stage-title-row strong {
  color: #16263d;
  font-size: 14px;
  line-height: 1.35;
}

.order-overview-stage-copy p {
  margin: 0;
  color: #51667d;
  font-size: 13px;
  line-height: 1.45;
}

.order-overview-stage-meta-line {
  color: #6d7d90;
  font-size: 12px;
}

.order-overview-stage-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #6d7d90;
  font-size: 12px;
  text-align: right;
  min-width: 132px;
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.order-overview-stage-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0000f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.order-overview-stage-link:hover {
  color: #0000c8;
  text-decoration: underline;
}

.workflow-stage-action-cell {
  width: 1%;
  white-space: nowrap;
}

.stage-edit-modal {
  width: min(760px, calc(100vw - 40px));
}

.stage-edit-delete-form {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.order-stage-modal-overview {
  display: grid;
  gap: 10px;
}

.order-stage-modal-overview-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #eef2f6;
}

.order-stage-modal-overview-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.order-stage-modal-overview-row span {
  color: #6d7d90;
  font-size: 13px;
  font-weight: 700;
}

.order-stage-modal-overview-row strong {
  color: #18273d;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .order-history-list {
    gap: 14px;
  }

  .order-topbar-controls {
    gap: 6px;
    align-items: stretch;
  }

  .order-detail-tabs-topbar {
    width: 100%;
    overflow-x: auto;
    flex: 1 1 100%;
  }

  .order-detail-heading-title {
    font-size: 24px;
  }

  .order-history-item {
    margin-left: 10px;
    padding-left: 20px;
  }

  .order-history-item-meta {
    justify-items: start;
  }

  .order-overview-stage-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-overview-stage-meta {
    justify-items: start;
    text-align: left;
    min-width: 0;
  }

  .order-overview-stage-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .order-overview-stage-code,
  .order-overview-stage-meta {
    text-align: left;
    justify-items: start;
  }

  .order-stage-modal-overview-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.order-record-header {
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e4eaf1;
}

.order-record-shell.is-editing-all .order-record-header {
  display: flex;
}

.order-record-title-wrap {
  display: grid;
  gap: 6px;
}

.order-record-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-record-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #16263d;
}

.order-title-edit-btn {
  flex: 0 0 auto;
}

.order-title-editor {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.order-title-editor label {
  font-size: 12px;
  font-weight: 700;
  color: #6d7d90;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-title-editor input {
  min-height: 46px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.order-record-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.order-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  padding: 0 20px;
}

.order-record-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.order-record-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0;
}

.order-record-label {
  color: #6d7d90;
  font-size: 13px;
  font-weight: 700;
}

.order-record-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.order-record-value {
  color: #18273d;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  min-width: 0;
}

.order-record-value-main {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.order-record-value-main > .order-view-mode {
  min-width: 0;
  flex: 0 1 auto;
}

.order-record-value-main.is-block .order-view-mode {
  white-space: pre-wrap;
}

.order-record-value-main .order-row-edit-btn {
  flex: 0 0 auto;
  margin-top: 1px;
}

.order-record-value-text {
  white-space: pre-wrap;
}

.rich-text-content {
  color: #1b2a3d;
  line-height: 1.65;
}

.rich-text-content > :first-child {
  margin-top: 0;
}

.rich-text-content > :last-child {
  margin-bottom: 0;
}

.rich-text-content p,
.rich-text-content ul,
.rich-text-content ol,
.rich-text-content table,
.rich-text-content div,
.rich-text-content blockquote {
  margin: 0 0 10px;
}

.rich-text-content ul,
.rich-text-content ol {
  padding-left: 18px;
}

.rich-text-content a {
  color: #174bbd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text-content blockquote {
  padding-left: 14px;
  border-left: 3px solid #cfd8e5;
  color: #53657a;
}

.rich-text-content table {
  width: 100%;
  border-collapse: collapse;
}

.rich-text-content th,
.rich-text-content td {
  padding: 8px 10px;
  border: 1px solid #dfe6ee;
  text-align: left;
  vertical-align: top;
}

.rich-text-content th {
  background: #f7f9fc;
  font-weight: 700;
}

.rich-text-content .rt-table-compact {
  width: auto;
  min-width: 320px;
}

.rich-text-content .rt-table-compact th,
.rich-text-content .rt-table-compact td {
  padding: 5px 8px;
  font-size: 13px;
}

.rich-text-content .rt-columns-2,
.rich-text-content .rt-columns-3,
.rich-text-content .rt-columns-4,
.rich-text-content .rt-columns-5,
.rich-text-content .rt-columns-6 {
  display: grid;
  gap: 14px;
  align-items: start;
}

.rich-text-content .rt-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rich-text-content .rt-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rich-text-content .rt-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rich-text-content .rt-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rich-text-content .rt-columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rich-text-content .rt-column {
  min-width: 0;
}

.rt-color-red {
  color: #d62839;
}

.rt-color-blue {
  color: #1d4ed8;
}

.rich-editor {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 6px 24px rgba(17, 27, 38, 0.04);
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4ebf3;
}

.rich-editor-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  margin-right: 4px;
  border-right: 1px solid #e5ecf4;
}

.rich-editor-toolbar-group:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.rich-editor-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: #f3f6fa;
  color: #314155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.rich-editor-tool:hover {
  background: #e6edf6;
}

.rich-editor-tool.is-active {
  background: #e8f0ff;
  color: #1b4ab7;
  box-shadow: inset 0 0 0 1px rgba(27, 74, 183, 0.14);
}

.rich-editor-tool:focus-visible {
  outline: 2px solid rgba(0, 0, 240, 0.18);
  outline-offset: 1px;
}

.rich-editor-tool-color::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
}

.rich-editor-tool-color.is-red {
  color: #d62839;
}

.rich-editor-tool-color.is-blue {
  color: #1d4ed8;
}

.rich-editor-surface {
  min-height: 150px;
  padding: 4px 0;
  outline: 0;
  color: #1b2a3d;
  line-height: 1.65;
}

.rich-editor-surface > :first-child {
  margin-top: 0;
}

.rich-editor-surface > :last-child {
  margin-bottom: 0;
}

.rich-editor-surface:empty::before {
  content: "Kirjuta siia kirjeldus...";
  color: #90a0b3;
}

.rich-editor-surface a {
  color: #174bbd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-editor-surface blockquote {
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 3px solid #cfd8e5;
  color: #53657a;
}

.rich-editor-surface .rt-table-compact {
  width: auto;
  min-width: 320px;
}

.rich-editor-surface .rt-table-compact th,
.rich-editor-surface .rt-table-compact td {
  padding: 5px 8px;
  font-size: 13px;
}

.rich-editor-surface .rt-columns-2,
.rich-editor-surface .rt-columns-3,
.rich-editor-surface .rt-columns-4,
.rich-editor-surface .rt-columns-5,
.rich-editor-surface .rt-columns-6 {
  display: grid;
  gap: 14px;
  align-items: start;
}

.rich-editor-surface .rt-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rich-editor-surface .rt-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rich-editor-surface .rt-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rich-editor-surface .rt-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rich-editor-surface .rt-columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rich-editor-surface .rt-column {
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px dashed #d9e2ee;
  border-radius: 12px;
  background: #fbfdff;
}

.rich-editor-surface .rt-column > :first-child {
  margin-top: 0;
}

.rich-editor-surface .rt-column > :last-child {
  margin-bottom: 0;
}

.rich-editor-linkbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #f8fbff;
}

.rich-editor-linkbar.is-hidden {
  display: none;
}

.rich-editor-link-input {
  min-width: min(100%, 320px);
  flex: 1 1 220px;
}

.rich-editor-surface table {
  table-layout: fixed;
  margin-bottom: 12px;
}

.rich-editor-surface th,
.rich-editor-surface td {
  position: relative;
}

.rich-editor-table-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.rich-editor-table-controls.is-hidden {
  display: none;
}

.rich-editor-table-menu {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 223, 235, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
}

.rich-editor-table-menu-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rich-editor-table-menu-group + .rich-editor-table-menu-group {
  padding-left: 10px;
  border-left: 1px solid #e4ebf3;
}

.rich-editor-table-menu-label {
  color: #66768a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rich-editor-table-menu-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eef3f9;
  color: #2d3b4e;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.rich-editor-table-menu-btn:hover:not(:disabled) {
  background: #dde8f6;
  color: #173f8f;
  transform: translateY(-1px);
}

.rich-editor-table-menu-btn.is-remove:hover:not(:disabled) {
  background: #fde8eb;
  color: #b42333;
}

.rich-editor-table-menu-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.rich-editor-surface.is-table-resize-ready th,
.rich-editor-surface.is-table-resize-ready td {
  user-select: none;
}

body.is-rich-table-resizing,
body.is-rich-table-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.rich-editor-compact {
  gap: 8px;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rich-editor-compact .rich-editor-toolbar {
  padding-bottom: 6px;
  border-bottom: 1px solid #dbe4ee;
}

.rich-editor-compact .rich-editor-surface {
  min-height: 130px;
}

.rich-editor-textarea.is-hidden {
  display: none;
}

.order-edit-mode {
  display: none;
  gap: 8px;
}

.order-record-shell.is-editing-all .order-view-mode,
.order-record-row.is-inline-editing .order-view-mode,
.order-view-mode.is-hidden,
.order-edit-mode.is-hidden {
  display: none;
}

.order-record-shell.is-editing-all .order-edit-mode,
.order-record-row.is-inline-editing .order-edit-mode,
.order-edit-mode.is-visible {
  display: grid;
}

.order-record-row.is-inline-editing {
  background: #f8fbff;
}

.order-inline-stack {
  display: grid;
  gap: 8px;
}

.order-record-shell .order-edit-mode input,
.order-record-shell .order-edit-mode select,
.order-record-shell .order-edit-mode textarea {
  width: 100%;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #18273d;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.4;
}

.order-record-shell .order-edit-mode label {
  font-size: 12px;
  font-weight: 700;
  color: #6d7d90;
}

.order-record-row.is-inline-editing .order-edit-mode {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-record-row.is-inline-editing .order-record-value {
  padding-top: 2px;
}

.order-record-row.is-inline-editing .order-edit-mode input,
.order-record-row.is-inline-editing .order-edit-mode select,
.order-record-row.is-inline-editing .order-edit-mode textarea {
  padding: 4px 0 6px;
  border: 0;
  border-bottom: 1px solid #cad6e2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.order-record-row.is-inline-editing .order-edit-mode input:focus,
.order-record-row.is-inline-editing .order-edit-mode select:focus,
.order-record-row.is-inline-editing .order-edit-mode textarea:focus {
  border-bottom-color: var(--primary);
  outline: 0;
}

.order-record-row.is-inline-saving {
  background: #f3f8ff;
}

.order-record-row.is-inline-error {
  background: #fff5f5;
}

.order-record-row.is-inline-editing .order-edit-mode textarea {
  min-height: 88px;
  resize: vertical;
}

.order-record-description-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-record-description-panel.is-inline-editing,
.order-record-description-panel.is-inline-saving {
  background: #f8fbff;
}

.order-record-description-panel.is-inline-error {
  background: #fff5f5;
}

.order-record-description-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.order-record-description-body {
  min-width: 0;
}

.order-record-rich-content {
  font-size: 14px;
}

.order-inline-actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.order-record-row.is-inline-editing .order-edit-mode .checkbox-inline {
  font-size: 13px;
  font-weight: 600;
}

.order-row-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: #7c8da1;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.order-row-edit-btn img {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.82;
}

.order-row-edit-btn:hover {
  background: rgba(0, 0, 240, 0.08);
  color: var(--primary);
}

.order-row-edit-btn:hover img,
.order-row-edit-btn:focus-visible img {
  opacity: 1;
}

.order-row-edit-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 240, 0.24);
  outline-offset: 2px;
  background: rgba(0, 0, 240, 0.08);
}

.order-inline-actions {
  padding: 16px 20px 20px;
  border-top: 1px solid #e4eaf1;
  background: #fbfdff;
}

.order-edit-shell.is-hidden {
  display: none;
}

.order-form-section {
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fcfdff;
  padding: 16px;
}

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

.order-form-section-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.order-form-section-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f7085;
}

.order-form-section-note {
  margin: 0;
  max-width: 360px;
  color: #66788d;
  line-height: 1.45;
  font-size: 13px;
}

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

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

.order-form-grid.cols-1 {
  grid-template-columns: 1fr;
}

.order-form-highlight {
  padding: 12px 14px;
  border: 1px dashed #ced9e6;
  border-radius: 14px;
  background: #f7faff;
}

.order-form-highlight .field-label-with-help {
  margin-bottom: 8px;
}

.order-create-urgency.order-form-highlight {
  padding: 6px 10px;
}

.order-urgency-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 40px;
}

.order-urgency-row .field-label-with-help {
  margin-bottom: 0;
}

.order-urgency-row .checkbox-inline {
  margin-top: 0;
}

.order-modal-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 0, 240, 0.045), rgba(255, 255, 255, 0.98) 56%),
    #fbfcff;
}

.order-modal-hero h4 {
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #142237;
}

.order-modal-hero p {
  margin: 0;
  max-width: 620px;
  color: #617387;
  line-height: 1.5;
}

.order-modal-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-create-shell .merit-block {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fbfcff;
}

.order-create-shell .merit-grid {
  gap: 12px;
}

.order-create-shell .file-dropzone-surface {
  min-height: 112px;
}

.order-create-modal {
  width: min(980px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border-color: #d7dfe9;
  box-shadow: 0 24px 44px rgba(20, 34, 55, 0.22);
}

.order-create-modal-head {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #dfe6ef;
}

.order-create-modal-title-wrap {
  align-items: flex-start;
}

.order-create-modal-title-stack {
  display: grid;
  gap: 4px;
}

.order-create-modal-title-stack h3 {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1b2430;
}

.order-create-modal-subtitle {
  display: none;
}

.order-create-modal-actions {
  gap: 8px;
}

.order-create-modal .modal-body {
  padding: 0;
  background: #fff;
}

.order-create-shell {
  gap: 0;
  padding: 16px 20px 20px;
}

.order-create-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  border-bottom: 1px solid #dfe6ee;
  overflow-x: auto;
}

.order-create-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6f7d8d;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.order-create-tab:hover {
  color: #1e2c40;
  background: rgba(15, 23, 33, 0.025);
}

.order-create-tab.is-active {
  color: #18273d;
  border-bottom-color: #0000f0;
}

.order-create-tab-panel {
  display: none;
}

.order-create-tab-panel.is-active {
  display: block;
}

.order-create-shell .order-form-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.order-create-shell .order-form-section + .order-form-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4eaf1;
}

.order-create-shell .order-form-section-head {
  margin-bottom: 10px;
}

.order-create-shell .order-form-section-head h3 {
  font-size: 15px;
  line-height: 1.2;
}

.order-create-shell .order-form-section-note {
  max-width: 340px;
  font-size: 11px;
  color: #8895a5;
}

.order-create-shell .merit-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.order-create-shell .field label {
  font-size: 12px;
  font-weight: 700;
  color: #6f7f92;
}

.order-create-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

.order-col-span-2 {
  grid-column: span 2;
}

.order-create-shell input,
.order-create-shell select,
.order-create-shell textarea {
  min-height: 42px;
  border-radius: 8px;
  border-color: #d2dbe6;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.order-create-shell textarea {
  min-height: 88px;
}

.order-create-shell .order-form-highlight {
  align-self: stretch;
  padding: 12px 14px;
  border-style: solid;
  border-color: #dbe3ec;
  border-radius: 8px;
  background: #fafbfd;
}

.order-create-shell .file-dropzone {
  border-radius: 10px;
}

.order-create-shell .file-dropzone-surface {
  min-height: 88px;
  border-radius: 10px;
  background: #fff;
}

.order-create-shell .field-note {
  margin-top: 4px;
  font-size: 11px;
}

.order-description-field .rich-editor-surface {
  min-height: 190px;
}

@media (max-width: 780px) {
  .rich-text-content .rt-columns-2,
  .rich-text-content .rt-columns-3,
  .rich-text-content .rt-columns-4,
  .rich-text-content .rt-columns-5,
  .rich-text-content .rt-columns-6,
  .rich-editor-surface .rt-columns-2,
  .rich-editor-surface .rt-columns-3,
  .rich-editor-surface .rt-columns-4,
  .rich-editor-surface .rt-columns-5,
  .rich-editor-surface .rt-columns-6 {
    grid-template-columns: 1fr;
  }
}

.order-create-urgency .checkbox-inline {
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.order-create-urgency .checkbox-inline input[type="checkbox"] {
  margin-top: 0;
}

.nested-modal-backdrop {
  z-index: 55;
  background: rgba(14, 23, 33, 0.28);
}

.order-create-stage-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.order-stage-preview-list {
  display: grid;
  gap: 10px;
}

.order-stage-empty {
  padding: 14px 16px;
  border: 1px dashed #d8e1eb;
  border-radius: 10px;
  color: #7a8898;
  background: #fafbfd;
}

.order-stage-preview-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #fff;
}

.order-stage-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-stage-preview-top strong {
  color: #18273d;
}

.order-stage-preview-meta {
  color: #6f8094;
  font-size: 12px;
  line-height: 1.45;
}

.order-stage-preview-description {
  margin: 0;
  color: #55677c;
  font-size: 13px;
  line-height: 1.45;
}

.order-stage-preview-actions {
  display: flex;
  justify-content: flex-end;
}

.order-stage-remove-btn {
  padding-inline: 10px;
}

.stage-create-modal {
  width: min(720px, 100%);
}

.stage-create-form .merit-grid {
  gap: 12px;
}

.work-order-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.work-order-section-head h3 {
  margin: 0;
}

.field-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.field-label-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.inline-help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.inline-help-trigger {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d2df;
  border-radius: 999px;
  background: #fff;
  color: #6b7d90;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
}

.inline-help-trigger:hover,
.inline-help-trigger:focus-visible {
  color: #0000f0;
  border-color: #9bb0ff;
}

.inline-help-tooltip:hover .trust-tooltip,
.inline-help-tooltip:focus-within .trust-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.checkbox-inline-compact {
  margin-top: 0;
}

@media (max-width: 900px) {
  .order-record-grid,
  .order-form-grid.cols-2,
  .order-create-grid {
    grid-template-columns: 1fr;
  }

  .order-urgency-row {
    flex-wrap: wrap;
    min-height: 0;
  }

  .order-form-section-head,
  .order-modal-hero {
    flex-direction: column;
  }

  .order-record-header {
    flex-direction: column;
  }

  .order-record-column + .order-record-column {
    border-left: 0;
    border-top: 1px solid #e4eaf1;
  }

  .order-record-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .order-modal-hero-tags {
    justify-content: flex-start;
  }

  .order-create-modal-head {
    align-items: flex-start;
  }

  .order-create-modal-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .order-create-tabs {
    margin-bottom: 12px;
  }

  .order-col-span-2 {
    grid-column: auto;
  }

  .order-create-stage-toolbar,
  .order-stage-preview-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-order-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.autocomplete-shell {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(20, 34, 55, 0.16);
}

.autocomplete-option,
.autocomplete-create-action {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option.is-active,
.autocomplete-create-action:hover {
  background: #eef4fb;
}

.autocomplete-create-action {
  border: 1px dashed #c6d5e6;
  font-weight: 700;
  color: #20486f;
}

.autocomplete-empty {
  padding: 8px 12px 2px;
  color: var(--muted);
  font-size: 13px;
}

.order-items-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  align-items: start;
}

.order-items-table-wrap {
  min-width: 0;
}

.order-items-table {
  min-width: 1080px;
}

.order-items-table td {
  vertical-align: middle;
}

.order-item-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #cfdded;
  background: #f5f9ff;
  font-size: 12px;
  font-weight: 700;
}

.order-item-row-total {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.order-item-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.order-item-delete-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.order-items-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.order-items-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.order-items-summary-row strong {
  font-variant-numeric: tabular-nums;
}

.order-items-summary-row.is-total {
  padding-top: 8px;
  border-top: 1px solid #dbe4ee;
  font-size: 16px;
}

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

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid #d5e0eb;
  border-radius: 10px;
  background: #eef3f9;
}

.view-switch .btn {
  border-color: transparent;
  background: transparent;
}

.view-switch .btn.is-active {
  border-color: #c6d4e4;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 38, 58, 0.08);
}

.dashboard-flow-note {
  margin: 0 0 10px;
}

.dashboard-subnav {
  margin: -32px 0 10px;
  border-bottom: 1px solid #d9e4ef;
}

.dashboard-subnav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
}

.dashboard-subnav-links a {
  color: #33485f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0 9px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.dashboard-subnav-links a:hover {
  color: #0000f0;
}

.dashboard-subnav-links a.is-active {
  color: #0000f0;
  border-bottom-color: #0000f0;
}

.dashboard-summary-kpi {
  display: grid;
  gap: 5px;
}

.dashboard-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dashboard-column {
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #f8fbff;
  min-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.dashboard-column-head {
  padding: 8px 9px;
  border-bottom: 1px solid #e0e8f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-column-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-dropzone {
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 160px;
  transition: background 140ms ease, border-color 140ms ease;
  border-radius: 0 0 10px 10px;
}

.dashboard-dropzone.is-over {
  background: #edf4fc;
}

.dashboard-card {
  border: 1px solid #d3dfec;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(20, 35, 56, 0.06);
}

.dashboard-card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.dashboard-card.is-saving {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.file-dropzone {
  display: grid;
  gap: 10px;
}

.file-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-dropzone-surface {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px 16px;
  border: 2px dashed #bfd0e3;
  border-radius: 12px;
  background: #f8fbff;
  color: #29425f;
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.file-dropzone-surface strong {
  font-size: 15px;
}

.file-dropzone-surface span {
  font-size: 13px;
  color: #5f748c;
}

.file-dropzone.is-over .file-dropzone-surface,
.file-dropzone-surface:hover,
.file-dropzone-surface:focus-visible {
  border-color: #6f97c2;
  background: #eef5fc;
}

.file-dropzone-surface:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(111, 151, 194, 0.18);
}

.file-dropzone-list {
  display: grid;
  gap: 8px;
}

.file-dropzone-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  background: #fff;
}

.file-dropzone-preview {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid #d7e1ec;
  background: #f5f8fc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-dropzone-preview.is-document {
  background: linear-gradient(145deg, #eff4fa 0%, #dde8f4 100%);
}

.file-dropzone-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #24425f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.file-dropzone-meta {
  min-width: 0;
}

.file-dropzone-name {
  display: block;
  font-weight: 600;
  color: #223548;
  overflow-wrap: anywhere;
}

.file-dropzone-detail {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6a7f95;
}

.file-dropzone-remove {
  white-space: nowrap;
}

.dashboard-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 6px;
}

.dashboard-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-card-title a {
  text-decoration: none;
}

.dashboard-card-title a:hover {
  text-decoration: underline;
}

.dashboard-card-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5a6d82;
}

.work-calendar-shell {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.work-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

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

.work-calendar-month-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2f44;
}

.work-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-width: 920px;
}

.work-calendar-weekdays span {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f3f7fb;
  color: #5b6f84;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 6px;
}

.work-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-width: 920px;
}

.work-calendar-cell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 7px;
  min-height: 134px;
  padding: 8px;
  border: 1px solid #d7e2ee;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.work-calendar-cell:hover {
  border-color: #9eb6d3;
  background: #f8fbff;
}

.work-calendar-cell.is-outside {
  opacity: 0.52;
}

.work-calendar-cell.is-today {
  border-color: #0000f0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 240, 0.18);
}

.work-calendar-cell.is-selected {
  border-color: #3f66d4;
  box-shadow: inset 0 0 0 1px rgba(63, 102, 212, 0.2);
}

.work-calendar-cell.deadline-overdue {
  background: rgba(207, 63, 63, 0.07);
}

.work-calendar-cell.deadline-soon {
  background: rgba(212, 163, 54, 0.1);
}

.work-calendar-day-number {
  font-size: 14px;
  font-weight: 700;
  color: #2c4258;
}

.work-calendar-count {
  justify-self: start;
  border-radius: 999px;
  border: 1px solid #cad9e9;
  background: #eef4fb;
  color: #274a76;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
}

.work-calendar-cell-items {
  display: grid;
  align-content: start;
  gap: 5px;
}

.work-calendar-chip {
  display: block;
  border-radius: 6px;
  border: 1px solid #dce4ee;
  background: #f9fbfd;
  color: #2a4159;
  font-size: 11px;
  line-height: 1.3;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-calendar-chip.is-overdue {
  border-color: #f0c2c2;
  background: #fbeaea;
}

.work-calendar-chip.is-soon {
  border-color: #e4d39f;
  background: #fef5de;
}

.work-calendar-chip.more {
  border-style: dashed;
  color: #4d6278;
}

.work-calendar-day-panel .panel-head h2 {
  margin: 0;
}

.work-gantt-shell {
  --work-gantt-pane-height: clamp(420px, 62vh, 760px);
  display: grid;
  gap: 10px;
}

.work-gantt-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.work-gantt-side {
  height: var(--work-gantt-pane-height);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.work-gantt-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e1eaf4;
  background: #f7fbff;
}

.work-gantt-side-head h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3f5771;
}

.work-gantt-side-list-wrap {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.work-gantt-side-list {
  display: grid;
  gap: 8px;
}

.work-gantt-side-item {
  border: 1px solid #dbe6f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 30, 44, 0.04);
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background 120ms ease;
}

.work-gantt-side-item:hover {
  border-color: #c9d7e5;
  box-shadow: 0 4px 10px rgba(20, 34, 52, 0.08);
  transform: translateY(-1px);
}

.work-gantt-side-item.is-overdue {
  background: linear-gradient(180deg, #fff7f7 0%, #fff1f1 100%);
  border-color: #efcccc;
}

.work-gantt-side-item.is-soon {
  background: linear-gradient(180deg, #fffaf0 0%, #fff5e4 100%);
  border-color: #ecd8b2;
}

.work-gantt-side-item.is-completed {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
  border-color: #d4dde7;
}

.work-gantt-side-item.is-active {
  border-color: rgba(0, 0, 240, 0.24);
  box-shadow: 0 0 0 2px rgba(0, 0, 240, 0.1);
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
}

.work-gantt-side-item-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px;
  margin: 0;
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
  color: #203449;
}

.work-gantt-side-item-button:focus-visible {
  outline: 2px solid #0000f0;
  outline-offset: -2px;
  border-radius: 12px;
}

.work-gantt-side-item-head,
.work-gantt-side-item-meta,
.work-gantt-side-item-submeta,
.work-gantt-side-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.work-gantt-side-item-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.work-gantt-side-item-id {
  font-size: 11px;
  font-weight: 700;
  color: #5f7389;
  white-space: nowrap;
}

.work-gantt-side-item-date {
  font-size: 11px;
  font-weight: 700;
  color: #47607a;
  white-space: nowrap;
}

.work-gantt-side-item-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #1f3348;
  overflow-wrap: anywhere;
}

.work-gantt-side-item-meta,
.work-gantt-side-item-submeta,
.work-gantt-side-item-footer {
  font-size: 11px;
  color: #61758b;
}

.work-gantt-side-item-meta span:first-child,
.work-gantt-side-item-submeta span:first-child,
.work-gantt-side-item-footer span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-gantt-side-item-submeta span:last-child,
.work-gantt-side-item-footer span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.work-gantt-side-priority {
  font-weight: 700;
  color: #41576c;
}

.work-gantt-side-range {
  color: #6b8097;
}

.work-gantt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.work-gantt-left-actions,
.work-gantt-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.work-gantt-right-actions {
  margin-left: auto;
}

.work-gantt-today-btn {
  border-radius: 999px;
}

.work-gantt-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d3deea;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 35, 49, 0.05);
  overflow: hidden;
}

.work-gantt-zoom-btn {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-right: 1px solid #dbe4ee;
  background: transparent;
  color: #31465b;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.work-gantt-zoom-btn:last-child {
  border-right: 0;
}

.work-gantt-zoom-btn.is-reset {
  min-width: 62px;
  font-size: 12px;
  color: #51657b;
}

.work-gantt-zoom-btn:hover:not(:disabled) {
  background: #f3f7fc;
  color: #1f3348;
}

.work-gantt-zoom-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.work-gantt-zoom-btn:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #0000f0;
  outline-offset: -2px;
}

.work-gantt-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.work-gantt-headline h2 {
  margin: 0;
  font-size: 18px;
}

.work-gantt-headline .muted {
  margin: 0;
}

.work-gantt-board-wrap {
  height: var(--work-gantt-pane-height);
  min-height: 0;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  background: #fff;
  overflow: auto;
  max-height: none;
  cursor: default;
}

.work-gantt-board-wrap.is-panning {
  cursor: grabbing;
}

.work-gantt-board {
  min-width: 1180px;
}

.work-gantt-grid-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f8fbff;
  border-bottom: 1px solid #dfe8f1;
}

.work-gantt-sticky-head {
  display: none;
}

.work-gantt-axis-head {
  position: relative;
  min-height: 106px;
  background: #f8fbff;
}

.work-gantt-month-row,
.work-gantt-week-row,
.work-gantt-day-row {
  position: relative;
  height: 32px;
}

.work-gantt-week-row {
  border-top: 1px solid #e5edf6;
}

.work-gantt-day-row {
  border-top: 1px solid #e5edf6;
}

.work-gantt-month-segment,
.work-gantt-week-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border-right: 1px dashed #d7e2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #5a6f84;
}

.work-gantt-month-segment {
  font-size: 12px;
}

.work-gantt-week-segment {
  font-size: 11px;
}

.work-gantt-day-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border-right: 1px solid #e4ebf3;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #5b7088;
  font-size: 11px;
}

.work-gantt-day-segment span {
  line-height: 1;
  font-weight: 700;
}

.work-gantt-day-segment small {
  line-height: 1;
  font-size: 10px;
}

.work-gantt-day-segment.is-weekend {
  background: rgba(150, 167, 187, 0.14);
}

.work-gantt-grid-body {
  display: grid;
}

.work-gantt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: var(--row-height, 76px);
  border-bottom: 1px solid #eef3f8;
}

.work-gantt-row:last-child {
  border-bottom: 0;
}

.work-gantt-group-row {
  min-height: 36px;
  border-bottom: 1px solid #dde6f0;
}

.work-gantt-row-label {
  display: none;
}

.work-gantt-group-label {
  background: #f3f7fc;
  border-right-color: #d5e0eb;
}

.work-gantt-group-label strong {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.work-gantt-group-label span {
  font-size: 11px;
}

.work-gantt-row-label strong {
  font-size: 14px;
  color: #1f3348;
}

.work-gantt-row-label strong a {
  color: inherit;
  text-decoration: none;
}

.work-gantt-row-label strong a:hover {
  text-decoration: underline;
}

.work-gantt-row-label span {
  font-size: 12px;
  color: #5b6f84;
}

.work-gantt-row-track {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.work-gantt-group-track {
  background: #f8fbff;
}

.work-gantt-row.deadline-overdue .work-gantt-row-track {
  background: rgba(207, 63, 63, 0.06);
}

.work-gantt-row.deadline-soon .work-gantt-row-track {
  background: rgba(212, 163, 54, 0.09);
}

.work-gantt-row.is-completed .work-gantt-row-track {
  background: rgba(129, 142, 156, 0.16);
}

.work-gantt-row-weeks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.work-gantt-row-week {
  position: absolute;
  top: 0;
  bottom: 0;
  border-right: 1px dashed #e1e9f2;
}

.work-gantt-row-week.is-weekend {
  background: rgba(157, 172, 188, 0.12);
}

.work-gantt-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #0f5dde;
  opacity: 0.72;
  pointer-events: none;
  z-index: 6;
}

.work-gantt-now-line span {
  position: absolute;
  top: 2px;
  left: 4px;
  display: inline-block;
  background: #0f5dde;
  color: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 10px;
  font-weight: 700;
}

.work-gantt-now-line.is-hidden {
  display: none;
}

.work-gantt-bar {
  position: absolute;
  height: 24px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 3px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #24384d;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(25, 38, 55, 0.07);
  z-index: 3;
}

.work-gantt-bar[data-editable="1"] {
  cursor: grab;
}

.work-gantt-bar[data-editable="1"]:active,
.work-gantt-bar[data-editable="1"].is-dragging {
  cursor: grabbing;
}

.work-gantt-bar:hover {
  filter: saturate(108%);
  box-shadow: 0 3px 6px rgba(23, 36, 52, 0.14);
}

.work-gantt-bar.is-focused-item {
  z-index: 8;
  box-shadow:
    0 0 0 2px rgba(0, 0, 240, 0.92),
    0 0 0 6px rgba(0, 0, 240, 0.14),
    0 8px 18px rgba(18, 31, 47, 0.16);
  transform: translateY(-1px);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.work-gantt-row.is-focused-row .work-gantt-row-track {
  background: rgba(0, 0, 240, 0.03);
}

.work-gantt-bar:focus-visible {
  outline: 2px solid #0000f0;
  outline-offset: 1px;
}

.work-gantt-bar-main {
  min-width: 0;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 6px;
  overflow: hidden;
}

.work-gantt-bar-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.work-gantt-bar-meta {
  display: none;
}

.work-gantt-bar-handle {
  width: 12px;
  position: absolute;
  top: 0;
  bottom: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(23, 47, 73, 0.28);
  border-radius: 5px;
  cursor: ew-resize;
  opacity: 0.24;
  transition: opacity 120ms ease;
  z-index: 2;
}

.work-gantt-bar-handle.is-start {
  left: 0;
  border-radius: 7px 0 0 7px;
}

.work-gantt-bar-handle.is-end {
  right: 0;
  border-radius: 0 7px 7px 0;
}

.work-gantt-bar:hover .work-gantt-bar-handle,
.work-gantt-bar.is-dragging .work-gantt-bar-handle,
.work-gantt-bar:focus-visible .work-gantt-bar-handle {
  opacity: 0.66;
}

.work-gantt-bar.priority-low {
  background: #eef4fb;
  border-color: #d3e0ef;
}

.work-gantt-bar.priority-normal {
  background: #eaf7ee;
  border-color: #cbe6d3;
}

.work-gantt-bar.priority-high {
  background: #fff2df;
  border-color: #ecd8b2;
}

.work-gantt-bar.priority-critical {
  background: #fae8e8;
  border-color: #ebc4c4;
}

.work-gantt-bar.is-overdue {
  outline: 1px solid rgba(175, 44, 44, 0.35);
}

.work-gantt-bar.is-soon {
  outline: 1px solid rgba(173, 122, 30, 0.3);
}

.work-gantt-bar.is-completed {
  background: #e8edf3;
  border-color: #ccd4de;
  color: #425161;
}

.work-gantt-bar.is-completed .work-gantt-bar-meta {
  color: #576575;
}

.work-gantt-bar.is-saving {
  opacity: 0.66;
}

body.is-gantt-dragging {
  user-select: none;
}

body.is-gantt-panning {
  user-select: none;
}

.work-calendar-preview {
  margin-top: 10px;
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.work-calendar-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.work-calendar-preview-head h3 {
  margin: 0;
  font-size: 16px;
  color: #1f3348;
}

.work-calendar-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 12px;
}

.work-calendar-preview-col p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #445a70;
}

.work-calendar-preview-col p:last-child {
  margin-bottom: 0;
}

.work-calendar-preview-col.is-wide {
  border-left: 1px solid #e3eaf2;
  padding-left: 12px;
}

.work-calendar-preview-description {
  margin-top: 6px;
  white-space: pre-wrap;
  color: #2a3f55;
}

.work-gantt-empty {
  padding: 16px;
}

.notes-form {
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}

.notes-form textarea {
  min-height: 92px;
  background: #fff;
}

.notes-form-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.notes-private-field {
  margin: 0;
}

.notes-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.notes-empty {
  margin: 0;
  border: 1px dashed #d7e0eb;
  border-radius: 8px;
  background: #f9fbfd;
  padding: 10px;
}

.note-card {
  border: 1px solid #dbe4ee;
  border-radius: 9px;
  background: #fff;
  padding: 9px 10px;
}

.note-card-private {
  border-left: 3px solid #79a3d2;
}

.note-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #4b5f76;
  font-size: 12px;
}

.note-author {
  color: #22384f;
  font-size: 13px;
}

.note-meta-dot {
  color: #8fa0b4;
}

.note-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.note-card-actions form {
  margin: 0;
}

.note-text {
  margin: 8px 0 0;
  color: #24384e;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.inline-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.row-actions .inline-form select {
  width: auto;
  min-width: 138px;
}

.row-actions .inline-form .btn.small {
  white-space: nowrap;
}

.custom-field-group {
  display: none;
}

.span-all {
  grid-column: 1 / -1;
}

.photo-thumb {
  display: block;
  margin-top: 6px;
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.work-order-shell {
  display: grid;
  gap: 12px;
}

.work-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2eaf3;
  padding-bottom: 10px;
}

.work-order-title-block h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.work-order-subline {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.work-order-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.work-order-head-actions form {
  margin: 0;
}

.work-order-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.work-order-tab {
  border: 1px solid #d3e0ee;
  background: #f5f8fc;
  color: #29425d;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.work-order-tab:hover {
  background: #edf3fb;
}

.work-order-tab.is-active {
  background: #e8efff;
  border-color: #b8caee;
  color: #1c3f8f;
}

.work-order-tab-panel {
  display: none;
}

.work-order-tab-panel.is-active {
  display: grid;
  gap: 12px;
}

.work-order-form {
  display: grid;
  gap: 12px;
}

.work-order-form .order-edit-mode {
  display: none;
}

.work-order-form.is-editing .order-view-mode {
  display: none;
}

.work-order-form.is-editing .order-edit-mode {
  display: grid;
  gap: 8px;
}

.work-order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.work-order-box {
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.work-order-box h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4d647d;
}

.work-order-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.work-order-box-head h3 {
  margin: 0;
}

.work-order-form.is-editing .work-inline-edit-btn {
  display: none;
}

.work-order-box .field:last-child {
  margin-bottom: 0;
}

.work-order-readonly {
  background: #f4f8fd;
  color: #526980;
}

.work-order-inline-link,
.work-order-static-line {
  margin: 0;
  font-size: 13px;
  color: #2a4158;
  line-height: 1.45;
}

.work-order-inline-link + .work-order-inline-link,
.work-order-static-line + .work-order-static-line {
  margin-top: 6px;
}

.work-order-inline-link a {
  font-weight: 600;
}

.work-order-description textarea {
  min-height: 170px;
}

.work-order-description-body {
  display: grid;
  gap: 12px;
}

.work-order-description-edit {
  display: none;
}

.work-order-form.is-editing .work-order-description-edit {
  display: block;
}

.work-order-form.is-editing .work-order-description-view {
  display: none;
}

.work-order-description.is-inline-editing .work-order-description-edit {
  display: block;
}

.work-order-description.is-inline-editing .work-order-description-view {
  display: none;
}

.work-order-description.is-inline-editing .work-inline-edit-btn {
  display: none;
}

.work-order-comments-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.work-order-comments-side {
  display: grid;
  gap: 10px;
}

.work-order-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.work-order-comment-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-order-comment-filter {
  border: 1px solid #d4dfeb;
  background: #f3f7fb;
  color: #2e455d;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.work-order-comment-filter strong {
  border: 1px solid #d4dfeb;
  background: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
}

.work-order-comment-filter.is-active {
  background: #1d3b5c;
  color: #fff;
  border-color: #1d3b5c;
}

.work-order-comment-filter.is-active strong {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.work-order-comment-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.work-order-comment-card {
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.work-order-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #5b7087;
}

.work-order-comment-type {
  font-weight: 600;
  color: #1d3b5c;
  background: #eef4fb;
  border-radius: 999px;
  padding: 2px 8px;
}

.work-order-comment-body {
  font-size: 13px;
  color: #1f2f3d;
  line-height: 1.5;
}

.work-order-comment-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #2e455d;
}

.work-order-comment-stats strong {
  color: #1d3b5c;
}

.work-order-log-table td {
  vertical-align: top;
}

.work-order-photo-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.work-order-box--full {
  grid-column: 1 / -1;
}

.work-order-files-hint {
  margin: 8px 0 12px;
  display: grid;
  gap: 4px;
}

.work-order-files-hint .muted {
  margin: 0;
}

.work-order-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.work-order-photo-card {
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.work-order-photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.work-order-photo-meta {
  padding: 8px 10px;
}

.work-order-photo-meta p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #2e455d;
  line-height: 1.4;
}

.work-order-photo-meta small {
  color: #5b7087;
  font-size: 11px;
}

.work-order-empty {
  margin: 0;
  border: 1px dashed #d4dfeb;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
  color: #50657c;
}

.work-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.work-order-kv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.work-order-kv-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed #e0e8f2;
  padding-bottom: 6px;
}

.work-order-kv-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.work-order-kv-list span {
  color: #58708a;
  font-size: 12px;
}

.work-order-kv-list strong {
  color: #21384f;
  font-size: 13px;
  text-align: right;
}

.registry-shell {
  display: grid;
  gap: 12px;
}

.registry-headline h2 {
  margin: 0;
  font-size: 22px;
}

.registry-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.registry-headline .muted {
  margin: 4px 0 0;
}

.registry-primary-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.registry-primary-actions .btn {
  white-space: nowrap;
}

.registry-primary-actions .badge {
  align-self: center;
}

.order-create-btn {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

.order-create-btn:hover {
  background: var(--primary-dark);
}

.registry-primary-actions .btn.icon-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.registry-primary-actions.is-in-topbar .btn {
  padding-top: 6px;
  padding-bottom: 6px;
}

.registry-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.registry-toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.registry-toolbar-filters {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.registry-toolbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.registry-toolbar .btn.icon-btn.is-active,
.registry-primary-actions .btn.icon-btn.is-active {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

.registry-toolbar .btn.icon-btn.is-active img,
.registry-primary-actions .btn.icon-btn.is-active img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(117deg) brightness(104%) contrast(101%);
}

.registry-toolbar .btn.icon-btn.is-filtered,
.registry-primary-actions .btn.icon-btn.is-filtered {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

.registry-toolbar .btn.icon-btn.is-filtered img,
.registry-primary-actions .btn.icon-btn.is-filtered img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(117deg) brightness(104%) contrast(101%);
}

.registry-toolbar .btn.icon-btn.is-active.is-filtered,
.registry-primary-actions .btn.icon-btn.is-active.is-filtered {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

.orders-filters-panel {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.orders-filters-panel .search {
  min-width: min(320px, 100%);
}

#worksFiltersBar {
  grid-template-columns: minmax(250px, 360px) repeat(3, 145px) 34px 62px;
  gap: 7px;
  align-items: center;
  padding: 0;
  margin: 4px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#worksFiltersBar:not(.is-hidden) { display: grid; }
#worksFiltersBar .search,
#worksFiltersBar select { width: 100%; min-width: 0; height: 34px; border-color: #d5deea; border-radius: 8px; background-color: #fff; font-size: 11px; }
#worksFiltersBar .search {
  padding-left: 36px;
  background-color: #fff;
  background-image: url('ICON/search.svg');
  background-repeat: no-repeat;
  background-position: 11px center;
  background-size: 16px 16px;
}
#worksFiltersBar .search:focus {
  border-color: #8caaf0;
  box-shadow: 0 0 0 3px rgba(0, 0, 240, .08);
}
#worksFiltersBar .btn { height: 34px; white-space: nowrap; }
#worksFiltersBar .icon-btn { width: 34px; padding: 0; gap: 0; border-color: transparent; background: transparent; color: #65758a; }
#worksFiltersBar .icon-btn:hover { border-color: transparent; background: #eef2f7; color: #263a53; }
#worksFiltersBar .icon-btn img { width: 16px; height: 16px; opacity: .7; }
#worksFiltersBar .icon-btn span { font-size: 11px; }
#worksFiltersBar .works-clear-filters { padding-inline: 7px; border-color: transparent; background: transparent; color: #65758a; font-size: 11px; }
#worksFiltersBar .works-clear-filters:hover { background: #eef2f7; color: #263a53; }
.registry-filters-panel {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 34px 62px;
  gap: 7px;
  align-items: center;
  padding: 0;
  margin: 4px 0 12px;
  border: 0;
  background: transparent;
}
.objects-filters-panel.registry-filters-panel { grid-template-columns: minmax(250px, 360px) 145px 145px 62px; }
.registry-filters-panel .search { width: 100%; min-width: 0; height: 34px; padding-left: 36px; border-color: #d5deea; border-radius: 8px; background: #fff url('ICON/search.svg') no-repeat 11px center / 16px 16px; font-size: 11px; }
.registry-filters-panel .search:focus { border-color: #8caaf0; box-shadow: 0 0 0 3px rgba(0, 0, 240, .08); }
.registry-filters-panel select { width: 100%; min-width: 0; height: 34px; border-color: #d5deea; border-radius: 8px; background-color: #fff; font-size: 11px; }
.registry-filters-panel .btn { height: 34px; white-space: nowrap; }
.registry-filters-panel .icon-btn { width: 34px; padding: 0; border-color: transparent; background: transparent; }
.registry-filters-panel .icon-btn:hover { border-color: transparent; background: #eef2f7; }
.registry-filters-panel .icon-btn img { width: 16px; height: 16px; opacity: .7; }
.registry-filters-panel .registry-clear-filters { padding-inline: 7px; border-color: transparent; background: transparent; color: #65758a; font-size: 11px; }
.registry-filters-panel .registry-clear-filters:hover { background: #eef2f7; color: #263a53; }
.client-card-search { position: relative; margin: 4px 0 14px; z-index: 30; }
.client-card-search-field { position: relative; width: min(620px, 100%); }
.client-card-search-field > img { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; opacity: .65; transform: translateY(-50%); pointer-events: none; }
.client-card-search-field input { width: 100%; height: 38px; padding: 0 40px 0 38px; border: 1px solid #d5deea; border-radius: 9px; background: #fff; font-size: 12px; }
.client-card-search-field input:focus { border-color: #8caaf0; box-shadow: 0 0 0 3px rgba(0, 0, 240, .08); outline: 0; }
.client-card-search-clear { position: absolute; right: 7px; top: 50%; width: 27px; height: 27px; border: 0; border-radius: 50%; background: transparent; color: #65758a; font-size: 19px; transform: translateY(-50%); cursor: pointer; }
.client-card-search-clear:hover { background: #eef2f7; }
.client-card-search-results { position: absolute; top: calc(100% + 6px); left: 0; width: min(620px, 100%); max-height: 410px; overflow: auto; padding: 6px; border: 1px solid #d9e2ee; border-radius: 10px; background: #fff; box-shadow: 0 14px 38px rgba(26, 42, 66, .18); z-index: 100; }
.client-card-search-group + .client-card-search-group { margin-top: 5px; padding-top: 5px; border-top: 1px solid #edf1f6; }
.client-card-search-group-title { padding: 5px 9px 3px; color: #738196; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.client-card-search-result { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; color: #17263b; text-decoration: none; }
.client-card-search-result:hover { background: #f1f5fb; text-decoration: none; }
.client-card-search-kind { flex: 0 0 auto; min-width: 62px; color: #285db5; font-size: 10px; font-weight: 800; }
.client-card-search-copy { min-width: 0; display: flex; flex-direction: column; }
.client-card-search-copy strong, .client-card-search-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-card-search-copy small { margin-top: 2px; color: #718096; }
.client-card-search-empty { margin: 0; padding: 14px 10px; color: #718096; font-size: 12px; }
.client-section-table-search { position: relative; width: min(430px, 100%); margin: 0 0 12px; }
.client-section-table-search > img { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; opacity: .65; transform: translateY(-50%); pointer-events: none; }
.client-section-table-search input { width: 100%; height: 34px; padding: 0 36px; border: 1px solid #d5deea; border-radius: 8px; background: #fff; font-size: 11px; }
.client-section-table-search input:focus { border-color: #8caaf0; box-shadow: 0 0 0 3px rgba(0, 0, 240, .08); outline: 0; }
.client-section-table-search button { position: absolute; right: 5px; top: 50%; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #65758a; font-size: 18px; transform: translateY(-50%); cursor: pointer; }
.client-section-table-search button:hover { background: #eef2f7; }
.archived-work-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; border-color: #d6dce5; background: #f4f6f8; color: #4b596b; }
.archived-work-notice p { margin: 4px 0; }
.archived-work-copy-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.archived-work-copy-actions form { margin: 0; }
@media (max-width: 760px) { .archived-work-notice { align-items: stretch; flex-direction: column; } .archived-work-copy-actions .btn { width: 100%; } }
@media (max-width: 700px) {
  .registry-filters-panel { grid-template-columns: minmax(0, 1fr) auto auto; }
  .objects-filters-panel.registry-filters-panel { grid-template-columns: 1fr 1fr; }
  .objects-filters-panel.registry-filters-panel .search { grid-column: 1 / -1; }
}
#worksBulkActions:not(:has(> button:not(.is-hidden))) { display: none; }
@media (max-width: 1200px) {
  #worksFiltersBar { grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 1fr)); }
  #worksFiltersBar .btn { justify-self: start; }
}
@media (max-width: 700px) {
  #worksFiltersBar { grid-template-columns: 1fr; }
  #worksFiltersBar .btn { width: 100%; }
}

.orders-bulk-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.orders-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  flex-wrap: wrap;
}

.orders-pagination-btn {
  min-width: 34px;
  padding-inline: 10px;
}

.orders-pagination-btn.is-active {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

.orders-pagination-btn.is-active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.work-urgent-badge {
  margin-top: 6px;
}

.orders-table-action-btn {
  background: transparent;
  border-color: transparent;
  color: #566577;
  box-shadow: none;
}

.orders-table-action-btn img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(618%) hue-rotate(174deg) brightness(91%) contrast(87%);
}

.orders-table-action-btn:hover {
  background: transparent;
  border-color: transparent;
  color: #5b74b8;
}

.orders-table-action-btn:hover img {
  filter: brightness(0) saturate(100%) invert(48%) sepia(20%) saturate(995%) hue-rotate(190deg) brightness(93%) contrast(91%);
}

.orders-bulk-actions .orders-table-action-btn.is-active,
.orders-bulk-actions .orders-table-action-btn.is-filtered,
.orders-bulk-actions .orders-table-action-btn.is-active.is-filtered {
  background: transparent !important;
  border-color: transparent !important;
  color: #5b74b8 !important;
}

.orders-bulk-actions .orders-table-action-btn.is-active img,
.orders-bulk-actions .orders-table-action-btn.is-filtered img,
.orders-bulk-actions .orders-table-action-btn.is-active.is-filtered img {
  filter: brightness(0) saturate(100%) invert(48%) sepia(20%) saturate(995%) hue-rotate(190deg) brightness(93%) contrast(91%);
}

.orders-bulk-actions .orders-table-action-btn.is-active:hover,
.orders-bulk-actions .orders-table-action-btn.is-filtered:hover,
.orders-bulk-actions .orders-table-action-btn.is-active.is-filtered:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #4d67ad !important;
}

.orders-registry-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.orders-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-top: 8px;
  overflow-x: auto;
}

.work-orders-table-wrap {
  padding-left: 0;
}

.work-orders-table-wrap #workOrdersTable {
  width: 100%;
  min-width: max(1210px, 100%);
  table-layout: fixed;
}

.work-orders-table-wrap th[data-col-key="client"],
.work-orders-table-wrap td[data-col-key="client"] { width: 150px; }
.work-orders-table-wrap th[data-col-key="title"],
.work-orders-table-wrap td[data-col-key="title"] { width: 270px; }
.work-orders-table-wrap th[data-col-key="property"],
.work-orders-table-wrap td[data-col-key="property"] { width: 180px; }
.work-orders-table-wrap th[data-col-key="responsible"],
.work-orders-table-wrap td[data-col-key="responsible"] { width: 160px; }
.work-orders-table-wrap td[data-col-key="responsible"] { overflow: visible; }
.work-orders-table-wrap th[data-col-key="status"],
.work-orders-table-wrap td[data-col-key="status"] { width: 110px; }
.work-orders-table-wrap th[data-col-key="priority"],
.work-orders-table-wrap td[data-col-key="priority"] { width: 105px; }
.work-orders-table-wrap th[data-col-key="dueDate"],
.work-orders-table-wrap td[data-col-key="dueDate"] { width: 175px; }

.work-orders-table-wrap .work-agreed-schedule {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 12px;
  font-weight: 600;
  color: #44566b;
}

.work-orders-table-wrap .work-agreed-schedule span,
.work-orders-table-wrap .work-table-secondary {
  display: block;
}

.work-orders-table-wrap .work-agreed-schedule-end,
.work-orders-table-wrap .work-table-secondary {
  margin-top: 2px;
  color: #66788c;
  font-size: 12px;
  font-weight: 500;
}

.work-table-avatars { display: flex; align-items: center; padding-left: 3px; }
.work-table-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dfe9f6;
  color: #315d8f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(25, 47, 72, 0.18);
}
.work-table-avatar:first-child { margin-left: 0; }
.work-table-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.work-table-avatar.is-company { background: #eee8fb; color: #674b9b; }
.work-table-avatar.is-more { background: #edf1f6; color: #53657a; }
.work-table-avatar[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #1f2c3d;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .12s ease, transform .12s ease;
}
.work-table-avatar[data-tooltip]:hover::after,
.work-table-avatar[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.work-table-avatar-tooltip {
  position: fixed;
  z-index: 9999;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #172536;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 7px 20px rgba(20, 33, 49, .24);
}
body:has(.work-table-avatar-tooltip) .work-table-avatar[data-tooltip]::after { display: none; }
.work-responsible-empty { color: #718096; font-size: 12px; }
.work-orders-table-wrap .work-object-address { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 1.35; }
.field.is-disabled { opacity: .5; }

.work-table-state,
.work-table-priority { font-size: 12px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.work-table-state.status-new { color: #346aa6; }
.work-table-state.status-in_progress { color: #b36b00; }
.work-table-state.status-done { color: #23804b; }
.work-table-state.status-cancelled { color: #7b8794; }
.work-table-priority.priority-low { color: #66788c; }
.work-table-priority.priority-normal { color: #346aa6; }
.work-table-priority.priority-high,
.work-table-priority.priority-critical { color: #a94b4b; font-weight: 600; }

.work-orders-table-wrap .work-photo-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 5px 0 0 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4fb;
  color: #335e91;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.orders-table-wrap table {
  width: 100%;
}

.orders-table-wrap .order-select-col {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  text-align: center;
  padding-left: 1px;
  padding-right: 1px;
}

.orders-table-wrap th[data-col-key="id"],
.orders-table-wrap td[data-col-key="id"] {
  text-align: right;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
}

.orders-table-wrap .column-filter-number {
  min-width: 40px;
  width: 40px;
}

.orders-table-wrap th,
.orders-table-wrap td {
  padding-left: 6px;
  padding-right: 6px;
}

.orders-table-wrap td[data-col-key="client"],
.orders-table-wrap td[data-col-key="title"],
.orders-table-wrap td[data-col-key="property"] {
  white-space: normal;
  overflow-wrap: anywhere;
}

.orders-table-wrap tr.order-row-archived td {
  background: #f3f4f6;
  color: #687587;
}

.orders-table-wrap tr.order-row-archived td .muted {
  color: #7b8798;
}

.orders-table-wrap tr.order-row-archived:hover td,
.orders-table-wrap tr.order-row-archived.is-selected td {
  background: #e8edf3;
}

.orders-table-wrap tr.order-group-detail-row.order-row-archived > td,
.orders-table-wrap tr.order-group-detail-row.order-row-archived:hover > td {
  background: #eef1f5;
}

.orders-table-wrap tr.order-group-detail-row.order-row-archived .order-group-detail-shell,
.orders-table-wrap tr.order-group-detail-row.order-row-archived .order-group-detail-table {
  background: #eef1f5;
}

.orders-table-wrap tr.order-group-detail-row.order-row-archived .order-group-detail-table td,
.orders-table-wrap tr.order-group-detail-row.order-row-archived .order-group-detail-table th,
.orders-table-wrap .order-group-detail-table tr.order-row-archived td {
  background: #eef1f5;
  color: #687587;
}

.orders-table-wrap tr.order-group-detail-row.order-row-archived .order-group-detail-table td a,
.orders-table-wrap tr.order-group-detail-row.order-row-archived .order-group-detail-table th,
.orders-table-wrap .order-group-detail-table tr.order-row-archived td a {
  color: #58697d;
}

.orders-table-wrap tr.order-group-detail-row.order-row-archived .order-group-detail-table .muted,
.orders-table-wrap .order-group-detail-table tr.order-row-archived .muted {
  color: #7b8798;
}

.orders-table-wrap th[data-col-key="id"] .column-head {
  gap: 2px;
}

.orders-table-wrap th[data-col-key="id"] .table-column-search {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.orders-table-wrap .group-chip {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.registry-table .column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.table-column-search {
  width: 19px;
  height: 19px;
  border: 1px solid #bfcee0;
  border-radius: 999px;
  background: #fff;
  color: #2f69b4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.table-column-search:hover {
  background: #eef4fb;
  border-color: #98b2d2;
}

.table-column-search:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 97, 164, 0.16);
}

.clients-filter-row th {
  background: #f7f9fc;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  padding: 6px 7px;
}

.clients-filter-row input,
.clients-filter-row select {
  min-width: 96px;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 13px;
}

.clients-filter-row .column-filter-number {
  min-width: 62px;
}

.registry-table td[data-col-key] {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-address {
  text-overflow: ellipsis;
}

.registry-create {
  margin: 0;
  box-shadow: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(14, 23, 33, 0.45);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 52px 14px 18px;
  overflow: auto;
}

.modal-dialog {
  width: min(860px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(20, 34, 55, 0.2);
}

.client-modal {
  width: min(1240px, 100%);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.client-settings-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.registry-table th[data-col-key] {
  position: relative;
}

.registry-table th.column-draggable {
  cursor: grab;
  user-select: none;
}

.registry-table th.column-draggable.is-dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.registry-table th.column-draggable.is-drop-target {
  outline: 2px solid #9fb8d6;
  outline-offset: -2px;
  background: #eaf2fb;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
}

.column-resize-handle::before {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 3px;
  width: 2px;
  background: rgba(123, 145, 170, 0.45);
  border-radius: 1px;
}

.registry-table th:hover .column-resize-handle::before {
  background: rgba(68, 102, 142, 0.8);
}

body.column-resizing,
body.column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.settings-modal-content {
  display: grid;
  gap: 10px;
}

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

.modal-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.modal-head h3 {
  margin: 0;
  font-size: 19px;
}

.merit-modal-head {
  background: #f7f8fb;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-head-toggle .toggle-label {
  font-size: 13px;
}

.modal-close-x {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #657483;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close-x:hover {
  background: #f3f7fb;
}

.modal-body {
  padding: 12px;
  overflow: auto;
}

/* Ühtne, ekraanile sobituv modalite süsteem */
.modal-backdrop {
  align-items: center;
  padding: clamp(12px, 3vh, 32px) clamp(10px, 2vw, 24px);
  overflow: hidden;
  overscroll-behavior: contain;
  backdrop-filter: blur(3px);
}

.modal-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(900px, 100%);
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - clamp(24px, 6vh, 64px));
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(18, 31, 49, .24);
}

.modal-head {
  min-height: 62px;
  padding: 14px 18px;
  background: #fff;
}

.modal-head > div:first-child { min-width: 0; }
.modal-head h3 { color: #17263a; font-size: 18px; line-height: 1.25; }
.modal-head p { margin: 3px 0 0; font-size: 11px; }
.modal-close-x { display:grid; place-items:center; flex:0 0 34px; padding:0; text-decoration:none; }

.modal-body {
  min-height: 0;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.modal-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.modal-body select,
.modal-body textarea { max-width: 100%; }

.modal-body .form-actions:last-child {
  position: sticky;
  z-index: 2;
  bottom: -18px;
  margin: 18px -18px -18px;
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-end; padding: 8px; }
  .modal-dialog { width:100%; max-width:100%; max-height:calc(100dvh - 16px); border-radius:16px 16px 12px 12px; }
  .modal-head { min-height:56px; padding:12px 14px; }
  .modal-body { padding:14px; }
  .modal-body .grid-2,.modal-body .grid-3,.modal-body .users-inline-grid { grid-template-columns:1fr; }
  .modal-body .form-actions:last-child { bottom:-14px; margin:16px -14px -14px; padding:12px 14px; }
  .modal-body .form-actions:last-child .btn { flex:1; }
}

.media-viewer-dialog {
  width: min(1180px, 100%);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.media-viewer-body {
  display: grid;
  gap: 10px;
}

.media-viewer-stage {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 360px;
  overflow: hidden;
}

.media-viewer-image {
  max-width: 100%;
  max-height: calc(100vh - 260px);
  object-fit: contain;
  display: block;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.media-viewer-meta {
  display: grid;
  gap: 4px;
}

.media-viewer-file {
  display: grid;
  gap: 8px;
  align-items: start;
}

.media-viewer-file-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.media-viewer-title {
  margin: 0;
  font-weight: 700;
  color: #16263d;
}

.media-viewer-counter {
  font-size: 12px;
  font-weight: 700;
  color: #6d7d90;
}

.media-viewer-nav-btn {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4c5d72;
  font-size: 16px;
  cursor: pointer;
}

.media-viewer-nav-btn:hover {
  background: #f3f7fb;
}

.media-viewer-stage.is-pannable {
  cursor: grab;
}

.media-viewer-stage.is-panning {
  cursor: grabbing;
}

.pdf-preview-frame {
  width: 100%;
  height: min(70vh, 720px);
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
}

.cad-preview-frame {
  width: 100%;
  height: min(70vh, 720px);
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
}

.cad-preview-hint {
  border: 1px dashed #d3dbe6;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f9fbfe;
  color: #4c5d72;
  display: grid;
  gap: 8px;
}

.cad-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.file-card {
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
  padding: 8px;
  height: 190px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.file-card-link {
  display: grid;
  grid-template-rows: 100px minmax(0, 36px) 14px;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.file-card:hover {
  border-color: #c8d4e5;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.file-card-thumb {
  border-radius: 10px;
  background: #f3f6fa;
  display: grid;
  place-items: center;
  height: 100px;
  border: 1px solid #e1e7ef;
  overflow: hidden;
}

.file-card-thumb.is-image {
  padding: 0;
  background: #fff;
}

.file-card-thumb.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.file-card-ext {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a6078;
  padding: 5px 8px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e1e7ef;
}

.file-card-name {
  font-size: 12px;
  font-weight: 600;
  color: #203247;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.2;
  min-height: 32px;
}

.file-card-meta {
  font-size: 10px;
  color: #6d7d90;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  min-height: 12px;
}

.file-card.is-photo .file-card-name {
  display: none;
}

.file-card.is-photo .file-card-link {
  grid-template-rows: 100px 14px;
}

.file-card-actions {
  display: flex;
  justify-content: flex-end;
}

.file-card-empty {
  border: 1px dashed #d4dfeb;
  border-radius: 8px;
  padding: 12px;
  color: #50657c;
  background: #f8fbff;
}

.file-card-thumb.ext-pdf .file-card-ext {
  color: #b21f36;
  border-color: #f0c4cc;
  background: #fff3f4;
}

.file-card-thumb.ext-doc,
.file-card-thumb.ext-docx {
  background: #f3f7ff;
}

.file-card-thumb.ext-xls,
.file-card-thumb.ext-xlsx,
.file-card-thumb.ext-csv {
  background: #f2fbf5;
}

.file-card-thumb.ext-zip,
.file-card-thumb.ext-rar,
.file-card-thumb.ext-7z {
  background: #f8f4ff;
}

.file-card-thumb.ext-txt,
.file-card-thumb.ext-rtf,
.file-card-thumb.ext-md {
  background: #f7f7f7;
}

@media (max-width: 640px) {
  .file-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 860px) {
  .media-viewer-stage {
    min-height: 280px;
  }

  .media-viewer-image {
    max-height: calc(100vh - 300px);
  }
}

.confirm-backdrop {
  align-items: center;
  padding: 14px;
  z-index: 1250;
}

.confirm-dialog {
  width: min(440px, 100%);
}

.confirm-body {
  padding-top: 14px;
  padding-bottom: 8px;
}

.confirm-message {
  margin: 0;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.client-modal-form {
  display: grid;
  gap: 10px;
}

.merit-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.merit-block-title {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5f7085;
  font-weight: 700;
}

.merit-grid {
  display: grid;
  gap: 10px;
}

.merit-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.merit-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.merit-grid.cols-1 {
  grid-template-columns: 1fr;
}

.merit-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 0 2px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.registry-table table {
  min-width: 1160px;
}

.registry-table th,
.registry-table td {
  padding: 7px 8px;
  border-right: 1px solid #e7edf3;
}

.registry-table th:last-child,
.registry-table td:last-child {
  border-right: 0;
}

.row-clickable {
  cursor: pointer;
}

.row-clickable.is-selected td {
  background: #e8f1fc;
}

.row-clickable:focus {
  outline: 2px solid #7fa3cc;
  outline-offset: -2px;
}


.row-link {
  color: #153e70;
  text-decoration: none;
  font-weight: 700;
}

.row-link:hover {
  text-decoration: underline;
}

.objects-filters-panel {
  display: grid;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
}

.objects-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
}

.object-toggle-col {
  width: 34px;
}
.object-main-cell { min-width: 260px; }
.object-main-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.object-main-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.object-code-chip { flex: 0 0 auto; padding: 2px 6px; border: 1px solid #dbe3ed; border-radius: 999px; background: #f5f7fa; color: #68778a; font-size: 10px; font-weight: 700; }
.object-address-line { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.object-row-toggle {
  border: 0;
  background: transparent;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.object-row-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid #74859a;
  border-bottom: 2px solid #74859a;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.object-row-toggle.is-open .object-row-toggle-icon {
  transform: rotate(45deg);
}

.object-detail-row td {
  background: #fbfdff;
  padding: 0;
}

.object-detail-modal-dialog {
  max-width: 1400px;
  width: min(1400px, 96vw);
  height: 92vh;
  display: flex;
  flex-direction: column;
}

.object-detail-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid #e6eef6;
}

.object-detail-modal .modal-body {
  padding: 0;
  overflow: auto;
  flex: 1;
}

.object-detail-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6eef6;
  background: #f7fafc;
  position: sticky;
  top: 0;
  z-index: 4;
}

.object-detail-tabs .order-create-tab {
  font-size: 13px;
}

.object-detail-tab-panel {
  padding: 12px 14px 4px;
}

.object-inline-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.object-inline-optional.is-hidden {
  display: none;
}

.object-inline-toggle {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #1a4aa0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 0;
}

.object-inline-toggle:hover {
  text-decoration: underline;
}

.object-detail-shell .order-edit-mode input,
.object-detail-shell .order-edit-mode select,
.object-detail-shell .order-edit-mode textarea {
  width: 100%;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #18273d;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.4;
}

.object-detail-shell .order-edit-mode label {
  font-size: 12px;
  font-weight: 700;
  color: #6d7d90;
}

.object-detail-shell {
  border-top: 1px solid #dbe5f0;
  padding: 12px 14px;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.object-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.object-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.object-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.object-detail-related {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.object-detail-related-block {
  background: #fff;
  border: 1px solid #e1e9f3;
  border-radius: 12px;
  padding: 12px;
}

.object-detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.object-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.object-maintenance-list li {
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.object-maintenance-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.object-maintenance-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.object-maintenance-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.object-detail-card-list li {
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.object-detail-card-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.object-detail-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.object-detail-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.object-detail-list a {
  color: #153e70;
  font-weight: 600;
  text-decoration: none;
}

.object-detail-list a:hover {
  text-decoration: underline;
}

.object-detail-related-block h4 {
  margin: 0 0 6px;
}

.object-edit-btn {
  white-space: nowrap;
}

.object-detail-related-block .work-order-kv-list strong {
  text-align: left;
}

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

.object-detail-metric {
  background: #f3f7fb;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.object-detail-metric span {
  color: #5c728d;
  font-size: 12px;
}

.object-detail-metric strong {
  font-size: 18px;
  color: #21384f;
}

.object-detail-metric.is-danger {
  border-color: #f2c4c4;
  background: #fff3f3;
}

@media (max-width: 900px) {
  .object-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .object-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #b9cce2;
  background: #edf4fb;
  color: #17497f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
}

.group-chip:hover {
  background: #e1ecf9;
  border-color: #9fb8d6;
}

.group-select-checkbox:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.order-group-parent td {
  background: #f6f9fe;
}

.order-group-child td {
  background: #fbfdff;
}

.order-group-detail-row td {
  background: #fbfdff;
  padding: 0;
}

.order-group-detail-shell {
  border-top: 1px solid #dbe5f0;
  padding: 10px;
  background: #fbfdff;
}

.order-group-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.order-group-detail-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

.order-group-detail-table th,
.order-group-detail-table td {
  padding: 6px 7px;
  white-space: normal;
  word-break: break-word;
}

.order-group-undo-form {
  margin: 0;
}

.order-group-toggle {
  border: 1px solid #bfd0e3;
  border-radius: 6px;
  background: #ffffff;
  color: #2d598b;
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  cursor: pointer;
}

.row-toggle-cell {
  padding-left: 6px !important;
}

.order-title-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.order-group-toggle:hover {
  background: #edf4fb;
}

.order-group-toggle-inline {
  position: static;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d7e1ec;
  border-radius: 999px;
  background: #ffffff;
  color: #4a5b70;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  white-space: nowrap;
}

.order-group-toggle-inline:hover {
  background: #f3f6fa;
  border-color: #c8d5e3;
  color: #24384f;
}

.order-group-parent.is-expanded .order-group-toggle-inline {
  background: #eef4ff;
  border-color: #b8ccef;
  color: #234a84;
}

.order-group-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
}

.order-group-toggle-label {
  display: inline-flex;
  align-items: center;
}

.orders-table-wrap .order-group-toggle-inline {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
}

.orders-table-wrap .order-group-toggle-inline .order-group-toggle-label {
  display: none;
}

.orders-table-wrap .order-group-toggle-count {
  min-width: 24px;
  min-height: 24px;
  font-size: 11px;
}


.muted {
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

.mt-12 {
  margin-top: 12px;
}

.mb-12 {
  margin-bottom: 12px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.stat {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field label.field-label-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-label-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.field-label-action:hover {
  color: #2f5a8e;
  text-decoration: underline;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.toggle-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-inline input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cad5e2;
  transition: background 140ms ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
  transition: transform 140ms ease;
}

.toggle-label {
  font-size: 14px;
  font-weight: 700;
}

.toggle-inline input[type="checkbox"]:checked + .toggle-switch {
  background: var(--primary);
}

.toggle-inline input[type="checkbox"]:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.toggle-inline input[type="checkbox"]:focus + .toggle-switch {
  box-shadow: 0 0 0 3px rgba(41, 97, 164, 0.18);
}

.registry-autofill-status {
  margin: -2px 0 0;
  font-size: 12px;
}

.registry-autofill-status.ok {
  color: var(--ok);
}

.registry-autofill-status.warn {
  color: var(--warn);
}

.registry-autofill-status.danger {
  color: var(--danger);
}

.registry-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.registry-search-actions .registry-autofill-status {
  margin: 0;
}

.registry-autofill-suggest {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 2px;
  z-index: 2200;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.registry-autofill-host {
  position: relative;
}

.registry-autofill-suggest ul {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.registry-autofill-suggest li {
  margin: 0;
  padding: 0;
}

.registry-autofill-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 6px;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 7px 8px;
  cursor: pointer;
}

.registry-autofill-item:hover,
.registry-autofill-item.active {
  background: #eef4fb;
}

.registry-autofill-country {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8eff8;
  border: 1px solid #cfddf0;
  color: #2a527f;
  font-size: 11px;
  font-weight: 700;
}

.registry-autofill-title {
  font-weight: 700;
  color: #1a2b3f;
}

.registry-autofill-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.registry-autofill-inline {
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.registry-autofill-inline ul {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.registry-picker-backdrop {
  z-index: 1300;
  align-items: center;
  padding: 14px;
}

.registry-picker-dialog {
  width: min(980px, 100%);
  max-height: min(80vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.registry-picker-body {
  padding: 0;
}

.registry-picker-table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  max-height: min(58vh, 560px);
}

.registry-picker-table {
  min-width: 860px;
}

.registry-picker-table td {
  vertical-align: middle;
}

.registry-picker-empty {
  padding: 12px;
  margin: 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: var(--surface-soft);
}

.list strong {
  display: block;
}

.list span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workflow-stage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.workflow-stage-toggle:hover {
  color: var(--primary);
}

.workflow-stage-toggle-icon {
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  align-items: center;
  justify-content: center;
}

.workflow-stage-toggle-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  transition: transform 0.16s ease;
  transform-origin: 30% 50%;
}

.workflow-stage-toggle[aria-expanded="true"] .workflow-stage-toggle-icon::before {
  transform: rotate(90deg);
}

.workflow-stage-detail-row > td {
  background: #f8fbff;
  white-space: normal;
}

.workflow-stage-detail {
  padding: 8px 4px;
}

.workflow-stage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-stage-delete-form {
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #e7edf3;
  padding: 8px 9px;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}

th {
  background: #f0f5fb;
  color: #4f6278;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f6f9fd;
}

tbody tr.deadline-overdue > td {
  background: rgba(207, 63, 63, 0.08);
}

tbody tr.deadline-soon > td {
  background: rgba(212, 163, 54, 0.11);
}

tbody tr.deadline-overdue:hover > td {
  background: rgba(207, 63, 63, 0.13);
}

tbody tr.deadline-soon:hover > td {
  background: rgba(212, 163, 54, 0.16);
}

.row-clickable.is-selected.deadline-overdue td,
.row-clickable.is-selected.deadline-soon td {
  background: #e8f1fc;
}

.dashboard-card.deadline-overdue {
  background: rgba(207, 63, 63, 0.08);
  border-color: rgba(207, 63, 63, 0.25);
}

.dashboard-card.deadline-soon {
  background: rgba(212, 163, 54, 0.1);
  border-color: rgba(212, 163, 54, 0.28);
}

.dashboard-card.deadline-overdue:hover {
  background: rgba(207, 63, 63, 0.12);
}

.dashboard-card.deadline-soon:hover {
  background: rgba(212, 163, 54, 0.14);
}

.two-col {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
}

.chat-list button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  margin-bottom: 6px;
}

.chat-list button span {
  color: var(--muted);
  font-size: 13px;
}

.drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transform: translateX(115%);
  transition: transform 0.2s ease;
  z-index: 20;
}

.drawer.open {
  transform: translateX(0);
}

.close-drawer {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 40, 0.34);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.role-client .sidebar {
  background: #f2f6fa;
}

.auth-page {
  background: #ffffff;
}

.login-shell {
  min-height: 100vh;
  padding: 0;
}

.login-window {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.login-window-body {
  display: grid;
  grid-template-columns: minmax(440px, 1.16fr) minmax(380px, 0.84fr);
  min-height: 100vh;
}

.login-showcase {
  padding: 22px;
  background: #ffffff;
}

.login-showcase-media {
  position: relative;
  height: 100%;
  min-height: 560px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(164, 194, 234, 0.44);
  background: #143c96;
}

.login-showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-showcase-media-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 10%, rgba(112, 178, 255, 0.5), transparent 42%),
    linear-gradient(180deg, rgba(16, 56, 134, 0.28), rgba(5, 14, 42, 0.74));
}

.login-showcase-content {
  position: relative;
  z-index: 1;
  padding: 26px;
  color: #f5fbff;
  display: flex;
  flex-direction: column;
}

.login-showcase-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.82;
}

.login-showcase-title {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  color: #f6fbff;
}

.login-showcase-text {
  margin: 12px 0 0;
  max-width: 42ch;
  color: rgba(235, 244, 255, 0.92);
  font-size: 16px;
}

.login-showcase-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(8, 18, 50, 0), rgba(8, 18, 50, 0.84));
}

.login-progress {
  display: flex;
  gap: 8px;
}

.login-progress span {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: rgba(239, 245, 255, 0.42);
}

.login-progress .is-active {
  background: #ffffff;
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 48px;
  background: #ffffff;
}

.login-form-wrap {
  width: min(360px, 100%);
}

.login-form-wrap h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  color: #15263a;
}

.login-form-text {
  margin: 10px 0 0;
  color: #586c82;
  font-size: 16px;
}

.login-grid {
  gap: 10px;
  margin-top: 18px;
}

.login-grid .field label {
  font-size: 14px;
  color: #5b6d81;
}

.login-grid input {
  border-color: #d9e2ed;
  height: 44px;
  border-radius: 9px;
  padding: 9px 11px;
  background: #f8fafc;
}

.login-grid input:focus,
.login-password-wrap:focus-within input {
  border-color: #2f76e3;
  box-shadow: 0 0 0 2px rgba(47, 118, 227, 0.18);
  background: #ffffff;
}

.login-password-wrap {
  position: relative;
}

.login-password-wrap input {
  padding-right: 42px;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-password-toggle:hover {
  background: #ebf0f7;
}

.login-password-toggle:focus-visible {
  outline: 2px solid #6b92bf;
  outline-offset: 1px;
}

.login-password-toggle img {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(49%) sepia(8%) saturate(427%) hue-rotate(173deg) brightness(91%) contrast(88%);
}

.login-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.login-forgot {
  font-size: 13px;
  color: #2f76e3;
  text-decoration: none;
}

.login-forgot:hover {
  text-decoration: underline;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
  height: 44px;
  border-radius: 9px;
}

.login-divider {
  margin: 14px 0 10px;
  text-align: center;
  color: #6a7b8d;
}

.login-alt-btn {
  width: 100%;
  height: 44px;
  border-radius: 9px;
}

.login-demo {
  margin-top: 14px;
  border-top: 1px solid #dbe5f1;
  padding-top: 12px;
}

.login-demo p {
  margin: 0;
  font-weight: 700;
  color: #36506f;
}

.login-demo-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: #445a73;
  font-size: 14px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-card {
  width: min(560px, 100%);
}

@media (max-width: 1180px) {
  .login-window-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-showcase-media {
    min-height: 340px;
  }

  .login-form-side {
    padding: 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .grid-2,
  .two-col {
    grid-template-columns: 1fr;
  }

  .client-info-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .order-items-layout {
    grid-template-columns: 1fr;
  }

  .settings-hub-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px 20px;
  }

  .settings-hub-head h2 {
    font-size: 17px;
  }

  .settings-hub-link {
    font-size: 15px;
  }

  .dashboard-subnav-links {
    gap: 14px;
  }

  .dashboard-subnav-links a {
    font-size: 14px;
  }

  .users-permissions-grid {
    grid-template-columns: 1fr;
  }

  .users-toolbar .btn {
    width: auto;
  }

  .work-gantt-layout {
    grid-template-columns: 1fr;
  }

  .work-gantt-shell {
    --work-gantt-pane-height: clamp(320px, 52vh, 620px);
  }

  .work-gantt-side-table-wrap {
    max-height: none;
  }

  .work-order-summary-grid,
  .work-order-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-order-comments-layout,
  .work-order-photo-layout {
    grid-template-columns: 1fr;
  }

  .work-calendar-preview-grid {
    grid-template-columns: 1fr;
  }

  .work-calendar-preview-col.is-wide {
    border-left: 0;
    border-top: 1px solid #e3eaf2;
    padding-left: 0;
    padding-top: 10px;
  }
}

@media (max-width: 900px) {
  .app-header-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .app-header-brand {
    justify-content: space-between;
  }

  .app-main-nav {
    order: 3;
    padding-bottom: 2px;
  }

  .app-header-actions {
    order: 2;
    justify-content: flex-end;
  }

  .app-header-user {
    display: none;
  }

  .topbar {
    align-items: center;
    margin-bottom: 16px;
  }

  .topbar-actions {
    width: auto;
  }

  .work-calendar-cell {
    min-height: 116px;
  }

  .work-gantt-board {
    min-width: 980px;
  }

  .work-gantt-grid-head,
  .work-gantt-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-gantt-side-table th:last-child,
  .work-gantt-side-table td:last-child {
    width: 76px;
  }

  .work-order-head {
    align-items: flex-start;
  }

  .work-order-head-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .work-order-summary-grid,
  .work-order-meta-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .login-shell {
    padding: 0;
  }

  .login-window {
    min-height: 100vh;
  }

  .login-showcase {
    padding: 12px;
  }

  .login-showcase-title {
    font-size: clamp(24px, 8vw, 32px);
  }

  .login-form-side {
    padding: 16px 14px;
  }

  .login-form-wrap h2 {
    font-size: 34px;
  }

  .main {
    padding: 9px;
  }

  h1 {
    font-size: 22px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .app-header-logo {
    font-size: 16px;
  }

  .app-header-workspace {
    font-size: 11px;
  }

  .app-main-nav a {
    padding: 7px 10px;
    font-size: 14px;
  }

  .topbar-actions {
    flex-direction: row;
    align-items: center;
  }

  .topbar-actions .btn {
    width: auto;
  }

  .work-calendar-month-title {
    font-size: 18px;
  }

  .work-calendar-nav .btn {
    width: auto;
  }

  .work-gantt-board {
    min-width: 860px;
  }

  .work-gantt-grid-head,
  .work-gantt-row {
    grid-template-columns: 165px minmax(0, 1fr);
  }

  .work-gantt-row-label {
    padding: 8px 8px;
  }

  .work-gantt-row-label strong {
    font-size: 13px;
  }

  .btn {
    width: 100%;
  }

  .btn.icon-btn {
    width: 34px;
  }

  .topbar-actions .registry-primary-actions {
    width: auto;
  }

  .topbar-actions .registry-primary-actions .btn {
    width: auto;
  }

  .settings-hub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-hub-head h2 {
    font-size: 16px;
  }

  .dashboard-subnav-links a {
    font-size: 13px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .users-admin-layout {
    gap: 10px;
  }

  .users-filter-tabs a {
    width: auto;
    justify-content: flex-start;
  }

  .notes-form-footer {
    align-items: stretch;
  }

  .notes-form-actions {
    width: 100%;
  }

  .notes-form-actions .btn {
    width: 100%;
  }

  .note-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    min-width: 0;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .client-info-grid {
    grid-template-columns: 1fr;
  }

  .client-cell-span-2 {
    grid-column: auto;
  }

  .modal-backdrop {
    padding-top: 16px;
    align-items: flex-start;
  }

  .merit-grid.cols-3,
  .merit-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .toast-stack {
    top: 10px;
    right: 10px;
    width: calc(100vw - 14px);
  }

  .pending-actions-root {
    right: 10px;
    bottom: 10px;
  }

  .pending-actions-panel {
    width: min(100vw - 20px, 360px);
  }

  .modal-head-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .object-detail-grid {
    grid-template-columns: 1fr;
  }

  .object-detail-actions {
    flex-wrap: wrap;
  }
}

/* Client portal */
.client-portal {
  background:
    radial-gradient(circle at top left, rgba(42, 125, 255, 0.13), transparent 34vw),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
  color: #162033;
}

.client-portal-shell {
  min-height: 100vh;
}

.client-portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dde5f0;
  backdrop-filter: blur(16px);
}

.client-portal-header-main {
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 74px;
}

.client-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  text-decoration: none;
  min-width: 0;
}

.client-portal-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.client-portal-brand strong,
.client-portal-brand small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-portal-brand small {
  max-width: 220px;
  color: #64748b;
  font-size: 13px;
}

.client-portal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.client-portal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-weight: 700;
}

.client-portal-nav img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.client-portal-nav a:hover,
.client-portal-nav a.is-active {
  background: #eaf0f7;
  color: #0f172a;
}

.client-portal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.client-portal-main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.client-portal-page-head {
  margin-bottom: 18px;
}

.client-portal-page-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.client-portal-kicker {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.client-portal-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.client-portal-hero p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: #526173;
  font-size: 16px;
}

.client-portal-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.client-portal-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.client-portal-quick a {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 16px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #ffffff;
  color: #102033;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.client-portal-quick a:hover {
  border-color: #2f7df6;
}

.client-portal-quick span {
  color: #2f7df6;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.client-portal-quick strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.client-portal-metrics article,
.client-portal-panel {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.client-portal-metrics article {
  padding: 18px;
}

.client-portal-metrics span {
  display: block;
  color: #64748b;
  font-weight: 700;
}

.client-portal-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.client-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.client-portal-panel {
  min-width: 0;
  padding: 18px;
}

.client-portal-panel-wide {
  grid-column: 1 / -1;
}

.client-portal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.client-portal-panel-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.client-portal-panel-head a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

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

.client-portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
}

.client-portal-row:hover {
  border-color: #cbd8e8;
  background: #f6f9fd;
}

.client-portal-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-portal-row-main strong,
.client-portal-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-portal-row-main small {
  color: #64748b;
}

@media (max-width: 980px) {
  .client-portal-header-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .client-portal-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .client-portal-nav a {
    white-space: nowrap;
  }

  .client-portal-actions {
    justify-content: flex-start;
  }

  .client-portal-hero {
    grid-template-columns: 1fr;
  }

  .client-portal-hero-actions {
    justify-content: flex-start;
  }

  .client-portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-portal-quick {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .client-portal {
    background: #f4f8fd;
  }

  .client-portal-shell {
    padding-bottom: 88px;
  }

  .client-portal-header {
    position: sticky;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  }

  .client-portal-header-main,
  .client-portal-main {
    width: min(100vw - 24px, 1180px);
  }

  .client-portal-header-main {
    display: flex;
    min-height: 64px;
    padding: 10px 0;
  }

  .client-portal-main {
    padding-top: 14px;
  }

  .client-portal-brand {
    flex: 1;
  }

  .client-portal-brand-mark {
    width: 38px;
    height: 38px;
  }

  .client-portal-brand small {
    max-width: 54vw;
  }

  .client-portal-actions {
    width: auto;
  }

  .client-portal-actions .btn.secondary {
    display: none;
  }

  .client-portal-actions .btn.primary {
    min-height: 38px;
    width: auto;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .client-portal-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(203, 216, 232, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    overflow: visible;
  }

  .client-portal-nav a {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 52px;
    padding: 6px 2px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1;
  }

  .client-portal-nav img {
    width: 19px;
    height: 19px;
  }

  .client-portal-page-head h1 {
    font-size: 22px;
  }

  .client-portal-hero {
    padding: 18px;
    box-shadow: none;
  }

  .client-portal-hero h2 {
    font-size: 24px;
  }

  .client-portal-hero-actions,
  .client-portal-hero-actions .btn {
    width: 100%;
  }

  .client-portal-hero-actions .btn {
    justify-content: center;
    min-height: 46px;
  }

  .client-portal-metrics,
  .client-portal-grid {
    grid-template-columns: 1fr;
  }

  .client-portal-metrics {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .client-portal-metrics article {
    min-width: 148px;
    scroll-snap-align: start;
  }

  .client-portal-panel {
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  .client-portal-panel-head h2 {
    font-size: 17px;
  }

  .client-portal-row {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .client-portal-row-main strong,
  .client-portal-row-main small {
    white-space: normal;
  }
}

/* Client portal v2: mobile-app first */
.client-portal {
  background:
    radial-gradient(circle at 50% -140px, rgba(47, 125, 246, 0.22), transparent 340px),
    linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

.client-portal-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 96px;
}

.client-portal-header {
  width: 100%;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.client-portal-header-main,
.client-portal-main {
  width: min(100vw - 24px, 430px);
}

.client-portal-header-main {
  display: flex;
  min-height: 62px;
  padding: 12px 0 8px;
}

.client-portal-brand {
  flex: 1;
}

.client-portal-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f1ff;
  color: #1267d8;
  border: 2px solid #2f7df6;
  font-size: 15px;
}

.client-portal-brand strong {
  font-size: 15px;
}

.client-portal-brand small {
  max-width: 230px;
  font-size: 12px;
}

.client-portal-actions {
  width: auto;
  gap: 6px;
}

.client-portal-actions .btn {
  min-height: 36px;
  border-radius: 999px;
}

.client-portal-actions .btn.secondary {
  display: none;
}

.client-portal-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  width: min(100vw - 20px, 430px);
  padding: 8px;
  border: 1px solid rgba(194, 211, 232, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(30, 53, 84, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.client-portal-nav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 5px 2px;
  border-radius: 14px;
  color: #677489;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.client-portal-nav a.is-active {
  background: #eaf2ff;
  color: #0b66df;
}

.client-portal-nav img {
  width: 19px;
  height: 19px;
  opacity: 0.78;
}

.client-portal-nav a.is-active img {
  opacity: 1;
}

.client-portal-main {
  padding: 4px 0 20px;
}

.client-portal-page-head {
  display: none;
}

.client-portal-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 4px;
  padding: 18px 18px 16px;
  border: 1px solid #d8e5f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(26, 48, 78, 0.09);
  overflow: hidden;
}

.client-portal-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #1374f2;
}

.client-portal-kicker {
  color: #0b66df;
  font-size: 12px;
  letter-spacing: 0;
}

.client-portal-hero h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.08;
}

.client-portal-hero p:last-child {
  margin-top: 8px;
  color: #5f6d7e;
  font-size: 14px;
  line-height: 1.35;
}

.client-portal-hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.client-portal-hero-actions .btn {
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
}

.client-portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(98px, 1fr));
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
}

.client-portal-metrics article {
  min-width: 98px;
  padding: 12px;
  border-radius: 14px;
  scroll-snap-align: start;
}

.client-portal-metrics span {
  font-size: 12px;
}

.client-portal-metrics strong {
  font-size: 26px;
}

.client-portal-quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.client-portal-quick a {
  min-height: 64px;
  padding: 13px 14px;
  border-radius: 14px;
  box-shadow: none;
}

.client-portal-quick span {
  font-size: 11px;
}

.client-portal-quick strong {
  font-size: 15px;
}

.client-portal-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.client-portal-panel,
.client-portal-metrics article {
  border: 1px solid #dce8f5;
  background: rgba(255, 255, 255, 0.96);
}

.client-portal-panel {
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(26, 48, 78, 0.06);
}

.client-portal-panel-head {
  margin-bottom: 10px;
}

.client-portal-panel-head h2 {
  font-size: 16px;
}

.client-portal-panel-head a {
  color: #0b66df;
  font-size: 13px;
}

.client-portal-list {
  gap: 7px;
}

.client-portal-row {
  min-height: 66px;
  padding: 11px 12px;
  border-color: #e8eff8;
  border-radius: 13px;
  background: #fbfdff;
}

.client-portal-row-main strong {
  color: #162033;
  font-size: 14px;
  line-height: 1.2;
  white-space: normal;
}

.client-portal-row-main small {
  color: #6b7889;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

.client-portal .badge {
  border-radius: 999px;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .client-portal-shell::before {
    content: "";
    position: fixed;
    top: 76px;
    bottom: 76px;
    left: 50%;
    width: min(100vw - 8px, 470px);
    border: 1px solid rgba(210, 223, 238, 0.8);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .client-portal-header,
  .client-portal-main {
    position: relative;
    z-index: 1;
  }
}

/* Client portal v3 corrections: desktop and mobile are different products */
.client-portal-shell {
  display: block;
  padding-bottom: 0;
}

.client-portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dce6f2;
  backdrop-filter: blur(16px);
}

.client-portal-header-main,
.client-portal-main {
  width: min(1180px, calc(100vw - 40px));
  margin-inline: auto;
}

.client-portal-header-main {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0;
}

.client-portal-nav {
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

.client-portal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
}

.client-portal-nav img {
  width: 18px;
  height: 18px;
}

.client-portal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.client-portal-actions .btn.secondary {
  display: inline-flex;
}

.client-portal-main {
  padding: 28px 0 56px;
}

.client-portal-page-head {
  display: block;
}

.client-portal-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border-radius: 12px;
}

.client-portal-hero-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.client-portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}

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

.client-portal-panel-wide {
  grid-column: 1 / -1;
}

.client-portal-shell::before {
  display: none;
}

@media (max-width: 760px) {
  .logs-hub-nav { grid-template-columns: 1fr; }
  .logs-hub-nav.is-inside-panel { margin-inline: 18px; }
  .client-portal-shell {
    padding-bottom: 86px;
  }

  .client-portal-header {
    background: rgba(247, 251, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .client-portal-header-main,
  .client-portal-main {
    width: min(100vw - 24px, 430px);
  }

  .client-portal-header-main {
    display: flex;
    min-height: 64px;
    padding: 10px 0;
  }

  .client-portal-brand {
    flex: 1;
  }

  .client-portal-brand small {
    max-width: 50vw;
  }

  .client-portal-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .client-portal-actions .btn {
    min-height: 36px;
    padding-inline: 10px;
  }

  .client-portal-actions .btn:first-child {
    display: none;
  }

  .client-portal-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    width: auto;
    padding: 8px;
    border: 1px solid rgba(194, 211, 232, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 42px rgba(30, 53, 84, 0.2);
    transform: none;
    backdrop-filter: blur(18px);
  }

  .client-portal-nav a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 5px 2px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .client-portal-nav img {
    width: 19px;
    height: 19px;
  }

  .client-portal-main {
    padding: 14px 0 20px;
  }

  .client-portal-page-head {
    display: none;
  }

  .client-portal-hero {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 18px;
  }

  .client-portal-hero-actions,
  .client-portal-hero-actions .btn {
    width: 100%;
  }

  .client-portal-hero-actions .btn {
    justify-content: center;
  }

  .client-portal-metrics {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .client-portal-metrics article {
    min-width: 122px;
  }

  .client-portal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .client-portal-row {
    min-height: 66px;
    align-items: flex-start;
  }

  .client-portal-row-main strong,
  .client-portal-row-main small {
    white-space: normal;
  }
}

.portal-app-hero,
.portal-card,
.portal-action {
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 48, 78, 0.06);
}

.portal-app-hero {
  padding: 22px;
}

.portal-eyebrow {
  margin: 0 0 8px;
  color: #0b66df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-app-hero h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-app-hero p:last-child {
  margin: 10px 0 0;
  color: #5f6d7e;
}

.portal-action-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.portal-action {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 18px;
  color: #102033;
  text-decoration: none;
}

.portal-action.primary {
  background: #0b66df;
  color: #fff;
}

.portal-action span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-action strong {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

.portal-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.portal-stat-strip article {
  padding: 14px;
  border: 1px solid #dce8f5;
  border-radius: 12px;
  background: #fff;
}

.portal-stat-strip span {
  display: block;
  color: #64748b;
  font-weight: 700;
}

.portal-stat-strip strong {
  display: block;
  margin-top: 7px;
  font-size: 28px;
}

.portal-card {
  margin-top: 14px;
  padding: 18px;
}

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

.portal-card-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.portal-card-head a {
  color: #0b66df;
  font-weight: 800;
  text-decoration: none;
}

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

.portal-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid #e7eef7;
  border-radius: 12px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
}

.portal-list-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.portal-list-row strong {
  font-size: 14px;
}

.portal-list-row small,
.portal-list-row em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

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

.portal-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 800;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfdceb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}

.portal-chat {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.portal-home-hero {
  display: block;
}

.portal-compose-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #cfe0f4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(19, 116, 242, 0.11);
}

.portal-compose-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.portal-compose-head > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eaf2ff;
  color: #0b66df;
  font-size: 25px;
  flex: 0 0 auto;
}

.portal-compose-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.portal-compose-head p {
  margin: 3px 0 0;
  color: #66778c;
}

.portal-compose-form,
.portal-reply-form {
  display: grid;
  gap: 10px;
}

.portal-compose-form input,
.portal-compose-form select,
.portal-compose-form textarea,
.portal-reply-form textarea {
  width: 100%;
  border: 1px solid #cfdeef;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
  font: inherit;
}

.portal-compose-form textarea,
.portal-reply-form textarea {
  resize: vertical;
}

.portal-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.portal-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #b9d1ef;
  border-radius: 12px;
  background: #f4f8ff;
  color: #0b66df;
  font-weight: 800;
  cursor: pointer;
}

.portal-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.portal-compose-form .btn,
.portal-reply-form .btn {
  gap: 7px;
}

.portal-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.portal-message {
  max-width: 82%;
  padding: 12px;
  border-radius: 14px;
  background: #eef5ff;
}

.portal-message.is-client {
  justify-self: end;
  background: #0b66df;
  color: #fff;
}

.portal-message p {
  margin: 0;
}

.portal-message small {
  display: block;
  margin-top: 6px;
  opacity: 0.72;
}

@media (max-width: 760px) {
  .portal-action-stack,
  .portal-stat-strip {
    grid-template-columns: 1fr;
  }

  .portal-app-hero,
  .portal-card,
  .portal-action {
    border-radius: 16px;
  }

  .portal-app-hero {
    padding: 18px;
  }

  .portal-app-hero h2 {
    font-size: 24px;
  }

  .portal-card {
    padding: 14px;
  }

  .portal-compose-grid {
    grid-template-columns: 1fr;
  }

  .portal-file-button,
  .portal-compose-form .btn,
  .portal-reply-form .btn {
    width: 100%;
  }
}

.client-portal-nav .material-symbols-rounded {
  font-size: 20px;
}

.work-responsible-avatar,.convert-selected-avatar{overflow:visible!important}.work-responsible-avatar img,.convert-selected-avatar img{border-radius:50%}.work-responsible-avatar[data-tooltip]:after,.work-responsible-avatar[title]:after,.convert-selected-avatar[data-tooltip]:before{content:attr(data-tooltip);position:absolute;z-index:30;left:50%;bottom:calc(100% + 9px);width:max-content;max-width:220px;padding:6px 8px;border-radius:7px;background:#1f2c3d;color:#fff;font-size:10px;font-weight:650;line-height:1.25;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .12s,transform .12s}.work-responsible-avatar[title]:after{content:attr(title)}.work-responsible-avatar:hover:after,.convert-selected-avatar:hover:before,.work-responsible-avatar:focus-visible:after,.convert-selected-avatar:focus-visible:before{opacity:1;transform:translate(-50%,0)}
.work-assignee-avatar{overflow:hidden}.work-assignee-avatar img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.work-assignee-chip-avatar{appearance:none;cursor:pointer}.work-assignee-chips:has(.work-assignee-chip-avatar){display:flex;align-items:center;padding-left:4px}.work-assignee-chips .work-assignee-chip-avatar{margin-left:-7px}.work-assignee-chips .work-assignee-chip-avatar:first-child{margin-left:0}
.work-assignee-modal-backdrop.is-visible{position:fixed!important;z-index:1400!important;inset:0!important;display:grid!important;place-items:center!important;padding:18px!important;background:rgba(18,31,48,.46)!important;backdrop-filter:blur(3px)}.work-assignee-modal-dialog{display:flex;flex-direction:column;width:min(620px,calc(100vw - 28px));max-height:min(720px,calc(100dvh - 28px));overflow:hidden;border:1px solid #dce4ee;border-radius:18px;background:#fff;box-shadow:0 28px 90px rgba(17,31,49,.3)}.work-assignee-modal-dialog .modal-head{flex:0 0 auto;padding:20px 22px 17px}.work-assignee-modal-kicker{color:#3972b8;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.work-assignee-modal-body{display:grid;gap:15px;min-height:0;padding:18px 20px;overflow:auto}.work-assignee-modal-body .work-assignee-control{align-items:flex-start}.work-assignee-modal-body .work-assignee-popover{position:static;width:100%;margin-top:3px;border:0;border-top:1px solid #e8edf3;border-radius:0;box-shadow:none}.work-assignee-modal-body .work-assignee-options{max-height:330px}.work-assignee-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid #e5ebf2;background:#fafbfd}.work-responsible-floating-tooltip{position:fixed;z-index:9999;max-width:240px;padding:7px 9px;border-radius:7px;background:#172536;color:#fff;font-size:11px;font-weight:700;line-height:1.25;white-space:nowrap;pointer-events:none;box-shadow:0 7px 20px rgba(20,33,49,.24)}body:has(.work-responsible-floating-tooltip) .work-responsible-avatar[data-tooltip]:after{display:none!important}@media(max-width:620px){.work-assignee-modal-backdrop.is-visible{align-items:end!important;padding:8px!important}.work-assignee-modal-dialog{width:100%;max-height:calc(100dvh - 16px);border-radius:17px 17px 12px 12px}.work-assignee-modal-footer .btn{flex:1}}

/* Töö vastutajate dialoog */
.work-assignee-modal-dialog{width:min(600px,calc(100vw - 32px));max-height:min(700px,calc(100dvh - 32px));border:0;border-radius:20px;box-shadow:0 30px 90px rgba(15,28,45,.28)}
.work-assignee-modal-dialog,.work-assignee-modal-dialog *{box-sizing:border-box;min-width:0}
.work-assignee-modal-dialog .modal-head{align-items:center;padding:22px 24px 19px;border-bottom:1px solid #e7edf4;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}
.work-assignee-modal-title{display:flex;align-items:center;gap:13px}.work-assignee-modal-title>i{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#eaf2ff;color:#2465b6}.work-assignee-modal-title svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.work-assignee-modal-title h3{margin:2px 0 3px!important;font-size:19px!important}.work-assignee-modal-title p{color:#718096!important;font-size:11px!important}
.work-assignee-modal-dialog .modal-close-x{width:34px;height:34px;border:1px solid #dce4ed;border-radius:10px;background:#fff;color:#718096;font-size:22px}.work-assignee-modal-dialog .modal-close-x:hover{border-color:#cbd7e5;background:#f3f6fa;color:#25364b}
.work-assignee-modal-body{gap:13px;padding:18px 22px 20px;overflow-x:hidden;background:#fff}.work-assignee-modal-body .work-multi-assignee{gap:8px}.work-assignee-modal-body .work-multi-label{color:#53647a;font-size:10px;letter-spacing:.02em}
.work-assignee-modal-body .work-assignee-control{display:flex;width:100%;padding:6px 7px 8px;border:1px solid #d6e0eb;border-radius:13px;background:#fff;box-shadow:none!important}.work-assignee-modal-body .work-assignee-control:focus-within{border-color:#8db0dd;box-shadow:0 0 0 3px rgba(42,105,188,.08)!important}.work-assignee-modal-body .work-assignee-chips{flex:0 0 auto;flex-wrap:nowrap;gap:0;padding:1px 2px 1px 5px}.work-assignee-modal-body .work-assignee-chip{height:29px;padding:5px 9px;font-size:10px}.work-assignee-modal-body .work-responsible-avatar{width:30px;height:30px}.work-assignee-modal-body .work-assignee-search{flex:1 1 220px!important;height:31px!important;min-width:150px!important;padding:2px 7px!important}
.work-assignee-modal-body .work-assignee-popover{flex:1 0 100%;width:100%;margin:5px 0 0;padding:9px 0 0;border-top:1px solid #edf1f5;background:#fff;overflow:hidden}.work-assignee-modal-body .work-assignee-options{width:100%;max-height:300px;padding:0 2px;overflow-x:hidden;overflow-y:auto}.work-assignee-modal-body .work-assignee-group-label{padding:8px 10px 5px;color:#91a0b2;font-size:8px}.work-assignee-modal-body .work-assignee-options label,.work-assignee-modal-body .work-assignee-options button{width:100%;min-height:50px;padding:7px 9px;border-radius:10px}.work-assignee-modal-body .work-assignee-options label:hover,.work-assignee-modal-body .work-assignee-options button:hover{background:#f5f8fc}.work-assignee-modal-body .work-assignee-options label:has(input:checked){background:#edf4ff}.work-assignee-modal-body .work-assignee-avatar{width:34px;height:34px;flex-basis:34px}.work-assignee-modal-body .work-assignee-options strong{color:#2b3c52;font-size:11px}.work-assignee-modal-body .work-assignee-options small{color:#8795a7;font-size:9px}.work-assignee-modal-body .work-assignee-check{width:20px;height:20px}
.work-assignee-modal-body .work-open-assignment{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:10px;width:100%;margin:0;padding:12px 13px;border:1px solid #e1e7ee;border-radius:12px;background:#f8fafc}.work-assignee-modal-body .work-open-assignment:has(input:checked){border-color:#b9d2ee;background:#f1f7ff}.work-assignee-modal-body .work-open-assignment input{width:16px;height:16px;margin:1px 0 0}.work-assignee-modal-body .work-open-assignment strong{color:#32445a;font-size:11px}.work-assignee-modal-body .work-open-assignment small{margin-top:3px;color:#7b899b;font-size:9px;line-height:1.4}
.work-assignee-modal-footer{padding:14px 22px 16px;border-top:1px solid #e7edf4;background:#fafbfd}.work-assignee-modal-footer .btn{min-height:38px;border-radius:9px;padding:0 15px}.work-assignee-modal-footer .btn.primary{box-shadow:0 5px 12px rgba(25,63,214,.18)}
.work-assignee-modal-dialog [data-assignee-option][hidden],.work-assignee-modal-dialog .work-assignee-group-label[hidden]{display:none!important}
.work-assignee-modal-body [data-option-type="organization"].is-selected{background:#edf7f2;color:#245f4b}.work-assignee-modal-body [data-option-type="organization"].is-selected .work-assignee-add{color:#23805f}.work-assignee-modal-body .work-assignee-options label:has(input:checked) .work-assignee-check{display:grid}.work-assignee-modal-body .work-assignee-options label:has(input:checked) strong{color:#215b9d}.work-assignee-modal-body .work-assignee-chip{display:inline-flex;align-items:center;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.responsible-dialog-backdrop{position:fixed;z-index:1600;inset:0;display:grid;place-items:center;padding:18px;background:rgba(19,31,47,.48);backdrop-filter:blur(3px)}.responsible-dialog-backdrop.is-hidden{display:none!important}.responsible-dialog{display:flex;flex-direction:column;width:min(600px,calc(100vw - 30px));max-height:min(720px,calc(100dvh - 28px));overflow:hidden;border-radius:19px;background:#fff;box-shadow:0 30px 90px rgba(13,26,43,.3)}.responsible-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:21px 23px 18px;border-bottom:1px solid #e5ebf2}.responsible-dialog>header span{color:#3471bd;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.responsible-dialog>header h3{margin:3px 0 4px;color:#1d2e43;font-size:20px}.responsible-dialog>header p{margin:0;color:#748296;font-size:11px}.responsible-dialog>header button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #dae3ed;border-radius:10px;background:#fff;color:#66768a;font-size:22px;cursor:pointer}.responsible-dialog-form{display:grid;gap:14px;min-height:0;padding:18px 22px 0;overflow:auto}.responsible-dialog-search,.responsible-dialog-company{display:grid;gap:6px}.responsible-dialog-search>span,.responsible-dialog-company>span{color:#53657b;font-size:10px;font-weight:750}.responsible-dialog-search input,.responsible-dialog-company select{width:100%;height:40px;border:1px solid #d3deea;border-radius:10px;background:#fff}.responsible-dialog-list{display:grid;gap:3px;min-height:120px;max-height:310px;margin:0;padding:8px;border:1px solid #dde5ee;border-radius:12px;overflow:auto}.responsible-dialog-list legend{padding:0 6px;color:#66768b;font-size:10px;font-weight:800}.responsible-dialog-list>label{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) 22px;align-items:center;gap:10px;min-height:52px;padding:7px 9px;border-radius:9px;cursor:pointer}.responsible-dialog-list>label:hover{background:#f4f7fb}.responsible-dialog-list>label:has(input:checked){background:#edf4ff}.responsible-dialog-list input{position:absolute;opacity:0;pointer-events:none}.responsible-dialog-list i{display:grid;place-items:center;width:34px;height:34px;overflow:hidden;border-radius:50%;background:#e9eef5;color:#4e6077;font-size:11px;font-style:normal;font-weight:800}.responsible-dialog-list i img{width:100%;height:100%;object-fit:cover}.responsible-dialog-list span{display:grid;gap:2px}.responsible-dialog-list strong{color:#293a4f;font-size:12px}.responsible-dialog-list small{color:#8491a2;font-size:9px}.responsible-dialog-list b{display:grid;place-items:center;width:20px;height:20px;border:1px solid #d2dce7;border-radius:6px;color:transparent;font-size:11px}.responsible-dialog-list label:has(input:checked) b{border-color:#2869be;background:#2869be;color:#fff}.responsible-dialog-empty{padding:24px;text-align:center;color:#8190a2;font-size:11px}.responsible-dialog-open{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:10px;padding:12px;border:1px solid #e0e7ef;border-radius:11px;background:#f8fafc}.responsible-dialog-open input{width:16px;height:16px;margin:1px 0}.responsible-dialog-open span{display:grid;gap:3px}.responsible-dialog-open strong{color:#34465b;font-size:11px}.responsible-dialog-open small{color:#7d8b9d;font-size:9px}.responsible-dialog-form>footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;margin:2px -22px 0;padding:14px 22px 16px;border-top:1px solid #e5ebf2;background:#fafbfd}@media(max-width:620px){.responsible-dialog-backdrop{align-items:end;padding:8px}.responsible-dialog{width:100%;max-height:calc(100dvh - 16px);border-radius:17px 17px 11px 11px}.responsible-dialog-form>footer .btn{flex:1}}
.work-assignee-modal-backdrop{display:none!important}
.responsible-dialog-companies{min-height:0;max-height:190px}.responsible-dialog-companies i.is-company{border-radius:9px;background:#e5f3ed;color:#267156}.responsible-dialog-companies i.is-empty{border-radius:9px;background:#f0f3f6;color:#7b8796}.responsible-dialog-companies>label:has(input:checked){background:#edf8f3}.responsible-dialog-companies>label:has(input:checked) b{border-color:#278363;background:#278363}
.responsible-dialog{height:min(680px,calc(100dvh - 32px))}.responsible-dialog-form{grid-template-rows:auto auto minmax(0,1fr) auto auto;height:100%;overflow:hidden}.responsible-dialog-list{min-height:0;max-height:none;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.responsible-dialog-form>footer{position:static;margin:0 -22px;padding-bottom:16px}.responsible-selected{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:38px;padding:7px 8px;border:1px solid #e0e7ef;border-radius:10px;background:#f8fafc}.responsible-selected>span{padding:2px 4px;color:#8996a6;font-size:10px}.responsible-selected-chip{display:inline-flex;align-items:center;max-width:210px;padding:6px 9px;border:0;border-radius:999px;background:#e8f1ff;color:#265d9f;font-size:10px;font-weight:750;white-space:nowrap;cursor:pointer}.responsible-selected-chip:hover{background:#d9e9ff}.responsible-selected-chip.is-company{background:#e5f3ed;color:#267156}.responsible-dialog-list i.is-company{border-radius:9px;background:#e5f3ed;color:#267156}@media(max-width:620px){.responsible-dialog{height:calc(100dvh - 16px)}}

.convert-selected-avatar[data-remove-assignee]{overflow:visible}.convert-selected-avatar[data-remove-assignee] img{border-radius:50%}.convert-selected-avatar[data-remove-assignee]:after{content:'×';position:absolute;z-index:4;right:-4px;top:-5px;display:grid;place-items:center;width:14px;height:14px;border:1px solid #fff;border-radius:50%;background:#7d8998;color:#fff;font-size:11px;font-weight:800;line-height:1;opacity:0;transform:scale(.75);transition:opacity .12s,transform .12s}.convert-selected-avatar[data-remove-assignee]:hover:after,.convert-selected-avatar[data-remove-assignee]:focus-visible:after{opacity:1;transform:scale(1)}

.convert-selected-chips{display:flex!important;align-items:center;padding-left:3px}.convert-selected-avatar{position:relative;display:grid;place-items:center;width:30px;height:30px;margin-left:-6px;padding:0;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#dfe9f5;color:#3b5878;font-size:9px;font-weight:850;cursor:pointer;box-shadow:0 1px 3px rgba(29,48,72,.15)}.convert-selected-avatar:first-child{margin-left:0}.convert-selected-avatar:hover{z-index:3;transform:translateY(-1px)}.convert-selected-avatar.is-company{background:#dcefe7;color:#276e56}.convert-selected-avatar img{width:100%;height:100%;object-fit:cover}.work-responsible-display{display:flex;align-items:center;gap:10px!important}.work-responsible-avatars{display:flex;align-items:center;padding-left:5px}.work-responsible-avatar{position:relative;display:grid;place-items:center;width:32px;height:32px;margin-left:-7px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#dfe8f3;color:#3b5775;font-size:10px;font-weight:850;box-shadow:0 1px 4px rgba(29,48,72,.18)}.work-responsible-avatar:first-child{margin-left:0}.work-responsible-avatar:hover{z-index:3;transform:translateY(-1px)}.work-responsible-avatar.is-company{background:#dcefe7;color:#276e56}.work-responsible-avatar img{width:100%;height:100%;object-fit:cover}.work-responsible-open-note{color:#68788b;font-size:10px;font-weight:650}

.order-convert-dialog [data-convert-option][hidden]{display:none!important}.order-convert-dialog .convert-picker-empty.is-hidden{display:none!important}
.order-convert-dialog .convert-picker-avatar{overflow:hidden}.order-convert-dialog .convert-picker-avatar img{width:100%;height:100%;object-fit:cover}
.order-convert-dialog .convert-picker-option{grid-template-columns:34px 1fr}.convert-picker-input{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:40px;padding:4px 8px;border:1px solid #ccd6e2;border-radius:10px;background:#fff;transition:border-color .15s,box-shadow .15s}.convert-picker-input:focus-within{border-color:#6e9bd4;box-shadow:0 0 0 3px rgba(45,111,192,.11)}.convert-picker-input>input{flex:1 1 190px;min-width:150px;height:30px!important;padding:0 4px!important;border:0!important;outline:0!important;box-shadow:none!important}.convert-selected-chips{display:contents}.convert-selected-chip{display:inline-flex;align-items:center;gap:4px;max-width:190px;padding:5px 6px 5px 9px;border-radius:7px;background:#eaf2ff;color:#275c9c;font-size:10px;font-weight:750;white-space:nowrap}.convert-selected-chip button{display:grid;place-items:center;width:16px;height:16px;padding:0;border:0;border-radius:4px;background:transparent;color:#6685ab;font-size:14px;line-height:1;cursor:pointer}.convert-selected-chip button:hover{background:#d3e4fb;color:#244f84}.order-convert-dialog .convert-picker-check{display:none!important}
.order-convert-dialog .convert-picker-group[hidden]{display:none!important}

.order-convert-form .convert-open-option{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;margin:0 20px 14px!important;padding:13px 2px 0!important;border:0!important;border-top:1px solid #e7ecf2!important;border-radius:0!important;background:transparent!important}.order-convert-form .convert-open-option>span{display:grid;gap:2px}.order-convert-form .convert-open-option strong{font-size:12px;color:#314258}.order-convert-form .convert-open-option small{font-size:10px;color:#8490a0}.order-convert-form .convert-open-option>input{position:relative;flex:0 0 auto;width:34px;height:20px;margin:0;appearance:none;border:0;border-radius:999px;background:#cbd4df;cursor:pointer;transition:background .16s}.order-convert-form .convert-open-option>input:before{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(25,42,65,.25);transition:transform .16s}.order-convert-form .convert-open-option>input:checked{background:#2869be}.order-convert-form .convert-open-option>input:checked:before{transform:translateX(14px)}.order-convert-form .convert-open-option:has(input:checked){border-color:#e7ecf2!important;background:transparent!important}

.modal-dialog.order-convert-dialog{width:min(590px,calc(100vw - 28px))!important;max-height:min(680px,calc(100vh - 28px))!important;padding:0!important;overflow:hidden!important;border-radius:17px!important}.order-convert-dialog .modal-head{padding:20px 22px 17px;border-bottom:1px solid #e7ecf2}.convert-step-label{color:#3972b8;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.order-convert-dialog .modal-head h3{margin:4px 0 0;font-size:19px}.order-convert-form{display:grid!important;gap:0!important}.convert-picker-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;padding:17px 20px 12px}.convert-picker-head label{display:grid;flex:1;gap:6px}.convert-picker-head label>span{color:#526176;font-size:10px;font-weight:750}.convert-picker-head input{height:38px;border-radius:10px}.convert-selected-count{padding-bottom:11px;color:#65758a;font-size:10px;font-weight:750;white-space:nowrap}.convert-picker-list{max-height:294px;padding:0 12px 10px;overflow:auto;overscroll-behavior:contain}.convert-picker-group{display:grid;gap:2px}.convert-picker-group+.convert-picker-group{margin-top:9px;padding-top:9px;border-top:1px solid #edf0f4}.convert-picker-group-title{padding:5px 8px;color:#8793a2;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.convert-picker-option{position:relative;display:grid;grid-template-columns:34px 1fr 24px;align-items:center;gap:10px;padding:8px;border-radius:10px;cursor:pointer}.convert-picker-option:hover{background:#f5f8fc}.convert-picker-option:has(input:checked){background:#edf4ff}.convert-picker-option input{position:absolute;opacity:0;pointer-events:none}.convert-picker-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e8eef6;color:#425b78;font-size:11px;font-weight:850}.convert-picker-avatar.is-company{background:#e9f3ef;color:#247156}.convert-picker-copy{display:grid;gap:1px;min-width:0}.convert-picker-copy strong{overflow:hidden;color:#26374c;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.convert-picker-copy small{overflow:hidden;color:#8994a3;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.convert-picker-check{display:grid;place-items:center;width:20px;height:20px;border:1px solid #d6dee8;border-radius:6px;color:transparent;font-size:11px}.convert-picker-option:has(input:checked) .convert-picker-check{border-color:#2869be;background:#2869be;color:#fff}.convert-picker-empty{margin:20px;text-align:center;color:#7a8797;font-size:11px}.convert-open-option{margin:0 20px 16px!important;padding:11px 12px!important;border:1px solid #dde5ee!important;border-radius:11px!important;background:#f8fafc!important}.convert-open-option:has(input:checked){border-color:#e3bd60!important;background:#fff9e9!important}.convert-footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid #e7ecf2;background:#fafbfd}@media(max-width:620px){.convert-picker-head{align-items:stretch;flex-direction:column}.convert-selected-count{padding:0}.convert-picker-list{max-height:250px}}

.notification-detail-actions>span{flex:1}.notification-detail-delete{margin-right:auto}
.order-convert-dialog{width:min(720px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));overflow:auto;border-radius:18px}.order-convert-dialog .modal-head p{margin:5px 0 0;color:#6a788b;font-size:12px}.order-convert-form{display:grid;gap:18px}.convert-assignee-intro p{margin:5px 0 0;color:#6b7889;font-size:12px}.convert-assignee-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.convert-assignee-groups fieldset{min-width:0;max-height:270px;margin:0;padding:10px;border:1px solid #dfe7f0;border-radius:12px;overflow:auto}.convert-assignee-groups legend{padding:0 5px;color:#526379;font-size:11px;font-weight:800}.convert-assignee-option,.convert-open-option{display:flex;align-items:flex-start;gap:10px;padding:9px;border-radius:9px;cursor:pointer}.convert-assignee-option:hover{background:#f4f7fb}.convert-assignee-option input,.convert-open-option input{margin-top:3px}.convert-assignee-option span,.convert-open-option span{display:grid;gap:2px}.convert-assignee-option strong,.convert-open-option strong{font-size:12px;color:#26374c}.convert-assignee-option small,.convert-open-option small{font-size:10px;color:#8793a2}.convert-open-option{border:1px solid #eed394;background:#fffaf0}.order-convert-form .form-actions{margin:0;padding-top:4px}@media(max-width:680px){.convert-assignee-groups{grid-template-columns:1fr}}
.app-notification-menu{max-height:min(520px,calc(100vh - 90px));overflow-y:auto!important;overscroll-behavior:contain}.app-notification-menu>header{position:sticky;z-index:2;top:0}.app-notification-all{position:sticky;bottom:0}

.app-notification-item{width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}.app-notification-all{display:block;padding:11px 14px;background:#fafcff;color:#2862ae;text-align:center;text-decoration:none;font-size:11px;font-weight:750;border-top:1px solid #e7edf5}.app-notification-all:hover{background:#f0f6ff}.notification-detail-backdrop{z-index:1200}.notification-detail-dialog{width:min(520px,calc(100vw - 32px));border-radius:18px;overflow:hidden}.notification-detail-dialog .modal-head{align-items:flex-start;padding:22px 24px}.notification-detail-dialog h3{margin:5px 0 0;font-size:20px;color:#17263b}.notification-detail-kicker{color:#3972b8;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.notification-detail-body{padding:22px 24px}.notification-detail-body p{margin:0;color:#3f5066;font-size:14px;line-height:1.65;white-space:pre-wrap}.notification-detail-body time{display:block;margin-top:20px;color:#8a97a8;font-size:11px}.notification-detail-actions{display:flex;justify-content:flex-end;gap:9px;padding:15px 24px;border-top:1px solid #e7edf4;background:#fafcff}.notifications-page{max-width:1180px;margin:0 auto;padding:34px 28px 60px}.notifications-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid #dfe6ef}.notifications-page-head h1{margin:4px 0 8px;font-size:28px;color:#18283d}.notifications-page-head p:not(.page-eyebrow){max-width:700px;margin:0;color:#6c798b;font-size:13px;line-height:1.55}.page-eyebrow{margin:0;color:#3972b8;font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.notifications-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0}.notifications-toolbar nav{display:flex;gap:4px}.notifications-toolbar nav a{padding:8px 12px;border-radius:8px;color:#647286;text-decoration:none;font-size:12px;font-weight:700}.notifications-toolbar nav a:hover{background:#eef3f8}.notifications-toolbar nav a.is-active{background:#e9f1ff;color:#1e5ca9}.notifications-search{display:flex;gap:7px}.notifications-search input{width:min(300px,32vw);height:36px}.notifications-list{border-top:1px solid #e2e8f0}.notifications-list-row{position:relative;display:flex;border-bottom:1px solid #e2e8f0;transition:background .15s}.notifications-list-row:hover{background:#f8fafc}.notifications-list-row.is-unread{background:#f3f7ff}.notifications-list-main{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:14px;width:100%;padding:16px 50px 16px 12px;border:0;background:transparent;text-align:left;cursor:pointer}.notifications-type-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eaf2ff;color:#2862ae;font-size:13px;font-weight:800}.notifications-copy{display:grid;gap:3px;min-width:0}.notifications-copy strong{color:#23354c;font-size:13px}.notifications-copy>span{overflow:hidden;color:#657489;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.notifications-copy time{color:#98a3b2;font-size:10px}.notifications-unread-label{padding:4px 7px;border-radius:999px;background:#dbeaff;color:#245da6;font-size:9px;font-weight:800}.notifications-list-row>form{position:absolute;right:10px;top:50%;margin:0;transform:translateY(-50%)}.notifications-list-row>form button{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#9aa5b4;font-size:20px;cursor:pointer}.notifications-list-row>form button:hover{background:#feecee;color:#bf3039}.notifications-zero{padding:60px 20px;text-align:center;color:#6f7c8d}.notifications-zero strong{color:#2a3a50}.notifications-zero p{margin:6px 0 0;font-size:12px}@media(max-width:720px){.notifications-page{padding:24px 16px}.notifications-page-head,.notifications-toolbar{align-items:stretch;flex-direction:column}.notifications-toolbar nav{overflow-x:auto}.notifications-search input{width:100%}.notifications-list-main{grid-template-columns:34px 1fr;padding-left:4px}.notifications-unread-label{display:none}}

.app-notification-menu>header>div{display:flex;align-items:center;gap:7px}.app-notification-menu>header form{margin:0}.app-notification-menu>header button{padding:5px 7px;border:0;background:transparent;color:#2862ae;font:inherit;font-size:10px;font-weight:700;cursor:pointer}.app-notification-row{position:relative;border-bottom:1px solid #eef1f5;background:#fff}.app-notification-row:last-child{border-bottom:0}.app-notification-row:hover{background:#f6f9fc}.app-notification-row.is-unread{background:#f2f7ff}.app-notification-row.is-unread:before{content:'';position:absolute;z-index:1;left:7px;top:18px;width:5px;height:5px;border-radius:50%;background:#2871d4}.app-notification-row .app-notification-item{padding-right:42px;border-bottom:0;background:transparent}.app-notification-row>form{position:absolute;right:8px;top:8px;margin:0}.app-notification-delete{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:7px;background:transparent;color:#9aa5b4;font-size:18px;cursor:pointer}.app-notification-delete:hover{background:#feecee;color:#bf3039}
/* Work defaults */
.work-defaults-page{max-width:1040px;margin:0 auto;padding:30px 24px 52px}.work-defaults-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding-bottom:24px;border-bottom:1px solid #dfe6ef}.work-defaults-eyebrow{margin:0 0 7px;color:#315bdf;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.work-defaults-intro h1{margin:0;color:#172437;font-size:28px;line-height:1.2}.work-defaults-intro p:not(.work-defaults-eyebrow){max-width:650px;margin:8px 0 0;color:#627087;line-height:1.55}.work-defaults-status{display:inline-flex;align-items:center;gap:8px;flex:none;margin-top:5px;padding:7px 11px;border:1px solid #ccebdd;border-radius:999px;background:#f2fbf7;color:#147453;font-size:12px;font-weight:700}.work-defaults-status span{width:7px;height:7px;border-radius:50%;background:#1aad75}.work-defaults-form{padding-top:4px}.work-defaults-section{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:42px;padding:30px 0;border-bottom:1px solid #dfe6ef}.work-defaults-section-title{display:flex;align-items:flex-start;gap:12px}.work-defaults-section-title h2{margin:1px 0 5px;color:#1d2b3d;font-size:17px}.work-defaults-section-title p{margin:0;color:#708096;font-size:13px;line-height:1.5}.work-defaults-icon{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:9px;background:#eef3ff;color:#2856d9;font-size:18px;font-weight:800}.work-defaults-options{display:grid;gap:12px}.work-defaults-toggle{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:70px;padding:15px 17px;border:1px solid #d9e2ee;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}.work-defaults-toggle:hover{border-color:#a9bce8;box-shadow:0 4px 16px rgba(35,61,110,.06)}.work-defaults-toggle span{display:grid;gap:4px}.work-defaults-toggle strong{color:#213046;font-size:14px}.work-defaults-toggle small,.work-defaults-grid .field>small{color:#718096;font-size:12px;line-height:1.45}.work-defaults-toggle input[role=switch]{width:42px;height:24px;flex:none;appearance:none;border:0;border-radius:999px;background:#c9d2df;cursor:pointer;position:relative;transition:.18s}.work-defaults-toggle input[role=switch]:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(22,35,55,.24);transition:.18s}.work-defaults-toggle input[role=switch]:checked{background:#2457e6}.work-defaults-toggle input[role=switch]:checked:before{transform:translateX(18px)}.work-defaults-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.work-defaults-grid .field{display:grid;align-content:start;gap:7px;margin:0}.work-defaults-grid .field label{color:#33445b;font-size:12px;font-weight:750}.work-defaults-grid .field select,.work-defaults-grid .field input{height:43px;border:1px solid #ced8e5;border-radius:9px;background:#fff}.work-defaults-grid .span-all{grid-column:1/-1}.work-defaults-input-suffix{display:flex;align-items:center;border:1px solid #ced8e5;border-radius:9px;background:#fff;overflow:hidden}.work-defaults-input-suffix:focus-within{border-color:#4775ea;box-shadow:0 0 0 3px rgba(57,102,225,.1)}.work-defaults-input-suffix input{min-width:0;flex:1;border:0!important;border-radius:0!important;box-shadow:none!important}.work-defaults-input-suffix span{padding:0 13px;color:#708096;font-size:12px;border-left:1px solid #e2e8f0}.work-defaults-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px}.work-defaults-actions p{margin:0;color:#718096;font-size:12px}.work-defaults-actions .btn{min-width:180px}.checkbox-inline+small{display:block;margin:5px 0 0 25px;color:#718096}@media(max-width:760px){.work-defaults-page{padding:20px 16px 40px}.work-defaults-intro{display:block}.work-defaults-status{margin-top:15px}.work-defaults-section{grid-template-columns:1fr;gap:18px}.work-defaults-grid{grid-template-columns:1fr}.work-defaults-grid .span-all{grid-column:auto}.work-defaults-actions{align-items:stretch;flex-direction:column}.work-defaults-actions .btn{width:100%}}

/* New work dialog */
.work-create-dialog{width:min(760px,calc(100vw - 28px))!important;max-height:min(820px,calc(100dvh - 28px))!important;overflow:hidden!important;border:0!important;border-radius:20px!important;box-shadow:0 28px 90px rgba(15,28,45,.3)!important}.work-create-head{align-items:center;padding:19px 22px!important;border-bottom:1px solid #e5ebf2;background:linear-gradient(180deg,#fff,#fbfcfe)}.work-create-head .modal-head-left{display:flex;align-items:center;gap:13px}.work-create-head-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e9f0ff;color:#2358df;font-size:24px}.work-create-head p{margin:0 0 1px;color:#4472c5;font-size:9px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.work-create-head h3{margin:0!important;color:#1d2b3d;font-size:20px!important}.work-create-head small{display:block;margin-top:2px;color:#7a8798;font-size:11px}.work-create-body{padding:0!important;overflow:auto!important;background:#fff}.work-create-body .client-modal-form{display:block}.work-create-section{padding:20px 22px;border-bottom:1px solid #e8edf3}.work-create-section-head{display:flex;align-items:center;gap:10px;margin-bottom:15px}.work-create-section-head>span{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#edf3ff;color:#2c5ed7;font-size:11px;font-weight:850}.work-create-section-head>div{display:grid;gap:1px}.work-create-section-head strong{color:#24344a;font-size:13px}.work-create-section-head small{color:#8692a1;font-size:10px}.work-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 15px}.work-create-grid.cols-3{grid-template-columns:repeat(3,1fr)}.work-create-grid .span-all{grid-column:1/-1}.work-create-grid .field{display:grid;gap:6px;margin:0}.work-create-grid .field label{color:#526176;font-size:10px;font-weight:750}.work-create-grid input,.work-create-grid select,.work-create-grid textarea{border-color:#d4dde8!important;border-radius:9px!important;background:#fff!important}.work-create-grid input,.work-create-grid select{height:40px!important}.work-create-grid textarea{min-height:78px;resize:vertical}.work-create-grid input::placeholder,.work-create-grid textarea::placeholder{color:#a4afbc}.optional-label{margin-left:4px;color:#98a3b1;font-weight:500}.work-create-service{display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:9px;background:#f6f8fb;color:#768497;font-size:10px}.work-create-service strong{color:#3d4e64;font-size:11px}.work-create-service small{margin-left:auto;color:#98a3b1}.work-create-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.work-create-choice{display:grid;grid-template-columns:19px 1fr;align-items:start;gap:10px;padding:12px 13px;border:1px solid #dce4ed;border-radius:11px;background:#fafbfd;cursor:pointer}.work-create-choice:has(input:checked){border-color:#afc5f3;background:#f2f6ff}.work-create-choice input{width:17px;height:17px;margin:1px 0 0;accent-color:#245ce2}.work-create-choice span{display:grid;gap:2px}.work-create-choice strong{color:#2c3c51;font-size:11px}.work-create-choice small{color:#7f8c9d;font-size:10px;line-height:1.4}.work-create-dialog .merit-footer{position:sticky;bottom:0;z-index:2;margin:0;padding:14px 22px!important;border-top:1px solid #e1e7ef;background:rgba(250,251,253,.96);backdrop-filter:blur(8px)}.work-create-dialog .merit-footer .btn.primary{min-width:120px}@media(max-width:700px){.work-create-dialog{width:100%!important;max-height:calc(100dvh - 12px)!important;border-radius:18px 18px 10px 10px!important}.work-create-head{padding:16px!important}.work-create-head small{display:none}.work-create-section{padding:17px 16px}.work-create-grid,.work-create-grid.cols-3,.work-create-choice-grid{grid-template-columns:1fr}.work-create-grid .span-all{grid-column:auto}.work-create-service{align-items:flex-start;flex-wrap:wrap}.work-create-service small{width:100%;margin-left:0}}

.work-create-head{min-height:0!important;padding:13px 18px!important}.work-create-head .modal-head-left{gap:0}.work-create-head h3{font-size:17px!important}.work-create-native-select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0!important;pointer-events:none}.work-create-combobox{position:relative}.work-create-combobox>input{width:100%;padding-right:34px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23718194' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat right 11px center!important}.work-create-combo-results{position:absolute;z-index:20;top:calc(100% + 5px);left:0;right:0;max-height:230px;padding:5px;overflow:auto;border:1px solid #d6dfe9;border-radius:11px;background:#fff;box-shadow:0 14px 36px rgba(25,39,58,.16)}.work-create-combo-option{display:grid;grid-template-columns:30px 1fr 18px;align-items:center;gap:9px;width:100%;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:#2e3d51;text-align:left;cursor:pointer}.work-create-combo-option:hover,.work-create-combo-option:focus{background:#f0f5fc;outline:0}.work-create-combo-option>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eaf0f8;color:#4d617b;font-size:10px;font-weight:850}.work-create-combo-option>strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.work-create-combo-option>b{color:#2460d8}.work-create-combo-empty{margin:0;padding:15px;color:#8390a0;font-size:11px;text-align:center}.work-create-grid .rich-editor{padding:8px;border-radius:10px;box-shadow:none}.work-create-grid .rich-editor-surface{min-height:105px;padding:6px}.work-create-grid .rich-editor-toolbar{gap:5px;padding-bottom:7px}.work-create-grid .rich-editor-toolbar-group{gap:4px}.work-create-grid .rich-editor-tool{min-width:30px;height:28px;padding:0 7px;border-radius:7px;font-size:10px}.order-create-modal-head{min-height:0!important;padding:13px 18px!important}.order-create-modal-title-stack h3{font-size:17px!important}.order-create-modal-actions .btn{height:34px;padding:0 13px}.order-create-modal{border-radius:20px!important;box-shadow:0 28px 90px rgba(15,28,45,.3)!important}

.work-create-head .modal-head-actions .btn{height:34px;padding:0 13px}.work-create-dialog .work-create-section:last-child{border-bottom:0}

.work-create-tabs{position:sticky;top:0;z-index:12;padding:0 18px;background:#fff}.work-create-tab-panel[hidden]{display:none!important}.work-create-grid .rich-editor-surface{min-height:150px}.work-create-responsibles{display:grid;gap:12px}.work-create-responsible-search{display:grid;gap:6px;color:#526176;font-size:10px;font-weight:750}.work-create-responsible-search input{height:40px;border:1px solid #d4dde8;border-radius:9px;padding:0 12px}.work-create-selected{display:flex;align-items:center;gap:6px;min-height:42px;padding:7px 9px;overflow:auto;border:1px dashed #d5deea;border-radius:10px;background:#fafbfd;color:#8190a2;font-size:10px}.work-create-selected-chip{flex:none;padding:6px 9px;border:1px solid #cbdcf5;border-radius:999px;background:#edf4ff;color:#285da7;font-size:10px;font-weight:750;cursor:pointer}.work-create-selected-chip.is-company{border-color:#c9e5d9;background:#eef9f4;color:#287157}.work-create-responsible-list{display:grid;max-height:310px;padding:5px;overflow:auto;border:1px solid #dce4ed;border-radius:12px}.work-create-responsible-list>label{position:relative;display:grid;grid-template-columns:34px 1fr 22px;align-items:center;gap:10px;padding:8px;border-radius:9px;cursor:pointer}.work-create-responsible-list>label:hover{background:#f5f8fc}.work-create-responsible-list>label:has(input:checked){background:#edf4ff}.work-create-responsible-list input{position:absolute;opacity:0;pointer-events:none}.work-create-responsible-list i{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#e8eef6;color:#4a5e76;font-size:10px;font-style:normal;font-weight:850}.work-create-responsible-list i.is-company{background:#e8f5ef;color:#247157}.work-create-responsible-list label>span{display:grid;gap:2px;min-width:0}.work-create-responsible-list label strong{overflow:hidden;color:#2a3a4e;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.work-create-responsible-list label small{overflow:hidden;color:#8592a2;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.work-create-responsible-list label>b{display:grid;place-items:center;width:20px;height:20px;border:1px solid #d4dde8;border-radius:6px;color:transparent;font-size:10px}.work-create-responsible-list label:has(input:checked)>b{border-color:#2867bd;background:#2867bd;color:#fff}.work-create-responsible-empty{margin:0;padding:22px;color:#8190a2;font-size:11px;text-align:center}@media(max-width:700px){.work-create-tabs{padding:0 10px;overflow-x:auto}.work-create-tabs .order-create-tab{flex:none}.work-create-responsible-list{max-height:260px}}

/* Keep the work creation dialog stable while switching tabs. */
.work-create-dialog{display:flex!important;flex-direction:column!important;height:min(760px,calc(100dvh - 28px))!important;max-height:calc(100dvh - 28px)!important}.work-create-dialog>.work-create-head{flex:0 0 auto}.work-create-dialog>.work-create-body{flex:1 1 auto;min-height:0;overflow-y:auto!important}.work-create-dialog #workCreateForm{min-height:100%}.work-create-dialog .work-create-tab-panel{min-height:570px}@media(max-height:700px){.work-create-dialog{height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important}.work-create-dialog .work-create-tab-panel{min-height:calc(100dvh - 125px)}}@media(max-width:700px){.work-create-dialog{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important}.work-create-dialog .work-create-tab-panel{min-height:calc(100dvh - 120px)}}

.work-create-dialog{width:min(920px,calc(100vw - 28px))!important;height:min(780px,calc(100dvh - 28px))!important}.work-create-section{padding:24px 28px}.work-create-stage-heading{justify-content:space-between}.work-create-stage-list{display:grid;gap:8px}.work-create-stage-empty{display:grid;place-items:center;gap:5px;min-height:210px;border:1px dashed #d6dfe9;border-radius:13px;background:#fafbfd;color:#8794a4;text-align:center}.work-create-stage-empty strong{color:#4a5a6e;font-size:12px}.work-create-stage-empty span{font-size:10px}.work-create-stage-card{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:11px;padding:10px 12px;border:1px solid #dce4ed;border-radius:11px;background:#fff}.work-create-stage-card>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eef3fb;color:#45607e;font-size:10px;font-weight:850}.work-create-stage-card>div{display:grid;gap:2px}.work-create-stage-card strong{color:#29394d;font-size:11px}.work-create-stage-card small{color:#8491a1;font-size:9px}.work-create-stage-card button{border:0;background:transparent;color:#a64242;font-size:9px;font-weight:700;cursor:pointer}.work-create-stage-editor{margin-top:14px;padding:16px;border:1px solid #cfdae7;border-radius:13px;background:#fafbfd}.work-create-stage-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.work-create-tabs .order-create-tab span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:#e8eef8;color:#526783;font-size:9px}@media(max-width:700px){.work-create-dialog{width:100%!important}.work-create-section{padding:18px 16px}.work-create-stage-heading{align-items:flex-start;gap:12px}.work-create-stage-empty{min-height:160px}}

.work-create-dialog [data-work-create-panel="planning"]{min-height:0}.work-create-dialog [data-work-create-panel="planning"]:nth-of-type(3){padding-bottom:16px;border-bottom:0}.work-create-dialog [data-work-create-panel="planning"]:nth-of-type(4){padding-top:16px;min-height:330px}

.work-create-choice-grid-single{grid-template-columns:1fr}.work-create-visibility-choice{margin-top:2px;background:#f8fafc}.work-create-visibility-choice:has(input:checked){border-color:#b8ccef;background:#f1f6ff}

/* Catalog title and count on one quiet baseline */
body.page-service_types .topbar-main{align-items:baseline;gap:9px}body.page-service_types .topbar-title-meta{display:inline-flex}.service-catalog-title-count{color:#7a8798;font-size:11px;font-weight:600;white-space:nowrap}

/* Catalog header: views left, primary action right */
.service-catalog-primary-tabs{align-items:flex-end;justify-content:space-between;gap:20px}.service-catalog-tab-links{display:flex;align-items:flex-end;gap:22px;min-width:0}.service-catalog-tab-actions{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;padding:0 0 8px}.service-registry-shell>.registry-top-actions-host{display:none!important}@media(max-width:620px){.service-catalog-primary-tabs{align-items:stretch;flex-direction:column;gap:8px}.service-catalog-tab-links{overflow-x:auto}.service-catalog-tab-actions{width:100%;padding:0 0 10px}.service-catalog-tab-actions .btn{width:100%}}

/* Cleaner group table interactions */
.service-group-chevron{width:28px;color:#8290a2;font-size:20px;text-align:right}.service-group-row:hover .service-group-chevron{color:#245dd0;transform:translateX(2px)}.service-group-dialog footer span{flex:1}.service-group-dialog [data-group-toggle].is-hidden{display:none}

/* Service catalog navigation and groups */
.service-catalog-primary-tabs{display:flex;gap:22px;margin:-4px 0 16px;border-bottom:1px solid var(--line)}.service-catalog-primary-tabs .order-detail-tab{display:inline-flex;text-decoration:none}.service-group-row.is-archived{opacity:.6}.service-group-actions{display:flex;justify-content:flex-end;gap:5px;white-space:nowrap}.service-group-actions form{margin:0}.service-group-dialog{width:min(580px,calc(100vw - 28px))!important;border-radius:16px!important;overflow:hidden}.service-group-dialog .modal-head{padding:17px 19px;border-bottom:1px solid #e3e9f0}.service-group-dialog .modal-head h3{margin:0;font-size:17px}.service-group-dialog .modal-head p{margin:4px 0 0;color:#7f8d9e;font-size:10px}.service-group-dialog>form{display:grid;gap:16px;padding:19px}.service-group-dialog>form>footer{display:flex;justify-content:flex-end;gap:8px;margin:0 -19px -19px;padding:13px 19px;border-top:1px solid #e3e9f0;background:#fafbfd}

/* Simplified service card */
.service-card-back{display:inline-flex;align-items:center;flex:none;color:#536b8c;font-size:10px;font-weight:750;text-decoration:none;white-space:nowrap}.service-card-back:hover{color:#245dd0}.service-section-head{align-items:flex-start}.service-section-head h2{margin-bottom:4px}.service-section-head p{margin:0}.client-tab-panel[data-service-panel="general"],.client-tab-panel[data-service-panel="pricing"],.client-tab-panel[data-service-panel="defaults"],.client-tab-panel[data-service-panel="usage"]{padding:16px}.service-pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:820px!important}.service-inline-switch{max-width:520px;margin-top:18px}@media(max-width:760px){.service-pricing-grid{grid-template-columns:1fr}.service-card-back{padding:5px 0}}

/* Service registry and service card */
.service-registry-shell{padding-top:4px}.service-registry-filters{display:flex!important;align-items:center;gap:9px;margin:0 0 10px;padding:0;background:transparent;border:0}.service-registry-filters .search{width:min(440px,100%)}.service-registry-filters select{width:155px;height:36px}.service-registry-filters .badge{margin-left:auto}.service-registry-table{overflow-x:auto!important}.service-registry-table table{min-width:900px}.service-registry-table th,.service-registry-table td{padding:10px 8px!important}.service-registry-table th{color:#66768a;font-size:10px}.service-registry-table td{color:#405168;font-size:11px}.service-registry-row.is-archived{opacity:.6}.service-registry-row .row-link{font-weight:750}.service-default-note{display:inline-flex;margin-left:7px;padding:3px 6px;border-radius:999px;background:#e8f1ff;color:#275fc7;font-size:8px;font-weight:800}.service-table-empty{padding:52px!important;color:#8390a1!important;text-align:center}.service-card-topbar .order-topbar-controls{gap:10px}.service-card-topbar .order-detail-tabs{flex:1}.service-card-topbar .registry-primary-actions,.service-card-topbar .registry-primary-actions form{display:flex;gap:8px;margin:0}.service-card-topbar+.order-tab-panel{margin-top:12px}.service-overview-panel>.panel-head{align-items:flex-start}.service-overview-panel>.panel-head h2{margin-bottom:4px}.service-overview-panel>.panel-head p{margin:0;max-width:700px}.service-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.service-summary-grid article{display:grid;gap:4px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff}.service-summary-grid span{color:#728096;font-size:9px;font-weight:750;text-transform:uppercase}.service-summary-grid strong{color:#25364b;font-size:19px}.service-summary-grid small{color:#8995a5;font-size:9px}.client-tab-panel[data-service-panel="details"],.client-tab-panel[data-service-panel="defaults"],.client-tab-panel[data-service-panel="usage"]{padding:16px}.client-tab-panel[data-service-panel] .service-form-grid{max-width:1050px}.service-card-archive{margin-top:18px}@media(max-width:760px){.service-registry-filters{align-items:stretch;flex-direction:column}.service-registry-filters .search,.service-registry-filters select{width:100%}.service-registry-filters .badge{margin-left:0}.service-card-topbar .order-topbar-controls{align-items:stretch;flex-direction:column}.service-card-topbar .order-detail-tabs{overflow-x:auto}.service-card-topbar .registry-primary-actions{justify-content:flex-end}.service-summary-grid{grid-template-columns:1fr}}

/* Uue töö vormi kiirlisamine */
.work-create-combo-option > .work-create-combo-copy { display: grid; place-items: initial; gap: 1px; width: auto; height: auto; min-width: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; }
.work-create-combo-option.is-property { grid-template-columns: minmax(0, 1fr) 18px; padding: 8px 10px; }
.work-create-combo-option { grid-template-columns: minmax(0, 1fr) 18px; padding: 8px 10px; }
.work-create-combo-copy strong { overflow: hidden; color: #2e3d51; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.work-create-combo-copy small { overflow: hidden; color: #8794a5; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.work-draft-resumed {
  margin: 10px 18px 0;
  padding: 9px 11px;
  border: 1px solid #bdd5f6;
  border-radius: 9px;
  background: #eef6ff;
  color: #285d9e;
  font-size: 11px;
  font-weight: 700;
}
.work-draft-bar {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 360px;
  padding: 10px 11px 10px 14px;
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 42, 68, .16);
}
.work-draft-bar > div { display: grid; gap: 1px; margin-right: auto; }
.work-draft-bar strong { color: #26384e; font-size: 12px; }
.work-draft-bar span { color: #7b899b; font-size: 10px; }
.work-draft-bar .btn { height: 32px; padding-inline: 10px; font-size: 10px; }
@media (max-width: 600px) {
  .work-draft-bar { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
}
.work-create-combo-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-top: 1px solid #e8edf3;
  background: #f8faff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.work-create-combo-add:hover { background: #eef3ff; }
.work-create-combo-add:disabled { color: #8d99aa; cursor: wait; }

/* Töös oleva töö rea eristus */
.work-orders-table-wrap tbody tr[data-status="in_progress"] > td {
  background: #edf9f1;
}
.work-orders-table-wrap tbody tr[data-status="in_progress"]:hover > td {
  background: #e2f5e9;
}
.work-orders-table-wrap tbody tr[data-status="in_progress"].is-selected > td {
  background: #d8efe1;
}

/* Detailkaardi keskne kirjete navigeerimine */
.record-step-navigation>.record-step-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--primary-dark);
  background: var(--primary);
  box-shadow: 0 2px 5px rgba(0, 0, 240, .2);
}
.record-step-navigation>.record-step-list:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: 0 3px 7px rgba(0, 0, 200, .24);
}
.record-step-navigation>.record-step-list i {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 1.5px;
  margin: 0;
  border-radius: 3px;
  background: #fff;
}

/* Service catalog registry overrides */
.service-catalog-layout.is-table-view,.service-catalog-layout.is-detail-view{display:block!important}.service-catalog-layout.is-table-view{min-height:560px}.service-catalog-layout.is-table-view .service-catalog-list{min-height:560px;border:0}.service-catalog-layout.is-table-view .service-catalog-scroll{max-height:620px}.service-catalog-layout.is-table-view .service-catalog-columns,.service-catalog-layout.is-table-view .service-catalog-row{grid-template-columns:minmax(230px,2fr) 90px minmax(120px,1fr) 70px 105px 90px 105px!important}.service-catalog-layout.is-table-view .service-catalog-columns{min-width:900px;padding:11px 16px;background:#f5f8fc}.service-catalog-layout.is-table-view .service-catalog-row{min-width:900px;min-height:62px;padding:10px 16px;background:#fff}.service-catalog-layout.is-table-view .service-catalog-row:hover{background:#f5f8fd}.service-catalog-layout.is-detail-view{min-height:650px}.service-catalog-layout.is-detail-view .service-catalog-detail{min-height:650px;padding-top:46px}.service-detail-back{position:absolute;top:14px;left:20px;display:inline-flex;align-items:center;gap:5px;color:#526b8d;font-size:10px;font-weight:750;text-decoration:none}.service-detail-back:hover{color:#245dd0}.service-detail-back .material-symbols-outlined{font-size:16px}.service-state{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:8px;font-weight:800}.service-state.active{background:#e7f7ef;color:#147251}.service-state.archived{background:#edf0f4;color:#69778a}

/* Service type settings */
.service-types-page{max-width:1100px;margin:0 auto;padding:28px 24px 50px}.service-types-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:22px;border-bottom:1px solid #e0e6ee}.service-types-header p{margin:0 0 7px;color:#54709a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.service-types-header h1{margin:0;color:#1d2b3d;font-size:27px}.service-types-header span{display:block;margin-top:7px;color:#748296;font-size:13px}.service-types-summary{display:flex;align-items:center;gap:7px;padding:18px 2px;color:#768599;font-size:11px}.service-types-summary strong{color:#24354a;font-size:17px}.service-types-summary i{width:1px;height:19px;margin:0 8px;background:#dce3ec}.service-types-list{display:grid;gap:9px}.service-type-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;padding:15px 17px;border:1px solid #dae3ed;border-radius:13px;background:#fff}.service-type-row.is-archived{background:#fafbfc;opacity:.72}.service-type-main{display:flex;align-items:center;gap:12px;min-width:0}.service-type-mark{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;background:#eaf1ff;color:#315fc1;font-size:12px;font-weight:850}.service-type-title{display:flex;align-items:center;gap:7px}.service-type-title h2{margin:0;color:#26364a;font-size:14px}.service-type-title b{padding:3px 6px;border-radius:999px;background:#e9f7f1;color:#167253;font-size:8px}.service-type-title b.is-muted{background:#edf0f3;color:#748092}.service-type-main p{margin:4px 0 0;color:#8491a1;font-size:10px}.service-type-actions{display:flex;align-items:center;gap:6px}.service-type-actions form{margin:0}.danger-text{color:#a34444!important}.service-type-edit{grid-column:1/-1;display:grid;grid-template-columns:1fr 180px 1.2fr auto;align-items:end;gap:13px;margin-top:2px;padding:15px;border-top:1px solid #e6ebf1;background:#fafbfd;border-radius:0 0 10px 10px}.service-type-edit .field{display:grid;gap:5px;margin:0}.service-type-edit label,.service-create-form .field label{color:#526176;font-size:10px;font-weight:750}.service-type-edit input,.service-create-form input{height:40px;border:1px solid #d1dbe7;border-radius:9px}.service-type-check{display:grid;grid-template-columns:18px 1fr;align-items:start;gap:9px;padding:9px 11px;border:1px solid #dce4ed;border-radius:10px;background:#fff;cursor:pointer}.service-type-check input{width:16px;height:16px;margin:2px 0 0;accent-color:#285ed6}.service-type-check span{display:grid;gap:2px}.service-type-check strong{color:#33445a;font-size:10px}.service-type-check small{color:#8491a1;font-size:9px}.service-type-edit-actions{display:flex;gap:6px}.service-create-dialog{width:min(500px,calc(100vw - 28px))!important;border-radius:18px!important;overflow:hidden}.service-create-dialog .modal-head{padding:18px 20px;border-bottom:1px solid #e4eaf1}.service-create-dialog .modal-head h3{margin:0;font-size:18px}.service-create-dialog .modal-head p{margin:4px 0 0;color:#7b899a;font-size:10px}.service-create-form{display:grid;gap:15px;padding:20px}.service-create-form .field{display:grid;gap:6px}.service-create-form .field small{color:#8794a4;font-size:9px}.service-create-form footer{display:flex;justify-content:flex-end;gap:8px;margin:4px -20px -20px;padding:14px 20px;border-top:1px solid #e5ebf2;background:#fafbfd}@media(max-width:760px){.service-types-page{padding:20px 15px 40px}.service-types-header{align-items:stretch;flex-direction:column}.service-type-row{grid-template-columns:1fr}.service-type-actions{flex-wrap:wrap}.service-type-edit{grid-template-columns:1fr}.service-type-edit-actions{justify-content:flex-end}}

/* Service catalog */
.service-catalog-page{max-width:1420px;margin:0 auto;padding:25px 24px 48px}.service-catalog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.service-catalog-header p{margin:0 0 6px;color:#52719b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.service-catalog-header h1{margin:0;color:#1e2d40;font-size:25px}.service-catalog-header span{display:block;margin-top:5px;color:#758398;font-size:11px}.service-catalog-layout{display:grid;grid-template-columns:minmax(390px,44%) minmax(0,1fr);min-height:650px;border:1px solid #dbe3ed;border-radius:15px;background:#fff;box-shadow:0 8px 25px rgba(32,52,80,.05);overflow:hidden}.service-catalog-list{display:flex;min-width:0;flex-direction:column;border-right:1px solid #dfe6ef;background:#fbfcfe}.service-catalog-tools{display:grid;grid-template-columns:1fr 112px;gap:8px;padding:14px;border-bottom:1px solid #e2e8f0}.service-catalog-tools label{display:flex;align-items:center;gap:7px;height:39px;padding:0 10px;border:1px solid #d1dbe7;border-radius:9px;background:#fff}.service-catalog-tools label .material-symbols-outlined{color:#7b8ca1;font-size:18px}.service-catalog-tools input{width:100%;height:auto;padding:0;border:0;outline:0;background:transparent;font-size:11px}.service-catalog-tools select{height:39px;border:1px solid #d1dbe7;border-radius:9px;background:#fff;font-size:10px}.service-catalog-columns,.service-catalog-row{display:grid;grid-template-columns:minmax(0,1fr) 78px 82px;align-items:center;gap:9px}.service-catalog-columns{padding:9px 14px;border-bottom:1px solid #e4eaf1;color:#7d8a9b;font-size:9px;font-weight:800;text-transform:uppercase}.service-catalog-scroll{max-height:545px;overflow:auto}.service-catalog-row{min-height:59px;padding:9px 14px;border-bottom:1px solid #edf1f5;color:#405169;text-decoration:none;transition:.15s}.service-catalog-row:hover{background:#f2f6fc}.service-catalog-row.is-selected{background:#eaf2ff;box-shadow:inset 3px 0 #2861d4}.service-catalog-row.is-archived{opacity:.58}.service-catalog-row>span:first-child{display:grid;gap:3px;min-width:0}.service-catalog-row strong,.service-catalog-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.service-catalog-row strong{color:#26384e;font-size:11px}.service-catalog-row small{color:#8996a6;font-size:9px}.service-catalog-row>span:nth-child(n+2){font-size:10px}.service-catalog-list>footer{margin-top:auto;padding:10px 14px;border-top:1px solid #e2e8ef;color:#7c899a;font-size:9px}.service-catalog-empty{display:grid;place-items:center;gap:5px;padding:50px 20px;text-align:center}.service-catalog-empty span{color:#8491a2;font-size:10px}.service-catalog-detail{position:relative;min-width:0;padding:0 20px 66px}.service-catalog-detail>header{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:82px;padding:14px 2px;border-bottom:1px solid #e3e9f0}.service-detail-title{display:flex;align-items:center;gap:7px}.service-detail-title h2{margin:0;color:#203147;font-size:18px}.service-detail-title b{padding:3px 7px;border-radius:999px;background:#e7f7ef;color:#147251;font-size:8px}.service-detail-title b.muted{background:#edf0f4;color:#69778a}.service-catalog-detail>header p{margin:5px 0 0;color:#8290a2;font-size:10px}.service-detail-actions form,.service-archive-form{margin:0}.service-detail-tabs{display:flex;gap:22px;border-bottom:1px solid #e2e8f0}.service-detail-tabs button{position:relative;padding:14px 1px 12px;border:0;background:transparent;color:#748196;font-size:10px;font-weight:750;cursor:pointer}.service-detail-tabs button.is-active{color:#2258c4}.service-detail-tabs button.is-active:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:#245dd0}.service-detail-form>section{padding:21px 1px}.service-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 17px}.service-form-grid label,.service-description,.service-default-grid>label{display:grid;gap:6px;color:#53647a;font-size:9px;font-weight:750}.service-form-grid input,.service-form-grid select,.service-description textarea,.service-default-grid input{width:100%;border:1px solid #ced9e6;border-radius:9px;background:#fff;color:#26374d;font-size:11px}.service-form-grid input,.service-form-grid select,.service-default-grid input{height:40px}.service-description{margin-top:16px}.service-description textarea{min-height:105px;padding:10px;resize:vertical}.service-default-grid{display:grid;gap:12px;max-width:650px}.service-default-grid>label:first-child{max-width:280px}.service-default-grid small{color:#8996a6;font-size:9px;font-weight:400}.service-switch{display:grid!important;grid-template-columns:18px 1fr!important;align-items:flex-start;gap:10px!important;padding:12px 13px;border:1px solid #dce4ee;border-radius:10px;background:#fafbfd;color:inherit!important;cursor:pointer}.service-switch input{width:16px!important;height:16px!important;margin:1px 0 0;accent-color:#2862d5}.service-switch span{display:grid;gap:2px}.service-switch strong{color:#314258;font-size:10px}.service-switch small{color:#8492a3;font-size:9px}.service-usage-card{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #dce4ed;border-radius:11px;background:#fafbfd}.service-usage-card .material-symbols-outlined{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e9f1ff;color:#2d62ce}.service-usage-card strong{color:#2e4056;font-size:11px}.service-usage-card p{margin:4px 0 0;color:#8491a2;font-size:9px}.service-detail-form>footer{position:absolute;right:20px;bottom:13px;left:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;border-top:1px solid #e2e8ef}.service-detail-form>footer span{color:#8a96a5;font-size:9px}.service-archive-form{position:absolute;right:20px;bottom:76px}.service-detail-empty{display:grid;place-items:center;align-content:center;height:100%;min-height:570px;color:#8290a2;text-align:center}.service-detail-empty .material-symbols-outlined{font-size:34px}.service-detail-empty h2{margin:10px 0 4px;color:#34465c;font-size:16px}.service-detail-empty p{margin:0;font-size:10px}.service-catalog-create{width:min(620px,calc(100vw - 28px))!important;border-radius:17px!important;overflow:hidden}.service-catalog-create .modal-head{padding:17px 19px;border-bottom:1px solid #e3e9f0}.service-catalog-create .modal-head h3{margin:0;font-size:17px}.service-catalog-create .modal-head p{margin:4px 0 0;color:#7f8d9e;font-size:9px}.service-catalog-create>form{display:grid;gap:15px;padding:19px}.service-catalog-create>form>footer{display:flex;justify-content:flex-end;gap:8px;margin:2px -19px -19px;padding:13px 19px;border-top:1px solid #e3e9f0;background:#fafbfd}@media(max-width:960px){.service-catalog-layout{grid-template-columns:1fr}.service-catalog-list{border-right:0;border-bottom:1px solid #dfe6ef}.service-catalog-scroll{max-height:280px}.service-catalog-detail{min-height:620px}}@media(max-width:620px){.service-catalog-page{padding:18px 13px 38px}.service-catalog-header{align-items:stretch;flex-direction:column}.service-catalog-tools{grid-template-columns:1fr}.service-catalog-columns,.service-catalog-row{grid-template-columns:minmax(0,1fr) 58px}.service-catalog-columns span:last-child,.service-catalog-row>span:last-child{display:none}.service-form-grid{grid-template-columns:1fr}.service-detail-form>footer{align-items:stretch;flex-direction:column}.service-detail-form>footer .btn{width:100%}}
