/* Quiet sortable headers, independent of the company or branch palette. */
body .table-wrap table thead th button,body table thead th button:hover,body table thead th button:active{background:transparent!important;color:var(--text,#183447)!important;border:0!important;box-shadow:none!important;padding:6px 4px!important;min-height:32px;width:auto!important;text-align:left}
body table thead th button:focus-visible{outline:2px solid currentColor!important;outline-offset:2px}
body dialog.compact89{width:min(760px,calc(100vw - 32px))!important;max-width:760px!important;max-height:90dvh;padding:0!important}
body dialog.compact89 .dialog-head{padding:18px 24px!important}
body dialog.compact89 h2{font-size:1.25rem!important;margin:0!important}
body dialog.compact89 .dialog-body{padding:20px 24px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;max-height:62dvh;overflow:auto}
body dialog.compact89 .dialog-body>p,body dialog.compact89 .panel-list89{grid-column:1/-1}
body dialog.compact89 label{margin:0!important;min-width:0;font-size:.9rem}
body dialog.compact89 input:not([type=checkbox]),body dialog.compact89 select:not([multiple]){min-height:40px!important;padding:9px 12px!important;font-size:1rem!important;width:100%;box-sizing:border-box}
body dialog.compact89 [hidden],body .client360-grid>[hidden]{display:none!important}
body dialog.compact89 .dialog-actions{padding:14px 24px!important;display:flex;justify-content:flex-end;gap:12px}
body dialog.compact89 .dialog-actions button{width:auto!important;min-height:40px;padding:10px 20px!important}
.conditions89{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}.conditions89 p{margin:0}
.customer89 .export-local89{display:none!important}.export-main89{margin-left:12px}
body .client360-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
.panel-list89{display:grid;gap:8px}.panel-row89{display:grid;grid-template-columns:1fr 40px 40px;gap:8px;align-items:center;padding:10px;border:1px solid #dde3e9;border-radius:8px}.panel-row89 label{display:flex;align-items:center;gap:10px}.panel-row89 button{padding:8px!important;min-width:36px}
body dialog.report89{padding:20px!important;width:min(1100px,calc(100vw - 32px))!important;box-sizing:border-box}
body dialog.report89 h2{font-size:1.25rem;margin:0 0 16px!important}
.report-actions89{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:16px}
body dialog.report89 .report-actions89 button,.download-button89{width:auto!important;padding:10px 18px!important;border-radius:8px;text-decoration:none;font-size:1rem!important;min-height:40px;box-sizing:border-box}
.download-button89{display:inline-flex;align-items:center;background:var(--brand,#4034a0);color:white!important}
@media(max-width:600px){body dialog.compact89 .dialog-body{grid-template-columns:1fr;padding:16px!important}body .client360-grid{grid-template-columns:1fr!important}.report-actions89{flex-wrap:wrap}body dialog.report89{padding:14px!important}.export-main89{margin:8px 0}.conditions89>*{flex:1 1 100%}}

body .client360-grid > article{grid-column:auto!important}

body dialog.compact89{border:1px solid #dce3eb;border-radius:14px}
body dialog.compact89>form{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box;border:0!important;display:block!important}
body dialog.compact89 .dialog-body{width:100%!important;box-sizing:border-box}
/* Two content IDs deliberately outrank the global palette's ID selector. */
body #content#content table thead th button,body #content#content table thead th button:hover,body #content#content table thead th button:active,body #content#content table thead th button:focus{background:transparent!important;background-image:none!important;color:var(--text,#183447)!important;border-color:transparent!important;box-shadow:none!important;border:0!important;padding:6px 4px!important;min-height:32px;width:auto!important;text-align:left}
.agreements-inline891{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.agreements-inline891>p{grid-column:1/-1}.agreement-card891{border:1px solid #dce3eb;border-radius:10px;padding:16px;min-width:0}.agreement-card891 h4{margin:0 0 10px}.agreement-card891 p{margin:8px 0;font-size:.95rem}.agreement-card891 button{margin:8px 8px 0 0}
@media(max-width:600px){.agreements-inline891{grid-template-columns:1fr}}
.conditions-history892,.negotiation-fields892{grid-column:1/-1}.negotiation-fields892{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-top:12px;border-top:1px solid #dce3eb}.conditions-history892 details{padding:10px 0;border-bottom:1px solid #e0e5eb}.conditions-history892 summary{cursor:pointer;font-weight:600}.conditions-history892 .toolbar{display:none!important}.conditions-history892 input[type=checkbox]{width:auto!important;min-height:0!important}.negotiation-fields892[hidden]{display:none!important}
@media(max-width:600px){.negotiation-fields892{grid-template-columns:1fr}}
.negotiation-fields892>label:has([name=anterior_id]),body dialog.compact89 .dialog-body>label:has([name=motivo]){grid-column:1/-1}
/* Mail commands are neutral controls, independent of the global action palette. */
body #content#content .outlook49{border:1px solid #dbe3e9;border-radius:12px;overflow:hidden;background:#fff;min-width:0;max-width:100%}
body #content#content .outlook49 button{box-sizing:border-box;box-shadow:none!important;font-size:14px!important;line-height:1.4!important;overflow-wrap:anywhere}
body #content#content .outlook49 button.mail-command49,body #content#content .outlook49 button.mail-folder49,body #content#content .outlook49 button.mail-account49,body #content#content .outlook49 button.mail-item41{background:#fff!important;color:#183447!important;border:1px solid transparent!important;border-radius:7px!important}
body #content#content .outlook49 button:hover:not(:disabled){background:#f0f5f8!important;color:#183447!important}
body #content#content .outlook49 button:disabled{opacity:.45;cursor:default}
body #content#content .outlook49 .mail-tabs49{background:#f1f5f8;color:#183447;height:auto;min-height:42px;padding:0 16px;border-bottom:1px solid #dbe3e9}
body #content#content .outlook49 .mail-tabs49 span:first-child{display:none}
body #content#content .outlook49 .mail-ribbon41{display:flex;flex-wrap:wrap;overflow:visible;gap:12px;padding:12px;min-height:0;align-items:center;background:#fff;border-bottom:1px solid #dbe3e9}
body #content#content .outlook49 .ribbon-group49{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center;gap:8px;height:auto!important;min-width:0!important;width:auto!important;padding:0!important;border:0!important;overflow:visible}
body #content#content .outlook49 .ribbon-group49>small{display:none}
body #content#content .outlook49 button.mail-command49{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;height:auto;min-height:42px;min-width:0;max-width:none;padding:10px 12px!important;border-color:#dbe3e9!important;text-align:center}
body #content#content .outlook49 .mail-icon49{width:20px;height:20px;stroke:currentColor}
body #content#content .outlook49 .mail-ribbon41 input{height:42px;max-width:none;min-width:0;width:180px;padding:10px 12px;font-size:14px;border:1px solid #dbe3e9;border-radius:7px;box-sizing:border-box}
.mail-more894{position:relative}.mail-more894>summary{cursor:pointer;padding:10px 12px;border:1px solid #dbe3e9;border-radius:7px;min-height:42px;box-sizing:border-box;font-size:14px;color:#183447}
.mail-more-grid894{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 0}.mail-more894[open]{flex-basis:100%}
body #content#content .outlook49 .mail-layout41{display:grid;grid-template-columns:200px minmax(0,1fr) minmax(0,1.2fr);min-height:400px;min-width:0}
body #content#content .outlook49 .mail-nav41{background:#f8fafc;padding:12px 8px;min-width:0;border-right:1px solid #dbe3e9;gap:4px!important}
body #content#content .outlook49 .mail-nav41 button{height:auto!important;min-height:42px!important;padding:10px!important;white-space:normal;text-align:left}
body #content#content .outlook49 button.mail-account49{font-size:12px!important;background:transparent!important}
body #content#content .outlook49 button.selected41{background:#e7eef4!important;color:#183447!important;border-color:#c9d8e3!important;font-weight:600}
body #content#content .outlook49 .mail-list41{min-width:0;max-height:650px;overflow:auto;border-right:1px solid #dbe3e9}
body #content#content .outlook49 button.mail-item41{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;margin:0;padding:16px!important;border:0!important;border-bottom:1px solid #e4e9ed!important;border-radius:0!important;gap:6px}
body #content#content .outlook49 .mail-item41 span,body #content#content .outlook49 .mail-item41 small{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
body #content#content .outlook49 .mail-item41 small{color:#607587;font-size:12px}
body #content#content .outlook49 .mail-reader41{min-width:0;grid-column:auto;padding:20px;overflow-wrap:anywhere}
body #content#content .outlook49 .mail-reader41:empty{display:none}
body #content#content .outlook49 .mail-list41>.toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:12px}
body #content#content .outlook49 .mail-list41>.toolbar button{min-height:40px;padding:8px 12px;border-radius:7px;background:#f1f5f8!important;color:#183447!important}
.mail-folder-picker894{display:none}
@media(max-width:1100px){body #content#content .outlook49 .mail-layout41{grid-template-columns:180px minmax(0,1fr)}body #content#content .outlook49 .mail-reader41{grid-column:1/-1;border-top:1px solid #dbe3e9}}
@media(max-width:650px){
 body #content#content .outlook49 .mail-layout41{grid-template-columns:minmax(0,1fr);min-height:0}
 body #content#content .outlook49 .mail-nav41{display:none!important}
 .mail-folder-picker894{display:grid;gap:8px;padding:14px;margin:0;color:#183447;font-size:14px;background:#f8fafc;border-bottom:1px solid #dbe3e9}
 .mail-folder-picker894 select{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #cbd8e3;border-radius:8px;background:white;font-size:16px;color:#183447}
 body #content#content .outlook49 .mail-ribbon41{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
 body #content#content .outlook49 .ribbon-group49[data-mail-group894=Nuevo]{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body #content#content .outlook49 .ribbon-group49[data-mail-group894=Buscar]{grid-column:1/-1;display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important}
 body #content#content .outlook49 .ribbon-group49[data-mail-group894=Buscar] button span{display:none}
 body #content#content .outlook49 .mail-ribbon41 input{width:100%}
 body #content#content .outlook49 .ribbon-group49[data-mail-group894='Enviar y recibir'] button{width:100%}
 .mail-more894{align-self:stretch}.mail-more894>summary{text-align:center;height:100%}.mail-more894[open]{grid-column:1/-1}.mail-more-grid894{grid-template-columns:1fr}
 body #content#content .outlook49 .mail-list41{max-height:none;overflow:visible;border-right:0}
 body #content#content .outlook49 .mail-reader41{grid-column:1;padding:16px}
 body #content#content .outlook49 .mail-list41 h3{padding:16px;font-size:16px}
}
body #content#content .outlook49 .mail-more894>summary{height:auto;min-height:42px}
body #content#content .outlook49 .mail-list41>.toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
body #content#content .outlook49 .mail-list41>.toolbar button{width:100%!important;min-width:0}
body #content#content .outlook49 .mail-list41>.toolbar span{font-size:12px;white-space:nowrap}
@media(max-width:650px){body #content#content .outlook49 .ribbon-group49[data-mail-group894=Nuevo]{align-items:stretch}body #content#content .outlook49 .ribbon-group49[data-mail-group894=Nuevo] button{height:100%}}
