/* Device lookup stays ahead of management actions, with readable field results. */
.device-search-form{align-items:flex-end;gap:10px 12px;margin:18px 0 8px}
.device-search-form .device-search-query{flex:1 1 300px;min-width:0}
.device-search-query label{display:block;font-size:14px;font-weight:600;line-height:1.6;margin:0 0 7px}
.device-search-form .device-search-query input[type=search]{width:100%;max-width:none;min-width:0;margin:0;min-height:44px}
.device-search-form select{min-height:44px}
.device-search-form>.btn{min-height:44px}
.device-search-help{font-size:13px;line-height:1.8;max-width:75ch;margin:8px 0 16px}
.device-management-links{padding-top:14px;border-top:1px solid var(--line-soft,#e5e9ed);margin:14px 0 20px}
.device-search-empty{padding:18px 0;border-block:1px solid var(--line-soft,#e5e9ed);margin:20px 0}
.device-search-empty p{font-size:14px;line-height:1.8;margin:0 0 12px;max-width:70ch}
.device-search-empty>.btn{min-height:44px}
.device-mobile-results{display:none;list-style:none;padding:0;margin:18px 0 0}
.device-search-result{padding:18px 0;border-top:1px solid var(--line-soft,#e5e9ed);min-width:0}
.device-result-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.device-result-heading h3{min-width:0;margin:0;font-size:15px;line-height:1.65;font-weight:600;overflow-wrap:anywhere}
.device-result-heading h3>span{display:block}
.device-result-heading .device-result-code{font-variant-numeric:tabular-nums;font-size:16px;font-weight:650;letter-spacing:-.01em;margin-bottom:3px}
.device-result-heading>.pill{flex:none;max-width:100px;white-space:normal;text-align:center;line-height:1.6}
.device-result-location{font-size:13px;line-height:1.8;color:#58616b;overflow-wrap:anywhere;margin:8px 0 0}
.device-result-location .tag-l1{vertical-align:middle;margin-left:5px}
.device-result-note{font-size:13px;line-height:1.8;color:#58616b;margin:8px 0 0;max-width:70ch}
.device-result-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin-top:14px}
.device-result-actions>.btn{display:flex;justify-content:center;align-items:center;min-height:44px;flex:1 1 130px}
.device-result-current{font-size:13px;line-height:1.7;margin:8px 0 0}
.device-result-current>a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.device-result-management{margin-top:6px}
.device-result-management>summary{font-size:13px;line-height:1.8;min-height:44px;padding:12px 0;cursor:pointer;color:#58616b}
.device-result-management-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;padding-bottom:4px}
.device-result-management-actions>.btn,.device-result-management-actions>form{flex:1 1 130px;min-width:0}
.device-result-management-actions>form>.btn{min-height:44px;width:100%}
.device-search-query input:focus-visible,.device-search-form select:focus-visible{outline:3px solid var(--brand,#2463a0);outline-offset:2px}
@media(max-width:760px){
.device-search-form{display:flex;flex-wrap:wrap;margin-top:16px;gap:10px}
.device-search-form .device-search-query{flex:1 1 100%}
.device-search-form .device-search-query input[type=search]{font-size:16px;min-height:46px}
.device-search-form select{flex:1 1 120px;min-width:0;max-width:100%;font-size:16px}
.device-search-form>.btn{flex:1 1 100px}
.device-search-help{font-size:12px;margin-bottom:14px}
.device-management-links{margin:14px 0 16px;padding-top:12px;gap:8px}
.device-management-links>.btn{flex:1 1 130px;min-height:44px}
.device-ledger-table{display:none}
.device-mobile-results{display:block}
.device-search-empty{margin:16px 0}
.device-search-empty>.btn{width:100%;white-space:normal}
}
@media print{
.device-mobile-results,.device-search-form,.device-search-help,.device-management-links{display:none!important}
.device-ledger-table{display:block!important}
}

/* A persistent, legible route to the complete equipment register. */
.topbar-device-search{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:0 13px;margin-left:auto;border:1px solid var(--line,#d5dde5);border-radius:10px;color:var(--brand,#245d96);font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none}
.topbar-device-search:hover{background:#eef4fa}
.topbar-device-search:focus-visible{outline:3px solid #245d96;outline-offset:3px}
#device-search{scroll-margin-top:110px}
#device-search:target{outline:2px solid #245d96;outline-offset:2px}


