/* A column for each persisted ticket state; horizontal scrolling keeps drop targets adjacent. */
html#navigea-design body#sc-service-desk .sc-status-board {
  display: grid;
  grid-template-columns: repeat(6,minmax(235px,1fr)) !important;
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 3px 16px;
  scrollbar-width: auto;
  scrollbar-color: #65758b #e8edf4;
  scroll-padding: 8px;
}
html#navigea-design body#sc-service-desk .sc-status-board .sc-column {
  min-height: 280px;
  border-top: 4px solid var(--column-color,#34455e) !important;
  transition: background-color .12s, outline-color .12s;
}
html#navigea-design body#sc-service-desk .sc-status-board [data-drop-status="nouveau"] {--column-color:#34455e}
html#navigea-design body#sc-service-desk .sc-status-board [data-drop-status="en_cours"] {--column-color:#981653}
html#navigea-design body#sc-service-desk .sc-status-board [data-drop-status="attente_client"] {--column-color:#8f440a}
html#navigea-design body#sc-service-desk .sc-status-board [data-drop-status="attente_interne"] {--column-color:#6b4299}
html#navigea-design body#sc-service-desk .sc-status-board [data-drop-status="resolu"] {--column-color:#145b35}
html#navigea-design body#sc-service-desk .sc-status-board [data-drop-status="ferme"] {--column-color:#596574}
html#navigea-design body#sc-service-desk .sc-status-board .sc-column h2 span {background:var(--column-color) !important}
html#navigea-design body#sc-service-desk .sc-status-board .sc-column.sc-drop-target {
  background: #fbe5f1 !important;
  outline: 3px solid #981653;
  outline-offset: -3px;
}
html#navigea-design body#sc-service-desk .sc-status-board .sc-ticket {
  position: relative;
  padding: 12px !important;
  transition: opacity .12s, border-color .12s;
}
html#navigea-design body#sc-service-desk .sc-ticket[data-movable="true"] {cursor:grab}
html#navigea-design body#sc-service-desk .sc-ticket[data-movable="true"] .sc-ticket-open {cursor:grab}
html#navigea-design body#sc-service-desk .sc-ticket-top {display:flex;align-items:center;gap:7px;font-size:12px;color:#40516a;flex-wrap:wrap}
html#navigea-design body#sc-service-desk .sc-ticket-top > .sc-badge {margin-left:auto;font-size:11px !important;padding:3px 7px !important}
html#navigea-design body#sc-service-desk .sc-board-grip {
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;
  width:32px;height:36px;padding:0;border:1px solid #bac5d3;border-radius:6px;
  color:#34455e;background:#f4f6fa;cursor:grab;touch-action:none;
}
html#navigea-design body#sc-service-desk .sc-board-grip:hover {color:#981653;border-color:#981653;background:#fff5fa}
html#navigea-design body#sc-service-desk .sc-board-grip:focus-visible,
html#navigea-design body#sc-service-desk .sc-ticket-open:focus-visible {outline:3px solid #981653;outline-offset:3px}
html#navigea-design body#sc-service-desk .sc-ticket-open {
  display:block;width:100%;padding:0;border:0;background:transparent;box-shadow:none;
  color:inherit;font:inherit;text-align:left;border-radius:4px;white-space:normal;
}
html#navigea-design body#sc-service-desk .sc-ticket-open:disabled {opacity:1;cursor:wait}
html#navigea-design body#sc-service-desk .sc-ticket[aria-busy="true"] {border-style:dashed !important;cursor:wait;opacity:.8}
html#navigea-design body#sc-service-desk .sc-ticket .sc-board-saving {margin:10px 0 0;font-size:12px !important;font-weight:700;color:#7e1245 !important}
html#navigea-design body#sc-service-desk .sc-ticket.sc-dragging {opacity:.25}
html#navigea-design body#sc-service-desk .sc-ticket.sc-drag-ghost {
  position:fixed;z-index:100000;pointer-events:none;box-shadow:0 10px 34px #17263b40 !important;
  max-height:240px;overflow:hidden;opacity:.95;transform:rotate(2deg);margin:0 !important;
}
body.sc-ticket-drag-active, body.sc-ticket-drag-active * {cursor:grabbing !important;user-select:none !important}
.sc-board-move-dialog {width:min(360px,calc(100vw - 32px));padding:20px;border:1px solid #a6b2c3;border-radius:12px;box-shadow:0 14px 70px #17263b50;color:#17263b;background:white}
.sc-board-move-dialog::backdrop {background:#17263b66}
.sc-board-move-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.sc-board-move-heading h2 {margin:0;font-size:19px}
.sc-board-move-heading button {border:1px solid #bac5d3;border-radius:6px;background:white;width:36px;height:36px;font-size:24px;cursor:pointer;color:#34455e}
.sc-board-move-choices {display:grid;gap:8px}
.sc-board-move-choices button {font:inherit;text-align:left;padding:12px;border:1px solid #bac5d3;border-radius:6px;background:white;color:#17263b;cursor:pointer}
.sc-board-move-choices button:hover,.sc-board-move-choices button:focus-visible {background:#fff5fa;border-color:#981653}
.sc-board-move-choices button:disabled {background:#e8edf4;color:#536176;cursor:default}
@media(pointer:coarse) {html#navigea-design body#sc-service-desk .sc-board-grip {width:44px;height:44px;flex-basis:44px}}
@media(max-width:600px) {html#navigea-design body#sc-service-desk .sc-status-board {grid-template-columns:repeat(6,minmax(260px,82vw)) !important}}
@media(prefers-reduced-motion:reduce) {html#navigea-design body#sc-service-desk .sc-status-board * {transition:none !important}}

/* Keep the save result visible while the board is below the page header. */
html#navigea-design body#sc-service-desk #scStatus[data-ticket-move="true"]:not([hidden]) {
  position:fixed;right:20px;bottom:88px;z-index:1200;
  width:min(420px,calc(100vw - 40px));margin:0;padding:14px 18px;
  border:2px solid #145b35;border-radius:10px;background:#f0faf3;color:#123e27;
  box-shadow:0 5px 22px #17263b26;font-weight:700;white-space:normal;
}
html#navigea-design body#sc-service-desk #scStatus[data-ticket-move="true"][data-tone="error"] {
  border-color:#a52635;background:#fff2f3;color:#741a25;
}
