.ht-tabs{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap}.ht-tabs button{padding:12px 18px}.ht-tabs [aria-pressed=true]{background:#0d3d68;color:white;border-color:#0d3d68}.ht-workspace{display:grid;grid-template-columns:minmax(310px,380px) minmax(0,1fr);gap:24px;align-items:start}.ht-editor{padding:22px;min-width:0}.ht-editor h2,.ht-preview-title h2,.ht-history h2{font-size:19px;margin:0 0 8px}.ht-fields{display:grid;gap:12px;margin:12px 0}.ht-two{grid-template-columns:1fr 1fr}.ht-editor label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;min-width:0}.ht-editor input,.ht-editor select,.ht-editor textarea{width:100%;min-width:0;background:white;color:#102a43;font:inherit;font-weight:400;border:1px solid #ccdae9;border-radius:7px;padding:10px}.ht-editor textarea{resize:vertical;line-height:1.5}.ht-editor select{white-space:normal}.ht-help,.ht-source{font-size:12px;line-height:1.5;color:#60748b}.ht-source{background:#eff7ff;padding:10px;border-radius:7px}.ht-generate{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #e0e8f0;padding-top:16px;margin-top:18px}.ht-generate small{font-size:12px;color:#5b6f85}.ht-details{border-top:1px solid #e0e8f0;padding:14px 0}.ht-details summary{cursor:pointer;color:#174c7d;font-weight:600;font-size:13px}.ht-lines{margin:16px 0;border-top:1px solid #e0e8f0;padding-top:16px}.ht-lines-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.ht-lines h3{font-size:15px;margin:0}.ht-line{background:#f7f9fc;border:1px solid #dce5ef;border-radius:9px;padding:14px;margin-top:12px}.ht-line .ht-checkbox{display:flex;flex-direction:row;align-items:center;margin-bottom:12px}.ht-checkbox input{width:17px;height:17px}.ht-line>small{font-size:11px;color:#687f96}.ht-preview-panel{min-width:0;background:#e8edf3;border-radius:12px;padding:18px;border:1px solid #dbe3ed}.ht-preview-title{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:16px}.ht-preview-title p,.ht-preview-caption{font-size:12px;color:#53687e;margin:0}.ht-preview-title>span{background:#fff;border-radius:5px;padding:5px 8px;font-size:11px}.ht-preview-viewport{overflow:hidden;width:100%;position:relative}#htPreview{width:794px;transform-origin:top left}#htPreview .ht-print-sheet{margin-bottom:18px;box-shadow:0 2px 10px #142c4a15}#htPreview .ht-print-sheet:last-child{margin-bottom:0}.ht-preview-caption{margin-top:16px}.ht-history{padding:22px;margin-top:26px}.ht-history>p{font-size:13px;color:#60748b}.ht-loading{padding:30px}.ht-remito-number .ht-editable:empty:before{content:'Automático al generar';font-size:10pt}.ht-editor button{min-height:40px}
@media(max-width:1399px){.ht-workspace{grid-template-columns:1fr}.ht-editor{max-width:none}.ht-editor>.ht-fields,.ht-editor>.ht-details>.ht-fields{grid-template-columns:1fr 1fr}.ht-preview-panel{max-width:850px;width:100%;margin:auto}.ht-lines{max-height:560px;overflow:auto;padding-right:4px}}@media(max-width:600px){.ht-editor{padding:16px}.ht-editor>.ht-fields,.ht-editor>.ht-details>.ht-fields{grid-template-columns:1fr}.ht-two{grid-template-columns:1fr 1fr}.ht-preview-panel{padding:12px}.ht-preview-title{display:block}.ht-preview-title>span{display:none}.ht-tabs{display:grid;grid-template-columns:1fr 1fr}.ht-tabs button{padding:11px 8px;font-size:12px}.ht-lines{max-height:none;overflow:visible}.ht-history{padding:16px}}

.ht-editor select{white-space:nowrap;text-overflow:ellipsis}.tools-view #importStatus{display:none!important}

.ht-print-options{display:grid;gap:12px;margin-top:14px}.ht-print-options .ht-checkbox{flex-direction:row;align-items:flex-start;font-weight:400}.ht-print-options input{width:16px;flex:0 0 16px;margin:1px 0 0}

/* Campos y opciones con alineación estable en el editor de impresos. */
.ht-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ht-editor input[type=checkbox],.ht-editor input[type=radio]{flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:1px 0 0;align-self:flex-start}
.ht-editor .ht-print-options>label,.ht-editor .ht-checkbox{display:flex;flex-direction:row;align-items:flex-start;gap:9px;font-weight:400;line-height:1.5}
.ht-editor>.actions{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;margin-top:14px}
.ht-editor>.actions>button{width:100%;min-height:44px;text-align:left}
.ht-lines-title{flex-wrap:wrap}.ht-preview-title>div{min-width:0}.ht-print-options{margin-bottom:18px}
@media(max-width:600px){.ht-two{grid-template-columns:minmax(0,1fr)}.ht-tabs button{min-height:44px}.ht-generate>button{width:100%}}

.ht-cai-config{min-width:0;border:1px solid #d5dbe3;border-radius:10px;margin:18px 0;padding:14px}.ht-cai-config legend{font-weight:650;padding:0 5px}
