/* BrandMetriks responsive global: three explicit scoped CSS sources. */

/* native/responsiveShellOverview.css; sha256=5a2837fc27a62a0e9c84efca12182f04b91a043f7f8b33abb4db078eec8a2546 */
/* BrandMetriks : shell, navigation et Aperçu sur téléphone/tablette.
   CSS de présentation uniquement ; les données et actions existantes restent utilisées. */
@media (min-width:721px) and (max-width:1080px){
  .bs-native-route #app.app:has(.rs-scene) .rs-scene{
    position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;
    overscroll-behavior:contain;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top{
    flex-wrap:wrap;gap:10px;padding:18px 20px;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .crumb{
    flex:1 0 100%;min-width:0;flex-wrap:wrap;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .top-right{
    min-width:0;max-width:100%;flex-wrap:wrap;gap:8px;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .daterange .dr-menu{
    left:0;right:auto;
  }
  .bs-native-route #app.app:has(.rs-scene) .rs-carte{min-width:0}
  .bs-native-route #app.app:has(.rs-scene) .rs-corps{min-width:0;flex:1}
  .bs-native-route #app.app:has(.rs-scene) .rs-valeur{white-space:normal;flex-wrap:wrap}
}
/* Le sélecteur partagé doit pouvoir passer à la ligne et garder son menu dans la page. */
@media (max-width:1150px){
  .bs-native-route .stage-top .dr-menu{
    max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;
  }
  .bs-native-route #console .ph > *,
  .bs-native-route #console .ph-actions{min-width:0;max-width:100%}
  .bs-native-route #console .page.show .hdr-date{
    position:relative;min-width:0;max-width:100%;flex-wrap:wrap;gap:6px;
  }
  .bs-native-route #console .page.show .hdr-custom-wrap{position:static}
  .bs-native-route #console .page.show .hdr-custom-pop{
    left:0;right:auto;width:260px;min-width:0;max-width:100%;box-sizing:border-box;
  }
  .bs-native-route #console .hdr-custom-pop label,
  .bs-native-route #console .hdr-custom-pop input{min-width:0;max-width:100%}
}
@media (max-width:720px){
  .bs-native-route #app.app{height:100dvh}
  /* Le libellé démo reste lisible sous la navigation, sans la recouvrir. */
  .bs-native-route .bs-demo-banner{
    bottom:env(safe-area-inset-bottom,0px);max-width:calc(100% - 24px);
    padding:2px 8px;font-size:10px;line-height:12px;border:0;border-radius:4px;
  }
  /* Une réduction du rail sur ordinateur ne doit pas réduire le tiroir mobile. */
  .bs-native-route #app.app.collapsed .rail.rail-v2{
    width:286px;min-width:0;max-width:86vw;padding:20px 16px;
  }
  .bs-native-route #app.app.collapsed .rail-v2 .rail-head{justify-content:space-between}
  .bs-native-route #app.app.collapsed .rail-v2 .brand .wordmark,
  .bs-native-route #app.app.collapsed .rail-v2 .nav-item span,
  .bs-native-route #app.app.collapsed .rail-v2 .ru-nom,
  .bs-native-route #app.app.collapsed .rail-v2 .shop-name{display:inline}
  .bs-native-route #app.app.collapsed .rail-v2 .nav-item{justify-content:flex-start;gap:13px}
  .bs-native-route #app.app.collapsed .rail-v2 .shop-btn .chev{display:block}
  .bs-native-route #app.app.collapsed .rail-v2 .ru-out{display:grid}
  .bs-native-route #app.app.collapsed .mobile-bar .brand-badge{display:inline-flex}
  .bs-native-route #app.app.collapsed.nav-open .rail.rail-v2 .shop-name,
  .bs-native-route #app.app.collapsed.nav-open .rail.rail-v2 .ru-nom{display:block}
  .bs-native-route #app.app.collapsed.nav-open .rail.rail-v2 .shop-btn .chev{display:block}
  .bs-native-route #app.app.collapsed.nav-open .rail.rail-v2 .ru-out{display:grid}
  .bs-native-route #app.app.collapsed.nav-open .rail.rail-v2 .ru-main{justify-content:flex-start;gap:10px}
  .bs-native-route #app.app.collapsed .rail-v2 .rail-bas{
    padding:10px;border:1px solid rgba(255,255,255,.075);
    background:linear-gradient(150deg,rgba(255,255,255,.038),rgba(255,255,255,.009));
  }
  /* Marque et logo sur la première ligne ; période et actualisation sur la seconde. */
  .bs-native-route #app.app:has(.rs-scene) .stage-top{
    flex-direction:column;align-items:stretch;gap:8px;padding:14px 14px 12px;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .rm-mobile-identity{
    width:100%;flex:0 0 auto;justify-content:space-between;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .rm-mobile-brand{
    flex:1 1 0;min-width:0;max-width:calc(100% - 48px);
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .rm-mobile-brand .shop-btn{
    width:100%;max-width:100%;height:42px;padding:0 12px;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .rm-mobile-brand .shop-name{
    min-width:0;font-size:14px;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .rm-mobile-logo{
    flex:none;width:auto;height:26px;max-width:40px;object-fit:contain;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .top-right{
    width:100%;flex:0 0 auto;gap:8px;
  }
  .bs-native-route #app.app:has(.rs-scene) .stage-top .top-right .daterange{
    flex:1 1 0;min-width:0;
  }
  .bs-native-route #app.app:has(.rs-scene) #drBtn{width:100%;max-width:none}
  .bs-native-route #app.app:has(.rs-scene) .stage-top .top-right .dr-menu{
    top:126px;max-height:calc(100dvh - 146px - env(safe-area-inset-bottom));
  }
  .bs-native-route #app.app:has(.rs-scene) .rm-overview{padding-top:144px}
  .bs-native-route #app.app:has(.rs-scene) .rm-card-value{
    font-size:clamp(16px,4vw,21px);line-height:1.18;
  }
}
/* Le dashboard s'affiche dans un panneau plus étroit que la fenêtre. */
@media (max-width:1150px){
  .bs-native-route #dashPanel .dash-head{align-items:flex-start}
  .bs-native-route #dashPanel .dash-title{min-width:0;flex-wrap:wrap;overflow-wrap:anywhere}
  .bs-native-route #dashPanel .dash-close{flex:none}
  .bs-native-route #dashPanel .dash-body{min-height:0;min-width:0}
  .bs-native-route #dashPanel .dk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bs-native-route #dashPanel .d-two,
  .bs-native-route #dashPanel .d-half{grid-template-columns:minmax(0,1fr)}
  .bs-native-route #dashPanel .dk,
  .bs-native-route #dashPanel .d-card,
  .bs-native-route #dashPanel .d-card2,
  .bs-native-route #dashPanel .d-halfcol{min-width:0;overflow-wrap:anywhere}
  .bs-native-route #dashPanel .d-donut,
  .bs-native-route #dashPanel .d-pie,
  .bs-native-route #dashPanel .d-ring-wrap{flex-wrap:wrap;justify-content:center}
  .bs-native-route #dashPanel .d-donut .lg{flex:1 1 180px;max-width:100%}
  .bs-native-route #dashPanel .pr,
  .bs-native-route #dashPanel .tl-name{min-width:0;overflow-wrap:anywhere}
}
@media (max-width:720px){
  .bs-native-route #dashPanel .dash-head{padding:14px}
  .bs-native-route #dashPanel .dash-title{font-size:15px}
  .bs-native-route #dashPanel .dash-sub{flex-basis:100%}
  .bs-native-route #dashPanel .dash-body{padding:16px 14px 32px}
  .bs-native-route #dashPanel .dk{padding:12px}
  .bs-native-route #dashPanel .dk-v{font-size:19px;line-height:1.2}
  .bs-native-route #dashPanel .iss-row{
    grid-template-columns:minmax(0,1fr) 50px 54px;gap:6px 10px;
  }
  .bs-native-route #dashPanel .iss-name{grid-column:1/-1;overflow-wrap:anywhere}
  .bs-native-route #console #page-metrics .kpi .val{
    white-space:normal;overflow-wrap:anywhere;line-height:1.2;font-size:18px;
  }
  .bs-native-route #console #page-metrics .mx-prod-nom{
    white-space:normal;overflow-wrap:anywhere;
  }
  .bs-native-route #console :is(.hx-onglets,.ax-tabs,.pc2-tabs,.pf2-tabs,.op2-tabs){
    overflow-y:hidden;scrollbar-width:none;
  }
  .bs-native-route #console :is(.hx-onglets,.ax-tabs,.pc2-tabs,.pf2-tabs,.op2-tabs)::-webkit-scrollbar{
    display:none;
  }
}
/* En paysage court, le calendrier reste entièrement dans la fenêtre. */
@media (max-width:1150px) and (max-height:520px){
  .bs-native-route #console :is(#page-metrics,#page-acquisition,#page-website,#page-codes,#page-operations).page.show
  :is(.hdr-custom-pop,.wp2-custom-pop){
    position:fixed;left:50%;right:auto;top:auto;bottom:16px;
    width:min(360px,calc(100vw - 32px));min-width:0;max-width:calc(100vw - 32px);
    max-height:calc(100dvh - 96px);overflow-y:auto;transform:translateX(-50%);
  }
}
@media (max-width:720px) and (max-height:520px){
  .bs-native-route #console :is(#page-metrics,#page-acquisition,#page-website,#page-codes,#page-operations).page.show
  :is(.hdr-custom-pop,.wp2-custom-pop){bottom:92px;max-height:calc(100dvh - 160px)}
}


/* native/responsiveCommerce.css; sha256=1783f9ec4cd0a20dabf3f2670ace6d9e3ef9af9876f0510a9c28e714bee45dcc */
/* Responsive presentation for History, promo codes, Pricing and Profitability.
   Keeps every value/control; wide data tables and heatmaps scroll inside their panel. */
.bs-native-route #console :is(#page-historique, #page-codes, #page-pricing, #page-profitability) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.bs-native-route #console #page-pricing .pricing-parameters-panel > .grid,
.bs-native-route #console #page-pricing .pricing-parameters-panel .field,
.bs-native-route #console #page-pricing .pricing-route-select,
.bs-native-route #console #page-pricing .pricing-route-button,
.bs-native-route #console #page-pricing :is(.sel, .inp) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.bs-native-route #console #page-pricing .pricing-parameters-panel > .grid > * { min-width: 0; }
.bs-native-route #console :is(#page-historique, #page-codes, #page-pricing, #page-profitability)
  :is(.scroll-x, .hx-tbl-wrap, .pc2-table-wrap, .pr2-table-wrap, .pf2-table-wrap, .pf2-prod-wrap, .pfi-table-wrap) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1150px) {
  .bs-native-route #console #page-profitability .pf2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bs-native-route #console #page-profitability .pf2-kpi-value{white-space:normal;overflow-wrap:anywhere}
}
@media (max-width: 1024px) {
  .bs-native-route #console #page-codes .wp2-range{position:relative;max-width:100%}
  .bs-native-route #console #page-codes .wp2-custom{position:static}
  .bs-native-route #console #page-codes .wp2-custom-pop{
    left:0;right:auto;width:min(292px,100%);min-width:0;max-width:100%;box-sizing:border-box;
  }
  .bs-native-route #console #page-pricing .pricing-parameters-panel > .grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }
  .bs-native-route #console #page-pricing .field label {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
  .bs-native-route #console #page-pricing .pricing-route-button { align-items: flex-start; }
  .bs-native-route #console #page-pricing .pricing-route-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
  body:has(.bs-native-route) .pricing-route-menu-portal {
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
  }
  body:has(.bs-native-route) .pricing-route-menu-portal .pricing-route-option span:last-child {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-pricing :is(.chips, .minis) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .bs-native-route #console #page-pricing :is(.chip, .mini, .mini > div) { min-width: 0; }
  .bs-native-route #console #page-pricing :is(.chip .cn, .chip .cc, .mini .ml, .mini .mv, .mini .ms) {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-historique :is(.hx-onglets, .hx-barre-d, .hx-seg) {
    min-width: 0;
    max-width: 100%;
  }
  .bs-native-route #console #page-historique .hx-barre-d { flex-wrap: wrap; }
  .bs-native-route #console #page-historique .hx-heat {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .bs-native-route #console #page-historique .hx-heat-l { min-width: 640px; }
  .bs-native-route #console #page-historique .hx-tbl-wrap { margin-inline: 0; }
  .bs-native-route #console #page-codes :is(.pc2-panel-head, .pc2-panel-right) {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .bs-native-route #console #page-codes .pc2-evo .pc2-panel-right { flex: 1 1 220px; }
  .bs-native-route #console #page-codes .pc2-panel-right .wp2-select {
    flex: 1 1 120px;
    min-width: 0;
    max-width: 100%;
  }
  .bs-native-route #console #page-codes .pc2-panel-right .wp2-select select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .bs-native-route #console #page-codes .pc2-panel-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .bs-native-route #console :is(#page-codes, #page-profitability, #page-pricing)
    :is(.pc2-mini > div, .pr2-mini > div, .pf2-lines li > span) { min-width: 0; }
}

@media (max-width: 720px) {
  .bs-native-route #console #page-historique { padding: 24px 16px 110px; }
  .bs-native-route #console #page-historique .hx-barre { gap: 10px; }
  .bs-native-route #console #page-historique .hx-onglets {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    flex: 1 1 100%;
  }
  .bs-native-route #console #page-historique .hx-onglets button {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
    padding: 10px 12px;
  }
  .bs-native-route #console #page-historique .hx-barre-d { width: 100%; gap: 8px; }
  .bs-native-route #console #page-historique .hx-seg { flex-wrap: wrap; }
  .bs-native-route #console #page-historique .hx-comp {
    display: grid;
    grid-template-columns: minmax(510px, 1fr);
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  /* The icon and label share the first row; every number and note gets the full card width. */
  .bs-native-route #console #page-historique .hx-kpis,
  .bs-native-route #console #page-codes .pc2-kpis,
  .bs-native-route #console #page-profitability .pf2-kpis,
  .bs-native-route #console #page-pricing .pr2-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bs-native-route #console #page-historique .hx-kpi,
  .bs-native-route #console #page-codes .pc2-kpi,
  .bs-native-route #console #page-profitability .pf2-kpi,
  .bs-native-route #console #page-pricing .pr2-kpi {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    align-content: start;
    gap: 6px 8px;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    grid-column: auto;
  }
  .bs-native-route #console #page-historique .hx-kpi-corps,
  .bs-native-route #console #page-codes .pc2-kpi-body,
  .bs-native-route #console #page-profitability .pf2-kpi-body,
  .bs-native-route #console #page-pricing .pr2-kpi-body { display: contents; }
  .bs-native-route #console #page-historique .hx-kpi-ico,
  .bs-native-route #console #page-codes .pc2-kpi-ico,
  .bs-native-route #console #page-profitability .pf2-kpi-ico,
  .bs-native-route #console #page-pricing .pr2-kpi-ico {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .bs-native-route #console #page-historique .hx-kpi-ico svg,
  .bs-native-route #console #page-codes .pc2-kpi-ico svg,
  .bs-native-route #console #page-profitability .pf2-kpi-ico svg,
  .bs-native-route #console #page-pricing .pr2-kpi-ico svg { width: 16px; height: 16px; }
  .bs-native-route #console #page-historique .hx-kpi-lbl,
  .bs-native-route #console #page-codes .pc2-kpi-label,
  .bs-native-route #console #page-profitability .pf2-kpi-label,
  .bs-native-route #console #page-pricing .pr2-kpi-label {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 28px;
    align-content: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.35;
  }
  .bs-native-route #console #page-historique .hx-kpi-val,
  .bs-native-route #console #page-codes .pc2-kpi-value,
  .bs-native-route #console #page-profitability .pf2-kpi-value,
  .bs-native-route #console #page-pricing .pr2-kpi-value {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.25;
  }
  .bs-native-route #console #page-historique :is(.hx-kpi-d, .hx-kpi-note),
  .bs-native-route #console #page-codes :is(.pc2-kpi-row, .pc2-kpi-foot),
  .bs-native-route #console #page-profitability :is(.pf2-kpi-foot, .pf2-kpi-line),
  .bs-native-route #console #page-pricing :is(.pr2-kpi-foot, .pr2-kpi-bars) {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }
  .bs-native-route #console #page-historique .hx-kpi-note,
  .bs-native-route #console #page-codes .pc2-kpi-foot,
  .bs-native-route #console #page-profitability .pf2-kpi-foot,
  .bs-native-route #console #page-pricing .pr2-kpi-foot {
    display: block;
    -webkit-line-clamp: unset;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 1.4;
  }
  .bs-native-route #console #page-codes .pc2-kpi-row { flex-wrap: wrap; gap: 4px 8px; }
  .bs-native-route #console #page-codes .pc2-kpi-spark { flex: 1 1 62px; max-width: 100%; }
  .bs-native-route #console #page-profitability .pf2-kpi-line { width: 100%; height: 10px; }
  .bs-native-route #console #page-profitability .pf2-kpi-value.missing { font-size: 15px; }

  .bs-native-route #console #page-codes .pc2-bars li {
    grid-template-columns: minmax(0, 1fr) minmax(42px, .8fr) auto;
    gap: 8px;
  }
  .bs-native-route #console #page-codes .pc2-goals li {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) auto;
    column-gap: 8px;
  }
  .bs-native-route #console #page-codes :is(.pc2-bars .lbl, .pc2-goals .detail, .pc2-legend li > span, .pc2-mini span, .pc2-mini b, .pc2-countries .name) {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-codes :is(.pc2-tabs, .pc2-search) { min-width: 0; max-width: 100%; }
  .bs-native-route #console #page-codes .pc2-tabs { overflow-y: hidden; }
  .bs-native-route #console #page-codes .pc2-search input { width: 100%; min-width: 0; }
  .bs-native-route #console #page-profitability :is(.pf2-controls, .pf2-seg, .pf2-period) { min-width: 0; max-width: 100%; }
  .bs-native-route #console #page-profitability .pf2-seg { flex-wrap: wrap; }
  .bs-native-route #console #page-profitability .pf2-period select { min-width: 0; max-width: 100%; }
  .bs-native-route #console #page-profitability .pf2-tabs { min-width: 0; max-width: 100%; overflow-y: hidden; }
  .bs-native-route #console #page-profitability .pf2-legend-list li { grid-template-columns: 9px minmax(0, 1fr) auto; gap: 4px 6px; }
  .bs-native-route #console #page-profitability .pf2-legend-list li > em { grid-column: 2 / -1; justify-self: end; }
  .bs-native-route #console #page-profitability .pf2-source b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .bs-native-route #console #page-profitability .pfi-grid { grid-template-columns: minmax(0, 1fr); }
  .bs-native-route #console #page-profitability :is(.pfi-grid, .pfi-meta, .pfi-totals) > * { min-width: 0; }
  .bs-native-route #console #page-profitability .pfi-manual :is(input, select) { width: 100%; max-width: 100%; box-sizing: border-box; }
  .bs-native-route #console #page-pricing .mini { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .bs-native-route #console #page-pricing .mini .mi { width: 28px; height: 28px; }
  .bs-native-route #console #page-pricing :is(.pr2-minis, .pr2-steps) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-native-route #console #page-pricing :is(.pr2-mini, .pr2-steps > div) { min-width: 0; padding: 12px; }
  .bs-native-route #console #page-pricing :is(.pr2-mini-value, .pr2-mini-foot, .pr2-steps strong, .pr2-steps small) { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 479px) {
  .bs-native-route #console #page-pricing .pricing-parameters-panel > .grid { grid-template-columns: minmax(0, 1fr) !important; }
  .bs-native-route #console #page-pricing .pricing-parameters-panel :is(.sel, .inp, .pricing-route-button) { width: 100%; min-height: 44px; }
  .bs-native-route #console #page-historique .hx-barre-d .hx-btn { min-height: 40px; }
  .bs-native-route #console #page-codes .pc2-mini { column-gap: 8px; }
  .bs-native-route #console #page-codes .pc2-mini > div { padding-right: 4px; padding-left: 8px; }
}


/* native/responsiveOperationsSettings.css; sha256=4623a3796f1e6654da9903649c35b1b1f687a4e836299f6470160e70db5eb220 */
/* BrandMetriks — responsive Acquisition, Website, Operations, Connections and Settings.
 * Additive stylesheet, loaded after the existing page styles. No data or action changes.
 * Wide tables scroll inside their own panel; numbers are never replaced by an ellipsis.
 */

.bs-native-route #console :is(#page-acquisition, #page-website, #page-operations, #page-connexions, #page-parametres) {
  min-width: 0;
  box-sizing: border-box;
}
.bs-native-route #console #page-acquisition :is(.ax-page, .ax-grid, .ax-scroll),
.bs-native-route #console #page-website :is(.wp2-lower-main, .wp2-table-wrap),
.bs-native-route #console #page-operations :is(.op2-table-wrap, .op2-live-products),
.bs-native-route #console #page-connexions :is(.cx2-field, .cx2-select),
.bs-native-route #console #page-parametres :is(.field, .bs-set-pwd, .bs-set-billing__side) {
  min-width: 0;
  max-width: 100%;
}
.bs-native-route #console #page-acquisition .ax-scroll,
.bs-native-route #console #page-website .wp2-table-wrap,
.bs-native-route #console #page-operations :is(.op2-table-wrap, .op2-live-products) {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.bs-native-route #console #page-website .wp2-table {
  min-width: 620px;
  table-layout: auto;
}
.bs-native-route #console #page-website .wp2-table .num {
  min-width: 72px;
  overflow: visible;
  text-overflow: clip;
}
.bs-native-route #console #page-website .wp2-table .path {
  max-width: 280px;
}

/* The connection drawer is outside the page root but inside .bs-native-route. */
/* Its fixed overlay still belongs to the console stacking context. Raise that
 * context while it is open so the mobile header and bottom navigation cannot
 * cover the drawer's close button or footer actions. */
.bs-native-route #console:has(#page-connexions .cnx-overlay) {
  z-index: 120;
}
.bs-native-route .cnx-overlay .cnx-drawer {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.bs-native-route .cnx-overlay :is(.cnx-dw-body, .cnx-fields, .cnx-manual, .cnx-pw, .field) {
  min-width: 0;
}
.bs-native-route .cnx-overlay .cnx-dw-body {
  min-height: 0;
  overscroll-behavior-y: contain;
}
.bs-native-route .cnx-overlay :is(.inp, textarea, select) {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.bs-native-route .cnx-overlay :is(.cnx-hint, .cnx-alert, .cnx-feedback, .cnx-dw-title, .cnx-acc-body, .cnx-meta-row) {
  overflow-wrap: anywhere;
}
.bs-native-route .cnx-overlay .cnx-acc-body code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.bs-native-route .cnx-overlay .cnx-manual > .cnx-sec-title {
  flex-wrap: wrap;
}
/* These two grids replace explicit inline columns/minimums in ManualAdsBlock. */
.bs-native-route .cnx-overlay .cnx-manual > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.bs-native-route .cnx-overlay .cnx-manual > .field {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px !important;
}
.bs-native-route .cnx-overlay .cnx-manual > .field > span {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}
.bs-native-route .cnx-overlay .cnx-manual > .field > :is(span:first-child, button) {
  grid-column: 1 / -1;
}

@media (max-width: 1150px) {
  /* Le sous-onglet Approvisionnements conserve aussi des cartes héritées. */
  .bs-native-route #console #page-operations .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .bs-native-route #console #page-operations .kpi { min-width: 0; }
  .bs-native-route #console #page-operations .kpi .val {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  /* At tablet widths the console rail leaves less room than the viewport suggests. */
  .bs-native-route #console #page-acquisition .ph {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }
  .bs-native-route #console #page-acquisition .ph-actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .bs-native-route #console #page-acquisition .hdr-date {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .bs-native-route #console #page-acquisition .hdr-date > .pill.lite {
    flex-basis: 100%;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-acquisition .hdr-custom-wrap {
    position: static;
  }
  .bs-native-route #console #page-acquisition .hdr-custom-pop {
    left: 0;
    right: auto;
    width: min(292px, 100%);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .bs-native-route #console :is(#page-website, #page-operations) .wp2-range {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }
  .bs-native-route #console :is(#page-website, #page-operations) .wp2-custom {
    position: static;
  }
  .bs-native-route #console :is(#page-website, #page-operations) .wp2-custom-pop {
    left: 0;
    right: auto;
    width: min(292px, 100%);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .bs-native-route #console :is(#page-website, #page-operations) .wp2-custom-pop input,
  .bs-native-route #console #page-acquisition .hdr-custom-pop input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .bs-native-route #console #page-website .wp2-funnel li {
    grid-template-columns: 18px minmax(0, 1fr) 58px 54px;
    gap: 8px;
  }
  .bs-native-route #console #page-website .wp2-funnel-label {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-website .wp2-funnel-bar {
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .bs-native-route #console #page-website .wp2-kpi-row {
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .bs-native-route #console #page-website .wp2-kpi-spark {
    max-width: 100%;
    margin-left: 0;
  }
  .bs-native-route #console #page-connexions .cx2-settings-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .bs-native-route #console #page-connexions .cx2-save {
    width: 100%;
    min-width: 0;
  }
  .bs-native-route #console #page-parametres .bs-set {
    grid-template-columns: minmax(0, 1fr);
  }
  .bs-native-route #console #page-parametres .bs-set-billing {
    grid-template-columns: minmax(0, 1fr);
  }
  .bs-native-route #console #page-parametres .bs-set-billing__side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .17);
    padding: 20px 24px;
  }
  .bs-native-route #console #page-parametres .bs-set-thead {
    display: none;
  }
  .bs-native-route #console #page-parametres #acc-list .acc-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px 12px;
  }
  .bs-native-route #console #page-parametres #acc-list .acc-summary,
  .bs-native-route #console #page-parametres #acc-list .acc-actions {
    grid-column: 1 / -1;
    min-width: 0;
    margin-left: 0;
  }
  .bs-native-route #console #page-parametres #acc-list .acc-summary {
    order: 5;
  }
}

@media (max-width: 850px) {
  .bs-native-route #console #page-acquisition .ax-card-spark {
    display: none;
  }
  .bs-native-route #console #page-acquisition :is(.ax-card-label, .ax-card-note),
  .bs-native-route #console #page-website :is(.wp2-kpi-label, .wp2-kpi-foot),
  .bs-native-route #console #page-operations .op2-kpi-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
  .bs-native-route #console #page-website .wp2-metrics span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-website .wp2-panel-head h2,
  .bs-native-route #console #page-operations .op2-panel-title {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 720px) {
  /* Two compact metrics per row, including 320px phones. Icons/sparks are decorative. */
  .bs-native-route #console #page-acquisition .ax-kpis,
  .bs-native-route #console #page-website .wp2-kpis,
  .bs-native-route #console #page-operations .op2-kpis:is(.n4, .n5, .n6) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bs-native-route #console #page-acquisition .ax-card,
  .bs-native-route #console #page-website .wp2-kpi,
  .bs-native-route #console #page-operations .op2-kpi {
    min-height: 106px;
    padding: 12px 11px;
    gap: 0;
    align-items: flex-start;
  }
  .bs-native-route #console #page-acquisition .ax-card-icon,
  .bs-native-route #console #page-website :is(.wp2-kpi-ico, .wp2-kpi-spark),
  .bs-native-route #console #page-operations .op2-kpi-ico {
    display: none;
  }
  .bs-native-route #console #page-acquisition .ax-card-value,
  .bs-native-route #console #page-acquisition .ax-card:has(.ax-card-spark) .ax-card-value,
  .bs-native-route #console #page-website .wp2-kpi-value,
  .bs-native-route #console #page-operations .op2-kpi-value {
    font-size: clamp(18px, 5vw, 20px);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-operations .op2-kpi-value.missing {
    font-size: 14px;
  }
  .bs-native-route #console #page-website .wp2-kpi-row {
    min-height: 0;
  }
  .bs-native-route #console #page-website .wp2-compare {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .bs-native-route #console #page-website .wp2-select {
    min-width: 0;
    max-width: 100%;
  }
  .bs-native-route #console #page-website .wp2-select select {
    max-width: 100%;
    min-height: 40px;
  }
  .bs-native-route #console #page-website .wp2-hours-stats > div {
    min-width: 0;
    padding: 0 5px;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-website .wp2-hours-stats b {
    font-size: 17px;
  }
  .bs-native-route #console #page-operations .op2-cap-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .bs-native-route #console #page-operations .op2-cap-cols :is(b, em) {
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-operations .op2-stock-kpi .op2-kpi {
    padding-right: 25px;
  }
  .bs-native-route #console #page-operations .op2-stock-kpi-chev {
    right: 8px;
  }
  .bs-native-route #console #page-connexions .cx2-brand {
    width: 100%;
    max-width: 100%;
  }
  .bs-native-route #console #page-connexions .cx2-brand-btn {
    width: 100%;
    min-width: 0;
  }
  .bs-native-route #console #page-connexions .cx2-brand-btn > span:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-connexions .cx2-brand-menu {
    left: 0;
    right: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .bs-native-route #console #page-connexions :is(.cx2-settings-head h2, .cx2-brand-item) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-connexions .cx2-secure {
    max-width: 100%;
    height: auto;
    min-height: 34px;
    padding: 7px 12px;
    white-space: normal;
  }
  .bs-native-route #console #page-parametres :is(.bs-set-pair, .bs-set-triple) {
    grid-template-columns: minmax(0, 1fr);
  }
  .bs-native-route #console #page-parametres :is(.p-title, .bs-set-badge, .acc-role, .bs-set-billing__v) {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-parametres :is(.acc-tools, .acc-actions, .acc-roleseg) {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
  .bs-native-route #console #page-parametres .acc-roleseg button {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .bs-native-route #console #page-parametres .bl-actions {
    min-width: 0;
    flex-basis: 100%;
  }
  .bs-native-route #console #page-parametres .bs-set-billing__main .bm-billing__content {
    padding: 20px 16px;
  }
  .bs-native-route #console #page-parametres .bs-set-billing__main .bm-billing__crown {
    position: static;
    margin-bottom: 14px;
  }
  .bs-native-route #console #page-parametres .bs-set-billing__side {
    padding: 20px 16px;
  }
  .bs-native-route .cnx-overlay .cnx-dw-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    gap: 9px 10px;
    padding: 16px;
  }
  .bs-native-route .cnx-overlay .cnx-dw-id {
    grid-column: 2;
    grid-row: 1;
  }
  .bs-native-route .cnx-overlay .cnx-dw-head > .cnx-badge {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
  }
  .bs-native-route .cnx-overlay .cnx-x {
    grid-column: 3;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }
  .bs-native-route .cnx-overlay :is(.cnx-dw-body, .cnx-dw-foot) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bs-native-route .cnx-overlay .cnx-btn {
    white-space: normal;
    min-height: 40px;
  }
  .bs-native-route .cnx-overlay :is(.inp, textarea, select) {
    min-height: 40px;
  }
  .bs-native-route .bm-billing-account details {
    min-width: 0;
    flex-basis: 100%;
  }
  .bs-native-route .bm-billing-account__fields input {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 430px) {
  .bs-native-route #console #page-operations .kpi { padding: 12px; }
  .bs-native-route #console #page-operations .kpi .val { font-size: 17px; }
  .bs-native-route .cnx-overlay .cnx-manual > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .bs-native-route .cnx-overlay .cnx-manual > .field {
    grid-template-columns: minmax(0, 1fr);
  }
  .bs-native-route #console #page-parametres #acc-list .acc-head {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .bs-native-route #console #page-parametres #acc-list .acc-role {
    grid-column: 2;
  }
  .bs-native-route #console #page-parametres .acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

