
#meca-direct-invoice{border:0;padding:0;width:min(1050px,96vw);max-width:1050px;max-height:93vh;overflow:auto;border-radius:16px;box-shadow:0 25px 80px #05253480;color:#143d51;background:#fff}
#meca-direct-invoice::backdrop{background:#0e2636c9}
.mdi-head{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;background:#f5f9fb;border-bottom:1px solid #dbe8ee;padding:15px 23px;gap:12px}
.mdi-head h2{font-size:22px;margin:5px 0;color:#183f52}.mdi-head small{font-size:11px;color:#598095;letter-spacing:1px}
.mdi-head button{background:#fff;border:1px solid #dae7ed;border-radius:7px;padding:10px;color:#24536a;cursor:pointer}
#mdi-body{padding:20px 23px}.mdi-stack{display:grid;gap:15px}
.mdi-toggle{display:flex;gap:8px}.mdi-toggle button{flex:1;background:#f2f7fa!important;color:#36596c!important;border:1px solid #cfe2e9!important;border-radius:9px!important;padding:13px!important;font-weight:700}.mdi-toggle button.on{background:#17647a!important;color:white!important;border-color:#17647a!important}
.mdi-section{border:1px solid #e0eaf0;border-radius:12px;padding:16px}.mdi-section h3{font-size:16px;margin:0 0 14px;color:#183d51}
.mdi-section input,.mdi-section textarea{box-sizing:border-box;width:100%;font:inherit;border:1px solid #cedde5;border-radius:8px;padding:10px;margin-top:5px;background:#fff;color:#173b52}
.mdi-section label{font-size:12px;color:#56738a;display:block;font-weight:650}
.mdi-section input:focus,.mdi-section textarea:focus{outline:2px solid #41a6bf;outline-offset:1px}
.mdi-selected{display:flex;flex-direction:column;gap:4px;background:#f0f8f9;padding:10px 13px;border-radius:8px;color:#36596a;font-size:13px;margin-top:10px}
.mdi-newclient{border:1px dashed #bed4df;padding:12px;border-radius:10px;margin-top:12px}.mdi-newclient summary{font-size:13px;font-weight:650;cursor:pointer;margin-bottom:10px}
.mdi-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mdi-newclient button{background:#17647a;color:white;border:0;border-radius:7px;padding:10px 15px;margin-top:12px}
#mdi-client-found,#mdi-articles-found{max-height:220px;overflow:auto;box-shadow:0 4px 12px #173e5212;border-radius:8px}
#mdi-client-found button,#mdi-articles-found button{display:flex;align-items:center;justify-content:space-between;gap:10px;background:white!important;border:1px solid #e7edf0!important;color:#1b4357!important;padding:10px!important;width:100%;font-size:13px;text-align:left;cursor:pointer}
#mdi-client-found button:hover,#mdi-articles-found button:hover{background:#ecf6f9!important}
#mdi-client-found small,#mdi-articles-found small{color:#6f8694}
.mdi-line{border-top:1px solid #e5edf1;padding:12px 0}.mdi-line-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.mdi-line-head b{font-size:13px}
.mdi-line-head button{border:0;background:#fff1ee;color:#a1453d;border-radius:7px;padding:7px 10px;font-size:12px}
.mdi-line-fields{display:grid;grid-template-columns:minmax(175px,3fr) repeat(4,minmax(74px,1fr));gap:9px}
.mdi-help,.mdi-muted{display:block;color:#6b8290;font-size:12px;margin:8px 0}
.mdi-check{display:flex!important;align-items:flex-start;gap:10px;max-width:850px;font-weight:500!important;margin:10px 0}.mdi-check input{width:auto!important;margin:2px 0!important}
.mdi-totals{display:flex;justify-content:flex-end;gap:25px;flex-wrap:wrap;font-size:15px;padding:14px;background:#eaf5f7;border-radius:10px}
.mdi-totals strong{font-size:20px;color:#116279}
.mdi-warning{color:#775a3a;font-size:12px;margin:0}
.mdi-actions,.mdi-list-tools{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0}
.mdi-actions button,.mdi-list-tools button{padding:11px 16px;border:0;border-radius:8px;background:#126681;color:white;font-weight:700;cursor:pointer}
.mdi-actions .secondary,.mdi-list-tools .secondary,.mdi-invoice-row .secondary{background:#edf5f8!important;color:#2c596a!important;border:1px solid #d9e7ed!important}
#mdi-error{color:#a82c2c;font-size:13px}
.mdi-invoice-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e2edf0;padding:13px 2px}
.mdi-invoice-row>div:first-child{display:grid;gap:5px}.mdi-invoice-row b{font-size:15px}.mdi-invoice-row small,.mdi-invoice-row span{font-size:12px;color:#708897}
.mdi-invoice-row>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.mdi-invoice-row button{padding:8px 10px!important;font-size:12px!important}
.mdi-quick-launch{margin:8px 0 16px!important;background:#e7f4f7!important;color:#215c70!important;border:1px solid #bed9e3!important;border-radius:8px!important;padding:10px 15px!important}
@media(max-width:740px){#mdi-body{padding:13px}.mdi-fields{grid-template-columns:1fr}.mdi-line-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.mdi-line-fields>.mdi-label{grid-column:1/-1}.mdi-invoice-row{align-items:flex-start;flex-direction:column}.mdi-totals{justify-content:flex-start;gap:12px}.mdi-totals span{width:100%}.mdi-head h2{font-size:19px}}
