
/* R77: EXISTING people, organization and R40 roles forms together on the ORIGINAL identity page. */
body.eptt-unified[data-page="r77-people"] .r77-tabs{
 display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;
 margin:12px 0 17px!important;padding:11px!important;
 background:linear-gradient(135deg,rgba(246,254,255,.35),rgba(214,244,255,.24))!important;
 backdrop-filter:blur(24px) saturate(1.5)!important;
 -webkit-backdrop-filter:blur(24px) saturate(1.5)!important;
 border:1px solid rgba(255,255,255,.88)!important;border-radius:20px!important;
 box-shadow:0 11px 27px rgba(24,104,166,.15),inset 0 1px 0 rgba(255,255,255,.85)!important;
}
body.eptt-unified[data-page="r77-people"] .r77-tab{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:41px!important;padding:10px 15px!important;
 border:1px solid rgba(255,255,255,.88)!important;border-radius:13px!important;
 background:rgba(244,252,255,.48)!important;
 color:#164e76!important;font-weight:850!important;font-size:14px!important;
 cursor:pointer!important;box-shadow:0 5px 13px rgba(31,115,158,.07)!important;
}
body.eptt-unified[data-page="r77-people"] .r77-tab[aria-selected="true"]{
 color:#fff!important;background:linear-gradient(113deg,rgba(17,131,211,.94),rgba(15,186,211,.85))!important;
 box-shadow:0 6px 17px rgba(18,134,204,.24)!important;
}
body.eptt-unified[data-page="r77-people"] .r77-panel{min-width:0;display:block}
body.eptt-unified[data-page="r77-people"] .r77-panel[hidden]{display:none!important}
body.eptt-unified[data-page="r77-people"] .r77-context{
 border:1px solid rgba(255,255,255,.84)!important;border-radius:16px!important;
 padding:12px 17px!important;margin:0 0 12px!important;
 background:rgba(241,252,255,.35)!important;backdrop-filter:blur(22px)!important;color:#164e74!important;
}
body.eptt-unified[data-page="r77-people"] .r77-context h2{color:#123b5c!important;font-size:19px!important;margin:0 0 5px!important}
body.eptt-unified[data-page="r77-people"] .r77-context p{font-size:13px!important;margin:0!important;color:#3a6986!important}
body.eptt-unified[data-page="r77-people"] .r77-error:empty{display:none!important}
body.eptt-unified[data-page="r77-people"] :is(.r40panel,.r40tabs,.r77-panel .card) {color:#154362!important}
body.eptt-unified[data-page="r77-people"] .r77-panel .r40tabs{margin:5px 0 12px!important}
@media(max-width:790px){
 body.eptt-unified[data-page="r77-people"] .r77-tabs{gap:7px!important;padding:8px!important}
 body.eptt-unified[data-page="r77-people"] .r77-tab{font-size:12px!important;min-height:37px!important;padding:7px 9px!important;flex:1 1 125px!important}
}


/* R77: Original identity/styles.css declares a dark root background.
   Match the exact already-live R75 photo without new assets or duplicate branding. */
html:has(body.eptt-unified[data-page="r77-people"]){
 background-image:linear-gradient(135deg,rgba(41,129,198,.06),rgba(15,111,198,.12)),url("/eptt-city-background-r75.jpg")!important;
 background-position:center center,center 48%!important;
 background-repeat:no-repeat,no-repeat!important;
 background-attachment:fixed,fixed!important;
 background-size:cover,cover!important;
 background-color:#a3d6f4!important;
}
body.eptt-unified[data-page="r77-people"]{
 background:none!important;background-image:none!important;
 color:#174462!important;
}
body.eptt-unified[data-page="r77-people"] :is(.hero,.r77-tabs,.r77-context,.r77-panel .card,.r77-panel .r40panel,.r77-panel .r40-row,.eptt-relations-help){
 background:linear-gradient(137deg,rgba(248,255,255,.61),rgba(236,250,255,.40) 62%,rgba(216,242,255,.29))!important;
 border:1px solid rgba(255,255,255,.91)!important;
 -webkit-backdrop-filter:blur(26px) saturate(1.4)!important;
 backdrop-filter:blur(26px) saturate(1.4)!important;
 box-shadow:0 18px 40px rgba(11,85,144,.15),inset 0 1px 0 rgba(255,255,255,.91)!important;
 color:#173f5e!important;
}
body.eptt-unified[data-page="r77-people"] :is(.hero h1,.hero p,.r77-context h2,.r77-context p,.r77-panel h2,.r77-panel h3,.r77-panel label,.r77-panel .field span,.r77-panel .muted,.r77-panel p){
 color:#164461!important;opacity:1!important;
}
body.eptt-unified[data-page="r77-people"] .r77-panel .r40panel[hidden]{display:none!important}
body.eptt-unified[data-page="r77-people"] .r77-panel input,
body.eptt-unified[data-page="r77-people"] .r77-panel select,
body.eptt-unified[data-page="r77-people"] .r77-panel textarea{
 color:#123f5f!important;background:rgba(251,255,255,.71)!important;
 border:1px solid rgba(255,255,255,.94)!important;
}


/* R78: apply the same genuine EPTT glass and on-page tab styling to existing radioer and systemindstillinger pages. */
body.eptt-unified[data-r77-consolidated] .r77-tabs{
 display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;
 margin:12px 0 17px!important;padding:11px!important;
 background:linear-gradient(135deg,rgba(246,254,255,.42),rgba(214,244,255,.28))!important;
 backdrop-filter:blur(26px) saturate(1.35)!important;
 border:1px solid rgba(255,255,255,.89)!important;border-radius:20px!important;
}
body.eptt-unified[data-r77-consolidated] .r77-tab{
 min-height:40px!important;padding:9px 15px!important;
 border:1px solid rgba(255,255,255,.90)!important;border-radius:12px!important;
 background:rgba(246,253,255,.65)!important;
 font-size:14px!important;color:#174e74!important;font-weight:820!important;cursor:pointer!important;
}
body.eptt-unified[data-r77-consolidated] .r77-tab[aria-selected="true"]{
 color:white!important;background:linear-gradient(112deg,rgba(17,135,211,.95),rgba(23,182,216,.85))!important;
}
body.eptt-unified[data-r77-consolidated] .r77-panel[hidden]{display:none!important}
body.eptt-unified[data-r77-consolidated] .r77-panel{min-width:0}
body.eptt-unified[data-r77-consolidated] .r77-context{
 padding:11px 17px!important;margin-bottom:13px!important;
 border:1px solid rgba(255,255,255,.82)!important;border-radius:16px!important;
 background:rgba(248,254,255,.46)!important;
 backdrop-filter:blur(21px)!important;
}
body.eptt-unified[data-r77-consolidated] .r77-context h2{font-size:19px!important;margin:0!important;color:#153f61!important}
@media(max-width:790px){
 body.eptt-unified[data-r77-consolidated] .r77-tab{font-size:12px!important;padding:7px 10px!important;flex:1 1 120px!important}
}


/* The original settings page also brings old admin-v5 root styles.
   Enforce the SAME approved R75 background/glass used throughout EPTT. */
html:has(body.eptt-unified[data-r77-consolidated="system"]){
 background-image:linear-gradient(135deg,rgba(41,129,198,.06),rgba(15,111,198,.12)),url("/eptt-city-background-r75.jpg")!important;
 background-position:center center,center 48%!important;
 background-size:cover,cover!important;
 background-attachment:fixed,fixed!important;
 background-color:#a3d6f4!important;
 background-repeat:no-repeat,no-repeat!important;
}
body.eptt-unified[data-r77-consolidated="system"]{
 background:transparent!important;
 background-image:none!important;
 color:#173f5f!important;
}
body.eptt-unified[data-r77-consolidated="system"] :is(.hero,.r77-tabs,.r77-context,.r77-panel .card,.r77-panel .status,.r77-panel .r40-panel){
 background:linear-gradient(137deg,rgba(247,254,255,.58),rgba(234,249,255,.40) 62%,rgba(216,241,252,.28))!important;
 border:1px solid rgba(255,255,255,.9)!important;
 -webkit-backdrop-filter:blur(25px) saturate(1.3)!important;
 backdrop-filter:blur(25px) saturate(1.3)!important;
 box-shadow:0 13px 38px rgba(13,90,144,.14),inset 0 1px 0 rgba(255,255,255,.85)!important;
 color:#15405f!important;
}
body.eptt-unified[data-r77-consolidated="system"] :is(.hero h1,.hero p,.r77-panel h2,.r77-panel h3,.r77-panel p,.r77-context h2,.r77-context p){
 color:#153f5d!important;
 opacity:1!important;
}


/* R79: preserve one page for communication/voice plus a real existing Dispatch destination. */
body.eptt-unified[data-r77-consolidated="communication"] .r79-dispatch-link{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:40px!important;padding:9px 15px!important;
 background:rgba(246,253,255,.52)!important;border:1px solid rgba(255,255,255,.88)!important;
 border-radius:12px!important;color:#15527c!important;
 text-decoration:none!important;font-size:13px!important;font-weight:820!important;
}
body.eptt-unified[data-r77-consolidated="communication"] .r79-dispatch-link:hover{
 background:rgba(255,255,255,.80)!important;
}


/* R81: original Kanalregister and original R40 rights forms on the EXISTING channels.html.
   TEA2 approved R75 photo and readable translucent GLASS across both original parts. */
html:has(body.eptt-unified[data-r77-consolidated="channels"]){
 background-image:linear-gradient(135deg,rgba(41,129,198,.06),rgba(15,111,198,.12)),url("/eptt-city-background-r75.jpg")!important;
 background-size:cover,cover!important;background-attachment:fixed,fixed!important;
 background-position:center center,center 48%!important;background-color:#a3d6f4!important;
 background-repeat:no-repeat,no-repeat!important;
}
body.eptt-unified[data-r77-consolidated="channels"]{
 background:transparent!important;background-image:none!important;
 color:#153d5d!important;
}
body.eptt-unified[data-r77-consolidated="channels"] :is(.r77-tabs,.r81-explanation,.r77-panel .card,.r77-panel .module-hero,.r77-panel .channel-list,.r77-panel .toolbar,.r77-panel .r40-row){
 background:linear-gradient(137deg,rgba(248,255,255,.59),rgba(231,249,255,.40),rgba(215,240,253,.27))!important;
 border:1px solid rgba(255,255,255,.87)!important;
 backdrop-filter:blur(25px) saturate(1.3)!important;
 -webkit-backdrop-filter:blur(25px) saturate(1.3)!important;
 box-shadow:0 15px 41px rgba(17,91,146,.14),inset 0 1px 0 rgba(255,255,255,.88)!important;
 color:#123c5c!important;
}
body.eptt-unified[data-r77-consolidated="channels"] :is(.r77-panel h1,.r77-panel h2,.r77-panel h3,.r77-panel p,.r77-panel label,.r77-panel .field span){
 color:#174360!important;opacity:1!important;
}
body.eptt-unified[data-r77-consolidated="channels"] .r77-panel[hidden]{display:none!important}
body.eptt-unified[data-r77-consolidated="channels"] .r81-explanation{
 margin:-4px 0 13px!important;padding:12px 18px!important;border-radius:14px!important;
 font-size:13px!important;font-weight:650!important;
}
body.eptt-unified[data-r77-consolidated="channels"] .r77-panel input,
body.eptt-unified[data-r77-consolidated="channels"] .r77-panel select,
body.eptt-unified[data-r77-consolidated="channels"] .r77-panel textarea{
 color:#15435f!important;background:rgba(249,254,255,.72)!important;
 border:1px solid rgba(255,255,255,.89)!important;
}


/* R82: R77 original R40 people org tables must scroll INSIDE their glass cards on phones,
   never force the browser to enlarge mobile viewport to an 800px-wide desktop layout. */
@media(max-width:790px){
 html:has(body.eptt-unified[data-page="r77-people"]){
  width:100%!important;max-width:100%!important;overflow-x:hidden!important
 }
 body.eptt-unified[data-page="r77-people"]{
  min-width:0!important;width:100%!important;max-width:100%!important;
  overflow-x:hidden!important;
 }
 body.eptt-unified[data-page="r77-people"] > main.shell{
  min-width:0!important;
  width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;
  margin-left:12px!important;margin-right:12px!important;
  padding-left:0!important;padding-right:0!important;
  box-sizing:border-box!important;
 }
 body.eptt-unified[data-page="r77-people"] .r77-panel,
 body.eptt-unified[data-page="r77-people"] .r77-panel > *{
  min-width:0!important;max-width:100%!important;
  box-sizing:border-box!important;
 }
 body.eptt-unified[data-page="r77-people"] .r77-panel .grid.g2,
 body.eptt-unified[data-page="r77-people"] .r77-panel .grid.two{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  min-width:0!important;max-width:100%!important;
 }
 body.eptt-unified[data-page="r77-people"] .r77-panel .card,
 body.eptt-unified[data-page="r77-people"] .r77-panel :is(input,select,textarea){
  min-width:0!important;max-width:100%!important;
  box-sizing:border-box!important;
 }
 body.eptt-unified[data-page="r77-people"] .r77-panel .table-wrap{
  display:block!important;min-width:0!important;
  width:100%!important;max-width:100%!important;
  overflow-x:auto!important;
  overscroll-behavior-x:contain!important;
 }
 body.eptt-unified[data-page="r77-people"] .r77-panel .table-wrap table{
  width:max-content!important;min-width:590px!important;
  max-width:none!important;
 }
 body.eptt-unified[data-page="r77-people"] .r77-panel .radio-actions{
  display:flex!important;flex-wrap:wrap!important;min-width:0!important;
 }
}
