/* v44 Side-rail layout (js/side-rail.js for the admin portal, js/staff-rail.js for the Staff Portal). */
:root{--rail-w:232px;--rail-w-collapsed:64px;--rail-bg:#222221;--rail-bg2:#2B2A28;--rail-hover:#3A3936;--rail-line:#34332F;--rail-text:#D6D1CA;--rail-muted:#8A857E;--rail-stone:#A8896D;--rail-stone-ink:#1E1A16}
@media screen{
/* ---------------- shell */
body.has-rail{padding-left:var(--rail-w);background:#EFEEEC}
body.has-rail.rail-collapsed{padding-left:var(--rail-w-collapsed)}
body.has-rail:has(#loginScreenOverlay:not(.hidden)) header.itsm-rail,body.has-rail:has(#loginScreenOverlay:not(.hidden)) .itsm-topbar{display:none!important}
body.has-rail:has(#loginScreenOverlay:not(.hidden)){padding-left:0}
html body.has-rail>header.itsm-rail{position:fixed!important;inset:0 auto 0 0;width:var(--rail-w);height:100vh;z-index:40;display:flex;flex-direction:column;background:var(--rail-bg)!important;color:var(--rail-text);border:0!important;box-shadow:none!important;margin:0!important;padding:0!important;overflow:hidden}
html body.has-rail.rail-collapsed>header.itsm-rail{width:var(--rail-w-collapsed)} /* v57: must beat the html body rule above, or Collapse menu does nothing */
.itsm-rail .rail-brand{padding:14px 12px 12px;border-bottom:1px solid var(--rail-line)}
.itsm-rail .rail-brand-home{display:flex;align-items:center;gap:10px;background:none;border:0;padding:4px;border-radius:8px;color:#fff;text-align:left;width:100%;cursor:pointer}
.itsm-rail .rail-brand-home:hover{background:var(--rail-hover)}
.itsm-rail .rail-brand-home img{height:34px;width:auto;flex:none}
.itsm-rail .rail-brand-home b{display:block;font-weight:500;font-size:15px;line-height:1.2;color:#fff}
.itsm-rail .rail-brand-home small{display:block;font-size:11px;color:var(--rail-muted);white-space:nowrap}
html body header.itsm-rail nav.rail-nav{display:flex!important;flex-direction:column;gap:1px;padding:8px 10px!important;margin:0!important;border:0!important;width:auto!important;flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#45433F transparent}
.itsm-rail .rail-sec{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--rail-muted);margin:14px 10px 4px;font-weight:500;white-space:nowrap}
.itsm-rail .rail-sec[hidden]{display:none}
html body header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden){display:flex!important;align-items:center;gap:11px;width:100%;height:auto!important;min-height:38px!important;padding:8px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--rail-text)!important;font-size:13.5px!important;font-weight:400!important;text-align:left;white-space:nowrap;box-shadow:none!important;position:relative;transform:none!important}
html body header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden):hover{background:var(--rail-hover)!important;color:#fff!important}
html body header.itsm-rail nav.rail-nav button[id^="tabBtn-"].bg-indigo-600{background:var(--rail-stone)!important;color:var(--rail-stone-ink)!important;font-weight:500!important}
html body header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:focus-visible{outline:2px solid var(--rail-stone);outline-offset:1px}
.itsm-rail .rail-icon{order:-1;width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6;flex:none}
.itsm-rail .rail-label{overflow:hidden;text-overflow:ellipsis}
.itsm-rail .rail-count{margin-left:auto;min-width:20px;height:19px;padding:0 6px;border-radius:999px;background:#B3261E;color:#fff;font-size:11px;font-weight:500;display:inline-grid;place-items:center}
.itsm-rail .rail-count[hidden]{display:none}
html body header.itsm-rail nav.rail-nav button.bg-indigo-600 .rail-count{background:var(--rail-stone-ink)}
.itsm-rail .rail-foot{border-top:1px solid var(--rail-line);padding:10px;display:grid;gap:8px}
.itsm-rail .rail-status{display:flex;flex-wrap:wrap;gap:6px}
html body .itsm-rail .rail-status>span{height:auto!important;min-height:24px;padding:3px 9px!important;border-radius:999px!important;font-size:11.5px!important;white-space:normal!important;line-height:1.3}
.itsm-rail .rail-account{position:relative}
html body .itsm-rail .rail-account>summary{display:flex!important;align-items:center;gap:10px;width:100%;min-height:46px!important;height:auto!important;padding:7px 8px!important;border-radius:9px!important;background:var(--rail-bg2)!important;border:1px solid var(--rail-line)!important;color:#fff!important;font-size:12.5px!important;cursor:pointer;list-style:none;text-align:left;white-space:normal}
.itsm-rail .rail-account>summary::-webkit-details-marker{display:none}
.itsm-rail .rail-account #headerRoleBadge{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.itsm-rail .rail-account #headerRoleBadge svg{display:none}
.itsm-rail .rail-avatar{width:30px;height:30px;border-radius:50%;background:var(--rail-stone);color:var(--rail-stone-ink);display:grid;place-items:center;font-weight:500;font-size:12px;flex:none}
html body .itsm-rail .rail-account .portal-appearance-menu{position:absolute!important;top:auto!important;bottom:calc(100% + 6px)!important;left:0!important;right:auto!important;margin:0!important;min-width:220px;z-index:60}
.itsm-rail .rail-collapse{display:flex;align-items:center;justify-content:center;gap:8px;background:none;border:1px solid #45433F;color:var(--rail-text);border-radius:8px;padding:6px;font-size:12px;cursor:pointer}
.itsm-rail .rail-collapse:hover{background:var(--rail-hover)}
.itsm-rail .rail-collapse .rail-icon{width:14px;height:14px;transition:transform .15s}
body.rail-collapsed .itsm-rail .rail-collapse .rail-icon{transform:rotate(180deg)}
/* collapsed: icons only */
body.rail-collapsed .itsm-rail :is(.rail-brand-home span,.rail-sec,.rail-label,.rail-status,#headerRoleBadge){display:none!important}
body.rail-collapsed .itsm-rail .rail-brand-home{justify-content:center}
html body.rail-collapsed header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden){justify-content:center;padding:9px 0!important}
body.rail-collapsed .itsm-rail .rail-count{position:absolute;top:2px;right:4px;min-width:16px;height:16px;font-size:10px;padding:0 4px}
html body.rail-collapsed .itsm-rail .rail-account>summary{justify-content:center;background:none!important;border:0!important}
body.rail-collapsed .itsm-rail .rail-sec+button{margin-top:10px}
/* ---------------- main + top bar */
html body.has-rail>main{max-width:none!important;width:auto!important;margin:0!important;padding:0 24px 32px!important}
.itsm-topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;margin:0 -24px 18px;padding:10px 24px;min-height:62px;background:#fff;border-bottom:1px solid #E2DFDA}
.itsm-topbar .topbar-menu{display:none;width:38px;height:36px;border:1px solid #D7D2CB;border-radius:8px;background:#fff;color:#232323;place-items:center;flex:none}
.itsm-topbar .topbar-menu svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.itsm-topbar .topbar-title{min-width:0}
.itsm-topbar .topbar-crumb{display:block;font-size:11.5px;color:#8A857E;line-height:1.2}
html body .itsm-topbar .topbar-h1{margin:0;font-size:19px!important;font-weight:500!important;line-height:1.25;color:#232323;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.itsm-topbar .topbar-search{position:relative;flex:1;max-width:440px;margin-left:auto}
.itsm-topbar .topbar-search-box{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-radius:9px;background:#F3F1EE;border:1px solid transparent;color:#8A857E}
.itsm-topbar .topbar-search-box:focus-within{background:#fff;border-color:#A8896D;box-shadow:0 0 0 3px rgba(168,137,109,.18)}
.itsm-topbar .topbar-search-box svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;flex:none}
html body .itsm-topbar .topbar-search input{flex:1;min-width:0;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;height:34px;padding:0!important;color:#232323;font-size:13.5px}
.itsm-topbar kbd{font:11px var(--font-family,inherit);border:1px solid #D7D2CB;border-radius:4px;padding:0 5px;color:#8A857E;white-space:nowrap}
.itsm-topbar .topbar-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #E2DFDA;border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.16);padding:6px;max-height:min(70vh,520px);overflow:auto;z-index:70}
.itsm-topbar .topbar-results[hidden]{display:none}
.itsm-topbar .topbar-hit{display:grid;grid-template-columns:auto 1fr;gap:1px 10px;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;cursor:pointer;color:#232323}
.itsm-topbar .topbar-hit:hover,.itsm-topbar .topbar-hit.is-active{background:#F6F1EB}
.itsm-topbar .topbar-hit-kind{grid-row:span 2;align-self:center;font-size:10.5px;font-weight:500;color:#6C482E;background:#F3EDE6;border-radius:6px;padding:3px 7px;white-space:nowrap}
.itsm-topbar .topbar-hit b{font-weight:500;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.itsm-topbar .topbar-hit small{font-size:11.5px;color:#8A857E;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.itsm-topbar .topbar-hit-note{margin:0;padding:10px;font-size:12.5px;color:#8A857E}
.itsm-topbar .topbar-tools{display:flex;align-items:center;gap:8px;flex:none}
html body .itsm-topbar .portal-header-control{height:38px!important;min-height:38px!important;padding:0 12px!important;border-radius:9px!important;border:1px solid #D7D2CB!important;background:#fff!important;color:#55524D!important;font-size:13px!important;display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}
html body .itsm-topbar .portal-header-control:hover{background:#F6F1EB!important;border-color:#A8896D!important;color:#232323!important}
html body .itsm-topbar #mobileContextActions{display:none!important}
.itsm-topbar .portal-appearance{position:relative}
html body .itsm-topbar .portal-appearance-menu{position:absolute!important;top:calc(100% + 6px)!important;right:0!important;left:auto!important;margin:0!important;z-index:60}
.rail-scrim{position:fixed;inset:0;background:rgba(20,18,16,.45);z-index:39}
.rail-scrim[hidden]{display:none}
/* page polish (same look as the preview) */
body.has-rail .itsm-credit{padding-bottom:12px}
/* ---------------- phones and small tablets: rail becomes a drawer */
@media (max-width:900px){
  body.has-rail,body.has-rail.rail-collapsed{padding-left:0}
  html body.has-rail>header.itsm-rail{width:260px!important;transform:translateX(-100%);transition:transform .2s ease;box-shadow:none}
  body.has-rail.rail-open>header.itsm-rail{transform:none;box-shadow:0 0 40px rgba(0,0,0,.35)}
  body.rail-collapsed .itsm-rail :is(.rail-brand-home span,.rail-sec,.rail-label,.rail-status,#headerRoleBadge){display:revert!important}
  body.rail-collapsed .itsm-rail .rail-sec[hidden]{display:none!important}
  html body.rail-collapsed header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden){justify-content:flex-start;padding:8px 10px!important}
  body.rail-collapsed .itsm-rail .rail-count{position:static}
  .itsm-rail .rail-collapse{display:none}
  html body.has-rail>main{padding:0 14px 28px!important}
  .itsm-topbar{margin:0 -14px 14px;padding:8px 14px;gap:8px;min-height:56px}
  .itsm-topbar .topbar-menu{display:inline-grid}
  .itsm-topbar .topbar-search{max-width:none}
  .itsm-topbar .topbar-search kbd{display:none!important}
  html body .itsm-topbar #portalRefreshButton [data-refresh-label]{display:none}
  html body .itsm-topbar #mobileContextActions{display:inline-flex!important}
}
@media (max-width:600px){
  .itsm-topbar{flex-wrap:wrap}
  .itsm-topbar .topbar-title{flex:1}
  .itsm-topbar .topbar-search{order:5;flex-basis:100%;margin:0}
  html body .itsm-topbar .topbar-h1{font-size:17px!important}
}
}
@media print{header.itsm-rail,.itsm-topbar,.rail-scrim{display:none!important}body.has-rail{padding-left:0!important}}

/* ---------------- Staff Portal rail (js/staff-rail.js) */
@media screen{
body.staff-has-rail{padding-left:var(--rail-w)}
body.staff-has-rail.staff-login-active{padding-left:0}
body.staff-has-rail.staff-login-active .staff-rail,body.staff-has-rail.staff-login-active .staff-topbar{display:none!important}
.staff-rail{position:fixed;inset:0 auto 0 0;width:var(--rail-w);background:var(--rail-bg);color:var(--rail-text);display:flex;flex-direction:column;z-index:40}
.staff-rail .rail-brand{padding:14px 12px 12px;border-bottom:1px solid var(--rail-line)}
.staff-rail .rail-brand a{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;padding:4px;border-radius:8px}
.staff-rail .rail-brand img{height:34px}
.staff-rail .rail-brand b{display:block;font-weight:500;font-size:15px;line-height:1.2}
.staff-rail .rail-brand small{display:block;font-size:11px;color:var(--rail-muted)}
.staff-rail nav{display:flex;flex-direction:column;gap:1px;padding:10px;flex:1}
.staff-rail nav a{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:8px;color:var(--rail-text);text-decoration:none;font-size:13.5px}
.staff-rail nav a:hover{background:var(--rail-hover);color:#fff}
.staff-rail nav a[aria-current="page"]{background:var(--rail-stone);color:var(--rail-stone-ink);font-weight:500}
.staff-rail .rail-icon{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6;flex:none}
.staff-rail .rail-count{margin-left:auto;min-width:20px;height:19px;padding:0 6px;border-radius:999px;background:#B3261E;color:#fff;font-size:11px;font-weight:500;display:inline-grid;place-items:center}
.staff-rail .rail-count[hidden]{display:none}
.staff-rail .rail-foot{border-top:1px solid var(--rail-line);padding:10px;display:grid;gap:8px}
.staff-rail .rail-user{display:flex;align-items:center;gap:10px;padding:8px;border-radius:9px;background:var(--rail-bg2)}
.staff-rail .rail-avatar{width:30px;height:30px;border-radius:50%;background:var(--rail-stone);color:var(--rail-stone-ink);display:grid;place-items:center;font-weight:500;font-size:12px;flex:none}
.staff-rail .rail-user b{display:block;font-weight:500;font-size:12.5px;color:#fff}.staff-rail .rail-user small{display:block;font-size:11px;color:var(--rail-muted)}
html body.staff-has-rail header.staff-workspace-header{display:none!important}
.staff-topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;padding:10px 24px;min-height:62px;background:#fff;border-bottom:1px solid #E2DFDA}
.staff-topbar .topbar-menu{display:none;width:38px;height:36px;border:1px solid #D7D2CB;border-radius:8px;background:#fff;place-items:center}
.staff-topbar .topbar-menu svg{width:18px;height:18px;stroke:#232323;fill:none;stroke-width:1.8}
.staff-topbar .topbar-crumb{display:block;font-size:11.5px;color:#8A857E;line-height:1.2}
.staff-topbar .topbar-h1{margin:0;font-size:19px;font-weight:500;line-height:1.25;color:#232323}
.staff-topbar .staff-signout{margin-left:auto;height:38px;padding:0 14px;border-radius:9px;border:1px solid #D7D2CB;background:#fff;color:#55524D;cursor:pointer}
.staff-topbar .staff-signout:hover{background:#F6F1EB;border-color:#A8896D}
body.staff-has-rail main{max-width:1180px;margin:0 auto;padding:20px 24px 32px}
body.staff-has-rail main>h1#title{display:none}
body.staff-has-rail #overview .staff-tile{border-radius:12px;border:1px solid #E2DFDA;border-top:3px solid #A8896D}
@media (max-width:900px){
  body.staff-has-rail{padding-left:0}
  .staff-rail{width:260px;transform:translateX(-100%);transition:transform .2s}
  body.rail-open .staff-rail{transform:none;box-shadow:0 0 40px rgba(0,0,0,.35)}
  .staff-topbar{padding:8px 14px}
  .staff-topbar .topbar-menu{display:inline-grid}
  body.staff-has-rail main{padding:14px}
}
}
@media print{.staff-rail,.staff-topbar{display:none!important}body.staff-has-rail{padding-left:0!important}}
@media screen{
html body header.itsm-rail>.rail-brand{order:1}html body header.itsm-rail>nav.rail-nav{order:2!important}html body header.itsm-rail>.rail-foot{order:3}
html body header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden){justify-content:flex-start!important}
}
@media (max-width:900px){html body.rail-collapsed header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden){justify-content:flex-start!important}}
@media screen and (min-width:901px){html body.rail-collapsed header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden){justify-content:center!important}}
@media screen{html body header.itsm-rail nav.rail-nav button[id^="tabBtn-"]:not(.hidden){flex:0 0 auto!important;max-height:none;width:100%!important;min-width:0!important}
html body header.itsm-rail nav.rail-nav{overflow-x:hidden!important;flex-wrap:nowrap!important}
html body header.itsm-rail .rail-brand-home{min-height:0!important;height:auto!important}}
@media screen{html:has(body.staff-has-rail){background:#EFEEEC}body.staff-has-rail{background:#EFEEEC}}
body.staff-has-rail #message:empty{display:none}

/* ================= v45 ================= */
@media screen{
/* Top bar: stone row, section breadcrumb only (larger, medium weight), Sign out */
.itsm-topbar,.staff-topbar{background:#A8896D!important;border-bottom:1px solid #957659!important}
.itsm-topbar .topbar-h1{display:none!important}
.itsm-topbar .topbar-crumb,.staff-topbar .topbar-crumb{font-size:18px!important;font-weight:500;color:#1E1A16!important;line-height:1.3;white-space:nowrap}
.staff-topbar .topbar-h1{display:none}
.itsm-topbar .topbar-search-box{background:#fff!important;border-color:#fff!important}
.itsm-topbar .topbar-search-box:focus-within{border-color:#232323!important;box-shadow:0 0 0 3px rgba(35,35,35,.18)!important}
html body .itsm-topbar .portal-header-control{border-color:#fff!important;background:#fff!important;color:#232323!important}
html body .itsm-topbar .portal-header-control:hover{background:#F6F1EB!important;border-color:#232323!important}
.itsm-topbar .topbar-signout,.staff-topbar .staff-signout{height:38px;padding:0 14px;border-radius:9px;border:1px solid #232323!important;background:#232323!important;color:#fff!important;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;flex:none}
.itsm-topbar .topbar-signout:hover,.staff-topbar .staff-signout:hover{background:#3A3936!important}
.itsm-topbar .topbar-menu,.staff-topbar .topbar-menu{border-color:#fff!important}
/* Finance Report: the filter sidebar sticks below the top bar (it used the rail's height before) */
html body.has-rail #reportModal{--report-top:64px!important}
/* Stone buttons become charcoal everywhere (the selected menu item stays stone) */
:root{--accent-primary:#232323;--accent-primary-hover:#3A3936}
header.itsm-rail{--accent-primary:#4A4844;--accent-primary-hover:#5A5853}
#operationsDashboard .cc-btn-primary{background:#232323!important;border-color:#232323!important;color:#fff!important}
#operationsDashboard .cc-btn-primary:hover{background:#3A3936!important}
html body .ticket-workspace .ticket-primary,html body .ticket-workspace button[type=submit]:not(.secondary){background:#232323!important;border-color:#232323!important;color:#fff!important}
html body:has(.staff-workspace-header) :is(main,dialog,#loginScreenOverlay) :is(button,.button):not(.secondary):not([aria-label="Close"]):not(.mf-button):not(.mf-actions button):not(.staff-tile):not([data-ticket-open]){background:#232323;border-color:#232323;color:#fff}
html body:has(.staff-workspace-header) :is(main,dialog,#loginScreenOverlay) :is(button,.button):not(.secondary):not([aria-label="Close"]):not(.mf-button):not(.mf-actions button):not([data-ticket-open]):hover{background:#3A3936}
/* Add / edit dialogs: charcoal title row, larger section headings */
html body :is(#softwareFormPanel,#cloudFormPanel,#hardwareFormPanel,.record-form-panel)>div:first-child{background:#232323!important;color:#fff!important}
html body :is(#softwareFormPanel,#cloudFormPanel,#hardwareFormPanel,.record-form-panel)>div:first-child :is(h3,p,strong){color:#fff!important}
html body :is(#softwareFormPanel,#cloudFormPanel,#hardwareFormPanel,.record-form-panel)>div:first-child p{color:#D6D1CA!important}
html body :is(#softwareFormPanel,#cloudFormPanel,#hardwareFormPanel,.record-form-panel)>div:first-child h3{font-size:17px!important;font-weight:500!important}
html body :is(#softwareFormPanel,#cloudFormPanel,#hardwareFormPanel,.record-form-panel)>div:first-child .record-form-close{color:#232323!important;background:#fff!important;border-color:#fff!important} /* v72 white Close, same as the other pop-ups */
html body :is(#softwareFormPanel,#cloudFormPanel,#hardwareFormPanel,.record-form-panel)>div:first-child .record-form-close:hover{background:#F5F2EE!important}
html body .record-form-panel h4{font-size:17px!important;font-weight:600!important;color:#232323!important;padding-bottom:6px!important;border-bottom:2px solid #232323!important;margin-top:6px}
/* Multi-select filters (js/multi-filter.js) */
select.mf-native{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden}
.mf{position:relative;display:inline-block;min-width:150px;max-width:260px;vertical-align:middle}
.mf-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:36px;padding:0 10px 0 12px;border:1px solid #CBD5E1;border-radius:8px;background:#fff;color:#232323;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.mf-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mf-button svg{width:10px;height:10px;stroke:currentColor;fill:none;stroke-width:2;flex:none}
.mf.is-active .mf-button{border-color:#232323;background:#F6F1EB;font-weight:500}
.mf.is-open .mf-button{border-color:#232323;box-shadow:0 0 0 3px rgba(35,35,35,.12)}
.mf-panel{position:absolute;top:calc(100% + 4px);left:0;z-index:80;min-width:240px;max-width:320px;background:#fff;border:1px solid #E2DFDA;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.16);padding:6px}
.mf-panel.mf-right{left:auto;right:0}
.mf-panel[hidden]{display:none}
.mf-search{padding:4px 4px 6px}.mf-search[hidden]{display:none}
.mf-search input{width:100%;height:32px;border:1px solid #D7D2CB;border-radius:7px;padding:0 9px;font:inherit;font-size:13px}
.mf-list{max-height:260px;overflow:auto;display:grid;gap:1px}
.mf-option{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:7px;font-size:13px;cursor:pointer;color:#232323}
.mf-option:hover{background:#F6F1EB}
.mf-option input{width:15px;height:15px;accent-color:#232323;flex:none}
.mf-empty{margin:0;padding:8px;font-size:12.5px;color:#8A857E}
.mf-actions{display:flex;justify-content:space-between;gap:6px;border-top:1px solid #F0EDE9;margin-top:4px;padding:6px 4px 2px}
.mf-actions button{background:none!important;border:0!important;color:#6C482E!important;font:inherit;font-size:12.5px;cursor:pointer;padding:2px 4px;height:auto!important;min-height:0!important}
label .mf{display:block;max-width:none}
@media (max-width:600px){.mf{min-width:0;max-width:none;width:100%}}
}

@media screen{body.staff-has-rail.staff-home main>h1#title{display:block;font-size:22px;font-weight:500;margin:4px 0 14px}}
/* v45 Sign out icon (label hidden on phones so the top bar stays on one row) */
@media screen{
  .itsm-topbar .topbar-signout{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex:none}
  .itsm-topbar .topbar-signout svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
}
@media (max-width:600px){
  .itsm-topbar .topbar-signout{width:38px;padding:0!important;justify-content:center}
  .itsm-topbar .topbar-signout span{display:none}
  html body .itsm-topbar .topbar-crumb{font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .itsm-topbar .topbar-title{min-width:0}
}
@media (max-width:600px){
  html body .itsm-topbar #portalAppearance>summary{font-size:0!important;width:38px;padding:0!important;justify-content:center;display:inline-grid;place-items:center}
  html body .itsm-topbar #portalAppearance>summary::before{content:"Aa";font-size:13px;font-weight:500}
  html body .itsm-topbar #portalAppearance>summary::after{display:none!important}
}
@media (max-width:600px){html body .itsm-topbar .crumb-root{display:none}}
/* v50 Staff top bar on narrow phones: the title shortens instead of pushing Sign out off the screen. */
@media screen{.staff-topbar>div{min-width:0;flex:1 1 auto}.staff-topbar .topbar-crumb{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.staff-topbar .staff-signout{flex:none}}
@media (max-width:420px){.staff-topbar .staff-signout{padding:0 10px!important}html body .staff-topbar .topbar-crumb{font-size:15px!important}}

/* v118 Portal switch in the top bar (Admin Portal | User Portal), for staff logins that hold an admin role */
html body .portal-switch{display:inline-flex;align-items:stretch;height:38px;padding:3px;gap:2px;border-radius:10px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);flex:none}
html body .portal-switch[hidden]{display:none}
html body .portal-switch .portal-switch-opt{display:inline-flex;align-items:center;padding:0 12px;border-radius:7px;font-size:13px;font-weight:500;white-space:nowrap;color:#fff;text-decoration:none;line-height:1}
html body .portal-switch a.portal-switch-opt:hover{background:rgba(255,255,255,.18)}
html body .portal-switch .portal-switch-opt[aria-current=page]{background:#fff;color:#232323;font-weight:600;cursor:default}
@media (max-width:760px){html body .portal-switch .portal-switch-opt{padding:0 8px;font-size:12px}}
