/* Preserve the original Personal Information card; align its neighboring column. */
.profile-modules{grid-template-columns:repeat(3,minmax(0,430px));gap:22px;align-items:start}
.profile-side-panels{margin:12px 0 0;display:grid;gap:18px;align-content:start;min-width:0}
.profile-side-panels>.profile-panel{margin:0;width:100%;min-width:0}
.profile-side-panels .uniform-entry{align-items:center}.profile-side-panels .uniform-entry>span:last-child{flex:none}
@media(max-width:1000px){.profile-modules{grid-template-columns:1fr}.profile-side-panels{margin-top:0}}
@media(min-width:1001px) and (max-width:1350px){.profile-modules{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Leave enough room for both email addresses and the original login ID. */
@media(min-width:1101px){
.employee-admin-page .employee-table{min-width:1280px}
.employee-admin-page .employee-table .employee-col-code{width:4%}.employee-admin-page .employee-table .employee-col-position{width:7%}.employee-admin-page .employee-table .employee-col-name{width:9%}.employee-admin-page .employee-table .employee-col-nickname{width:5%}.employee-admin-page .employee-table .employee-col-eid{width:5%}.employee-admin-page .employee-table .employee-col-phone{width:7%}.employee-admin-page .employee-table .employee-col-email{width:12%}.employee-admin-page .employee-table .employee-col-company-email{width:12%}.employee-admin-page .employee-table .employee-col-discord{width:10%}.employee-admin-page .employee-table .employee-col-login{width:13%}.employee-admin-page .employee-table .employee-col-attach,.employee-admin-page .employee-table .employee-col-detach{width:4%}.employee-admin-page .employee-table .employee-col-spotter{width:3%}.employee-admin-page .employee-table .employee-col-order{width:5%}
}
@media(max-width:1100px){.employee-admin-page .employee-table td:nth-child(10){grid-column:1/-1}}

.profile-side-panels .info-card .uniform-entry strong{font-size:inherit}
.portal-link-chevron{flex:none;width:18px;height:18px;align-self:center;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#aabde8;transition:transform .15s ease}
.uniform-entry:hover .portal-link-chevron{transform:translateX(3px)}

@media(min-width:761px){body:not(.employee-admin-page) .profile-shell{max-width:none}}

/* Each Profile column stacks independently so taller neighbors cannot create gaps. */
.profile-dashboard.profile-modules{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:12px;align-items:start}
.profile-dashboard .profile-personal-column,.profile-dashboard .profile-side-panels,.profile-dashboard .profile-activity-panels{display:grid;gap:18px;margin:0;min-width:0;align-content:start}
.profile-dashboard .personal-panel{margin:0;width:100%;max-width:none;min-width:0}
.profile-dashboard.profile-modules{row-gap:18px}
@media(min-width:1351px){
 .profile-dashboard.profile-modules{align-items:stretch}
 .profile-dashboard .profile-personal-column,.profile-dashboard .profile-side-panels{grid-template-rows:auto 1fr;align-content:stretch}
 .profile-dashboard .profile-activity-panels{display:flex;align-items:stretch}
 .profile-dashboard .attendance-card{flex:1;display:flex;flex-direction:column}
 .profile-dashboard .attendance-calendar{margin-top:12px}
 .profile-dashboard .attendance-calendar-header{margin-bottom:14px}
 .profile-dashboard .attendance-calendar-day{min-height:35px;padding-top:4px;padding-bottom:4px}
 .profile-dashboard .attendance-card .attendance-new{margin-top:auto}
}
@media(max-width:1350px){.profile-dashboard.profile-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-dashboard .profile-activity-panels{grid-column:1/-1}}
@media(max-width:850px){.profile-dashboard.profile-modules{grid-template-columns:1fr}.profile-dashboard .profile-activity-panels{grid-column:auto}}

/* Keep resource columns readable on wide monitors, without stretching cards to match neighbors. */
.profile-dashboard.profile-modules{max-width:1260px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,340px);align-items:start}
.profile-dashboard .profile-personal-column,.profile-dashboard .profile-side-panels{grid-template-rows:auto;align-content:start}
.profile-dashboard .profile-activity-panels{display:grid;align-items:start}
.profile-dashboard .attendance-card{display:block}
.profile-dashboard .attendance-calendar{margin-top:10px}
.profile-dashboard .attendance-calendar-header{margin-bottom:8px}
.profile-dashboard .attendance-calendar-day{min-height:30px;padding:3px;font-size:11px}
.profile-dashboard .attendance-card .attendance-new{margin-top:12px}
.profile-dashboard .attendance-mini-legend{margin:10px 0;font-size:10px;gap:10px}
.profile-dashboard .attendance-monthly-entry{padding:10px 0}
.info-shell #insurance,.info-shell #cto{max-width:900px;width:100%;box-sizing:border-box}
.info-shell .cto-table{table-layout:fixed;min-width:500px}
.info-shell .cto-table th,.info-shell .cto-table td{padding:12px 14px}
.info-shell .cto-table thead th:first-child{width:30%}
.info-shell .cto-table thead th:nth-child(2){width:38%}
@media(max-width:1350px){.profile-dashboard.profile-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-dashboard .profile-activity-panels{grid-column:1/-1;max-width:340px;width:100%}}
@media(max-width:850px){.profile-dashboard.profile-modules{grid-template-columns:minmax(0,1fr)}.profile-dashboard .profile-activity-panels{grid-column:auto}}
.profile-dashboard .attendance-calendar-day{box-sizing:border-box;height:32px;min-height:32px;gap:2px}
.profile-dashboard .attendance-calendar-header{margin-bottom:6px}
.profile-dashboard .attendance-card .profile-panel-title{padding-bottom:10px}
.profile-dashboard .attendance-card .attendance-mini-legend{padding-top:8px;margin:8px 0}
.profile-dashboard .attendance-card .attendance-new{padding-top:10px;margin-top:10px}

.profile-dashboard .attendance-overview{margin-top:8px;padding:11px 9px 9px}
.profile-dashboard .overview-heading>strong{font-size:14px}
.profile-dashboard .overview-columns{gap:3px}
.profile-dashboard .overview-month{font-size:8px}
.profile-dashboard .overview-axis,.profile-dashboard .overview-track{height:95px}
.profile-dashboard .overview-legend{margin-bottom:20px;font-size:8px;gap:10px}
.profile-dashboard .attendance-card .attendance-new{margin-top:12px}

/* Scale the Profile attendance panel to the supplied wide desktop frame. */
@media(min-width:1351px){
 .profile-dashboard.profile-modules{max-width:1544px;grid-template-columns:minmax(0,430px) minmax(0,430px) minmax(0,640px);align-items:stretch}
 .profile-dashboard .profile-activity-panels{display:flex;align-items:stretch}
 .profile-dashboard .attendance-card{display:flex;flex:1;flex-direction:column;min-height:530px}
 .profile-dashboard .attendance-overview{flex:1;display:flex;flex-direction:column;padding:18px 18px 12px;margin-top:12px}
 .profile-dashboard .overview-heading>strong{font-size:20px}
 .profile-dashboard .overview-legend{font-size:11px;margin:14px 0 26px;gap:20px}
 .profile-dashboard .overview-axis,.profile-dashboard .overview-track{height:205px}
 .profile-dashboard .overview-columns{gap:9px}
 .profile-dashboard .overview-month{font-size:11px}
 .profile-dashboard .overview-stack{max-width:34px}
 .profile-dashboard .overview-bar-total{font-size:12px}
 .profile-dashboard .attendance-card .attendance-new{margin-top:16px}
}
@media(min-width:851px) and (max-width:1350px){.profile-dashboard .profile-activity-panels{max-width:640px}.profile-dashboard .overview-axis,.profile-dashboard .overview-track{height:170px}}
@media(min-width:1351px){.profile-dashboard .attendance-overview .overview-empty{position:absolute;top:58px;right:18px;margin:0;font-size:10px}}

/* Keep all 18 personnel fields readable; additional qualifications scroll within the card. */
@media(min-width:1101px){
.employee-admin-page .employee-table{width:2440px;min-width:2440px;table-layout:fixed}
.employee-admin-page .employee-table th{white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.5;height:auto;padding-top:14px;padding-bottom:14px}
.employee-admin-page .employee-table .employee-col-code{width:70px}.employee-admin-page .employee-table .employee-col-position{width:100px}.employee-admin-page .employee-table .employee-col-name{width:170px}.employee-admin-page .employee-table .employee-col-nickname{width:100px}.employee-admin-page .employee-table .employee-col-eid{width:90px}.employee-admin-page .employee-table .employee-col-phone{width:135px}.employee-admin-page .employee-table .employee-col-email,.employee-admin-page .employee-table .employee-col-company-email,.employee-admin-page .employee-table .employee-col-login{width:230px}.employee-admin-page .employee-table .employee-col-discord{width:180px}.employee-admin-page .employee-table .employee-col-attach,.employee-admin-page .employee-table .employee-col-detach{width:80px}.employee-admin-page .employee-table .employee-col-spotter{width:70px}.employee-admin-page .employee-table .employee-col-station,.employee-admin-page .employee-table .employee-col-account{width:90px}.employee-admin-page .employee-table .employee-col-pbb-id{width:140px}.employee-admin-page .employee-table .employee-col-pbb-expiry{width:160px}.employee-admin-page .employee-table .employee-col-order{width:90px}
.employee-admin-page .employee-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.employee-admin-page .employee-table input,.employee-admin-page .employee-table select{min-width:0;max-width:100%}
}

.employee-admin-page .employee-admin-shell{max-width:none}

.employee-pbb-settings{min-width:0}.employee-pbb-settings summary{cursor:pointer;padding:10px 8px;color:#9dceff;white-space:nowrap;border:1px solid #345371;border-radius:7px;background:#10283f}.employee-pbb-fields{display:grid;gap:12px;padding:14px 2px 4px;min-width:0}.employee-pbb-fields label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;font-size:11px;color:#a9c5df}.employee-pbb-fields input:not([type=checkbox]){width:100%;min-width:0}.employee-pbb-fields input[type=checkbox]{width:18px;height:18px;margin:0}
@media(min-width:1101px){.employee-admin-page .employee-table{width:2200px;min-width:2200px}.employee-admin-page .employee-table .employee-col-pbb{width:200px}}
