/* 0.9.301 — Semainier tactile : le même poste de travail que le Tableau.
   La logique du semainier et l'éditeur individuel CAA restent uniques.
   Cette feuille ne s'applique que quand la PWA mobile active el-mobile-week. */
#elMobileWeekToolbar, .el-mobile-week-close {display:none}
@media screen {
html.el-mobile-week,html.el-mobile-week body{
  width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;
  margin:0!important;padding:0!important;overscroll-behavior:none!important;background:#fffefa!important
}
html.el-mobile-week main.app{box-sizing:border-box!important;width:100%!important;max-width:none!important;height:100dvh!important;
  min-height:0!important;padding:49px 0 0!important;margin:0!important;overflow:hidden!important}
html.el-mobile-week main.app>.app-header,html.el-mobile-week .module-switcher,
html.el-mobile-week #weekSection>.panel-heading,html.el-mobile-week #weekSettingsTop,
html.el-mobile-week #weekSection .week-local-toolbar,
html.el-mobile-week #weekSection .week-output-actions{display:none!important}
html.el-mobile-week .workspace,html.el-mobile-week #weekSection{
  display:block!important;width:100%!important;max-width:none!important;height:100%!important;
  min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;
  box-sizing:border-box!important;border:0!important;border-radius:0!important
}
html.el-mobile-week #weekWorkbench,html.el-mobile-week #weekWorkbench.library-collapsed,
html.el-mobile-week #weekWorkbench.parameters-collapsed,
html.el-mobile-week #weekWorkbench.library-collapsed.parameters-collapsed{
  display:block!important;position:relative!important;grid-template-columns:none!important;gap:0!important;
  width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important;
  border:0!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important
}
html.el-mobile-week #weekSection #weekWorkbench .week-main-area{
  display:block!important;position:absolute!important;inset:0!important;width:100%!important;
  height:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;
  overflow:auto!important;overscroll-behavior:contain!important;touch-action:pan-x pan-y!important;
  -webkit-overflow-scrolling:touch!important;scrollbar-gutter:stable!important;background:#fffefa!important;
  box-sizing:border-box!important
}
html.el-mobile-week.el-mobile-week-panel-open #weekSection #weekWorkbench .week-main-area{
  width:40%!important;border-right:1px solid #ece2d0!important
}
html.el-mobile-week #weekSection .week-visual-panel{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  width:max-content!important;min-width:100%!important;max-width:none!important;
  height:auto!important;min-height:100%!important;margin:0!important;padding:8px!important;
  background:transparent!important;box-sizing:border-box!important
}
html.el-mobile-week #weekSection #weekSheet{
  display:flex!important;flex-direction:column!important;flex:none!important;
  width:940px!important;min-width:940px!important;max-width:none!important;
  height:auto!important;max-height:none!important;aspect-ratio:297/210!important;
  margin:0!important;padding:12px!important;box-sizing:border-box!important;
  transform:none!important;transform-origin:top left!important;
  zoom:var(--el-mobile-week-zoom,1)!important;
  overflow:hidden!important;border-radius:10px!important;box-shadow:none!important
}
/* Le support complet devient un tableau lisible et defilable en mode de travail.
   Les cases gardent leurs limites visibles et les pictos acceptent le geste tactile. */
html.el-mobile-week #weekSection #weekGrid .week-day,
html.el-mobile-week #weekSection #weekGrid .week-moment{
  font-size:25px!important;line-height:1.1!important;
}
html.el-mobile-week #weekSection #weekGrid .week-cell{
  outline:1px solid rgba(25,39,58,.24)!important;outline-offset:-1px!important;
}
html.el-mobile-week #weekSection #weekGrid .week-cell.is-selected{
  outline:4px solid #17a2f2!important;outline-offset:-4px!important;
}
html.el-mobile-week #weekSection #weekGrid .week-cell.is-drop-target{
  outline:4px dashed #17a2f2!important;outline-offset:-4px!important;
  background:rgba(23,162,242,.10)!important;
}
html.el-mobile-week #weekSection #weekGrid .week-picto-slot{
  touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;
}
html.el-mobile-week #weekSection #weekGrid .week-picto-slot img{
  -webkit-user-drag:none!important;user-select:none!important;
}
/* Pictos et réglages : les vrais panneaux CAA, sans seconde copie des champs. */
html.el-mobile-week #weekSection #weekLibraryRail,
html.el-mobile-week #weekSection #weekParametersPanel{
  display:none!important;position:fixed!important;inset:49px 0 0 auto!important;width:60%!important;
  height:calc(100dvh - 49px)!important;max-width:60%!important;max-height:none!important;
  min-width:0!important;min-height:0!important;margin:0!important;padding:8px 10px 18px!important;
  z-index:80!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;background:#fffdfa!important;
  box-shadow:-2px 0 9px rgba(21,32,51,.06)!important
}
html.el-mobile-week #weekSection #weekLibraryRail.el-mobile-week-open,
html.el-mobile-week #weekSection #weekParametersPanel.el-mobile-week-open{
  display:flex!important;flex-direction:column!important;gap:7px!important
}
html.el-mobile-week #weekSection .week-rail-header,
html.el-mobile-week #weekSection .week-parameters-header{
  display:flex!important;flex:0 0 auto!important;position:sticky!important;top:-8px!important;
  z-index:6!important;align-items:center!important;justify-content:space-between!important;
  min-height:35px!important;margin:0!important;padding:4px 0!important;background:#fffdfa!important
}
html.el-mobile-week #weekSection .week-rail-header .eyebrow,
html.el-mobile-week #weekSection .week-parameters-header .eyebrow{display:none!important}
html.el-mobile-week #weekSection .week-rail-header strong,
html.el-mobile-week #weekSection .week-parameters-header strong{font-size:14px!important}
html.el-mobile-week #weekSection .week-rail-collapse,
html.el-mobile-week #weekSection .week-rail-open{display:none!important}
html.el-mobile-week #weekSection .el-mobile-week-close{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:35px!important;min-width:35px!important;min-height:34px!important;padding:3px!important;
  border:1px solid #e9dbc2!important;border-radius:9px!important;background:#fff!important;
  color:#26374c!important;font-size:21px!important;font-weight:700!important
}
html.el-mobile-week #weekSection #weekLibraryMount,
html.el-mobile-week #weekSection #weekLibraryMount .library-panel{
  position:static!important;display:block!important;flex:0 0 auto!important;width:100%!important;
  height:auto!important;max-height:none!important;min-width:0!important;max-width:100%!important;
  padding:0!important;margin:0!important;overflow:visible!important;border:0!important;
  box-shadow:none!important;background:transparent!important
}
/* CAA possède ses vrais onglets de paramètres. Ils passent horizontalement
   au-dessus des formulaires, comme dans le Tableau validé. */
html.el-mobile-week #weekSection #weekParametersContent.el-parameter-dock{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  grid-template-columns:none!important;grid-template-rows:none!important;gap:6px!important;
  overflow:visible!important;box-sizing:border-box!important
}
html.el-mobile-week #weekSection #weekParametersContent>.el-parameter-tabbar{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;order:-1!important;
  grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;
  position:sticky!important;top:38px!important;z-index:5!important;width:100%!important;
  min-width:0!important;max-width:100%!important;flex:0 0 auto!important;
  padding:3px!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;
  background:#fffdfa!important;-webkit-overflow-scrolling:touch!important
}
html.el-mobile-week #weekSection .el-parameter-tabbar>.el-parameter-tab,
html.el-mobile-week #weekSection .el-parameter-tabbar>.el-save-direct-button{
  flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important
}
html.el-mobile-week #weekSection #weekParametersContent>.el-parameter-dock-body{
  display:block!important;position:static!important;order:0!important;grid-column:auto!important;
  grid-row:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important
}
html.el-mobile-week #weekSection .el-parameter-tab-panel:not([hidden]){
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;
  min-width:0!important;max-width:100%!important;padding:3px!important
}
html.el-mobile-week #weekSection .el-parameter-tab-panel[hidden]{display:none!important}
html.el-mobile-week #weekSection .week-parameter-group{
  width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  margin:0!important;padding:5px!important;gap:6px!important
}
html.el-mobile-week #weekSection .week-parameter-group input,
html.el-mobile-week #weekSection .week-parameter-group select{max-width:100%!important;box-sizing:border-box!important}
html.el-mobile-week #statusMessage{position:fixed!important;bottom:0!important;left:0!important;
  right:0!important;z-index:61!important;margin:0!important;padding:2px 8px!important;
  max-height:22px!important;overflow:auto!important;font-size:10px!important;background:#fffaf0!important}
/* Réutilise exactement le même éditeur individuel que Tableau et Phrase :
   ses règles sont mutualisées dans mobile-landscape-v0295.css. */
}
