@charset "UTF-8";
/* === mini‑style widgets === */
.v-st-widgets-draggable-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.v-st-widget-draggable-main-wrapper {
  cursor: grab;
  user-select: none;
}

.v-st-widget-draggable {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #e0e0e0;
  border: 2px solid #555;
  border-radius: 4px;
  transition: background 0.15s, transform 0.15s;
}

.v-st-widget-draggable:active {
  cursor: grabbing;
  background: #d0d0d0;
  transform: scale(0.97);
}

.v-st-widget-draggable-dragging {
  opacity: 0.75;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: grabbing !important;
}

.v-st-widget-draggable-ghost {
  position: fixed;
  pointer-events: none;
  opacity: 0.9;
  transform: scale(1.02);
  z-index: 10000;
  /* élevé pour toujours être visible */
  cursor: grabbing !important;
  background: #ffe082;
  /* exemple de fond distinctif */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Conteneur principal de chaque tableau de bord */
.v-st-widget-board-main-wrapper {
  border: 2px dashed #ccc;
  padding: 1rem;
}

/* Conteneur global de la grille - ne touche pas aux colonnes ici */
.v-st-widget-board-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Conteneur des grilles, gestion de la disposition en colonnes */
.v-st-widget-board-grid-container {
  display: grid;
  gap: 4px;
  position: relative;
}

/* Logic de gestion des boîtes actives */
.v-st-widget-board-grid-content {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

.v-st-widget-board-grid-content.v-prg-active {
  visibility: visible;
  position: relative;
  pointer-events: auto;
  z-index: auto;
  opacity: 1;
  display: grid;
  gap: 4px;
  /* Ajouter un espace entre les éléments de la grille */
  max-width: 100%;
  width: fit-content;
  /* Assure que la grille ne dépasse pas la largeur */
}

.v-st-widget-board-grid-content[data-v-widget-board-columns-num="12"] {
  grid-template-columns: repeat(12, 1fr);
  max-width: 50%;
}

.v-st-widget-board-grid-content[data-v-widget-board-columns-num="6"] {
  grid-template-columns: repeat(6, 1fr);
  /* 6 colonnes */
  max-width: 30%;
  /* La grille prendra 50% de la largeur */
}

.v-st-widget-board-grid-content[data-v-widget-board-columns-num="3"] {
  grid-template-columns: repeat(3, 1fr);
  /* 3 colonnes */
  max-width: 20%;
  /* La grille prendra 50% de la largeur */
}

/* Les cases (widgets) à l'intérieur de chaque grille */
.v-st-widget-board-grid-box {
  background-color: #f0f0f0;
  border: 1px solid #aaa;
  min-width: 100px;
  /* Largeur minimale pour un bloc */
  height: 100px;
  /* Hauteur égale pour garder un format carré */
  aspect-ratio: 1;
  /* Maintient le format carré */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Widget box - Styles des éléments à l'intérieur des boîtes */
.v-st-widget-board-widget-box {
  background: #ffeb3b;
  border: 2px solid #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.vPrg_widgetBoardWidgetBox {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Header et footer des widgets */
.vPrg_widgetBoardWidgetBoxHeader,
.vPrg_widgetBoardWidgetBoxFooter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  background: #eee;
  border-bottom: 1px solid #ccc;
  width: 100%;
}

.vPrg_widgetBoardWidgetBoxHeaderLeft {
  flex: 1;
  overflow: hidden;
}

.vPrg_widgetBoardWidgetBoxFooter {
  border-top: 1px solid #ccc;
}

.vPrg_widgetBoardWidgetBoxBody {
  flex: 1 1 auto;
  overflow: auto;
}

.vPrg_widgetBoardWidgetBoxTitle {
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vPrg_widgetBox_deleteButton {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 8px !important;
  padding: 0 !important;
  opacity: 0;
  transition: opacity 0.2s;
  height: 10px;
}

.vPrg_widgetBoardWidgetBox:hover .vPrg_widgetBox_deleteButton {
  opacity: 1;
}

.vPrg_widgetBoard_gridBox_available {
  background-color: green;
}

.vPrg_widgetBoard_gridBox_forbidden {
  background-color: red;
}

/* Propriétés communes à toutes les grilles */
.v-st-widgets-boards-grid {
  display: grid;
  grid-auto-rows: minmax(64px, auto);
  gap: 4px;
  grid-auto-flow: row;
}

/* Variation du nombre de colonnes */
.v-st-widgets-boards-grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

.v-st-widgets-boards-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.v-st-widgets-boards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v-st-widgets-boards-grid-1 {
  grid-template-columns: repeat(1, 1fr);
}

/* Conteneur principal de chaque widget */
.v-st-widget-container-main-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* Contenu visuel du widget */
.v-st-widget-container {
  border: 1px solid #999;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 13px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.v-st-widget-main-wrapper {
  width: 100%;
  height: 100%;
}