/* Shared controls: one quiet visual language in the Hub and its Planning panel. */
:root {
  --hub-ink: #18364b;
  --hub-accent: #245f85;
  --hub-line: #c9d9e4;
  --hub-soft: #edf4f8;
}
:is(.hub-pilot, .planning-panel) :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #256c94;
  outline-offset: 2px;
}
.hub-pilot button:not([class]) { background: var(--hub-accent); }
.hub-pilot .workspace-nav button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--hub-ink);
  font-size: 13px;
}
.hub-pilot .workspace-nav button[aria-pressed="true"] {
  border-color: #9bb9ce;
  background: var(--hub-soft);
  color: var(--hub-accent);
}
:is(.shared-loan-dialog, .loan-documents-dialog) > :is(.shared-loan-heading, .row) {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e9ef;
}
:is(.shared-loan-dialog, .loan-documents-dialog) h2 {
  color: var(--hub-ink);
  font-size: 20px;
  line-height: 1.3;
}
:is(.shared-loan-dialog, .loan-documents-dialog) :is(.secondary, .quiet) {
  border: 1px solid var(--hub-line);
  border-radius: 6px;
  background: #fff;
  color: var(--hub-accent);
}
:is(.shared-loan-dialog, .loan-documents-dialog) :is(.secondary, .quiet):hover {
  background: var(--hub-soft);
}
:is(.shared-loan-dialog, .loan-documents-dialog) button {
  line-height: 1.35;
  white-space: normal;
}
.shared-loan-dialog .fleet-vehicle-copy strong { color: var(--hub-ink); font-size: 25px; }
.shared-loan-dialog .unit-management > summary,
.shared-loan-dialog .loan-options > summary { color: #35566d; }
.shared-loan-dialog .unit-management[open] > summary { color: var(--hub-accent); }
.shared-loan-dialog .unit-management[open] { border-color: #a8c0d0; }
.insurer-label { display: inline-block; width: fit-content; max-width: 100%; color: var(--insurer-ink,#3d4c58); font-size: 10px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
:is(.insurer-label,.client-summary)[data-insurer="intact"] { --insurer-bg:#fff0df; --insurer-ink:#8b420b; --insurer-border:#eac6a1; }
:is(.insurer-label,.client-summary)[data-insurer="desjardins"] { --insurer-bg:#e5f5e9; --insurer-ink:#17633a; --insurer-border:#a8d4b7; }
:is(.insurer-label,.client-summary)[data-insurer="promutuel"] { --insurer-bg:#fff5cd; --insurer-ink:#705615; --insurer-border:#ddcd84; }
:is(.insurer-label,.client-summary)[data-insurer="wawanesa"] { --insurer-bg:#edf0f3; --insurer-ink:#46515c; --insurer-border:#bfc7cf; }
:is(.insurer-label,.client-summary)[data-insurer="beneva"] { --insurer-bg:#f0e9fa; --insurer-ink:#68418a; --insurer-border:#ceb7e5; }
.client-summary { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:8px; min-width:0; padding:7px 8px; border:1px solid var(--insurer-border,#c7d1d9); border-radius:7px; background:var(--insurer-bg,#f2f5f7); color:#18364b; }
.client-title { display:grid; gap:3px; min-width:0; }
.client-title > strong { font-size:12px; line-height:1.3; overflow-wrap:anywhere; }
.client-title > small { color:#536d7c; font-size:10px; }
.planning-panel .client-summary { grid-row:4; grid-column:1/3; margin:5px 3px 4px 0; }
.planning-panel .client-summary #job { grid-area:auto; margin:0; font-size:19px; color:#183f5b; }
.planning-panel .client-summary #job[data-multiple-bt] { font-size:16px; max-width:125px; overflow-wrap:anywhere; }
.job-target[data-status="proposal"]:not([data-tone="alert"]) { border-left-color:#cc990f; background:#fff8e1; }
.job-target[data-status="proposal"] .target-header small { color:#77530b; }
.job-target[data-status="proposal"]:not([data-tone="alert"]) .target-date { color:#77530b; }
.job-target[data-status="proposal"] .target-schedule { padding:5px 6px; border:1px solid #dfbd58; border-radius:5px; background:#fff1bd; color:#694b0b; font-weight:750; }
.job-target[data-status="reserved"]:not([data-tone="alert"]):not([data-movement]) { border-left-color:#24824f; background:#edf7f0; }
.job-target[data-status="reserved"]:not([data-tone="alert"]):not([data-movement]) .target-date { color:#1d6741; }
.planning-panel #contacts .client-title > strong { grid-area:auto; margin:0; white-space:normal; overflow:visible; font-size:12px; }
#planning-view .planning-sheet-identity .client-summary { flex:1; }
#planning-view .client-summary h2 { margin:0; font-size:20px; }
