#order-modal{padding:18px;background:rgba(2,1,7,.88);backdrop-filter:blur(14px)}#order-modal .invoice-shell{width:min(1480px,97vw);max-height:94vh;padding:0;overflow:auto;background:#08070d;border:1px solid #292233;border-radius:24px}.ae-invoice-layout{display:grid;grid-template-columns:300px 1fr;min-height:850px}.invoice-control{position:sticky;top:0;height:94vh;padding:72px 20px 24px;border-left:1px solid #292233;background:linear-gradient(180deg,#12101a,#09080e);display:flex;flex-direction:column;gap:17px}.control-title small,.invoice-document-head span{letter-spacing:4px;color:#a76cff;font-size:10px;font-weight:900}.control-title h3{margin:8px 0 0;font-size:24px}.invoice-print,.tracking-box button{min-height:48px;border:0;border-radius:12px;background:linear-gradient(135deg,#6c3bea,#b72de1);color:white;font:inherit;font-weight:900}.status-control{display:grid;gap:8px;padding:16px;border:1px solid #2b2534;border-radius:17px;background:#0b0a10}.status-control b{margin-bottom:5px}.status-control button{min-height:42px;border:1px solid #332b40;border-radius:10px;background:#17131f;color:#ddd;font:inherit}.status-control button.current{border-color:#2e9c75;background:#0f2c23;color:#6df0bd}.tracking-box{display:grid;gap:10px;margin-top:auto;padding:16px;border:1px solid #2c2536;border-radius:16px}.tracking-box code{direction:ltr;overflow-wrap:anywhere;color:#a697b8;font-size:11px}.invoice-document{padding:35px}.invoice-document-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:26px;border-bottom:1px solid #292331}.invoice-document-head h2{margin:8px 0;font-size:34px}.invoice-document-head p{margin:0;color:#8e8499}.invoice-document-head img{width:86px;height:86px;object-fit:contain}.invoice-overview{display:grid;grid-template-columns:1.4fr .8fr;gap:15px;margin:22px 0}.invoice-overview>div,.invoice-products,.notes-workspace,.order-history{padding:22px;border:1px solid #282230;border-radius:19px;background:#0c0b11}.invoice-overview h3,.section-heading h3{margin:0 0 16px}.customer-overview>button{display:grid;width:100%;gap:3px;text-align:right;padding:14px;border:1px solid #332941;border-radius:12px;background:#121019;color:#fff}.customer-overview>button span{color:#a56efa}.customer-overview dl{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:0}.customer-overview dl div{padding:11px;border-radius:10px;background:#09080d}.customer-overview dt{font-size:11px;color:#83798c}.customer-overview dd{margin:5px 0 0;color:#eee}.order-overview{display:grid;gap:10px}.order-overview>div:not(.big-status){display:flex;justify-content:space-between;padding:11px;background:#09080d;border-radius:10px}.big-status{display:flex;justify-content:space-between;align-items:center;padding:13px;background:#09080d;border-radius:10px}.big-status small{color:#877c90}.section-heading{display:flex;justify-content:space-between;align-items:center}.section-heading p{margin:-10px 0 0;color:#82778d}.invoice-products article{display:grid;grid-template-columns:58px 1fr 120px 120px;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #25202b}.invoice-products article img{width:52px;height:52px;object-fit:cover;border-radius:11px}.invoice-products article div{display:grid;gap:5px}.invoice-products article small{color:#82788b}.invoice-products article>span{color:#a99db4}.invoice-products article>strong{text-align:left}.invoice-totals{width:min(440px,100%);margin:18px 0 0 auto}.invoice-totals p{display:flex;justify-content:space-between;padding:9px;margin:0}.invoice-totals .discount{color:#62dfac}.invoice-totals .total{margin-top:7px;padding-top:14px;border-top:1px solid #332a3d;font-size:20px}.notes-workspace{margin-top:15px}.notes-workspace form{display:grid;grid-template-columns:1fr auto;gap:10px;margin:18px 0}.notes-workspace textarea,.admin-notes-grid article textarea{min-height:90px;padding:14px;border:1px solid #342a42;border-radius:13px;background:#07060a;color:#fff;font:inherit;resize:vertical}.notes-workspace form button{padding:0 22px;border:0;border-radius:13px;background:linear-gradient(135deg,#6e38eb,#b72fe0);color:#fff;font:inherit;font-weight:900}.admin-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-notes-grid article{padding:15px;border:1px solid #2d2636;border-radius:14px;background:#08070c}.admin-notes-grid article p{min-height:45px;white-space:pre-wrap}.admin-notes-grid footer{display:flex;justify-content:space-between;align-items:center;gap:8px}.admin-notes-grid time{font-size:11px;color:#817688}.admin-notes-grid footer button{padding:7px 12px;border:1px solid #3a2f49;border-radius:8px;background:#15101e;color:#ddd}.admin-notes-grid footer button.danger{color:#ff789b;border-color:#5b2939}.admin-notes-grid footer button.primary{background:#7539e9;color:#fff}.empty-notes{grid-column:1/-1;padding:30px;text-align:center;color:#817789;border:1px dashed #332a3c;border-radius:13px}.order-history{margin-top:15px}.order-history>div{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.order-history article{display:flex;gap:10px;padding:12px;background:#08070c;border-radius:11px}.order-history i{width:10px;height:10px;margin-top:5px;border-radius:50%;background:#9c4df5;box-shadow:0 0 15px #9c4df5}.order-history article div{display:grid;gap:4px}.order-history small{color:#81768a}@media(max-width:900px){#order-modal{padding:0}.ae-invoice-layout{grid-template-columns:1fr}.invoice-control{position:relative;height:auto;padding:65px 16px 18px;border-left:0;border-bottom:1px solid #292233}.tracking-box{margin-top:0}.invoice-document{padding:16px}.invoice-overview{grid-template-columns:1fr}.invoice-products article{grid-template-columns:48px 1fr auto}.invoice-products article>span{display:none}.admin-notes-grid,.order-history>div{grid-template-columns:1fr}}
@media print{body>*:not(#order-modal){display:none!important}#order-modal{position:static!important;padding:0!important;background:#fff!important}#order-modal .invoice-shell{max-height:none!important;width:100%!important;border:0!important}.invoice-control,.modal-x,.notes-workspace,.order-history{display:none!important}.ae-invoice-layout{display:block!important;min-height:0}.invoice-document{color:#111!important;background:#fff!important}.invoice-overview>div,.invoice-products{background:#fff!important;border-color:#ddd!important}.invoice-document-head h2,.customer-overview dd,.customer-overview>button{color:#111!important}}
