/* QA14: cabecera de Facturador ordenada y botones de importacion */
.qa14-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}
.qa14-toolbar button{background:#fff;border:1px solid #d1dae5;color:#173149;border-radius:9px;padding:10px 13px;font:700 12px/1.2 Arial,sans-serif;cursor:pointer;white-space:normal}
.qa14-toolbar button[data-import]{background:#f08942;border-color:#f08942;color:#10283d}
.qa14-overlay{position:fixed;inset:0;z-index:99999;background:#14293caa;display:grid;place-items:center;padding:14px}
.qa14-dialog{background:#fff;width:min(650px,100%);max-height:90dvh;overflow:auto;border-radius:15px;padding:20px;color:#203750;box-shadow:0 16px 55px #09192955}
.qa14-dialog h2{margin:0 0 12px;font-size:20px}.qa14-dialog p{font-size:13px;line-height:1.5}
.qa14-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 ui-monospace,monospace;max-height:38dvh;overflow:auto;background:#f2f6f9;border-radius:9px;padding:12px}
.qa14-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:14px}
.qa14-actions button{border:1px solid #ccd8e2;background:#fff;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer}
.qa14-actions button[data-yes]{background:#0e7b70;color:#fff}.qa14-actions button:disabled{opacity:.5;cursor:not-allowed}
.qa14-status{color:#185c51;font-weight:700}
@media(max-width:820px){
 .layout .topbar{height:auto!important;min-height:66px!important;padding:8px 12px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:5px!important;overflow:visible!important}
 .layout .topbar .top-title{width:100%!important;min-width:0!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important}
 .layout .topbar .top-title>*{max-width:100%!important;overflow-wrap:anywhere!important}
 .layout .topbar .top-right{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important}
 .layout .topbar .top-right>*{max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
 .layout .topbar #qaBuildBadge{max-width:100%!important}
 .layout .topbar .small-btn{flex:0 1 auto;max-width:100%!important}
 .page-title .row,.page-header .header-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
 .qa14-toolbar{width:100%;margin:5px 0}
 .qa14-toolbar button{flex:1 1 145px}
}