#clientTreatmentQueue { min-width: 0; width: 100%; }
.ctq-band, .ctq-dialog {
  --ctq-green: var(--green, #47745b);
  color: var(--ink, #24231f);
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.ctq-band *, .ctq-dialog * { box-sizing: border-box; letter-spacing: 0; min-width: 0; }
.ctq-band {
  border-block: 1px solid #cbd8cf;
  border-top: 3px solid var(--ctq-green);
  padding: 16px 20px;
  background: #f7faf8;
}
.ctq-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ctq-band h2, .ctq-dialog h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.3; }
.ctq-kicker { color: var(--ctq-green); font-weight: 800; font-size: 12px; }
.ctq-band p, .ctq-dialog p { margin: 10px 0; }
.ctq-connection, .ctq-note, .ctq-caption { color: #55615a; font-size: 12px; }
.ctq-intro { max-width: 95ch; }
.ctq-band .btn, .ctq-dialog .btn {
  gap: 8px;
  padding: 9px 13px;
  min-height: 42px;
  max-width: 100%;
  white-space: normal;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
  box-shadow: none;
}
.ctq-band .btn.green, .ctq-dialog .btn.green { background: var(--ctq-green); border-color: var(--ctq-green); color: #fff; }
.ctq-band .btn.green:hover, .ctq-dialog .btn.green:hover { background: #345a44; border-color: #345a44; }
.ctq-band .btn.ctq-refresh, .ctq-dialog .btn.ctq-refresh { width: 42px; height: 42px; padding: 0; flex: 0 0 42px; }
.ctq-band .btn i, .ctq-dialog .btn i { flex: 0 0 auto; }
.ctq-band .fa-rotate-right { --fa: "\f2f9"; }
.ctq-band .fa-list-check, .ctq-dialog .fa-list-check { --fa: "\f0ae"; }
.ctq-dialog .fa-xmark { --fa: "\f00d"; }
.ctq-band :focus-visible, .ctq-dialog :focus-visible { outline: 3px solid #276640; outline-offset: 3px; }
.ctq-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.ctq-message, .ctq-notice { padding: 10px 12px; border-left: 3px solid var(--ctq-green); background: #e7f0e9; }
.ctq-message.ctq-error, .ctq-dialog-error { color: #8d2828; background: #fff0f0; border-left: 3px solid #b44a4a; padding: 10px 12px; }
.ctq-band [hidden], .ctq-dialog [hidden] { display: none !important; }
.ctq-lane { margin-top: 12px; }
.ctq-lane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; border-bottom: 1px solid #cbd8cf; padding-bottom: 8px; }
.ctq-lane-head h3 { margin: 0; font-size: 15px; }
.ctq-lane-head > span { color: #55615a; font-size: 12px; }
.ctq-entry { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(90px, .65fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid #dce4de; }
.ctq-entry > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.ctq-entry h4 { margin: 0; font-size: 14px; font-weight: 700; }
.ctq-number { color: #365743; font-family: var(--font-tech, monospace); font-size: 12px; font-weight: 700; }
.ctq-state { font-size: 12px; font-weight: 700; color: #315e40; }
.ctq-state-waiting_quote, .ctq-state-waiting_parts, .ctq-delay { color: #865119; }
.ctq-state-done { color: #55615a; }
.ctq-delay { font-size: 12px; }
.ctq-position > strong { font-family: var(--font-tech, monospace); font-size: 18px; }
.ctq-estimate > span:not(.ctq-caption), .ctq-action > span:not(.ctq-caption) { font-size: 13px; }
.ctq-enroll { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0; }
.ctq-enroll p { margin: 5px 0 0; max-width: 78ch; font-size: 13px; }
.ctq-enroll .btn { flex-shrink: 0; }
.ctq-empty { color: #55615a; padding: 12px 0; }
.ctq-start, .ctq-preview { color: #4c6255; font-size: 13px; }
.ctq-explanation { border-top: 1px solid #dce4de; margin-top: 12px; }
.ctq-explanation > summary { cursor: pointer; padding: 10px 0; font-size: 13px; font-weight: 650; color: #365743; }
.ctq-explanation > p { max-width: 95ch; font-size: 13px; }
.ctq-explanation > summary:focus-visible { outline: 2px solid #276640; outline-offset: 2px; }
.ctq-dialog {
  width: min(650px, calc(100% - 28px));
  max-width: calc(100% - 28px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid #a3b9aa;
  border-top: 4px solid var(--ctq-green);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 80px #18271e40;
  overflow-x: hidden;
  overflow-y: auto;
}
.ctq-dialog::backdrop { background: #14231be0; }
.ctq-selection { border: 0; margin: 20px 0 12px; padding: 0; }
.ctq-selection legend { padding: 0 0 8px; font-size: 15px; font-weight: 800; }
.ctq-option { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-top: 1px solid #dce4de; cursor: pointer; }
.ctq-option input[type="checkbox"] { appearance: auto; flex: 0 0 19px; width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--ctq-green); }
.ctq-option > span { display: flex; flex-direction: column; gap: 3px; }
.ctq-option small { color: #55615a; }
.ctq-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 1100px) {
  .ctq-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ctq-enroll { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 600px) {
  .ctq-band { padding: 18px 14px; }
  .ctq-band h2, .ctq-dialog h2 { font-size: 19px; }
  .ctq-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ctq-dossier, .ctq-action { grid-column: 1 / -1; }
  .ctq-position > strong { font-size: 16px; }
  .ctq-dialog { padding: 18px 16px; }
  .ctq-dialog-actions { flex-direction: column-reverse; }
  .ctq-dialog-actions .btn, .ctq-enroll .btn { width: 100%; }
}
