/* URG360 v2.6 — PATIENTSHELL2
   Espace patient quasi plein écran : navigation dossier seule, retour service visible,
   identité et constantes compactées, redondances réduites. Feuille isolée pour rollback simple. */

body.urg-v26-patient-focus .app-sidebar{display:none!important}
body.urg-v26-patient-focus .topbar{left:0!important}
body.urg-v26-patient-focus{--urg-topbar:64px}
body.urg-v26-patient-focus .layout{margin-left:0!important;width:100%!important;max-width:none!important;padding:calc(var(--urg-topbar) + 4px) 10px 16px!important}
body.urg-v26-patient-focus > footer{display:none!important}

#v26PrescriptionLabView.v26-patient-focus>.back,
#v26PrescriptionLabView.v26-patient-focus>.v26-lab-warning,
#v26PrescriptionLabView.v26-patient-focus>.v26-lab-head,
#v26PrescriptionLabView.v26-patient-focus>#v26LabMessage{display:none!important}
#v26PrescriptionLabView.v26-patient-focus #v26LabMainLayout{display:block!important;width:100%;margin:0}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-list-card{display:none!important}
#v26PrescriptionLabView.v26-patient-focus .v26-workspace-card{
  width:100%;min-height:calc(100vh - 76px);border-radius:12px;overflow:visible;
  box-shadow:0 5px 20px rgba(21,43,62,.055);border-color:#dbe5ee
}

.v26-patient-shell{display:grid;grid-template-columns:162px minmax(0,1fr);min-width:0;min-height:calc(100vh - 78px)}
.v26-patient-shell[hidden]{display:none!important}
.v26-patient-nav{
  min-width:0;background:linear-gradient(180deg,#0b3158,#092846);border-radius:11px 0 0 11px;
  padding:8px;color:#fff;display:flex;flex-direction:column;gap:8px
}
.v26-patient-back-service{
  width:100%;min-height:36px;border:1px solid rgba(255,255,255,.25);border-radius:8px;
  background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:900;text-align:left;
  padding:7px 9px;cursor:pointer
}
.v26-patient-back-service:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.42)}
.v26-patient-nav .v26-workspace-tabs{position:sticky;top:72px;display:flex;flex-direction:column;gap:5px;padding:0;border:0;overflow:visible}
.v26-patient-nav .v26-workspace-tabs button{
  position:relative;width:100%;min-height:42px;display:flex;align-items:center;gap:8px;padding:7px 8px;
  border:1px solid transparent;border-radius:8px;background:transparent;color:#dceafa;text-align:left;
  font-size:12.5px;font-weight:850;line-height:1.1;white-space:nowrap
}
.v26-patient-nav .v26-workspace-tabs button:hover{background:rgba(255,255,255,.08);color:#fff}
.v26-patient-nav .v26-workspace-tabs button.active{background:#fff;color:#0d4f89;border-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.11)}
.v26-patient-nav .v26-workspace-tabs button::before{width:17px;flex:0 0 17px;text-align:center;font-size:14px;font-weight:900}
.v26-patient-nav [data-v26-tab="summary"]::before{content:"⌂"}
.v26-patient-nav [data-v26-tab="pancarte"]::before{content:"⌁"}
.v26-patient-nav [data-v26-tab="prescriptions"]::before{content:"+";width:15px!important;height:17px;flex-basis:15px!important;border:1.6px solid currentColor;border-radius:3px;display:grid;place-items:center;font-size:12px;line-height:1;font-weight:950;box-sizing:border-box}
.v26-patient-nav [data-v26-tab="plan"]::before{content:"✓"}
.v26-patient-nav [data-v26-tab="todo"]::before{content:"!"}
.v26-patient-nav [data-v26-tab="timeline"]::before{content:"◷"}
.v26-patient-nav [data-v26-tab="audit"]::before{content:"◎"}
.v26-patient-nav .v26-tab-count{margin-left:auto;min-width:18px;height:18px;font-size:9px}

.v26-patient-main{min-width:0;background:#fff;border-radius:0 11px 11px 0;overflow:hidden}
.v26-patient-return-row{display:none!important}

/* Header patient permanent : une ligne métier, pas un deuxième écran d'identité. */
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner{
  min-height:48px;padding:5px 10px 5px 12px;background:#fff;gap:9px;border-bottom:1px solid #e3ebf2;
  border-radius:0!important;align-items:center
}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner>div:first-child{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner .v26-context-badge{font-size:9px;padding:4px 7px;order:2}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner h3{font-size:18px;margin:0;line-height:1.05;order:1}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner small{font-size:10px;white-space:nowrap;color:#657b8d;order:3}
#v26PrescriptionLabView.v26-patient-focus .v26-fake-badge{font-size:9px;padding:4px 7px;margin-left:auto}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner-actions{gap:5px;margin-left:0;flex-wrap:nowrap}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner-actions button{padding:6px 8px;font-size:10px;min-height:30px}
#v26PrescriptionLabView.v26-patient-focus .v26-allergy-banner{margin-left:0;min-width:0;gap:5px}
#v26PrescriptionLabView.v26-patient-focus .v26-allergy-banner>div{font-size:9px;padding:5px 7px;white-space:nowrap}
#v26PrescriptionLabView.v26-patient-focus .v26-allergy-banner button{padding:5px 7px;font-size:9px;white-space:nowrap}

/* Dernières constantes = rappel clinique compact, pas une seconde pancarte. */
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-banner{margin:0;border:0;border-bottom:1px solid #dde7ef;border-radius:0;box-shadow:none;background:#fbfdff;overflow:hidden}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head{min-height:24px;padding:3px 9px;border-bottom:1px solid #edf2f6;background:#f7fbfe}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head>div{gap:7px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head span{font-size:9px;letter-spacing:.07em}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head small{font-size:9px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head button{font-size:10px;padding:2px 0}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-grid{grid-template-columns:1.25fr repeat(6,minmax(72px,1fr));background:#fff}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital{
  min-height:45px;padding:4px 7px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  column-gap:6px;row-gap:0;align-items:center;border-right:1px solid #edf1f5
}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>span{font-size:8px;line-height:1;color:#6c7f90;grid-column:1/3}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>strong{font-size:16px;line-height:1.05;grid-column:1;white-space:nowrap}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>strong small{font-size:8px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>em{font-size:8px;grid-column:2;justify-self:start;white-space:nowrap}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>time{font-size:8px;color:#91a0ad;grid-column:2;grid-row:2;justify-self:end;align-self:end}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital .v26-pa-bar{display:none!important}

#v26PrescriptionLabView.v26-patient-focus .v26-tab-pane{padding:8px 10px 12px}
#v26PrescriptionLabView.v26-patient-focus .v26-pancarte-pane{padding-top:6px}
#v26PrescriptionLabView.v26-patient-focus .v26-plan-head{margin-bottom:6px;align-items:center}
#v26PrescriptionLabView.v26-patient-focus .v26-plan-head .eyebrow{margin-bottom:2px}
#v26PrescriptionLabView.v26-patient-focus .v26-plan-period-label{margin:2px 0 0;color:#60768a;font-size:10px}
#v26PrescriptionLabView.v26-patient-focus .v26-plan-filter{margin-top:4px}

/* Desktop large : les formulaires restent lisibles sans gaspiller tout le 16:9. */
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-prescription-form,
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-prescription-builder{max-width:1540px}

@media(max-width:1180px){
  #v26PrescriptionLabView.v26-patient-focus .v26-patient-banner small{white-space:normal}
  #v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:900px){
  body.urg-v26-patient-focus .layout{padding:4px!important}
  .v26-patient-shell{grid-template-columns:1fr}
  .v26-patient-nav{border-radius:10px 10px 0 0;padding:6px;gap:5px}
  .v26-patient-back-service{width:auto;align-self:flex-start;padding:5px 8px;min-height:30px}
  .v26-patient-nav .v26-workspace-tabs{position:static;flex-direction:row;overflow:auto;gap:4px}
  .v26-patient-nav .v26-workspace-tabs button{width:auto;min-height:34px;white-space:nowrap;padding:6px 8px}
  .v26-patient-main{border-radius:0 0 10px 10px}
  #v26PrescriptionLabView.v26-patient-focus .v26-patient-banner{flex-wrap:wrap}
}


/* PATIENTSHELL2.1 — contraste visuel et états cliniques (DEV).
   Les classes de gravité sont purement visuelles dans cette build LAB ; les seuils devront être validés avant production. */
body.urg-v26-patient-focus .topbar{box-shadow:0 2px 10px rgba(16,47,77,.06)!important}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-main{background:#f4f7fb}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner{background:linear-gradient(90deg,#ffffff 0%,#f8fbff 100%);border-bottom-color:#cfdae6;box-shadow:0 1px 0 rgba(20,66,105,.03)}
#v26PrescriptionLabView.v26-patient-focus .v26-patient-banner h3{color:#0d3157;font-weight:900}

/* Barre constantes : compacte mais immédiatement lisible. */
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-banner{background:#fff;border-bottom:1px solid #cfdbe6}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head{background:#eef5fb;border-bottom-color:#d9e5ef}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head span{color:#0b5f9d;font-weight:950}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head button{color:#075fae;font-weight:900}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-grid{gap:5px;padding:5px 6px;background:#f4f8fb}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital{
  position:relative;min-height:49px;padding:5px 8px;border:1px solid #d9e3ec!important;border-radius:8px;background:#fff;
  box-shadow:0 1px 3px rgba(23,50,77,.035);overflow:hidden
}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#90a4b5}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>span{font-size:8.5px;font-weight:900;color:#526b80;text-transform:uppercase;letter-spacing:.025em}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>strong{font-size:17px;font-weight:950;color:#102e4a}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>em{font-weight:900;color:#285b85}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>time{color:#8495a4}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital .v26-vital-trend{font-style:normal;font-size:9px;font-weight:950;margin-left:3px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-normal{border-color:#cfe2d4!important;background:#fbfefc}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-normal::after{background:#4fa86b}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-warning{border-color:#e8c572!important;background:#fffaf0}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-warning::after{background:#e09612}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-warning>strong,
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-warning .v26-vital-trend{color:#a86700}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-critical{border-color:#e89a9a!important;background:#fff5f5;box-shadow:0 1px 4px rgba(180,30,30,.07)}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-critical::after{background:#d92929}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-critical>strong,
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-critical>em,
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-critical .v26-vital-trend{color:#b51f24}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-unknown{background:#f8fafc;border-color:#dfe6ec!important}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital.v26-vital-unknown::after{background:#a8b4be}

/* Plus de hiérarchie dans le contenu, moins de ton-sur-ton. */
#v26PrescriptionLabView.v26-patient-focus .v26-tab-pane{background:#f4f7fb}
#v26PrescriptionLabView.v26-patient-focus .v26-section{border-color:#d5e0ea;box-shadow:0 2px 8px rgba(18,56,88,.045)}
#v26PrescriptionLabView.v26-patient-focus .v26-section-head{background:#eef4f9;border-bottom-color:#d7e2eb}
#v26PrescriptionLabView.v26-patient-focus .v26-section-head h4{color:#173956;font-weight:900}
#v26PrescriptionLabView.v26-patient-focus .v26-kpis{gap:9px}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi{position:relative;overflow:hidden;border-color:#cfdde9;background:#fff;box-shadow:0 2px 7px rgba(22,61,93,.04)}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#3479b7}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi:first-child{background:#f5faff;border-color:#c2dbed}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi:first-child strong{color:#0b65aa}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi.danger{background:#fff3f3;border-color:#e5a8a8}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi.danger::before{background:#d92929}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi.attention{background:#fff9ec;border-color:#e6c572}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi.attention::before{background:#df9a17}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi:nth-child(4){background:#f3fbf6;border-color:#c7e3d0}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi:nth-child(4)::before{background:#3b9a5b}
#v26PrescriptionLabView.v26-patient-focus .v26-kpi:nth-child(4) strong{color:#277a43}

/* Prescription : séparer clairement recherche, catégories et contenu. */
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-prescription-form,
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-prescription-builder{background:#fff;border:1px solid #d5e1eb;border-radius:12px;box-shadow:0 3px 10px rgba(18,56,88,.045)}
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-catalog-categories,
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-category-bar{background:#edf4fa!important;border-top:1px solid #dbe5ee;border-bottom:1px solid #d4e0ea}

/* Navigation dossier plus lisible. */
.v26-patient-nav .v26-workspace-tabs button{letter-spacing:.005em}
.v26-patient-nav .v26-workspace-tabs button.active{box-shadow:inset 4px 0 0 #0b67b2,0 3px 10px rgba(0,0,0,.10)}
.v26-patient-nav .v26-workspace-tabs button.has-due{background:#6f5010;color:#fff;border-color:#8c681b}
.v26-patient-nav .v26-workspace-tabs button.has-overdue{background:#7d2525;color:#fff;border-color:#9e3939}
.v26-patient-nav .v26-workspace-tabs button.active.has-due,
.v26-patient-nav .v26-workspace-tabs button.active.has-overdue{background:#fff;color:#0d4f89;border-color:#fff}

@media(max-width:1180px){
  #v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-grid{gap:4px;padding:4px}
}


/* PATIENTSHELL2.2 — rappels contextuels + recherche Prescription harmonisée. */
/* La barre de constantes est un rappel : pas de doublon dans Pancarte, Timeline ou Audit. */
#v26PrescriptionLabView.v26-patient-focus.v26-no-vitals-reminder .v26-latest-vitals-banner{
  display:none!important;
}

/* Toutes les recherches de prescription utilisent le même bleu clinique. */
#v26PrescriptionLabView.v26-patient-focus{
  --v26-rx-search-bg:#eef7ff;
  --v26-rx-search-border:#86b9df;
  --v26-rx-search-text:#153b59;
  --v26-rx-search-focus:#0d70b6;
}
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-catalog-search>input[type="search"],
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions input[type="search"]:not([data-v26-family-search]){
  background:var(--v26-rx-search-bg)!important;
  border:1.5px solid var(--v26-rx-search-border)!important;
  color:var(--v26-rx-search-text)!important;
  box-shadow:inset 0 1px 2px rgba(16,74,116,.035)!important;
}
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-family-search{
  background:var(--v26-rx-search-bg)!important;
  border:1.5px solid var(--v26-rx-search-border)!important;
  box-shadow:inset 0 1px 2px rgba(16,74,116,.035)!important;
}
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-family-search input[type="search"]{
  background:transparent!important;
  color:var(--v26-rx-search-text)!important;
}
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions input[type="search"]::placeholder,
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-family-search input[type="search"]::placeholder{
  color:#6b8aa1!important;
  opacity:1;
}
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-catalog-search>input[type="search"]:focus,
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions input[type="search"]:not([data-v26-family-search]):focus,
#v26PrescriptionLabView.v26-patient-focus #v26TabPrescriptions .v26-family-search:focus-within{
  background:#f7fbff!important;
  border-color:var(--v26-rx-search-focus)!important;
  box-shadow:0 0 0 3px rgba(13,112,182,.12)!important;
  outline:none!important;
}
/* Le sélecteur catalogue des packs/protocoles appartient aussi au flux de prescription. */
#v26A36CatalogPicker .v26-a36-picker-search input[type="search"]{
  background:#eef7ff!important;
  border:1.5px solid #86b9df!important;
  color:#153b59!important;
}
#v26A36CatalogPicker .v26-a36-picker-search input[type="search"]:focus{
  background:#f7fbff!important;
  border-color:#0d70b6!important;
  box-shadow:0 0 0 3px rgba(13,112,182,.12)!important;
  outline:none!important;
}

/* Alpha 1.7.5 — bandeau constantes plus lisible */
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head span{font-size:10px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vitals-head small{font-size:9.5px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>span{font-size:9.5px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>strong{font-size:19px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>strong small{font-size:9.5px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>em{font-size:9px}
#v26PrescriptionLabView.v26-patient-focus .v26-latest-vital>time{font-size:8.8px}
