/* OUPP 3.6: readable light-on-light cards and editable absence records */
body[data-opico-season] :is(.staff-team-block,.staff-team-content,.staff-team-block-head,.staff-card,.public-staff-card) :is(strong,b,[class*="name"],[class*="leader"],[class*="fio"],summary){
  color:#1b3047!important;opacity:1!important;text-shadow:none!important;
}
body[data-opico-season] :is(.staff-team-block,.staff-team-content,.staff-team-block-head,.staff-card,.public-staff-card) :is(p,small,[class*="subtitle"],[class*="description"],[class*="count"]){
  color:#49657e!important;opacity:1!important;text-shadow:none!important;
}
body[data-opico-season] .staff-team-block-head{color:#1b3047!important;opacity:1!important;}
body[data-opico-season] .staff-team-block-head *{opacity:1!important;text-shadow:none!important;}
body[data-opico-season] .staff-team-block-head :is(strong,b,span){color:#203c54!important;}
body[data-opico-season] .staff-team-block-head .eyebrow,
body[data-opico-season] .staff-team-block-head .section-kicker{color:#a65b15!important;}
/* This class is attached to the real modal content, not to the overlay. */
body[data-opico-season] .oupp-employee-editor-wide{
  width:min(1140px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
}
body[data-opico-season] .oupp-absence-editor-layout{
  display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)!important;
  width:100%!important;min-width:0!important;align-items:start;gap:22px;
}
body[data-opico-season] .oupp-absence-editor-fields,
body[data-opico-season] .oupp-absence-editor-records{min-width:0!important;max-width:100%!important;}
body[data-opico-season] .oupp-absence-editor-records{
  max-height:min(75vh,820px);overflow-y:auto;overscroll-behavior:contain;
  color:#1f344b!important;
}
body[data-opico-season] .oupp-edit-absence-pane{
  color:#20394f!important;background:#f8fbff!important;
  border-radius:12px;padding:10px;
}
body[data-opico-season] .oupp-edit-absence-pane :is(h2,h3,h4,h5,p,span,small,strong,b,label,div,time){
  color:#223b53!important;opacity:1!important;text-shadow:none!important;
}
body[data-opico-season] .oupp-edit-absence-row{
  display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  background:#eff6fc!important;color:#20364e!important;
  border:1px solid #c5d9e9!important;border-radius:11px!important;
  box-shadow:none!important;margin:8px 0!important;padding:12px 14px!important;
}
body[data-opico-season] .oupp-edit-absence-row :not(button):not(svg):not(path){
  color:#20364e!important;opacity:1!important;text-shadow:none!important;
}
body[data-opico-season] .oupp-edit-absence-row button{
  flex:0 0 auto;margin-left:auto!important;background:#fff0f2!important;
  color:#9a2d40!important;border:1px solid #dfb7c0!important;
  border-radius:8px!important;cursor:pointer;
}
body[data-opico-season] .oupp-edit-absence-row button:hover{background:#ffe1e7!important;}
@media(max-width:850px){
  body[data-opico-season] .oupp-absence-editor-layout{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
  body[data-opico-season] .oupp-absence-editor-records{max-height:45vh;}
}

/* 3.7 modal fallback; high-specificity rules target actual classes attached by JS. */
html body[data-opico-season] .oupp-edit-absence-pane,
html body[data-opico-season] .oupp-edit-absence-pane *:not(button):not(svg):not(path) {
  color:#19354c!important;opacity:1!important;text-shadow:none!important;
}
html body[data-opico-season] .oupp-edit-absence-row {
  background:#eef6ff!important;color:#19354c!important;border-color:#c6dbe9!important;
}
html body[data-opico-season] .oupp-absence-editor-layout {
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(310px,0.9fr)!important;
  width:100%!important;align-items:start;gap:20px!important;
}
html body[data-opico-season] .oupp-employee-editor-wide {
  width:min(1150px,calc(100vw - 36px))!important;
  max-width:calc(100vw - 36px)!important;
}
@media(max-width:800px){html body[data-opico-season] .oupp-absence-editor-layout{grid-template-columns:minmax(0,1fr)!important}}
