/* Gardynid V42 — renovated demo applications
   Goal: product-grade, bright, calm childcare UI inspired by modern native apps.
   Existing data attributes and workflows remain untouched. */
:root{
  --v42-navy:#0b2f63;
  --v42-blue:#2f82f6;
  --v42-cyan:#19bfc4;
  --v42-yellow:#ffb82e;
  --v42-coral:#ff6d75;
  --v42-violet:#8171eb;
  --v42-green:#2eb883;
  --v42-bg:#f5f8ff;
  --v42-card:#fff;
  --v42-muted:#7185a1;
  --v42-line:#e6edf7;
  --v42-shadow:0 14px 36px rgba(44,78,124,.10),0 2px 8px rgba(44,78,124,.05);
  --v42-shadow-soft:0 8px 22px rgba(44,78,124,.075);
}

body[data-demo-page] .g-ui-icon,
body[data-demo-page] .g-state-icon{width:1em;height:1em;vertical-align:-.14em}

/* ===== Parent application ===== */
body[data-demo-page="application-parents"] .phone-ui{
  background:linear-gradient(180deg,#fbfdff 0,#f4f7fd 100%)!important;
}
body[data-demo-page="application-parents"] .app-header{
  background:rgba(255,255,255,.94)!important;
  border-bottom:1px solid var(--v42-line)!important;
  box-shadow:0 8px 24px rgba(42,76,121,.04)!important;
}
body[data-demo-page="application-parents"] .app-avatar{
  overflow:hidden!important;background:#e9f6ff!important;
  border:2px solid #fff!important;box-shadow:0 0 0 1px #d9e8f5,0 5px 15px rgba(42,76,121,.12)!important;
  background-size:cover!important;background-position:center 34%!important;
  color:transparent!important;
}
body[data-demo-page="application-parents"] .app-person-selector strong{font-weight:900!important;letter-spacing:-.02em!important}
body[data-demo-page="application-parents"] .app-content{padding:16px 16px 22px!important}
body[data-demo-page="application-parents"] .screen-title-row h2{font-size:1.55rem!important;letter-spacing:-.045em!important}
body[data-demo-page="application-parents"] .attendance-card,
body[data-demo-page="application-parents"] .app-card{
  border:1px solid rgba(226,234,245,.96)!important;
  box-shadow:var(--v42-shadow-soft)!important;
  border-radius:22px!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
body[data-demo-page="application-parents"] .attendance-card:active,
body[data-demo-page="application-parents"] .app-card button:active{transform:scale(.985)}
body[data-demo-page="application-parents"] .attendance-card .app-icon,
body[data-demo-page="application-parents"] .app-card .app-icon{
  border-radius:15px!important;width:44px!important;height:44px!important;display:grid!important;place-items:center!important;
  font-size:1.05rem!important;font-weight:900!important;
}
body[data-demo-page="application-parents"] .attendance-card .app-icon{background:#e8f9f2!important;color:#14865f!important}
body[data-demo-page="application-parents"] .report-card .app-icon{background:#eaf3ff!important;color:#2f82f6!important}
body[data-demo-page="application-parents"] [data-module="media"] .app-icon{background:#fff0f2!important;color:#ff6d75!important}
body[data-demo-page="application-parents"] [data-module="program"] .app-icon{background:#f0edff!important;color:#8171eb!important}
body[data-demo-page="application-parents"] [data-module="nutrition"] .app-icon{background:#fff4d8!important;color:#cf8700!important}
body[data-demo-page="application-parents"] [data-module="care"] .app-icon{background:#e7faf9!important;color:#0f9698!important}
body[data-demo-page="application-parents"] .app-card button,
body[data-demo-page="application-parents"] .full-width-action{
  border:0!important;background:#f0f5fb!important;color:var(--v42-navy)!important;
  min-height:44px!important;border-radius:14px!important;font-weight:900!important;
}
body[data-demo-page="application-parents"] .app-nav{
  border-top:1px solid var(--v42-line)!important;background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(20px)!important;padding:7px 7px max(7px,env(safe-area-inset-bottom))!important;
}
body[data-demo-page="application-parents"] .app-nav button{border-radius:16px!important;min-height:58px!important;transition:.2s ease!important}
body[data-demo-page="application-parents"] .app-nav button.active{background:#eaf3ff!important;color:#1769c8!important}
body[data-demo-page="application-parents"] .app-nav button span{font-size:1.12rem!important}
body[data-demo-page="application-parents"] .parent-sheet{background:#f8fbff!important}
body[data-demo-page="application-parents"] .more-list button,
body[data-demo-page="application-parents"] .more-list a{
  border-bottom-color:var(--v42-line)!important;min-height:64px!important;
}

/* ===== Educator application ===== */
body[data-demo-page="tablette-équipe"] .educator-device{
  background:linear-gradient(150deg,#0a2d5d,#123d73)!important;
  box-shadow:0 30px 74px rgba(18,51,94,.22)!important;
}
body[data-demo-page="tablette-équipe"] .edu-shell{
  background:var(--v42-bg)!important;color:var(--v42-navy)!important;
  display:flex!important;flex-direction:column!important;min-height:0!important;
}
body[data-demo-page="tablette-équipe"] .edu-app-top{
  flex:0 0 auto!important;background:#fff!important;color:var(--v42-navy)!important;
  border-bottom:1px solid var(--v42-line)!important;box-shadow:0 5px 18px rgba(44,78,124,.04)!important;
  padding:12px 18px!important;min-height:74px!important;
}
body[data-demo-page="tablette-équipe"] .edu-app-top>div:first-child strong{font-size:1.2rem!important;letter-spacing:-.03em!important}
body[data-demo-page="tablette-équipe"] .edu-app-top>div:first-child small{color:#8295ad!important}
body[data-demo-page="tablette-équipe"] .edu-stats span{border-left:1px solid var(--v42-line)!important;color:#7690ad!important}
body[data-demo-page="tablette-équipe"] .edu-stats b{color:var(--v42-navy)!important}
body[data-demo-page="tablette-équipe"] .edu-status,
body[data-demo-page="tablette-équipe"] .edu-sync,
body[data-demo-page="tablette-équipe"] .edu-user-switch{
  border:1px solid var(--v42-line)!important;background:#f8fbff!important;color:var(--v42-navy)!important;
  border-radius:15px!important;box-shadow:none!important;
}
body[data-demo-page="tablette-équipe"] .edu-user-avatar{background:#eaf3ff!important;color:#185da9!important;border:1px solid #d6e7fb!important}
body[data-demo-page="tablette-équipe"] .edu-body{
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;
}
body[data-demo-page="tablette-équipe"] .edu-side{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:18px!important;
  padding:8px 16px!important;border:0!important;border-bottom:1px solid var(--v42-line)!important;
  background:rgba(255,255,255,.96)!important;backdrop-filter:blur(16px)!important;
}
body[data-demo-page="tablette-équipe"] .edu-side>img{display:block!important;width:132px!important;height:auto!important;flex:0 0 auto!important}
body[data-demo-page="tablette-équipe"] .edu-nav{display:flex!important;gap:5px!important;overflow-x:auto!important;flex:1!important;scrollbar-width:none!important}
body[data-demo-page="tablette-équipe"] .edu-nav::-webkit-scrollbar{display:none}
body[data-demo-page="tablette-équipe"] .edu-nav button{
  flex:0 0 auto!important;border:0!important;background:transparent!important;color:#6f839d!important;
  padding:10px 12px!important;border-radius:12px!important;font-size:.78rem!important;font-weight:850!important;white-space:nowrap!important;
}
body[data-demo-page="tablette-équipe"] .edu-nav button.active{background:#eaf3ff!important;color:#1b6fd3!important;box-shadow:inset 0 0 0 1px #dceafe!important}
body[data-demo-page="tablette-équipe"] .edu-side-foot{display:none!important}
body[data-demo-page="tablette-équipe"] .edu-main{
  position:relative!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;padding:0!important;background:transparent!important;
}
body[data-demo-page="tablette-équipe"] .edu-scroll-region{
  height:100%!important;min-height:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;padding:18px 20px 30px!important;scrollbar-gutter:stable!important;
}
body[data-demo-page="tablette-équipe"] .edu-group-hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px;
}
body[data-demo-page="tablette-équipe"] .edu-group-hero small{color:#7d91aa;font-weight:800;letter-spacing:.03em}
body[data-demo-page="tablette-équipe"] .edu-group-hero h2{margin:4px 0 4px;font-size:1.65rem;letter-spacing:-.04em;color:var(--v42-navy)}
body[data-demo-page="tablette-équipe"] .edu-group-hero p{margin:0;color:#7d91aa;font-size:.82rem}
body[data-demo-page="tablette-équipe"] .edu-tools-toggle{
  flex:0 0 auto;display:flex;align-items:center;gap:8px;border:1px solid #dfe9f6;background:#fff;color:#31516f;
  border-radius:14px;padding:10px 13px;font-weight:900;box-shadow:var(--v42-shadow-soft);transition:.22s ease;
}
body[data-demo-page="tablette-équipe"] .edu-tools-toggle.active{background:#eef5ff;color:#1c6cc7;border-color:#d6e6fb}
body[data-demo-page="tablette-équipe"] .edu-tool-drawer{
  display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-6px);transition:grid-template-rows .28s ease,opacity .22s ease,transform .28s ease;
  margin-bottom:14px;
}
body[data-demo-page="tablette-équipe"] .edu-tool-drawer>.edu-toolbar{min-height:0;overflow:hidden}
body[data-demo-page="tablette-équipe"] .edu-tool-drawer.is-open{grid-template-rows:1fr;opacity:1;transform:none}
body[data-demo-page="tablette-équipe"] .edu-toolbar{
  border:1px solid var(--v42-line)!important;border-radius:18px!important;background:rgba(255,255,255,.96)!important;
  box-shadow:var(--v42-shadow-soft)!important;padding:12px!important;gap:9px!important;margin:0!important;
}
body[data-demo-page="tablette-équipe"] .edu-toolbar-group small{color:#8296ad!important}
body[data-demo-page="tablette-équipe"] .edu-seg{background:#f3f7fc!important;border:1px solid #e5edf7!important;border-radius:13px!important;padding:3px!important}
body[data-demo-page="tablette-équipe"] .edu-seg button{border:0!important;border-radius:10px!important;background:transparent!important;color:#526e8c!important;min-height:38px!important}
body[data-demo-page="tablette-équipe"] .edu-seg button.active{background:#fff!important;color:#1f6fd1!important;box-shadow:0 3px 10px rgba(55,91,137,.10)!important}
body[data-demo-page="tablette-équipe"] .edu-large-btn{
  min-height:43px!important;border:1px solid #dfe9f6!important;background:#fff!important;color:#355674!important;
  border-radius:13px!important;box-shadow:none!important;padding:9px 12px!important;display:inline-flex!important;align-items:center!important;gap:7px!important;
}
body[data-demo-page="tablette-équipe"] .edu-large-btn.accent{background:#e9fbfa!important;color:#07898d!important;border-color:#cdeeed!important}
body[data-demo-page="tablette-équipe"] .edu-child-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;
}
body[data-demo-page="tablette-équipe"] .edu-child-card{
  min-width:0!important;border:1px solid var(--v42-line)!important;background:#fff!important;border-radius:20px!important;
  box-shadow:var(--v42-shadow-soft)!important;overflow:hidden!important;transition:transform .2s ease,box-shadow .2s ease!important;
}
body[data-demo-page="tablette-équipe"] .edu-child-card:hover{transform:translateY(-2px);box-shadow:var(--v42-shadow)!important}
body[data-demo-page="tablette-équipe"] .edu-card-hit{
  width:100%!important;height:100%!important;display:grid!important;grid-template-rows:auto 1fr!important;grid-template-columns:1fr!important;
  border:0!important;background:transparent!important;padding:0!important;text-align:inherit!important;color:inherit!important;position:relative!important;
}
body[data-demo-page="tablette-équipe"] .edu-child-photo{
  display:block!important;position:relative!important;width:100%!important;aspect-ratio:4/2.65!important;background:#edf3fa!important;overflow:hidden!important;
}
body[data-demo-page="tablette-équipe"] .edu-child-photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 34%!important;display:block!important}
body[data-demo-page="tablette-équipe"] .edu-child-photo>.edu-avatar{width:100%!important;height:100%!important;border-radius:0!important;font-size:2rem!important;display:grid!important;place-items:center!important}
body[data-demo-page="tablette-équipe"] .edu-photo-state{
  position:absolute!important;left:10px!important;bottom:9px!important;width:27px!important;height:27px!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;background:#fff!important;box-shadow:0 4px 12px rgba(25,59,101,.16)!important;color:var(--v42-green)!important;
}
html[dir="rtl"] body[data-demo-page="tablette-équipe"] .edu-photo-state{left:auto!important;right:10px!important}
body[data-demo-page="tablette-équipe"] .edu-photo-state.absent{color:var(--v42-coral)!important}
body[data-demo-page="tablette-équipe"] .edu-photo-state.expected{color:var(--v42-yellow)!important}
body[data-demo-page="tablette-équipe"] .edu-child-content{display:block!important;padding:11px 12px 12px!important;min-width:0!important}
body[data-demo-page="tablette-équipe"] .edu-child-name{display:block!important;font-size:1rem!important;font-weight:950!important;letter-spacing:-.025em!important;color:var(--v42-navy)!important;margin-bottom:6px!important}
body[data-demo-page="tablette-équipe"] .edu-child-state{
  display:flex!important;align-items:center!important;gap:6px!important;font-size:.71rem!important;font-weight:800!important;color:#617c98!important;
  background:transparent!important;padding:0!important;margin:0 0 8px!important;
}
body[data-demo-page="tablette-équipe"] .edu-child-state.present{color:#1f976d!important}
body[data-demo-page="tablette-équipe"] .edu-child-badges{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
body[data-demo-page="tablette-équipe"] .edu-badge{
  border-radius:999px!important;padding:5px 7px!important;font-size:.61rem!important;line-height:1.12!important;font-weight:850!important;display:inline-flex!important;align-items:center!important;gap:4px!important;
}
body[data-demo-page="tablette-équipe"] .edu-badge.danger{background:#fff0f0!important;color:#c43b3b!important;border:1px solid #ffd0d0!important}
body[data-demo-page="tablette-équipe"] .edu-badge.warn{background:#fff5d8!important;color:#9a6a00!important;border:1px solid #f5d77d!important}
body[data-demo-page="tablette-équipe"] .edu-badge.care{background:#f0ebff!important;color:#6d55c6!important;border:1px solid #ded3ff!important}
body[data-demo-page="tablette-équipe"] .edu-badge.info{background:#e8f8fa!important;color:#0d858a!important;border:1px solid #cdebed!important}
body[data-demo-page="tablette-équipe"] .edu-card-chevron{position:absolute!important;right:8px!important;top:8px!important;width:30px!important;height:30px!important;border-radius:10px!important;background:rgba(255,255,255,.92)!important;display:grid!important;place-items:center!important;color:#7f94ac!important;box-shadow:0 3px 12px rgba(42,76,121,.10)!important}
html[dir="rtl"] body[data-demo-page="tablette-équipe"] .edu-card-chevron{right:auto!important;left:8px!important}
body[data-demo-page="tablette-équipe"] .edu-attention{border-radius:17px!important;border:1px solid #f4dc9c!important;background:#fff9e8!important;box-shadow:none!important}
body[data-demo-page="tablette-équipe"] .edu-action-trigger{
  border:0!important;background:linear-gradient(135deg,#6f67e8,#8e7ff0)!important;color:#fff!important;
  box-shadow:0 14px 30px rgba(100,84,214,.28)!important;border-radius:18px!important;
}
body[data-demo-page="tablette-équipe"] .edu-action-tray{border:1px solid var(--v42-line)!important;background:#fff!important;border-radius:22px 22px 0 0!important;box-shadow:0 -18px 50px rgba(30,66,110,.16)!important}
body[data-demo-page="tablette-équipe"] .edu-quick-dock button{border:1px solid var(--v42-line)!important;background:#fbfdff!important;border-radius:17px!important;min-height:88px!important;box-shadow:0 6px 16px rgba(42,76,121,.05)!important}
body[data-demo-page="tablette-équipe"] .edu-quick-dock button span:first-child{width:42px!important;height:42px!important;border-radius:14px!important;background:#eaf3ff!important;color:#2f82f6!important;display:grid!important;place-items:center!important;margin:auto auto 7px!important;font-size:1.1rem!important}
body[data-demo-page="tablette-équipe"] .edu-quick-dock button:nth-child(2) span:first-child{background:#fff0f2!important;color:#ff6d75!important}
body[data-demo-page="tablette-équipe"] .edu-quick-dock button:nth-child(3) span:first-child{background:#f0edff!important;color:#8171eb!important}
body[data-demo-page="tablette-équipe"] .edu-quick-dock button:nth-child(4) span:first-child{background:#e7faf9!important;color:#0b9296!important}
body[data-demo-page="tablette-équipe"] .edu-quick-dock button:nth-child(5) span:first-child{background:#fff4d8!important;color:#d38a00!important}

/* ===== Kitchen + Direction applications ===== */
body[data-demo-page="mode-cuisine"] .tablet-ui,
body[data-demo-page="espace-direction"] .tablet-ui{background:var(--v42-bg)!important;color:var(--v42-navy)!important}
body[data-demo-page="mode-cuisine"] .tablet-sidebar,
body[data-demo-page="espace-direction"] .tablet-sidebar{
  background:#fff!important;border-color:var(--v42-line)!important;padding:14px 12px!important;
}
body[data-demo-page="mode-cuisine"] .tablet-sidebar img,
body[data-demo-page="espace-direction"] .tablet-sidebar img{max-width:130px!important;margin-bottom:18px!important}
body[data-demo-page="mode-cuisine"] .tablet-nav,
body[data-demo-page="espace-direction"] .tablet-nav{gap:6px!important}
body[data-demo-page="mode-cuisine"] .tablet-nav button,
body[data-demo-page="espace-direction"] .tablet-nav button{
  border:0!important;background:transparent!important;color:#70849d!important;border-radius:13px!important;padding:10px 12px!important;font-weight:850!important;
}
body[data-demo-page="mode-cuisine"] .tablet-nav button.active,
body[data-demo-page="espace-direction"] .tablet-nav button.active{background:#eaf3ff!important;color:#1b6fd3!important}
body[data-demo-page="mode-cuisine"] .tablet-main,
body[data-demo-page="espace-direction"] .tablet-main{background:transparent!important;padding:18px!important}
body[data-demo-page="mode-cuisine"] .tablet-head h2,
body[data-demo-page="espace-direction"] .tablet-head h2{font-size:1.6rem!important;letter-spacing:-.04em!important;color:var(--v42-navy)!important}
body[data-demo-page="mode-cuisine"] .dashboard-grid,
body[data-demo-page="espace-direction"] .dashboard-grid{gap:12px!important}
body[data-demo-page="mode-cuisine"] .dash-card,
body[data-demo-page="espace-direction"] .dash-card,
body[data-demo-page="espace-direction"] .case-card{
  background:#fff!important;border:1px solid var(--v42-line)!important;border-radius:19px!important;box-shadow:var(--v42-shadow-soft)!important;padding:15px!important;
}
body[data-demo-page="mode-cuisine"] .dashboard-grid .dash-card:nth-child(1),
body[data-demo-page="espace-direction"] .dashboard-grid .dash-card:nth-child(1){background:linear-gradient(145deg,#edf5ff,#fff)!important}
body[data-demo-page="mode-cuisine"] .dashboard-grid .dash-card:nth-child(2),
body[data-demo-page="espace-direction"] .dashboard-grid .dash-card:nth-child(2){background:linear-gradient(145deg,#e9faf8,#fff)!important}
body[data-demo-page="mode-cuisine"] .dashboard-grid .dash-card:nth-child(3),
body[data-demo-page="espace-direction"] .dashboard-grid .dash-card:nth-child(3){background:linear-gradient(145deg,#fff5d9,#fff)!important}
body[data-demo-page="espace-direction"] .dashboard-grid .dash-card:nth-child(4){background:linear-gradient(145deg,#fff0f2,#fff)!important}
body[data-demo-page="mode-cuisine"] .dash-card small,
body[data-demo-page="espace-direction"] .dash-card small{color:#7287a1!important;font-weight:800!important}
body[data-demo-page="mode-cuisine"] .metric,
body[data-demo-page="espace-direction"] .metric{color:var(--v42-navy)!important;font-weight:950!important;letter-spacing:-.035em!important}
body[data-demo-page="mode-cuisine"] .dash-card button,
body[data-demo-page="espace-direction"] .dash-card button,
body[data-demo-page="mode-cuisine"] .activity-row button,
body[data-demo-page="espace-direction"] .activity-row button,
body[data-demo-page="espace-direction"] .case-card button{
  border:0!important;border-radius:12px!important;background:#eef4fb!important;color:#194f88!important;font-weight:900!important;min-height:39px!important;padding:8px 12px!important;
}
body[data-demo-page="mode-cuisine"] .activity-list,
body[data-demo-page="espace-direction"] .activity-list{gap:9px!important}
body[data-demo-page="mode-cuisine"] .activity-row,
body[data-demo-page="espace-direction"] .activity-row{
  background:#fff!important;border:1px solid var(--v42-line)!important;border-radius:17px!important;padding:12px!important;box-shadow:0 5px 16px rgba(44,78,124,.05)!important;
}
body[data-demo-page="mode-cuisine"] .activity-row .ico,
body[data-demo-page="espace-direction"] .activity-row .ico{border-radius:13px!important;background:#eaf3ff!important;color:#2f82f6!important}

/* responsive refinements */
@media(max-width:1180px){
  body[data-demo-page="tablette-équipe"] .edu-child-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body[data-demo-page="tablette-équipe"] .edu-side>img{display:none!important}
}
@media(max-width:900px){
  body[data-demo-page="tablette-équipe"] .edu-child-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-demo-page="tablette-équipe"] .edu-group-hero{align-items:flex-start;flex-direction:column}
  body[data-demo-page="tablette-équipe"] .edu-tools-toggle{align-self:flex-start}
  body[data-demo-page="tablette-équipe"] .edu-scroll-region{padding:14px!important}
}
@media(max-width:560px){
  body[data-demo-page="tablette-équipe"] .edu-child-grid{grid-template-columns:1fr!important}
  body[data-demo-page="tablette-équipe"] .edu-child-photo{aspect-ratio:16/8.5!important}
  body[data-demo-page="tablette-équipe"] .edu-app-top{padding:10px 12px!important}
  body[data-demo-page="tablette-équipe"] .edu-tool-drawer .edu-toolbar{display:grid!important;grid-template-columns:1fr!important}
}

@media(prefers-reduced-motion:reduce){
  body[data-demo-page="tablette-équipe"] .edu-tool-drawer,
  body[data-demo-page="tablette-équipe"] .edu-child-card,
  body[data-demo-page="application-parents"] .attendance-card,
  body[data-demo-page="application-parents"] .app-card{transition:none!important}
}
body[data-demo-page="tablette-équipe"] .edu-tool-drawer:not(.is-open){pointer-events:none}
body[data-demo-page="tablette-équipe"] .edu-tool-drawer:not(.is-open) .edu-toolbar{padding-top:0!important;padding-bottom:0!important;border-width:0!important;box-shadow:none!important;opacity:0}
