:root {
  color-scheme: light;
  --bg-main: #f2f6fb;
  --bg-panel: #ffffff;
  --line: #d8e2ef;
  --text-main: #0f2740;
  --text-muted: #5e7186;
  --sea-700: #0a5673;
  --sea-500: #118ab2;
  --admin-700: #3b2f65;
  --admin-500: #5963b8;
  --success-soft: #d9f5e8;
  --shadow-soft: 0 10px 30px rgba(15, 39, 64, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% -10%, #dceeff 0%, transparent 36%),
    radial-gradient(circle at 85% 110%, #dff8ff 0%, transparent 42%),
    var(--bg-main);
}

a {
  color: inherit;
}

.boot-loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.boot-loader__panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(440px, 100%);
  box-shadow: var(--shadow-soft);
  text-align: center;
  padding: 28px;
}

.boot-loader__panel p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-weight: 600;
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 4px solid #d3e1f0;
  border-top-color: var(--sea-500);
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  padding: 26px 20px;
  color: #eef7ff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar--seafarer {
  background: linear-gradient(180deg, var(--sea-700), #07394d);
}

.sidebar--admin {
  background: linear-gradient(180deg, var(--admin-700), #2a2248);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.brand__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand__subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.nav {
  display: grid;
  gap: 22px;
}

.nav-section {
  display: grid;
  gap: 10px;
}

.nav-section__title {
  padding: 0 12px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(238, 247, 255, 0.96);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-section__items {
  display: grid;
  gap: 8px;
}

.nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav__item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav__item.router-link-active {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.nav__badge {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.user-mail {
  font-size: 12px;
  opacity: 0.9;
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

.btn--topbar {
  background: #f5f9fe;
  border-color: #d7e2ef;
  color: #31506f;
  padding: 0 14px;
}

.btn--topbar:hover {
  background: #e8f0fb;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sea-500);
  color: #fff;
  text-decoration: none;
  padding: 0 20px;
}

.content {
  padding: 26px;
}

.topbar {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar__title {
  margin: 0;
  font-size: 22px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e2f4fb;
  color: #11617d;
  font-size: 12px;
  font-weight: 700;
}

.topbar__badge--admin {
  background: #ece9ff;
  color: #49368f;
}

.content__body {
  margin-top: 18px;
}

.view-stack {
  display: grid;
  gap: 16px;
}

.hero-card,
.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.hero-card h2,
.info-card h3 {
  margin: 0 0 8px;
}

.hero-card p,
.info-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-card--seafarer {
  border-left: 4px solid var(--sea-500);
}

.profile-progress {
  margin-top: 18px;
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
  padding: 16px;
}

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

.profile-progress__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55708c;
}

.profile-progress__percent {
  margin-top: 6px;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  color: var(--text-main);
}

.profile-progress__track {
  margin-top: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e5edf6;
  overflow: hidden;
}

.profile-progress__fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s ease, background 0.25s ease;
}

.profile-progress__fill--low {
  background: linear-gradient(90deg, #d95555, #ec7d43);
}

.profile-progress__fill--mid {
  background: linear-gradient(90deg, #ec9f3d, #d8be3e);
}

.profile-progress__fill--high {
  background: linear-gradient(90deg, #57b768, #2e9a61);
}

.profile-progress__summary {
  margin: 12px 0 0;
  color: #48617a;
  line-height: 1.6;
}

.hero-card--admin {
  border-left: 4px solid var(--admin-500);
}

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

.grid-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.placeholder-line {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8eff7, #dce7f4);
}

.placeholder-line--short {
  width: 65%;
}

.table-placeholder {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.table-placeholder__head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: #f4f8fc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #54687e;
}

.table-placeholder__row {
  height: 46px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff 0%, #f8fbff 100%);
}

.auth-required-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 26px;
  text-align: center;
}

.auth-card h1 {
  margin: 0 0 10px;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.page-state {
  color: var(--text-muted);
  font-weight: 600;
}

.page-state--soft {
  background: #f6f9fd;
  border: 1px dashed #c9d6e7;
  border-radius: 12px;
  padding: 14px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h3 {
  margin: 0 0 4px;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

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

.section-head--tight {
  margin-bottom: 10px;
}

.tab-switcher {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5f8fd;
}

.tab-switcher__button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: transparent;
  color: #48617a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab-switcher__button.is-active {
  background: #fff;
  color: #2c4672;
  box-shadow: 0 6px 16px rgba(15, 39, 64, 0.08);
}

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.alert--success {
  background: var(--success-soft);
  color: #1f6f49;
  border: 1px solid #9ad7b7;
}

.alert--error {
  background: #ffe9e9;
  color: #9a2a2a;
  border: 1px solid #f0b6b6;
}

.alert--warning {
  background: #fff6e3;
  color: #8a5b10;
  border: 1px solid #eccb82;
}

.alert--info {
  background: #edf6ff;
  color: #225b8f;
  border: 1px solid #b7d5f2;
}

.alert--inline {
  margin-bottom: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 16px;
}

.split-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: start;
}

.split-workspace--admin {
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.35fr);
}

.split-workspace--masterdata {
  grid-template-columns: minmax(0, 1.55fr) minmax(400px, 1fr);
}

.profile-form-card,
.vacancy-form-card,
.vacancy-list-card,
.section-list-card,
.list-card,
.detail-card {
  overflow: hidden;
}

.section-stack {
  display: grid;
  gap: 14px;
}

.vacancy-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.subsection-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfdff;
}

.candidate-workspace {
  display: grid;
  gap: 16px;
}

.candidate-workspace__switcher {
  width: fit-content;
}

.candidate-workspace__body {
  margin-top: 2px;
}

.candidate-workspace__sidebar,
.candidate-workspace__content,
.candidate-workspace__body--single {
  min-width: 0;
}

.candidate-workspace__sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.candidate-workspace__content,
.candidate-workspace__body--single {
  background: #fff;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control__button {
  min-height: 40px;
  border: 1px solid #ccd9ec;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #35506f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.segmented-control__button.is-active {
  background: #e7f4ff;
  border-color: #84b8dc;
  color: #155f7a;
}

.record-table {
  display: grid;
  gap: 10px;
}

.section-cluster {
  display: grid;
  gap: 10px;
}

.section-cluster + .section-cluster {
  margin-top: 18px;
}

.section-cluster__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #61768d;
}

.record-table__row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.record-table__row:hover {
  background: #f8fbff;
}

.record-table__row.is-selected {
  border-color: #8bb8df;
  background: #eef7ff;
}

.record-table__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.record-table__meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.masterdata-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.masterdata-filter-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: #334a63;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c9d7e8;
  border-radius: 10px;
  background: #fff;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text-main);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: #f3f7fb;
  color: #70849b;
  cursor: not-allowed;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.field-note--warning {
  color: #8a5b10;
}

.summary-preview {
  background: #f5f9fe;
  color: #4d6178;
}

.note-preview {
  background: #fff8eb;
  border: 1px solid #f0d9a8;
  border-radius: 10px;
  color: #7a5a19;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
}

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

.detail-field {
  display: grid;
  gap: 8px;
}

.detail-field--full {
  grid-column: 1 / -1;
}

.detail-field > span {
  font-size: 13px;
  font-weight: 700;
  color: #4f6780;
}

.detail-field__value {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #f9fbfe;
  color: var(--text-main);
  line-height: 1.5;
}

.vacancy-preview-card {
  border: 1px solid #d9e4f0;
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(17, 138, 178, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  display: grid;
  gap: 16px;
}

.vacancy-preview-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.vacancy-preview-card__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.vacancy-preview-card__summary {
  margin: 0;
  color: #47607a;
  line-height: 1.7;
}

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

.vacancy-preview-card__meta-item {
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.vacancy-preview-card__meta-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c738b;
}

.vacancy-preview-card__meta-value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.vacancy-preview-card__section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c738b;
}

.vacancy-preview-card__requirements ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-main);
  line-height: 1.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: #84b8dc;
  box-shadow: 0 0 0 3px rgba(17, 138, 178, 0.12);
}

.field--full {
  grid-column: 1 / -1;
}

.field--compact {
  min-width: 240px;
}

.field--toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fbff;
  border: 1px solid #d3deeb;
  border-radius: 10px;
}

.field--toggle input {
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
}

.field--toggle span {
  margin: 0;
}

.vessel-selector {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  background: #e7f5fb;
  color: #155f7a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c8d6e8;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f8fbff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.chip input {
  margin: 0;
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
  flex: 0 0 auto;
}

.chip-grid--selector-list {
  margin-top: 6px;
}

.chip--selector {
  min-height: 38px;
}

.chip--selector input {
  accent-color: #118ab2;
}

.field .chip input[type='checkbox'] {
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.chip--active {
  border-color: #86bde1;
  background: #e8f5ff;
}

.placeholder-panel {
  border: 1px dashed #cad7e7;
  border-radius: 12px;
  padding: 14px;
  background: #f9fbfe;
}

.placeholder-panel h3 {
  margin: 0 0 8px;
}

.placeholder-panel p {
  margin: 0;
}

.documents-workspace {
  display: grid;
  gap: 14px;
}

.documents-workspace__read-only-note {
  justify-self: start;
}

.documents-header {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(17, 138, 178, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.documents-header--admin {
  background:
    radial-gradient(circle at top right, rgba(89, 99, 184, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
}

.documents-header__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

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

.documents-header__title-row h3 {
  margin: 0;
  font-size: 24px;
}

.documents-header__head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.6;
}

.documents-summary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.documents-summary-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d9e4f1;
  box-shadow: 0 8px 22px rgba(15, 39, 64, 0.05);
}

.documents-summary-card__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #61768d;
}

.documents-summary-card__value {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--text-main);
}

.documents-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfdff;
}

.documents-search {
  display: grid;
  gap: 6px;
}

.documents-search span {
  font-size: 13px;
  font-weight: 700;
  color: #334a63;
}

.documents-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d7e8;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

.documents-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.documents-filter-chip {
  min-height: 38px;
  border: 1px solid #d3deec;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #405a74;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.documents-filter-chip.is-active {
  background: #e7f4ff;
  border-color: #8cbad9;
  color: #155f7a;
}

.documents-group-list {
  display: grid;
  gap: 14px;
}

.document-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.document-group__toggle {
  width: 100%;
  border: 0;
  padding: 18px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.document-group__toggle:hover {
  background: #f8fbff;
}

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

.document-group__title-block {
  display: grid;
  gap: 6px;
}

.document-group__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.document-group__subtitle {
  color: var(--text-muted);
  font-size: 13px;
}

.document-group__summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.document-group__counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.document-group__chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef4fb;
  color: #47627d;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.document-group__chevron.is-open {
  transform: rotate(180deg);
}

.document-group__body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.document-type-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #dbe4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.document-type-card__main {
  min-width: 0;
  flex: 1;
}

.document-type-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.document-type-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.document-type-card__helper {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.document-type-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.document-type-card__meta {
  margin-top: 12px;
  color: #55708c;
  font-size: 13px;
  line-height: 1.5;
}

.document-type-card__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
}

.document-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.document-badge--required {
  background: #edf3ff;
  color: #31538d;
}

.document-badge--preferred {
  background: #f6efe3;
  color: #8a6610;
}

.document-badge--optional {
  background: #eff2f7;
  color: #53667b;
}

.locked-documents-state {
  padding: 22px;
  border-radius: 16px;
  border: 1px dashed #c9d8ea;
  background:
    radial-gradient(circle at top left, rgba(17, 138, 178, 0.08), transparent 28%),
    #f8fbff;
}

.locked-documents-state__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #61768d;
}

.locked-documents-state h4 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.locked-documents-state p {
  margin: 0;
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.7;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.inline-actions--compact {
  margin-top: 0;
  align-items: center;
}

.inline-actions--tight {
  margin-top: 0;
}

.section-stack--compact {
  gap: 8px;
}

.table-inline-select {
  min-height: 38px;
  border: 1px solid #c9d7e8;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

.inline-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #f5f8fd;
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  color: #4c627a;
  font-size: 12px;
  font-weight: 700;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions--inline {
  margin-top: 14px;
}

.btn--action,
.btn--action-secondary {
  height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 16px;
}

.btn--action {
  background: var(--sea-500);
  color: #fff;
}

.btn--action:hover {
  background: #0e7aa0;
}

.btn--action:disabled {
  background: #9dc4d4;
  cursor: not-allowed;
}

.btn--action-secondary {
  background: #ecf2fd;
  border-color: #ccd9ec;
  color: #2e4867;
}

.btn--action-secondary:hover {
  background: #e0ebfa;
}

.btn--danger {
  background: #c74c4c;
  color: #fff;
}

.btn--danger:hover {
  background: #b33e3e;
}

.btn--toggle-active {
  background: #118ab2;
  border-color: #118ab2;
  color: #fff;
}

.btn--toggle-active:hover {
  background: #0f7da1;
}

.muted-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.admin-vacancies-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.search-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.search-toolbar input {
  flex: 1;
  border: 1px solid #c9d7e8;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
}

.search-toolbar--tight {
  margin-bottom: 0;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.table-page-size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4d6178;
  font-size: 14px;
  font-weight: 700;
}

.table-page-size select {
  border: 1px solid #c9d7e8;
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text-main);
  background: #fff;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-row--column {
  flex-direction: column;
  align-items: flex-end;
}

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

.mapping-picker {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfdff;
}

.diff-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.diff-table th {
  text-align: left;
  font-size: 12px;
  color: #4f6780;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f5f9fe;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.diff-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e7eef8;
  font-size: 14px;
  vertical-align: top;
}

.vacancy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.vacancy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.masterdata-table {
  min-width: 860px;
}

.masterdata-table--wide {
  min-width: 960px;
}

.vacancy-table th {
  text-align: left;
  font-size: 12px;
  color: #4f6780;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f5f9fe;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.table-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}

.table-sort-btn:hover {
  color: #245786;
}

.vacancy-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e7eef8;
  font-size: 14px;
}

.vacancy-table tbody tr {
  cursor: pointer;
}

.vacancy-table tbody tr:hover {
  background: #f8fbff;
}

.vacancy-table tbody tr.is-selected {
  background: #e9f4ff;
}

.vacancy-table tbody tr.is-blacklisted {
  background: #fff3f3;
}

.vacancy-table tbody tr.is-blacklisted:hover {
  background: #ffe8e8;
}

.vacancy-table tbody tr.is-blacklisted td:first-child {
  box-shadow: inset 4px 0 0 #d95555;
}

.table-row-name {
  font-weight: 800;
  color: var(--text-main);
}

.table-row-sub {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.btn--table-action {
  min-width: 88px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.status-chip--clickable {
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.status-chip--clickable:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.08);
}

.status-chip--clickable:disabled {
  cursor: not-allowed;
  opacity: 0.8;
  transform: none;
  box-shadow: none;
}

.profile-file-chip {
  margin-left: 6px;
  vertical-align: middle;
}

.status-chip--on {
  background: #dcf6e9;
  color: #1f6f49;
}

.status-chip--off {
  background: #f3edf8;
  color: #66517d;
}

.status-chip--complete {
  background: #dcf6e9;
  color: #1f6f49;
}

.status-chip--in-progress {
  background: #eaf3ff;
  color: #245786;
}

.status-chip--placeholder {
  background: #eff2f7;
  color: #52657a;
}

.status-chip--warning {
  background: #fff2db;
  color: #8a5a00;
}

.status-chip--low {
  background: #fde7e7;
  color: #a83a3a;
}

.status-chip--mid {
  background: #fff4da;
  color: #946200;
}

.status-chip--high {
  background: #dcf6e9;
  color: #1f6f49;
}

.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
}

.app-dialog {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 39, 64, 0.2);
  padding: 22px;
}

.app-dialog--danger {
  border-top: 4px solid #c74c4c;
}

.app-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.app-dialog__header h3 {
  margin: 0;
  font-size: 22px;
}

.app-dialog__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d4deeb;
  background: #f6f9fd;
  color: #4f6780;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.app-dialog__message {
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.app-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.preview-accordion {
  display: grid;
  gap: 12px;
}

.preview-accordion__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  overflow: hidden;
}

.preview-accordion__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-weight: 800;
}

.preview-accordion__summary::-webkit-details-marker {
  display: none;
}

.preview-accordion__content {
  border-top: 1px solid #e5edf7;
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
}

.preview-document-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #e2eaf5;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.preview-document-row__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 230px 1fr;
  }

  .brand__title,
  .brand__subtitle,
  .user-mail {
    display: none;
  }

  .nav {
    gap: 12px;
  }

  .nav-section__title {
    padding: 0 8px;
  }

  .documents-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .document-type-card {
    flex-direction: column;
  }

  .document-type-card__actions {
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px;
  }

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

  .nav-section {
    gap: 6px;
  }

  .nav-section__items {
    gap: 6px;
  }

  .sidebar__footer {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
  }

  .content {
    padding: 16px;
  }

  .profile-grid,
  .admin-vacancies-grid,
  .vacancy-form-layout,
  .split-workspace,
  .split-workspace--admin,
  .mapping-controls,
  .masterdata-filter-grid,
  .masterdata-filter-grid--three {
    grid-template-columns: 1fr;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .vacancy-preview-card__head {
    flex-direction: column;
  }

  .vacancy-preview-card__meta {
    grid-template-columns: 1fr;
  }

  .search-toolbar,
  .table-toolbar,
  .pager,
  .form-actions,
  .documents-filter-list,
  .document-group__head,
  .document-group__summary,
  .document-type-card__head,
  .document-type-card__actions,
  .preview-document-row,
  .preview-document-row__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .table-page-size {
    justify-content: space-between;
  }

  .section-head--inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .grid-cards,
  .grid-cards--two {
    grid-template-columns: 1fr;
  }

  .documents-header__head,
  .documents-header__title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .documents-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-group__toggle {
    padding: 16px;
  }

  .document-group__body {
    padding: 0 16px 16px;
  }
}
