/*
 * mini-ERP V5.0.88 — couche d'interface responsive unifiée
 * Chargée après l'ancien style.css afin de stabiliser l'affichage sans
 * modifier la logique métier des vues historiques.
 */

:root{
  --erp-primary:#1f5fd6;
  --erp-primary-strong:#174aa8;
  --erp-primary-soft:#edf4ff;
  --erp-accent:#168a67;
  --erp-danger:#c53030;
  --erp-warning:#b7791f;
  --erp-text:#172033;
  --erp-muted:#65748b;
  --erp-line:#d7e0ec;
  --erp-line-strong:#c2cedd;
  --erp-bg:#f2f5f9;
  --erp-surface:#fff;
  --erp-surface-soft:#f8fafc;
  --erp-radius-sm:10px;
  --erp-radius:16px;
  --erp-radius-lg:22px;
  --erp-shadow-sm:0 4px 14px rgba(23,32,51,.07);
  --erp-shadow:0 14px 36px rgba(23,32,51,.10);
  --erp-sidebar-width:276px;
  --erp-topbar-height:72px;
  --erp-touch:44px;
}

html{
  min-width:320px;
  background:var(--erp-bg);
  scroll-behavior:smooth;
}

body.erp-app{
  min-width:320px;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 12% -8%,rgba(31,95,214,.11),transparent 30%),
    linear-gradient(180deg,#f8fbff 0,var(--erp-bg) 28%,#eef2f7 100%);
  color:var(--erp-text);
  font-size:15px;
  line-height:1.45;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

body.erp-app img,
body.erp-app svg,
body.erp-app video,
body.erp-app canvas,
body.erp-app iframe{
  max-width:100%;
}

body.erp-app a,
body.erp-app button,
body.erp-app input,
body.erp-app select,
body.erp-app textarea,
body.erp-app summary{
  -webkit-tap-highlight-color:transparent;
}

body.erp-app :focus-visible{
  outline:3px solid rgba(31,95,214,.32);
  outline-offset:2px;
}

/* Structure générale ------------------------------------------------------ */
body.erp-app .topbar{
  position:sticky;
  inset:0 0 auto;
  z-index:1000;
  min-height:var(--erp-topbar-height);
  padding:8px clamp(12px,2vw,24px);
  gap:14px;
}

body.erp-app .brand-block{
  flex:0 0 auto;
  min-width:0;
}

body.erp-app .brand-logo img{
  width:210px;
  height:56px;
  object-fit:contain;
}

body.erp-app .topbar-middle{
  min-width:0;
  flex:1 1 auto;
  margin:0;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
}

body.erp-app .topbar-searches{
  min-width:0;
  flex:1 1 440px;
  justify-content:flex-end;
}

body.erp-app .topbar-quick-search{
  width:clamp(210px,22vw,320px);
  min-width:180px;
}

body.erp-app .topbar-quick-search input{
  min-height:42px;
}

body.erp-app .topbar-user{
  flex:0 0 auto;
  min-width:0;
}

body.erp-app .layout{
  display:grid;
  grid-template-columns:var(--erp-sidebar-width) minmax(0,1fr);
  width:100%;
  min-height:calc(100vh - var(--erp-topbar-height));
  align-items:stretch;
}

body.erp-app .sidebar{
  position:sticky;
  top:var(--erp-topbar-height);
  align-self:flex-start;
  width:var(--erp-sidebar-width);
  min-width:var(--erp-sidebar-width);
  height:calc(100vh - var(--erp-topbar-height));
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.28) transparent;
}

body.erp-app .sidebar::-webkit-scrollbar{width:7px}
body.erp-app .sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24);border-radius:99px}

body.erp-app .content{
  min-width:0;
  width:100%;
  max-width:none;
  padding:clamp(14px,1.55vw,22px);
}

body.erp-app .sidebar-backdrop{
  display:none;
  position:fixed;
  inset:var(--erp-topbar-height) 0 0;
  z-index:889;
  width:auto;
  height:auto;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:rgba(8,18,36,.46);
  box-shadow:none;
  backdrop-filter:blur(2px);
}

body.erp-app .shopbar{
  margin-bottom:18px;
  min-width:0;
}

body.erp-app .shopbar-copy{
  min-width:0;
}

body.erp-app .shop-pills{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

body.erp-app .shop-pill,
body.erp-app .button{
  margin-left:0;
}

/* Typographie et conteneurs ---------------------------------------------- */
body.erp-app h1,
body.erp-app h2,
body.erp-app h3{
  color:#14213a;
  line-height:1.2;
}

body.erp-app h1{font-size:clamp(1.55rem,2.1vw,2.15rem)}
body.erp-app h2{font-size:clamp(1.18rem,1.55vw,1.48rem)}
body.erp-app h3{font-size:1.05rem}

body.erp-app .page-title{
  margin:0 0 16px;
  align-items:flex-start;
}

body.erp-app .page-title > div:first-child{
  min-width:0;
  flex:1 1 360px;
}

body.erp-app .page-title h1{
  margin:0;
}

body.erp-app .page-title .help-text{
  max-width:900px;
  margin-top:5px;
}

body.erp-app .box,
body.erp-app .card,
body.erp-app .shopbar,
body.erp-app .login-card,
body.erp-app .master-kpi{
  border-color:rgba(199,211,227,.84);
  border-radius:var(--erp-radius-lg);
  box-shadow:var(--erp-shadow-sm);
}

body.erp-app .box,
body.erp-app .card{
  padding:clamp(14px,1.6vw,20px);
}


body.erp-app .error-page-shell{
  width:min(900px,calc(100% - 24px));
  margin:40px auto;
}

body.erp-app .box + .box,
body.erp-app .box + .card,
body.erp-app .card + .box{
  margin-top:16px;
}

body.erp-app .cards{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:14px;
}

body.erp-app .grid2,
body.erp-app .grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

body.erp-app .grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

body.erp-app .toolbar-row,
body.erp-app .toolbar-actions,
body.erp-app .table-actions,
body.erp-app .form-actions,
body.erp-app .action-row,
body.erp-app .button-row{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}

body.erp-app .toolbar-row > input[type="search"]{
  min-width:min(100%,280px);
  flex:1 1 320px;
}

body.erp-app .toolbar-row > select{
  width:auto;
  min-width:155px;
  flex:0 1 220px;
}

body.erp-app .toolbar-actions{
  justify-content:flex-end;
}

/* Formulaires tactiles et lisibles --------------------------------------- */
body.erp-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.erp-app select,
body.erp-app textarea{
  width:100%;
  min-height:var(--erp-touch);
  padding:10px 12px;
  border:1px solid var(--erp-line-strong);
  border-radius:var(--erp-radius-sm);
  background:#fff;
  color:var(--erp-text);
  font-size:16px;
}

body.erp-app textarea{
  min-height:118px;
  resize:vertical;
}

body.erp-app input[type="checkbox"],
body.erp-app input[type="radio"]{
  width:20px;
  height:20px;
  min-width:20px;
  accent-color:var(--erp-primary);
}

body.erp-app label{
  margin:7px 0 5px;
  color:#26364f;
  font-size:13px;
  font-weight:750;
}

body.erp-app fieldset{
  min-width:0;
  border:1px solid var(--erp-line);
  border-radius:var(--erp-radius);
}

body.erp-app .field-static{
  min-height:var(--erp-touch);
}

body.erp-app .checkbox-row{
  min-height:var(--erp-touch);
  align-items:center;
}

body.erp-app .button,
body.erp-app button:not(.menu-toggle):not(.sidebar-backdrop):not(.tree-toggle){
  min-height:var(--erp-touch);
  padding:9px 15px;
  border-radius:12px;
  line-height:1.15;
  white-space:normal;
}

body.erp-app .button-light{
  background:#f3f7fd !important;
  border-color:#c9d6e8;
  color:#234a85 !important;
}

body.erp-app .button-danger,
body.erp-app .button-danger-soft{
  border-color:#f0b8b8 !important;
}

body.erp-app .inline-delete-form,
body.erp-app .table-actions form{
  display:inline-flex;
  margin:0;
}

body.erp-app .sticky-actions,
body.erp-app .form-actions.sticky-actions{
  z-index:80;
  bottom:10px;
  max-width:100%;
  border:1px solid rgba(194,206,221,.9);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
}

/* Tableaux et listes ------------------------------------------------------ */
body.erp-app table{
  width:100%;
  min-width:0;
  border-collapse:separate;
  border-spacing:0;
  overflow:visible;
  border:1px solid var(--erp-line);
  border-radius:var(--erp-radius);
  background:#fff;
  box-shadow:var(--erp-shadow-sm);
}

body.erp-app thead th{
  position:relative;
  padding:10px 11px;
  border-bottom:1px solid var(--erp-line-strong);
  background:#edf3fb;
  color:#2e4565;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:.035em;
  white-space:nowrap;
}

body.erp-app tbody td{
  padding:10px 11px;
  border-bottom:1px solid #e9eef5;
  background:#fff;
  color:#263247;
  line-height:1.35;
}

body.erp-app tbody tr:last-child td{
  border-bottom:0;
}

body.erp-app tbody tr:hover td{
  background:#f8fbff;
}

body.erp-app .table-scroll,
body.erp-app .table-wrap,
body.erp-app .table-wrapper,
body.erp-app .table-responsive,
body.erp-app .erp-table-scroll{
  position:relative;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  margin:0;
  padding:0 0 5px;
  border-radius:var(--erp-radius);
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  scrollbar-color:#a9bad1 #edf2f7;
  -webkit-overflow-scrolling:touch;
}

body.erp-app .table-scroll::-webkit-scrollbar,
body.erp-app .table-wrap::-webkit-scrollbar,
body.erp-app .table-wrapper::-webkit-scrollbar,
body.erp-app .table-responsive::-webkit-scrollbar,
body.erp-app .erp-table-scroll::-webkit-scrollbar{
  height:10px;
}

body.erp-app .table-scroll::-webkit-scrollbar-thumb,
body.erp-app .table-wrap::-webkit-scrollbar-thumb,
body.erp-app .table-wrapper::-webkit-scrollbar-thumb,
body.erp-app .table-responsive::-webkit-scrollbar-thumb,
body.erp-app .erp-table-scroll::-webkit-scrollbar-thumb{
  border:2px solid #edf2f7;
  border-radius:99px;
  background:#a9bad1;
}

body.erp-app .erp-table-scroll.is-scrollable::after,
body.erp-app .table-scroll.is-scrollable::after{
  content:"Glisser horizontalement pour voir la suite →";
  position:sticky;
  left:10px;
  display:inline-block;
  margin-top:6px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:#385a8a;
  font-size:11px;
  font-weight:700;
  pointer-events:none;
}

body.erp-app .table-actions{
  min-width:150px;
  align-items:flex-start;
}

body.erp-app .table-actions .button,
body.erp-app .table-actions button{
  min-height:38px;
  padding:7px 10px;
  font-size:12px;
}

body.erp-app .sort-link,
body.erp-app .table-sort-link{
  color:inherit;
  text-decoration:none;
}

body.erp-app .badge,
body.erp-app .inline-chip,
body.erp-app .kpi-chip{
  line-height:1.2;
}

/* Fiche et liste articles — priorité tablette ---------------------------- */
body.erp-page-products .box:first-of-type,
body.erp-page-forfaits .box:first-of-type{
  position:sticky;
  top:calc(var(--erp-topbar-height) + 10px);
  z-index:70;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
}

body.erp-page-products .table-scroll--products,
body.erp-page-forfaits .table-scroll--products{
  margin-top:14px;
}

body.erp-page-products .product-list-table,
body.erp-page-forfaits .product-list-table{
  min-width:1050px;
}

body.erp-page-products .product-list-table td:nth-child(3),
body.erp-page-forfaits .product-list-table td:nth-child(3){
  min-width:210px;
  font-weight:700;
}

body.erp-page-products .product-list-table td:nth-child(4),
body.erp-page-forfaits .product-list-table td:nth-child(4){
  min-width:125px;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-weight:700;
}

body.erp-page-products .product-list-table td:nth-child(5),
body.erp-page-forfaits .product-list-table td:nth-child(5){
  min-width:115px;
}

body.erp-page-products .product-list-table th:last-child,
body.erp-page-products .product-list-table td:last-child,
body.erp-page-forfaits .product-list-table th:last-child,
body.erp-page-forfaits .product-list-table td:last-child{
  position:sticky;
  right:0;
  z-index:2;
  background:#fff;
  box-shadow:-8px 0 16px rgba(23,32,51,.08);
}

body.erp-page-products .product-list-table thead th:last-child,
body.erp-page-forfaits .product-list-table thead th:last-child{
  z-index:3;
  background:#edf3fb;
}

body.erp-page-product-edit .content,
body.erp-page-product-edit .box{
  min-width:0;
}

body.erp-page-product-edit .grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

body.erp-page-product-edit .product-images-grid,
body.erp-page-product-edit .image-preview-list{
  grid-template-columns:repeat(auto-fill,minmax(155px,1fr));
}

body.erp-page-product-edit .tox-tinymce,
body.erp-page-product-edit .wysiwyg-editor{
  max-width:100%;
}

/* Modales ---------------------------------------------------------------- */
body.erp-app.modal-open{
  overflow:hidden;
}

body.erp-app .modal-panel,
body.erp-app .erp-modal__panel,
body.erp-app .crop-modal-panel,
body.erp-app .cash-modal-panel{
  width:min(960px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  margin:14px auto;
  border-radius:var(--erp-radius-lg);
}

body.erp-app .modal-header,
body.erp-app .erp-modal__head{
  position:sticky;
  top:0;
  z-index:5;
  padding:4px 0 10px;
  background:#fff;
}

body.erp-app .modal-close,
body.erp-app .erp-modal__close{
  flex:0 0 44px;
  width:44px;
  height:44px;
  min-height:44px;
  padding:0;
}

body.erp-app .cash-modal-frame{
  width:100%;
  min-height:min(760px,78dvh);
  border:0;
}

/* Arbres, galeries et zones complexes ------------------------------------ */
body.erp-app .category-tree,
body.erp-app .master-data-list,
body.erp-app .topbar-quick-results{
  overscroll-behavior:contain;
}

body.erp-app .tree-row,
body.erp-app .tree-item{
  min-width:0;
}

body.erp-app .master-data-layout{
  grid-template-columns:minmax(270px,360px) minmax(0,1fr);
}

body.erp-app .desk-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),1fr));
}

/* Ecrans moyens : tablette paysage et petite tablette -------------------- */
@media (max-width:1180px){
  :root{
    --erp-topbar-height:68px;
  }

  body.erp-app .topbar{
    flex-wrap:nowrap;
  }

  body.erp-app .menu-toggle{
    display:flex;
    flex:0 0 44px;
    width:44px;
    height:44px;
    min-height:44px;
    padding:10px;
  }

  body.erp-app .brand-logo img{
    width:176px;
    height:50px;
  }

  body.erp-app .topbar-middle{
    order:initial;
    width:auto;
    margin:0;
  }

  body.erp-app .topbar-nav-dropdown{
    display:none;
  }

  body.erp-app .topbar-searches{
    flex-wrap:nowrap;
  }

  body.erp-app .topbar-quick-search{
    width:min(235px,24vw);
    min-width:165px;
  }

  body.erp-app .layout{
    display:block;
  }

  body.erp-app .sidebar{
    display:block;
    position:fixed;
    top:var(--erp-topbar-height);
    bottom:0;
    left:0;
    z-index:900;
    width:min(340px,88vw);
    min-width:0;
    height:auto;
    max-height:none;
    transform:translateX(-105%);
    transition:transform .2s ease;
    box-shadow:18px 0 42px rgba(8,18,36,.28);
  }

  body.erp-app.nav-open{
    overflow:hidden;
  }

  body.erp-app.nav-open .sidebar{
    transform:translateX(0);
  }

  body.erp-app.nav-open .sidebar-backdrop{
    display:block;
  }

  body.erp-app .content{
    width:100%;
    max-width:none;
    padding:18px;
  }

  body.erp-app .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.erp-app .master-data-layout{
    grid-template-columns:1fr;
  }

  body.erp-page-products .product-list-table,
  body.erp-page-forfaits .product-list-table{
    min-width:850px;
  }

  body.erp-page-products .product-list-table th:nth-child(1),
  body.erp-page-products .product-list-table td:nth-child(1),
  body.erp-page-products .product-list-table th:nth-child(2),
  body.erp-page-products .product-list-table td:nth-child(2),
  body.erp-page-products .product-list-table th:nth-child(7),
  body.erp-page-products .product-list-table td:nth-child(7),
  body.erp-page-products .product-list-table th:nth-child(10),
  body.erp-page-products .product-list-table td:nth-child(10),
  body.erp-page-forfaits .product-list-table th:nth-child(1),
  body.erp-page-forfaits .product-list-table td:nth-child(1),
  body.erp-page-forfaits .product-list-table th:nth-child(2),
  body.erp-page-forfaits .product-list-table td:nth-child(2),
  body.erp-page-forfaits .product-list-table th:nth-child(7),
  body.erp-page-forfaits .product-list-table td:nth-child(7),
  body.erp-page-forfaits .product-list-table th:nth-child(10),
  body.erp-page-forfaits .product-list-table td:nth-child(10){
    display:none;
  }

  body.erp-page-product-edit .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Tablette portrait / grands téléphones ---------------------------------- */
@media (max-width:820px){
  :root{
    --erp-topbar-height:62px;
  }

  body.erp-app .topbar{
    min-height:var(--erp-topbar-height);
    padding:6px 10px;
    gap:8px;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
  }

  body.erp-app .brand-block{
    width:auto;
    flex:0 1 auto;
    display:flex;
    align-items:center;
    gap:8px;
  }

  body.erp-app .brand-logo img{
    width:150px;
    max-width:42vw;
    height:46px;
  }

  body.erp-app .topbar-middle{
    order:initial;
    width:auto;
    flex:0 0 auto;
    justify-content:flex-end;
    gap:6px;
    margin:0 0 0 auto;
  }

  body.erp-app .topbar-searches{
    display:none;
  }

  body.erp-app .topbar-user{
    width:auto;
    flex:0 0 auto;
    padding:0;
    border:0;
    background:transparent;
  }

  body.erp-app .topbar-user span{
    display:none;
  }

  body.erp-app .topbar-user a{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    margin:0;
    padding:7px 10px;
    font-size:12px;
  }

  body.erp-app .topbar-cash-button{
    min-height:40px !important;
    padding:7px 11px !important;
  }

  body.erp-app .content{
    padding:14px 12px 24px;
  }

  body.erp-app .shopbar{
    display:grid;
    gap:10px;
    padding:12px;
  }

  body.erp-app .shopbar-note{
    display:none;
  }

  body.erp-app .shop-pills{
    justify-content:flex-start;
  }

  body.erp-app .page-title{
    display:grid;
    gap:10px;
  }

  body.erp-app .page-title .toolbar-actions,
  body.erp-app .page-title > .toolbar-actions{
    justify-content:flex-start;
  }

  body.erp-app .grid2,
  body.erp-app .grid-2,
  body.erp-app .grid-3,
  body.erp-page-product-edit .grid-3{
    grid-template-columns:1fr;
  }

  body.erp-app .span-2,
  body.erp-app .full{
    grid-column:auto;
  }

  body.erp-app .toolbar-row{
    align-items:stretch;
  }

  body.erp-app .toolbar-row > input,
  body.erp-app .toolbar-row > select,
  body.erp-app .toolbar-row > .button,
  body.erp-app .toolbar-row > button{
    flex:1 1 100%;
    width:100%;
    min-width:0;
  }

  body.erp-app .toolbar-actions .button,
  body.erp-app .toolbar-actions button{
    flex:1 1 180px;
  }

  body.erp-app .sticky-actions,
  body.erp-app .form-actions.sticky-actions{
    bottom:0;
    margin-inline:-12px;
    padding:10px 12px;
    border-radius:16px 16px 0 0;
  }

  body.erp-app .sticky-actions .button,
  body.erp-app .sticky-actions button,
  body.erp-app .form-actions.sticky-actions .button,
  body.erp-app .form-actions.sticky-actions button{
    flex:1 1 150px;
  }

  body.erp-page-products .box:first-of-type,
  body.erp-page-forfaits .box:first-of-type{
    position:static;
  }

  body.erp-page-products .product-list-table,
  body.erp-page-forfaits .product-list-table{
    min-width:760px;
  }

  body.erp-app .modal-panel,
  body.erp-app .erp-modal__panel,
  body.erp-app .crop-modal-panel,
  body.erp-app .cash-modal-panel{
    width:calc(100vw - 12px);
    max-height:calc(100dvh - 12px);
    margin:6px auto;
    padding:14px;
    border-radius:16px;
  }

  body.erp-app .cash-modal-frame{
    min-height:calc(100dvh - 120px);
  }

  body.erp-app .tree-row{
    grid-template-columns:28px 24px 48px minmax(130px,1fr);
  }

  body.erp-app .tree-row > :nth-child(n+5){
    grid-column:4;
  }
}

/* Téléphone : certaines listes deviennent des cartes --------------------- */
@media (max-width:620px){
  body.erp-app{
    font-size:14px;
  }

  body.erp-app .brand-logo img{
    width:132px;
  }

  body.erp-app .topbar-cash-button{
    font-size:0;
    width:42px;
    min-width:42px;
    padding:0 !important;
  }

  body.erp-app .topbar-cash-button::after{
    content:"€";
    font-size:18px;
    font-weight:900;
  }

  body.erp-app .topbar-cash-button{
    font-size:0 !important;
    flex:0 0 42px;
  }

  body.erp-app .topbar-user a{
    width:42px;
    min-width:42px;
    height:42px;
    min-height:42px;
    padding:0 !important;
    justify-content:center;
    overflow:hidden;
    font-size:0;
  }

  body.erp-app .topbar-user a::before{
    content:"⏻";
    font-size:18px;
    line-height:1;
  }

  body.erp-app .shop-pill{
    flex:1 1 130px;
    margin:0;
  }

  body.erp-app .box,
  body.erp-app .card{
    padding:13px;
    border-radius:17px;
  }

  body.erp-app .cards{
    grid-template-columns:1fr;
  }

  body.erp-app .table-actions{
    width:100%;
    min-width:0;
  }

  body.erp-app .responsive-card-table{
    display:block;
    min-width:0 !important;
    border:0;
    box-shadow:none;
    background:transparent;
  }

  body.erp-app .responsive-card-table thead{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
    white-space:nowrap;
  }

  body.erp-app .responsive-card-table tbody,
  body.erp-app .responsive-card-table tr,
  body.erp-app .responsive-card-table td{
    display:block;
    width:100%;
  }

  body.erp-app .responsive-card-table tr{
    margin:0 0 12px;
    overflow:hidden;
    border:1px solid var(--erp-line);
    border-radius:16px;
    background:#fff;
    box-shadow:var(--erp-shadow-sm);
  }

  body.erp-app .responsive-card-table td{
    display:grid;
    grid-template-columns:minmax(92px,36%) minmax(0,1fr);
    gap:10px;
    align-items:start;
    min-height:0;
    padding:9px 11px;
    border-bottom:1px solid #edf1f6;
    background:#fff !important;
    box-shadow:none !important;
    position:static !important;
  }

  body.erp-app .responsive-card-table td::before{
    content:attr(data-label);
    color:#60718a;
    font-size:11px;
    font-weight:800;
    letter-spacing:.02em;
    text-transform:uppercase;
  }

  body.erp-app .responsive-card-table td[data-label=""]::before{
    display:none;
  }

  body.erp-app .responsive-card-table td:last-child{
    border-bottom:0;
  }

  body.erp-app .responsive-card-table td.table-actions{
    display:flex;
    grid-template-columns:none;
    padding-top:12px;
    background:#f8fafc !important;
  }

  body.erp-app .responsive-card-table td.table-actions::before{
    display:none;
  }

  body.erp-app .responsive-card-table td.table-actions .button,
  body.erp-app .responsive-card-table td.table-actions button,
  body.erp-app .responsive-card-table td.table-actions form{
    flex:1 1 120px;
  }

  body.erp-app .responsive-card-table td.table-actions form button{
    width:100%;
  }

  body.erp-page-products .product-list-table th:nth-child(1),
  body.erp-page-products .product-list-table td:nth-child(1),
  body.erp-page-products .product-list-table th:nth-child(2),
  body.erp-page-products .product-list-table td:nth-child(2),
  body.erp-page-products .product-list-table th:nth-child(7),
  body.erp-page-products .product-list-table td:nth-child(7),
  body.erp-page-products .product-list-table th:nth-child(10),
  body.erp-page-products .product-list-table td:nth-child(10),
  body.erp-page-forfaits .product-list-table th:nth-child(1),
  body.erp-page-forfaits .product-list-table td:nth-child(1),
  body.erp-page-forfaits .product-list-table th:nth-child(2),
  body.erp-page-forfaits .product-list-table td:nth-child(2),
  body.erp-page-forfaits .product-list-table th:nth-child(7),
  body.erp-page-forfaits .product-list-table td:nth-child(7),
  body.erp-page-forfaits .product-list-table th:nth-child(10),
  body.erp-page-forfaits .product-list-table td:nth-child(10){
    display:grid;
  }

  body.erp-app .erp-table-scroll:has(.responsive-card-table),
  body.erp-app .table-scroll:has(.responsive-card-table){
    overflow:visible;
    padding:0;
  }

  body.erp-app .erp-table-scroll:has(.responsive-card-table)::after,
  body.erp-app .table-scroll:has(.responsive-card-table)::after{
    display:none;
  }

  body.erp-app .desk-item,
  body.erp-app .export-box,
  body.erp-app .acc-bar{
    align-items:flex-start;
    flex-direction:column;
  }

  body.erp-app .desk-item__side,
  body.erp-app .acc-meta{
    width:100%;
    justify-content:flex-start;
    white-space:normal;
  }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

@media print{
  body.erp-app .topbar,
  body.erp-app .sidebar,
  body.erp-app .sidebar-backdrop,
  body.erp-app .shopbar,
  body.erp-app .sticky-actions,
  body.erp-app .no-print{
    display:none !important;
  }

  body.erp-app .content{
    width:100%;
    padding:0;
  }

  body.erp-app .table-scroll,
  body.erp-app .table-wrap,
  body.erp-app .table-wrapper,
  body.erp-app .table-responsive,
  body.erp-app .erp-table-scroll{
    overflow:visible;
  }

  body.erp-app table{
    box-shadow:none;
  }
}
