.lead-routing-page{max-width:1180px;margin:0 auto;padding:24px 28px}.lead-routing-page .pagehead{align-items:center}.lead-routing-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:18px 0}.lead-routing-toolbar label,.lead-routing-settings label{display:grid;gap:7px;color:#45546a;font-size:13px;font-weight:600}.lead-routing-toolbar input,.lead-routing-settings select{width:min(360px,100%);min-height:38px;border:1px solid #ccd6e3;border-radius:6px;background:#fff;padding:8px 10px;color:#172239;font:inherit}.lead-routing-list{border:1px solid #d9e1ec;border-radius:8px;overflow:hidden;background:#fff}.lead-routing-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:18px 20px;border-top:1px solid #e3e8ef}.lead-routing-item:first-child{border-top:0}.lead-routing-item h3{font-size:16px;line-height:1.35;margin:7px 0;color:#15213a}.lead-routing-item p{margin:0;color:#526078}.lead-routing-item small{display:block;margin-top:8px;color:#718098}.lead-routing-meta{display:flex;gap:7px;flex-wrap:wrap}.lead-routing-meta span{font-size:11px;font-weight:700;background:#eef3f9;color:#48617f;padding:4px 6px;border-radius:4px}.lead-routing-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.lead-routing-actions .btn{white-space:nowrap}.lead-routing-empty{padding:32px;border:1px solid #d9e1ec;border-radius:8px;color:#526078;background:#fff}.lead-routing-settings{max-width:680px;padding:6px 0}.lead-routing-settings h2{font-size:20px;margin:0 0 6px}.lead-routing-settings p{color:#526078;margin:0 0 20px}.lead-routing-settings form{display:grid;gap:16px}.lead-routing-settings select{width:100%}.lead-routing-settings form .btn{justify-self:start}@media(max-width:900px){.lead-routing-item{grid-template-columns:1fr}.lead-routing-actions{justify-content:flex-start}}@media(max-width:600px){.lead-routing-page{padding:16px}.lead-routing-toolbar{align-items:stretch;flex-direction:column}.lead-routing-toolbar input{width:100%}.lead-routing-actions .btn{flex:1 1 100%}}
.lead-routing-toolbar{justify-content:flex-start;flex-wrap:wrap;gap:10px 12px}.lead-routing-toolbar label:first-child{flex:1 1 240px}.lead-routing-toolbar label:not(:first-child){flex:0 1 190px}.lead-routing-toolbar input,.lead-routing-toolbar select{width:100%;min-height:38px;border:1px solid #ccd6e3;border-radius:6px;background:#fff;padding:8px 10px;color:#172239;font:inherit}.lead-routing-submit{margin-left:auto}.lead-routing-count{margin:0 0 9px;color:#64748b;font-size:13px}.lead-routing-item[hidden],.lead-routing-empty[hidden],.lead-routing-toolbar [hidden]{display:none}@media(max-width:600px){.lead-routing-toolbar label:not(:first-child){flex:1 1 100%}.lead-routing-submit{margin-left:0}}
.lead-routing-item{grid-template-columns:minmax(0,1fr) minmax(0,520px)}.lead-routing-actions .btn{font-size:12px;padding:7px 9px}.lead-routing-reject{color:#b42336!important}.lead-routing-db-tabs{display:flex;gap:4px;border-bottom:1px solid #d9e1ec;margin:15px 0}.lead-routing-db-tabs button{border:0;border-bottom:2px solid transparent;padding:10px 15px;background:transparent;color:#64748b;font:600 14px inherit;cursor:pointer}.lead-routing-db-tabs button.on{border-bottom-color:#2458ed;color:#173fbb}.lead-routing-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;color:#64748b}.lead-routing-overlay{position:fixed;inset:0;z-index:10000;display:flex;justify-content:flex-end;background:rgba(15,23,42,.42)}.lead-routing-drawer{width:min(700px,100vw);height:100%;display:flex;flex-direction:column;background:#fff;box-shadow:-18px 0 45px rgba(15,23,42,.16)}.lead-routing-drawer header{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;padding:22px 24px;border-bottom:1px solid #d9e1ec}.lead-routing-drawer header small{color:#64748b}.lead-routing-drawer h2{font-size:22px;line-height:1.3;margin:5px 0 0}.lead-routing-drawer-body{overflow:auto;padding:24px;flex:1}.lead-routing-drawer-body h3{font-size:15px;margin:0 0 14px}.lead-routing-drawer-body dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:0 0 28px}.lead-routing-drawer-body dl div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:8px;border-bottom:1px solid #edf0f4;padding:10px 0}.lead-routing-drawer-body dt{color:#64748b}.lead-routing-drawer-body dd{margin:0;overflow-wrap:anywhere}.lead-routing-note{white-space:pre-wrap;line-height:1.5;border-top:1px solid #edf0f4;padding:12px 0;margin:0}.lead-routing-drawer footer{padding:16px 24px;border-top:1px solid #d9e1ec;display:flex;gap:8px;flex-wrap:wrap}.lead-routing-drawer footer .btn{font-size:12px}@media(max-width:900px){.lead-routing-item{grid-template-columns:1fr}}@media(max-width:600px){.lead-routing-drawer-body dl{grid-template-columns:1fr}.lead-routing-drawer-body dl div{grid-template-columns:110px minmax(0,1fr)}}
@media(min-width:601px){.lead-routing-drawer [data-routing-close-detail]{flex:none;margin-right:214px}}
@media(max-width:600px){.lead-routing-drawer header{position:relative;padding-bottom:60px}.lead-routing-drawer [data-routing-close-detail]{position:absolute;right:24px;bottom:12px}}
.lead-routing-db-tabs button{font-size:14px;font-weight:600;font-family:inherit}.lead-routing-reject-dialog{align-self:center;margin:auto;width:min(440px,calc(100vw - 32px));padding:24px;background:#fff;border-radius:8px;box-shadow:0 18px 50px rgba(15,23,42,.2)}.lead-routing-reject-dialog h2{font-size:20px;margin:0 0 5px}.lead-routing-reject-dialog p{color:#64748b;margin:0 0 18px}.lead-routing-reject-dialog label{display:grid;gap:6px;margin:0 0 14px;color:#45546a;font-size:13px;font-weight:600}.lead-routing-reject-dialog select,.lead-routing-reject-dialog textarea{width:100%;border:1px solid #ccd6e3;border-radius:6px;padding:9px 10px;font:inherit}.lead-routing-reject-dialog .lead-routing-actions{justify-content:flex-end}
.lead-routing-db-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.lead-routing-db-tabs button{flex:0 0 auto}
.lead-routing-record-open{border:0;background:transparent;padding:0;color:#173fbb;font:inherit;font-weight:inherit;text-align:left;cursor:pointer}.lead-routing-record-open:hover{text-decoration:underline}.lead-routing-submitted,.lead-routing-capture-site{font-weight:600;color:#5d6c82!important}
.lead-record-overlay{position:fixed!important;inset:0!important;z-index:10001!important;display:flex!important;justify-content:flex-end;background:rgba(15,23,42,.42)}
.lead-record-overlay .lead-record-panel{width:min(760px,100vw);height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:0;background:#f6f8fb}
.lead-record-panel .drawerhead{flex:none;position:static;margin:0;padding:20px 24px;align-items:flex-start;gap:18px}
.lead-record-panel .drawerhead>div:first-child{min-width:0;overflow-wrap:anywhere}.lead-record-panel .drawerhead>div:last-child{flex:none;margin-right:220px}
.lead-record-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1;padding:20px 24px}.lead-record-body .card{border-radius:8px;margin-bottom:16px}.lead-record-body h2{font-size:17px}.lead-record-body [hidden],.lead-record-panel>.alert[hidden]{display:none!important}
.lead-record-body input,.lead-record-body textarea,.lead-record-body select{max-width:100%}.lead-record-actions{flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:14px 24px;border-top:1px solid #d9e1ec;background:#fff}.lead-record-actions .btn{font-size:12px;padding:8px 10px}.lead-record-save{margin:8px 0 12px}.lead-record-evidence{white-space:pre-wrap;overflow-wrap:anywhere}.lead-routing-overlay:has(.lead-routing-reject-dialog){z-index:10002}
.lead-database-table{width:100%;overflow:auto;border:1px solid #d9e1ec;border-radius:6px}.lead-database-table table{width:100%;border-collapse:collapse;font-size:13px;min-width:860px}.lead-database-table th{text-align:left;background:#f2f5f8;padding:10px 12px;white-space:nowrap;color:#526078;font-size:12px}.lead-database-table td{padding:10px 12px;vertical-align:middle;border-top:1px solid #e5e9ee;line-height:1.35}.lead-database-table tbody tr:hover{background:#f7faff}.lead-database-table td:first-child{min-width:240px;max-width:340px}.lead-database-table small{display:block;color:#64748b;margin-top:4px}.lead-database-open{border:0;background:transparent;text-align:left;padding:0;color:#173fbb;font:600 13px inherit;cursor:pointer;line-height:1.4}.lead-database-table .badge{font-size:11px}.lead-database-table .crm-destination-status{display:flex;flex-wrap:wrap;gap:4px}.lead-database-table .btn{font-size:11px;padding:4px 7px}.lead-database-table td:last-child{min-width:140px}
@media(max-width:1280px){.lead-routing-item{grid-template-columns:minmax(0,1fr)}.lead-routing-main{min-width:0;overflow-wrap:anywhere}.lead-routing-actions{justify-content:flex-start}}
@media(max-width:600px){.lead-record-panel .drawerhead{padding:64px 16px 16px}.lead-record-panel .drawerhead>div:last-child{margin-right:0}.lead-record-body{padding:16px}.lead-record-actions{padding:12px 16px}.lead-record-body .frow{flex-wrap:wrap}.lead-record-body .fld{min-width:0}}
