/* URG360 Alpha 1.15 — Dossier médical d'hospitalisation : identité premium propre au séjour longitudinal */
#v26PatientWorkspace.v280-inpatient #v26TabConsultation{
  background:#f3f7fb!important;
  padding:12px!important;
}
.v280h-page{
  --h-ink:#16324a;
  --h-navy:#163e5d;
  --h-muted:#718493;
  --h-line:#dfe8ef;
  --h-soft:#f7fafc;
  --h-blue:#0e68a4;
  --h-blue-soft:#edf6ff;
  --h-green:#2d7652;
  --h-green-soft:#eef8f2;
  --h-red:#9c3b3b;
  max-width:1520px;
  margin:0 auto;
  color:var(--h-ink);
  font-size:14px;
}
.v280h-page button,.v280h-page input,.v280h-page textarea,.v280h-page select{font:inherit}

/* Contexte du séjour : compact et spécifique au parcours d’hospitalisation */
.v280h-context-strip{
  display:grid;
  grid-template-columns:minmax(280px,1.1fr) minmax(430px,1.55fr) minmax(300px,.95fr);
  gap:10px;
  align-items:stretch;
  margin-bottom:11px;
}
.v280h-context-primary,.v280h-context-metrics,.v280h-expected-discharge{
  background:#fff;
  border:1px solid var(--h-line);
  border-radius:15px;
  box-shadow:0 4px 14px rgba(18,58,89,.045);
}
.v280h-context-primary{padding:12px 14px}
.v280h-context-primary .eyebrow{
  margin:0 0 4px;
  color:#71879a;
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.v280h-context-title{display:flex;align-items:center;gap:8px;min-width:0}
.v280h-context-title h1{
  margin:0;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#173f5f;
  font-size:18px;
  line-height:1.15;
}
.v280h-context-primary>p:last-child{margin:5px 0 0;color:var(--h-muted);font-size:10px}
.v280h-service-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border:1px solid #b9d8ed;
  border-radius:999px;
  background:var(--h-blue-soft);
  color:#0f6298;
  font-size:8.5px;
  font-weight:900;
  white-space:nowrap;
}
.v280h-service-pill i{width:6px;height:6px;border-radius:50%;background:#3e8fbd}

.v280h-context-metrics{
  display:grid;
  grid-template-columns:1.45fr .8fr .8fr;
  gap:7px;
  padding:9px 10px;
}
.v280h-context-metrics>div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:7px 9px;
  border:1px solid #e8eef3;
  border-radius:10px;
  background:#f8fbfd;
}
.v280h-context-metrics span{
  color:#718596;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.v280h-context-metrics b{
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#163b58;
  font-size:12px;
}
.v280h-context-metrics>div:not(:first-child) b{font-size:17px}

.v280h-expected-discharge{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  margin:0;
  padding:10px 12px;
}
.v280h-expected-discharge>span{
  color:#718596;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.v280h-expected-discharge>div{display:flex;gap:6px;align-items:center}
.v280h-expected-discharge input{
  min-width:0;
  width:100%;
  box-sizing:border-box;
  border:1px solid #cddbe6;
  border-radius:9px;
  background:#fff;
  padding:7px 8px;
  color:#24465d;
  font-size:10px;
}
.v280h-expected-discharge input:focus{outline:none;border-color:#6fa6c9;box-shadow:0 0 0 3px rgba(70,145,195,.10)}
.v280h-expected-discharge input:disabled{background:#f6f8fa;color:#738493}

/* Identification dans l'équipe : uniquement si nécessaire */
.v280h-team-control.compact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 11px;
  padding:9px 11px;
  border:1px solid #d8e6ef;
  border-radius:12px;
  background:linear-gradient(90deg,#f7fbff,#fff);
  box-shadow:none;
}
.v280h-team-copy{display:flex;flex-direction:column;gap:2px}
.v280h-team-copy span{color:#758897;font-size:8px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.v280h-team-copy strong{color:#315a76;font-size:10px}
.v280h-team-control .v280h-team-actions{display:flex;gap:6px;justify-content:flex-end}

/* Étapes du dossier : bleu actif, vert renseigné, gris à faire */
.v280h-tabs{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;
  margin:0 0 12px;
  padding:4px;
  overflow:visible;
  border:1px solid #e0e8ee;
  border-radius:13px;
  background:#edf2f6;
}
.v280h-tabs button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:40px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  padding:7px 8px;
  color:#607484;
  font-size:10px;
  font-weight:900;
  line-height:1.15;
  white-space:normal;
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.v280h-tabs button:hover{background:#f8fbfd;color:#315a76}
.v280h-tab-dot{width:7px;height:7px;flex:0 0 7px;border:1px solid #b7c5cf;border-radius:50%;background:#fff}
.v280h-tabs button.is-done:not(.active){background:#f6fbf8;color:#3f7057}
.v280h-tabs button.is-done:not(.active) .v280h-tab-dot{border-color:#79ad90;background:#58a077}
.v280h-tabs button.active{
  border-color:#bfd9eb;
  background:#fff;
  color:#0f6095;
  box-shadow:0 2px 7px rgba(22,70,101,.10);
}
.v280h-tabs button.active .v280h-tab-dot{border-color:#0e68a4;background:#0e68a4}

/* Mise en page principale */
.v280h-layout{grid-template-columns:minmax(0,1fr) 270px;gap:13px}
.v280h-card,.v280h-sidebox{
  border:1px solid var(--h-line);
  background:#fff;
  box-shadow:0 4px 14px rgba(18,58,89,.04);
}
.v280h-card{border-radius:15px}
.v280h-card>header{
  min-height:58px;
  padding:12px 15px;
  border-bottom:1px solid #e8eef3;
  background:#fff;
}
.v280h-card>header span{
  color:#71879a;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.08em;
}
.v280h-card>header h2,.v280h-card>header h3{margin:3px 0 0;color:#163e5d}
.v280h-card>header h2{font-size:17px}
.v280h-card-body{padding:14px 15px}
.v280h-side{top:10px;gap:10px}
.v280h-sidebox{border-radius:13px;padding:12px}
.v280h-sidebox h3{margin:0 0 8px;color:#193f5c;font-size:12px}
.v280h-sidebox button{margin-top:6px}

/* Boutons : bleu = action, vert = enregistrement/validation */
.v280h-btn{
  border:1px solid #cbdbe6;
  border-radius:8px;
  background:#fff;
  color:#285b7d;
  padding:7px 10px;
  font-size:9.5px;
  font-weight:900;
  box-shadow:0 1px 2px rgba(20,55,78,.03);
}
.v280h-btn:hover{background:#f5f9fc;border-color:#a9c6d8}
.v280h-btn.primary{background:var(--h-blue);border-color:var(--h-blue);color:#fff}
.v280h-btn.soft{background:#f4f9fc;border-color:#cfe1eb;color:#1f648d}
#v280hSaveAdmission,#v280hSaveSingular,#v280hSaveConclusion,#v280hSaveDischargeRx,
#v280hAddDaily,#v280hAddCareNote,#v280hSaveExpectedDischarge{
  background:var(--h-green)!important;
  border-color:var(--h-green)!important;
  color:#fff!important;
}
.v280h-btn.danger{background:#fff7f7;border-color:#e5c2c2;color:var(--h-red)}
.v280h-btn:focus-visible{outline:3px solid rgba(14,104,164,.15);outline-offset:2px}

/* Sous-navigation et contenu clinique */
.v280h-subtabs,.v280h-care-subtabs{gap:5px;margin-bottom:11px}
.v280h-subtabs button,.v280h-care-subtabs button{
  border:1px solid #d7e2ea;
  border-radius:8px;
  background:#fff;
  color:#5c7282;
  padding:6px 9px;
  font-size:9px;
  font-weight:900;
}
.v280h-subtabs button.active,.v280h-care-subtabs button.active{
  border-color:#b7d5e8;
  background:#edf7fd;
  color:#155f8d;
}
.v280h-field>span{margin-bottom:5px;color:#2b506a;font-size:10px;font-weight:900}
.v280h-field textarea,.v280h-field input,.v280h-field select,.v280h-comp textarea{
  border:1px solid #ccd9e3;
  border-radius:9px;
  padding:9px 10px;
  color:#1d3547;
  background:#fff;
}
.v280h-field textarea:focus,.v280h-field input:focus,.v280h-field select:focus,.v280h-comp textarea:focus{
  outline:none;
  border-color:#5b9ac5;
  box-shadow:0 0 0 3px rgba(70,145,195,.10);
}
.v280h-big-note textarea{min-height:210px;font-size:14px}
.v280h-daily textarea{min-height:180px;font-size:14px}
.v280h-summary-note{
  margin-bottom:10px;
  padding:9px 10px;
  border:1px solid #d7e5eb;
  border-radius:9px;
  background:#f5fafc;
  color:#4b6b7e;
  font-size:10px;
}
.v280h-template-note{font-size:9px}
.v280h-status{font-size:10px}

/* Terrain longitudinal */
.v280h-terrain-grid{gap:9px}
.v280h-mini{
  border-color:#e2eaf0;
  border-radius:11px;
  background:#fbfdff;
  padding:10px;
}
.v280h-mini:nth-child(4){grid-column:1/-1;background:#fffafa;border-color:#efd8d8}
.v280h-mini header{margin-bottom:6px}
.v280h-mini header strong{color:#1c4563;font-size:12px}
.v280h-mini header span{font-size:8px}
.v280h-mini li{padding:5px 0;font-size:10px}
.v280h-mini li small{font-size:8.5px}
.v280h-empty{font-size:9.5px}

/* Examens complémentaires et chronologie */
.v280h-comp-grid{gap:9px}
.v280h-comp{border-color:#e2eaf0;border-radius:11px;background:#fbfdff;padding:10px}
.v280h-comp h4{margin:0 0 7px;color:#1d4867;font-size:12px}
.v280h-comp textarea{min-height:120px;font-size:10.5px}
.v280h-progress-compose{padding:14px 15px}
.v280h-progress-list{padding:7px 15px 15px;gap:7px}
.v280h-progress-item{grid-template-columns:82px 1fr;gap:10px;padding:10px 0}
.v280h-progress-item time{color:#315b78;font-size:9px}
.v280h-progress-item header strong{font-size:10px}
.v280h-progress-item header span{font-size:9px}
.v280h-progress-item p{margin-top:4px;color:#425f72;font-size:10.5px}

/* Conclusion */
.v280h-conclusion-grid{gap:10px}
.v280h-conclusion-grid .wide{grid-column:1/-1}
.v280h-context-list{gap:6px}
.v280h-context-list div{font-size:10px}
.v280h-context-list span{color:#758897}
.v280h-context-list b{color:#203f57}
.v280h-rx-item,.v280h-discharge-rx-row{border-color:#e1e9ef;background:#fbfdff}

/* Responsive */
@media(max-width:1250px){
  .v280h-context-strip{grid-template-columns:1fr 1fr}
  .v280h-context-primary{grid-column:1/-1}
  .v280h-tabs{display:flex;overflow-x:auto}
  .v280h-tabs button{min-width:145px;white-space:nowrap}
}
@media(max-width:1050px){
  .v280h-layout{grid-template-columns:1fr}
  .v280h-side{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  #v26PatientWorkspace.v280-inpatient #v26TabConsultation{padding:8px!important}
  .v280h-context-strip{grid-template-columns:1fr}
  .v280h-context-primary{grid-column:auto}
  .v280h-context-metrics{grid-template-columns:1fr 1fr}
  .v280h-context-metrics>div:first-child{grid-column:1/-1}
  .v280h-team-control.compact{align-items:flex-start;flex-direction:column}
  .v280h-side{grid-template-columns:1fr}
  .v280h-terrain-grid,.v280h-conclusion-grid{grid-template-columns:1fr}
  .v280h-mini:nth-child(4){grid-column:auto}
  .v280h-progress-item{grid-template-columns:1fr}
}


/* Système de boutons Hospitalisation — identité propre, sans duplication du DM Urgences */
.v280h-page{
  --h-action:#176b87;
  --h-action-hover:#125d76;
  --h-action-soft:#eef7f9;
  --h-action-line:#bfd8df;
  --h-button-ink:#29485d;
}

/* Base commune : même finition dans tout le DM Hospitalisation */
.v280h-page .v280h-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-sizing:border-box;
  border:1px solid #cddae3;
  border-radius:10px;
  background:#fff;
  padding:8px 13px;
  color:var(--h-button-ink);
  font-size:12.5px;
  font-weight:800;
  line-height:1.15;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(20,55,78,.025);
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .08s ease;
}
.v280h-page .v280h-btn:hover:not(:disabled){
  border-color:#a9c5d3;
  background:#f7fafc;
  color:#173f58;
}
.v280h-page .v280h-btn:active:not(:disabled){transform:translateY(1px)}
.v280h-page .v280h-btn.primary,
#v280hSaveAdmission,#v280hSaveSingular,#v280hSaveConclusion,#v280hSaveDischargeRx,
#v280hAddDaily,#v280hAddCareNote,#v280hSaveExpectedDischarge{
  border-color:var(--h-action)!important;
  background:var(--h-action)!important;
  color:#fff!important;
  box-shadow:0 2px 5px rgba(23,107,135,.13);
}
.v280h-page .v280h-btn.primary:hover:not(:disabled),
#v280hSaveAdmission:hover:not(:disabled),#v280hSaveSingular:hover:not(:disabled),
#v280hSaveConclusion:hover:not(:disabled),#v280hSaveDischargeRx:hover:not(:disabled),
#v280hAddDaily:hover:not(:disabled),#v280hAddCareNote:hover:not(:disabled),
#v280hSaveExpectedDischarge:hover:not(:disabled){
  border-color:var(--h-action-hover)!important;
  background:var(--h-action-hover)!important;
}
.v280h-page .v280h-btn.soft{
  border-color:var(--h-action-line);
  background:var(--h-action-soft);
  color:#145b72;
  box-shadow:none;
}
.v280h-page .v280h-btn.soft:hover:not(:disabled){
  border-color:#9fc6d0;
  background:#e5f2f5;
  color:#104d62;
}
.v280h-page .v280h-btn.danger{
  border-color:#e3c3c3;
  background:#fffafa;
  color:#913838;
  box-shadow:none;
}
.v280h-page .v280h-btn.danger:hover:not(:disabled){background:#fff2f2;border-color:#d7aaaa}
.v280h-page .v280h-btn:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.v280h-page .v280h-btn:focus-visible{
  outline:3px solid rgba(23,107,135,.15);
  outline-offset:2px;
}

/* Actions du service : un bouton principal, les accès contextuels restent secondaires */
.v280h-sidebox .v280h-btn{
  width:100%;
  min-height:41px;
  margin-top:7px;
}
.v280h-sidebox .v280h-btn.primary{font-weight:850}

/* Sous-navigation d’hospitalisation : navigation clinique, pas des CTA */
.v280h-subtabs,.v280h-care-subtabs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:12px;
}
.v280h-subtabs button,.v280h-care-subtabs button,.v280h-mode button{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d6e1e8;
  border-radius:9px;
  background:#fff;
  padding:7px 12px;
  color:#50697b;
  font:inherit;
  font-size:12.5px;
  font-weight:780;
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.v280h-subtabs button:hover,.v280h-care-subtabs button:hover,.v280h-mode button:hover:not(:disabled){
  border-color:#b9d0da;
  background:#f7fafb;
  color:#254e65;
}
.v280h-subtabs button.active,.v280h-care-subtabs button.active,.v280h-mode button.active{
  border-color:#a8ced8;
  background:var(--h-action-soft);
  color:#145b72;
  box-shadow:inset 0 0 0 1px rgba(23,107,135,.035);
}
.v280h-mode button:disabled{opacity:.48;cursor:not-allowed}

/* Actions tertiaires du terrain : légères pour ne pas concurrencer les actions du séjour */
.v280h-mini header button,.v280h-mini li button{
  min-height:28px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  padding:4px 7px;
  color:#176b87;
  font:inherit;
  font-size:11.5px;
  font-weight:800;
  cursor:pointer;
}
.v280h-mini header button:hover,.v280h-mini li button:hover{
  border-color:#d5e5ea;
  background:#f0f7f9;
  color:#115a72;
}

/* Fermeture d’éditeur : vraie action icône, volontairement discrète */
.v280h-inline-editor>header button{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#667b8b;
  font-size:20px;
}
.v280h-inline-editor>header button:hover{border-color:#dbe5eb;background:#fff;color:#29485d}

/* Groupes d’actions : rythme commun, sans modifier la structure du dossier */
.v280h-actions{gap:7px}
.v280h-card>header>.v280h-btn{flex:0 0 auto}
.v280h-card>header>div:last-child{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}

@media(max-width:760px){
  .v280h-page .v280h-btn{min-height:40px}
  .v280h-subtabs button,.v280h-care-subtabs button,.v280h-mode button{min-height:38px}
}
