.dashboard-editor {
  position: relative; }

.dashboard-editor .dashboard-editor-status {
  min-height: 1.5rem;
  margin-bottom: .75rem; }

.dashboard-editor .dashboard-editor-status:empty {
  min-height: 0;
  margin-bottom: 0; }

.dashboard-editor .dashboard-item {
  min-width: 0; }

.dashboard-editor .dashboard-widget-card {
  min-width: 0;
  height: auto;
  overflow: hidden; }

.dashboard-editor .dashboard-widget-card.card {
  border-color: var(--bs-gray-300, #dee2e6); }

.dashboard-editor .dashboard-widget-card.card > .card-header {
  background-color: var(--bs-primary, #002255);
  color: var(--bs-white, #fff);
  border-bottom-color: var(--bs-gray-300, #dee2e6); }

.dashboard-editor:not(.dashboard-is-editing) .dashboard-item[data-unavailable="1"] {
  display: none; }

/* A widget with nothing to show (no project notices, no online session today) collapses; the editor keeps it so it can be moved. */
.dashboard-editor:not(.dashboard-is-editing) .grid-stack-item:has(:is(.student-project-messages, .gel-next-session).is-empty) {
  display: none; }

.dashboard-editor .dashboard-widget-title,
.dashboard-editor .dashboard-widget-content {
  overflow-wrap: anywhere; }

.dashboard-editor button:focus-visible,
.dashboard-editor select:focus-visible,
.dashboard-editor input:focus-visible {
  outline: 3px solid var(--bs-primary, #0d6efd);
  outline-offset: 2px; }

.dashboard-editor [hidden] {
  display: none !important; }

.dashboard-editor.dashboard-is-busy {
  cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .dashboard-editor .dashboard-item {
    transition: none; } }
/* Rule for the panel widgets: one minimum height, so widgets side by side never make a step.
   The date and time widget sets it; a widget of this family (also in other modules) has to fit in it. */
:root {
  --gel-widget-panel-height: 8.5rem; }

.gel-date-time {
  container-type: inline-size;
  min-width: 0; }

.gel-date-time-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  min-width: 0;
  min-height: var(--gel-widget-panel-height, 8.5rem);
  border-radius: .95rem;
  background: #081a3a;
  color: var(--bs-white, #fff); }

/* Static nebula background. */
.gel-date-time-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(ellipse at 18% 70%, rgba(62, 112, 158, 0.55), transparent 55%), radial-gradient(ellipse at 78% 28%, rgba(108, 75, 143, 0.48), transparent 52%), radial-gradient(ellipse at 65% 90%, rgba(30, 113, 120, 0.3), transparent 48%); }

.gel-date-time-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 9% 23%, rgba(255, 255, 255, 0.4) 0 0.7px, transparent 1.2px), radial-gradient(circle at 29% 80%, rgba(255, 255, 255, 0.25) 0 0.7px, transparent 1.2px), radial-gradient(circle at 58% 16%, rgba(255, 255, 255, 0.3) 0 0.7px, transparent 1.2px), radial-gradient(circle at 88% 76%, rgba(255, 255, 255, 0.35) 0 0.7px, transparent 1.2px); }

.gel-date-time-panel > * {
  position: relative;
  z-index: 1; }

.gel-date-time-clock {
  font-size: 3rem;
  /* Capped so the panel keeps the shared height. */
  font-size: clamp(2.25rem, 16cqi, 4.25rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: 1.15;
  white-space: nowrap; }

.gel-date-time-calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere; }

.gel-date-time-weekday,
.gel-date-time-month {
  font-size: .875rem;
  line-height: 1.4; }

.gel-date-time-weekday {
  text-transform: capitalize; }

.gel-date-time-day {
  font-size: 2.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.15; }

@container (max-width: 300px) {
  .gel-date-time-panel {
    gap: .75rem;
    padding: 1.25rem .875rem; }

  .gel-date-time-calendar {
    padding-left: .75rem; }

  .gel-date-time-weekday, .gel-date-time-month {
    font-size: .75rem; }

  .gel-date-time-day {
    font-size: 1.875rem; } }
@container (max-width: 210px) {
  .gel-date-time-panel {
    flex-direction: column; }

  .gel-date-time-calendar {
    border-left: 0;
    padding-left: 0; } }
/* Shared baseline for the three compact widgets when their outer card is hidden. */
.dashboard-editor {
  --dashboard-compact-widget-height: 8.5rem; }

.dashboard-editor :is([data-widget="courses.student-tutorial-widget"], [data-widget="courses.student-progress-summary-widget"], [data-widget="dashboards.date-time-widget"])[data-card="0"] {
  align-self: stretch;
  display: flex;
  flex-direction: column; }

.dashboard-editor :is([data-widget="courses.student-tutorial-widget"], [data-widget="courses.student-progress-summary-widget"], [data-widget="dashboards.date-time-widget"])[data-card="0"] :is(.dashboard-widget-card, .dashboard-widget-content, .widget) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; }

.dashboard-editor [data-widget="courses.student-tutorial-widget"][data-card="0"] .dashboard-widget-content > .widget > section {
  display: flex;
  flex-direction: column;
  flex: 1; }

.dashboard-editor [data-widget="dashboards.date-time-widget"][data-card="0"] .gel-date-time {
  display: flex;
  flex-direction: column;
  flex: 1; }

.dashboard-editor [data-widget="courses.student-tutorial-widget"][data-card="0"] .dashboard-widget-content > .widget > section > .row {
  flex: 1;
  min-height: var(--dashboard-compact-widget-height);
  row-gap: .75rem; }

.dashboard-editor [data-widget="courses.student-tutorial-widget"][data-card="0"] .dashboard-widget-content > .widget > section > .row > .d-grid > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  margin-bottom: 0 !important; }

.dashboard-editor [data-widget="courses.student-progress-summary-widget"][data-card="0"] .student-progress-summary-widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: var(--dashboard-compact-widget-height); }

.dashboard-editor [data-widget="dashboards.date-time-widget"][data-card="0"] .gel-date-time-panel {
  flex: 1;
  min-height: var(--dashboard-compact-widget-height);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem; }

.dashboard-editor [data-widget="dashboards.date-time-widget"][data-card="0"] .gel-date-time-clock {
  font-size: clamp(2.25rem, 16cqi, 4.5rem); }

/* Internal Bootstrap columns must follow the compact widget width, not the page. */
.dashboard-editor .student-progress-summary-widget {
  container-type: inline-size; }

@container (max-width: 420px) {
  .student-progress-summary-widget > section > .row > div {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%; }

  .student-progress-summary-widget > section > .row > div:last-child {
    padding-top: .5rem !important; } }
/* GridStack 14.0.0 (MIT, https://github.com/gridstack/gridstack.js) - dist/gridstack.min.css; kept as a SCSS partial because *.css files are ignored by Git. */
.grid-stack {
  position: relative; }

.grid-stack-placeholder > .placeholder-content {
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0;
  position: absolute;
  width: auto;
  z-index: 0 !important; }

.grid-stack > .grid-stack-item {
  position: absolute;
  padding: 0;
  top: 0;
  width: var(--gs-column-width);
  height: var(--gs-cell-height); }

.grid-stack > .grid-stack-item > .grid-stack-item-content {
  margin: 0;
  position: absolute;
  width: auto;
  overflow-x: hidden;
  overflow-y: auto; }

.grid-stack > .grid-stack-item.size-to-content:not(.size-to-content-max) > .grid-stack-item-content {
  overflow-y: hidden; }

.grid-stack:not(.grid-stack-rtl) > .grid-stack-item {
  left: 0; }

.grid-stack.grid-stack-rtl > .grid-stack-item {
  right: 0; }

.grid-stack > .grid-stack-item > .grid-stack-item-content, .grid-stack > .grid-stack-placeholder > .placeholder-content {
  top: var(--gs-item-margin-top);
  right: var(--gs-item-margin-right);
  bottom: var(--gs-item-margin-bottom);
  left: var(--gs-item-margin-left); }

.grid-stack-item > .ui-resizable-handle {
  position: absolute;
  font-size: .1px;
  display: block;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  user-select: none;
  z-index: 100; }

.grid-stack-item.ui-resizable-autohide > .ui-resizable-handle, .grid-stack-item.ui-resizable-disabled > .ui-resizable-handle {
  display: none; }

.grid-stack-item > .ui-resizable-ne, .grid-stack-item > .ui-resizable-nw, .grid-stack-item > .ui-resizable-se, .grid-stack-item > .ui-resizable-sw {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  z-index: 101; }

.grid-stack-item > .ui-resizable-ne {
  transform: rotate(45deg); }

.grid-stack-item > .ui-resizable-sw {
  transform: rotate(45deg); }

.grid-stack-item > .ui-resizable-nw {
  transform: rotate(-45deg); }

.grid-stack-item > .ui-resizable-se {
  transform: rotate(-45deg); }

.grid-stack-item > .ui-resizable-nw {
  cursor: nw-resize;
  width: 20px;
  height: 20px;
  top: var(--gs-item-margin-top);
  left: var(--gs-item-margin-left); }

.grid-stack-item > .ui-resizable-n {
  cursor: n-resize;
  height: 10px;
  top: var(--gs-item-margin-top);
  left: 25px;
  right: 25px; }

.grid-stack-item > .ui-resizable-ne {
  cursor: ne-resize;
  width: 20px;
  height: 20px;
  top: var(--gs-item-margin-top);
  right: var(--gs-item-margin-right); }

.grid-stack-item > .ui-resizable-e {
  cursor: e-resize;
  width: 10px;
  top: 15px;
  bottom: 15px;
  right: var(--gs-item-margin-right); }

.grid-stack-item > .ui-resizable-se {
  cursor: se-resize;
  width: 20px;
  height: 20px;
  bottom: var(--gs-item-margin-bottom);
  right: var(--gs-item-margin-right); }

.grid-stack-item > .ui-resizable-s {
  cursor: s-resize;
  height: 10px;
  left: 25px;
  bottom: var(--gs-item-margin-bottom);
  right: 25px; }

.grid-stack-item > .ui-resizable-sw {
  cursor: sw-resize;
  width: 20px;
  height: 20px;
  bottom: var(--gs-item-margin-bottom);
  left: var(--gs-item-margin-left); }

.grid-stack-item > .ui-resizable-w {
  cursor: w-resize;
  width: 10px;
  top: 15px;
  bottom: 15px;
  left: var(--gs-item-margin-left); }

.grid-stack-item.ui-draggable-dragging > .ui-resizable-handle {
  display: none !important; }

.grid-stack-item.ui-draggable-dragging {
  will-change: left,right,top; }

.grid-stack-item.ui-resizable-resizing {
  will-change: width,height; }

.grid-stack-item.ui-draggable-armed {
  cursor: move;
  animation: gs-armed-wiggle .25s ease-in-out infinite; }

.grid-stack-item > .ui-resizable-handle.ui-resizable-armed {
  animation: gs-armed-pulse .5s ease-in-out infinite; }

@keyframes gs-armed-wiggle {
  0%,100% {
    transform: rotate(0); }
  25% {
    transform: rotate(-1.5deg); }
  75% {
    transform: rotate(1.5deg); } }
@keyframes gs-armed-pulse {
  0%,100% {
    opacity: 1; }
  50% {
    opacity: .3; } }
.ui-draggable-dragging, .ui-resizable-resizing {
  z-index: 10000; }

.ui-draggable-dragging > .grid-stack-item-content, .ui-resizable-resizing > .grid-stack-item-content {
  box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: .8; }

.grid-stack-animate, .grid-stack-animate .grid-stack-item {
  transition: left .3s,right .3s,top .3s,height .3s,width .3s; }

.grid-stack-animate .grid-stack-item.grid-stack-placeholder, .grid-stack-animate .grid-stack-item.ui-draggable-dragging, .grid-stack-animate .grid-stack-item.ui-resizable-resizing {
  transition: left 0s,right 0s,top 0s,height 0s,width 0s; }

.grid-stack > .grid-stack-item[gs-y="0"] {
  top: 0; }

.grid-stack:not(.grid-stack-rtl) > .grid-stack-item[gs-x="0"] {
  left: 0; }

.grid-stack.grid-stack-rtl > .grid-stack-item[gs-x="0"] {
  right: 0; }

.gs-print-show {
  display: none; }

@media print {
  @page gs-landscape {
    size: landscape; }
  @page gs-portrait {
    size: portrait; }
  .grid-stack {
    display: block !important;
    height: auto !important;
    position: static !important; }

  .grid-stack > .grid-stack-item {
    display: block !important;
    float: left !important;
    position: static !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    width: calc(100% * var(--gs-w)/ var(--gs-columns,12)) !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important; }

  .grid-stack > .grid-stack-item > .grid-stack-item-content {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    margin-top: var(--gs-item-margin-top) !important;
    margin-right: var(--gs-item-margin-right) !important;
    margin-bottom: var(--gs-item-margin-bottom) !important;
    margin-left: var(--gs-item-margin-left) !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important; }

  .gs-print-hide {
    display: none; }

  .gs-print-show {
    display: block; }

  .gs-print-avoid-break-after {
    break-after: avoid !important;
    page-break-after: avoid !important; }

  .grid-stack > .grid-stack-item.gs-print-hide {
    display: none !important; }

  .grid-stack > .grid-stack-item[gs-page-break=true], .grid-stack > .grid-stack-item[gs-print-orientation] {
    float: none !important;
    clear: both !important; }

  .grid-stack > .grid-stack-item[gs-page-break=true] {
    page-break-before: always !important;
    break-before: page !important; }

  .grid-stack > .grid-stack-item[gs-print-orientation=landscape] {
    page: gs-landscape;
    min-width: calc(100vmax * var(--gs-w)/ var(--gs-columns,12)) !important; }

  .grid-stack > .grid-stack-item[gs-print-orientation=portrait] {
    page: gs-portrait;
    min-width: calc(100vmin * var(--gs-w)/ var(--gs-columns,12)) !important; }

  .grid-stack > .grid-stack-item[gs-break-inside=true] {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    break-inside: auto !important;
    page-break-inside: auto !important; }

  .grid-stack > .grid-stack-item > .ui-resizable-handle {
    display: none !important; } }
/* Flat grid view (GridStack). The server renders every widget inside .grid-stack-item; until the script
   has measured the content, the layout is approximated with CSS grid and kept hidden when scripting is on. */
.dashboard-editor-flat {
  container: dashboard / inline-size; }

/* Switching profile can toggle page overflow. Keep its scrollbar space so the container cannot
   alternate across a breakpoint solely because the other profile is shorter. */
:root:has([data-dashboard-profiles]) {
  scrollbar-gutter: stable; }

.dashboard-editor-flat .dashboard-flat {
  min-width: 0; }

.dashboard-editor-flat .dashboard-flat-pending {
  visibility: hidden;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 2rem 1rem;
  align-items: start; }

.dashboard-editor-flat .dashboard-flat-pending > .grid-stack-item {
  position: static;
  width: auto;
  height: auto;
  grid-column: calc(var(--dg-x) + 1)/span var(--dg-w); }

.dashboard-editor-flat .dashboard-flat-pending > .grid-stack-item > .grid-stack-item-content {
  position: static;
  overflow: visible; }

@media (scripting: none) {
  .dashboard-editor-flat .dashboard-flat-pending {
    visibility: visible; } }
@media (max-width: 767.98px) {
  .dashboard-editor-flat .dashboard-flat-pending {
    grid-template-columns: minmax(0, 1fr); }

  .dashboard-editor-flat .dashboard-flat-pending > .grid-stack-item {
    grid-column: 1; } }
/* Two readable widgets per row instead of rounded fractions of the desktop canvas. */
.dashboard-editor-flat .dashboard-flat-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
  align-items: start;
  position: static;
  height: auto; }

.dashboard-editor-flat .dashboard-flat-flow > .grid-stack-item {
  position: static;
  width: auto;
  height: auto;
  grid-column: span 1; }

.dashboard-editor-flat .dashboard-flat-flow > .grid-stack-item:is([gs-w="7"], [gs-w="8"], [gs-w="9"], [gs-w="10"], [gs-w="11"], [gs-w="12"]),
.dashboard-editor-flat .dashboard-flat-flow > .grid-stack-item:has([data-widget="courses.student-meetings-calendar-widget"]) {
  grid-column: 1 / -1; }

.dashboard-editor-flat .dashboard-flat-flow > .grid-stack-item > .grid-stack-item-content {
  position: static;
  overflow: visible; }

@container dashboard (max-width: 767.98px) {
  .dashboard-editor-flat .dashboard-flat-flow {
    grid-template-columns: minmax(0, 1fr); }

  .dashboard-editor-flat .dashboard-flat-flow > .grid-stack-item {
    grid-column: 1; } }
/* Saved profiles follow the server's size bands. Per-item spans are applied by the view script;
   they override the automatic desktop-width/calendar rules above, including an explicit half-row calendar. */
.dashboard-editor-flat .dashboard-flat-flow[data-dashboard-profile="tablet"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dashboard-editor-flat .dashboard-flat-flow[data-dashboard-profile="mobile"] {
  grid-template-columns: minmax(0, 1fr); }

/* A half-row calendar needs the same compact toolbar as on a phone, even in a wide viewport. */
.dashboard-flat-widget .student-meetings-calendar {
  container: dashboard-calendar / inline-size; }

@container dashboard-calendar (max-width: 639.98px) {
  .student-meetings-calendar .fc .fc-toolbar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem; }

  .student-meetings-calendar .fc .fc-toolbar-title {
    font-size: 1.1rem; }

  .student-meetings-calendar .fc-toolbar-chunk:nth-child(2) {
    order: -1;
    flex-basis: 100%; }

  .student-meetings-calendar .fc .fc-button-primary {
    padding: .4rem .6rem; } }
/* Menus, popovers and calendars of a widget must not be clipped by the item box. */
.dashboard-editor-flat .dashboard-flat > .grid-stack-item > .grid-stack-item-content {
  overflow: visible; }

.dashboard-editor-flat .dashboard-flat-widget {
  height: auto;
  min-width: 0; }

.dashboard-editor-flat .dashboard-flat-widget > .dashboard-widget-card {
  height: auto;
  min-width: 0;
  overflow: hidden; }

.dashboard-editor-flat .dashboard-flat-widget .dashboard-widget-title,
.dashboard-editor-flat .dashboard-flat-widget .dashboard-widget-content {
  overflow-wrap: anywhere; }

.dashboard-editor-flat .dashboard-flat-widget > .dashboard-widget-card.card {
  border-color: var(--bs-gray-300, #dee2e6); }

.dashboard-editor-flat .dashboard-flat-widget > .dashboard-widget-card.card > .card-header {
  background-color: var(--bs-primary, #002255);
  color: var(--bs-white, #fff);
  border-bottom-color: var(--bs-gray-300, #dee2e6); }

/* Grid editor: handles, limits, status and toast. Only active while editing. */
.dashboard-editor-flat .dashboard-grid-note {
  display: none;
  margin-bottom: .75rem; }

@media (max-width: 767.98px) {
  .dashboard-editor-flat .dashboard-grid-note:not([hidden]) {
    display: block; } }
.dashboard-editor-flat .dashboard-editor-status {
  min-height: 1.5rem;
  margin-bottom: .5rem; }

.dashboard-editor-flat .dashboard-editor-status:empty {
  min-height: 0;
  margin: 0; }

.dashboard-editor-flat.dashboard-is-editing .grid-stack-item > .grid-stack-item-content {
  outline: 1px dashed var(--bs-gray-400, #ced4da);
  outline-offset: 2px;
  border-radius: .375rem; }

.dashboard-editor-flat .dgs-item > .dgs-controls {
  position: absolute;
  top: -14px;
  right: 12px;
  z-index: 8;
  display: flex;
  gap: .25rem; }

.dashboard-editor-flat .dgs-controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .5rem;
  border: 1px solid transparent;
  border-radius: .375rem;
  background: transparent;
  color: var(--bs-gray-700, #495057);
  font-size: .875rem;
  line-height: 1; }

.dashboard-editor-flat .dgs-controls .btn:hover:not(:disabled):not(.disabled),
.dashboard-editor-flat .dgs-controls .btn[aria-expanded="true"] {
  background: rgba(var(--bs-primary-rgb, 0, 34, 85), 0.08);
  color: var(--bs-primary, #002255); }

.dashboard-editor-flat .dgs-controls .btn:focus-visible {
  outline: 2px solid var(--bs-primary, #002255);
  outline-offset: 2px; }

.dashboard-editor-flat .dgs-controls .dgs-remove:hover:not(:disabled) {
  color: var(--bs-danger, #b02a37);
  background: rgba(var(--bs-danger-rgb, 176, 42, 55), 0.08); }

.dashboard-editor-flat .dgs-controls .btn:disabled, .dashboard-editor-flat .dgs-controls .btn.disabled {
  opacity: .35; }

.dashboard-editor-flat .dgs-controls .caret {
  color: var(--bs-gray-600, #6c757d);
  font-size: .625rem; }

.dashboard-editor-flat .dgs-controls .dropdown-menu {
  min-width: 11rem; }

.dashboard-editor-flat .dgs-handle {
  cursor: grab;
  touch-action: none; }

.dashboard-editor-flat .grid-stack-item-dragging .dgs-handle {
  cursor: grabbing; }

.dashboard-editor-flat .dgs-lock {
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding: 0 .5rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .25rem;
  background: var(--bs-gray-100, #f8f9fa);
  color: var(--bs-gray-600, #6c757d);
  font-size: .75rem; }

@media (pointer: coarse) {
  .dashboard-editor-flat .dgs-controls .btn {
    min-width: 2.5rem;
    height: 2.5rem; } }
/* GridStack hides the handles until the pointer hovers; here they stay visible, except on locked widgets. */
.dashboard-editor-flat.dashboard-is-editing .grid-stack-item.ui-resizable-autohide:not(.ui-resizable-disabled) > .ui-resizable-e {
  display: block !important; }

/* The single resize edge: a visible bar on the right side of every resizable widget. */
.dashboard-editor-flat.dashboard-is-editing .grid-stack-item > .ui-resizable-e {
  cursor: ew-resize; }

.dashboard-editor-flat.dashboard-is-editing .grid-stack-item > .ui-resizable-e::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 6px;
  height: 3rem;
  margin-top: -1.5rem;
  border-radius: 3px;
  background: rgba(var(--bs-primary-rgb, 0, 34, 85), 0.6); }

.dashboard-editor-flat .dgs-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  max-width: calc(100% - 32px);
  padding: .25rem .6rem;
  border-radius: .25rem;
  background: #0b2152;
  color: #fff;
  font-size: .8125rem; }

.dashboard-editor-flat .dgs-limit > .grid-stack-item-content {
  outline: 2px solid var(--bs-warning, #b56717);
  outline-offset: 2px; }

.dashboard-editor-flat .dgs-limit > .dgs-badge {
  background: color-mix(in srgb, var(--bs-warning, #b56717) 50%, #000); }

.dashboard-editor-flat .dgs-added > .grid-stack-item-content {
  outline: 3px solid #2d6a4f;
  outline-offset: 3px; }

.dashboard-grid-toast {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 2000;
  margin: 0; }

/* Administrator's builder: lock and card choices sit with the widget's own controls. */
.dashboard-editor-definition .dgs-policy {
  display: flex;
  gap: .25rem;
  margin-right: .125rem;
  padding-right: .375rem;
  border-right: 1px solid var(--bs-border-color, #dee2e6); }

.dashboard-editor-definition .dgs-policy .dropdown-select {
  margin: 0; }

.dashboard-editor-definition .dgs-policy .dropdown-toggle {
  height: 2rem;
  padding-top: 0;
  padding-bottom: 0; }

/* An open menu must stay above the controls of the widgets that follow. */
.dashboard-editor-flat .dgs-item {
  isolation: isolate; }

.dashboard-editor-flat .dgs-item > .ui-resizable-handle {
  z-index: 2; }

.dashboard-editor-flat .dgs-item:focus-within {
  z-index: 30; }

.dashboard-editor-flat .dgs-item:has(.dropdown-menu.show, .dropdown-select.open, .dropdown-select.show) {
  z-index: 40; }

.dashboard-editor-definition .dgs-controls {
  align-items: center; }

/* Builder slot: only the widget's name. With a card it is framed like a card, without one the frame is dashed. */
.dashboard-editor-definition .dashboard-definition-slot .dashboard-widget-content {
  padding: 1rem 1.25rem; }

.dashboard-editor-definition .dashboard-definition-slot .dashboard-widget-title {
  font-weight: 600; }

.dashboard-editor-definition .dashboard-definition-slot[data-card="0"] .dashboard-widget-card {
  border: 1px dashed var(--bs-gray-500, #adb5bd);
  border-radius: var(--bs-border-radius, 0.375rem);
  background: var(--bs-gray-100, #f8f9fa); }

.dashboard-editor-definition .dashboard-definition-slot[data-unavailable="1"] .dashboard-widget-title {
  color: var(--bs-danger, #dc3545); }

/* Builder: the controls of a widget show only while it is selected, and stay compact. */
.dashboard-editor-definition .dgs-item > .dgs-controls {
  display: none;
  flex-wrap: nowrap;
  white-space: nowrap; }

.dashboard-editor-definition .dgs-item.dgs-selected > .dgs-controls, .dashboard-editor-definition .dgs-item:focus-within > .dgs-controls {
  display: flex; }

.dashboard-editor-definition .dgs-item.dgs-selected {
  z-index: 30; }

.dashboard-editor-definition .dgs-item.dgs-selected > .grid-stack-item-content {
  outline: 2px solid rgba(var(--bs-primary-rgb, 0, 34, 85), 0.5);
  outline-offset: 2px; }

.dashboard-editor-definition .dgs-policy .dropdown-toggle {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: .5rem;
  padding-right: .5rem; }

.dashboard-editor-definition .grid-stack-item[gs-x="0"].dgs-item > .dgs-controls {
  right: auto;
  left: 12px; }

/* A compact floating surface shared by definition and personal widget controls. */
.dashboard-editor-flat .dgs-item > .dgs-controls {
  width: max-content;
  max-width: calc(100% - 16px);
  align-items: center;
  padding: .25rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .625rem;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 3px 10px rgba(33, 37, 41, 0.08); }

.dashboard-editor-definition .dgs-controls .btn, .dashboard-editor-definition .dgs-policy .dropdown-toggle {
  border-color: transparent; }

/* Definition profiles use an actual canvas width; narrow forms scroll instead of scaling the preview. */
.dashboard-definition-preview {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.5rem .5rem; }

.dashboard-definition-canvas {
  width: 1440px; }

.dashboard-editor-definition .dashboard-flat-flow > .grid-stack-item {
  position: relative; }

.dashboard-editor-definition .dashboard-flat-flow .dgs-item > .dgs-controls {
  position: static;
  flex-wrap: wrap;
  white-space: normal;
  margin-top: .5rem; }

.dashboard-editor-definition .dashboard-flat-flow .dgs-controls .dgs-handle {
  display: none; }

/* Personal previews reuse the definition's canvas only during an editing session. */
.dashboard-editor-personal-profiles:not(.dashboard-is-editing) .dashboard-definition-preview {
  overflow: visible;
  padding: 0; }

.dashboard-editor-personal-profiles:not(.dashboard-is-editing) .dashboard-definition-canvas {
  width: auto; }

.dashboard-editor-personal-profiles .dashboard-profile-toolbar[hidden] {
  display: none !important; }

.dashboard-editor-personal-profiles.dashboard-is-editing .dashboard-flat-flow > .grid-stack-item {
  position: relative; }

.dashboard-editor-personal-profiles.dashboard-is-editing .dashboard-flat-flow .dgs-item > .dgs-controls {
  position: static;
  flex-wrap: wrap;
  white-space: normal;
  margin-top: .5rem;
  align-items: center; }

.dashboard-editor-personal-profiles .dgs-controls .dropdown-toggle {
  height: 2rem;
  padding-top: 0;
  padding-bottom: 0; }

.dashboard-editor-personal-profiles .dashboard-flat-flow .dgs-controls .dgs-handle {
  display: none; }

/* Keep GEL dropdown menus readable; only their widget control buttons show the selected icon. */
.dashboard-editor-flat .dgs-controls .dropdown-toggle .dropdown-label {
  font-size: 0; }

.dashboard-editor-flat .dgs-controls .dropdown-toggle .dropdown-label i {
  font-size: .875rem; }

/* Icon colors describe the action or selected policy; surfaces and dropdown carets stay neutral. */
.dashboard-editor-flat .dgs-controls .dgs-handle > i,
.dashboard-editor-flat .dgs-controls [data-profile-action] > i {
  color: var(--bs-primary, #002255); }

.dashboard-editor-flat .dgs-controls .dropdown-select:has([data-dashboard-span]) .dropdown-label i {
  color: var(--bs-blue, #0d6efd); }

.dashboard-editor-flat .dgs-controls .dropdown-label .fa-lock-open {
  color: var(--bs-success, #198754); }

.dashboard-editor-flat .dgs-controls .dropdown-label .fa-lock {
  color: var(--bs-warning, #b56717); }

.dashboard-editor-flat .dgs-controls .dropdown-select:has([data-dashboard-card]) .dropdown-label i {
  color: var(--bs-purple, #6f42c1); }

.dashboard-editor-flat .dgs-controls .dropdown-select:has([data-dashboard-card]) .dropdown-label :is(.fa-circle-half-stroke, .fa-border-none) {
  color: var(--bs-gray-600, #6c757d); }

.dashboard-editor-flat .dgs-controls .dgs-remove > i {
  color: var(--bs-danger, #b02a37); }

/* Personal editing follows the real container; only the definition builder uses nominal previews. */
.dashboard-editor-personal-profiles .dashboard-definition-canvas {
  width: auto; }

.dashboard-editor-personal-profiles.dashboard-is-editing .dashboard-definition-preview {
  padding-left: 0;
  padding-right: 0; }

/*# sourceMappingURL=dashboard.css.map */
