/* STD V8.17.00 · pre-productivo */
.stdLeadFallback81700{overflow:hidden}
.stdLeadTop81700,.stdLeadSearch81700,.stdLeadBulk81700,.stdLeadPager81700{display:flex;align-items:center;gap:10px;justify-content:space-between}
.stdLeadTop81700{padding:2px 2px 12px}.stdLeadTop81700 h2{margin:0;color:#0e2d60}.stdLeadTop81700 p{margin:3px 0 0;color:#64748b}
.stdLeadScope81700{display:flex;padding:3px;border:1px solid #d7e5f1;border-radius:12px;background:#f7fbff}.stdLeadScope81700 button{border:0;background:transparent;padding:8px 12px;border-radius:9px;color:#31506f;font-weight:800}.stdLeadScope81700 button.active{background:#fff;color:#075f98;box-shadow:0 2px 8px rgba(14,45,96,.10)}
.stdLeadSearch81700{position:relative;margin-bottom:12px}.stdLeadSearch81700 input{width:100%;height:44px;border:1px solid #cadbea;border-radius:12px;padding:0 46px 0 14px;font:inherit}.stdLeadSearch81700 button{position:absolute;right:4px;width:36px;height:36px;border:0;background:transparent;font-size:22px;color:#51708d}
.stdLeadBulk81700{justify-content:flex-start;flex-wrap:wrap;padding:10px 12px;margin-bottom:10px;border:1px solid #b9dff1;border-radius:12px;background:#effaff}.stdLeadBulk81700 select,.stdLeadBulk81700 button{height:38px;border:1px solid #cbdde9;border-radius:9px;background:#fff;padding:0 10px}.stdLeadBulk81700 button:first-of-type{background:#0b78b5;color:#fff;border-color:#0b78b5;font-weight:800}
.stdLeadTableWrap81700{overflow:auto;max-height:min(58vh,560px);border:1px solid #dce8f2;border-radius:14px}.stdLeadTableWrap81700 table{width:100%;min-width:1100px;border-collapse:collapse;background:#fff}.stdLeadTableWrap81700 th{position:sticky;top:0;z-index:1;background:#f4f9fe;color:#36506b;font-size:11px;text-transform:uppercase;padding:10px;border-bottom:1px solid #dce8f2;text-align:left}.stdLeadTableWrap81700 td{padding:10px;border-bottom:1px solid #edf3f7;color:#223d5a;font-size:12px}.stdLeadTableWrap81700 tr.selected td{background:#eaf8ff}.stdLeadTableWrap81700 td small{display:block;color:#71859a;margin-top:3px}.stdLeadTableWrap81700 select{max-width:180px;border:1px solid #ccdeeb;border-radius:999px;padding:6px 10px;background:#f9fcff}.stdLeadName81700{border:0;background:transparent;color:#0e2d60;font:inherit;font-weight:900;padding:0;cursor:pointer;text-align:left}
.stdLeadPager81700{padding-top:12px;color:#64748b;font-size:12px}.stdLeadPager81700 div{display:flex;gap:5px}.stdLeadPager81700 button{min-width:32px;height:32px;border:1px solid #d2e1ec;border-radius:8px;background:#fff;color:#274967}.stdLeadPager81700 button.active{background:#0b78b5;color:#fff;border-color:#0b78b5}
.stdCrmBulkBar81700{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px;padding:10px 12px;border:1px solid #b9dff1;border-radius:12px;background:#effaff}.stdCrmBulkBar81700 label{display:flex;align-items:center;gap:8px}.stdCrmBulkBar81700 select,.stdCrmBulkBar81700 button{height:38px;border:1px solid #cbdde9;border-radius:9px;background:#fff;padding:0 10px}.stdCrmBulkBar81700 #stdCrmBulkApply81700{background:#0b78b5;color:#fff;border-color:#0b78b5;font-weight:800}
#viewCRM tr.stdRowSelected td{background:#eaf8ff!important}
/* El diálogo del cliente se ajusta a la pantalla; el documento, no la página, controla su scroll interno. */
#dlgCliente.stdDialog,#dlgCliente{width:min(1180px,calc(100vw - 28px))!important;height:min(840px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important;margin:auto!important}
#dlgCliente .dlgHead{padding:12px 16px!important;min-height:64px;box-sizing:border-box}
#dlgCliente .dlgBody{height:calc(100% - 64px)!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;padding:14px 16px!important;box-sizing:border-box}
@media (max-height:820px) and (min-width:700px){#dlgCliente.stdDialog,#dlgCliente{height:calc(100dvh - 14px)!important;max-height:calc(100dvh - 14px)!important}.clientGeneralGrid,.detailGrid{gap:8px!important}.detailField{padding:9px 10px!important}.movementGroups{gap:8px!important}.movementGroup{padding:9px!important}.dlgHead h3{font-size:20px!important}}
@media (max-width:760px){.stdLeadTop81700,.stdLeadPager81700{align-items:flex-start;flex-direction:column}.stdLeadScope81700{width:100%}.stdLeadScope81700 button{flex:1}.stdLeadTableWrap81700{max-height:62dvh}.stdLeadBulk81700 select,.stdLeadBulk81700 button{width:100%}#dlgCliente.stdDialog,#dlgCliente{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}}
