:root {
  --bg: #f7faf9;
  --panel: #ffffff;
  --text: #17211f;
  --muted: #66746f;
  --line: #e3ebe8;
  --brand: #18b9d0;
  --brand-dark: #0794aa;
  --accent: #18b9d0;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #15803d;
  --sidebar-bg: #ffffff;
  --sidebar-muted: #7a8883;
  --hover: #eefbfe;
  --shadow: 0 10px 26px rgba(20, 36, 32, 0.045);
  --shadow-soft: 0 5px 14px rgba(20, 36, 32, 0.035);
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button {
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(24, 185, 208, .2);
  outline-offset: 2px;
  border-color: var(--brand);
}
.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
  transition: grid-template-columns .18s ease;
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}
.sidebar {
  width: 100%;
  background: var(--sidebar-bg);
  color: var(--text);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  transition: padding .18s ease, transform .18s ease;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 4px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 74px;
}
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--brand); font-weight: 800; }
.brand-logo {
  width: min(168px, 100%);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  flex: none;
  display: block;
  margin: 0 auto;
}
.brand strong { display: block; font-size: 15px; line-height: 1.2; }
.brand span, .sidebar-footer { color: var(--sidebar-muted); font-size: 12px; }
.sidebar-toggle {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle:hover {
  background: var(--hover);
  color: var(--brand-dark);
}
.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}
.nav { display: grid; gap: 5px; }
.nav-item {
  border: 0;
  color: #40514c;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--radius);
  text-align: left;
  font-weight: 600;
  position: relative;
}
.nav-item.active, .nav-item:hover { background: #e9fafd; color: var(--brand-dark); }
.nav-item svg, .icon-button svg, .primary-button svg, .ghost-button svg { width: 18px; height: 18px; flex: none; }
.nav-section-label {
  padding: 12px 11px 4px;
  color: var(--sidebar-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-footer { margin-top: auto; padding: 10px 6px; }
.app-shell.sidebar-collapsed .sidebar {
  padding-inline: 10px;
}
.app-shell.sidebar-collapsed .brand {
  justify-content: center;
  padding-inline: 0;
}
.app-shell.sidebar-collapsed .brand-logo {
  width: 42px;
  max-height: 42px;
}
.app-shell.sidebar-collapsed .brand div,
.app-shell.sidebar-collapsed .nav-item span,
.app-shell.sidebar-collapsed .nav-section-label,
.app-shell.sidebar-collapsed .sidebar-footer {
  display: none;
}
.app-shell.sidebar-collapsed .nav-item,
.app-shell.sidebar-collapsed .sidebar-toggle {
  justify-content: center;
  padding-inline: 0;
}
.app-shell.sidebar-collapsed .nav-item:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  white-space: nowrap;
  border-radius: 7px;
  padding: 7px 9px;
  background: #101828;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
}
.main { flex: 1; min-width: 0; transition: width .18s ease; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 26px;
  background: rgba(247,250,249,.94);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
h1, h2, h3, p { margin-top: 0; }
.topbar h1 { margin-bottom: 3px; font-size: 22px; line-height: 1.2; }
.topbar p, .card p, .muted { color: var(--muted); margin-bottom: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-relations {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.topbar-relations .icon-button {
  width: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  position: relative;
}
.topbar-relations .icon-button:hover {
  background: #e9fafd;
  color: var(--brand);
}

.notification-trigger {
  position: relative;
  width: 42px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
}

.notification-trigger:hover {
  background: #e9fafd;
  color: var(--brand);
}

.notification-trigger svg {
  width: 21px;
  height: 21px;
}

.global-search-trigger {
  gap: 8px;
  color: var(--brand-dark);
}

.global-search-trigger kbd {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f6faf9;
  padding: 2px 5px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.global-search {
  width: min(720px, calc(100vw - 30px));
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.global-search::backdrop {
  background: rgba(14, 35, 42, .38);
  backdrop-filter: blur(2px);
}

.global-search__card {
  display: grid;
  max-height: min(78vh, 680px);
  overflow: hidden;
  border: 1px solid #d6e4e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 34, 40, .18);
}

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

.global-search__header > svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.global-search__header input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.global-search__hint {
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
  padding: 9px 18px;
  color: var(--muted);
  font-size: 12px;
}

.global-search__body {
  display: grid;
  gap: 15px;
  overflow-y: auto;
  padding: 16px;
}

.global-search__empty {
  margin: 0;
  padding: 26px 10px;
  color: var(--muted);
  text-align: center;
}

.global-search__group {
  display: grid;
  gap: 6px;
}

.global-search__group h3 {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.global-search__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.global-search__result:hover {
  border-color: #bee7ed;
  background: #f5fcfd;
}

.global-search__result div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.global-search__result strong,
.global-search__result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search__result span {
  color: var(--muted);
  font-size: 12px;
}

.global-search__result .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  flex: none;
}

.notifications-dialog {
  width: min(430px, 100vw);
  height: 100vh;
  max-height: 100vh;
  margin: 0 0 0 auto;
  border-radius: 0;
  overflow: hidden;
}

.notifications-dialog::backdrop {
  background: rgba(14, 35, 42, .34);
  backdrop-filter: blur(2px);
}

.notifications__panel {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #fff;
}

.notifications__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px 15px;
  border-bottom: 1px solid var(--line);
}

.notifications__header h2 {
  margin: 0 0 3px;
  font-size: 20px;
}

.notifications__header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.notifications__toolbar {
  display: grid;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.notifications__filters {
  display: inline-flex;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.notifications__filters button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 7px 13px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.notifications__filters button.active {
  background: #e9fafd;
  color: var(--brand-dark);
}

.notifications__toolbar .text-button {
  justify-self: start;
  font-size: 13px;
}

.notifications__body {
  flex: 1;
  overflow-y: auto;
  padding: 9px 10px 20px;
}

.notifications__empty {
  margin: 0;
  padding: 38px 16px;
  color: var(--muted);
  text-align: center;
}

.notifications__item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 10px;
  gap: 10px;
  align-items: start;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 13px 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.notifications__item:hover {
  background: #f5fcfd;
}

.notifications__item.is-unread {
  background: #f4fbfc;
}

.notifications__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #e9fafd;
  color: var(--brand-dark);
}

.notifications__icon svg {
  width: 18px;
  height: 18px;
}

.notifications__icon--reminder_failed,
.notifications__icon--deadline_critical {
  background: #fdeceb;
  color: #c53c38;
}

.notifications__icon--enrollment_received,
.notifications__icon--questionnaire_submitted {
  background: #ebf7ef;
  color: #187547;
}

.notifications__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notifications__copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications__copy span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notifications__copy small {
  color: var(--muted);
  font-size: 11px;
}

.notifications__unread {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: #e94442;
}

.relations-badge {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.primary-button, .ghost-button, .icon-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  background: #fff;
  color: var(--text);
}
.primary-button { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 14px rgba(24, 185, 208, .18); }
.primary-button:hover { background: var(--brand-dark); }
.ghost-button:hover, .icon-button:hover { border-color: #cbd5e1; background: var(--hover); }
.text-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  min-height: 34px;
  justify-content: flex-start;
  padding: 0;
}
.text-button:hover { color: var(--brand-dark); }
.danger-button { color: var(--danger); border-color: #fecaca; }
.danger-button:hover { background: #fef2f2; border-color: #fca5a5; }

.reminder-cron-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.reminder-cron-card h3 {
  margin: 6px 0 4px;
  font-size: 1.02rem;
}

.reminder-cron-card__status,
.reminder-cron-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.icon-button { width: 40px; padding: 0; }
.mode-pill, .status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #e9fafd;
  color: var(--brand-dark);
}
.content { padding: 24px 26px 48px; }
.hidden { display: none !important; }
.view { display: none; min-width: 0; }
.view.active { display: block; }
.login-panel {
  max-width: 880px;
  margin: 56px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
.login-copy {
  background: #101820;
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-copy p { color: rgba(255,255,255,.74); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}
button.stat {
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
button.stat:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
button.stat.is-active {
  box-shadow: 0 0 0 2px rgba(39, 130, 190, .16), var(--shadow-soft);
}
.stat.danger { border-left-color: var(--danger); }
.stat.warning { border-left-color: var(--warning); }
.stat.success { border-left-color: var(--success); }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 8px; font-size: 28px; }
.customer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
}
.customer-hero h2 {
  margin: 10px 0 4px;
  font-size: 24px;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.document-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  box-shadow: var(--shadow-soft);
}
.document-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #e9fafd;
  color: var(--brand-dark);
}
.document-icon svg { width: 22px; height: 22px; }
.document-body h3 {
  margin: 10px 0 5px;
  font-size: 17px;
}
.document-body p {
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 13px;
}
.document-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.documents-module {
  display: grid;
  gap: 14px;
}
.documents-module__toolbar {
  align-items: flex-start;
}
.documents-module__toolbar .filters {
  flex: 1;
}
.documents-module__toolbar input,
.documents-module__toolbar select {
  width: min(220px, 100%);
}
.documents-module__table {
  min-width: 0;
  table-layout: fixed;
  font-size: 12px;
}
.documents-module__table th,
.documents-module__table td {
  padding: 8px 9px;
  white-space: nowrap;
}
.documents-module__title {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}
.documents-module__title.bulk-row-main {
  grid-template-columns: 15px 22px minmax(0, 1fr);
}
.documents-module__title svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}
.documents-module__title strong,
.documents-module__title small {
  display: block;
}
.documents-module__title strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}
.documents-module__title small {
  color: var(--muted);
  font-size: 12px;
}
.document-preview-dialog {
  width: min(1120px, calc(100vw - 28px));
}
.documents-module__preview {
  display: grid;
  gap: 12px;
  max-height: min(86vh, 920px);
}
.documents-module__preview-actions {
  display: flex;
  justify-content: flex-end;
}
.documents-module__preview-body {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: auto;
}
.documents-module__preview-frame {
  width: 100%;
  height: min(70vh, 760px);
  border: 0;
  display: block;
  background: #fff;
}
.documents-module__preview-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.documents-module__preview-loading,
.documents-module__preview-message {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.documents-module__preview-message strong,
.documents-module__preview-message span {
  display: block;
}
.course-signature-dialog {
  width: min(1260px, calc(100vw - 28px));
  max-width: none;
}
.course-signature {
  display: grid;
  gap: 14px;
  max-height: min(94vh, 980px);
}
.course-signature__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 14px;
  min-height: 0;
}
.course-signature__viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: min(74vh, 760px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f6;
}
.course-signature__viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.course-signature__viewer-toolbar span {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.course-signature__canvas-scroll {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.course-signature__stage {
  position: relative;
  flex: none;
  box-shadow: 0 4px 18px rgba(25, 38, 62, .14);
  background: #fff;
}
.course-signature__stage canvas {
  display: block;
  max-width: none;
}
.course-signature__overlay {
  position: absolute;
  border: 1px dashed var(--brand);
  background: rgba(255, 255, 255, .12);
  cursor: move;
  touch-action: none;
  transform-origin: center;
}
.course-signature__overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.course-signature__resize {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  cursor: nwse-resize;
  touch-action: none;
}
.course-signature__controls {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.course-signature__controls h3 {
  margin: 0;
  font-size: 16px;
}
.course-signature__upload {
  position: relative;
  justify-content: center;
  cursor: pointer;
}
.course-signature__upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.course-signature__rotation {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.course-signature__rotation input {
  width: 100%;
}
.course-signature__status {
  min-height: 42px;
  padding: 10px;
  border-radius: 8px;
  background: #f3f7fa;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.course-signature__status.error {
  color: var(--danger);
  background: #fff4f4;
}
.course-signature__notice {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.course-signature__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.doc-module__guided-checkboxes {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #fff;
}
.doc-module__guided-checkboxes legend {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  padding: 0 4px;
}
.doc-module__guided-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.doc-module__guided-checkboxes input {
    width: auto;
    min-height: auto;
  }
.doc-module__ppe-catalog {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.doc-module__ppe-catalog legend,
.doc-module__ppe-catalog .doc-module__hint {
  grid-column: 1 / -1;
}
.doc-module__ppe-catalog small {
  color: var(--muted);
}
.empty-state {
  padding: 18px;
  grid-column: 1 / -1;
}
.app-view-error {
  display: grid;
  justify-items: start;
  gap: 10px;
  border-color: #fecaca;
  background: #fff7f7;
}
.app-view-error h2 {
  margin: 0;
  color: #991b1b;
}
.app-view-error p {
  max-width: 760px;
  margin: 0;
  color: #7f1d1d;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bulk-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid #bdebf2;
  border-radius: 8px;
  background: #f3fcfe;
  color: var(--text);
}
.bulk-actions-bar strong {
  margin-right: auto;
  font-size: 13px;
}
.bulk-actions-bar__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.bulk-actions-bar .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}
.bulk-checkbox {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.bulk-heading,
.bulk-row-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-width: 0;
}
.bulk-row-main > span {
  min-width: 0;
}
.documents-module__title.bulk-row-main {
  display: grid;
  grid-template-columns: 15px 22px minmax(0, 1fr);
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select, .form-grid input, .form-grid select, .form-grid textarea {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}
.filters input { width: min(320px, 100%); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  table-layout: fixed;
}
th, td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td {
  white-space: nowrap;
}
td strong { font-size: 12px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0; background: #fafbfe; }
tr:hover td { background: var(--hover); }
.deadline-row.expired td { background: #fff5f5; }
.deadline-row.due td { background: #fff8ed; }
.deadline-row.valid td { background: #f7fff9; }
.deadline-row:hover td { filter: brightness(.99); }
.actions {
  display: table-cell;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
  width: 96px;
  min-width: 96px;
  overflow: visible;
}
.actions > button {
  margin: 1px 0 1px 2px;
}
.document-actions,
.actions-inline {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
table .icon-button,
.actions .icon-button {
  min-height: 24px;
  width: 24px;
  padding: 0;
  border-radius: 6px;
  flex: 0 0 24px;
}
table .icon-button svg,
.actions .icon-button svg {
  width: 12px;
  height: 12px;
}
.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}
.status-dot.expired { background: var(--danger); }
.status-dot.due { background: var(--warning); }
.status-dot.valid { background: var(--success); }
#companiesView table th:nth-child(1),
#companiesView table td:nth-child(1) { width: 30%; }
#companiesView table th:nth-child(2),
#companiesView table td:nth-child(2) { width: 14%; }
#companiesView table th:nth-child(3),
#companiesView table td:nth-child(3) { width: 28%; }
#companiesView table th:nth-child(4),
#companiesView table td:nth-child(4) { width: 14%; }
#companiesView table th:nth-child(5),
#companiesView table td:nth-child(5) { width: 96px; }
#workersView table th:nth-child(1),
#workersView table td:nth-child(1) { width: 23%; }
#workersView table th:nth-child(2),
#workersView table td:nth-child(2) { width: 21%; }
#workersView table th:nth-child(3),
#workersView table td:nth-child(3) { width: 16%; }
#workersView table th:nth-child(4),
#workersView table td:nth-child(4) { width: 17%; }
#workersView table th:nth-child(5),
#workersView table td:nth-child(5) { width: 10%; }
#workersView table th:nth-child(6),
#workersView table td:nth-child(6) { width: 96px; }

.worker-import {
  display: grid;
  gap: 12px;
}

.worker-import label {
  display: grid;
  gap: 6px;
}

.worker-import__help,
.worker-import__summary {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.worker-import__summary {
  display: grid;
  gap: 6px;
}

.worker-import__summary strong {
  color: var(--brand);
}

.worker-import__summary ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.text-danger {
  color: #b91c1c;
}
#deadlinesView table th:nth-child(1),
#deadlinesView table td:nth-child(1),
#reportsView table th:nth-child(1),
#reportsView table td:nth-child(1) { width: 25%; }
#deadlinesView table,
#reportsView .deadline-table {
  min-width: 0;
  table-layout: fixed;
}
#deadlinesView table th:nth-child(2),
#deadlinesView table td:nth-child(2),
#reportsView table th:nth-child(2),
#reportsView table td:nth-child(2) { width: 18%; }
#deadlinesView table th:nth-child(3),
#deadlinesView table td:nth-child(3),
#reportsView table th:nth-child(3),
#reportsView table td:nth-child(3) { width: 20%; }
#deadlinesView table th:nth-child(4),
#deadlinesView table td:nth-child(4),
#deadlinesView table th:nth-child(5),
#deadlinesView table td:nth-child(5),
#reportsView table th:nth-child(4),
#reportsView table td:nth-child(4),
#reportsView table th:nth-child(5),
#reportsView table td:nth-child(5) { width: 10%; }
#deadlinesView table th:nth-child(6),
#deadlinesView table td:nth-child(6),
#reportsView table th:nth-child(6),
#reportsView table td:nth-child(6) { width: 46px; text-align: center; }
#deadlinesView table th:nth-child(7),
#deadlinesView table td:nth-child(7),
#reportsView table th:nth-child(7),
#reportsView table td:nth-child(7) { width: 104px; }
#reportsView .deadline-table--no-actions th:nth-child(1),
#reportsView .deadline-table--no-actions td:nth-child(1) { width: 28%; }
#reportsView .deadline-table--no-actions th:nth-child(2),
#reportsView .deadline-table--no-actions td:nth-child(2) { width: 20%; }
#reportsView .deadline-table--no-actions th:nth-child(3),
#reportsView .deadline-table--no-actions td:nth-child(3) { width: 23%; }
#reportsView .deadline-table--no-actions th:nth-child(4),
#reportsView .deadline-table--no-actions td:nth-child(4),
#reportsView .deadline-table--no-actions th:nth-child(5),
#reportsView .deadline-table--no-actions td:nth-child(5) { width: 11%; }
#reportsView .deadline-table--no-actions th:nth-child(6),
#reportsView .deadline-table--no-actions td:nth-child(6) { width: 46px; text-align: center; }
.deadline-row.is-clickable,
.document-row.is-clickable {
  cursor: pointer;
}
.deadline-row.is-clickable:hover td,
.document-row.is-clickable:hover td {
  background: #f8fbff;
}

.record-summary {
  display: grid;
  gap: 14px;
}

.record-summary__hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  padding: 8px 12px;
  color: var(--text);
}

.record-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.record-summary__grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  min-width: 0;
}

.record-summary__grid dt {
  margin-bottom: 4px;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.record-summary__grid dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.record-summary__section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.record-summary__section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.record-summary__section-title strong {
  font-size: 0.95rem;
}

.record-summary__section-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.record-summary__timeline {
  display: grid;
  gap: 8px;
}

.record-summary__timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.record-summary__timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.record-summary__timeline-item div {
  display: grid;
  gap: 2px;
}

.record-summary__timeline-item span,
.record-summary__timeline-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ghost-button.danger {
  color: #b91c1c;
}

.toolbar .filters select[id$="SortFilter"] {
  min-width: 170px;
}
#documentsView .table-wrap,
#deadlinesView .table-wrap {
  width: 100%;
  max-width: 100%;
  padding-bottom: 6px;
}
#documentsView .card,
#documentsView .documents-module,
#deadlinesView .card {
  min-width: 0;
}
#documentsView table {
  min-width: 0;
  table-layout: fixed;
}
#documentsView th,
#documentsView td {
  overflow-wrap: normal;
}
#documentsView th:nth-child(1),
#documentsView td:nth-child(1) { width: 36%; }
#documentsView th:nth-child(2),
#documentsView td:nth-child(2) { width: 21%; }
#documentsView th:nth-child(3),
#documentsView td:nth-child(3) { width: 16%; }
#documentsView th:nth-child(4),
#documentsView td:nth-child(4) { width: 10%; }
#documentsView th:nth-child(5),
#documentsView td:nth-child(5) { width: 44px; text-align: center; }
#documentsView th:nth-child(6),
#documentsView td:nth-child(6) {
  width: 108px;
  min-width: 108px;
}
#documentsView td:nth-child(2),
#documentsView td:nth-child(3),
#documentsView td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
}
#documentsView td.actions,
#deadlinesView td.actions {
  width: 104px;
  min-width: 104px;
  white-space: nowrap;
}
#documentsView td.actions {
  width: 108px;
  min-width: 108px;
}
.app-shell.sidebar-collapsed table .icon-button,
.app-shell.sidebar-collapsed .actions .icon-button {
  width: 24px;
  min-height: 24px;
}
.app-shell.sidebar-collapsed table .icon-button svg,
.app-shell.sidebar-collapsed .actions .icon-button svg {
  width: 12px;
  height: 12px;
}
.app-shell.sidebar-collapsed .actions {
  width: auto;
  min-width: 104px;
}
.site-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  max-width: 190px;
}
.site-chip svg { width: 14px; height: 14px; flex: none; }
.site-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.danger-icon { color: var(--danger); border-color: #fecaca; }
.danger-icon:hover { background: #fef2f2; border-color: #fca5a5; }
.status {
  min-width: 92px;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}
.status.expired { color: #fff; background: var(--danger); }
.status.due { color: #fff; background: var(--warning); min-width: 108px; }
.status.valid { color: #fff; background: var(--success); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid.compact { grid-template-columns: 1fr; align-content: start; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.checkbox-field { display: flex !important; align-items: center; gap: 10px; color: var(--text) !important; }
.checkbox-field input { width: 16px; height: 16px; flex: none; }
.full { grid-column: 1 / -1; }
dialog {
  width: min(760px, calc(100vw - 26px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(12, 18, 31, .46); }
.dialog-card { padding: 20px; }
.dialog-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.dialog-head h2 { margin-bottom: 3px; }
menu { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0 0; margin: 0; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast[data-type="success"] { background: #166534; }
.toast[data-type="warning"] { background: #92400e; }
.toast[data-type="error"] { background: #991b1b; }
.ghost-button.is-loading,
.primary-button.is-loading {
  opacity: .72;
  cursor: wait;
}
.ghost-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
}
.diagnostics-dialog {
  width: min(980px, calc(100vw - 26px));
}
.diagnostics-panel {
  max-height: min(780px, calc(100vh - 40px));
  overflow: hidden;
}
.diagnostics-panel__body {
  display: grid;
  gap: 14px;
}
.diagnostics-panel__loading {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
  color: var(--muted);
}
.diagnostics-panel__summary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.diagnostics-panel__summary article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.diagnostics-panel__summary strong {
  overflow-wrap: anywhere;
}
.diagnostics-panel__summary span {
  color: var(--muted);
  font-size: 12px;
}
.diagnostics-panel__table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.diagnostics-panel__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.diagnostics-panel__table th,
.diagnostics-panel__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}
.diagnostics-panel__table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.diagnostics-panel__badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.diagnostics-panel__badge.is-ok {
  background: #dcfce7;
  color: #166534;
}
.diagnostics-panel__badge.is-error {
  background: #fee2e2;
  color: #991b1b;
}
.worker-profile-module,
.company-profile-module {
  display: grid;
  gap: 16px;
}
.worker-profile-module__hero,
.company-profile-module__hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.worker-profile-module__hero h2,
.company-profile-module__hero h2 {
  margin: 0 0 4px;
  font-size: 24px;
}
.worker-profile-module__hero p,
.company-profile-module__hero p {
  margin: 0;
  color: var(--muted);
}
.worker-profile-module__summary,
.company-profile-module__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.worker-profile-module__summary article,
.company-profile-module__summary article,
.worker-profile-module__panel,
.company-profile-module__panel,
.company-profile-module__progress {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.worker-profile-module__summary span,
.company-profile-module__summary span,
.company-profile-module__progress span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.worker-profile-module__summary strong,
.company-profile-module__summary strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.worker-profile-module__grid,
.company-profile-module__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.worker-profile-module__panel h3,
.company-profile-module__panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.company-profile-module__panel h4 {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}
.company-profile-module__panel-head,
.worker-profile-module__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.company-profile-module__panel-head h3,
.worker-profile-module__panel-head h3 {
  margin-bottom: 4px;
}
.company-profile-module__doc-actions,
.worker-profile-module__doc-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.company-profile-module__doc-actions article,
.worker-profile-module__doc-actions article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.company-profile-module__doc-actions article.is-needed,
.worker-profile-module__doc-actions article.is-needed {
  border-color: #fde68a;
  background: #fffdf3;
}
.company-profile-module__doc-actions span,
.worker-profile-module__doc-actions span {
  color: var(--muted);
  font-size: 12px;
}
.company-profile-module__status-grid,
.company-profile-module__document-status,
.company-profile-module__quick-actions,
.worker-profile-module__status-grid,
.worker-profile-module__document-status,
.worker-profile-module__quick-actions {
  display: grid;
  gap: 10px;
}
.company-profile-module__status-grid,
.worker-profile-module__status-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.company-profile-module__document-status,
.worker-profile-module__document-status {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}
.company-profile-module__quick-actions,
.worker-profile-module__quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  justify-content: start;
  margin: 10px 0 14px;
}
.company-profile-module__doc-row-actions,
.worker-profile-module__doc-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 180px;
}
.company-profile-module__doc-row-actions .ghost-button,
.worker-profile-module__doc-row-actions .ghost-button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}
.company-profile-module__status-grid article,
.company-profile-module__document-status article,
.worker-profile-module__status-grid article,
.worker-profile-module__document-status article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.company-profile-module__status-grid article.is-danger,
.company-profile-module__document-status article.is-missing,
.worker-profile-module__status-grid article.is-danger,
.worker-profile-module__document-status article.is-missing {
  border-color: #fecaca;
  background: #fff7f7;
}
.company-profile-module__status-grid article.is-warning,
.worker-profile-module__status-grid article.is-warning {
  border-color: #fde68a;
  background: #fffdf3;
}
.company-profile-module__status-grid article.is-ok,
.company-profile-module__document-status article.is-present,
.worker-profile-module__status-grid article.is-ok,
.worker-profile-module__document-status article.is-present {
  border-color: #bbf7d0;
  background: #f7fff9;
}
.company-profile-module__status-grid span,
.company-profile-module__document-status span,
.worker-profile-module__status-grid span,
.worker-profile-module__document-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.company-profile-module__status-grid strong,
.company-profile-module__document-status strong,
.worker-profile-module__status-grid strong,
.worker-profile-module__document-status strong {
  color: var(--text);
}
.company-profile-module__status-grid small,
.company-profile-module__document-status small,
.company-profile-module__document-status em,
.worker-profile-module__status-grid small,
.worker-profile-module__document-status small,
.worker-profile-module__document-status em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.worker-profile-module__table-wrap,
.company-profile-module__table-wrap { overflow-x: auto; }
.profile-tabs {
  display: grid;
  gap: 14px;
}
.profile-tabs > input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}
.profile-tabs__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
}
.profile-tabs__nav label {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}
.profile-tabs__panel {
  display: none;
  gap: 14px;
}
#worker-tab-summary:checked ~ .profile-tabs__nav label[for="worker-tab-summary"],
#worker-tab-training:checked ~ .profile-tabs__nav label[for="worker-tab-training"],
#worker-tab-documents:checked ~ .profile-tabs__nav label[for="worker-tab-documents"],
#worker-tab-deadlines:checked ~ .profile-tabs__nav label[for="worker-tab-deadlines"],
#worker-tab-data:checked ~ .profile-tabs__nav label[for="worker-tab-data"],
#company-tab-summary:checked ~ .profile-tabs__nav label[for="company-tab-summary"],
#company-tab-workers:checked ~ .profile-tabs__nav label[for="company-tab-workers"],
#company-tab-documents:checked ~ .profile-tabs__nav label[for="company-tab-documents"],
#company-tab-deadlines:checked ~ .profile-tabs__nav label[for="company-tab-deadlines"],
#company-tab-services:checked ~ .profile-tabs__nav label[for="company-tab-services"],
#company-tab-data:checked ~ .profile-tabs__nav label[for="company-tab-data"] {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.45);
  color: var(--brand);
}
#worker-tab-summary:checked ~ .profile-tabs__panel--summary,
#worker-tab-training:checked ~ .profile-tabs__panel--training,
#worker-tab-documents:checked ~ .profile-tabs__panel--documents,
#worker-tab-deadlines:checked ~ .profile-tabs__panel--deadlines,
#worker-tab-data:checked ~ .profile-tabs__panel--data,
#company-tab-summary:checked ~ .profile-tabs__panel--summary,
#company-tab-workers:checked ~ .profile-tabs__panel--workers,
#company-tab-documents:checked ~ .profile-tabs__panel--documents,
#company-tab-deadlines:checked ~ .profile-tabs__panel--deadlines,
#company-tab-services:checked ~ .profile-tabs__panel--services,
#company-tab-data:checked ~ .profile-tabs__panel--data {
  display: grid;
}
.worker-profile-module__hero small,
.company-profile-module__hero small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.worker-profile-module__note,
.company-profile-module__note {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}
.worker-profile-module__note p,
.company-profile-module__note p {
  color: var(--muted);
  margin: 6px 0 0;
}
.worker-profile-module__table,
.company-profile-module__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.worker-profile-module__table th,
.worker-profile-module__table td,
.company-profile-module__table th,
.company-profile-module__table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}
.worker-profile-module__badge,
.company-profile-module__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.worker-profile-module__badge.is-ok,
.company-profile-module__badge.is-ok,
.worker-profile-module__badge--valid,
.worker-profile-module__badge--active,
.worker-profile-module__badge--completed,
.company-profile-module__badge--valid,
.company-profile-module__badge--active,
.company-profile-module__badge--completed {
  background: #dcfce7;
  color: #166534;
}
.worker-profile-module__badge.is-muted,
.company-profile-module__badge--inactive,
.worker-profile-module__badge--cancelled,
.company-profile-module__badge--cancelled {
  background: #f1f5f9;
  color: #475569;
}
.company-profile-module__badge.is-danger,
.worker-profile-module__badge--expired,
.worker-profile-module__badge--missing,
.company-profile-module__badge--expired {
  background: #fee2e2;
  color: #991b1b;
}
.worker-profile-module__badge--expiring,
.company-profile-module__badge--expiring,
.worker-profile-module__badge--open,
.company-profile-module__badge--open {
  background: #fef3c7;
  color: #92400e;
}
.worker-profile-module__badge--in_progress,
.company-profile-module__badge--in_progress,
.worker-profile-module__badge--planned,
.company-profile-module__badge--pending {
  background: #dbeafe;
  color: #1d4ed8;
}
.company-profile-module__progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}
.company-profile-module__progress div {
  grid-column: 1 / -1;
  height: 9px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.company-profile-module__progress i {
  display: block;
  height: 100%;
  background: var(--brand);
}
.worker-profile-module__timeline,
.company-profile-module__timeline {
  display: grid;
  gap: 10px;
}
.worker-profile-module__timeline article,
.company-profile-module__timeline article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 12px;
  border-left: 3px solid var(--brand);
  padding: 8px 0 8px 12px;
}
.worker-profile-module__timeline time,
.company-profile-module__timeline time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.worker-profile-module__timeline span,
.company-profile-module__timeline span {
  grid-column: 2;
  color: var(--muted);
}
.worker-profile-module__empty,
.company-profile-module__empty {
  color: var(--muted);
  margin: 0;
}
.service-plan-module {
  display: grid;
  gap: 12px;
}
.service-plan-module__panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.service-plan-module__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.service-plan-module__head h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.service-plan-module__head p {
  color: var(--muted);
  margin: 0;
}
.service-plan-module__head strong {
  font-size: 28px;
  color: var(--brand);
}
.service-plan-module__progress {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 12px;
}
.service-plan-module__progress i {
  display: block;
  height: 100%;
  background: var(--brand);
}
.service-plan-module__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.service-plan-module__stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.service-plan-module__stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.service-plan-module__stats strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}
.service-plan-module__form,
.service-plan-module__item-form,
.service-plan-module__training-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.service-plan-module__item-form,
.service-plan-module__training-form {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  min-width: 0;
}
.service-plan-module__form label,
.service-plan-module__item-form label,
.service-plan-module__training-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.service-plan-module__full {
  grid-column: 1 / -1;
}
.service-plan-module__service-picker {
  display: grid;
  gap: 8px;
}
.service-plan-module__catalog-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 90px 140px minmax(180px, 1fr);
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.service-plan-module__catalog-row:not(:has(.service-plan-module__workers)) {
  grid-template-columns: minmax(220px, 1.5fr) 90px 140px;
}
.service-plan-module__check {
  align-items: center;
  grid-template-columns: auto 1fr;
}
.service-plan-module__check input {
  width: 16px;
  height: 16px;
}
.service-plan-module__workers select,
.service-plan-module__item-form select[multiple] {
  min-height: 74px;
}
.service-plan-module__table-wrap {
  overflow-x: auto;
}
.service-plan-module__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.service-plan-module__table th,
.service-plan-module__table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}
.service-plan-module__table td span {
  color: var(--muted);
}
.service-plan-module__checklist {
  display: grid;
  gap: 10px;
}
.service-plan-module__contract-table {
  display: grid;
  gap: 6px;
}
.service-plan-module__contract-head,
.service-plan-module__contract-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) 78px 90px 90px 80px 118px minmax(130px, 1fr);
  gap: 8px;
  align-items: center;
}
.service-plan-module__contract-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 0 8px;
}
.service-plan-module__contract-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.service-plan-module__contract-row:hover {
  border-color: rgba(0, 123, 191, .25);
}
.service-plan-module__service-name {
  display: grid;
  gap: 3px;
}
.service-plan-module__service-name strong {
  font-size: 13px;
}
.service-plan-module__link-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}
.service-plan-module__contract-form {
  display: contents;
}
.service-plan-module__contract-form input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 8px;
  background: #fff;
}
.service-plan-module__included {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-weight: 800;
}
.service-plan-module__included input {
  width: 16px;
  height: 16px;
}
.service-plan-module__training-workers {
  border: 1px solid rgba(0, 123, 191, .16);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}
.service-plan-module__training-workers form {
  display: grid;
  gap: 10px;
}
.service-plan-module__worker-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}
.service-plan-module__worker-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  font-size: 13px;
}
.service-plan-module__service-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.service-plan-module__service-card:hover {
  border-color: rgba(0, 123, 191, .28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}
.service-plan-module__service-card.is-critical {
  border-color: rgba(185, 28, 28, .28);
  background: linear-gradient(90deg, rgba(254, 242, 242, .8), #fff 38%);
}
.service-plan-module__service-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.service-plan-module__service-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.service-plan-module__service-main strong,
.service-plan-module__service-main p,
.service-plan-module__service-main small {
  display: block;
}
.service-plan-module__service-main p {
  margin: 3px 0;
  color: var(--muted);
}
.service-plan-module__service-main small {
  color: var(--muted);
  line-height: 1.35;
}
.service-plan-module__status-dot {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}
.service-plan-module__service-card--completed .service-plan-module__status-dot {
  background: #dcfce7;
  color: #166534;
}
.service-plan-module__service-card--not_started .service-plan-module__status-dot,
.service-plan-module__service-card.is-critical .service-plan-module__status-dot {
  background: #fee2e2;
  color: #991b1b;
}
.service-plan-module__service-card--not_applicable .service-plan-module__status-dot {
  background: #f1f5f9;
  color: #64748b;
}
.service-plan-module__done-flag {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.service-plan-module__done-flag input {
  width: 18px;
  height: 18px;
}
.service-plan-module__service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-plan-module__service-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 3px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.service-plan-module__service-note,
.service-plan-module__notes {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.service-plan-module__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-plan-module__details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.service-plan-module__details summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}
.service-plan-module__details summary::-webkit-details-marker {
  display: none;
}
.service-plan-module__details summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--brand);
}
.service-plan-module__details[open] summary::after {
  content: "-";
}
.service-plan-module__detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.service-plan-module__detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #f8fafc;
}
.service-plan-module__detail-grid span,
.service-plan-module__worker-card span,
.service-plan-module__worker-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.service-plan-module__detail-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}
.service-plan-module__mini-list {
  display: grid;
  gap: 8px;
}
.service-plan-module__worker-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.service-plan-module__worker-card strong {
  display: block;
}
.service-plan-module__course-summary {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  margin: 10px 0;
}
.service-plan-module__course-summary span,
.service-plan-module__course-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.service-plan-module__course-summary strong {
  font-size: 16px;
}
.service-plan-module__training-form {
  border: 1px solid rgba(0, 123, 191, .16);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
  margin-top: 10px;
}
.service-plan-module__training-check {
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.service-plan-module__training-form select[multiple] {
  min-height: 128px;
}
.service-plan-module__badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.service-plan-module__badge--completed,
.service-plan-module__badge--active {
  background: #dcfce7;
  color: #166534;
}
.service-plan-module__badge--critical,
.service-plan-module__badge--overdue {
  background: #fee2e2;
  color: #991b1b;
}
.service-plan-module__badge--in_progress {
  background: #dbeafe;
  color: #1d4ed8;
}
.service-plan-module__badge--planned {
  background: #fef3c7;
  color: #92400e;
}
.service-plan-module__badge--not_started {
  background: #fee2e2;
  color: #991b1b;
}
.service-plan-module__badge--not_applicable,
.service-plan-module__badge--cancelled,
.service-plan-module__badge--suspended {
  background: #f1f5f9;
  color: #475569;
}
.service-plan-module__empty {
  color: var(--muted);
  margin: 0;
}
.service-plan-module__activity-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.service-plan-module__activity-kpis article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  min-width: 0;
}
.service-plan-module__activity-kpis span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.service-plan-module__activity-kpis strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-plan-module__activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.service-plan-module__activity-tabs {
  display: grid;
  gap: 10px;
}
.service-plan-module__activity-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-plan-module__activity-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-plan-module__activity-nav label {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
}
.service-plan-module__activity-panel {
  display: none;
}
.service-plan-module__activity-tabs > input:nth-of-type(1):checked ~ .service-plan-module__activity-nav label:nth-child(1),
.service-plan-module__activity-tabs > input:nth-of-type(2):checked ~ .service-plan-module__activity-nav label:nth-child(2),
.service-plan-module__activity-tabs > input:nth-of-type(3):checked ~ .service-plan-module__activity-nav label:nth-child(3),
.service-plan-module__activity-tabs > input:nth-of-type(4):checked ~ .service-plan-module__activity-nav label:nth-child(4),
.service-plan-module__activity-tabs > input:nth-of-type(5):checked ~ .service-plan-module__activity-nav label:nth-child(5) {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.service-plan-module__activity-tabs > input:nth-of-type(1):checked ~ .service-plan-module__activity-panel--services,
.service-plan-module__activity-tabs > input:nth-of-type(2):checked ~ .service-plan-module__activity-panel--activities,
.service-plan-module__activity-tabs > input:nth-of-type(3):checked ~ .service-plan-module__activity-panel--courses,
.service-plan-module__activity-tabs > input:nth-of-type(4):checked ~ .service-plan-module__activity-panel--deadlines,
.service-plan-module__activity-tabs > input:nth-of-type(5):checked ~ .service-plan-module__activity-panel--notes {
  display: block;
}
.service-plan-module__activity-list {
  display: grid;
  gap: 7px;
}
.service-plan-module__activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}
.service-plan-module__activity-row strong,
.service-plan-module__activity-row span {
  display: block;
  min-width: 0;
}
.service-plan-module__activity-row span,
.service-plan-module__activity-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.service-plan-module__activity-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.service-plan-module__activity-note p {
  color: var(--muted);
  margin: 4px 0 0;
}
@media (max-width: 900px) {
  .service-plan-module__activity-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-plan-module__activity-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}
.dialog-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}
.dialog-section summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}
.dialog-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.company-service-plan-editor {
  display: grid;
  gap: 10px;
}
.company-service-plan-editor__table {
  display: grid;
  gap: 6px;
}
.company-service-plan-editor__head,
.company-service-plan-editor__row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 70px 86px 86px minmax(120px, 1fr);
  gap: 8px;
  align-items: center;
}
.company-service-plan-editor__head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.company-service-plan-editor__row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.company-service-plan-editor__row input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 8px;
}
.company-service-plan-editor__workers {
  grid-column: 1 / -1;
}
.company-service-plan-editor__workers summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 34px;
  padding: 7px 9px;
}
.company-service-plan-editor__workers summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.company-service-plan-editor__workers div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.company-service-plan-editor__worker-dropdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
}
.company-service-plan-editor__workers label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 6px;
}
.company-service-plan-editor__workers label:hover {
  background: #f8fafc;
}
.company-service-plan-editor__workers input[type="checkbox"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.company-service-plan-editor__workers label span {
  min-width: 0;
}
  border-radius: 8px;
  padding: 7px;
}
.print-report { display: none; }
.report-header, .report-logo, .report-footer, .report-filters { display: flex; }
.report-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid #0f766e;
  padding-bottom: 18px;
  margin-bottom: 14px;
}
.report-logo { align-items: center; gap: 12px; }
.report-logo img {
  width: 170px;
  height: auto;
  object-fit: contain;
}
.report-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.report-logo strong { display: block; font-size: 18px; }
.report-logo span, .report-meta p, .report-footer { color: #5b6475; }
.report-meta { text-align: right; }
.report-meta h1 { font-size: 21px; margin-bottom: 4px; color: #172033; }
.report-filters { flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.report-filters span {
  border: 1px solid #cfd7e6;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  color: #263247;
}
.report-table {
  min-width: 0;
  border: 1px solid #cfd7e6;
  font-size: 11.5px;
}
.report-table th {
  background: #eef3f8;
  color: #172033;
}
.report-table th, .report-table td {
  border: 1px solid #cfd7e6;
  padding: 7px;
  vertical-align: top;
}
.report-state {
  font-weight: 800;
  white-space: nowrap;
}
.report-state.expired { color: var(--danger); }
.report-state.due { color: var(--warning); }
.report-state.valid { color: var(--success); }
.report-footer {
  justify-content: space-between;
  border-top: 1px solid #cfd7e6;
  margin-top: 18px;
  padding-top: 10px;
  font-size: 11px;
}
.mobile-only { display: none; }
.ops-module {
  display: grid;
  gap: 16px;
}
.ops-module__hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.ops-module__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.ops-module__hero h2 {
  margin-bottom: 4px;
}
.ops-module__hero p,
.ops-module__empty {
  color: var(--muted);
  margin-bottom: 0;
}
.ops-module__refresh {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.ops-module__refresh svg,
.ops-module__panel svg,
.ops-module__actions svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.ops-module__loading {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}
.ops-module__kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ops-module__kpis article,
.ops-module__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.ops-module__kpis article {
  padding: 14px;
}
.ops-module__kpis strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.ops-module__kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.ops-module__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ops-module__panel {
  min-width: 0;
  padding: 15px;
}
.ops-module__panel--wide {
  grid-column: 1 / -1;
}
.ops-module__panel header {
  margin-bottom: 12px;
}
.ops-module__panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 16px;
}
.ops-module__list {
  display: grid;
  gap: 8px;
}
.ops-module__mini-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ops-module__mini-kpis span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}
.ops-module__row {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--line);
  border-radius: 6px;
  background: #f9fbfd;
  padding: 10px 11px;
}
.ops-module__row--high {
  border-left-color: var(--warning);
  background: #fff8ed;
}
.ops-module__row--urgent {
  border-left-color: var(--danger);
  background: #fff5f5;
}
.ops-module__row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.ops-module__row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.ops-module__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ops-module__actions button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #b8c2d4;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
}
.ops-module__auto-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  padding: 11px 12px;
}
.ops-module__auto-result span,
.ops-module__auto-result p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.ops-module__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-module__tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}
.ops-module__tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.ops-module__task-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ops-module__task-layout--readonly {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}
.ops-module__task-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ops-module__task-form,
.ops-module__filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.ops-module__task-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 15px;
}
.ops-module__task-form h3,
.ops-module__full {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.ops-module__task-form label,
.ops-module__filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.ops-module__task-form input,
.ops-module__task-form select,
.ops-module__task-form textarea,
.ops-module__filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}
.ops-module__form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ops-module__form-actions button,
.ops-module__card-actions button {
  min-height: 36px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.ops-module__form-actions .ops-module__secondary,
.ops-module__card-actions button:nth-child(n+2) {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.ops-module__filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.ops-module__task-list {
  display: grid;
  gap: 10px;
}
.ops-module__task-card {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.ops-module__task-card--high {
  border-left-color: var(--warning);
}
.ops-module__task-card--urgent {
  border-left-color: var(--danger);
}
.ops-module__task-card h3 {
  margin-bottom: 5px;
}
.ops-module__task-card p {
  color: var(--muted);
  margin-bottom: 0;
}
.ops-module__task-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.ops-module__task-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.ops-module__task-card dd {
  margin: 3px 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}
.ops-module__badges,
.ops-module__card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ops-module__badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.ops-module__badge--high {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.ops-module__badge--urgent {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.ops-module__badge--low {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.ops-module__workflow-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ops-module__workflow-start,
.ops-module__workflow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.ops-module__workflow-start {
  display: grid;
  gap: 12px;
  padding: 15px;
}
.ops-module__workflow-start label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.ops-module__workflow-start select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}
.ops-module__workflow-start button,
.ops-module__workflow-step button {
  min-height: 36px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.ops-module__workflow-main,
.ops-module__workflow-list,
.ops-module__workflow-steps {
  display: grid;
  gap: 10px;
}
.ops-module__workflow-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.ops-module__workflow-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.ops-module__workflow-card header p,
.ops-module__workflow-tasks {
  color: var(--muted);
  margin-bottom: 0;
}
.ops-module__progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.ops-module__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.ops-module__workflow-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--line);
  border-radius: 6px;
  background: #f9fbfd;
  padding: 10px 11px;
}
.ops-module__workflow-step span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.ops-module__workflow-step--completed {
  border-left-color: var(--success);
  background: #f7fff9;
}
.ops-module__workflow-step--in_progress {
  border-left-color: var(--warning);
  background: #fff8ed;
}
.doc-module {
  display: grid;
  gap: 16px;
}
.doc-module__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
  gap: 16px;
  align-items: end;
}
.doc-module__head h2 {
  margin-bottom: 4px;
}
.doc-module__head p,
.doc-module__hint {
  color: var(--muted);
  margin-bottom: 0;
}
.doc-module__company,
.doc-module__form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.doc-module__company select,
.doc-module__company input,
.doc-module__form input,
.doc-module__form select,
.doc-module__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.doc-module__selector-stack {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(240px, 1fr);
  gap: 10px;
  align-items: end;
}
.doc-module__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.doc-module__workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.doc-module__workflow span,
.doc-module__pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.doc-module__tab,
.doc-module__primary {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.doc-module__tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.doc-module__primary {
  width: fit-content;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.doc-module__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.doc-module__section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.doc-module__section-head h3,
.doc-module__section-head p {
  margin: 0;
}
.doc-module__section-head p {
  color: var(--muted);
  font-size: 13px;
  max-width: 880px;
}
.doc-module__panel,
.doc-module__metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.doc-module__panel--wide {
  grid-column: 1 / -1;
}
.doc-module__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}
.doc-module__facts div {
  display: grid;
  gap: 4px;
}
.doc-module__facts dt,
.doc-module__metric span {
  color: var(--muted);
  font-size: 12px;
}
.doc-module__facts dd {
  margin: 0;
  font-weight: 700;
}
.doc-module__metric strong {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
}
.doc-module__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.doc-module__form h3,
.doc-module__full {
  grid-column: 1 / -1;
}
.doc-module__form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.doc-module__form input[type="checkbox"] {
  width: auto;
}
.doc-module__checklist-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}
.doc-module__checklist-block h4 {
  margin: 0;
}
.doc-module__check-grid,
.doc-module__risk-map,
.doc-module__tool-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.doc-module__risk-map label,
.doc-module__tool-strip article {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.doc-module__risk-map span,
.doc-module__tool-strip article {
  display: grid;
  gap: 3px;
}
.doc-module__risk-map small,
.doc-module__tool-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.doc-module__tool-strip {
  margin-bottom: 12px;
}
.doc-module__home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr);
  gap: 14px;
}
.doc-module__home {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
}
.doc-module__home--quick {
  grid-template-columns: minmax(0, 1fr);
}
.doc-module__ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}
.doc-module__ai-grid .ai-module {
  margin: 0;
}
.doc-module__ai-details summary,
.doc-module details.doc-module__panel summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}
.doc-module__ai-details[open] {
  display: block;
}
.doc-module__client-card {
  grid-column: 1 / -1;
}
.doc-module__client-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 14px;
  align-items: start;
}
.doc-module__client-layout > div > strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}
.doc-module__site-filter {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.doc-module__status-grid,
.doc-module__availability,
.doc-module__template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.doc-module__availability--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.doc-module__status-card,
.doc-module__availability-item,
.doc-module__template-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.doc-module__status-card strong,
.doc-module__availability-item strong,
.doc-module__template-card h4 {
  display: block;
  margin: 0 0 5px;
}
.doc-module__status-card span,
.doc-module__availability-item span,
.doc-module__template-card p,
.doc-module__template-card span {
  color: var(--muted);
  font-size: 12px;
}
.doc-module__template-readiness {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.doc-module__template-readiness--ready {
  background: #ecfdf3;
  color: #027a48;
}
.doc-module__template-readiness--draft {
  background: #fff8e6;
  color: #a15c07;
}
.doc-module__template-readiness--skeleton {
  background: #f2f4f7;
  color: #475467;
}
.doc-module__status-card.is-complete,
.doc-module__availability-item.is-complete {
  border-color: #bbf7d0;
  background: #f7fff9;
}
.doc-module__status-card.is-missing,
.doc-module__availability-item.is-warning {
  border-color: #fde68a;
  background: #fffdf3;
}
.doc-module__quick-actions,
.doc-module__suggestions {
  display: grid;
  gap: 8px;
}
.doc-module__quick-document-groups {
  display: grid;
  gap: 12px;
}
.doc-module__quick-document-groups article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.doc-module__quick-document-groups h4 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 14px;
}
.doc-module__quick-document-groups article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-module__progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
  margin: 8px 0 4px;
}
.doc-module__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.doc-module__step-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  display: grid;
  gap: 3px;
  color: var(--ink);
}
.doc-module__step-row:hover,
.doc-module__step-row.is-active {
  border-color: var(--brand);
  background: #f5fbff;
}
.doc-module__step-row span {
  color: var(--muted);
  font-size: 12px;
}
.doc-module__warning-list,
.doc-module__mini-list {
  display: grid;
  gap: 8px;
}
.doc-module__warning-list span,
.doc-module__mini-list > div,
.doc-module__mini-list > span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf3;
  padding: 9px 10px;
  font-size: 13px;
}
.doc-module__warning-list .is-ok {
  background: #f7fff9;
  border-color: #bbf7d0;
}
.doc-module__mini-list > div {
  background: #fbfdff;
}
.doc-module__mini-list strong,
.doc-module__mini-list span {
  display: block;
}
.doc-module__mini-list span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.doc-practice__context {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 14px;
  margin: 14px 0;
}
.doc-practice__context h4 {
  margin: 0 0 10px;
  font-size: 15px;
}
.doc-practice__entity-list {
  display: grid;
  gap: 8px;
}
.doc-practice__entity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
}
.doc-practice__entity-row strong,
.doc-practice__entity-row span,
.doc-practice__entity-row small {
  display: block;
}
.doc-practice__entity-row span,
.doc-practice__entity-row small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.doc-practice__link-button {
  min-height: 32px;
  white-space: nowrap;
}
.doc-practice__link-button:disabled {
  opacity: 0.65;
  cursor: default;
}
.doc-practice__two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.doc-practice__two-col article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.doc-practice__bullet-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
}
.doc-practice__notes {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
.doc-practice__notes h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.doc-practice__edit-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin: 14px 0;
  padding: 12px;
}
.doc-practice__edit-box summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
}
.doc-practice__edit-box .doc-module__form-grid {
  margin-top: 12px;
}
.doc-practice__inline-edit {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}
.doc-practice__inline-edit:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.doc-practice__edit-box select[multiple] {
  min-height: 132px;
}
.doc-practice__note-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.doc-practice__note-form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 76px;
  padding: 10px;
  resize: vertical;
}
@media (max-width: 780px) {
  .doc-practice__entity-row,
  .doc-practice__two-col {
    grid-template-columns: 1fr;
  }
}
.doc-module__secondary {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  justify-content: flex-start;
  padding: 0 12px;
}
.doc-module__secondary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #f5fcfe;
}
.doc-module__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.doc-module__suggestions span {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 9px 10px;
  font-size: 13px;
}
.doc-module__wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.doc-module__wizard-steps span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
}
.doc-module__wizard-steps .is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.doc-module__wizard-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.doc-module__wizard-step {
  display: grid;
  gap: 4px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 8px;
  text-align: left;
}
.doc-module__wizard-step span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.doc-module__wizard-step.is-active {
  border-color: var(--brand);
  background: #f5fcfe;
  color: var(--brand-dark);
}
.doc-module__wizard-page {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 14px;
}
.doc-module__wizard-page.is-active {
  display: grid;
}
.doc-module__wizard-page h4,
.doc-module__wizard-page > p,
.doc-module__wizard-page > .doc-module__wizard-completeness,
.doc-module__wizard-page > .doc-module__preview,
.doc-module__wizard-page > .doc-module__workflow-options,
.doc-module__wizard-page > .doc-module__archive-flow {
  grid-column: 1 / -1;
}
.doc-module__wizard-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.doc-module__wizard-checks article,
.doc-module__archive-flow span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}
.doc-module__wizard-nav,
.doc-module__archive-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.doc-module__dvr-flow {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}
.doc-module__dvr-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.doc-module__dvr-flow > details.doc-module__dvr-panel > summary {
  cursor: pointer;
  font-weight: 800;
}
.doc-module__dvr-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.doc-module__dvr-panel-head h4,
.doc-module__dvr-panel-head p {
  margin: 0;
}
.doc-module__dvr-panel-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.doc-module__dvr-grid,
.doc-module__dvr-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.doc-module__dvr-grid article,
.doc-module__dvr-requirements article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 10px;
}
.doc-module__dvr-grid span,
.doc-module__dvr-grid small,
.doc-module__dvr-requirements li small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.doc-module__dvr-requirements ul {
  margin: 0;
  padding-left: 18px;
}
.doc-module__dvr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.doc-module__dvr-table th,
.doc-module__dvr-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
.doc-module__dvr-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.doc-module__dvr-review {
  display: grid;
  gap: 8px;
}
.doc-module__dvr-review label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
}
.doc-module__wizard-detail {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}
.doc-module__wizard-detail-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.doc-module__wizard-detail-card h4 {
  margin: 3px 0 4px;
}
.doc-module__wizard-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.doc-module__eyebrow {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.doc-module__wizard-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.doc-module__wizard-detail-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}
.doc-module__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-module__chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}
.doc-module__guided {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}
.doc-module__guided h4,
.doc-module__guided-group strong {
  margin: 0;
}
.doc-module__guided-group {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.doc-module__guided-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.doc-module__guided-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.doc-module__guided-fields label:has(textarea) {
  grid-column: 1 / -1;
}
.doc-module__preview {
  display: grid;
  gap: 12px;
}
.doc-module__preview:empty {
  display: none;
}
.doc-module__preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}
.doc-module__preview-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.doc-module__preview-head h4,
.doc-module__preview-head p {
  margin: 0;
}
.doc-module__preview-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.doc-module__preview-frame {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.doc-module__html-editor-wrap {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}
.doc-module__html-editor {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
}
.doc-module__workflow-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}
.doc-module__workflow-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.doc-module__notice {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
  color: var(--text);
}
.doc-module__completeness {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}
.doc-module__completeness--complete {
  background: #dcfce7;
  color: #166534;
}
.doc-module__completeness--warning {
  background: #fef3c7;
  color: #92400e;
}
.doc-module__completeness--critical {
  background: #fee2e2;
  color: #991b1b;
}
.doc-module__completeness-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.doc-module__completeness-summary article,
.doc-module__missing-summary > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}
.doc-module__completeness-summary strong {
  display: block;
  font-size: 24px;
}
.doc-module__completeness-summary span,
.doc-module__missing-summary p {
  color: var(--muted);
  margin: 4px 0 0;
}
.doc-module__mini-chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  margin: 2px 4px 2px 0;
  font-size: 11px;
  font-weight: 800;
}
.doc-module__mini-chip.is-ok {
  background: #f0fdf4;
  color: #166534;
}
.doc-module__mini-chip.is-warning {
  background: #fffbeb;
  color: #92400e;
}
.doc-module__mini-chip.is-critical {
  background: #fef2f2;
  color: #991b1b;
}
.doc-module__missing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.doc-module__legacy-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}
.doc-module__table-wrap {
  overflow-x: auto;
}
.doc-module__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.doc-module__table th,
.doc-module__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
.doc-module__table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.doc-module__row-actions {
  white-space: nowrap;
}
.doc-module__row-actions .icon-button {
  width: 34px;
  min-height: 34px;
  margin-right: 4px;
}
.risk-module {
  display: grid;
  gap: 14px;
}
.risk-module__summary,
.risk-module__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.risk-module__summary article,
.risk-module__panel,
.risk-module__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.risk-module__summary strong {
  display: block;
  font-size: 24px;
}
.risk-module__summary span,
.risk-module__empty,
.risk-module__card p,
.risk-module__card dt {
  color: var(--muted);
}
.risk-module__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.risk-module__assessment {
  grid-template-columns: 1fr;
}
.risk-module__form h3,
.risk-module__full {
  grid-column: 1 / -1;
}
.risk-module__form-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.risk-module__form-head h3,
.risk-module__form-head p {
  margin: 0;
}
.risk-module__form-head p {
  color: var(--muted);
  font-size: 13px;
  max-width: 820px;
}
.risk-module__step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}
.risk-module__step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e8f1ff;
  color: var(--brand);
  font-weight: 800;
}
.risk-module__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.risk-module__form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.risk-module__form input,
.risk-module__form select,
.risk-module__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.risk-module__form label small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.risk-module__method-info {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}
.risk-module__method-info strong {
  color: var(--ink);
}
.risk-module__method-info small {
  color: var(--muted);
}
.risk-module__method-fields,
.risk-module__calculation {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}
.risk-module__method-fields:empty,
.risk-module__calculation:empty {
  display: none;
}
.risk-module__method-fields h4,
.risk-module__calculation h4 {
  margin: 0;
  color: var(--ink);
}
.risk-module__method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.risk-module__check {
  align-items: center;
  grid-template-columns: auto 1fr;
}
.risk-module__check input {
  width: 16px;
  height: 16px;
}
.risk-module__calculation p {
  margin: 0;
}
.risk-module__recommendations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.risk-module__recommendations span {
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}
.risk-module__recommendation-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.risk-module__recommendation-preview section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.risk-module__recommendation-preview h5 {
  margin: 0 0 6px;
  color: var(--ink);
}
.risk-module__recommendation-preview ul {
  margin: 0;
  padding-left: 18px;
}
.risk-module__recommendation-preview li {
  margin: 4px 0;
}
.risk-module__primary {
  width: fit-content;
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.risk-module__primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.risk-module__secondary {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.risk-module__panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.risk-module__panel-head h3,
.risk-module__panel-head p {
  margin: 0;
}
.risk-module__panel-head p {
  color: var(--muted);
  font-size: 13px;
}
.risk-module__panel-head label {
  display: grid;
  min-width: min(320px, 100%);
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.risk-module__panel-head select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.risk-module__coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.risk-module__documents-workspace {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.risk-module__compact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.risk-module__compact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.risk-module__compact-form input,
.risk-module__compact-form select,
.risk-module__compact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}
.risk-module__mini-list {
  display: grid;
  gap: 8px;
}
.risk-module__mini-list article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}
.risk-module__mini-list span,
.risk-module__mini-list small {
  color: var(--muted);
}
.risk-module__requirement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.risk-module__requirement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}
.risk-module__requirement-card h4,
.risk-module__requirement-card p {
  margin: 0;
}
.risk-module__requirement-card h4 {
  margin-bottom: 8px;
}
.risk-module__requirement-card p,
.risk-module__requirement-card li span {
  color: var(--muted);
  font-size: 12px;
}
.risk-module__requirement-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}
.risk-module__requirement-card li strong,
.risk-module__requirement-card li span {
  display: block;
}
.risk-module__cards {
  display: grid;
  gap: 12px;
}
.risk-module__card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.risk-module__card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.risk-module__card dt {
  font-size: 12px;
}
.risk-module__card dd {
  margin: 0;
  font-weight: 700;
}
.risk-module__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.risk-module__suggestions span,
.risk-module__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.risk-module__badge--medium {
  background: #fff8ed;
  color: #9a4b00;
}
.risk-module__badge--high {
  background: #fff1f2;
  color: #be123c;
}
.risk-module__badge--low {
  background: #ecfeff;
  color: #0e7490;
}
.risk-module__badge--acceptable {
  background: #ecfdf3;
  color: #157347;
}
.risk-module__badge--not_applicable {
  background: #f1f5f9;
  color: #475569;
}
.risk-module__table-wrap {
  overflow-x: auto;
}
.risk-module__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.risk-module__table th,
.risk-module__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
.risk-module__table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.ops-module__panel,
.ops-module__task-form,
.ops-module__filters,
.ops-module__task-card,
.ops-module__workflow-start,
.ops-module__workflow-card,
.doc-module__panel,
.doc-module__metric,
.risk-module__panel,
.risk-module__card,
.worker-profile-module__hero,
.company-profile-module__hero,
.worker-profile-module__summary article,
.company-profile-module__summary article,
.worker-profile-module__panel,
.company-profile-module__panel,
.company-profile-module__progress,
.service-plan-module__panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.ops-module__task-form input,
.ops-module__task-form select,
.ops-module__task-form textarea,
.ops-module__filters select,
.ops-module__workflow-start select,
.doc-module__company select,
.doc-module__form input,
.doc-module__form select,
.doc-module__form textarea,
.risk-module__form input,
.risk-module__form select,
.risk-module__form textarea,
.risk-module__panel-head select,
.service-plan-module__form input,
.service-plan-module__form select,
.service-plan-module__form textarea,
.service-plan-module__item-form input,
.service-plan-module__item-form select,
.service-plan-module__item-form textarea,
.service-plan-module__training-form input,
.service-plan-module__training-form select,
.service-plan-module__training-form textarea {
  border-radius: var(--radius);
  min-height: 40px;
}

.ops-module__table-wrap,
.doc-module__table-wrap,
.risk-module__table-wrap,
.worker-profile-module__table-wrap,
.company-profile-module__table-wrap,
.service-plan-module__table-wrap {
  border-radius: var(--radius);
}

.ops-module__panel header,
.doc-module__head,
.service-plan-module__head {
  gap: 14px;
}

.ops-module__tab,
.doc-module__tab,
.doc-module__primary,
.risk-module__primary,
.risk-module__secondary,
.service-plan-module__catalog-row,
.service-plan-module__badge,
.worker-profile-module__badge,
.company-profile-module__badge {
  border-radius: var(--radius);
}
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #172033; }
  body * { visibility: hidden; }
  .print-report, .print-report * { visibility: visible; }
  .print-report {
    display: block;
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    padding: 0;
  }
  .sidebar, .topbar, .toolbar, .actions, .login-panel, .content, dialog, .toast { display: none !important; }
  body { background: #fff; }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; page-break-after: auto; }
}
@media (max-width: 920px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    display: block;
  }
  .sidebar {
    position: fixed;
    width: 264px;
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 5;
  }
  .app-shell.sidebar-collapsed .sidebar {
    width: 264px;
    padding: 18px 14px;
  }
  .app-shell.sidebar-collapsed .brand {
    justify-content: center;
    padding: 6px 4px 16px;
  }
  .app-shell.sidebar-collapsed .brand-logo {
    width: min(168px, 100%);
    max-height: 58px;
  }
  .app-shell.sidebar-collapsed .brand div,
  .app-shell.sidebar-collapsed .nav-item span,
  .app-shell.sidebar-collapsed .nav-section-label,
  .app-shell.sidebar-collapsed .sidebar-footer {
    display: block;
  }
  .app-shell.sidebar-collapsed .nav-item {
    justify-content: flex-start;
    padding: 0 11px;
  }
  .sidebar-toggle {
    display: none;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: inline-flex; }
  .topbar { align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-panel { grid-template-columns: 1fr; margin: 24px 16px; }
  .worker-profile-module__summary,
  .company-profile-module__summary,
  .worker-profile-module__grid,
  .company-profile-module__grid,
  .worker-profile-module__doc-actions,
  .company-profile-module__doc-actions,
  .company-profile-module__status-grid,
  .company-profile-module__document-status,
  .company-profile-module__quick-actions,
  .worker-profile-module__status-grid,
  .worker-profile-module__document-status,
  .worker-profile-module__quick-actions,
  .service-plan-module__contract-head,
  .service-plan-module__contract-row,
  .service-plan-module__stats,
  .service-plan-module__detail-grid,
  .service-plan-module__worker-card,
  .service-plan-module__form,
  .service-plan-module__item-form,
  .service-plan-module__training-form,
  .service-plan-module__catalog-row,
  .service-plan-module__catalog-row:not(:has(.service-plan-module__workers)),
  .company-service-plan-editor__head,
  .company-service-plan-editor__row,
  .dialog-section__grid { grid-template-columns: 1fr; }
  .service-plan-module__service-top {
    display: grid;
  }
  .service-plan-module__quick-actions .ghost-button {
    flex: 1 1 132px;
  }
  .worker-profile-module__hero,
  .company-profile-module__hero { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { padding: 14px 16px; flex-direction: column; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .content { padding: 16px; }
  .bulk-actions-bar {
    align-items: stretch;
  }
  .bulk-actions-bar strong {
    flex: 1 0 100%;
  }
  .bulk-actions-bar__buttons {
    flex: 1 1 auto;
  }
  .bulk-actions-bar .ghost-button {
    min-width: 34px;
  }
  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .primary-button span, .ghost-button span { display: none; }
  .admin-tool { display: none; }
  .table-wrap { overflow: visible; }
  .doc-module__head,
  .doc-module__selector-stack,
  .doc-module__home,
  .doc-module__client-layout,
  .ops-module__hero,
  .ops-module__kpis,
  .ops-module__grid,
  .ops-module__actions,
  .ops-module__task-layout,
  .ops-module__task-form,
  .ops-module__filters,
  .ops-module__task-card dl,
  .ops-module__workflow-layout,
  .doc-module__grid,
  .doc-module__workflow,
  .doc-module__check-grid,
  .doc-module__risk-map,
  .doc-module__tool-strip,
  .doc-module__home-grid,
  .doc-module__ai-grid,
  .doc-module__status-grid,
  .doc-module__availability,
  .doc-module__template-grid,
  .doc-module__wizard-steps,
  .doc-module__wizard-flow,
  .doc-module__wizard-page,
  .doc-module__wizard-checks,
  .doc-module__dvr-grid,
  .doc-module__dvr-requirements,
  .doc-module__wizard-detail-grid,
  .doc-module__guided-fields,
  .doc-module__facts,
  .doc-module__form,
  .risk-module__summary,
  .risk-module__layout,
  .risk-module__form,
  .risk-module__form-grid,
  .risk-module__documents-workspace,
  .risk-module__compact-form,
  .risk-module__method-grid,
  .risk-module__recommendation-preview,
  .risk-module__requirement-grid {
    grid-template-columns: 1fr;
  }
  .risk-module__step {
    grid-template-columns: 1fr;
  }
  .risk-module__panel-head {
    display: grid;
  }
  table:not(.report-table), table:not(.report-table) thead, table:not(.report-table) tbody, table:not(.report-table) th, table:not(.report-table) td, table:not(.report-table) tr {
    display: block;
    min-width: 0;
  }
  table:not(.report-table) { min-width: 0; }
  table:not(.report-table) thead { display: none; }
  table:not(.report-table) tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  table:not(.report-table) td {
    border-bottom: 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 8px 12px;
  }
  table:not(.report-table) td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
  }
  table:not(.report-table) td.actions {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
    padding-left: 12px;
  }
  table:not(.report-table) td.actions::before { content: ""; }
  table:not(.report-table) td:first-child {
    grid-template-columns: 0 minmax(0, 1fr);
    padding-left: 12px;
  }
table:not(.report-table) td:first-child::before { content: ""; }
}

@media (max-width: 760px) {
  .table-wrap,
  .documents-module__table-wrap,
  .worker-profile-module__table-wrap,
  .company-profile-module__table-wrap,
  .service-plan-module__table-wrap,
  .ops-module__table-wrap,
  .doc-module__table-wrap,
  .risk-module__table-wrap {
    overflow: visible !important;
    max-width: 100%;
  }

  table:not(.report-table),
  table:not(.report-table) thead,
  table:not(.report-table) tbody,
  table:not(.report-table) tr,
  table:not(.report-table) th,
  table:not(.report-table) td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  table:not(.report-table) {
    table-layout: auto !important;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  table:not(.report-table) thead {
    display: none;
  }

  table:not(.report-table) tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    margin-bottom: 10px;
    padding: 8px 0;
    overflow: hidden;
  }

  table:not(.report-table) td,
  table:not(.report-table) td:first-child {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 0;
    padding: 8px 12px;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  table:not(.report-table) td::before,
  table:not(.report-table) td:first-child::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
  }

  table:not(.report-table) td:not([data-label]),
  table:not(.report-table) td:first-child:not([data-label]) {
    grid-template-columns: 1fr;
  }

  table:not(.report-table) td:not([data-label])::before,
  table:not(.report-table) td:first-child:not([data-label])::before {
    display: none;
    content: "";
  }

  table:not(.report-table) td.actions,
  table:not(.report-table) td[data-label="Azioni"],
  table:not(.report-table) .actions {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 12px 10px;
    text-align: left;
    white-space: normal !important;
    overflow: visible !important;
  }

  table:not(.report-table) td.actions::before,
  table:not(.report-table) td[data-label="Azioni"]::before {
    display: none;
    content: "";
  }

  table .icon-button,
  .actions .icon-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    flex: 0 0 30px;
  }

  table .icon-button svg,
  .actions .icon-button svg {
    width: 14px;
    height: 14px;
  }

  .record-summary__grid {
    grid-template-columns: 1fr;
  }

  .record-summary__actions {
    align-items: stretch;
  }

  .record-summary__actions .ghost-button {
    justify-content: center;
  }

  .reminder-cron-card {
    grid-template-columns: 1fr;
  }

  .reminder-cron-card__actions .ghost-button {
    justify-content: center;
  }

  .documents-module__title,
  .documents-module__title span,
  .documents-module__title small,
  .service-plan-module__table td span,
  .worker-profile-module__table td,
  .company-profile-module__table td {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: anywhere;
  }
}

.ai-module {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
  margin: 16px 0;
}

.ai-module__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ai-module__eyebrow {
  display: block;
  color: #0f6aa8;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.ai-module h3,
.ai-module h4,
.ai-module p {
  margin: 0;
}

.ai-module__head h3 {
  font-size: 1rem;
  color: #172033;
}

.ai-module__head p,
.ai-module__empty,
.ai-module__meta {
  color: #667085;
  font-size: .84rem;
  line-height: 1.45;
}

.ai-module__body {
  margin-top: 14px;
}

.ai-module__suggestion {
  display: grid;
  gap: 10px;
}

.ai-module__card {
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.ai-module__card h4 {
  color: #172033;
  font-size: .88rem;
  margin-bottom: 6px;
}

.ai-module__card p,
.ai-module__card li {
  color: #344054;
  font-size: .86rem;
  line-height: 1.5;
}

.ai-module__card ul {
  margin: 0;
  padding-left: 18px;
}

.ai-module__card pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  color: #344054;
  font-size: .78rem;
}

.ai-module__meta,
.ai-module__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ai-module__loading {
  color: #0f6aa8;
  font-weight: 600;
}

.ai-module__error {
  color: #b42318;
  font-weight: 600;
}

.company-profile-module__ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-profile-module__relations {
  display: grid;
  gap: 14px;
}

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

.company-profile-module__relations-grid article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.company-profile-module__relations-grid article.is-warning {
  border-color: #bee7ed;
  background: #e9fafd;
}

.company-profile-module__relations-grid i,
.company-profile-module__relations-grid svg {
  width: 22px;
  height: 22px;
  color: var(--brand-dark);
}

.company-profile-module__relations-grid strong,
.company-profile-module__relations-grid span,
.company-profile-module__relations-grid small {
  display: block;
}

.company-profile-module__relations-grid strong {
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.company-profile-module__relations-grid span {
  margin-top: 3px;
  color: var(--text);
  font-weight: 800;
}

.company-profile-module__relations-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.company-profile-module__relations-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-profile-module__relations-lists section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.company-profile-module__relations-lists h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.company-profile-module__relations-lists article {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.company-profile-module__relations-lists article:last-child {
  border-bottom: 0;
}

.company-profile-module__relations-lists strong {
  color: var(--text);
  font-size: 13px;
}

.company-profile-module__relations-lists span {
  color: var(--muted);
  font-size: 12px;
}

.worker-profile-module__relations {
  display: grid;
  gap: 14px;
}

.worker-profile-module__relations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.worker-profile-module__relations-grid article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.worker-profile-module__relations-grid article.is-warning {
  border-color: #bee7ed;
  background: #e9fafd;
}

.worker-profile-module__relations-grid i,
.worker-profile-module__relations-grid svg {
  width: 22px;
  height: 22px;
  color: var(--brand-dark);
}

.worker-profile-module__relations-grid strong,
.worker-profile-module__relations-grid span,
.worker-profile-module__relations-grid small {
  display: block;
}

.worker-profile-module__relations-grid strong {
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.worker-profile-module__relations-grid span {
  margin-top: 3px;
  color: var(--text);
  font-weight: 800;
}

.worker-profile-module__relations-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.worker-profile-module__relations-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.worker-profile-module__relations-lists section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.worker-profile-module__relations-lists h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.worker-profile-module__relations-lists article {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.worker-profile-module__relations-lists article:last-child {
  border-bottom: 0;
}

.worker-profile-module__relations-lists strong {
  color: var(--text);
  font-size: 13px;
}

.worker-profile-module__relations-lists span {
  color: var(--muted);
  font-size: 12px;
}

.relations-dialog {
  width: min(1040px, calc(100vw - 32px));
  height: min(88vh, 920px);
  max-height: min(88vh, 920px);
  overflow: hidden;
}

.relations-dialog::backdrop {
  background: rgba(15, 23, 42, .34);
}

.relations-dialog__card {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.relations-dialog__card > .dialog-head {
  flex: 0 0 auto;
  margin: 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.relations-dialog__card > .dialog-head h2 {
  color: var(--text);
  font-size: 20px;
}

.relations-dialog__card > .dialog-head p {
  color: var(--muted);
  font-size: 13px;
}

.relations-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 22px;
  background: #f8fbfa;
}

.relations-module {
  display: grid;
  gap: 14px;
}

.relations-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: #eef7f7;
}

.relations-tab {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-weight: 650;
}

.relations-tab.active,
.relations-tab:hover {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: var(--shadow-soft);
}

.relations-module .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 650;
}

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

.relations-module .btn.secondary {
  background: #fff;
  border-color: #cfe2df;
  color: var(--brand-dark);
}

.relations-module .btn.ghost {
  background: transparent;
  color: var(--muted);
}

.relations-module .btn.danger {
  border-color: #fee2e2;
  color: #b91c1c;
}

.relations-module .btn.danger:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.relations-module .btn:hover {
  border-color: var(--brand);
  background: var(--hover);
  color: var(--brand-dark);
}

.relations-module .btn.primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.relations-tab svg,
.topbar-relations svg {
  width: 18px;
  height: 18px;
}

.topbar-relations svg {
  width: 21px;
  height: 21px;
}

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

.relations-card {
  border: 1px solid #dfe9e6;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.relations-card.compact {
  box-shadow: none;
}

.relations-card h3,
.relations-card h4,
.relations-card p {
  margin: 0;
}

.relations-card h3 {
  font-size: 1rem;
}

.relations-card h4 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: .9rem;
}

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

.relations-card-header h3 {
  color: var(--text);
}

.relations-card-header p,
.relations-card > p,
.relations-row p,
.relations-row small {
  color: var(--muted);
}

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

.relations-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.relations-form-grid input,
.relations-form-grid select,
.relations-form-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
}

.relations-form-grid textarea {
  min-height: 128px;
  resize: vertical;
}

.relations-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.relations-editor-toolbar .btn {
  min-height: 30px;
  padding: 6px 9px;
}

.relations-form-grid .span-2 {
  grid-column: 1 / -1;
}

.relations-company-picker {
  display: grid;
  gap: 6px;
  max-height: 170px;
  overflow: auto;
  padding: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.relations-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, .7fr);
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13px;
}

.relations-check-row:hover {
  background: var(--hover);
}

.relations-check-row small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relations-actions,
.relations-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.relations-actions {
  margin-top: 12px;
}

.relations-actions--sticky {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  margin: 14px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

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

.relations-list.compact {
  gap: 6px;
}

.relations-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.relations-row:hover {
  border-color: #bee7ed;
  background: #f5fcfd;
}

.relations-row.is-focused {
  border-color: var(--brand);
  background: #e9fafd;
}

.relations-row.compact {
  padding: 9px 10px;
}

.relations-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

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

.relations-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.relations-pill.is-read {
  background: #eef6f4;
  color: #58706a;
}

.relations-pill.is-unread {
  background: #e9fafd;
  color: var(--brand-dark);
}

.relations-archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.relations-archive-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.relations-archive-stats article {
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 9px 10px;
}

.relations-archive-stats article.is-warning {
  border-color: #bee7ed;
  background: #e9fafd;
}

.relations-archive-stats strong,
.relations-archive-stats span {
  display: block;
}

.relations-archive-stats strong {
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1;
}

.relations-archive-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.relations-archive-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  gap: 12px;
  margin-bottom: 12px;
}

.relations-event-tools {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 190px);
}

.relations-archive-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.relations-archive-tools input,
.relations-archive-tools select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
}

.relations-company-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  overflow: hidden;
}

.relations-company-details summary {
  cursor: pointer;
  padding: 11px 12px;
  color: var(--brand-dark);
  font-weight: 800;
}

.relations-company-details .relations-company-picker {
  margin: 0 12px 10px;
  max-height: 150px;
  background: #fff;
}

.relations-help {
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.relations-event-row {
  align-items: start;
}

.relations-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.relations-event-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f1f7f5;
  color: #58706a;
  font-size: 11px;
  font-weight: 750;
}

.relations-event-requests {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.relations-event-requests article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #bee7ed;
  border-radius: 8px;
  background: #f3fcfd;
  padding: 10px;
}

.relations-event-requests strong,
.relations-event-requests span {
  display: block;
}

.relations-event-requests span {
  color: var(--muted);
  font-size: 12px;
}

.relations-notice {
  display: grid;
  gap: 14px;
}

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

.relations-notice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px;
  text-align: left;
}

.relations-notice-card.has-items {
  border-color: #fca5a5;
  background: #fff7f7;
}

.relations-notice-card svg {
  width: 22px;
  height: 22px;
  color: var(--brand-dark);
}

.relations-notice-card strong {
  font-size: 24px;
  line-height: 1;
}

.relations-notice-card span {
  color: var(--muted);
  font-weight: 800;
}

.public-relations-host {
  min-height: 100vh;
  background: var(--bg);
}

.public-relations {
  width: min(760px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  align-content: center;
  gap: 18px;
}

.public-relations__logo {
  width: min(190px, 70vw);
  margin: 0 auto;
}

.public-relations__card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.public-relations__card h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.2;
}

.public-relations__card p {
  margin: 0 0 5px;
  color: var(--muted);
}

.public-relations__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-relations__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.public-relations__grid .span-2 {
  grid-column: 1 / -1;
}

.public-relations__grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.public-relations__grid input,
.public-relations__grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
}

.public-relations__check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--text) !important;
  font-weight: 600 !important;
}

.public-relations__check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.public-relations__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

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

.public-relations__questions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.public-relations__question {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
  color: var(--text);
}

.public-relations__question span,
.public-relations__question legend {
  color: var(--text);
  font-weight: 800;
}

.public-relations__question textarea,
.public-relations__question input:not([type="radio"]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
}

.public-relations__rating {
  margin: 0;
}

.public-relations__rating > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-relations__rating label {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.public-relations__rating input {
  position: absolute;
  opacity: 0;
}

.public-relations__rating label:has(input:checked) {
  border-color: var(--brand);
  background: #e9fafd;
  color: var(--brand-dark);
}

.relations-message {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  line-height: 1.6;
}

.relations-loading {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .notifications-dialog {
    width: 100vw;
  }

  .global-search {
    width: calc(100vw - 18px);
  }

  .global-search-trigger kbd {
    display: none;
  }

  .global-search__result {
    align-items: flex-start;
  }

  .global-search__result .ghost-button span {
    display: none;
  }

  .company-profile-module__ai-grid {
    grid-template-columns: 1fr;
  }

  .company-profile-module__relations-grid,
  .company-profile-module__relations-lists,
  .worker-profile-module__relations-grid,
  .worker-profile-module__relations-lists {
    grid-template-columns: 1fr;
  }

  .relations-form-grid,
  .relations-row,
  .relations-check-row,
  .relations-archive-hero,
  .relations-archive-tools,
  .relations-event-requests article,
  .relations-notice-grid,
  .public-relations__grid {
    grid-template-columns: 1fr;
  }

  .public-relations__grid .span-2 {
    grid-column: auto;
  }

  .relations-row-actions,
  .relations-actions {
    justify-content: flex-start;
  }

  .course-signature-dialog {
    width: calc(100vw - 14px);
  }

  .course-signature__layout {
    grid-template-columns: 1fr;
  }

  .course-signature__viewer {
    min-height: 56vh;
  }

  .course-signature__controls {
    order: -1;
  }
}
