/* =============================================================================
   Applipro, démo guidée des démarches RH.
   Même scène que les autres démos (guide.css) et mêmes briques de formulaire que
   celle de l'onboarding (guide-onboarding.css). Cette feuille ajoute les écrans
   propres aux démarches : réglages des congés, demandes à traiter et volet de
   détail, planning, soldes, demandes d'acomptes, puis le téléphone d'Emma.
   ============================================================================= */

.gr .gx-screens { min-height: 590px; }

/* --- Les onglets du module, sous le titre --- */
.gr-tabs { display: flex; gap: 4px; margin-top: 12px; }
.gr-tabs span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; line-height: 1; color: #7A8194; white-space: nowrap; }
.gr-tabs span.is-on { background: #fff; color: #1C2333; box-shadow: 0 0 0 1px #DADDE6, 0 2px 5px -3px rgba(18, 22, 36, .25); }
.gr-tabs i { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #0F6E84; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.gr-tabs i.is-zero { display: none; }

/* --- Pastilles de statut, types de congés --- */
.gr-st { display: inline-block; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-style: normal; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.gr-st--rh { background: #DDF1F4; color: #0F6E84; }
.gr-st--mg { background: #FFEBD6; color: #A14A00; }
.gr-st--ok { background: #D8F0E5; color: #00664A; }
.gr-type { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #1C2333; white-space: nowrap; }
.gr-type::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #2F6BFF); }

/* --- Écran 1 : les réglages --- */
.gr-regl { margin-top: 12px; }
.gr-regl .go-card-t small { display: block; margin: 2px 0 0; }
.gr-circ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gr-circ p { padding: 11px 13px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #DCDFE8; transition: background .3s ease, box-shadow .3s ease; }
.gr-circ b { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.gr-circ b::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #9AA1B2; }
.gr-circ span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; color: #5B6272; }
.gr-circ p.is-on { background: #F3F6FF; box-shadow: inset 0 0 0 1.5px #3B6FE0; }
.gr-circ p.is-on b::before { background: #3B6FE0; box-shadow: inset 0 0 0 1.5px #3B6FE0, inset 0 0 0 4px #fff; }
.gr-ligne { margin-top: 13px; padding-top: 13px; border-top: 1px solid #EEF0F5; }
.gr-ligne .gx-tog { flex: none; }
.gr-deux { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #EEF0F5; }
.gr-deux small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #5B6272; }
.gr-deux p > span { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gr-opt { padding: 9px 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px #DCDFE8; font-size: 12.5px; font-weight: 600; color: #3A4256; }
.gr-opt.is-on { background: #F3F6FF; box-shadow: inset 0 0 0 1.5px #3B6FE0; color: #1C2333; }
.gr-field { display: block; padding: 8px 11px; border: 1px solid #DCDFE8; border-radius: 7px; font-size: 13px; font-weight: 500; }
.gr-types-t { margin-top: 13px; padding-top: 12px; border-top: 1px solid #EEF0F5; font-size: 12px; font-weight: 700; color: #5B6272; }
.gr-types-t small { margin-left: 8px; font-weight: 500; color: #8990A2; }
.gr-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gr-types .gr-type { padding: 6px 10px; border-radius: 99px; box-shadow: 0 0 0 1px #E3E6EE; font-size: 12.5px; }
.gr-types em { padding: 6px 10px; border: 1px dashed #B4BED3; border-radius: 99px; font-size: 12.5px; font-style: normal; font-weight: 600; line-height: 1.2; color: #5B6272; }

/* --- Les tableaux --- */
.gr-table { margin-top: 12px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; }
.gr-tr { display: grid; align-items: center; column-gap: 12px; min-height: 56px; padding: 7px 14px; font-size: 13px; color: #3A4256; transition: background .3s ease, box-shadow .3s ease; }
.gr-tr + .gr-tr { border-top: 1px solid #EEF0F5; }
.gr-tr b { font-weight: 700; color: #1C2333; }
.gr-tr small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: #7A8194; }
.gr-tr .prep-avatar, .gr-tr .go-ini { width: 32px; height: 32px; box-shadow: none; font-size: 11px; }
.gr-th { min-height: 36px; background: #3A4256; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.gr-th b { color: #fff; }
.gr-tr.is-sel, .gr-tr.is-new { background: #F3F6FF; box-shadow: inset 3px 0 0 #3B6FE0; }
.gr-table--dem .gr-tr { grid-template-columns: 32px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr) 150px; }
.gr-table--sol .gr-tr { grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) 100px 80px; }
.gr-table--ac .gr-tr { grid-template-columns: 32px minmax(0, 1.2fr) 86px 118px minmax(0, .8fr); }
.gr-tr--note { display: block; min-height: 0; padding: 11px 14px; font-size: 12.5px; line-height: 1.45; color: #5B6272; }
.gr-pied { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: #5B6272; }
.gr-mod { display: block; padding: 7px 8px; border-radius: 7px; background: #EEF3FF; font-size: 12px; font-style: normal; font-weight: 600; text-align: center; color: #1E4FD0; }
.gr-sub { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: #5B6272; }
.gr-btn2 { flex: none; padding: 10px 14px; border-radius: 9px; background: #E9ECF4; font-size: 13px; font-weight: 600; line-height: 1; color: #2B3245; }

/* --- Écran 2 : le volet de détail d'une demande --- */
.gr-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; width: 350px; padding: 18px 20px; overflow: hidden; background: #fff; box-shadow: -1px 0 0 #E3E6EE, -34px 0 50px -34px rgba(18, 22, 36, .4); opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .3s ease, transform .4s var(--ease), visibility .4s; }
.gr-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.gr-dr-t { font-size: 16px; font-weight: 700; }
.gr-who { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; line-height: 1.35; color: #5B6272; }
.gr-who b { display: block; font-size: 14.5px; color: #1C2333; }
.gr-who .prep-avatar, .gr-who .go-ini { flex: none; width: 38px; height: 38px; box-shadow: none; }
.gr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: #1C2333; }
.gr-grid small { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 500; color: #7A8194; }
.gr-bal { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: #F6F7FA; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.gr-bal small { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: #7A8194; }
.gr-bal span:last-child { text-align: right; }
.gr-hist-t { margin-top: 14px; font-size: 12px; font-weight: 700; color: #5B6272; }
.gr-hist { display: grid; gap: 8px; margin-top: 8px; }
.gr-hist li { position: relative; padding-left: 16px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #1C2333; }
.gr-hist li::before { content: ''; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #5BA4E6; }
.gr-hist small { display: block; font-size: 11.5px; font-weight: 500; color: #7A8194; }
.gr-hist .gr-fait { display: none; }
.gr-hist .gr-fait::before { background: #0C7A53; }
.is-done .gr-hist .gr-fait { display: block; animation: gx-in .4s var(--ease) both; }
.gr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.gr-acts .bo-btn { display: grid; }
.gr-refus { display: grid; place-items: center; border-radius: 9px; background: #FDECEC; font-size: 14px; font-weight: 600; color: #B42318; }
.gr-modif { margin-top: 8px; padding: 11px; border-radius: 9px; background: #FFF6DD; font-size: 13px; font-weight: 600; text-align: center; color: #9A5B00; }
.is-done > .gr-acts { grid-template-columns: 1fr; }
.is-done > .gr-acts .gr-refus, .is-done > .gr-modif { display: none; }

/* --- Écran 3 : le planning du mois, quadrillé jour par jour --- */
.gr-mois { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 700; }
.gr-mois b { margin: 0 4px; }
.gr-mois span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #DADDE6; font-size: 16px; font-weight: 500; line-height: 1; color: #5B6272; }
.gr-mois em { padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #DADDE6; font-size: 12.5px; font-style: normal; font-weight: 500; line-height: 1.1; color: #5B6272; }
.gr-mois .gr-jour { margin-left: 6px; font-weight: 600; color: #1E4FD0; }
.gr-mois .gr-rech { margin-left: auto; min-width: 190px; color: #9AA1B2; }
.gr-plan { margin-top: 10px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #DADDE6; }
.gr-plan li { display: grid; grid-template-columns: 188px repeat(30, minmax(0, 1fr)); align-items: center; min-height: 44px; transition: background .3s ease; }
.gr-plan li + li { border-top: 1px solid #E6E8EF; }
.gr-plan li > p { grid-column: 1; grid-row: 1; align-self: stretch; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 12px; border-right: 1px solid #DADDE6; font-size: 13px; font-weight: 700; line-height: 1.2; color: #1C2333; }
.gr-plan li > p small { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: #7A8194; }
.gr-plan .prep-avatar, .gr-plan .go-ini { flex: none; width: 28px; height: 28px; box-shadow: none; font-size: 10.5px; }
.gr-plan .gr-pl-h { min-height: 42px; background: #F6F7FA; }
.gr-pl-h > b { align-self: stretch; display: flex; align-items: center; padding: 0 12px; border-right: 1px solid #DADDE6; font-size: 12px; font-weight: 600; color: #5B6272; }
.gr-pl-h span { display: grid; justify-items: center; gap: 1px; font-size: 10px; font-weight: 600; line-height: 1.2; color: #7A8194; }
.gr-pl-h span small { min-width: 18px; padding: 2px 0; border-radius: 99px; font-size: 11px; font-weight: 700; text-align: center; color: #1C2333; }
.gr-pl-h .is-we, .gr-pl-h .is-we small { color: #A7AEBD; }
.gr-pl-h .is-auj { color: #1E4FD0; }
.gr-pl-h .is-auj small { background: #3B6FE0; color: #fff; }
.gr-grille { grid-column: 2 / -1; grid-row: 1; align-self: stretch; background: linear-gradient(90deg, transparent calc(100% - 1px), #E9EBF1 0) 0 0 / calc(100% / 30) 100%; }
.gr-we { grid-row: 1; align-self: stretch; background: rgba(58, 66, 86, .07); }
.gr-auj { grid-row: 1; align-self: stretch; background: rgba(59, 111, 224, .10); box-shadow: inset 1.5px 0 0 #3B6FE0; }
.gr-bar { grid-row: 1; z-index: 1; margin: 0 2px; padding: 8px 7px; overflow: hidden; border-radius: 6px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 1; white-space: nowrap; color: #fff; }
.gr-bar--cp { background: #2F6BFF; }
.gr-bar--rtt { padding-left: 0; padding-right: 0; background: #7C3AED; text-align: center; }
.gr-bar--mal { background: #E0564A; }
.gr-bar--att { background: #EEF3FF; box-shadow: inset 0 0 0 1px #7FA0F2; color: #1E4FD0; }
.gr-plan li.is-new > p { background: #F3F6FF; box-shadow: inset 3px 0 0 #3B6FE0; }
.gr-plan li.is-new .gr-bar { box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); animation: gx-in .6s var(--ease) .35s both; }
.gr-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: #5B6272; }
.gr-leg span { display: inline-flex; align-items: center; gap: 6px; }
.gr-leg i { width: 16px; height: 10px; border-radius: 3px; background: var(--c); }
.gr-leg .is-att i { background: #EEF3FF; box-shadow: inset 0 0 0 1px #7FA0F2; }
.gr-leg b { margin-left: auto; font-weight: 600; color: #1C2333; }

/* --- Écran 5 : les acomptes --- */
.gr-ac { display: grid; grid-template-columns: minmax(0, 1.5fr) 330px; gap: 14px; align-items: start; margin-top: 12px; }
.gr-ac .gr-table, .gr-ac .go-card { margin-top: 0; }
.gr-acd { padding: 16px 18px 18px; }
.gr-amt { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 13px; }
.gr-amt small { flex-basis: 100%; font-size: 11.5px; font-weight: 500; color: #7A8194; }
.gr-amt b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.gr-pick { display: none; margin-top: 13px; padding: 11px 12px 12px; border-radius: 10px; background: #F6F7FA; }
.gr-pick > p { font-size: 12px; font-weight: 700; color: #5B6272; }
.is-pick > .gr-pick { display: block; animation: gx-in .4s var(--ease) both; }
.gr-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.gr-days li { display: grid; justify-items: center; gap: 1px; padding: 7px 0 8px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #DCDFE8; font-size: 11px; color: #7A8194; transition: background .25s ease, color .25s ease; }
.gr-days b { font-size: 15px; font-weight: 700; color: #1C2333; }
.gr-days li.is-on { background: #3B6FE0; box-shadow: none; color: #fff; }
.gr-days li.is-on b { color: #fff; }
.is-pick > .gr-acts { display: none; }
.gr-karim { display: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; margin-top: 13px; padding: 11px 13px; border-radius: 12px; box-shadow: 0 0 0 1px #E3E6EE, 0 12px 22px -18px rgba(18, 22, 36, .5); }
.gr-karim small { grid-column: 1 / -1; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; color: var(--app); }
.gr-karim b { font-size: 16px; font-weight: 700; }
.gr-karim span { grid-column: 1 / -1; font-size: 12.5px; color: #5B6272; }
.is-done > .gr-karim { display: grid; animation: gx-in .45s var(--ease) .15s both; }

/* --- Écrans 6 et 7 : le forfait jours --- */
.gr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gr-kpis p { padding: 10px 13px 11px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; }
.gr-kpis small { display: block; font-size: 11.5px; font-weight: 600; color: #5B6272; }
.gr-kpis b { display: block; margin-top: 1px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: #1C2333; }
.gr-kpis span { display: block; font-size: 11.5px; line-height: 1.3; color: #8990A2; }
.gr-kpis .is-r b { color: #C0392B; }
.gr-kpis .is-o b { color: #B85500; }
.gr-kpis .is-b b { color: #1E4FD0; }
.gr-st--no { background: #EEF0F6; color: #5B6272; }
.gr-st--crit { background: #FBE3E3; color: #A32626; }
.gr-st--info { background: #DDEBFB; color: #1F5C99; }
.gr-st--ouv { background: #FDECEC; color: #B42318; }
.gr-table--fj .gr-tr { grid-template-columns: 32px minmax(0, 1.5fr) 150px 60px 70px 70px 120px; min-height: 52px; }
.gr-table--al .gr-tr { grid-template-columns: 92px minmax(0, 1.6fr) minmax(0, 1fr) 80px; min-height: 52px; }
.gr-ald .gr-hist-t { margin-top: 14px; }
.gr-nb { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 7px; padding: 0 4px; border-radius: 99px; background: #FBE3E3; font-size: 10.5px; font-style: normal; font-weight: 700; color: #A32626; vertical-align: 1px; }
.gr-taux { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: #1C2333; }
.gr-taux i { order: 2; height: 5px; overflow: hidden; border-radius: 99px; background: #E6E9F1; }
.gr-taux u { display: block; height: 100%; border-radius: 99px; background: #3B6FE0; }
.gr-qui { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: #1C2333; }
.gr-qui .go-ini { flex: none; width: 26px; height: 26px; font-size: 10px; }
.gr-pills { display: flex; gap: 6px; margin-top: 12px; }
.gr-al-t { margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.gr-decl { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #F6F7FA; font-size: 13px; line-height: 1.4; color: #1C2333; }
.gr-decl small { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; color: #7A8194; }
.gr-circuit { display: grid; gap: 7px; margin-top: 8px; counter-reset: c; }
.gr-circuit li { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: #5B6272; counter-increment: c; }
.gr-circuit li::before { content: counter(c); flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E9ECF4; font-size: 11px; font-weight: 700; color: #5B6272; }
.gr-circuit b { font-size: 13px; font-weight: 700; white-space: nowrap; color: #1C2333; }
.gr-th .gr-qui { font-weight: 700; color: #fff; }
.gr-circuit li.is-on::before { background: #3B6FE0; color: #fff; }
.gr-suivi { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: #5B6272; }
.gr-devise { margin-top: 14px; padding-top: 12px; border-top: 1px solid #EEF0F5; font-size: 13px; font-weight: 700; color: #1C2333; }

/* --- Hors du back-office : le téléphone d'Emma (congés), puis celui de Julien (forfait jours) --- */
.js .gr:not(.is-fj) .gr-julien, .js .gr.is-fj .gr-emma { display: none; }
.gr-julien { margin-top: 22px; }
.js .gr-julien { margin-top: 0; }
.gr-cpt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; }
.gr-cpt small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #7A8090; }
.gr-fjm { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; font-size: 13px; font-weight: 700; }
.gr-fjc > small { display: block; margin-top: 2px; font-size: 11px; color: #7A8090; }
.gr-fjcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.gr-fjcal li { display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 42px; padding: 5px 0 4px; border-radius: 8px; box-shadow: 0 0 0 1px #E8EAF1; font-size: 11.5px; font-weight: 700; }
.gr-fjcal .gr-d { min-height: 0; padding: 0 0 1px; box-shadow: none; font-size: 10px; font-weight: 600; color: #8A90A0; }
.gr-fjcal .is-off { background: #F1F2F6; box-shadow: none; color: #8A90A0; }
.gr-code { padding: 2px 4px; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1.1; color: #fff; }
.gr-code--t { background: #2F6BFF; }
.gr-code--h { background: #8FB0FF; color: #10317F; }
.gr-code--cp { background: #1E8E4E; }
.gr-code--r { background: #0F8A80; }
.gr-fjcal .gr-vide { box-shadow: 0 0 0 1.5px #9AA1B2; }
.gr-fjcal .gr-vide .gr-code { visibility: hidden; }
.gr-codes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin-top: 9px; font-size: 10.5px; color: #5B6272; }
.gr-codes .gr-code { margin-left: 4px; }
.gr-codes .gr-code:first-child { margin-left: 0; }
.gr-q { margin-top: 10px; font-size: 12px; font-weight: 700; }
.gr-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 5px; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px #DCDFE8; }
.gr-seg b { display: grid; place-items: center; min-height: 36px; padding: 4px 3px; font-size: 10.5px; font-weight: 600; line-height: 1.15; text-align: center; color: #3A4256; transition: background .25s ease, color .25s ease; }
.gr-seg b + b { box-shadow: -1px 0 0 #DCDFE8; }
.gr-seg b.is-on { background: var(--app); color: #fff; }
.gr-encore { margin-top: 8px; font-size: 11px; color: #7A8090; }
.gr-val { display: grid; }
.gr-val > span { grid-area: 1 / 1; transition: opacity .3s ease; }
.gr-val > span:last-child { opacity: 0; }
.gr-val.is-done { background: #D8F0E5; color: #00664A; }
.gr-val.is-done > span:first-child { opacity: 0; }
.gr-val.is-done > span:last-child { opacity: 1; }

/* --- Le téléphone d'Emma : cinq vues qui se succèdent --- */
.gr-scr { padding-top: 14px; }
.gr-scr .gx-view, .gr-scr .gx-view + .gx-view { opacity: 0; visibility: hidden; transform: translateX(16px); }
.gr-scr .gx-view.is-on { opacity: 1; visibility: visible; transform: none; }
.gr-scr .lvp-h { margin-top: 6px; font-size: 20px; }
.gr-scr .lvp-back { margin-top: 0; }
.gr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.gr-tiles li { padding: 12px 12px 13px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #E8EAF1, 0 8px 16px -14px rgba(15, 20, 36, .35); }
.gr-tiles i { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 11px; background: #EEF2FB; }
.gr-tiles svg { width: 17px; height: 17px; fill: var(--app); }
.gr-tiles em { font-size: 16px; font-style: normal; font-weight: 800; line-height: 1; color: var(--app); }
.gr-tiles b { display: block; font-size: 13px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.gr-tiles small { display: block; margin-top: 3px; font-size: 11px; color: #7A8090; }
.gr-new { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--app); font-size: 13.5px; font-weight: 700; line-height: 1.1; text-align: center; color: #fff; }
.gr-pc { margin-top: 10px; padding: 11px 13px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E6E8F0; }
.gr-pc > b { font-size: 12.5px; font-weight: 800; }
.gr-pc p { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 12.5px; color: #3A4256; }
.gr-pc p b { font-weight: 800; color: #0F1424; text-align: right; }
.gr-pc .gr-vide { font-size: 12px; color: #8A90A0; }
.gr-pc .gr-dem { display: none; font-weight: 700; color: #0F1424; }
.gr-dem small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: #7A8090; }
.is-sent .gr-vide { display: none; }
.is-sent .gr-pc .gr-dem { display: flex; animation: gx-in .45s var(--ease) both; }
.gr-typ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.gr-typ li { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 11px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E8EAF1; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.gr-typ li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.gr-solde { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.gr-solde small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: 0; color: #7A8090; }
.gr-solde span:last-child { text-align: right; }
.gr-cal-m { margin-top: 10px; font-size: 12.5px; font-weight: 700; text-align: center; }
.gr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px 0; margin-top: 6px; }
.gr-cal li { padding: 8px 0; font-size: 12.5px; font-weight: 700; line-height: 1; text-align: center; transition: background .25s ease, color .25s ease; }
.gr-cal .gr-d { padding: 0 0 4px; font-size: 10.5px; font-weight: 600; color: #8A90A0; }
.gr-cal .is-past { font-weight: 500; color: #B5BBC8; }
.gr-cal .is-we { color: #5B6272; }
.gr-cal .gr-deb { border-radius: 99px; background: var(--app); color: #fff; }
.is-range .gr-cal .gr-deb { border-radius: 99px 0 0 99px; }
.is-range .gr-cal .gr-mid { background: #E7EDFC; }
.is-range .gr-cal .gr-fin { border-radius: 0 99px 99px 0; background: var(--app); color: #fff; }
.gr-range { min-height: 16px; margin-top: 8px; font-size: 12px; font-weight: 600; text-align: center; color: #3A4256; }
.gr-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.gr-half span { display: grid; grid-template-columns: 1fr 1fr; border-radius: 9px; }
.gr-half small { grid-column: 1 / -1; margin: 0 0 4px 2px; font-size: 10.5px; font-weight: 600; color: #7A8090; }
.gr-half b { padding: 9px 0; background: #E9EBF1; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1; text-align: center; color: #5B6272; transition: background .25s ease, color .25s ease; }
.gr-half b:nth-of-type(1) { border-radius: 9px 0 0 9px; }
.gr-half b:nth-of-type(2) { border-radius: 0 9px 9px 0; }
.gr-half b.is-on { border-radius: 9px; background: var(--app); color: #fff; }
.gr-res p { margin-top: 0; padding: 8px 0; }
.gr-res p + p { border-top: 1px solid #EEF0F5; }
.gr-res { padding-top: 4px; padding-bottom: 4px; }
.gr-info { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #EEF2FB; font-size: 12px; line-height: 1.4; color: #2B3245; }

@media (min-width: 641px) and (max-width: 940px) {
  .gr .gx-screens { min-height: 600px; }
  .gr-tabs span { padding: 9px 9px; font-size: 12.5px; }
  .gr-circ { gap: 8px; }
  .gr-circ p { padding: 10px 10px 11px; }
  .gr-circ b { font-size: 13px; }
  .gr-deux { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gr-deux p:last-child { display: none; }
  .gr-types-t small { display: none; }
  .gr-x { display: none; }
  .gr-table--dem .gr-tr { grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 1fr) 138px; }
  .gr-table--sol .gr-tr { grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .gr-table--ac .gr-tr { grid-template-columns: 32px minmax(0, 1fr) 80px 104px; }
  .gr-drawer { width: 310px; padding: 16px 16px; }
  .gr-plan li { grid-template-columns: 132px repeat(30, minmax(0, 1fr)); }
  .gr-plan li > p { gap: 7px; padding: 0 8px; font-size: 12px; }
  .gr-plan li > p small { display: none; }
  .gr-plan .prep-avatar, .gr-plan .go-ini { width: 24px; height: 24px; font-size: 9.5px; }
  .gr-pl-h span { font-size: 9px; }
  .gr-pl-h span small { min-width: 15px; font-size: 9.5px; }
  .gr-bar { margin: 0 1px; padding: 8px 4px; }
  .gr-bar--cp, .gr-bar--mal, .gr-bar--att { font-size: 0; }
  .gr-bar--cp::after { content: 'CP'; font-size: 10.5px; }
  .gr-bar--mal::after { content: 'Maladie'; font-size: 10.5px; }
  .gr-bar--att::after { content: '?'; font-size: 10.5px; }
  .gr-mois .gr-rech { display: none; }
  .gr-mois em:last-child { margin-left: auto; }
  .gr-leg b { flex-basis: 100%; margin-left: 0; }
  .gr-kpis { gap: 8px; }
  .gr-kpis p { padding: 9px 10px 10px; }
  .gr-kpis span { display: none; }
  .gr-table--fj .gr-tr { grid-template-columns: 32px minmax(0, 1.3fr) 138px 62px 62px 74px; }
  .gr-table--al .gr-tr { grid-template-columns: 86px minmax(0, 1fr); }
  .gr-table--al .gr-qui { display: none; }
  .gr-ac { grid-template-columns: minmax(0, 1fr) 280px; gap: 10px; }
  .gr-sub .gr-btn2 { display: none; }
}
