.manual-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.manual-tools .flow-panel{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}.manual-tools h2{font-size:20px}.manual-tools p{flex:1;line-height:1.6}.manual-tools button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;font-family:Inter,system-ui,sans-serif}
.manual-invoice .flow-section-title{flex-wrap:wrap;gap:12px}.manual-invoice .manual-line{padding:14px 0;border-bottom:1px solid #476078}.manual-line-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.manual-line-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.manual-invoice label{display:flex;flex-direction:column;gap:6px;min-width:0;font:500 13px/1.4 Inter,system-ui,sans-serif;color:#bdd5e8}.manual-invoice input,.manual-invoice select,.manual-invoice textarea{box-sizing:border-box;width:100%;min-width:0;min-height:40px;font:400 14px/1.4 Inter,system-ui,sans-serif;color:#eef5fb;background:#091724;border:1px solid #57738c;padding:8px 10px;letter-spacing:0;border-radius:0}.manual-invoice .invoice-check{flex-direction:row;align-items:center}.manual-invoice .invoice-check input{width:18px;min-height:18px}
.manual-line-total{margin:10px 0 0;text-align:right;color:#67e4df;font-variant-numeric:tabular-nums}.manual-reference{color:#abc5dd;font-size:12px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.manual-reference button{font-size:12px;min-height:32px}.manual-search{display:flex;gap:8px;margin:12px 0}.manual-search input{flex:1;min-width:0}.manual-history{width:100%;display:flex!important;justify-content:space-between!important;gap:12px;text-align:left!important;align-items:center;margin:8px 0}.manual-history span{min-width:0;overflow-wrap:anywhere}.manual-history strong{white-space:nowrap}.manual-associated{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;margin:12px 0;align-items:end}.manual-notes{margin:16px 0}.manual-line textarea{resize:vertical}
#manualLibrary{width:min(1000px,94vw);max-height:88dvh;padding:0;color:#ecf3fa;background:#122232;border:2px solid #7495b1;box-shadow:6px 6px 0 #030b13}#manualLibrary .dialog-head{background:#20364b;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px}#manualLibrary .dialog-head h2{font:600 21px Oxanium,system-ui,sans-serif;color:#ecf3fa;margin:0}#manualLibrary .dialog-body{padding:16px;max-height:calc(88dvh - 80px);overflow:auto;color:#ecf3fa;background:#122232}#manualLibrary input{background:#091724;color:#eef5fb;min-height:42px;padding:8px 12px;border:1px solid #57738c;font:14px Inter,system-ui,sans-serif}#manualLibrary button{font:600 13px/1.4 Inter,system-ui,sans-serif;min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-align:center;padding:8px 14px}#manualLibrary .manual-library-results article{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:16px;align-items:center;padding:16px 0;border-top:1px solid #476078}#manualLibrary strong{font:600 14px/1.55 Inter,system-ui,sans-serif;color:#edf4fc;overflow-wrap:anywhere}#manualLibrary small{display:block;color:#afc8de;font:400 12px/1.5 Inter,system-ui,sans-serif;margin-top:7px}#manualLibrary .actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}#manualLibrary::backdrop{background:#020810c9}
@media(max-width:900px){.manual-tools{grid-template-columns:1fr}.manual-line-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.manual-associated{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.manual-history{align-items:flex-start!important;flex-direction:column}.manual-line-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.manual-search{flex-wrap:wrap}.manual-search input{flex-basis:180px}#manualLibrary .manual-library-results article{grid-template-columns:minmax(0,1fr);gap:10px}#manualLibrary .manual-library-results button{justify-self:end}#manualLibrary .dialog-head{padding:12px}.manual-invoice .actions{flex-wrap:wrap}.manual-invoice .invoice-toolbar .actions button{flex:1}}

.manual-invoice .flow-section-title .actions{display:flex;align-items:stretch;gap:10px}.manual-invoice .flow-section-title .actions button{min-height:48px;flex:1;display:inline-flex;align-items:center;justify-content:center;text-align:center}.manual-invoice[inert]{opacity:.8}
