.route-board{max-width:74rem;margin:0 auto}.route-board details{border-bottom:1px solid #dce7e7;padding:0 0 1rem;margin-bottom:1rem}.route-board summary{cursor:pointer;font-weight:650}.route-board [data-teams]{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.75rem}.route-filter{display:flex;gap:.75rem;align-items:end}.route-filter label:first-child{flex:1}.route-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid #dce7e7}.route-row small,.route-performance small{display:block;color:#536c71;margin-top:.2rem}.route-name{background:transparent;color:#105d67;border:0;text-align:left;padding:0;font-weight:700;overflow-wrap:anywhere}.route-empty{padding:1.25rem 0}.route-dialog label{display:grid;gap:.35rem;margin-bottom:.8rem}.route-members{display:flex;flex-wrap:wrap;gap:.5rem 1rem}.route-members label{display:flex;align-items:center}.route-members input{width:auto}.route-note,.route-performance{background:#fff6ef;color:#633820;border-radius:.7rem;padding:.9rem}.route-performance p{margin:.25rem 0}.route-performance>div:not(:first-child){padding:.45rem 0}.route-dialog output{color:#923c22}.route-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem}.route-dialog .customer-editor-body{display:grid;gap:.5rem}@media(max-width:640px){.route-row{grid-template-columns:minmax(0,1fr) auto;gap:.5rem}.route-row>div:first-child{grid-column:1/-1}.route-filter{flex-wrap:wrap}.route-filter label:first-child{flex-basis:100%}}

/* Customer allocation and account access use the same compact directory layout. */
.rb-page,.manage.am-page{max-width:78rem;margin-inline:auto;width:100%;min-width:0;color:#193b3b}
.rb-page{display:grid;gap:1rem}
.rb-queues,.am-tools{display:grid;gap:.65rem;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr))}
.rb-queue,.am-tools details.card{margin:0;background:#fff;border:1px solid #d6e4e0;border-radius:13px;box-shadow:0 3px 12px #173e3808}
.rb-queue{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem 1.15rem;color:#386062;font-weight:650;text-align:left}
.rb-queue b{font-size:1.45rem;font-variant-numeric:tabular-nums}
.rb-queue[aria-pressed=true],.am-profile{background:#124e50;color:white;border-color:#124e50}
.rb-queue:hover,.rb-assign:hover,.am-switch button:hover,.am-account:hover{box-shadow:inset 0 0 0 1px #4e8c82}
.rb-work,.am-directory,.rb-teams{background:#fff;border:1px solid #d6e4e0;border-radius:16px;overflow-wrap:anywhere;box-shadow:0 4px 18px #173e3809;min-width:0}
.rb-title,.am-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid #dfebe7}
.rb-title h2,.am-title h2,.am-profile h3{margin:0;font-size:1.2rem;line-height:1.3;color:inherit}
.rb-title span,.am-count,.am-title p,.am-details small,.am-account small{color:#4f6c68;font-size:.84rem}
.rb-title span{font-variant-numeric:tabular-nums}
.rb-page .route-filter{padding:1rem 1.25rem;background:#f4f8f6;flex-wrap:wrap;border-bottom:1px solid #dce8e2}
.rb-page .route-filter label{min-width:0;display:grid;gap:.3rem;font-size:.82rem;font-weight:650}
.rb-page .route-filter input,.rb-page .route-filter select,.am-selector :is(input,select){width:100%;min-width:0;background:white;color:#173e3b}
.rb-page .route-filter label:first-child{flex:2 1 13rem}
.rb-page .route-filter label:nth-child(2){flex:1 1 10rem}
.rb-page .route-row{margin-inline:1.25rem;padding:.85rem 0;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(5.5rem,auto)}
.rb-client,.am-account{display:flex;align-items:center;gap:.75rem;min-width:0}
.am-avatar{background:#e2eeea;color:#215e52;border-radius:12px;width:2.55rem;height:2.55rem;flex:0 0 auto;display:grid;place-items:center;font-size:.81rem;font-weight:750}
.rb-client>div,.rb-owner{min-width:0}
.rb-owner strong{font-size:.88rem}.rb-owner small{font-size:.78rem}
.rb-owner .rb-pending,.rb-wait{color:#805717}
.rb-action{justify-self:end;text-align:end}
.rb-assign{background:#eff7f3;border:1px solid #c1d8ce;color:#195b4b;min-height:2.4rem}
.rb-page [data-next]{display:block;margin:.85rem auto}.rb-page [data-next][hidden]{display:none}
.rb-page .route-empty,.am-empty{margin:0;padding:1.5rem;color:#57716a}
.rb-page details.rb-teams{margin:0;padding:.85rem 1.25rem}
.rb-teams [data-team]{display:grid;gap:.15rem;text-align:left}.rb-teams [data-team] small{font-weight:400}
.am-page{display:flex;flex-direction:column;gap:.9rem}
.am-tools{align-items:start}
.am-page .am-tools details{padding:0;margin:0}
.am-page .am-tools summary{padding:.9rem;cursor:pointer;font-size:.91rem}
.am-tools summary svg{display:inline-block;width:1.1rem;height:1.1rem;vertical-align:middle;margin-right:.4rem;color:#267167}
.am-tools details[open]{grid-column:1/-1}
.am-tools details[open]>:not(summary){margin:0 1rem .95rem}
.am-units{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0}
.am-units li{padding:.3rem .55rem;background:#edf4f0;border-radius:7px;font-size:.83rem}
.am-title{flex-wrap:wrap}.am-title p{margin:.3rem 0 0}
.am-switch{display:flex;align-items:center;flex-wrap:wrap;gap:.22rem;background:#eff4f1;border-radius:10px;padding:.22rem}
.am-switch button{border:0;border-radius:8px;background:transparent;min-height:2.25rem;padding:.4rem .7rem;color:#395b55;font-size:.85rem}
.am-switch button[aria-pressed=true]{color:#194e43;background:white;box-shadow:0 1px 5px #183e3726;font-weight:700}
.am-split{display:grid;grid-template-columns:minmax(12rem,25%) minmax(0,1fr)}
.am-roster{padding:.9rem;background:#f5f8f6;border-right:1px solid #dce7e1;border-radius:0 0 0 16px;min-width:0}
.am-selector label{display:grid;gap:.3rem;font-size:.85rem;font-weight:650}
.am-roster [data-roster]{max-height:33rem;overflow-y:auto;scrollbar-width:thin}
.am-count{margin:.8rem .2rem .4rem}
.am-account{width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:11px;padding:.5rem;color:#24473e}
.am-account[aria-pressed=true]{background:#fff;border-color:#a2c8b8;box-shadow:inset 3px 0 #297768}
.am-account span:last-child{min-width:0}.am-account small,.am-account b,.am-facts small,.am-permissions small{display:block}
.am-account b{overflow-wrap:anywhere}.am-details{min-width:0;padding:1rem}
.am-profile{border-radius:12px;display:flex;align-items:center;gap:.85rem;padding:1rem 1.15rem}
.am-profile>div{flex:1;min-width:0}.am-profile p{margin:.2rem 0 0;color:#d5e9e2;font-size:.86rem}
.am-profile i,.am-permissions i{display:grid;place-items:center;flex:none}
.am-profile i{background:#ffffff17;border:1px solid #ffffff30;border-radius:11px;width:2.65rem;height:2.65rem}
.am-profile svg,.am-permissions svg{width:1.2rem;height:1.2rem}
.am-facts{display:flex;gap:1.8rem;flex-wrap:wrap;margin:.85rem 0}.am-facts b{font-size:.94rem}
.am-scope{margin:.65rem 0;padding:.55rem .75rem;border-left:3px solid #97c4ae;background:#f0f6f2;font-size:.82rem;color:#35594b}
.am-tabs{width:fit-content;margin:.8rem 0}
.am-permissions{padding:0;margin:.35rem 0 0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.2rem}
.am-permissions li{display:flex;align-items:center;gap:.6rem;min-width:0;padding:.75rem 0;border-bottom:1px solid #e3ebe6}
.am-permissions li>div{min-width:0;flex:1}.am-permissions b{font-size:.9rem}.am-permissions small{font-size:.79rem;line-height:1.36;margin-top:.18rem}
.am-permissions i{width:1.75rem;height:1.75rem;color:#447569}
.am-status{display:inline-flex;align-items:center;gap:.3rem;background:#f0f2f1;border-radius:99px;white-space:nowrap;color:#51645b;font-size:.72rem;font-weight:650;padding:.2rem .47rem}
.am-status.is-on{background:#dff1e7;color:#215f41}
.am-page :focus-visible,.rb-page :focus-visible{outline:3px solid #177b87;outline-offset:2px}
@media(max-width:1040px){.am-permissions{grid-template-columns:1fr}}
@media(max-width:760px){.am-split{grid-template-columns:1fr}.am-roster{border:0;border-bottom:1px solid #dce7e1;border-radius:0}.am-roster [data-roster]{max-height:10.5rem}.rb-queue{padding:.7rem}.rb-queues{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.rb-queue{display:grid;align-content:space-between;line-height:1.25}.rb-queue span{font-size:.78rem}.rb-queue b{font-size:1.2rem}}
@media(max-width:640px){.rb-page .route-row{grid-template-columns:minmax(0,1fr) auto;gap:.5rem;margin-inline:.8rem}.rb-page .rb-client{grid-column:1/-1}.rb-owner{padding-left:3.25rem}.rb-title,.am-title,.rb-page .route-filter,.am-details,.am-roster{padding:.8rem}.rb-page .route-filter label:first-child{flex-basis:100%}.am-title{align-items:start;gap:.6rem}.am-switch button{padding:.4rem .5rem;font-size:.81rem}.am-tools{grid-template-columns:1fr}.am-profile{padding:.75rem}.am-facts{gap:1rem}.am-account{min-height:2.7rem}.am-roster [data-roster]{max-height:9rem}.am-status{font-size:.7rem}}


.rb-work>.rb-title,.am-directory>.am-title{position:static;min-height:0;margin:0;background:#fff;color:#173b38;border-radius:16px 16px 0 0}
.rb-page .route-filter{margin:0}
.rb-page .route-name{min-height:1.9rem}
.am-account{justify-content:flex-start}
.am-mobile-menu{display:none}
@media(max-width:640px){
  body.signed-in:has(.rb-page,.am-page) .top>.am-mobile-menu{display:block;margin-left:auto;color:white;background:#ffffff18;border:1px solid #ffffff45;min-height:2.25rem;padding:.4rem .85rem}
  body.signed-in:has(.rb-page,.am-page) .top>.am-mobile-menu[aria-expanded=false]+#nav{display:none!important}
  .am-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.am-page .am-tools summary{padding:.65rem;font-size:.82rem}
}


.am-settings-toggle{display:none}.am-facts{align-items:center}.am-facts button{margin-left:auto;font-size:.85rem}
@media(max-width:640px){
  .am-settings-toggle{display:flex;justify-content:space-between;align-items:center;min-height:2.5rem;background:#fff;color:#21564b}
  .am-settings-toggle::after{content:'⌄'}.am-settings-toggle[aria-expanded=true]::after{content:'⌃'}
  .am-settings-toggle[aria-expanded=false]+.am-tools{display:none}
}

/* Ofis screen scale is independent of the browser and printed documents. */
@media screen{body{zoom:.8}}
.pa-editor{width:min(45rem,94%);max-height:min(85dvh,60rem);padding:0;color:#193d38}
.pa-editor>form{display:flex;flex-direction:column;max-height:inherit;margin:0}
.pa-editor header,.pa-editor footer{position:static;display:flex;gap:.7rem;align-items:center;justify-content:space-between;margin:0;padding:1rem 1.3rem}
.pa-editor header{background:#144d4b;color:white}.pa-editor h2,.pa-editor header p{color:inherit;margin:0}.pa-editor header p{margin-top:.2rem}
.pa-editor header button{color:white;background:transparent;border:1px solid #fff8}
.pa-body{padding:0 1.2rem .85rem;overflow:auto;min-height:0}.pa-body>p{color:#44635c}
.pa-body .am-switch{width:fit-content;margin:.7rem 0}
.pa-body fieldset{border:1px solid #d8e4de;border-radius:10px;margin:.6rem 0;padding:.35rem .65rem}
.pa-body legend{font-weight:700;padding:0 .3rem}
.pa-grid,.pa-body fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem .65rem}
.pa-editor label.pa-option{display:flex;align-items:center;gap:.6rem;min-width:0;min-height:3rem;padding:.35rem .6rem;margin:0;background:#f4f8f6;border-radius:7px}
.pa-option input[type=checkbox]{width:1.2rem;height:1.2rem;min-height:0;margin:0;accent-color:#17685d;flex:none}
.pa-editor footer{flex-wrap:wrap;border-top:1px solid #d7e4df}.pa-editor output{color:#803a23;flex:1;font-size:.86rem}
@media(max-width:640px){
 .pa-editor{max-height:94dvh}.pa-grid,.pa-body fieldset{grid-template-columns:1fr}
 .pa-editor footer,.pa-editor header{padding:.65rem .85rem}.pa-editor .pa-option{min-height:3.25rem}
 .pa-editor footer output:not(:empty){order:2;flex-basis:100%}
}
dialog.pa-editor>form>header{background:#164f50;color:white}
dialog.pa-editor>form>header h2,dialog.pa-editor>form>header p{color:white}
dialog.pa-editor>form>header [data-close]{display:grid;place-items:center;min-width:2.65rem;min-height:2.65rem;padding:0;color:white;background:#286364;border:1px solid #9ebfbb;border-radius:8px;font-size:1.4rem}

.am-person-actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.am-preview-link,.employee-preview button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.55rem .9rem;border-radius:8px;font-weight:650;text-decoration:none}
.am-preview-link{border:1px solid #88aaa3;color:#164f50;background:white}
.am-preview-link:hover,.am-preview-link:focus-visible{background:#edf6f3}
.employee-preview{position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:.65rem;margin-left:var(--rail);padding:.5rem clamp(14px,2.5vw,40px);color:#fff;background:#164f50}
.employee-preview div{display:grid;min-width:0}.employee-preview strong{overflow-wrap:anywhere}.employee-preview small{color:#d9eeea}
.employee-preview button{flex:none;color:#164f50;background:white;border:1px solid #c2dad6}
