/* Reproduces the observed CRM's compact white navigation, filter block and ruled grid. */
:root{--ink:#455a64;--muted:#60727b;--line:#e2e5e8;--ground:#f8f9fa;--blue:#1678b9;--radius:3px;--font:'Malgun Gothic','Apple SD Gothic Neo',Arial,sans-serif}body{font-size:13px;background:#fafafa}button,input,select,textarea{border-radius:2px;min-height:31px;font-size:12px;font-weight:400}button{padding:5px 10px}input,select{padding:5px 8px}input[type=checkbox],input[type=radio]{min-height:0;width:13px;height:13px;accent-color:#17bebb;margin:0 4px 0 0}button.primary{background:#087e7b;border-color:#087e7b;color:#fff}button.primary:hover{background:#066b68;border-color:#066b68}.legacy-shell{display:block;padding-top:56px}.topbar{position:fixed;top:0;left:0;right:0;height:56px;padding:0 22px 0 10px;z-index:20;box-shadow:0 2px 5px #00000005;border-bottom:1px solid #f2f2f2}.topbar svg{width:21px;height:21px;fill:none;stroke:#78909c;stroke-width:2}.top-brand{margin-right:auto;margin-left:12px;text-decoration:none;font-size:17px;color:#268ac2;font-weight:600}.identity{font-size:12px;gap:16px}.identity a{color:#6e8996;text-decoration:none}.sidebar{position:fixed;left:0;top:56px;bottom:0;width:60px;height:calc(100vh - 56px);padding:12px 0;background:white;color:#607d8b;overflow:auto;z-index:15;border-right:1px solid #eceff1;display:block}.nav{display:block}.nav a,.nav summary{height:44px;min-height:44px;display:flex;gap:17px;align-items:center;padding:10px 18px;border-radius:0;color:#83969f;white-space:nowrap;text-decoration:none;cursor:pointer;list-style:none;font-size:13px}.nav a>span,.nav summary>span{display:none}.nav svg{width:20px;height:20px;min-width:20px;fill:none;stroke:currentColor;stroke-width:1.7}.nav a:hover,.nav summary:hover{color:#168bc8;background:#f4fafc}.nav a.active{color:#178dcb;background:#eef8fc}.nav-group:not([open])>a{display:none}.expanded .sidebar{width:218px}.expanded .nav a>span,.expanded .nav summary>span{display:inline}.expanded .nav-group>a{padding-left:42px;font-size:12px}.expanded .main{margin-left:218px}.main{margin-left:60px;min-width:0}.demo{height:23px;padding:2px 24px;background:#fffdf5;border:0;color:#7b7256;font-size:10px;text-align:right}.content{max-width:none;padding:0 30px 30px}.page-head{margin:0 -30px 35px;padding:15px 25px;background:#fff;min-height:62px;gap:12px;border-bottom:1px solid #f0f0f0;box-shadow:0 2px 3px #00000003;flex-wrap:wrap}.page-head>div:first-child{display:flex;align-items:center;gap:15px}.page-head h1{font-size:20px;font-weight:400;letter-spacing:0;color:#1685c3}.page-note{font-size:11px;color:#b63471}.page-head .breadcrumbs{margin-left:auto;color:#819098;font-size:12px}.page-head .actions:empty{display:none}.legacy-card{padding:20px;background:#fff;border:0;border-radius:4px;box-shadow:0 2px 18px #00000004}.legacy-filters{border:1px solid #f0f1f3;display:grid;grid-template-columns:1.04fr 1fr 1fr;gap:24px;padding:12px 10px;margin:0}.filter-column{min-width:0}.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:7px 0}.filter-row label,.filter-column>label{display:flex;flex-direction:row;align-items:center;font-size:12px;font-weight:400;gap:8px;min-width:0}.filter-row input:not([type=checkbox]){width:115px}.filter-row select{max-width:135px;min-width:75px}.checks{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;font-size:12px}.checks strong{font-weight:600}.inline-check{display:inline-flex;flex-direction:row;align-items:center;gap:0;font-size:12px;font-weight:400;white-space:nowrap}.date-range{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0 0 6px;font-size:12px}.date-range input{width:135px;min-height:28px;font-size:11px}.date-range>span:first-child{width:64px}.import-toolbar{display:flex;flex-wrap:wrap;gap:5px;justify-content:end;padding:12px 0 10px}.batch-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:0 0 6px}.batch-toolbar .actions{gap:4px;max-width:660px}.batch-toolbar button,.import-toolbar button{font-size:11px;min-height:29px;padding:4px 8px}button.purple{background:#6650b8;color:white;border-color:#6650b8}button.purple:hover{background:#56439d;border-color:#56439d}button.orange{background:#946300;color:white;border-color:#946300}button.orange:hover{background:#7a5100;border-color:#7a5100}button.red{background:#c13e3d;color:white;border-color:#c13e3d}button.red:hover{background:#a63231;border-color:#a63231}.outline-purple{color:#6553a5;border-color:#7963be}.outline-blue{color:#176d9b;border-color:#72b2d3}.outline-orange{color:#9d6a05;border-color:#efc766}.outline-red{color:#bd4141;border-color:#e88a89}.outline-teal{color:#087e7b;border-color:#65c8c5}.legend{display:flex;align-items:center;justify-content:end;gap:5px;flex-wrap:wrap;font-size:11px;max-width:520px}.legend-item .badge{padding:0;background:none;color:#667982;font-size:10px}.legend-item .badge:before{content:'';display:inline-block;width:8px;height:8px;margin-right:3px;background:#eee;border:1px solid #98a4aa}.legend-item .badge.red:before{background:#e6b8bc}.legend-item .badge.green:before{background:#cae8b8}.legend-item .badge.amber:before{background:#f8edb0}.legend-item .badge.blue:before{background:#bdd9f0}.legend strong{color:#d74e19;font-size:18px}.legacy-table{font-size:12px;text-align:center;table-layout:auto;min-width:980px;white-space:normal}.legacy-table th{background:#eee;color:#4d6069;font-size:11px;text-align:center;padding:12px 8px;border:1px solid #ddd;font-weight:600}.legacy-table td{padding:19px 8px;border:1px solid #e1e4e6;font-size:12px;line-height:1.5;min-width:65px}.legacy-table td:first-child{min-width:30px;width:30px}.legacy-table td:nth-child(2){min-width:82px}.legacy-table td:nth-child(3){min-width:90px}.legacy-table td small{display:block;color:#72828a}.legacy-table .pill{padding:1px 5px;border:1px solid #9aabab;border-radius:12px;min-height:21px;font-size:11px;background:#fff;white-space:nowrap}.name-button,.text-button{font-weight:400;color:#1989c6;text-decoration:underline;min-height:25px;padding:0;background:none;border:0}.text-button{text-decoration:none;font-size:11px}.pager{padding:15px 0;border:0}.pager form{display:flex;gap:5px}.pager input{width:65px}.pager .actions{align-items:center}.pager button{color:#388ec0}.panel{border-radius:3px}.panel-body{padding:22px}.panel th,.panel td{border:1px solid #e1e5e7}.filters{padding:15px;background:#fff}.metrics{border-radius:3px}.metric strong{font-size:25px}.page-head .eyebrow,.detail .eyebrow{display:none}.detail-backdrop{position:fixed;inset:0;background:#0007;z-index:29}.detail{position:fixed;z-index:30;top:7vh;left:50%;transform:translateX(-50%);width:min(960px,94vw);max-height:86vh;overflow:auto;box-shadow:0 6px 30px #0003;padding:20px 25px;border-radius:4px}.detail h2{font-size:18px}.detail dl{display:grid;grid-template-columns:100px 1fr 100px 1fr;background:#fafafa;border:1px solid #eee;padding:12px}.detail section{padding-top:12px;margin-top:14px}.detail-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:22px}.detail fieldset{border:1px solid #e4e8ea;padding:14px;margin:0 0 12px}.detail legend{font-size:13px}.detail .profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail label{font-size:12px}.detail .note-list{max-height:300px;overflow:auto}.detail .note{padding:10px}.detail .note:nth-child(even){background:#f8f9fa}dialog{border-radius:4px;max-height:90vh;overflow:auto;padding:22px;width:min(620px,95vw)}dialog h2{font-weight:400;font-size:18px;border-bottom:1px solid #e7e7e7;padding-bottom:16px}dialog p{font-size:12px}.main footer{padding:20px 30px;background:white;color:#86949b;font-size:11px}.subtle{font-size:12px}.sidebar::-webkit-scrollbar{width:4px}.sidebar::-webkit-scrollbar-thumb{background:#d2dadd}::selection{background:#d7f4f0;color:#244951}input,textarea{caret-color:#128c89}.aux-calendar{min-width:0}@media(max-width:1200px){.legacy-filters{gap:12px}.date-range>span:first-child{width:auto}.filter-row input:not([type=checkbox]){width:105px}.legacy-table td{padding:18px 7px}}@media(max-width:900px){.legacy-filters{grid-template-columns:1fr 1fr}.filter-column:last-child{grid-column:1/-1}.sidebar{position:fixed;height:calc(100vh - 56px)}.nav{display:block;overflow:visible}.nav a{flex-shrink:initial}.topbar{height:56px}.content{padding:0 18px 25px}.page-head{margin:0 -18px 22px}.expanded .main{margin-left:60px}.expanded .sidebar{box-shadow:4px 2px 12px #0002}.detail-layout{grid-template-columns:1fr}.detail dl{grid-template-columns:90px 1fr}.legend{justify-content:start}}@media(max-width:550px){.top-brand{font-size:14px}.identity>span{display:none}.topbar{padding:0 10px}.legacy-shell{padding-top:56px}.sidebar{width:48px}.nav a,.nav summary{padding:10px 13px}.main,.expanded .main{margin-left:48px}.demo{height:auto;padding:5px 12px;line-height:1.5;text-align:left}.content{padding:0 10px 20px}.page-head{margin:0 -10px 16px;padding:12px 15px;flex-direction:row;align-items:center}.page-head>div:first-child{display:block}.page-head h1{font-size:19px}.breadcrumbs{display:none}.legacy-card{padding:10px}.legacy-filters{grid-template-columns:1fr;gap:8px}.filter-column:last-child{grid-column:auto}.date-range{flex-wrap:wrap}.date-range input{width:120px}.filter-row input:not([type=checkbox]){width:110px}.pager{align-items:start;flex-direction:column;gap:12px}.pager .actions{gap:3px}.pager button{padding:4px 7px}.detail{top:3vh;max-height:94vh;padding:16px}.detail .profile-grid{grid-template-columns:1fr}.import-toolbar{justify-content:start}.topbar .identity{gap:7px}.metrics{grid-template-columns:1fr 1fr}}

.legacy-shell:not(.expanded) .nav-group>a{display:none}.batch-toolbar .actions{flex:1;min-width:380px;max-width:none}.batch-toolbar .legend{flex:1;min-width:310px;max-width:none}.filter-row .inline-check{flex:0 0 auto;min-width:0}#selection-count{font-size:11px;align-self:center;padding:0 6px}@media(max-width:550px){.batch-toolbar .actions,.batch-toolbar .legend{min-width:0;flex-basis:100%}.legend{justify-content:start}}

/* Visible keyboard focus without changing the compact legacy layout. */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #176d9b;outline-offset:2px}
.nav a:focus-visible,.nav summary:focus-visible{outline-offset:-3px}
input::placeholder,textarea::placeholder{color:#60727b;opacity:1}
.detail-draft-status{margin:0 0 14px;line-height:1.6}
