/* Shared staff module layout; independent of the public portal. */
.bright-tile.staff-shell .page-main .aps-module-page {width:calc(100% - 2 * var(--staff-gutter));max-width:none;min-width:0;margin-inline:auto;box-sizing:border-box;display:block;}
.staff-shell .aps-module-page .staff-page-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:clamp(16px,2vw,28px);background:var(--white);border:1px solid var(--line);border-radius:12px;margin:0 0 20px;}
.staff-shell .aps-module-page .staff-page-heading>div {min-width:0;}
.staff-shell .aps-module-page .staff-page-heading h1 {font-size:clamp(26px,3vw,38px);overflow-wrap:anywhere;}
.staff-shell .aps-module-page :is(.card-panel,.premium-tile) {padding:clamp(16px,2vw,26px);margin-block:0 16px;border:1px solid var(--line);border-radius:12px;min-width:0;box-sizing:border-box;}
.staff-shell .aps-module-page :is(.card-panel,.premium-tile)>h2 {margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:1.25rem;color:var(--bt-navy);}
.staff-shell .aps-module-page :is(.card-panel,.premium-tile)>p {max-width:100ch;line-height:1.55;}
.staff-shell .aps-module-page form {min-width:0;}
.staff-shell .aps-module-page :is(.card-panel,.premium-tile) form:not(.performance-filter) {display:flex;flex-direction:column;align-items:stretch;gap:12px;}
.staff-shell .aps-module-page label {display:block;font-weight:600;min-width:0;}
.staff-shell .aps-module-page label:has(>input:is([type=checkbox],[type=radio])) {display:flex;align-items:flex-start;gap:9px;}
.staff-shell .aps-module-page :is(input:not([type=hidden],[type=checkbox],[type=radio],[type=submit],[type=button]),select,textarea) {display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font:inherit;min-height:42px;}
.staff-shell .aps-module-page :is(input[type=checkbox],input[type=radio]) {width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;}
.staff-shell .aps-module-page form>.button {align-self:flex-start;max-width:100%;white-space:normal;}
.staff-shell .aps-module-page :is(.form-grid.two,.premium-formrow,.premium-grid) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.staff-shell .aps-module-page :is(.wf-node,details.sm-record) {border:1px solid var(--line);border-radius:10px;background:var(--white);padding:16px;min-width:0;}
.staff-shell .aps-module-page details.sm-record>summary {cursor:pointer;font-weight:700;color:var(--bt-navy);}
.staff-shell .aps-module-page details.sm-record[open]>summary {margin-bottom:16px;}
.staff-shell .aps-module-page details.sm-record>label {margin-bottom:12px;}
.staff-shell .aps-module-page :is(.table-wrap,.premium-table) {max-width:100%;}
.staff-shell .aps-module-page .premium-table {display:block;overflow-x:auto;}
.staff-shell .aps-module-page .premium-table :is(td,th) {overflow-wrap:anywhere;}
.staff-shell .aps-module-page .stats-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px;}
/* Queue: fit all status columns, and wrap on smaller screens rather than clipping. */
.bright-tile.staff-shell .queue-page .queue-stats {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.bright-tile.staff-shell .queue-page .queue-stats .stat-card {min-width:0;min-height:100px;padding:14px;overflow-wrap:anywhere;}
.bright-tile.staff-shell .queue-page .staff-page-heading {align-items:center;}
.bright-tile.staff-shell .queue-page .staff-page-heading .button-row {display:flex;flex-wrap:wrap;gap:8px;}
.bright-tile.staff-shell .queue-page .queue-toolbar {display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px;}
.bright-tile.staff-shell .queue-page .queue-filter {display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:10px;align-items:center;width:100%;}
.bright-tile.staff-shell .queue-page .queue-filter :is(input[type=search],select) {width:100%;max-width:none;min-width:0;min-height:44px;height:auto;padding:10px 12px;box-sizing:border-box;}
.bright-tile.staff-shell .queue-page .queue-filter-check {display:flex;align-items:center;gap:8px;white-space:normal;}
.bright-tile.staff-shell .queue-page .queue-filter-check input {width:17px;min-height:17px;height:17px;flex:0 0 17px;margin:0;padding:0;}
.bright-tile.staff-shell .queue-page .queue-filter .button {width:auto;justify-self:start;white-space:nowrap;}
.bright-tile.staff-shell .queue-page .queue-toolbar-meta {display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:10px;}
.bright-tile.staff-shell .queue-page .queue-saved-filters {display:flex;flex-wrap:wrap;gap:12px;}
.bright-tile.staff-shell .queue-page .queue-saved-filters form {display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;}
.bright-tile.staff-shell .queue-page .queue-board {display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;overflow:visible;align-items:start;padding:0;}
.bright-tile.staff-shell .queue-page .queue-board-priority {grid-template-columns:repeat(4,minmax(0,1fr));}
.bright-tile.staff-shell .queue-page .queue-board-column {min-width:0;min-height:130px;padding:9px;grid-template-rows:auto auto;}
.bright-tile.staff-shell .queue-page .queue-board-heading {min-height:48px;overflow-wrap:anywhere;}
.bright-tile.staff-shell .queue-page .queue-board-heading>span {flex-shrink:0;}
.bright-tile.staff-shell .queue-page .queue-ticket-card {min-width:0;padding:10px;overflow-wrap:anywhere;}
.bright-tile.staff-shell .queue-page .queue-ticket-card-top {display:flex;flex-wrap:wrap;gap:5px;}
.bright-tile.staff-shell .queue-page .queue-ticket-card-top>span {white-space:normal;max-width:100%;}
@media(max-width:1390px){.bright-tile.staff-shell .queue-page .queue-board-status {grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:1000px){.bright-tile.staff-shell .queue-page .queue-stats {grid-template-columns:repeat(3,minmax(0,1fr));}.bright-tile.staff-shell .queue-page .queue-board {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:760px){.staff-shell .aps-module-page :is(.form-grid.two,.premium-formrow,.premium-grid,.wf-flow) {grid-template-columns:1fr;}.bright-tile.staff-shell .queue-page .queue-board,.bright-tile.staff-shell .queue-page .queue-stats {grid-template-columns:repeat(2,minmax(0,1fr));}.bright-tile.staff-shell .queue-page .queue-filter {grid-template-columns:repeat(2,minmax(0,1fr));}.bright-tile.staff-shell .queue-page .queue-filter input[type=search] {grid-column:1/-1;}.bright-tile.staff-shell .queue-page .queue-toolbar-meta {justify-content:flex-start;}}
@media(max-width:480px){.bright-tile.staff-shell .queue-page .queue-board,.bright-tile.staff-shell .queue-page .queue-filter {grid-template-columns:1fr;}.bright-tile.staff-shell .queue-page .queue-saved-filters form {width:100%;}.bright-tile.staff-shell .queue-page .queue-saved-filters :is(input,select) {max-width:100%;}}
