/* Shared table layout; text-entry fields outside tables keep their original alignment. */
html body table th,html body table td{vertical-align:middle!important;text-align:center!important}
html body table :is(th,td) :is(div,p,span,strong,small,a,label){text-align:center!important}
html body table :is(th,td) :is(.actions,.table-actions,.row-actions,.ann-actions,.staff-actions,.btns,.tools){justify-content:center!important;align-items:center!important}
html body table :is(th,td) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){text-align:center!important}
html body table :is(th,td) img{margin-inline:auto}
html body table :is(th,td) :is(button,a){vertical-align:middle}
html body table :is(th,td) :is(.ann-title,.teacher-name,.student-name,.staff-name,.bk-name){text-align:center!important}
html body table :is(th,td) .ann-file{justify-content:center!important}

html body table td div{justify-content:center!important;align-items:center!important}
/* Home always targets the current department, never the external college portal. */
.portal-home-actions,.portal-modal-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.portal-home-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:9px 13px;border:1px solid var(--line,var(--l,#dce8f0));border-radius:10px;background:var(--department-soft-mid,#f6f9fc);color:var(--navy,var(--n,#173653));font:700 11px/1.2 Inter,Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;box-sizing:border-box}
.portal-home-link svg{width:16px;height:16px;flex-shrink:0}
.portal-home-link:hover{background:var(--department-soft-start,#eaf2f8);border-color:var(--blue,var(--b,#0879b9))}
.portal-home-link:focus-visible{outline:2px solid var(--blue,var(--b,#0879b9));outline-offset:3px}
.portal-login-home{display:flex;justify-content:flex-end;margin-bottom:18px}
.mhead{position:sticky;top:0;z-index:3;background:#fff;gap:12px}
.mhead .mtitle{min-width:0}.mhead .mico{flex-shrink:0}.mhead h3{overflow-wrap:anywhere}
.ann-preview-header .portal-home-link{display:inline-flex;align-items:center;gap:7px;background:var(--department-soft-mid,#f6f9fc);color:var(--navy,var(--n,#173653));border:1px solid var(--line,var(--l,#dce8f0));min-height:36px;padding:8px 11px}
@media(max-width:640px){
 body.portal-has-home-nav header{height:auto;min-height:84px;flex-wrap:wrap;gap:10px;padding:12px 16px}
 body.portal-has-home-nav header .brand{min-width:0;flex:1 1 210px}
 body.portal-has-home-nav header .brand>div:last-child{min-width:0}
 body.portal-has-home-nav header .brand h1,body.portal-has-home-nav header .brand p{overflow-wrap:anywhere}
 body.portal-has-home-nav header .logos{flex-shrink:0}
 body.portal-has-home-nav .portal-home-actions{margin-left:auto}
 .portal-home-link{min-height:36px;padding:8px 11px;font-size:10px;gap:6px}
 .portal-modal-actions{gap:6px}.mhead{padding:14px!important;gap:8px}.mhead .mtitle{gap:8px}
 .mhead h3{font-size:14px!important}.mhead p{font-size:9px!important}.mhead .mico{width:33px;height:33px;font-size:17px}
 .ann-preview-header{gap:10px;flex-wrap:wrap}.ann-preview-header .portal-modal-actions{margin-left:auto}
}

.header .hactions a[data-view-department]{display:inline-flex!important;align-items:center;white-space:nowrap}
