:root{--ord-yellow:#ffc800;--ord-yellow-soft:#fff5bd;--ord-dark:#232b2f;--ord-ink:#20282c;--ord-muted:#6f7b82;--ord-line:#dfe5e8;--ord-soft:#f4f6f7}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ord-ink);background:var(--ord-soft);font-family:Inter,"Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}
.topbar{height:104px;border-bottom:1px solid rgba(255,255,255,.09);background:radial-gradient(circle at 82% 14%,rgba(255,200,0,.11) 0,transparent 28%),linear-gradient(135deg,#151b1e,#263035 58%,#303b40)}
.topbar-inner{width:min(1120px,calc(100% - 48px));height:100%;margin:0 auto;position:relative;display:flex;align-items:center}
.order-topbar-pill{border:1px solid rgba(255,200,0,.26);color:#ffe374;background:rgba(255,200,0,.08)}
.order-topbar-back{border:1px solid rgba(255,255,255,.18);color:#f4f6f7;background:rgba(255,255,255,.06)}
.order-topbar-back:hover{border-color:rgba(255,200,0,.55);background:rgba(255,200,0,.09)}
.order-hero{height:250px;border-bottom:1px solid var(--ord-line);background:radial-gradient(circle at 87% 0,rgba(255,200,0,.15) 0,transparent 25%),#fff}
.order-hero-inner{width:min(1120px,calc(100% - 48px));height:100%;margin:0 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.order-eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 17px;color:#846700;font-size:10px;font-weight:850;line-height:1.2;letter-spacing:.17em;text-transform:uppercase}
.order-eyebrow:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ord-yellow);box-shadow:0 0 0 5px rgba(255,200,0,.14)}
.order-hero h1{max-width:980px;margin:0 0 14px;font-size:clamp(42px,5vw,68px);font-weight:700;line-height:.98;letter-spacing:-.055em}
.order-hero p{max-width:860px;margin:0;color:var(--ord-muted);font-size:14px;line-height:1.65}
.order-shell{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:30px 0 70px}
.order-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.order-main{display:grid;gap:18px}
.order-card{border:1px solid var(--ord-line);border-radius:19px;background:#fff;box-shadow:0 12px 34px rgba(35,43,47,.055)}
.order-card-body{padding:22px}.order-card-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.order-card-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:12px;color:var(--ord-yellow);background:var(--ord-dark);font-size:15px}.order-card-head small,.order-summary-head small{display:block;margin-bottom:4px;color:#997300;font-size:9px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.order-card-head h2,.order-summary h2{margin:0;font-size:18px;line-height:1.2;letter-spacing:-.025em}.order-badge{margin-left:auto;padding:7px 10px;border-radius:999px;color:#667178;background:#f0f3f4;font-size:9px;font-weight:850}
.product-picker{display:grid;grid-template-columns:1.25fr 1fr 88px 88px;gap:11px;align-items:end}.field{display:block}.field>span{display:block;margin:0 0 7px;color:#68747c;font-size:9px;font-weight:850;letter-spacing:.065em;text-transform:uppercase}.field input,.field select,.field textarea{width:100%;min-height:43px;border:1px solid var(--ord-line);border-radius:10px;padding:10px 11px;color:var(--ord-dark);background:#fbfcfc;font-size:12px;font-weight:650;outline:none}.field textarea{min-height:82px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--ord-yellow);background:#fff;box-shadow:0 0 0 3px rgba(255,200,0,.15)}.field input:disabled,.field select:disabled{color:#9aa4a9;background:#f1f3f4}
.selected-product{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;margin-top:14px;padding:15px;border:1px solid #ead77f;border-radius:14px;background:#fffaf0}.selected-product.empty{border-color:var(--ord-line);background:#f8fafb}.selected-product small{display:block;color:#957000;font-size:8px;font-weight:850;text-transform:uppercase}.selected-product h3{margin:5px 0 4px;font-size:15px}.selected-product p{margin:0;color:var(--ord-muted);font-size:9px;line-height:1.55}.selected-price{text-align:right}.selected-price span{display:block;color:var(--ord-muted);font-size:8px;text-transform:uppercase}.selected-price strong{display:block;margin-top:4px;font-size:19px;white-space:nowrap}.add-product{width:100%;min-height:44px;margin-top:11px;border:0;border-radius:11px;color:var(--ord-dark);background:var(--ord-yellow);font-size:11px;font-weight:850;cursor:pointer;box-shadow:0 9px 20px rgba(207,157,0,.19)}.add-product:hover{background:#ffd338;transform:translateY(-1px)}.add-product:disabled{color:#8a8f91;background:#e6e9ea;box-shadow:none;cursor:not-allowed;transform:none}
.order-items{display:grid}.order-empty{padding:42px 18px;text-align:center;color:#79858b}.order-empty i{font-size:35px;color:#d0d7da}.order-empty h3{margin:12px 0 5px;color:#515c62;font-size:15px}.order-empty p{margin:0;font-size:10px;line-height:1.55}
.order-item{display:grid;grid-template-columns:minmax(190px,1.7fr) 92px 76px 116px 36px;gap:10px;align-items:center;padding:15px 0;border-top:1px solid #edf0f2}.order-item:first-child{border-top:0}.item-name{font-size:12px;font-weight:850;line-height:1.35}.item-name em{color:#947000;font-style:normal}.item-meta{margin-top:5px;color:#7b878e;font-size:8px;line-height:1.55}.qty{display:flex;overflow:hidden;border:1px solid var(--ord-line);border-radius:9px}.qty button{width:29px;height:31px;border:0;color:#37434a;background:#f1f4f5;font-weight:900;cursor:pointer}.qty span{width:34px;display:grid;place-items:center;font-size:10px;font-weight:850}.discount{position:relative}.discount input{width:100%;height:33px;border:1px solid var(--ord-line);border-radius:9px;padding:7px 20px 7px 7px;text-align:center;font-size:10px;font-weight:800}.discount:after{content:"%";position:absolute;right:7px;top:50%;transform:translateY(-50%);color:#8a969d;font-size:8px}.item-price span{display:block;color:#89949a;font-size:7px;font-weight:850;text-transform:uppercase}.item-price strong{display:block;margin-top:4px;font-size:10px;white-space:nowrap}.remove-item{width:36px;height:36px;border:0;border-radius:9px;color:#b42318;background:#fff0f0;cursor:pointer}
.completeness-intro{display:flex;gap:9px;margin-bottom:14px;padding:11px;border:1px solid #e4e8ea;border-radius:11px;color:#6d787e;background:#f8fafb;font-size:9px;line-height:1.55}.completeness-intro i{color:#997300;margin-top:2px}.completeness-list{display:grid;gap:11px}.completeness-empty{padding:25px 16px;border:1px dashed #d8dfe2;border-radius:13px;color:#7a858b;background:#fafbfb;text-align:center;font-size:10px}.completeness-device{overflow:hidden;border:1px solid var(--ord-line);border-radius:14px}.completeness-device-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#f3f5f6}.completeness-device-head div{display:flex;align-items:center;gap:9px}.completeness-device-head i{color:#997300}.completeness-device-head strong{font-size:11px}.completeness-device-head span{color:#718087;font-size:8px}.accessory-list{display:grid}.accessory-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px 13px;border-top:1px solid #edf0f2}.accessory-row:first-child{border-top:0}.accessory-copy b{display:block;font-size:10px}.accessory-copy small{display:block;margin-top:4px;color:#7a858b;font-size:8px}.accessory-price{font-size:10px;font-weight:850;white-space:nowrap}.accessory-add{min-width:89px;min-height:34px;border:0;border-radius:9px;color:#232b2f;background:#ffc800;font-size:9px;font-weight:850;cursor:pointer}.accessory-add.added{color:#4c6655;background:#e6f3ea;cursor:default}.completeness-ok{padding:12px 14px;color:#476253;background:#edf7f0;font-size:9px;font-weight:750}
.customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.full{grid-column:1/-1}.profile-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-bottom:15px}.profile-row select{min-height:42px;border:1px solid var(--ord-line);border-radius:10px;padding:9px 11px;background:#fbfcfc;font-size:11px;font-weight:700}.save-profile{border:1px solid var(--ord-line);border-radius:10px;padding:0 13px;color:#465158;background:#fff;font-size:10px;font-weight:800;cursor:pointer}.save-profile:hover{border-color:var(--ord-yellow);background:#fff9dc}
.private-badge{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;color:#675100;background:#fff4bc;font-size:8px;font-weight:850}.margin-note{margin:-3px 0 15px;padding:10px 12px;border-left:3px solid #ffc800;color:#69757b;background:#f8fafb;font-size:9px;line-height:1.55}.margin-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.margin-controls button{min-height:43px;border:1px solid #e2c95a;border-radius:10px;padding:0 13px;color:#443a17;background:#fff9db;font-size:9px;font-weight:850;cursor:pointer}.margin-results{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.margin-results>div{padding:13px;border:1px solid var(--ord-line);border-radius:12px;background:#f8fafb}.margin-results small{display:block;color:#79858b;font-size:8px;font-weight:800;text-transform:uppercase}.margin-results strong{display:block;margin-top:6px;font-size:16px}.margin-results strong.positive{color:#2d7a49}.margin-results strong.negative{color:#b42318}
.order-summary{position:sticky;top:18px;padding:22px}.order-summary-head{padding-bottom:15px;border-bottom:1px solid #edf0f2}.summary-discount{margin:15px 0;padding:12px;border-radius:12px;background:#f5f7f8}.summary-discount label{display:block;margin-bottom:7px;color:#68747c;font-size:8px;font-weight:850;text-transform:uppercase}.summary-discount div{display:grid;grid-template-columns:72px 1fr;gap:7px}.summary-discount input{width:100%;border:1px solid var(--ord-line);border-radius:9px;padding:8px;text-align:center;font-size:11px;font-weight:800}.summary-discount button{border:0;border-radius:9px;color:var(--ord-dark);background:var(--ord-yellow);font-size:9px;font-weight:850;cursor:pointer}.sum-row{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #edf0f2;color:#627078;font-size:10px}.sum-row strong{color:#2f3a40;white-space:nowrap}.sum-row.discount-value strong{color:#9d2d25}.total-box{margin-top:13px;padding:14px;border-radius:14px;color:#fff;background:var(--ord-dark);box-shadow:0 11px 27px rgba(35,43,47,.18)}.total-box .sum-row{color:#cbd3d7;border-color:rgba(255,255,255,.11)}.total-box .sum-row strong{color:#fff}.total-box .gross{border-bottom:0;padding-bottom:0;font-size:12px}.total-box .gross strong{color:var(--ord-yellow);font-size:17px}.summary-action{width:100%;min-height:42px;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:9px;border:0;border-radius:10px;font-size:10px;font-weight:850;cursor:pointer}.summary-action.primary{margin-top:15px;color:var(--ord-dark);background:var(--ord-yellow)}.summary-action.secondary{color:#fff;background:#354046}.summary-action.clear{color:#68747c;background:#eef1f2}.summary-note{display:flex;gap:8px;margin-top:13px;padding:10px;border:1px solid #e7ebed;border-radius:10px;color:#78848a;background:#fafbfb;font-size:8px;line-height:1.5}.summary-note i{color:#997300;margin-top:2px}
.order-modal[hidden]{display:none}.order-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px}.order-modal-backdrop{position:absolute;inset:0;background:rgba(14,19,21,.72);backdrop-filter:blur(6px)}.order-modal-card{position:relative;z-index:1;width:min(560px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:29px;border:1px solid #dfe5e8;border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.35)}.order-modal-card.compact{width:min(530px,100%)}.order-modal-close{position:absolute;right:16px;top:16px;width:35px;height:35px;border:0;border-radius:10px;color:#68747c;background:#f0f3f4;cursor:pointer}.order-modal-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:18px;border-radius:13px;color:#ffc800;background:#232b2f;font-size:18px}.order-modal-card>small{display:block;color:#977100;font-size:9px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.order-modal-card h2{max-width:470px;margin:7px 0 11px;font-size:25px;line-height:1.08;letter-spacing:-.035em}.order-modal-card>p{margin:0;color:#68747c;font-size:11px;line-height:1.65}.order-modal-card>p strong{color:#313b40}.order-modal-steps{display:grid;gap:8px;margin:19px 0;padding:0;list-style:none}.order-modal-steps li{display:grid;grid-template-columns:32px 1fr;gap:11px;align-items:center;padding:10px 11px;border:1px solid #e4e8ea;border-radius:11px;background:#fafbfb}.order-modal-steps li>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#232b2f;background:#ffc800;font-size:10px;font-weight:900}.order-modal-steps b{display:block;font-size:10px}.order-modal-steps small{display:block;margin-top:3px;color:#748087;font-size:9px;line-height:1.45}.order-modal-steps a,.order-modal-current a{color:#765b00;font-weight:850}.order-modal-note{display:flex;gap:9px;padding:11px;border:1px solid #ead77f;border-radius:11px;color:#6d6342;background:#fff9df;font-size:9px;line-height:1.5}.order-modal-note i{color:#997300;margin-top:2px}.order-modal-current{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:start;margin-top:18px;padding:14px;border:1px solid #ead77f;border-radius:13px;background:#fff9df}.order-modal-current>i{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;color:#ffc800;background:#232b2f}.order-modal-current b{display:block;font-size:11px}.order-modal-current span{display:block;margin-top:5px;color:#6d6342;font-size:9px;line-height:1.55}.order-modal-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px;margin-top:19px}.modal-button{min-height:43px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;font-size:10px;font-weight:850;cursor:pointer}.modal-button.cancel{color:#5f6b72;background:#edf0f2}.modal-button.primary{color:#232b2f;background:#ffc800;box-shadow:0 8px 19px rgba(196,149,0,.19)}body.modal-open{overflow:hidden}
.toast{position:fixed;left:50%;bottom:24px;z-index:110;transform:translate(-50%,20px);padding:12px 16px;border-radius:11px;color:#fff;background:#232b2f;font-size:10px;font-weight:800;opacity:0;pointer-events:none;transition:.2s}.toast.show{transform:translate(-50%,0);opacity:1}
#orderPrint{display:none}
@media(max-width:980px){.order-layout{grid-template-columns:1fr}.order-summary{position:static}.product-picker{grid-template-columns:1fr 1fr 90px 90px}}
@media(max-width:700px){.topbar{height:82px}.topbar-inner,.order-hero-inner,.order-shell{width:min(100% - 32px,620px)}.order-topbar-pill{display:none!important}.order-topbar-back span{display:none}.order-hero{height:220px}.order-hero h1{font-size:40px}.order-shell{padding-top:20px}.product-picker{grid-template-columns:1fr 1fr}.product-picker .field:nth-child(1),.product-picker .field:nth-child(2){grid-column:1/-1}.order-item{grid-template-columns:1fr 82px 36px}.order-item .discount{grid-column:2}.order-item .item-price{display:none}.remove-item{grid-column:3;grid-row:2}.qty{grid-column:1;grid-row:2;width:92px}.customer-grid{grid-template-columns:1fr}.full{grid-column:auto}.profile-row{grid-template-columns:1fr}.save-profile{min-height:40px}.accessory-row{grid-template-columns:1fr auto}.accessory-price{grid-column:1}.accessory-add{grid-column:2;grid-row:1/span 2}.private-badge{display:none}.margin-controls,.margin-results{grid-template-columns:1fr}.order-modal{padding:14px}.order-modal-card{max-height:calc(100vh - 28px);padding:23px 19px}.order-modal-card h2{font-size:22px}.order-modal-actions{grid-template-columns:1fr}.modal-button.cancel{order:2}}
@media print{@page{size:A4 portrait;margin:10mm}body>*:not(#orderPrint){display:none!important}#orderPrint{display:block!important;color:#111;background:#fff;font-family:Arial,sans-serif}.print-head{display:flex;justify-content:space-between;align-items:start;padding-bottom:12px;border-bottom:5px solid #ffc800}.print-head img{width:160px}.print-meta{text-align:right;font-size:10px;line-height:1.6}.print-meta strong{display:block;font-size:13px}.print-title{margin:25px 0 18px;font-size:28px}.print-parties{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.print-party{min-height:100px;padding:13px;border:1px solid #d9dfe2;border-radius:9px;font-size:9px;line-height:1.55}.print-party h2{margin:0 0 8px;font-size:9px;letter-spacing:.1em}.print-party strong{display:block;font-size:11px}.print-table{width:100%;border-collapse:collapse;font-size:8px}.print-table th{padding:7px 5px;color:#68747c;border-bottom:1px solid #ccd3d7;text-align:left}.print-table td{padding:8px 5px;border-bottom:1px solid #e0e5e7;vertical-align:top}.print-table th:nth-last-child(-n+3),.print-table td:nth-last-child(-n+3){text-align:right}.print-summary{width:270px;margin:18px 0 0 auto}.print-summary div{display:flex;justify-content:space-between;padding:7px;border-bottom:1px solid #dce1e4;font-size:9px}.print-summary .grand{border-top:4px solid #ffc800;border-bottom:0;font-size:12px;font-weight:900}.print-notes{margin-top:18px;padding:12px;border:1px solid #d9dfe2;border-radius:8px;font-size:8px;line-height:1.5}.print-footer{margin-top:22px;padding-top:9px;border-top:1px solid #d9dfe2;color:#6f797e;font-size:7px;line-height:1.5}}
