/* EDQ V48.6.8 — Menu Widgets : centrage mesuré des aperçus réels. */
@media (max-width: 1023px) {
  .dashboard-home-sheet--widgets {
    grid-template-rows: minmax(0, 1fr) auto !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-sheet__preview {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: clamp(.52rem, 1.8dvh, .84rem) .2rem !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-sheet__preview > .dashboard-home-widget-catalog-preview {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    align-self: center !important;
    justify-self: center !important;
    width: max-content !important;
    height: max-content !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-sheet__preview > .dashboard-home-widget-catalog-preview--empty {
    width: min(20rem, calc(100vw - 2rem)) !important;
    min-height: 9.2rem !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 0 !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__context#dashboard-view,
  body.is-dashboard-shell-visible .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__context#dashboard-view {
    position: relative !important;
    display: block !important;
    width: max-content !important;
    height: max-content !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  body.is-dashboard-shell-visible .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__context#dashboard-view > .dashboard-v2--native-mobile.dashboard-v2--widget-preview {
    --dashboard-mobile-navbar-height: 0px !important;
    --dashboard-mobile-dots-height: 0px !important;
    --dashboard-mobile-page-padding-x: 0px !important;
    --dashboard-mobile-page-col-gap: var(--dashboard-widget-preview-col-gap) !important;
    --dashboard-mobile-page-row-gap: var(--dashboard-widget-preview-row-gap) !important;
    --dashboard-mobile-cell-size: var(--dashboard-widget-preview-cell) !important;
    position: relative !important;
    display: block !important;
    width: max-content !important;
    height: max-content !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    animation: none !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__grid {
    position: relative !important;
    display: inline-grid !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    align-self: center !important;
    justify-self: center !important;
    width: max-content !important;
    height: max-content !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: translate3d(var(--dashboard-widget-catalog-preview-shift-x, 0px), var(--dashboard-widget-catalog-preview-shift-y, 0px), 0) !important;
    background: transparent !important;
    box-shadow: none !important;
    column-gap: var(--dashboard-widget-preview-col-gap) !important;
    row-gap: var(--dashboard-widget-preview-row-gap) !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__grid--2x2 {
    grid-template-columns: repeat(2, var(--dashboard-widget-preview-cell)) !important;
    grid-template-rows: repeat(2, var(--dashboard-widget-preview-cell)) !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__grid--4x2 {
    grid-template-columns: repeat(4, var(--dashboard-widget-preview-cell)) !important;
    grid-template-rows: repeat(2, var(--dashboard-widget-preview-cell)) !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__grid--4x4 {
    grid-template-columns: repeat(4, var(--dashboard-widget-preview-cell)) !important;
    grid-template-rows: repeat(4, var(--dashboard-widget-preview-cell)) !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__grid > .dashboard-home-widget-catalog-preview__tile {
    position: relative !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 / -1 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: auto !important;
    overflow: visible !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__tile > .dashboard-mobile-widget-stack,
  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__tile .dashboard-mobile-widget,
  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__tile .dashboard-mobile-widget__body,
  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__tile .dashboard-mobile-course-widget {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__tile .dashboard-mobile-widget {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__tile .dashboard-mobile-widget__body {
    padding: 0 !important;
    overflow: visible !important;
  }
}

/* EDQ V48.7.1 — Menu Widgets : encarts bientôt disponibles simplifiés. */
@media (max-width: 1023px) {
  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon {
    align-items: center !important;
    opacity: .9 !important;
    border-style: dashed !important;
    background:
      linear-gradient(135deg,
        color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 9%, transparent),
        color-mix(in srgb, currentColor 4%, transparent)) !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon .dashboard-home-widget-catalog__icon,
  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon .dashboard-home-widget-catalog__main,
  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon .dashboard-home-widget-catalog__side {
    align-self: center !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon .dashboard-home-widget-catalog__main {
    display: flex !important;
    min-height: 2.55rem;
    flex-direction: column !important;
    justify-content: center !important;
    gap: .22rem !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon .dashboard-home-widget-catalog__side {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon .dashboard-home-widget-catalog__sizes,
  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon .dashboard-home-widget-catalog__state {
    display: none !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon.is-selected {
    opacity: .96 !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__subtitle {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: color-mix(in srgb, currentColor 58%, transparent);
    font-size: .68rem;
    font-weight: 760;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__action--soon {
    min-width: 4.7rem;
    justify-content: center !important;
    border-color: color-mix(in srgb, #f59e0b 34%, transparent) !important;
    background: color-mix(in srgb, #f59e0b 13%, transparent) !important;
    color: color-mix(in srgb, #fbbf24 80%, white 8%) !important;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__content--soon {
    gap: .48rem;
    padding: .9rem;
    text-align: center;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__content--soon i {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto .12rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 16%, transparent);
    color: color-mix(in srgb, var(--dashboard-v2-role-color, #38bdf8) 84%, white 10%);
    font-size: 1.22rem;
  }

  .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__content--soon em {
    display: inline-grid;
    place-items: center;
    width: max-content;
    max-width: 100%;
    margin: .12rem auto 0;
    padding: .26rem .62rem;
    border: 1px solid color-mix(in srgb, #f59e0b 34%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, #f59e0b 12%, transparent);
    color: color-mix(in srgb, #fbbf24 78%, white 10%);
    font-size: .66rem;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
  }

  html[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon,
  body[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__item.is-coming-soon {
    background: linear-gradient(135deg, rgba(255, 251, 235, .72), rgba(248, 250, 252, .78)) !important;
    border-color: rgba(245, 158, 11, .24) !important;
  }

  html[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__subtitle,
  body[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__subtitle {
    color: #64748b;
  }

  html[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__action--soon,
  body[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog__action--soon {
    border-color: rgba(245, 158, 11, .28) !important;
    background: rgba(255, 251, 235, .86) !important;
    color: #b45309 !important;
  }

  html[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__content--soon em,
  body[data-theme="light"] .dashboard-home-sheet--widgets .dashboard-home-widget-catalog-preview__content--soon em {
    border-color: rgba(245, 158, 11, .28);
    background: rgba(255, 251, 235, .86);
    color: #b45309;
  }
}
