:root {
  --navy-950: #0A1A2E;
  --navy-900: #0F2A4A;
  --navy-800: #153A63;
  --navy-700: #1F4E80;
  --navy-100: #E7EDF4;
  --navy-050: #F4F7FB;
  --orange-600: #D97D04;
  --orange-500: #F29005;
  --orange-100: #FDEBD2;
  --orange-050: #FFF6EA;
  --white: #fff;
  --gray-50: #F5F7F9;
  --gray-100: #EDF0F3;
  --gray-200: #E1E5EA;
  --gray-400: #9AA6B2;
  --gray-600: #5B6672;
  --gray-800: #2B333B;
  --green-600: #2E7D5B;
  --green-100: #E4F3EC;
  --red-600: #C0392B;
  --red-100: #FBE9E7;
  --amber-600: #B7791F;
  --amber-100: #FCF1DC;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, .06);
  --shadow-md: 0 4px 14px rgba(15, 42, 74, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, .95fr);
}
.login-hero {
  background:
    radial-gradient(900px 420px at 10% 80%, rgba(242, 144, 5, .22), transparent 60%),
    var(--navy-950);
  color: var(--white);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.login-hero img {
  height: 36px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}
.eyebrow {
  color: var(--orange-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.login-hero h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 460px;
}
.login-hero p { max-width: 440px; color: #C7D2DE; margin-top: 14px; }
.login-points { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.login-points span {
  display: flex; gap: 8px; align-items: center; color: #E7EDF4; font-size: 13.5px;
}
.login-points i {
  width: 7px; height: 7px; border-radius: 99px; background: var(--orange-500); display: block;
}
.login-panel { padding: 36px 32px 48px; overflow: auto; }
.login-panel h2 { font-size: 22px; color: var(--navy-900); }
.lede { color: var(--gray-600); margin: 6px 0 18px; }
.group-label {
  margin: 18px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.account {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.account:hover { border-color: var(--orange-500); }
.account.is-off { opacity: .55; }
.account b { display: block; color: var(--navy-900); }
.account small { color: var(--gray-600); }
.avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex: 0 0 36px;
}
.avatar.alt { background: var(--orange-600); }
.error {
  background: var(--red-100); color: var(--red-600);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px;
}
.linkish {
  background: none; border: 0; color: var(--navy-700); padding: 0;
  font-weight: 650; text-decoration: underline; text-underline-offset: 2px;
}
.login-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }

.shell {
  --side-width: 250px;
  --brand-pad-x: 14px;
  --brand-pad-top: 16px;
  --brand-pad-bottom: 12px;
  /* Logo 700×143, full width of the brand padding box — shared by .brand and .top */
  --shell-header-height: calc(var(--brand-pad-top) + var(--brand-pad-bottom) + (var(--side-width) - 2 * var(--brand-pad-x)) * 143 / 700);
  display: flex; min-height: 100vh;
}
.side {
  width: var(--side-width); flex: 0 0 var(--side-width); background: var(--navy-950); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand {
  box-sizing: border-box; min-height: var(--shell-header-height);
  padding: var(--brand-pad-top) var(--brand-pad-x) var(--brand-pad-bottom);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(242, 144, 5, .28), transparent 55%),
    radial-gradient(100% 80% at 100% 100%, rgba(31, 78, 128, .55), transparent 50%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.brand a { display: block; width: 100%; }
.brand img {
  display: block; width: 100%; height: auto;
  background: transparent; border-radius: 0; padding: 0; box-shadow: none;
}
.side nav { padding: 6px 10px 8px; overflow: auto; flex: 1; }
.icon {
  width: 18px; height: 18px; flex: 0 0 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; color: #C7D2DE; border: 0;
  border-radius: var(--radius-sm); padding: 9px 10px; margin-bottom: 2px;
  font-size: 13px; font-weight: 600; line-height: 1.25; text-align: left; text-decoration: none;
}
.nav-btn .ic { opacity: .9; }
.nav-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-btn.active { background: var(--orange-500); color: #fff; }
.nav-btn .count {
  margin-left: auto; background: rgba(255,255,255,.14);
  border-radius: 99px; padding: 1px 7px; font-size: 10.5px;
}
.nav-btn.active .count { background: rgba(255,255,255,.28); }
.side-foot {
  padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 10px;
}
.interloc {
  padding: 13px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-md);
}
.interloc .lbl {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 8px;
}
.interloc .who { display: flex; gap: 9px; align-items: center; }
.interloc-avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: var(--orange-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.interloc .who b { display: block; font-size: 13px; color: #fff; }
.interloc .who span { display: block; color: var(--gray-400); font-size: 11px; }
.account-menu { position: relative; }
.account-toggle {
  width: 100%; display: block; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 10px 12px; color: #fff;
}
.account-toggle:hover, .account-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.12);
}
.account-toggle b { display: block; font-size: 13px; }
.account-toggle span { color: #C7D2DE; font-size: 11px; }
.account-menu-panel {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 12;
  background: #fff; color: var(--gray-800); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column;
}
.account-menu-panel[hidden] { display: none; }
.account-menu-panel a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--navy-900); font-weight: 650; text-decoration: none;
}
.account-menu-panel a:hover { background: var(--navy-050); }

.main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--gray-50); min-height: 100vh;
}
.top {
  box-sizing: border-box;
  min-height: var(--shell-header-height, 76px); flex: 0 0 auto;
  background: #fff; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  position: sticky; top: 0; z-index: 5;
}
.top h1 { font-size: 18px; color: var(--navy-900); margin: 0; font-weight: 700; }
.top .spacer { flex: 1; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.page-actions:empty { display: none; }
.burger { display: none; }
.content {
  flex: 1; padding: 18px 28px 60px; width: 100%;
  background: var(--gray-50);
}
.banner {
  background: var(--orange-050); color: var(--navy-900);
  border-bottom: 1px solid var(--orange-100);
  padding: 10px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 18px; }
.card, .panel {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card { padding: 14px 16px; }
.card .k { color: var(--gray-600); font-size: 12px; }
.card .v { font-size: 26px; font-weight: 750; color: var(--navy-900); margin-top: 4px; }
.panel { padding: 16px 18px; margin-bottom: 14px; }
.panel h2, .block-title { font-size: 16px; color: var(--navy-900); margin-bottom: 8px; }
/* List panels: table flush to the card (all roles — admin, CA, client, …) */
.panel:has(table) {
  padding: 0;
  overflow: hidden;
}
.panel:has(table) > h2,
.panel:has(table) > .block-title {
  padding: 16px 18px 12px;
  margin: 0;
  border-bottom: 1px solid var(--gray-200);
}
.panel:has(table) > p,
.panel:has(table) > .muted {
  padding: 12px 18px;
  margin: 0;
}
.panel:has(table) > ul.caps {
  padding: 8px 18px 16px;
  margin: 0;
}
.caps { margin: 0; padding-left: 18px; color: var(--gray-800); }
.caps li { margin: 4px 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Form footers: buttons on the right, primary action rightmost.
   The primary button comes first in the markup (first in tab order); row-reverse displays it last. */
.form-actions { display: flex; flex-direction: row-reverse; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-start; margin-top: 14px; }
.form-actions form { margin: 0; }
.row > .form-actions { margin-top: 0; margin-left: auto; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread:has(.list-tools) { margin-bottom: 12px; }
.list-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.list-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 12px; }
.list-toolbar .list-tools { margin-left: 0; }
.list-search { width: 240px; }
[data-list-filter-target="row"][hidden] { display: none; }
th.actions, td.actions { width: 1%; text-align: right; white-space: nowrap; }
td.actions .row { justify-content: flex-end; flex-wrap: nowrap; }
td.actions form { margin: 0; }
.role-filter { position: relative; width: 240px; }
.role-filter-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #fff; color: var(--gray-800); font-weight: 600; text-align: left;
}
.role-filter-toggle:hover { border-color: var(--gray-400); }
.role-filter-toggle:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px var(--navy-100); outline: 0; }
.role-filter-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-filter-toggle::after {
  content: ""; flex: 0 0 auto; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--gray-600);
}
.role-filter-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 15; min-width: 100%;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column;
}
.role-filter-menu[hidden] { display: none; }
.role-filter-menu .check { padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.role-filter-menu .check:hover { background: var(--navy-050); }
.role-filter-menu input { accent-color: var(--navy-800); }

.btn {
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 8px 12px; font-weight: 680; background: var(--orange-500); color: #fff;
}
.btn:hover { background: var(--orange-600); }
.btn.secondary { background: #fff; color: var(--navy-900); border-color: var(--gray-200); }
.btn.secondary:hover { background: var(--gray-50); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn.danger { background: var(--white); color: var(--red-600); border-color: var(--red-100); }
.btn.small, .btn-sm { padding: 5px 9px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gray-600); font-weight: 700;
  padding: 10px 14px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50);
}
td {
  padding: 12px 14px; border-bottom: 1px solid var(--gray-200);
  font-size: 13px; vertical-align: middle; background: #fff;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--navy-050); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--navy-050); }
/* Tables split in several tbody (sales support tasks): keep the line between them */
tbody:not(:last-child) tr:last-child td { border-bottom: 1px solid var(--gray-200); }

/* New project task: header row, then its steps in order (company, user, project) */
.task-group-head td { border-bottom: 0; }
.task-step td { padding-top: 6px; padding-bottom: 6px; border-bottom: 0; }
.task-step td:first-child { padding-left: 28px; }
.task-group tr:last-child td { padding-bottom: 12px; }
.task-step-number {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px;
  border-radius: 50%; background: var(--navy-700); color: #fff; font-size: 11px; font-weight: 700;
}
.task-step-done .task-step-number { background: var(--gray-400); }
.task-step-done td, .task-step-locked td:first-child { color: var(--gray-600); }
.task-step-locked .task-step-number { background: var(--gray-200); color: var(--gray-600); }
.contacts-hint {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.75rem; padding: 2px 8px;
  border-radius: 99px; background: var(--navy-050); color: var(--navy-900);
  font-weight: 700; font-variant-numeric: tabular-nums; cursor: help;
}
.contacts-hint-tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 6;
  transform: translateX(-50%);
  min-width: max-content; max-width: 240px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: #fff; font-weight: 600; font-size: 12px; line-height: 1.45;
  text-align: left; white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none; opacity: 0; visibility: hidden;
}
.contacts-hint:hover .contacts-hint-tip,
.contacts-hint:focus-within .contacts-hint-tip { opacity: 1; visibility: visible; }

.badge {
  display: inline-flex; align-items: center; border-radius: 99px;
  padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap;
  text-decoration: none;
}
a.badge:hover { filter: brightness(.96); }
.b-navy { background: var(--navy-100); color: var(--navy-800); }
.b-green { background: var(--green-100); color: var(--green-600); }
.b-red { background: var(--red-100); color: var(--red-600); }
.b-amber { background: var(--amber-100); color: var(--amber-600); }
.b-gray { background: var(--gray-100); color: var(--gray-600); }
.b-orange { background: var(--orange-100); color: var(--orange-600); }

.callout {
  background: var(--amber-100); color: var(--navy-900);
  border-radius: var(--radius-md); padding: 10px 12px; margin: 8px 0 14px;
}
.callout.navy { background: var(--navy-050); }
.muted { color: var(--gray-600); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: 12.5px; font-weight: 680; color: var(--navy-900); }
input, select, textarea {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #fff; color: var(--gray-800);
}
.field input, .field select, .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
textarea { min-height: 84px; resize: vertical; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 12px; }
.dl dt { color: var(--gray-600); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 99px; padding: 6px 12px; font-weight: 680;
}
.tab.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.overlay {
  position: fixed; inset: 0; background: rgba(10, 26, 46, .46);
  display: flex; justify-content: flex-end; z-index: 30;
}
.modal {
  position: relative;
  width: min(560px, 100%); height: 100%; max-height: 100%;
  background: #fff; border-radius: 0;
  box-shadow: -16px 0 40px rgba(15, 42, 74, .18);
  padding: 22px 24px 32px; overflow: auto;
  animation: drawer-in .22s ease;
}
.modal:has(.drawer-company-users) { width: min(672px, 100%); }
.modal:has(.drawer-task) { width: min(720px, 100%); }
.drawer-task > .spread h2 { margin-bottom: 6px; }
.task-context { margin-top: 16px; }
/* Correction of a company sheet change: current value under each field, changed fields highlighted */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-current { font-size: 12px; color: var(--gray-600); }
.field-changed input, .field-changed select { border-color: var(--orange-600); background: var(--orange-100); }
.modal h2 { font-size: 18px; color: var(--navy-900); margin-bottom: 16px; padding-right: 36px; }
.modal > :not(.drawer-close) { clear: both; }
.drawer-company-users > h2 { margin-bottom: 6px; }
.drawer-company-users .badge { margin-top: 2px; }
.drawer-close {
  position: sticky; top: 0; float: right; z-index: 2;
  width: 32px; height: 32px; margin: 0 0 -32px 8px; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: #fff;
  color: var(--navy-900); font-size: 22px; line-height: 1;
}
.drawer-close:hover { background: var(--gray-100); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }
.hero {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 16px 18px; margin: 14px 0;
}
.hero .k { display: block; color: var(--orange-600); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero .v { display: block; font-size: 34px; font-weight: 750; color: var(--navy-900); line-height: 1.1; margin: 2px 0; }
.hero:hover { border-color: var(--orange-500); }
.task {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
}
.task:last-child { border-bottom: 0; padding-bottom: 0; }
.task-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.toast {
  position: fixed; bottom: 18px; right: 18px; z-index: 40;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-md);
  padding: 12px 14px; box-shadow: var(--shadow-md); max-width: 360px;
}
.public {
  max-width: 760px; margin: 0 auto; padding: 28px 20px 64px;
}
.public-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.public-bar img { height: 32px; background: #fff; border-radius: 8px; padding: 6px 8px; border: 1px solid var(--gray-200); }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 22px; }
  .login-hero h1 { font-size: 28px; }
  .side { position: fixed; z-index: 20; transform: translateX(-105%); transition: transform .2s ease; }
  .side.open { transform: none; }
  .burger { display: inline-flex; }
  .grid, .fields, .dl { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .top { padding-left: 12px; padding-right: 12px; }
}

/* --- Additions for the Symfony app (links styled as buttons, form errors) --- */
a.nav-btn, a.btn, a.account, a.hero, a.linkish { text-decoration: none; }
a.btn { display: inline-block; }
a.hero { color: inherit; }
a.nav-btn { box-sizing: border-box; }
.side-foot form { margin-top: 10px; }
.field ul { margin: 2px 0 0; padding: 0; list-style: none; color: var(--red-600); font-size: 12.5px; }
.field .check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.login-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.toast.is-hidden { opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.field-label { font-size: 12.5px; font-weight: 680; color: var(--navy-900); }
.required.field-label::after { content: " *"; color: var(--orange-600); }
.form-errors { margin-bottom: 12px; }
.toast-error { background: var(--red-600); }
label.check { display: flex; gap: 8px; align-items: center; }

/* Show / hide password (symfony/ux-toggle-password): button inside the field, on the right */
.toggle-password-container input { width: 100%; padding-right: 96px; }
.toggle-password-container .toggle-password-button {
    top: 50%; right: 6px; height: auto; transform: translateY(-50%);
    padding: 4px 8px; border-radius: var(--radius-sm);
    color: var(--navy-700); font-size: 12.5px; font-weight: 650;
}
.toggle-password-container .toggle-password-button:hover { background: var(--navy-050); }
.toggle-password-container .toggle-password-icon { width: 15px; height: 15px; }

/* Drawer (Turbo Frame "modal"): the form scrolls inside the panel */
.modal .fields { margin-top: 4px; }
.form-separator {
  border: 0; border-top: 1px solid var(--gray-200);
  margin: 4px 0 18px;
}
.sf-company-search { margin: 0 0 14px; }
.sf-company-search-box { position: relative; margin-top: 4px; }
.sf-company-search input[type="search"] { width: 100%; }
.sf-company-search .muted { margin: 6px 0 0; min-height: 1.2em; font-size: 12.5px; }
.sf-company-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 8;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); max-height: 240px; overflow: auto;
}
.sf-company-search-results[hidden] { display: none; }
.sf-company-search-item {
  width: 100%; display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  text-align: left; padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: inherit; cursor: pointer;
}
.sf-company-search-item:hover, .sf-company-search-item:focus { background: var(--navy-050); }
.sf-company-search-item b { font-size: 13.5px; color: var(--navy-900); }
.sf-company-search-item .muted { margin: 0; }

/* Multiple selects (symfony/ux-autocomplete, Tom Select): look of the prototype inputs, tags as navy badges.
   The dropdown is attached to <body> (dropdownParent) so the scrolling modal does not clip it: above the overlay.
   tom-select.default.css loads after this file: every rule needs a stronger selector (.field …, body > …). */
.field .ts-wrapper.multi .ts-control {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: none;
  padding: 5px 8px; min-height: 38px; background: #fff; color: var(--gray-800); font-size: inherit; gap: 4px;
}
.field .ts-wrapper.multi.focus .ts-control { border-color: var(--navy-700); box-shadow: 0 0 0 3px var(--navy-100); }
.field .ts-wrapper .ts-control > input { border: 0; padding: 2px 0; border-radius: 0; background: transparent; min-width: 8rem; }
.field .ts-wrapper.multi .ts-control > .item {
  background: var(--navy-100); background-image: none; color: var(--navy-800); border: 0; border-radius: 99px;
  box-shadow: none; text-shadow: none; padding: 2px 4px 2px 10px; margin: 0; font-weight: 650;
}
.field .ts-wrapper.multi .ts-control > .item.active { background: var(--navy-800); background-image: none; color: #fff; }
.field .ts-wrapper.plugin-remove_button:not(.rtl) .item .remove { border-left: 0; color: inherit; padding: 0 6px; margin-left: 2px; border-radius: 0 99px 99px 0; }
.field .ts-wrapper.plugin-remove_button .item .remove:hover { background: rgba(10, 26, 46, .08); }
body > .ts-dropdown {
  z-index: 35; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); margin-top: 4px; font-size: inherit; color: var(--gray-800);
}
body > .ts-dropdown .option { padding: 8px 10px; }
body > .ts-dropdown .active { background: var(--navy-050); color: var(--navy-900); }
body > .ts-dropdown .no-results { padding: 8px 10px; color: var(--gray-600); }
